/* ====================================================================
   PINEAU DES CHARENTES — Version HIVER / FÊTES 2026
   Se charge APRÈS style.css et style-alt.css (base reprise de la version été) :
   ce fichier ne contient que les surcharges et les blocs propres à l'hiver.

==================================================================== */

:root {
  --navy: #111a42;
  --navy-bg: #141a4b;
  --gold: #e5b869;
  --gold-deep: #ba8034;
  --creme: #efe6d7;
  --gold-grad: linear-gradient(175deg, #b8811a 0%, #f3d05a 28%, #e2b233 52%, #f6dc72 72%, #c9961f 100%);
  --texture-or: url("/des-possibilites/hiver/img/texture-or.jpg"),
    linear-gradient(115deg, #b98a16 0%, #e3bb2c 22%, #c99a1b 45%, #e8c33a 62%, #b47f12 82%, #d9ac25 100%);

  /* variables de la base été réaffectées */
  --yellow: var(--navy-bg);
  --dark: #000;
  --text-dark: var(--navy);
}

body {
  background: var(--navy-bg);
}

/* texte réservé aux lecteurs d'écran */
.sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* ====================================================================
   HERO
==================================================================== */
.hero__bg,
.age-gate__bg {
  background:
    url("/des-possibilites/hiver/img/hero-bg.webp") top/cover no-repeat,
    linear-gradient(180deg, #343a94 0%, #6a61b8 26%, #a874bd 42%, #5450a6 58%, #2b2d6e 78%, #17183f 100%);
}

/* Lettrage doré : texture or du PSD découpée dans le texte (dégradé en repli).
   Une seule texture pour PINEAU + DES CHARENTES, cadrée comme dans le PSD :
   texture 867 px pour un lettrage de 780 px, décalée de 67 px à gauche et 85 px en haut. */
.hero__title {
  color: #e2b233;
  background: var(--texture-or);
  background-size: 111% auto;
  background-position: 77% 31%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero__pitch {
  padding-bottom: 6px;
}

.hero__text {
  max-width: 660px;
  line-height: 1.3;
  font-size: clamp(12px, 1.7vw, 17px);
}

.hero__text + .hero__text {
  margin-top: .55em;
}

.table-overlay .hero__claim {
  color: #fff;
  text-shadow: 0 2px 14px rgba(0, 0, 0, .55);
}

/* ====================================================================
   BANDEAU ONGLETS COCKTAILS
==================================================================== */
.tabs__btn {
  color: #fff;
}

.tabs__list li:not(:last-child) .tabs__btn::after {
  color: #9a9a9a;
}

.tabs__btn:hover {
  color: var(--gold);
}

.tabs__btn.is-active {
  color: var(--gold);
}

/* ====================================================================
   ZONE 2 — fond bleu nuit + bokeh
==================================================================== */
.zone2 {
  padding: 70px 16px 90px;
  color: #fff;
}

.zone2__bg,
.recettes-view__bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    url("/des-possibilites/hiver/img/zone2-bg.webp") center top/cover no-repeat,
    var(--navy-bg);
}

/* --- Intro de section --- */
.intro {
  max-width: 720px;
  margin: 0 auto 34px;
  text-align: center;
}

.intro__title {
  margin: 0 0 6px;
  color: var(--gold);
  font-size: clamp(19px, 2.6vw, 28px);
  font-weight: 700;
  letter-spacing: .01em;
  line-height: 1.2;
  text-transform: uppercase;
}

.intro__title em {
  font-family: var(--font-script);
  font-size: 1.35em;
  font-style: normal;
  font-weight: 400;
  line-height: .6;
  text-transform: none;
}

.intro p {
  margin: 0 0 .5em;
  font-size: clamp(14px, 1.8vw, 20px);
  line-height: 1.25;
}

/* --- Flèches blanches --- */
.carousel__arrow--prev,
.carousel__arrow--next {
  background-size: 15px auto;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 26'%3E%3Cpath d='M13 2 3 13l10 11' fill='none' stroke='%23fff' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

.carousel__arrow--next {
  transform: scaleX(-1);
}

.carousel__arrow:focus-visible,
.tabs__btn:focus-visible,
.subtabs__btn:focus-visible,
.story:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

/* --- Ornement --- */
.ornement {
  width: min(660px, 82%);
  height: auto; /* sinon l'attribut height="98" fige la hauteur et l'image s'écrase en largeur */
  margin: 70px auto 80px;
}

/* ====================================================================
   ACCORDS — sous-onglets + carrousel de cartes HTML
==================================================================== */
.accords {
  scroll-margin-top: 20px;
}

.subtabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px 8px;
  list-style: none;
  margin: 46px 0 6px;
  padding: 0;
}

.subtabs__btn {
  position: relative;
  padding: 4px 10px;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  transition: color .2s;
}

.subtabs li:not(:last-child) .subtabs__btn::after {
  content: "|";
  position: absolute;
  right: -7px;
  color: #fff;
  font-weight: 400;
}

.subtabs__btn:hover,
.subtabs__btn.is-active {
  color: var(--gold);
}

.carousel--accords .card {
  width: clamp(250px, 74%, 400px);
}

/* l'ombre "image" de la base été ne s'applique pas aux cartes HTML */
.carousel--accords .card .carte {
  box-shadow: 0 8px 18px rgba(0, 0, 0, .3);
}

.carousel--accords .card.is-active .carte {
  box-shadow: 0 16px 30px rgba(0, 0, 0, .45);
}

/* --- Carte accord --- */
.carte {
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 100%;
  padding: 18px 16px 30px;
  border: 1.5px solid var(--gold-deep);
  border-radius: 40px;
  background: var(--creme);
  color: var(--navy);
  font-weight: 700;
  text-align: center;
}

.visuel {
  position: relative;
  display: grid;
  place-items: center;
  overflow: hidden;
  aspect-ratio: 1;
  margin: 0 auto;
  border-radius: 18px;
}

.visuel img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Placeholder affiché si l'image est absente */
.visuel.is-missing {
  background: repeating-linear-gradient(-45deg, #e2d5c0 0 12px, #d8c9b1 12px 24px);
  color: #7d6a4c;
  font-size: 11px;
  letter-spacing: .04em;
}

.visuel.is-missing::before {
  content: "Image à fournir\A" attr(data-fichier);
  padding: 8px;
  white-space: pre-wrap;
  word-break: break-word;
}

.carte .visuel {
  width: 52%;
}

.titre {
  margin: 0;
  color: var(--navy);
  font-weight: 700;
  text-wrap: balance;
}

.titre__accord {
  color: var(--gold-deep);
}

.esperluette {
  margin-right: .15em;
  font-family: var(--font-script);
  font-size: 1.45em;
  font-weight: 400;
  line-height: 0;
}

.carte .titre {
  margin-top: 14px;
  font-size: clamp(17px, 4.6vw, 23px);
  line-height: 1.35;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 7px 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.tags li {
  padding: 6px 10px 5px;
  border: 1px solid var(--gold-deep);
  border-radius: 999px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .03em;
  line-height: 1.3;
  text-transform: uppercase;
  white-space: nowrap;
}

.carte .tags {
  margin: 12px 0 16px;
}

.bouton {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 7px 14px 6px 24px;
  border-radius: 10px;
  background: var(--gold);
  color: var(--navy);
  font-size: clamp(13px, 3.4vw, 16px);
  font-weight: 700;
  letter-spacing: .04em;
  line-height: 1.2;
  text-transform: uppercase;
  transition: background-color .2s;
}

.bouton:hover,
.bouton:focus-visible {
  background: #f0c982;
}

.bouton:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
}

.bouton__fleche {
  flex: none;
  width: 22px;
  height: 10px;
  transition: transform .2s;
}

.bouton:hover .bouton__fleche {
  transform: translateX(3px);
}

.carte .bouton {
  margin-top: auto;
}

.bouton--retour {
  padding: 6px 16px 5px 12px;
  border-radius: 6px;
  font-size: 13px;
}

.bouton--retour .bouton__fleche {
  transform: scaleX(-1);
}

.bouton--retour:hover .bouton__fleche {
  transform: scaleX(-1) translateX(3px);
}

/* ====================================================================
   CONSEILS — bandeau doré diagonal (texte + stories dedans)
==================================================================== */
.producers {
  margin-top: 130px;
}

.producers__band {
  padding: 90px 24px 100px;
}

.producers__band::before {
  transform: translateX(-50%) rotate(-5deg);
  background: var(--texture-or);
  background-size: cover;
  background-position: center;
}

.producers__title {
  margin-bottom: 8px;
  color: var(--navy);
  font-size: clamp(19px, 2.6vw, 28px);
  font-weight: 700;
  line-height: 1.2;
  text-transform: uppercase;
}

.producers__title em {
  font-family: var(--font-script);
  font-size: 1.35em;
  font-style: normal;
  font-weight: 400;
  line-height: .6;
  text-transform: none;
}

.producers__intro {
  max-width: 660px;
  color: var(--navy);
  font-size: clamp(14px, 1.8vw, 20px);
  font-weight: 700;
  line-height: 1.25;
}

.producers__intro + .producers__intro {
  margin-top: .5em;
}

.stories {
  margin-top: 36px;
}

.story {
  position: relative;
  border: 2px solid #fff;
  border-radius: 16px;
  background: var(--navy);
}

.story.is-missing {
  aspect-ratio: 245 / 366;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
}

.story.is-missing::before {
  content: "Vignette vidéo à fournir";
}

/* ====================================================================
   OUTRO
==================================================================== */
.outro {
  margin: 120px 0 10px;
  text-align: center;
}

.outro__titre {
  display: inline-block;
  margin: 0;
  background: var(--texture-or);
  background-size: cover;
  background-position: center;
  -webkit-background-clip: text;
  background-clip: text;
  color: #e2b233;
  -webkit-text-fill-color: transparent;
  font-size: clamp(26px, 4.6vw, 48px);
  font-weight: 700;
  line-height: 1.2;
}

.outro__script {
  margin: 4px 0 0;
  color: #e2b233;
  font-family: var(--font-script);
  font-size: clamp(24px, 4vw, 42px);
  line-height: 1.25;
}

.legal {
  background: #000;
}

/* ====================================================================
   PAGE RECETTE ACCORD  (/des-possibilites/hiver/accords/<slug>)
   Une seule vue à la fois : la landing, ou la fiche demandée.
==================================================================== */
.recettes-view {
  display: none;
  position: relative;
  isolation: isolate;
  min-height: 100vh;
  padding: 44px 16px 96px;
}

body.is-recette .recettes-view {
  display: block;
}

body.is-recette > .topnav,
body.is-recette > .hero,
body.is-recette > .tabs,
body.is-recette > .zone2 {
  display: none;
}

.recettes-view__titre {
  margin: 0 0 22px;
  color: var(--gold);
  font-size: clamp(17px, 2.2vw, 22px);
  font-weight: 700;
  text-align: center;
  text-transform: uppercase;
}

.recettes-view__titre em {
  font-family: var(--font-script);
  font-size: 1.35em;
  font-style: normal;
  font-weight: 400;
  line-height: .6;
  text-transform: none;
}

.recette[hidden] {
  display: none;
}

.recette__retour {
  margin: 0 0 48px;
  text-align: center;
}

.fiche + .recette__retour {
  margin: 48px 0 0;
}

.fiche {
  overflow: hidden;
  width: 680px;
  max-width: 100%;
  margin: 0 auto;
  border: 1.5px solid var(--gold-deep);
  border-radius: 44px;
  background: var(--creme);
  box-shadow: 0 14px 30px rgba(0, 0, 0, .35);
  color: var(--navy);
  font-weight: 700;
  line-height: 1.35;
}

.fiche__contenu {
  padding: 46px 56px 64px;
}

.fiche .visuel {
  width: 376px;
  max-width: 100%;
}

.fiche .titre {
  margin-top: 26px;
  font-size: 22px;
  line-height: 1.4;
  text-align: center;
}

.fiche .titre__accord {
  display: block;
}

.fiche .tags {
  margin-top: 16px;
}

.fiche .tags li {
  font-size: 11px;
}

.fiche__intertitre {
  margin: 30px 0 10px;
  color: var(--gold-deep);
  font-family: var(--font-script);
  font-size: 46px;
  font-weight: 400;
  line-height: 1.15;
  text-align: center;
}

.fiche__intertitre small {
  margin-left: .2em;
  font-size: .6em;
  white-space: nowrap;
}

.ingredients,
.etapes {
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 16px;
}

.ingredients li {
  padding-left: .6em;
  text-indent: -.6em;
}

.ingredients li::before {
  content: "•";
  display: inline-block;
  width: .6em;
  color: var(--gold-deep);
  font-family: Arial, sans-serif;
  text-indent: 0;
}

.ingredients + .fiche__intertitre {
  margin-top: 44px;
}

.etapes {
  counter-reset: etape;
}

.etapes li {
  counter-increment: etape;
  text-wrap: pretty;
}

.etapes li + li {
  margin-top: 1.35em;
}

.etapes li::before {
  content: counter(etape) ".\00a0";
  color: var(--gold-deep);
}

.conseil {
  padding: 30px 28px 46px;
  background: var(--texture-or);
  background-position: center;
  background-size: cover;
  font-size: 20px;
  text-align: center;
}

.conseil__titre {
  margin: 0 0 4px;
  color: #fff;
  font-family: var(--font-script);
  font-size: 44px;
  font-weight: 400;
  line-height: 1.15;
}

.conseil p {
  max-width: 30em;
  margin: 0 auto;
  text-wrap: balance;
}

/* ====================================================================
   RESPONSIVE
==================================================================== */
@media (max-width: 720px) {
  .zone2 {
    padding: 48px 12px 64px;
  }

  .ornement {
    margin: 48px auto 54px;
  }

  .producers {
    margin-top: 90px;
  }

  .producers__band {
    padding: 64px 12px 72px;
  }

  .stories {
    flex-direction: row;
    justify-content: center;
    gap: 14px;
  }

  .story {
    width: min(44%, 200px);
  }

  .outro {
    margin-top: 84px;
  }

  .carte {
    padding: 14px 10px 22px;
    border-radius: 30px;
  }

  .tags li {
    padding: 5px 8px 4px;
    font-size: 9px;
  }

  .recettes-view {
    padding: 30px 14px 64px;
  }

  .recette__retour {
    margin-bottom: 30px;
  }

  .fiche + .recette__retour {
    margin-top: 30px;
  }

  .fiche {
    border-radius: 32px;
  }

  .fiche__contenu {
    padding: 28px 22px 40px;
  }

  .fiche .titre {
    font-size: 19px;
  }

  .fiche__intertitre {
    font-size: 36px;
  }

  .ingredients,
  .etapes {
    font-size: 15px;
  }

  .conseil {
    padding: 22px 18px 32px;
    font-size: 16px;
  }

  .conseil__titre {
    font-size: 36px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .card,
  .bouton,
  .bouton__fleche,
  .story {
    transition: none !important;
  }
}

/* espace autour de la mention manuscrite dans le texte du hero */
.hero__text em {
  margin: 0 .2em 0 .1em;
}

/* --- Petits écrans : nav à 5 entrées sur deux lignes, texte du hero en flux libre --- */
@media (max-width: 560px) {
  .topnav__list {
    flex-wrap: wrap;
    gap: 4px 12px;
    font-size: 10.5px;
  }

  .topnav__list li:not(:last-child)::after {
    margin-left: 12px;
  }

  .hero__text br {
    display: none;
  }

  .hero__pitch {
    padding: 0 6px 6px;
  }
}
