/* Version E — « Du levant au couchant » : proposition originale */
/* Metric-matched fallbacks: text renders in adjusted Georgia/Arial while the
   webfonts load, so the swap doesn't reflow the page. */
@font-face {
  font-family: "Cormorant Fallback"; src: local("Georgia");
  size-adjust: 88%; ascent-override: 105%; line-gap-override: 0%;
}
@font-face {
  font-family: "Inter Fallback"; src: local("Arial"), local("Helvetica Neue");
  size-adjust: 107%; ascent-override: 90%; descent-override: 22%; line-gap-override: 0%;
}
:root {
  --paper: #f7eddf; --ink: #2a2118; --wine: #ae3838; --night: #141433;
  --night-ink: #e9e4f2; --dawn: #f3d9c8; --gold: #c9a96e;
  --serif: "Cormorant Garamond", "Cormorant Fallback", Georgia, serif;
  --sans: "Inter", "Inter Fallback", system-ui, sans-serif;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: var(--sans); background: var(--paper); color: var(--ink); line-height: 1.6; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.08; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.ek { font-size: .72rem; letter-spacing: .24em; text-transform: uppercase; opacity: .8; }
.chip { display: inline-block; font-size: .72rem; border: 1px solid currentColor; opacity: .85;
  border-radius: 2em; padding: .12em .7em; margin: 0 .25em .3em 0; }
.bt { display: inline-block; font-size: .8rem; letter-spacing: .16em; text-transform: uppercase;
  text-decoration: none; border: 1px solid currentColor; padding: .8em 2em; border-radius: 2em;
  background: none; color: inherit; cursor: pointer; transition: all .2s; }
.bt:hover { background: var(--wine); border-color: var(--wine); color: #fff; }
.bt-dark { border-color: var(--ink); }
.link { color: var(--wine); }

/* header — nav on the left, large logo wordmark on the right */
:root { --hd-h: 78px; }
.hd { position: sticky; top: 0; z-index: 40; height: var(--hd-h); display: flex;
  align-items: center; gap: 1.5rem; padding: 0 1.4rem; border-bottom: 1px solid #e3d5bd;
  /* solid fallback FIRST — browsers without color-mix() keep it (transparent
     sticky header = the "text out of place" bug) */
  background: var(--paper);
  background: color-mix(in srgb, var(--paper) 92%, transparent);
  backdrop-filter: blur(10px); }
.hd-brand { margin-left: auto; display: flex; align-items: center; }
.hd-brand img { height: 54px; width: auto; display: block; }
.hd > nav { display: flex; align-items: center; gap: 1.2rem; flex-wrap: wrap; }
.hd > nav > a { font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; text-decoration: none; }
.hd > nav > a:hover { color: var(--wine); }
/* « Les vins » dropdown — CSS-only, opens on hover or keyboard focus */
.nav-drop { position: relative; display: flex; align-items: center; }
.nav-drop-t { font: inherit; font-size: .78rem; letter-spacing: .1em; text-transform: uppercase;
  background: none; border: 0; padding: 0; cursor: pointer; color: inherit;
  display: inline-flex; align-items: center; gap: .35em; }
.nav-drop-t:hover, .nav-drop:focus-within .nav-drop-t { color: var(--wine); }
.nav-drop .caret { font-size: .7em; transition: transform .18s; }
.nav-drop:hover .caret, .nav-drop:focus-within .caret { transform: rotate(180deg); }
.nav-drop-menu { position: absolute; top: 100%; left: -.9rem; margin-top: .6rem; min-width: 220px;
  background: var(--paper); border: 1px solid #e3d5bd; border-radius: 0;
  box-shadow: 0 12px 30px rgba(42,33,24,.16); padding: .5rem .9rem; display: grid; gap: .05rem;
  opacity: 0; visibility: hidden; transform: translateY(-4px); z-index: 60;
  transition: opacity .16s, transform .16s, visibility 0s .16s; }
.nav-drop-menu::before { content: ""; position: absolute; top: -.6rem; left: 0; right: 0; height: .6rem; }
.nav-drop:hover .nav-drop-menu, .nav-drop:focus-within .nav-drop-menu {
  opacity: 1; visibility: visible; transform: none; transition: opacity .16s, transform .16s; }
.nav-drop-menu a { font-size: .9rem; text-decoration: none; padding: .5em 0; white-space: nowrap; }
.nav-drop-menu a:hover { color: var(--wine); }
.mnav-h { font-size: .68rem; letter-spacing: .18em; text-transform: uppercase; opacity: .55;
  margin: .8rem 0 .1rem; }
.mnav-panel a:first-of-type + .mnav-h, .mnav-h:first-child { margin-top: 0; }
.hd-cart { font-size: .78rem; border: 1px solid var(--gold); border-radius: 2em; padding: .35em .9em;
  text-decoration: none; white-space: nowrap; }

/* mobile menu — <details>, no JS */
.mnav { display: none; position: relative; }
.mnav summary { list-style: none; cursor: pointer; font-size: 1.5rem; line-height: 1;
  padding: .15em .4em; user-select: none; }
.mnav summary::-webkit-details-marker { display: none; }
.mnav[open] summary { color: var(--wine); }
.mnav-panel { position: absolute; right: 0; top: 2.4rem; z-index: 60; min-width: 230px;
  background: var(--paper); border: 1px solid #e3d5bd; border-radius: 0;
  box-shadow: 0 10px 30px rgba(42,33,24,.18); padding: 1rem 1.3rem; display: grid; gap: .1rem; }
.mnav-panel a { display: block; text-decoration: none; font-size: .95rem; padding: .5em 0;
  border-bottom: 1px solid #efe3cd; }
.mnav-panel a:last-child { border-bottom: none; }
.mnav-panel a:hover { color: var(--wine); }

/* sky hero */
/* le héros laisse la place aux tuiles : header (78) + héros + tuiles (~205,
   chevauchement -3.5rem) ≤ hauteur d'écran — les 3 catégories sont toujours
   visibles sans scroller */
.sky-hero { position: relative; min-height: max(430px, calc(100vh - 250px));
  display: grid; align-items: end; isolation: isolate; overflow: hidden; }
@supports (height: 100svh) {
  .sky-hero { min-height: max(430px, calc(100svh - 250px)); }
}
.sky-hero picture { position: absolute; inset: 0; z-index: -1; }
.sky-hero img { width: 100%; height: 100%; object-fit: cover; }
.sky-hero::after { content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(10deg, rgba(18,12,10,.66) 8%, rgba(18,12,10,.08) 55%); }
.sky-inner { color: #fbf5ea; padding: 3rem clamp(1.4rem, 6vw, 6rem) 4.5rem; max-width: 900px; }
.sky-inner h1 { font-size: clamp(3.2rem, 9vw, 6.5rem); font-weight: 500; margin: .18em 0 .25em; }
.sky-sub { font-family: var(--serif); font-style: italic; font-size: clamp(1.05rem, 2.2vw, 1.45rem); max-width: 34em; }

/* les 3 catégories, en grand — toujours déployées, dans le flux normal */
.cat-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem;
  max-width: 1240px; margin: -3.5rem auto 0; padding: 0 1.4rem;
  position: relative; z-index: 5; }
.tile { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 1rem; text-decoration: none;
  border-radius: 0; padding: 2rem 1.8rem 1.7rem; min-height: 205px;
  box-shadow: 0 14px 34px rgba(20,14,10,.22);
  transition: transform .2s, box-shadow .2s, padding .25s, min-height .25s; }
.tile:hover { transform: translateY(-4px); box-shadow: 0 20px 42px rgba(20,14,10,.3); }
.tile-text { display: grid; align-content: start; gap: .55rem; align-self: start; }
/* the category's real bottles, standing on the tile's bottom edge */
.tile-bottles { display: flex; align-items: flex-end; gap: .25rem; align-self: end; margin-bottom: -.4rem; }
.tile-bottles img { height: clamp(6.5rem, 10.5vw, 9.5rem); width: auto; filter: drop-shadow(0 6px 8px rgba(20,14,10,.25)); }
.tile-n3 img { height: clamp(5.4rem, 8.2vw, 7.4rem); }
.tile-title { font-family: var(--serif); font-size: clamp(1.5rem, 2.4vw, 2rem); font-weight: 600;
  line-height: 1.1; transition: font-size .25s; }
.tile-tag { font-family: var(--serif); font-style: italic; font-size: .98rem; opacity: .9; }
.tile-more { font-size: .72rem; letter-spacing: .18em; text-transform: uppercase; margin-top: .5rem; opacity: .85; }
.tile-tag, .tile-more { max-height: 6em; transition: opacity .2s, max-height .25s, margin .25s; }
.tile-night { background: linear-gradient(160deg, #191740, #3a2a4d); color: var(--night-ink); }
.tile-day { background: #fffaf1; color: var(--ink); }
.tile-dusk { background: linear-gradient(160deg, var(--dawn), #eab6a0); color: #4a2420; }

/* barre compacte fixe (hors flux) — apparaît quand les tuiles sont passées */
.catfix { position: fixed; top: var(--hd-h); left: 0; right: 0; z-index: 30;
  display: flex; justify-content: center; gap: .7rem; padding: .5rem 1.4rem;
  background: var(--paper);
  background: color-mix(in srgb, var(--paper) 94%, transparent);
  backdrop-filter: blur(8px); border-bottom: 1px solid #e3d5bd;
  transform: translateY(calc(-100% - var(--hd-h))); visibility: hidden;
  transition: transform .28s ease, visibility 0s .28s; }
.catfix.show { transform: translateY(0); visibility: visible; transition: transform .28s ease; }
.catfix a { display: flex; align-items: center; justify-content: center; min-width: 0;
  text-decoration: none; border-radius: 0; padding: .55em 1.4em;
  font-family: var(--serif); font-size: 1.05rem; font-weight: 600; line-height: 1.15; }
.catfix a.on { outline: 2px solid var(--wine); outline-offset: -2px; }
@media (prefers-reduced-motion: reduce) { .catfix { transition: none; } .catfix.show { transition: none; } }
#aube, #table, #offrir { scroll-margin-top: calc(var(--hd-h) + 64px); }

/* epochs */
.epoch { padding: 3.7rem 0 3.2rem; }
.epoch-head { max-width: 780px; margin: 0 auto 2rem; text-align: center; padding: 0 1.4rem; }
.epoch-head h2 { font-size: clamp(2rem, 4.2vw, 3rem); margin: .3em 0; }
.epoch-tag { font-family: var(--serif); font-style: italic; font-size: 1.15rem; }
.epoch-night { background: linear-gradient(180deg, #10102b 0%, #1c1a40 55%, #3a2a4d 100%); color: var(--night-ink); }
.epoch-night .ek { color: var(--gold); opacity: 1; }
.epoch-day { background: var(--paper); }
.epoch-dusk { background: linear-gradient(180deg, var(--paper) 0%, var(--dawn) 100%); }

/* panneaux produit compacts (nuit ET jour) */
.panel { display: grid; grid-template-columns: minmax(300px, 44%) 1fr; gap: 2.2rem;
  max-width: 1140px; margin: 0 auto 1.5rem; padding: 0 1.4rem; align-items: center; }
.panel:nth-child(odd) .panel-img { order: 2; }
.panel-img { display: block; border-radius: 0; overflow: hidden; }
.panel-img img { transition: transform .5s; aspect-ratio: 1.9 / 1; object-fit: cover; }
.panel-img:hover img { transform: scale(1.025); }
.panel-body { padding: .4rem 0; }
.panel-body h3 { font-size: clamp(1.6rem, 2.8vw, 2.3rem); font-weight: 500; margin: .18em 0; }
.panel-body h3 a { text-decoration: none; }
.panel-body h3 a:hover { color: var(--gold); }
.panel-body .ek small { text-transform: none; letter-spacing: .04em; }
.panel-tag { font-family: var(--serif); font-style: italic; font-size: 1.05rem; margin-bottom: .6rem; }
.panel-pair { font-size: .82rem; margin-bottom: .7rem; }
.panel-meta { display: flex; align-items: center; gap: 1.2rem; }
.panel-meta .bt { padding: .55em 1.5em; font-size: .74rem; }
.panel-price { font-family: var(--serif); font-size: 1.4rem; color: var(--gold); }

/* variante jour : panneau sur carte claire, accents vin */
.epoch-day .panel { background: #fffaf1; border-radius: 0; padding: 1rem;
  box-shadow: 0 1px 4px rgba(42,33,24,.09); gap: 1.8rem; }
.epoch-day .panel-body { padding-right: 1rem; }
.epoch-day .panel-body h3 a:hover { color: var(--wine); }
.epoch-day .panel-price { color: var(--wine); }
.epoch-day .panel + .panel { margin-top: 0; }

/* coffrets */
.dusk-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; max-width: 1240px;
  margin: 0 auto; padding: 0 1.4rem; }
.coffret { background: #fff; border-radius: 0; overflow: hidden; box-shadow: 0 2px 10px rgba(42,33,24,.09);
  display: flex; flex-direction: column; }
.coffret-img img { aspect-ratio: 3 / 2; object-fit: cover; }
.coffret-body { padding: 1.5rem 1.6rem 1.8rem; display: flex; flex-direction: column; gap: .6rem; flex: 1; }
.coffret-body h3 { font-size: 1.5rem; }
.coffret-body h3 a { text-decoration: none; }
.coffret-body .bt { margin-top: auto; align-self: flex-start; }

/* live band */
.live { display: grid; grid-template-columns: .8fr 1.2fr; gap: 3rem; max-width: 1240px;
  margin: 5rem auto; padding: 0 1.4rem; }
.live h2 { font-size: 1.8rem; margin: .4em 0 1em; }
.live-post { display: block; text-decoration: none; padding: .8em 0; border-bottom: 1px solid #e3d5bd; }
.live-post time { display: block; font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; opacity: .65; }
.live-post span { font-family: var(--serif); font-size: 1.15rem; }
.live-post:hover span { color: var(--wine); }
.live .bt { margin-top: 1.2rem; }
.live-insta .ek a { color: var(--wine); }
.insta-strip { display: grid; grid-template-columns: repeat(6, 1fr); gap: .5rem; }
.insta-item { position: relative; display: block; overflow: hidden; border-radius: 0; }
.insta-item img { aspect-ratio: 4 / 5; object-fit: cover; border-radius: 0; transition: transform .25s; }
.insta-item:hover img { transform: scale(1.04); }
/* live feed: video/carousel badge + caption revealed on hover, hidden from AT
   (the link's alt text already carries the caption) */
.insta-badge { position: absolute; top: .4rem; right: .5rem; font-size: .8rem; color: #fff;
  text-shadow: 0 1px 3px rgba(0,0,0,.6); pointer-events: none; }
.insta-cap, .insta-date { position: absolute; left: 0; right: 0; bottom: 0; padding: .45rem .5rem;
  font-size: .72rem; line-height: 1.25; color: #fbf5ea; pointer-events: none;
  background: linear-gradient(0deg, rgba(14,10,8,.82), rgba(14,10,8,0));
  opacity: 0; transition: opacity .25s; }
.insta-item:hover .insta-cap, .insta-item:focus-visible .insta-cap { opacity: 1; }
.insta-date { bottom: auto; top: 0; background: none; text-shadow: 0 1px 3px rgba(0,0,0,.7); opacity: .9; }
@media (prefers-reduced-motion: reduce) {
  .insta-item:hover img { transform: none; }
  .insta-cap { transition: none; }
}

/* product page: the posts a curator tagged to this wine */
.insta-product { padding: 2.4rem clamp(1.4rem, 6vw, 6rem) 0; max-width: 1180px; margin: 0 auto; }
.insta-product h2 { font-size: clamp(1.3rem, 2.4vw, 1.9rem); font-weight: 500; margin: 0 0 1rem; }
.insta-product .insta-strip { grid-template-columns: repeat(3, 1fr); }
.insta-follow { margin: .8rem 0 0; font-size: .85rem; }
.insta-follow a { color: var(--wine); }

/* page banner — the product pages, and Domaine / Histoire (.phero-page), share it:
   same height as the scene banners (scenes.css), title bottom-left, shade on the left */
.phero { position: relative; min-height: max(52vh, 420px); display: grid; align-items: end; isolation: isolate;
  overflow: hidden; color: #fbf5ea; background: var(--tint, var(--night)); }
.phero-bg { position: absolute; inset: 0; z-index: -1; }
.phero-video { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; object-fit: cover; }
@media (prefers-reduced-motion: reduce) { .phero-video { display: none; } }
.phero img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }
.phero::after { content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(80deg, rgba(14,10,8,.62) 0%, rgba(14,10,8,.3) 34%, rgba(14,10,8,0) 60%); }
@media (max-width: 760px) {
  .phero::after { background: linear-gradient(0deg, rgba(14,10,8,.62) 0%, rgba(14,10,8,.28) 40%, rgba(14,10,8,0) 66%); }
}
.phero-inner { padding: 2.2rem clamp(1.4rem, 6vw, 6rem) 1.6rem; max-width: 980px; }
.phero-inner h1 { font-size: clamp(2rem, 4.6vw, 3.4rem); font-weight: 500; margin: .1em 0; }
.phero-tag { font-family: var(--serif); font-style: italic; font-size: clamp(1rem, 1.8vw, 1.25rem); }
.crumbs { font-size: .75rem; letter-spacing: .06em; margin-bottom: .6rem; opacity: .85; }

/* main: bottle left, story + purchase right */
.pmain { display: grid; grid-template-columns: .85fr 1.15fr; gap: 3rem; max-width: 1140px;
  margin: 3rem auto; padding: 0 1.4rem; align-items: start; }
.pmain-bottle { position: sticky; top: calc(var(--hd-h) + 1rem); background: #fff;
  border-radius: 0; padding: 1.4rem; box-shadow: 0 2px 12px rgba(42,33,24,.1); }
.pmain-bottle img { max-height: 74vh; width: 100%; object-fit: contain; }
/* …et son aperçu doit être cadré comme elle, sinon il déborde autour. */
.pmain-bottle img.lqip { background-size: contain; }
.pmain-body h2 { font-size: 1.7rem; margin: .6rem 0 .8rem; }
.pmain-body > p { margin-bottom: .9rem; max-width: 60ch; }
.serve { font-family: var(--serif); font-style: italic; }
.medals { list-style: none; font-size: .9rem; margin-bottom: .9rem; }
.medals li::before { content: "🏅 "; }
/* La remise au volume, annoncée avant la caisse plutôt que découverte dedans. */
.pvd { font-size: .8rem; color: var(--wine); margin: -.3rem 0 .6rem 0; font-weight: 500; }
.pvd[hidden] { display: none; }
.cartd-vd { display: flex; justify-content: space-between; gap: 1rem;
  font-size: .82rem; color: var(--wine); margin: 0 0 .3rem 0; }
.cartd-vd[hidden] { display: none; }

/* Compteur de bouteilles de la fiche produit. Remplace le menu des
   conditionnements : le panier compte des bouteilles, pas des cartons. */
/* « Momentanément épuisé » occupe la place du prix sur un panneau d'accueil :
   même ligne, mais discret — c'est une absence, pas une offre. */
.panel-price.panel-out { font-family: var(--sans); font-size: .82rem;
  letter-spacing: .06em; text-transform: uppercase; opacity: .7; }

.pqty { display: flex; align-items: center; flex-wrap: wrap; gap: .7rem; margin: .9rem 0; }
.pqty-h { font-size: .78rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--ink); opacity: .75; }
.pqty-step { display: inline-flex; align-items: center;
  border: 1px solid var(--ink); border-radius: 2em; overflow: hidden; }
.pqty-step button { border: 0; background: none; font: inherit; font-size: 1.1rem;
  line-height: 1; padding: .35em .75em; cursor: pointer; color: var(--ink); }
.pqty-step button:hover { background: var(--ink); color: var(--paper); }
.pqty-step output { min-width: 2.4em; text-align: center; font-variant-numeric: tabular-nums;
  font-size: 1rem; padding: 0 .1em; }
.pqty-quick { display: inline-flex; gap: .4rem; }
.pqty-quick button { border: 1px solid var(--ink); border-radius: 2em; background: none;
  font: inherit; font-size: .78rem; padding: .3em .9em; cursor: pointer; color: var(--ink); opacity: .75; }
.pqty-quick button:hover { opacity: 1; background: var(--ink); color: var(--paper); }
.pqty-quick[hidden] { display: none; }

.pnote { font-size: .82rem; opacity: .75; }
.compo { list-style: none; display: grid; gap: 1rem; margin-bottom: 1.2rem; }
.compo a { display: flex; gap: 1rem; align-items: center; text-decoration: none;
  background: #fff; border-radius: 0; padding: .8rem 1rem; box-shadow: 0 1px 3px rgba(42,33,24,.08); }
.compo img { width: 72px; border-radius: 0; }
.compo em { display: block; font-size: .85rem; opacity: .75; }
.pcta { margin-top: 1.4rem; padding-top: 1.4rem; border-top: 1px solid #e8dcc4; max-width: 30rem; }
.pprice { font-family: var(--serif); font-size: 2rem; }
.pprice s { font-size: .7em; opacity: .55; margin-right: .3em; }
.pprice small { display: block; font-family: var(--sans); font-size: .72rem; opacity: .7; }
.pv { display: block; margin: 1rem 0; font-size: .88rem; }
.pv select { margin-left: .5em; font: inherit; padding: .45em .8em; border: 1px solid #d8c9ae; border-radius: 4px; }
.bt-buy { width: 100%; text-align: center; margin-top: .8rem; background: var(--wine);
  border-color: var(--wine); color: #fff; }
.bt-buy:hover { background: #8c2626; }
.buy-note { font-size: .74rem; opacity: .7; margin-top: .6rem; }

/* fiche technique graphique (proto) */
/* ---- fiche technique : planche analytique ------------------------------- */
/* Section eyebrow shared by the fiche blocks */
.fk { font-size: .68rem; letter-spacing: .2em; text-transform: uppercase;
  opacity: .55; margin-bottom: .75rem; }

/* Encépagement — part-to-whole band. 2px surface gaps separate the fills; the
   labels live underneath in ink, aligned to their own segment. */
.cep { margin: 1.5rem 0 2.2rem; }
.cep-bar { display: flex; gap: 2px; height: 18px; }
.cep-bar i { display: block; min-width: 2px; }
.cep-bar i:first-child { border-radius: 3px 0 0 3px; }
.cep-bar i:last-child { border-radius: 0 3px 3px 0; }
.cep-keys { display: flex; gap: 2px; margin-top: .6rem; }
.cep-key { display: grid; gap: .18rem; min-width: 0; padding-right: .8rem; }
.cep-tick { display: block; width: 16px; height: 2px; }
.cep-name { font-size: .78rem; line-height: 1.25; opacity: .8; }
.cep-pct { font-family: var(--serif); font-size: 1.15rem; font-weight: 600; line-height: 1; }

/* Analyse — each value on a labelled domain, so the reader can see what the
   position means. A marker, not a fill: there is no "full" for 13 % alcohol. */
.fmeas { margin: 2rem 0; border-top: 1px solid #e3d5bd; padding-top: 1.3rem;
  display: grid; grid-template-columns: 1fr 1fr; gap: 0 3.5rem; }
.fmeas > .fk { grid-column: 1 / -1; }
/* each measure is a compact readout: name left, value right, scale beneath —
   the track stays short so the marker reads against its own number */
.fmeas-row { display: grid; grid-template-columns: 1fr auto; align-items: baseline;
  gap: .1rem .9rem; padding: .85rem 0; border-bottom: 1px solid #efe3cd; }
.fmeas-row:nth-last-child(-n+2) { border-bottom: 0; }
.fmeas-label { font-size: .7rem; letter-spacing: .16em; text-transform: uppercase; opacity: .7; }
.fmeas-val { font-family: var(--serif); font-size: 1.45rem; line-height: 1; white-space: nowrap; }
.fmeas-val i { font-style: normal; font-family: var(--sans); font-size: .62rem;
  opacity: .65; margin-left: .35em; letter-spacing: .04em; }
.fmeas-scale { grid-column: 1 / -1; margin-top: .6rem;
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center; gap: .65rem; }
.fmeas-end { font-size: .64rem; opacity: .45; font-variant-numeric: tabular-nums; }
.fmeas-track { position: relative; height: 1px; background: #d9c9ab; }
.fmeas-track i { position: absolute; top: 50%; width: 9px; height: 9px; border-radius: 50%;
  background: var(--wine); transform: translate(-50%, -50%);
  box-shadow: 0 0 0 2px var(--paper); }

/* Au vignoble — plain figures: no domain worth plotting, the number is the chart */
.ffacts { margin: 1.9rem 0; border-top: 1px solid #e3d5bd; padding-top: 1.3rem; }
.ffacts-row { display: flex; flex-wrap: wrap; gap: 1.3rem 3rem; }
.ffact { display: grid; gap: .2rem; }
.ffact-label { font-size: .7rem; letter-spacing: .16em; text-transform: uppercase; opacity: .7; }
.ffact-val { font-family: var(--serif); font-size: 1.45rem; line-height: 1; }
.ffact-val i { font-style: normal; font-family: var(--sans); font-size: .62rem;
  opacity: .65; margin-left: .35em; letter-spacing: .04em; }

@media (max-width: 700px) {
  .fmeas { grid-template-columns: 1fr; gap: 0; }
  .fmeas-row { padding: .7rem 0; }
  .fmeas-row:nth-last-child(-n+2) { border-bottom: 1px solid #efe3cd; }
  .fmeas-row:last-child { border-bottom: 0; }
  .cep-name { font-size: .7rem; }
  .cep-pct { font-size: 1rem; }
}

.fdetails { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: .8rem 2rem; margin: 1.6rem 0; }
.fdetails div { border-bottom: 1px solid #e8dcc4; padding-bottom: .55rem; }
.fdetails dt { font-size: .68rem; letter-spacing: .16em; text-transform: uppercase; opacity: .7; }
.fdetails dd { font-size: .95rem; margin: .15rem 0 0; }

/* pairing menu */
.pmenu { max-width: 1140px; margin: 4rem auto; padding: 0 1.4rem; }
.pmenu h2 { font-size: 2rem; }
.pmenu-note { font-size: .88rem; opacity: .8; margin: .4rem 0 1.6rem; max-width: 60ch; }
.menu-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; margin-bottom: 1.4rem; }
.dish { background: #fff; border-radius: 0; padding: 1.1rem 1.2rem; box-shadow: 0 1px 3px rgba(42,33,24,.08);
  display: grid; gap: .3rem; font-size: .95rem; position: relative; }
.dish b { font-family: var(--serif); font-size: 1.15rem; font-weight: 600; padding-right: 2.6em; }
.dish em { font-size: .84rem; opacity: .8; }
.dish b a { text-decoration: none; background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size .35s, color .25s; }
.dish b a:hover { color: var(--wine); background-size: 100% 1px; }
.dish-score { position: absolute; top: .9rem; right: 1rem; font-size: .78rem; font-weight: 600;
  color: var(--wine); border: 1px solid var(--wine); border-radius: 2em; padding: .15em .6em; }

/* fiche */
.pfiche { max-width: 1140px; margin: 3.5rem auto; padding: 0 1.4rem; }
.pfiche h2 { font-size: 2rem; border-bottom: 2px solid var(--gold); display: inline-block; }
.fiche { width: 100%; border-collapse: collapse; font-size: .92rem; margin-top: 1.2rem; }
.fiche th { text-align: left; padding: .5em .8em .5em 0; width: 38%; border-bottom: 1px solid #e8dcc4; }
.fiche td { padding: .5em 0; border-bottom: 1px solid #e8dcc4; }
.fiche-foot { font-size: .76rem; opacity: .7; margin-top: .8rem; }

.pgal { display: grid; grid-template-columns: repeat(3, 1fr); gap: .8rem; max-width: 1240px;
  margin: 3rem auto; padding: 0 1.4rem; }
.pgal img { aspect-ratio: 1; object-fit: cover; border-radius: 0; }

.pnext { max-width: 1140px; margin: 4rem auto; padding: 0 1.4rem; }
.pnext h2 { font-size: 1.7rem; margin-bottom: 1.2rem; }
.pnext-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.4rem; }
.pnext-item { text-decoration: none; text-align: center; font-size: .9rem; }
.pnext-item img { background: #fff; border-radius: 0; padding: .7rem; margin-bottom: .5rem; }
.pnext-item em { display: block; color: var(--wine); font-style: normal; }

/* prose pages (domaine, journal, contact, accords) */
.prose, .page-plain { max-width: 760px; margin: 3.5rem auto; padding: 0 1.4rem; }
.prose h1, .page-plain h1 { font-size: clamp(2.2rem, 5vw, 3.2rem); margin-bottom: 1rem; }
.prose h2, .page-plain h2 { font-size: 1.7rem; margin: 2rem 0 .8rem; }
.prose p, .prose li { margin-bottom: .9rem; }
.prose ul { padding-left: 1.2em; }
/* « Les vins de cet article » : la bouteille détourée (ou la photo d'un
   coffret) et son nom, en liste de cartes sous le texte */
.post-wines { margin-top: 3rem; padding-top: 2rem; border-top: 1px solid color-mix(in srgb, currentColor 18%, transparent); }
.prose .post-wines ul { list-style: none; padding: 0; display: grid; gap: 1rem;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); }
.prose .post-wines li { margin: 0; }
.post-wines li a { display: flex; align-items: center; gap: 1rem; height: 100%; padding: .8rem 1rem;
  border: 1px solid color-mix(in srgb, currentColor 15%, transparent); text-decoration: none; color: inherit;
  transition: border-color .2s; }
.post-wines li a:hover { border-color: var(--wine); }
.post-wines-b { height: 112px; width: auto; flex: none; transition: transform .3s; }
.post-wines li a:hover .post-wines-b { transform: translateY(-3px) rotate(-3deg); }
.post-wines .post-wines-p, .post-wines .post-wines-p img { width: 72px; height: 96px; object-fit: contain; flex: none; }
.post-wines img.lqip.post-wines-p { background-size: contain; }   /* va par paire avec object-fit */
.prose .post-wines > p { margin-top: 1.4rem; }
.post-wines b { display: block; font-family: var(--serif); font-weight: 500; font-size: 1.1rem; }
.post-wines em { display: block; font-style: normal; font-size: .86rem; opacity: .75; margin-top: .2rem; }
@media (prefers-reduced-motion: reduce) { .post-wines-b { transition: none; } }
.lede { font-family: var(--serif); font-style: italic; font-size: 1.3rem; }
.sign { font-family: var(--serif); font-style: italic; text-align: right; }
.life-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: .6rem; margin: 1.6rem 0; }
.life-grid img { aspect-ratio: 1; object-fit: cover; border-radius: 0; }
.post-list { margin-top: 2rem; }
.post-card { padding: 1.3rem 0; border-bottom: 1px solid #e3d5bd; }
.post-card h2 { font-size: 1.4rem; }
.post-card a { text-decoration: none; }
.post-card a:hover { color: var(--wine); }
.post-date { font-size: .74rem; letter-spacing: .14em; text-transform: uppercase; opacity: .7; }
/* article images (sync_journal.py turns Markdown images into these figures) */
.post-fig { margin: 2rem -1.4rem; }
.post-fig img { display: block; width: 100%; height: auto; }
.post-fig figcaption { font-size: .86rem; font-style: italic; opacity: .75; margin: .6rem 1.4rem 0; }
@media (min-width: 800px) { .post-fig { margin: 2.4rem -3rem; } .post-fig figcaption { margin: .6rem 3rem 0; } }
.post-card.has-img { display: grid; grid-template-columns: 240px 1fr; column-gap: 1.4rem; align-content: start; }
.post-card.has-img > .post-card-img { grid-row: 1 / span 3; }
.post-card.has-img > :not(.post-card-img) { grid-column: 2; }
.post-card-img img { display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; }
/* « en relecture » previews: shop-dev only (build_site keeps them out of prod) */
.post-preview { background: #fff3c4; border: 1px dashed #b8860b; color: #5a4300; font-size: .86rem; padding: .7rem 1rem; margin-bottom: 1.6rem; }
.post-preview-tag { background: #fff3c4; color: #5a4300; border: 1px dashed #b8860b; padding: .05rem .45rem; margin-right: .4rem; letter-spacing: .08em; }
@media (max-width: 640px) {
  .post-card.has-img { grid-template-columns: 1fr; }
  .post-card.has-img > .post-card-img { grid-row: auto; margin-bottom: .8rem; }
  .post-card.has-img > :not(.post-card-img) { grid-column: 1; }
}
.contact-form { display: grid; gap: 1rem; margin: 2rem 0; }
.contact-form label { display: grid; gap: .3rem; font-size: .9rem; }
.contact-form input, .contact-form textarea { font: inherit; padding: .6em .8em;
  border: 1px solid #d8c9ae; border-radius: 4px; background: #fff; }
.contact-form .btn, .contact-form button { justify-self: start; }
.contact-form button { font-size: .8rem; letter-spacing: .16em; text-transform: uppercase;
  border: 1px solid var(--ink); padding: .8em 2em; border-radius: 2em; background: none; cursor: pointer; }
.accord { display: grid; grid-template-columns: 15em 8em 1fr; gap: 1rem; align-items: center;
  padding: .5em 0; border-bottom: 1px solid #e8dcc4; font-size: .92rem; }
.accord-dish { font-weight: 600; }
.accord-bar { height: 6px; background: #e8dcc4; border-radius: 3px; overflow: hidden; }
.accord-bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--gold), var(--wine)); }
.accord-why { opacity: .85; font-size: .88em; }
.accords-block { margin: 2.4rem 0; }
.accords-block h2 a { text-decoration: none; }
.accords-block small { font-family: var(--sans); font-size: .6em; letter-spacing: .1em;
  text-transform: uppercase; opacity: .7; margin-left: .5em; }
.accords-note, .legal-note { font-size: .78rem; opacity: .75; }

/* footer */
/* --ft-bg / --ft-ink retombent sur les jetons globaux tant que « Apparence »
   → Pied de page ne les fixe pas. Tout ce que contient le pied de page lit ces
   deux variables plutôt que --night / --night-ink, pour qu'un réglage propre au
   pied de page emporte aussi le formulaire d'inscription. */
/* L'aperçu flou que picture() pose en fond d'une image opaque, le temps
   qu'elle arrive. Il est recouvert pixel pour pixel une fois l'image peinte,
   donc il doit être cadré exactement comme elle : `cover` par défaut, et
   `contain` partout où l'image l'est (voir .pmain-bottle). */
img.lqip { background-size: cover; background-position: center;
  background-repeat: no-repeat; }

.ft { --ft-bg: var(--night); --ft-ink: var(--night-ink);
  background: var(--ft-bg); color: var(--ft-ink); padding: 3.5rem 1.4rem 2rem; margin-top: 5rem; }
.ft-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 2.4rem; max-width: 1240px;
  margin: 0 auto 2rem; font-size: .86rem; }
.ft-brand { font-family: var(--serif); font-size: 1.35rem; margin-bottom: .5rem; }
/* L'or n'est lisible que sur le bleu nuit d'origine (7,97:1). Donner au pied
   de page sa propre encre emporte donc aussi ses intertitres, sans quoi ils
   restent en or sur un fond clair — 1,06:1, invisibles. */
.ft-h { font-size: .72rem; letter-spacing: .2em; text-transform: uppercase;
  color: var(--ft-h, var(--gold)); margin-bottom: .7rem; }
.ft ul { list-style: none; }
.ft li { padding: .18em 0; }
.ft a { color: var(--ft-ink); overflow-wrap: anywhere; }
.ft address { font-style: normal; margin-top: .8rem; overflow-wrap: anywhere; }
.ft-news { display: flex; gap: .5rem; margin-top: .8rem; }
/* Built from the footer's own two tokens and nothing else, because both are
   owner-settable in « Apparence ». This used to hardcode a navy field and a
   gold label from the original dark design: once --night was set to a light
   colour the field became a navy slab floating on it, and « S'inscrire »
   fell to 1.06:1 against the background — invisible. The button is filled
   with the footer's text colour and labelled in its background colour, so it
   can never read worse than the footer's own body text. */
.ft-news input { flex: 1; min-width: 0; font: inherit; font-size: .85rem; padding: .55em .8em;
  border: 1px solid color-mix(in srgb, var(--ft-ink) 45%, transparent);
  border-radius: 2em; background: color-mix(in srgb, var(--ft-ink) 12%, transparent);
  color: var(--ft-ink); }
.ft-news input::placeholder { color: color-mix(in srgb, var(--ft-ink) 70%, transparent); }
.ft-news button { font-size: .72rem; letter-spacing: .12em; text-transform: uppercase;
  border: 1px solid var(--ft-ink); color: var(--ft-bg); background: var(--ft-ink);
  border-radius: 2em; padding: .55em 1.2em; cursor: pointer; }
.ft-news button:hover { background: transparent; color: var(--ft-ink); }
.ft-news-note { font-size: .74rem; opacity: .7; margin-top: .5rem; }
.ft .legal-note, .ft-proto { text-align: center; font-size: .74rem; opacity: .7; }

@media (max-width: 980px) {
  .dusk-grid, .menu-grid, .pgal { grid-template-columns: 1fr 1fr; }
  .ft-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  /* Le voile de la section (.sky-hero::after) s'assombrit vers le bas de
     l'image. Sur un écran étroit, le même texte occupe bien plus de hauteur —
     le titre passe sur deux lignes et le chapô sur cinq — et grimpe donc
     au-dessus de la zone sombre, là où le voile ne couvre plus rien.
     On donne au bloc de texte son propre fond : il fait exactement sa taille,
     quelle que soit la longueur du texte, et s'éteint avant son bord haut.
     Rien n'est retiré du contenu. */
  .sky-inner { background: linear-gradient(to top,
      rgba(18, 12, 10, .74) 0%, rgba(18, 12, 10, .62) 48%, rgba(18, 12, 10, .34) 100%); }
  .sky-inner h1, .sky-sub, .sky-inner .ek { text-shadow: 0 1px 3px rgba(18, 12, 10, .5); }

  :root { --hd-h: 62px; }
  .hd > nav { display: none; }
  .hd-brand img { height: 40px; }
  .mnav { display: block; }
  .ft-grid { grid-template-columns: 1fr; gap: 1.8rem; }
  .panel, .pmain, .live { grid-template-columns: 1fr; }
  .panel:nth-child(odd) .panel-img { order: 0; }
  .panel-body { padding: 1.6rem 0; }
  .dusk-grid, .menu-grid, .pgal, .pnext-row { grid-template-columns: 1fr; }
  .pmain-bottle { position: static; }
  .pmain-bottle img { max-height: 52vh; }
  .cat-tiles { grid-template-columns: 1fr; margin-top: -2.2rem; }
  .tile { min-height: 0; }
  .tile-bottles img { height: 6.2rem; }
  .tile-n3 img { height: 5.2rem; }
  /* barre fixe sur mobile : trois titres compacts à largeur égale */
  .catfix { gap: .4rem; padding: .45rem .6rem; }
  .catfix a { flex: 1; padding: .55em .4em; font-size: .78rem; text-align: center; }
  .insta-strip { grid-template-columns: repeat(3, 1fr); }
  .accord { grid-template-columns: 1fr; gap: .2rem; }
  .life-grid { grid-template-columns: 1fr 1fr; }
}

/* fenêtres basses (fin de fichier : doit gagner la cascade sur .tile/.sky-inner) */
@media (max-height: 740px) and (min-width: 761px) {
  .sky-hero { min-height: max(360px, calc(100vh - 285px)); }
  .sky-inner { padding: 1.8rem clamp(1.4rem, 6vw, 6rem) 3.2rem; }
  .sky-inner h1 { font-size: clamp(2.4rem, 6vw, 4rem); }
  .tile { min-height: 0; padding: 1.2rem 1.5rem 1.1rem; gap: .4rem; }
  .tile-text { gap: .4rem; }
  .tile-tag { font-size: .9rem; }
  .tile-bottles img { height: 6.4rem; }
  .tile-n3 img { height: 5.2rem; }
}

/* ------------------------------------------------ panier & achat (Shopify) */
.hd-cart-n { margin-left: .45em; padding: .05em .5em; border-radius: 2em;
  background: var(--wine); color: #fff; font-size: .72rem; }
.pv + .pv { margin-top: .5rem; }
.buy-soon { margin-top: .8rem; font-size: .9rem; font-weight: 600; color: var(--wine); }
.buy-soon-note { font-size: .82rem; opacity: .8; margin-top: .3rem; }
.cartd { position: fixed; top: 0; right: 0; bottom: 0; z-index: 60;
  width: min(26rem, 92vw); display: flex; flex-direction: column;
  background: var(--paper); color: var(--ink); box-shadow: -18px 0 50px rgba(20, 16, 8, .25);
  transform: translateX(102%); transition: transform .22s ease; }
.cartd.show { transform: none; }
.cartd-veil { position: fixed; inset: 0; z-index: 59; background: rgba(20, 16, 40, .45);
  opacity: 0; transition: opacity .22s ease; }
.cartd-veil.show { opacity: 1; }
.cartd-head { display: flex; align-items: center; justify-content: space-between;
  padding: 1.1rem 1.4rem; border-bottom: 1px solid #e8dcc4; }
.cartd-head h2 { font-family: var(--serif); font-size: 1.35rem; font-weight: 500; }
.cartd-x { font-size: 1.5rem; line-height: 1; background: none; border: 0;
  cursor: pointer; color: var(--ink); padding: .2rem .5rem; }
.cartd-x:hover { color: var(--wine); }
.cartd-lines { list-style: none; margin: 0; padding: 0 1.4rem; overflow-y: auto; flex: 1; }
.cartd-line { display: flex; gap: .9rem; align-items: flex-start;
  padding: 1rem 0; border-bottom: 1px solid #eee2cc; }
.cartd-line img { width: 52px; height: 52px; object-fit: cover; border-radius: 0; }
.cartd-line-body { flex: 1; min-width: 0; }
.cartd-line-body b { display: block; font-size: .92rem; }
.cartd-line-body em { display: block; font-style: normal; font-size: .78rem; opacity: .7; }
.cartd-line-price { font-size: .92rem; white-space: nowrap; }
.cartd-qty { display: inline-flex; align-items: center; gap: .1rem; margin-top: .45rem;
  border: 1px solid #d8c9ae; border-radius: 2em; }
.cartd-qty button { background: none; border: 0; cursor: pointer; font-size: 1rem;
  padding: .05em .6em; color: var(--ink); }
.cartd-qty button:hover { color: var(--wine); }
.cartd-qty span { min-width: 1.4em; text-align: center; font-size: .85rem; }
.cartd-rm { margin-left: .8rem; background: none; border: 0; cursor: pointer;
  font-size: .74rem; text-decoration: underline; opacity: .6; color: var(--ink); }
.cartd-rm:hover { opacity: 1; color: var(--wine); }
.cartd-empty { padding: 2.2rem 1.4rem; opacity: .7; }
.cartd-foot { padding: 1.1rem 1.4rem 1.3rem; border-top: 1px solid #e8dcc4; }
.cartd-total { display: flex; justify-content: space-between; font-size: .95rem; }
.cartd-total b { font-family: var(--serif); font-size: 1.3rem; }
.cartd-checkout { display: block; margin-top: .8rem; }
.cartd-note { font-size: .74rem; opacity: .7; margin-top: .6rem; }

/* ------------------------------------------------------- pages légales */
.legal-page h2 { font-family: var(--serif); }
.legal-page h2:first-of-type { margin-top: 1.4rem; }
.legal-draft { border: 1px solid var(--gold); border-radius: 0;
  background: #f3e6cf; background: color-mix(in srgb, var(--gold) 12%, var(--paper));
  padding: .8rem 1.1rem; margin: 0 0 2rem; font-size: .9rem; }
.legal-updated { margin-top: 2.5rem; font-size: .82rem; opacity: .65; }
.ft-legal { max-width: 1240px; margin: 1.4rem auto 0; padding-top: 1.2rem;
  border-top: 1px solid #d9cbb0;
  border-top: 1px solid color-mix(in srgb, var(--ink) 12%, transparent);
  display: flex; flex-wrap: wrap; justify-content: center; gap: .4rem 1.4rem;
  font-size: .78rem; text-align: center; }
.ft-legal a { opacity: .8; }
.ft-legal a:hover { opacity: 1; color: var(--wine); }

/* ------------------------------------------------- formulaires (contact/news) */
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px;
  opacity: 0; pointer-events: none; }
.form-msg { margin-top: .8rem; font-size: .9rem; padding: .6rem .9rem; border-radius: 0; }
.form-msg.is-ok { background: #e7f0e4; background: color-mix(in srgb, #3f7a34 14%, var(--paper)); color: #2c5626; }
.form-msg.is-err { background: #f4e2df; background: color-mix(in srgb, var(--wine) 14%, var(--paper)); color: #8c2626; }
.form-fallback { font-size: .84rem; opacity: .8; margin-top: .8rem; }
.ft-news button:disabled, .contact-form button:disabled { opacity: .6; cursor: progress; }

/* ---------------------------------------- pages Domaine / Histoire (éditorial) */
.estate { max-width: 1140px; margin: 0 auto; padding: clamp(2.5rem,5vw,4rem) 1.4rem; }
.estate .ek { color: var(--wine); margin-bottom: .6rem; }
.estate p { margin-bottom: 1rem; }
.estate-lede { font-family: var(--serif); font-size: clamp(1.5rem,3vw,2.1rem); line-height: 1.4;
  max-width: 26em; margin: 0 auto 1rem; text-align: center; }
.estate-split { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(1.6rem,4vw,3.5rem);
  align-items: center; margin: clamp(2rem,4vw,3.4rem) 0; }
.estate-split.reverse .estate-fig { order: -1; }
.estate-text h2 { font-size: clamp(1.8rem,3.4vw,2.6rem); margin: .1em 0 .7em; }
.estate-fig { margin: 0; }
.estate-fig img { width: 100%; border-radius: 0; box-shadow: 0 10px 30px rgba(20,14,10,.12); }
.estate-fig figcaption, .estate-band figcaption { font-size: .82rem; font-style: italic; opacity: .7;
  margin-top: .6rem; text-align: center; }
.estate-map { text-align: center; }
.estate-map h3 { font-family: var(--serif); font-size: clamp(1.3rem,2.4vw,1.7rem); margin-bottom: 1rem; }
.estate-map img { max-width: 440px; margin: 0 auto; border-radius: 0; background: #fffaf1; box-shadow: none; }
.estate-band { margin: clamp(2rem,4vw,3.4rem) 0; }
.estate-band img { width: 100%; border-radius: 0; }
.estate-frise img { border: 1px solid #e3d5bd; background: #fffaf1; }
.estate-gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: .8rem; margin: 2.4rem 0; }
.estate-gallery img { width: 100%; aspect-ratio: 1/1; object-fit: cover; border-radius: 0; }
.estate .sign { font-family: var(--serif); font-style: italic; font-size: 1.2rem; margin-top: 1.2rem; opacity: .85; }
.estate-find { border: 1px solid #e3d5bd; border-radius: 0; background: #fffaf1;
  padding: clamp(1.6rem,4vw,2.6rem); margin-top: clamp(2rem,4vw,3.4rem); }
.estate-find h2 { font-family: var(--serif); font-size: 1.7rem; margin-bottom: .8rem; }
.estate-more { margin-top: 1.4rem; }
.estate-more-c { text-align: center; margin-top: 2.4rem; }
@media (max-width: 760px) {
  .estate-split { grid-template-columns: 1fr; gap: 1.4rem; }
  .estate-split.reverse .estate-fig { order: 0; }
  .estate-gallery { grid-template-columns: repeat(2, 1fr); }
}

/* ---- fiche technique, dense (designer's mockup 2026-11-13) ----------------
   two columns: the four gauges left, vineyard figures + plain facts right */
.cep { margin-bottom: 1.6rem; }
.fgrid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 0 3rem;
  align-items: start; border-top: 1px solid #e3d5bd; padding-top: .4rem; }
.fgrid .fmeas { margin: 0; border-top: 0; padding-top: 0; gap: 0 2.2rem; }
.fgrid .ffacts { margin: 0 0 .4rem; border-top: 0; padding-top: .85rem; }
.fgrid .ffacts-row { gap: 1rem 2.2rem; }
.fgrid .fdetails { grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: .9rem 1.2rem; margin: .9rem 0 0; }
.fgrid .fdetails dd { font-size: .9rem; line-height: 1.4; }
/* long labels (CONDITIONNEMENT) must fit a narrow column */
.fgrid .fdetails dt { font-size: .6rem; letter-spacing: .12em; overflow-wrap: anywhere; }
@media (max-width: 1100px) { .fgrid .fdetails { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 900px) {
  .fgrid { grid-template-columns: 1fr; }
  .fgrid .ffacts { border-top: 1px solid #e3d5bd; margin-top: 1rem; padding-top: 1.1rem; }
}
@media (max-width: 560px) { .fgrid .fdetails { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ==== Pages collection (2026-12-02) : /nouveaux-vins/, /vins-classiques/, /coffrets/ ====
   La section reprend celle de l'accueil (.epoch-*), le h1 y prend la taille
   du h2 d'accueil ; le texte d'ouverture suit la largeur de l'en-tête. */
.col-page .epoch-head h1 { font-size: clamp(2rem, 4.2vw, 3rem); margin: .3em 0; }
.col-page .crumbs a { color: inherit; }
.col-intro { max-width: 780px; margin: 0 auto 2.6rem; padding: 0 1.4rem; font-size: 1.05rem; line-height: 1.65; }
.col-intro p, .col-intro li { margin-bottom: .8rem; }
.col-intro ul { padding-left: 1.2em; }
.col-intro a { color: inherit; text-underline-offset: .18em; }
.epoch-night .col-intro strong { color: var(--gold); font-weight: 600; }
.col-more { max-width: 1040px; }
.col-table-wrap { overflow-x: auto; margin: 0 0 2.5rem; -webkit-overflow-scrolling: touch; }
.col-table { width: 100%; border-collapse: collapse; font-size: .92rem; min-width: 640px; }
.col-table th, .col-table td { text-align: left; padding: .7rem .8rem; vertical-align: top;
  border-bottom: 1px solid color-mix(in srgb, currentColor 14%, transparent); }
.col-table thead th { font-family: var(--sans, inherit); font-size: .7rem; letter-spacing: .14em;
  text-transform: uppercase; opacity: .7; font-weight: 600; }
.col-table tbody th { font-family: var(--serif); font-weight: 500; font-size: 1.02rem; }
.col-table a { color: inherit; }
.col-table tbody th a { text-decoration: none; }
.col-table tbody th a:hover, .col-table td a:hover { color: var(--wine); }
.col-table s { opacity: .6; }
.col-dishes { margin: 1rem 0 1.2rem; }
.col-posts { padding-left: 1.2em; }
.col-posts li { margin-bottom: .6rem; }

/* ==== Legacy look (2026-11-13) ============================================
   Closer to chateaudebrague.com: titles in Aboreto capitals, Georgia for the
   text, small wide capitals for labels and the menu, logo left / menu centred
   / basket right, and bigger text throughout. Overrides only — delete this
   block to get E's original look back. */
:root {
  --display: "Aboreto", "Cormorant Fallback", Georgia, serif;
  --serif: Georgia, "Times New Roman", serif;
  --label: var(--sans);
}
html { font-size: 106.25%; }              /* 17 px base; Apparence's size still overrides */
body { font-family: var(--serif); line-height: 1.65; }
h1, h2 { font-family: var(--display); font-weight: 400; letter-spacing: .04em; line-height: 1.12; }
h3 { font-family: var(--serif); font-weight: 400; }

/* small wide capitals — the legacy menu / eyebrow style */
.ek, .fk, .tile-more, .bt, .hd > nav > a, .nav-drop-t, .mnav-h, .fmeas-label, .ffact-label,
.fdetails dt, .ft-h, .hd-cart {
  font-family: var(--label); font-weight: 600; letter-spacing: .2em; text-transform: uppercase; }
.ek, .fk { font-size: .68rem; }

/* header: logo left, menu centred, basket right */
.hd { display: grid; grid-template-columns: 1fr auto 1fr; gap: 1.5rem; }
.hd-brand { grid-column: 1; grid-row: 1; margin-left: 0; justify-self: start; }
.hd > nav { grid-column: 2; grid-row: 1; gap: 2.2rem; flex-wrap: nowrap; }
.hd > nav > a, .nav-drop-t { font-size: .68rem; }
.hd-cart { grid-column: 3; grid-row: 1; justify-self: end; font-size: .66rem; }
.mnav { grid-column: 3; grid-row: 1; justify-self: end; }
@media (max-width: 980px) {
  .hd { grid-template-columns: 1fr auto auto; }
  .hd-cart { grid-column: 2; }
}

/* display sizes: Aboreto is all capitals and wide, so it runs smaller */
.sky-inner h1 { font-size: clamp(2.2rem, 4.4vw, 3.6rem); font-weight: 400; }
.sky-sub { font-size: clamp(1.05rem, 1.9vw, 1.3rem); }
.phero-inner h1 { font-size: clamp(1.7rem, 3.4vw, 2.8rem); font-weight: 400; }
.epoch-head h2 { font-size: clamp(1.8rem, 3.6vw, 2.7rem); }
.pfiche h2, .pmenu h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); }
.tile-title { font-family: var(--display); font-weight: 400; font-size: clamp(1.15rem, 1.8vw, 1.5rem); letter-spacing: .04em; }
.ft-brand { font-family: var(--display); letter-spacing: .05em; }

/* bigger reading text */
.dish b { font-weight: 400; }
.cep-name { font-size: .9rem; }
.tile-tag { font-size: 1rem; }
/* article titles are long questions: kept in Georgia, not in display capitals */
.post-card h2, article.prose > h1 { font-family: var(--serif); letter-spacing: 0; }

/* Inscription en fin d'article. Le formulaire est celui du pied de page
   (même macro) ; seul le cadre change, pour qu'il se lise comme une
   invitation et non comme un reste de pied de page égaré dans la prose.

   Il porte les couleurs de la PAGE (--paper / --ink), pas celles du pied de
   page : --ft-bg et --ft-ink sont déclarés sur .ft et n'existent pas ici, si
   bien qu'un repli sur les jetons globaux aurait donné un contraste que
   personne ne contrôle. Avec le couple de la page, le texte reste lisible
   quoi que règle « Apparence » — la teinte à 6 % ne déplace pas le rapport. */
.post-news {
  /* Le formulaire est celui du pied de page : son champ et son bouton lisent
     --ft-bg / --ft-ink, qui ne sont déclarés que sur .ft. Sans ces deux
     lignes ils se résolvaient dans le vide — mesuré à 2,01:1, illisible.
     Les redéclarer ici fait suivre le composant imbriqué, et conserve
     l'invariant du pied de page : le bouton est rempli de la couleur du
     texte et libellé de celle du fond, donc jamais moins lisible que la
     prose qui l'entoure. */
  --ft-bg: color-mix(in srgb, var(--wine) 6%, var(--paper));
  --ft-ink: var(--ink);
  --ft-h: var(--ink);
  margin: 3rem 0 2rem; padding: 1.6rem clamp(1.1rem, 4vw, 2rem);
  background: var(--ft-bg); color: var(--ft-ink);
  border: 1px solid color-mix(in srgb, var(--ft-ink) 15%, transparent);
  border-radius: 3px; }
.post-news .ft-h { margin: 0 0 .35rem; color: var(--ft-h); }
.post-news .ft-news-note { margin-top: .6rem; opacity: .78; }
.post-news .ft-news { margin-top: .9rem; }

/* ==== Languages (2026-12-04) ==============================================
   The header's right column holds the language switch + the basket (or, on a
   page that doesn't sell, the trade contact). Chinese gets a CJK font stack and
   no wide tracking: Aboreto/Georgia have no CJK glyphs and capitals mean
   nothing there. */
.hd-end { grid-column: 3; grid-row: 1; justify-self: end; display: flex; align-items: center; gap: 1rem; }
.hd-end .hd-cart { grid-column: auto; grid-row: auto; }
@media (max-width: 980px) { .hd-end { grid-column: 2; } }
.hd-lang { display: flex; gap: .6rem; font-family: var(--label); font-weight: 600;
  font-size: .62rem; letter-spacing: .12em; }
.hd-lang a { text-decoration: none; opacity: .55; padding: .2em 0; }
.hd-lang a:hover, .hd-lang a:focus-visible { opacity: 1; }
.hd-lang a[aria-current] { opacity: 1; border-bottom: 1px solid currentColor; }
@media (max-width: 560px) { .hd-end { gap: .6rem; } .hd-lang { gap: .45rem; } }

.ptrade-h { font-family: var(--label); font-weight: 600; letter-spacing: .2em;
  text-transform: uppercase; font-size: .7rem; margin: 0 0 .5rem; }
.ptrade-p { margin: 0 0 1.1rem; }

html:lang(zh) { --serif: Georgia, "Songti SC", "Noto Serif SC", "Source Han Serif SC", "SimSun", serif;
  --display: "Aboreto", "Songti SC", "Noto Serif SC", "Source Han Serif SC", serif; }
html:lang(zh) body { line-height: 1.8; }
html:lang(zh) :is(.ek, .fk, .tile-more, .bt, .hd > nav > a, .nav-drop-t, .mnav-h, .fmeas-label,
  .ffact-label, .fdetails dt, .ft-h, .hd-cart, .ptrade-h, h1, h2) { letter-spacing: .06em; }
