/* =====================================================================
   LOU GERS — compléments de mise en page (oct. 2026)
   Chargée EN DERNIER. AUCUNE nouvelle couleur : uniquement les variables
   d'origine de site.css (--bg, --bg-2, --cream, --ivory, --gold, --gold-soft,
   --line…) et les transparences dorées déjà utilisées par le site
   (rgba(210, 187, 134, …), rgba(236, 227, 208, …), rgba(13, 14, 12, …)).
   Contenu : grille des 5 liqueurs, section héritage, article mis en avant,
   cartes cocktails et accords, page Notre histoire, apparitions douces.
   ===================================================================== */

/* ---------- 1. Accueil : notre héritage ---------- */
.heritage { width: 100%; max-width: var(--max); margin: 0 auto; padding: var(--section) var(--gutter) 0; }
.heritage__inner {
  display: grid; gap: clamp(3rem, 6vw, 6rem); align-items: center;
  padding: clamp(2.5rem, 6vw, 5rem) clamp(1.4rem, 5vw, 4.5rem);
  border-top: 1px solid rgba(210, 187, 134, .28); border-bottom: 1px solid rgba(210, 187, 134, .28);
  background: radial-gradient(70% 90% at 0% 0%, rgba(210, 187, 134, .10), rgba(210, 187, 134, 0) 70%);
}
@media (min-width: 1000px) { .heritage__inner { grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); } }
.heritage__title { max-width: 30rem; }
.heritage__prose { max-width: 34rem; }
.heritage__lead { font-family: var(--serif); font-size: clamp(1.35rem, 1.15rem + .7vw, 1.7rem); line-height: 1.4; color: var(--cream); }
.heritage .btn { margin-top: .4rem; }

/* Composition éditoriale : logo en tête, deux photos légèrement superposées.
   --main : largeur de la grande photo (calée à droite) ; --inset : largeur de la
   petite (calée en bas à gauche). Les bouteilles restent hors de la superposition. */
.heritage__media {
  --main: 84%; --inset: 48%; --logo: clamp(12rem, 9rem + 9vw, 17.5rem);
  position: relative; display: flex; flex-direction: column; align-items: flex-end;
  padding-bottom: clamp(3.4rem, 6vw, 5rem);
}
/* Logo d'origine (fond noir #0d0d0b) : recadré sur ses marges noires uniquement,
   fondu dans le fond du site par « lighten » — aucun rectangle visible, logo intact. */
.heritage__logo {
  position: relative; width: var(--logo);
  margin: 0 calc(var(--main) / 2 - var(--logo) / 2) clamp(2rem, 3.2vw, 2.6rem) 0;
}
.heritage__logo picture { display: block; aspect-ratio: 460 / 528; overflow: hidden; }
.heritage__logo img { display: block; width: 139.13%; max-width: none; height: auto; margin: -37.39% 0 0 -19.57%; mix-blend-mode: lighten; }
.heritage__logo::after {
  content: ""; position: absolute; left: 50%; top: calc(100% + clamp(.6rem, 1.1vw, .8rem));
  width: 1px; height: clamp(.8rem, 1.4vw, 1rem); background: rgba(210, 187, 134, .45);
}
.heritage__main, .heritage__inset { display: block; overflow: hidden; background: var(--bg-2); aspect-ratio: 762 / 506; }
.heritage__main img, .heritage__inset img { width: 100%; height: 100%; object-fit: cover; }
.heritage__main { width: var(--main); }
.heritage__inset { position: absolute; left: 2%; bottom: 0; width: var(--inset); outline: 6px solid var(--bg); }
@media (max-width: 999px) { .heritage__media { width: 100%; max-width: 40rem; margin: 0 auto; } }
/* Ordinateur : la composition gagne la marge intérieure droite (reste 1,5 rem avant le bord) */
@media (min-width: 1000px) { .heritage__media { margin-right: calc(1.5rem - clamp(1.4rem, 5vw, 4.5rem)); } }
/* Ordinateur : section compacte, lisible d'un seul écran (titre → bouton) quand la hauteur le permet.
   Colonne de texte élargie (titre et paragraphes sur moins de lignes, polices inchangées),
   espacements verticaux resserrés, logo limité par la hauteur visible sous le menu. */
@media (min-width: 1000px) {
  .heritage__inner {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(2.5rem, 4vw, 4.5rem);
    padding-top: clamp(2rem, 5.5vh, 4rem); padding-bottom: clamp(2rem, 5.5vh, 4rem);
  }
  .heritage__title { max-width: none; }
  .heritage__prose { max-width: 40rem; margin-top: 1.1rem; gap: .8rem; }
  .heritage .values { margin: 1.3rem 0 1.5rem; gap: 1rem 2.2rem; }
  .heritage .values li { padding-top: .75rem; }
  .heritage .values__name { margin-bottom: .2rem; }
  .heritage .btn { margin-top: 0; }
  .heritage__media {
    --logo: min(clamp(12rem, 9rem + 9vw, 17.5rem), calc((100svh - var(--header-h)) * .3));
    padding-bottom: clamp(2.6rem, 4.5vw, 4rem);
  }
  .heritage__logo { margin-bottom: clamp(1.6rem, 2.6vw, 2.2rem); }
}
/* Ordinateurs de faible hauteur (ex. 1366 × 768 ou 1280 × 720 avec les barres du navigateur) :
   seuls les espacements verticaux se resserrent — polices, couleurs, photos et disposition inchangées. */
@media (min-width: 1000px) and (max-height: 760px) {
  .heritage .eyebrow { margin-bottom: .8rem; }
  .heritage__prose { margin-top: .7rem; gap: .5rem; }
  .heritage .values { margin: .8rem 0 1rem; row-gap: .6rem; }
  .heritage .values li { padding-top: .45rem; }
  .heritage .values__name { margin-bottom: .1rem; }
  .heritage__logo { margin-bottom: 1.4rem; }
}
@media (min-width: 1000px) and (max-height: 660px) {
  .heritage .eyebrow { margin-bottom: .6rem; }
  .heritage__prose { margin-top: .5rem; gap: .4rem; }
  .heritage .values { margin: .6rem 0 .8rem; row-gap: .4rem; }
  .heritage .values li { padding-top: .35rem; }
  .heritage .values__name { margin-bottom: 0; }
}
/* Apparition : logo, puis grande photo, puis petite photo — lente et sans effet appuyé */
@media (prefers-reduced-motion: no-preference) {
  .js .heritage__media.stagger > * { transform: translateY(14px); transition-duration: 1.3s; transition-delay: calc(var(--i, 0) * 220ms); }
  .js .heritage__media.stagger.is-in > * { transform: none; }
}

/* Valeurs (accueil + histoire) */
.values { display: grid; gap: 1.4rem 2.4rem; margin: 2.2rem 0 2.6rem; }
.values li { padding-top: 1rem; border-top: 1px solid var(--line-strong); font-size: .95rem; line-height: 1.6; color: var(--text); }
.values__name {
  display: flex; align-items: center; gap: .6rem; margin-bottom: .35rem;
  font-family: var(--serif); font-size: 1.35rem; font-weight: 500; line-height: 1.2; color: var(--ivory);
}
.values__name::before { content: ""; flex: none; width: 6px; height: 6px; transform: rotate(45deg); background: var(--gold); }
@media (min-width: 600px) { .values { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .values--four { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

/* ---------- 2. Gamme : cinq liqueurs, grille équilibrée ---------- */
.range__list.range__list--five { display: flex; flex-wrap: wrap; justify-content: center; gap: 2.6rem 1rem; }
.range__list--five > .bottle { flex: 0 1 calc((100% - 1rem) / 2); min-width: 0; }
@media (min-width: 700px) {
  .range__list.range__list--five { gap: 3.4rem clamp(1.2rem, 2.4vw, 2rem); }
  .range__list--five > .bottle { flex-basis: calc((100% - 2 * clamp(1.2rem, 2.4vw, 2rem)) / 3); }
}
@media (min-width: 1100px) {
  .range__list--five > .bottle { flex-basis: calc((100% - 4 * clamp(1.2rem, 2.4vw, 2rem)) / 5); }
  .range .bottle__name, .range__list--five .bottle__name { font-size: 1.5rem; }
}
.range__list--five .bottle__img { aspect-ratio: 2 / 3; }
.range__list--five .bottle__img img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 50%; }
.range__list--five .bottle__img--ambiance img { object-position: 50% 22%; }
.bottle__img { transition: transform .6s var(--ease); }
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .bottle__link:hover .bottle__img { transform: translateY(-6px); }
}

/* ---------- 3. Article mis en avant (blog + accueil) ---------- */
.feature {
  display: grid; overflow: hidden;
  border: 1px solid rgba(210, 187, 134, .3);
  background: radial-gradient(120% 90% at 0% 0%, rgba(210, 187, 134, .09), rgba(210, 187, 134, 0) 60%), rgba(236, 227, 208, .02);
}
.feature__media { display: block; aspect-ratio: 3 / 2; overflow: hidden; background: var(--bg-2); }
.feature__media picture, .feature__media img { display: block; width: 100%; height: 100%; }
.feature__media img { object-fit: cover; transition: transform 1.2s var(--ease); }
.feature__body { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 1rem; padding: clamp(1.6rem, 4vw, 3.4rem); }
.feature__title { font-family: var(--serif); font-weight: 500; font-size: clamp(1.7rem, 1.3rem + 1.4vw, 2.5rem); line-height: 1.12; color: var(--ivory); text-wrap: balance; }
.feature__title a { color: inherit; text-decoration: none; transition: color .3s var(--ease); }
.feature__title a:hover { color: var(--gold-soft); }
.feature__excerpt { max-width: 34rem; font-size: 1.02rem; color: var(--text); }
.feature .btn { margin-top: .6rem; }
.feature .post__meta { flex-wrap: wrap; gap: .4rem 1.2rem; }
@media (min-width: 1000px) { .feature { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); } .feature__media { aspect-ratio: auto; min-height: 26rem; } }
@media (hover: hover) and (prefers-reduced-motion: no-preference) { .feature:hover .feature__media img { transform: scale(1.03); } }
@media (max-width: 699px) { .feature .btn { width: 100%; } }
.journal-feature { padding-top: clamp(2rem, 4vw, 3rem); }

/* ---------- 4. Cocktails : cartes recette + accords ---------- */
.pairs { display: grid; gap: clamp(1.4rem, 3vw, 2.2rem); }
@media (min-width: 1100px) { .pairs { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.pair {
  display: grid; gap: 1.4rem; align-items: start;
  padding: clamp(1rem, 2.4vw, 1.6rem);
  border: 1px solid rgba(210, 187, 134, .3);
  background: radial-gradient(120% 90% at 0% 0%, rgba(210, 187, 134, .09), rgba(210, 187, 134, 0) 60%), rgba(236, 227, 208, .02);
  transition: border-color .4s var(--ease);
}
@media (min-width: 560px) { .pair { grid-template-columns: minmax(9rem, 2fr) minmax(0, 3fr); } }
.pair__media { display: block; aspect-ratio: 941 / 1672; overflow: hidden; background: var(--bg-2); }
.pair__media picture, .pair__media img { display: block; width: 100%; height: 100%; }
.pair__media img { object-fit: cover; transition: transform 1.2s var(--ease); }
@media (max-width: 559px) { .pair__media { aspect-ratio: 4 / 5; } .pair__media img { object-position: 50% 30%; } }
.pair__body { display: flex; flex-direction: column; min-width: 0; height: 100%; }
.pair__ref { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem .9rem; font-size: .66rem; letter-spacing: .26em; text-transform: uppercase; color: var(--gold-soft); }
.pair__tag { padding: .25rem .55rem; border: 1px solid rgba(210, 187, 134, .45); letter-spacing: .18em; color: var(--cream); }
.pair__name { margin-top: .7rem; font-family: var(--serif); font-weight: 500; font-size: clamp(1.7rem, 1.4rem + 1vw, 2.2rem); line-height: 1.1; color: var(--ivory); }
.pair__name a { color: inherit; text-decoration: none; transition: color .3s var(--ease); }
.pair__name a:hover { color: var(--gold-soft); }
.pair__meta { margin-top: .5rem; font-size: .82rem; letter-spacing: .06em; color: var(--muted); }
.pair__ing { display: grid; gap: .1rem; margin-top: 1.2rem; border-top: 1px solid var(--line); }
.pair__ing li { display: grid; grid-template-columns: 4.1rem 1fr; gap: .8rem; align-items: baseline; padding: .5rem 0; border-bottom: 1px solid var(--line); font-size: .95rem; line-height: 1.35; color: var(--cream); }
.pair__qty { font-family: var(--serif); font-size: 1.25rem; line-height: 1; color: var(--gold); font-variant-numeric: lining-nums; font-feature-settings: "lnum" 1; white-space: nowrap; }
.pair__qty abbr { font-size: .62em; text-decoration: none; border: 0; }
.pair__extra { margin-top: .8rem; font-size: .88rem; color: var(--text); }
.pair__extra span { display: block; margin-bottom: .15rem; font-size: .62rem; letter-spacing: .24em; text-transform: uppercase; color: var(--gold-soft); }
.pair__ctas { display: flex; flex-wrap: wrap; align-items: center; gap: .8rem 1.6rem; margin-top: auto; padding-top: 1.4rem; }
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .pair:hover { border-color: rgba(210, 187, 134, .5); }
  .pair:hover .pair__media img { transform: scale(1.03); }
}
@media (max-width: 559px) { .pair__ctas .btn { width: 100%; } }

.accords__inner {
  position: relative;
  padding: clamp(2.5rem, 6vw, 4.5rem) clamp(1.4rem, 5vw, 4.5rem);
  border: 1px solid rgba(210, 187, 134, .3);
  background: radial-gradient(80% 100% at 50% 0%, rgba(210, 187, 134, .10), rgba(210, 187, 134, 0) 70%), rgba(236, 227, 208, .02);
}
.accords__inner::before { content: ""; position: absolute; inset: 6px; border: 1px solid rgba(210, 187, 134, .1); pointer-events: none; }
.accords .section__head { margin-bottom: clamp(1.8rem, 4vw, 2.6rem); }
.accords__list { border-top: 1px solid var(--line); }
.accords__list li { display: flex; flex-wrap: wrap; align-items: baseline; gap: .3rem 1rem; padding: 1.05rem 0; border-bottom: 1px solid var(--line); }
.accords__liq { font-family: var(--serif); font-size: clamp(1.35rem, 1.2rem + .6vw, 1.7rem); color: var(--ivory); text-decoration: none; transition: color .3s var(--ease); }
.accords__sep { flex: 1 1 3rem; min-width: 2rem; border-bottom: 1px dotted rgba(210, 187, 134, .45); transform: translateY(-.35em); }
.accords__ck { font-size: .92rem; letter-spacing: .04em; color: var(--gold-soft); text-decoration: none; text-align: right; transition: color .3s var(--ease); }
.accords__ck small { display: block; font-size: .64rem; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.accords__liq:hover, .accords__ck:hover { color: var(--cream); }
@media (max-width: 559px) { .accords__sep { display: none; } .accords__list li { flex-direction: column; } .accords__ck { text-align: left; } }

/* ---------- 5. Notre histoire ---------- */
.story-hero {
  position: relative; isolation: isolate; overflow: hidden;
  display: flex; align-items: flex-end;
  min-height: min(92svh, 56rem);
  padding: calc(var(--header-h) + env(safe-area-inset-top) + 4rem) var(--gutter) clamp(3rem, 7vw, 5.5rem);
}
.story-hero__img { position: absolute; inset: 0; z-index: -2; }
.story-hero__img img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 60%; }
.story-hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, rgba(13, 14, 12, .72) 0, rgba(13, 14, 12, .15) 30%, rgba(13, 14, 12, .35) 55%, var(--bg) 100%),
    linear-gradient(90deg, rgba(13, 14, 12, .7), rgba(13, 14, 12, 0) 70%);
}
.story-hero__text { width: 100%; max-width: calc(var(--max) - 2 * var(--gutter)); margin: 0 auto; }
.story-hero__text > * { max-width: 46rem; }
.story-hero .crumbs, .story-hero .crumbs a { color: var(--cream); }
.story-hero__title { font-family: var(--serif); font-weight: 500; font-size: clamp(2.7rem, 1.6rem + 4.4vw, 5.4rem); line-height: 1.02; color: var(--ivory); text-wrap: balance; }
.story-hero__lead { margin-top: 1.4rem; max-width: 38rem; font-family: var(--serif); font-size: clamp(1.25rem, 1.1rem + .6vw, 1.6rem); line-height: 1.4; color: var(--cream); }
@media (prefers-reduced-motion: no-preference) {
  .story-hero__img img { animation: lg-zoom 14s var(--ease) both; }
  .story-hero__text { animation: lg-rise 1.2s .15s var(--ease) both; }
}
@keyframes lg-zoom { from { transform: scale(1.08); } to { transform: scale(1); } }
@keyframes lg-rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

.story-prologue { width: 100%; max-width: var(--max); margin: 0 auto; padding: var(--section) var(--gutter) 0; }
.story-prologue__inner {
  display: grid; gap: clamp(2.5rem, 6vw, 6rem); align-items: center;
  padding: clamp(2.5rem, 6vw, 5rem) clamp(1.4rem, 5vw, 4.5rem);
  border-top: 1px solid rgba(210, 187, 134, .28); border-bottom: 1px solid rgba(210, 187, 134, .28);
  background: radial-gradient(70% 90% at 100% 0%, rgba(210, 187, 134, .10), rgba(210, 187, 134, 0) 70%);
}
@media (min-width: 900px) { .story-prologue__inner { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); } }
.story-prologue__media picture.frame { max-width: 28rem; }
@media (max-width: 899px) { .story-prologue__media picture.frame { max-width: 22rem; margin: 0 auto; } }
.story-prologue .prose { max-width: 38rem; }

.chapter--big .split__media picture.frame { max-width: 34rem; }
.chapter--big .split__media picture.frame--wide { max-width: none; aspect-ratio: 762 / 506; }
/* 04 · Le thé : photo paysage dans un cadre vertical 4/5 (ordinateur), cadrée à droite
   pour garder la théière, le versement, le bol et les feuilles. Mobile : cadre 4/3 commun. */
@media (min-width: 900px) {
  .chapter--big .split__media picture.frame--the { aspect-ratio: 4 / 5; }
  .chapter--big .split__media picture.frame--the img { object-position: 95% 50%; }
}
.chapter--big .h2 { font-size: clamp(2.1rem, 1.4rem + 2.6vw, 3.6rem); }
.chapter--big .prose { font-size: 1.06rem; }
.chapter--big .prose p:first-child { font-family: var(--serif); font-size: clamp(1.25rem, 1.1rem + .5vw, 1.45rem); line-height: 1.45; color: var(--cream); }

.story-values__inner {
  padding: clamp(2.5rem, 6vw, 4.5rem) clamp(1.4rem, 5vw, 4.5rem);
  border: 1px solid rgba(210, 187, 134, .3);
  background: radial-gradient(80% 120% at 0% 0%, rgba(210, 187, 134, .10), rgba(210, 187, 134, 0) 60%), rgba(236, 227, 208, .02);
}
.story-values .section__head { margin-bottom: 1rem; }
.story-values .values { margin-bottom: 0; }

/* ---------- 6. Apparitions douces (respecte « réduire les animations ») ---------- */
@media (prefers-reduced-motion: no-preference) {
  .js .stagger > * { opacity: 0; transform: translateY(22px); transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: calc(var(--i, 0) * 90ms); }
  .js .stagger.is-in > * { opacity: 1; transform: none; }
}

/* ---------- 7. Mobile ---------- */
@media (max-width: 699px) {
  .heritage .btn { width: 100%; }
  .heritage__media { --main: 86%; --inset: 46%; --logo: 10rem; padding-bottom: 2.6rem; }
  .heritage__inset { outline-width: 4px; }
  .story-hero { min-height: 78svh; }
  .range__list--five .bottle__desc { font-size: .86rem; }
}

/* ---------- 8. Corrections responsive (oct. 2026) ---------- */
/* Ancres (#contenu, sommaires, filtres) : la cible s'arrête sous l'en-tête fixe au lieu de passer derrière */
html { scroll-padding-top: calc(var(--header-h) + env(safe-area-inset-top) + 1.25rem); }
/* Téléphones : même distance entre le bandeau et le premier texte sur toutes les pages
   (auparavant de 28 à 56 px selon les gabarits) */
@media (max-width: 699px) {
  .page-head, .page-head--compact, .product, .cocktail, .article {
    padding-top: calc(var(--header-h) + env(safe-area-inset-top) + 3rem);
  }
  .hero__text { padding-top: calc(var(--header-h) + env(safe-area-inset-top) + 3rem); }
  .article__title { font-size: clamp(2.1rem, 9vw, 2.6rem); line-height: 1.08; text-wrap: balance; }
  .page-head__title, .recipe__name, .product__title { text-wrap: balance; }
}
/* Tablettes : fiches produit, fiches cocktail et carnet de cocktails moins collés au bandeau */
@media (min-width: 700px) and (max-width: 1023px) {
  .page-head--compact, .product, .cocktail { padding-top: calc(var(--header-h) + env(safe-area-inset-top) + 3.5rem); }
}

/* ---------- 9. Lisibilité sur téléphone (oct. 2026) ---------- */
/* Petites étiquettes en capitales (notes des bouteilles, fiches cocktail) : minimum ~11,5 px sur téléphone et tablette.
   Ordinateur (1024 px et plus) inchangé. */
@media (max-width: 1023px) {
  .bottle__notes, .recipe__facts dt, .accords__ck small, .pair__extra span, .rc__extra span, .route__badge { font-size: .72rem; letter-spacing: .16em; }
}