@charset "UTF-8";

/* =========================================================
   ZUTIL.FR — GUIDES ACCORDS METS ET VINS
   Direction éditoriale commune : fromage, viande, poisson,
   volaille, gibier, barbecue et dessert.
   Chargé après /assets/css/tool.css
   ========================================================= */

/* =========================================================
   1. VARIABLES ET AMBIANCE GÉNÉRALE
   ========================================================= */

.guide-page {
  --guide-ink: var(--av-wine-950, #2d0813);
  --guide-wine: var(--av-wine-900, #3f0d1d);
  --guide-wine-light: var(--av-wine-700, #721f3e);
  --guide-gold: var(--av-gold-400, #d6a34d);
  --guide-gold-light: var(--av-gold-300, #f0ce87);
  --guide-paper: var(--av-surface-soft, #fffaf4);
  --guide-muted: var(--av-text, #705f57);
  --guide-line: var(--av-line, rgba(73, 36, 28, 0.12));
  background:
    radial-gradient(circle at 8% 5%, rgba(214, 163, 77, 0.13), transparent 31rem),
    radial-gradient(circle at 92% 11%, rgba(121, 31, 60, 0.09), transparent 35rem),
    var(--av-paper, #fffdf9);
  color: var(--guide-ink);
}

.guide-page main {
  overflow: clip;
}

/* =========================================================
   2. FIL D’ARIANE
   ========================================================= */

.guide-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding-top: 26px;
  padding-bottom: 24px;
  color: #88786f;
  font-size: 0.76rem;
  font-weight: 720;
}

.guide-breadcrumb a {
  color: var(--guide-wine-light);
  text-decoration: none;
}

.guide-breadcrumb a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* =========================================================
   3. COUVERTURE ÉDITORIALE IMMERSIVE
   ========================================================= */

.guide-hero {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: minmax(500px, 0.96fr) minmax(430px, 1.04fr);
  min-height: 490px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 42px;
  color: #fff;
  background:
    radial-gradient(circle at 22% 0%, rgba(197, 76, 105, 0.3), transparent 26rem),
    linear-gradient(135deg, #310712 0%, #551126 54%, #23070d 100%);
  box-shadow: 0 38px 100px rgba(52, 12, 22, 0.25);
}

.guide-hero::before,
.guide-hero::after {
  position: absolute;
  z-index: -1;
  content: "";
  pointer-events: none;
}

.guide-hero::before {
  top: -190px;
  left: -160px;
  width: 470px;
  height: 470px;
  border: 1px solid rgba(240, 206, 135, 0.16);
  border-radius: 50%;
  box-shadow:
    0 0 0 58px rgba(240, 206, 135, 0.035),
    0 0 0 116px rgba(240, 206, 135, 0.025);
}

.guide-hero::after {
  inset: 0;
  background: linear-gradient(90deg, rgba(35, 5, 13, 0.26), transparent 52%);
}

.guide-hero > div {
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(36px, 3.8vw, 52px) 32px clamp(46px, 4vw, 60px)
    clamp(38px, 4vw, 60px);
}

.guide-kicker {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  gap: 9px;
  margin: 0 0 22px;
  padding: 9px 13px;
  border: 1px solid rgba(240, 206, 135, 0.28);
  border-radius: 999px;
  color: var(--guide-gold-light);
  background: rgba(255, 255, 255, 0.06);
  font-size: 0.7rem;
  font-weight: 850;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  backdrop-filter: blur(10px);
}

.guide-hero h1 {
  max-width: 720px;
  margin: 0;
  color: #fffaf2;
  font-family: var(--font-display, Georgia, serif);
  font-size: clamp(3.05rem, 3.45vw, 4.15rem);
  line-height: 0.94;
  letter-spacing: -0.06em;
  text-wrap: initial;
}

.guide-hero h1 em {
  display: block;
  padding-bottom: 0.08em;
  color: var(--guide-gold-light);
  font-style: normal;
  white-space: nowrap;
}

.guide-lead {
  max-width: 610px;
  margin: 24px 0 0;
  color: rgba(255, 248, 240, 0.76);
  font-size: clamp(0.98rem, 1.35vw, 1.08rem);
  line-height: 1.68;
}

.guide-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px;
  margin-top: 26px;
}

.guide-actions .primary-btn {
  color: var(--guide-wine);
  background: #fff7e9;
  box-shadow: 0 14px 34px rgba(17, 2, 7, 0.2);
}

.guide-actions .primary-btn:hover {
  background: #fff;
}

.guide-actions small {
  color: rgba(255, 248, 240, 0.64);
  font-weight: 720;
}

.guide-visual {
  position: relative;
  z-index: 1;
  min-height: 490px;
  overflow: hidden;
  margin: 0;
  background: #2d130d;
}

.guide-visual::before,
.guide-visual::after {
  position: absolute;
  z-index: 1;
  content: "";
  pointer-events: none;
}

.guide-visual::before {
  inset: 0 auto 0 0;
  width: 38%;
  background: linear-gradient(90deg, #521025, transparent);
}

.guide-visual::after {
  inset: 42% 0 0;
  background: linear-gradient(transparent, rgba(27, 5, 10, 0.92));
}

.guide-visual img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 490px;
  object-fit: cover;
  transition: transform 900ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.guide-hero:hover .guide-visual img {
  transform: scale(1.025);
}

.quick-answer {
  position: absolute;
  z-index: 3;
  right: clamp(20px, 3vw, 38px);
  bottom: clamp(20px, 3vw, 38px);
  left: clamp(20px, 3vw, 38px);
  padding: 24px 26px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 24px;
  color: #fff;
  background: rgba(39, 7, 14, 0.12);
  box-shadow: 0 20px 48px rgba(15, 2, 6, 0.24);
  backdrop-filter: blur(0px);
}

.quick-answer span {
  display: block;
  margin-bottom: 7px;
  color: var(--guide-gold-light);
  font-size: 0.68rem;
  font-weight: 850;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.quick-answer strong {
  font-family: var(--font-display, Georgia, serif);
  font-size: clamp(1.25rem, 2vw, 1.75rem);
  line-height: 1.25;
}

/* =========================================================
   4. SIGNATURE DE L’ACCORD
   ========================================================= */

.pairing-signature {
  position: relative;
  z-index: 5;
  display: grid;
  grid-template-columns: 1.25fr repeat(3, 1fr);
  width: min(1040px, calc(100% - 48px));
  /*
   * POSITION VERTICALE DU BANDEAU « ACCORD PRINCIPAL »
   * Une valeur moins négative descend le bandeau.
   * -22px conserve une légère liaison visuelle avec le hero.
   */
  margin: -22px auto clamp(80px, 9vw, 126px);
  overflow: hidden;
  border: 1px solid rgba(73, 36, 28, 0.12);
  border-radius: 26px;
  background: rgba(255, 253, 249, 0.95);
  box-shadow: 0 24px 66px rgba(56, 24, 22, 0.14);
  backdrop-filter: blur(16px);
}

.signature-item {
  position: relative;
  min-width: 0;
  padding: 24px 27px;
}

.signature-item + .signature-item {
  border-left: 1px solid var(--guide-line);
}

.signature-item:first-child {
  color: #fff;
  background: linear-gradient(135deg, var(--guide-wine-light), var(--guide-wine));
}

.signature-item small {
  display: block;
  margin-bottom: 7px;
  color: #a16b28;
  font-size: 0.65rem;
  font-weight: 850;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.signature-item:first-child small {
  color: var(--guide-gold-light);
}

.signature-item strong {
  display: block;
  color: var(--guide-ink);
  font-family: var(--font-display, Georgia, serif);
  font-size: clamp(1.05rem, 1.6vw, 1.3rem);
  line-height: 1.22;
}

.signature-item:first-child strong {
  color: #fff;
}

/* =========================================================
   5. ARTICLE ET SOMMAIRE
   ========================================================= */

.guide-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 286px;
  align-items: start;
  gap: clamp(52px, 7vw, 96px);
  padding-bottom: 110px;
}

.guide-article {
  min-width: 0;
  counter-reset: guide-section;
}

.guide-article > section {
  position: relative;
  padding: clamp(58px, 7vw, 88px) 92px clamp(58px, 7vw, 88px) 0;
  border-top: 1px solid var(--guide-line);
  counter-increment: guide-section;
}

.guide-article > section:first-child {
  padding-top: 0;
  border-top: 0;
}

.guide-article > section::before {
  position: absolute;
  z-index: 2;
  top: clamp(58px, 7vw, 88px);
  right: 8px;
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border: 1px solid rgba(151, 95, 30, 0.17);
  border-radius: 50%;
  color: rgba(75, 13, 33, 0.42);
  content: "0" counter(guide-section);
  font-family: var(--font-display, Georgia, serif);
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1;
  background: rgba(255, 250, 243, 0.94);
  box-shadow: 0 9px 25px rgba(69, 36, 27, 0.07);
}

.guide-article > section:first-child::before {
  top: 0;
}

.guide-article h2 {
  position: relative;
  z-index: 1;
  max-width: 790px;
  margin: 0 0 25px;
  color: var(--guide-ink);
  font-family: var(--font-display, Georgia, serif);
  font-size: clamp(2.35rem, 4.2vw, 3.75rem);
  line-height: 1;
  letter-spacing: -0.045em;
  text-wrap: pretty;
}

.guide-article h3 {
  margin: 0 0 10px;
  color: #43101d;
  font-size: 1.06rem;
  line-height: 1.3;
}

.guide-article p {
  max-width: 760px;
  margin: 0 0 19px;
  color: var(--guide-muted);
  font-size: 1rem;
  line-height: 1.82;
}

.guide-article p:last-child {
  margin-bottom: 0;
}

.guide-aside {
  position: sticky;
  top: 100px;
  padding: 24px;
  border: 1px solid var(--guide-line);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 18px 48px rgba(51, 25, 22, 0.07);
  backdrop-filter: blur(14px);
}

.guide-aside strong {
  display: block;
  margin-bottom: 13px;
  color: var(--guide-ink);
  font-size: 0.88rem;
}

.guide-aside a {
  display: block;
  padding: 11px 0;
  border-top: 1px solid rgba(58, 31, 24, 0.09);
  color: #735f56;
  font-size: 0.8rem;
  font-weight: 720;
  text-decoration: none;
}

.guide-aside a:hover {
  color: var(--guide-wine-light);
}

.guide-aside .primary-btn {
  margin-top: 18px;
  padding: 13px 16px;
  border: 0;
  color: #fff;
  text-align: center;
}

/* =========================================================
   6. VERDICT ET ALTERNATIVES
   ========================================================= */

.verdict-card {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 22px;
  margin-top: 32px;
  padding: clamp(27px, 4vw, 40px);
  overflow: hidden;
  border: 1px solid rgba(214, 163, 77, 0.34);
  border-radius: 28px;
  background:
    radial-gradient(circle at 100% 0%, rgba(214, 163, 77, 0.22), transparent 18rem),
    linear-gradient(135deg, #fff8ea, #fff);
  box-shadow: 0 20px 54px rgba(68, 39, 25, 0.09);
}

/* Variante sans numéro : utilisée dans le résumé principal */
.verdict-card--simple {
  grid-template-columns: 1fr;
}

.verdict-label {
  display: block;
  margin-bottom: 10px;
  color: #a36b22;
  font-size: 0.67rem;
  font-weight: 850;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.verdict-number {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  color: #fff;
  background: linear-gradient(145deg, var(--guide-wine-light), var(--guide-wine));
  box-shadow: 0 12px 28px rgba(75, 13, 33, 0.23);
  font-weight: 850;
}

.verdict-card p {
  margin: 0;
}

.choice-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 32px;
}

.choice-card {
  position: relative;
  min-height: 210px;
  overflow: hidden;
  padding: 28px;
  border: 1px solid var(--guide-line);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.8);
  box-shadow: 0 13px 34px rgba(50, 27, 21, 0.055);
  transition:
    transform 220ms ease,
    border-color 220ms ease,
    box-shadow 220ms ease;
}

.choice-card::after {
  position: absolute;
  right: -36px;
  bottom: -48px;
  width: 120px;
  height: 120px;
  border: 1px solid rgba(214, 163, 77, 0.2);
  border-radius: 50%;
  content: "";
}

.choice-card:hover {
  transform: translateY(-5px);
  border-color: rgba(164, 104, 33, 0.3);
  box-shadow: 0 22px 46px rgba(50, 27, 21, 0.1);
}

.choice-card span {
  display: block;
  margin-bottom: 18px;
  color: #a36b22;
  font-size: 0.67rem;
  font-weight: 850;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.choice-card h3 {
  max-width: 290px;
  font-family: var(--font-display, Georgia, serif);
  font-size: 1.32rem;
}

.choice-card p {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.67;
}

/* =========================================================
   7. ERREURS, SERVICE ET MÉTHODE
   ========================================================= */

.avoid-box {
  position: relative;
  padding: clamp(32px, 5vw, 54px);
  overflow: hidden;
  border: 1px solid rgba(121, 31, 60, 0.16);
  border-left: 5px solid var(--guide-wine-light);
  border-radius: 30px;
  color: var(--guide-ink);
  background:
    radial-gradient(circle at 100% 0%, rgba(214, 163, 77, 0.16), transparent 19rem),
    linear-gradient(135deg, #fff5f2, #fffaf4 62%, #fff);
  box-shadow: 0 20px 52px rgba(78, 39, 32, 0.08);
}

.avoid-box::before {
  display: block;
  margin-bottom: 19px;
  color: var(--guide-wine-light);
  content: "À ÉVITER";
  font-size: 0.67rem;
  font-weight: 850;
  letter-spacing: 0.14em;
}

.avoid-box h2 {
  max-width: 620px;
  color: var(--guide-ink);
  font-size: clamp(2rem, 3.5vw, 3rem);
}

.avoid-box p {
  color: #705e56;
}

.service-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 11px;
  margin-top: 28px;
}

.service-strip span {
  padding: 11px 16px;
  border: 1px solid rgba(163, 107, 34, 0.16);
  border-radius: 999px;
  color: #603d2d;
  background: #f8edde;
  font-size: 0.77rem;
  font-weight: 800;
}

.method-note {
  margin-top: 30px;
  padding: 22px 24px;
  border-left: 3px solid var(--guide-gold);
  border-radius: 0 18px 18px 0;
  color: #75665e;
  background: rgba(255, 255, 255, 0.7);
  font-size: 0.82rem;
  line-height: 1.68;
}

.editorial-card {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  margin-top: 18px;
  overflow: hidden;
  border: 1px solid var(--guide-line);
  border-radius: 22px;
  background: var(--guide-line);
}

.editorial-card > div {
  padding: 24px;
  background: rgba(255, 255, 255, 0.88);
}

.editorial-card span {
  display: block;
  margin-bottom: 8px;
  color: #a36b22;
  font-size: 0.66rem;
  font-weight: 850;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.editorial-card strong {
  display: block;
  margin-bottom: 7px;
  color: var(--guide-ink);
  font-family: var(--font-display, Georgia, serif);
  font-size: 1.14rem;
}

.editorial-card p {
  margin: 0;
  color: #75665e;
  font-size: 0.81rem;
  line-height: 1.65;
}

.sources-block {
  margin-top: 20px;
  padding: 22px 24px;
  border-radius: 20px;
  background: rgba(248, 237, 222, 0.62);
}

.sources-block h3 {
  margin-bottom: 11px;
  font-size: 0.9rem;
}

.sources-block ul {
  margin: 0;
  padding-left: 18px;
  color: #75665e;
  font-size: 0.78rem;
  line-height: 1.65;
}

.sources-block li + li {
  margin-top: 7px;
}

.sources-block a {
  color: var(--guide-wine-light);
  font-weight: 780;
  text-underline-offset: 3px;
}

/* =========================================================
   8. FAQ
   ========================================================= */

.guide-faq details {
  border-top: 1px solid var(--guide-line);
}

.guide-faq summary {
  position: relative;
  padding: 22px 44px 22px 0;
  color: #3b0c19;
  font-weight: 820;
  cursor: pointer;
}

.guide-faq summary::after {
  position: absolute;
  top: 20px;
  right: 4px;
  color: #a36b22;
  content: "+";
  font-size: 1.25rem;
}

.guide-faq details[open] summary::after {
  content: "−";
}

.guide-faq details p {
  padding-bottom: 22px;
  font-size: 0.94rem;
}

/* =========================================================
   9. AUTRES GUIDES — FINAL CINÉMATOGRAPHIQUE
   ========================================================= */

.other-guides {
  position: relative;
  overflow: hidden;
  padding: clamp(78px, 9vw, 120px) 0;
  color: var(--guide-ink);
  border-top: 1px solid rgba(73, 36, 28, 0.09);
  background:
    radial-gradient(circle at 84% 4%, rgba(214, 163, 77, 0.18), transparent 29rem),
    radial-gradient(circle at 10% 100%, rgba(121, 31, 60, 0.07), transparent 27rem),
    linear-gradient(135deg, #fff8ef, #fffdf9 58%, #fff7ec);
}

.other-guides::after {
  position: absolute;
  top: -230px;
  right: -170px;
  width: 520px;
  height: 520px;
  border: 1px solid rgba(151, 95, 30, 0.13);
  border-radius: 50%;
  box-shadow: 0 0 0 72px rgba(151, 95, 30, 0.025);
  content: "";
}

.other-guides .container {
  position: relative;
  z-index: 1;
}

.other-guides h2 {
  max-width: 820px;
  margin: 0 0 14px;
  color: var(--guide-ink);
  font-family: var(--font-display, Georgia, serif);
  font-size: clamp(2.6rem, 5vw, 4.4rem);
  line-height: 0.98;
  letter-spacing: -0.045em;
}

.other-guides > .container > p {
  color: var(--guide-muted);
}

.guide-links {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 15px;
  margin-top: 34px;
}

.guide-link {
  position: relative;
  min-height: 150px;
  padding: 25px;
  overflow: hidden;
  border: 1px solid rgba(73, 36, 28, 0.12);
  border-radius: 22px;
  color: var(--guide-ink);
  background: rgba(255, 255, 255, 0.84);
  box-shadow: 0 14px 38px rgba(69, 36, 27, 0.07);
  text-decoration: none;
  transition:
    transform 220ms ease,
    background 220ms ease;
  backdrop-filter: blur(10px);
}

.guide-link:hover {
  transform: translateY(-5px);
  border-color: rgba(151, 95, 30, 0.28);
  background: #fff;
  box-shadow: 0 22px 48px rgba(69, 36, 27, 0.12);
}

.guide-link span {
  display: block;
  margin-bottom: 20px;
  color: #9b651f;
  font-size: 0.65rem;
  font-weight: 850;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.guide-link strong {
  color: var(--guide-ink);
  font-family: var(--font-display, Georgia, serif);
  font-size: 1.22rem;
  line-height: 1.25;
}

/* Les surfaces reprennent exactement les rayons et ombres du système. */
.guide-page :is(.pairing-signature, .verdict-card, .avoid-box) {
  border-radius: var(--av-radius-lg);
}

.guide-page :is(.choice-card, .guide-aside, .guide-link) {
  border-radius: var(--av-radius-md);
}

.guide-page :is(.verdict-card, .avoid-box, .guide-link) {
  box-shadow: var(--av-shadow-sm);
}

/* =========================================================
   10. RESPONSIVE
   ========================================================= */

@media (max-width: 1040px) {
  .guide-hero {
    grid-template-columns: 1fr;
  }

  .guide-hero > div {
    padding-right: clamp(38px, 5vw, 76px);
  }

  .guide-visual,
  .guide-visual img {
    min-height: 430px;
  }

  .guide-visual::before {
    display: none;
  }

  .guide-layout {
    grid-template-columns: 1fr;
  }

  .guide-aside {
    display: none;
  }
}

@media (max-width: 780px) {
  .guide-hero {
    min-height: auto;
    border-radius: 28px;
  }

  .guide-hero h1 {
    font-size: clamp(3.25rem, 13vw, 5rem);
  }

  .guide-hero h1 em {
    white-space: normal;
  }

  .pairing-signature {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: -18px;
  }

  .signature-item:nth-child(3) {
    border-left: 0;
    border-top: 1px solid var(--guide-line);
  }

  .signature-item:nth-child(4) {
    border-top: 1px solid var(--guide-line);
  }

  .choice-grid,
  .guide-links {
    grid-template-columns: 1fr;
  }

  .editorial-card {
    grid-template-columns: 1fr;
  }

  .guide-article > section {
    padding-right: 0;
  }

  .guide-article > section::before,
  .guide-article > section:first-child::before {
    position: static;
    width: 48px;
    height: 48px;
    margin-bottom: 20px;
    font-size: 1.08rem;
  }
}

@media (max-width: 560px) {
  .guide-breadcrumb {
    padding-top: 18px;
  }

  .guide-hero {
    width: calc(100% - 24px);
  }

  .guide-hero > div {
    padding: 42px 25px 58px;
  }

  .guide-kicker {
    margin-bottom: 22px;
  }

  .guide-lead {
    margin-top: 24px;
  }

  .guide-visual,
  .guide-visual img {
    min-height: 340px;
  }

  .quick-answer {
    right: 14px;
    bottom: 14px;
    left: 14px;
    padding: 18px;
  }

  .pairing-signature {
    grid-template-columns: 1fr;
    width: calc(100% - 42px);
    margin-bottom: 76px;
  }

  .signature-item + .signature-item {
    border-top: 1px solid var(--guide-line);
    border-left: 0;
  }

  .verdict-card {
    grid-template-columns: 1fr;
  }

  .choice-card {
    min-height: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  .guide-visual img,
  .choice-card,
  .guide-link {
    transition: none;
  }
}