/* ==========================================================================
   Maison Juin · feuille de style unique (aucun fichier du kit)
   Climats : Nuit (récit, visites, maison) et Lin (boutique, fiches, panier, aide).
   États de mouvement posés sur <html> : aucun (sans JS), data-motion="reduce",
   data-motion="full". Scène du récit : data-scene="gl" ou "affiches".
   ========================================================================== */

/* ---------- Polices (OFL 1.1, allégées au latin) ---------- */
@font-face { font-family: "Bodoni Moda"; src: url(../fonts/bodoni-moda.woff2) format("woff2"); font-weight: 400 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Bodoni Moda"; src: url(../fonts/bodoni-moda-italique.woff2) format("woff2"); font-weight: 400 500; font-style: italic; font-display: swap; }
@font-face { font-family: "Hanken Grotesk"; src: url(../fonts/hanken-grotesk.woff2) format("woff2"); font-weight: 400 600; font-style: normal; font-display: swap; }
@font-face { font-family: "IBM Plex Mono"; src: url(../fonts/ibm-plex-mono-400.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "IBM Plex Mono"; src: url(../fonts/ibm-plex-mono-500.woff2) format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Juin Signes"; src: url(../fonts/juin-signes.woff2) format("woff2"); unicode-range: U+2190-2193, U+2248; font-display: swap; }
/* repli métrique proche, pour limiter le saut au chargement */
@font-face { font-family: "Hanken repli"; src: local("Arial"), local("Helvetica Neue"), local("Liberation Sans"); size-adjust: 98%; ascent-override: 98%; descent-override: 26%; }

/* ---------- Jetons ---------- */
:root {
  --nuit: #101511; --braise: #1A211B; --lin: #EEE8DA; --feuille: #A7AC9F; --or: #E2B23A; --cuivre: #C27A4E;
  --argent: #B9BFB0; --bord-nuit: #6B7365;
  --papier: #F1ECE1; --ecru: #E6DFD0; --encre: #1A1D17; --encre-2: #5F6358; --ambre: #7A4310; --cuivre-profond: #9A4F26; --bord-lin: #7A7B70;
  --f-titre: "Bodoni Moda", "Juin Signes", "Didot", "Bodoni 72", Georgia, serif;
  --f-texte: "Hanken Grotesk", "Juin Signes", "Hanken repli", system-ui, sans-serif;
  --f-mono: "IBM Plex Mono", "Juin Signes", ui-monospace, "SFMono-Regular", Menlo, monospace;
  --ease-out: cubic-bezier(.22, 1, .36, 1);
  --ease-ui: cubic-bezier(.25, .8, .25, 1);
  --ease-inout: cubic-bezier(.65, 0, .35, 1);
  --ease-goutte: cubic-bezier(.55, 0, 1, .45);
  --ease-vol: cubic-bezier(.5, 0, .2, 1);
  --marge: clamp(1.25rem, 5vw, 4rem);
  --max: 82rem;
  --h-entete: 4.5rem;
  --rayon: 2px;
}
.climat-nuit {
  --fond: var(--nuit); --fond-alt: var(--braise); --surface: var(--braise); --texte: var(--lin); --texte-2: var(--feuille);
  --accent: var(--or); --accent-texte: var(--nuit); --accent-2: var(--cuivre); --ligne: var(--bord-nuit);
  --ligne-douce: rgba(185, 191, 176, .18); --erreur: #F08A6C; --succes: #9CCB98; --focus: var(--or); --dessin: var(--argent);
  color-scheme: dark;
}
.climat-lin {
  --fond: var(--papier); --fond-alt: var(--ecru); --surface: #F7F3EA; --texte: var(--encre); --texte-2: var(--encre-2);
  --accent: var(--ambre); --accent-texte: var(--papier); --accent-2: var(--cuivre-profond); --ligne: var(--bord-lin);
  --ligne-douce: rgba(26, 29, 23, .14); --erreur: #A1301E; --succes: #2E6243; --focus: var(--ambre); --dessin: var(--encre);
  color-scheme: light;
}
.climat-nuit, .climat-lin { color: var(--texte); background-color: var(--fond); }

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--h-entete) + 1rem); }
body {
  margin: 0; font-family: var(--f-texte); font-size: 1.0625rem; line-height: 1.6; font-weight: 400;
  color: var(--texte); overflow-x: clip;
  font-kerning: normal; text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased;
}
img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .2em; }
a:hover { text-decoration-thickness: 2px; }
p, ul, ol, dl, figure, blockquote { margin: 0; }
:where(ul[class], ol[class], nav ul, nav ol, .pied ul) { list-style: none; padding: 0; margin: 0; }
h1, h2, h3 { margin: 0; font-weight: 400; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: 2px; }
main:focus, [tabindex="-1"]:focus { outline: none; }
::selection { background: var(--or); color: var(--nuit); }
code { font-family: var(--f-mono); font-size: .88em; }
.vh { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0; }
html:not([data-js]) .js-seul { display: none !important; }
[hidden] { display: none !important; }
.secondaire { color: var(--texte-2); }
.mono { font-family: var(--f-mono); font-size: .75rem; letter-spacing: .12em; text-transform: uppercase; line-height: 1.5; }
.signe { font-family: "Juin Signes", var(--f-texte); display: inline-block; transition: transform .3s var(--ease-ui); }
a:hover .signe { transform: translateX(3px); }
.contenant { width: min(100% - 2 * var(--marge), var(--max)); margin-inline: auto; }

/* ---------- Typographie ---------- */
.h1, .h2, .h3 { font-family: var(--f-titre); font-weight: 400; color: var(--texte); text-wrap: balance; }
.h1 { font-size: clamp(3.5rem, 2.4rem + 4.6vw, 8rem); line-height: .95; letter-spacing: -.02em; font-variation-settings: "opsz" 96; }
.h2 { font-size: clamp(2.25rem, 1.6rem + 2.6vw, 4rem); line-height: 1; letter-spacing: -.015em; font-variation-settings: "opsz" 72; }
.h3 { font-size: clamp(1.4rem, 1.2rem + .7vw, 1.75rem); line-height: 1.15; font-variation-settings: "opsz" 28; }
.h1 em, .h2 em, .h3 em { font-style: italic; }
.label {
  font-family: var(--f-mono); font-size: .75rem; font-weight: 500; letter-spacing: .12em; text-transform: uppercase;
  color: var(--accent-2); margin-bottom: 1.25rem;
}
.climat-lin .label { color: var(--cuivre-profond); }
.chapo { font-size: clamp(1.125rem, 1.05rem + .3vw, 1.3rem); line-height: 1.55; max-width: 38rem; }
i, em { font-style: italic; }
p + p { margin-top: 1em; }
p, li, dd, figcaption, blockquote { text-wrap: pretty; }
.nw { white-space: nowrap; }

/* ---------- Bandeau de démonstration ---------- */
.demo-banner { background: #E6DFD0; color: #1A1D17; font-size: .875rem; line-height: 1.45; padding: .6rem var(--marge); text-align: center; border-bottom: 1px solid rgba(26, 29, 23, .15); }
.demo-banner a { color: #1A1D17; font-weight: 600; }
.todo { text-decoration-style: dashed; }
span.todo { background: rgba(226, 178, 58, .25); padding: 0 .2em; border-radius: 2px; }
.evitement { position: absolute; left: 1rem; top: -4rem; z-index: 100; background: var(--or); color: var(--nuit); padding: .75rem 1rem; font-weight: 600; border-radius: 2px; }
.evitement:focus { top: 1rem; }

/* ---------- En-tête ---------- */
.entete {
  position: sticky; top: 0; z-index: 40; color: var(--texte);
  background: color-mix(in srgb, var(--fond) 93%, transparent);
  border-bottom: 1px solid var(--ligne-douce);
  view-transition-name: entete;
}
@supports not (background: color-mix(in srgb, red 50%, blue)) { .entete { background: var(--fond); } }
.entete__in { display: flex; align-items: center; gap: 1.5rem; height: var(--h-entete); width: min(100% - 2 * var(--marge), var(--max)); margin-inline: auto; }
.logo { display: inline-flex; flex-direction: column; align-items: center; gap: .3rem; text-decoration: none; color: var(--texte); line-height: 1; flex: none; }
.logo__maison { font-family: var(--f-mono); font-weight: 500; font-size: .625rem; letter-spacing: .34em; margin-right: -.34em; line-height: 1; }
.logo__mot { height: 2.45rem; width: auto; max-width: none; overflow: visible; }
.logo__goutte { fill: var(--accent); transform-box: fill-box; transform-origin: 50% 85%; }
.logo__tag { font-family: var(--f-mono); font-size: .6875rem; letter-spacing: .16em; color: var(--texte-2); }
.logo--long { gap: .45rem; }
.logo--long .logo__maison { font-size: .8125rem; }
.logo--long .logo__mot { height: 4.2rem; }
.nav { margin-left: auto; display: flex; align-items: center; }
.nav__tiroir { display: flex; align-items: center; gap: 2rem; }
.nav__liste { display: flex; gap: 1.75rem; }
.nav__liste a { text-decoration: none; font-size: .98rem; padding: .5rem 0; position: relative; }
.nav__liste a::after { content: ""; position: absolute; left: 0; right: 0; bottom: .2rem; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform .35s var(--ease-out); }
.nav__liste a:hover::after, .nav__liste a[aria-current="page"]::after { transform: scaleX(1); transform-origin: left; }
.nav__menu { display: none; }
.langue { font-family: var(--f-mono); font-size: .75rem; letter-spacing: .12em; color: var(--texte-2); display: flex; align-items: center; gap: .1rem; }
.langue a { color: var(--texte); text-decoration: none; padding: .6rem .35rem; min-width: 2.75rem; min-height: 2.75rem; display: inline-grid; place-items: center; }
.langue a:hover { text-decoration: underline; }
.langue [aria-current] { color: var(--texte); font-weight: 500; padding: .6rem .35rem; text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: .35em; }
.panier-bouton {
  display: inline-flex; align-items: center; gap: .45rem; text-decoration: none; min-height: 2.75rem; padding: 0 1rem;
  border: 1px solid var(--ligne); border-radius: 999px; font-size: .95rem; white-space: nowrap;
  transition: border-color .2s var(--ease-ui), background-color .2s var(--ease-ui);
}
.panier-bouton:hover { border-color: var(--texte); }
.panier-bouton .picto { width: 1.35rem; height: 1.35rem; }
.picto-goutte { fill: var(--accent); fill-opacity: 0; stroke: currentColor; transition: fill-opacity .4s var(--ease-out); }
.panier-bouton[data-plein] .picto-goutte { fill-opacity: 1; stroke: var(--accent); }
.panier-bouton__n { font-variant-numeric: tabular-nums; display: inline-block; }
@media (max-width: 61.99rem) {
  .entete__in { gap: .5rem; }
  .nav { order: 3; margin-left: 0; }
  html[data-js] .nav__menu {
    display: inline-flex; align-items: center; gap: .4rem; min-height: 2.75rem; padding: 0 .75rem; border: 1px solid var(--ligne); border-radius: 999px; background: none; font-size: .95rem;
  }
  html[data-js] .nav__tiroir {
    position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch; gap: 0; padding: 1rem var(--marge) 1.5rem;
    background: var(--fond); border-bottom: 1px solid var(--ligne-douce); visibility: hidden; opacity: 0; transform: translateY(-.5rem);
    transition: opacity .25s var(--ease-ui), transform .25s var(--ease-ui), visibility 0s .25s;
  }
  html[data-js] .nav[data-ouvert] .nav__tiroir { visibility: visible; opacity: 1; transform: none; transition-delay: 0s; }
  html[data-js] .nav__liste { flex-direction: column; gap: 0; }
  html[data-js] .nav__liste a { display: block; padding: .85rem 0; font-family: var(--f-titre); font-size: 1.6rem; border-bottom: 1px solid var(--ligne-douce); }
  html[data-js] .nav__liste a::after { display: none; }
  html[data-js] .nav__tiroir .langue { margin-top: .75rem; }
  .panier-bouton { margin-left: auto; }
  html:not([data-js]) .entete__in { flex-wrap: wrap; height: auto; padding: .75rem 0; }
  html:not([data-js]) .nav__tiroir { flex-wrap: wrap; gap: 1rem; }
}
@media (max-width: 23.99rem) {
  .panier-bouton__mot { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .panier-bouton { padding: 0 .7rem; }
  .nav__menu span { font-size: .9rem; }
}

/* ---------- Boutons ---------- */
.bouton {
  --bg: transparent; --fg: var(--texte); --bd: var(--ligne);
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem; min-height: 3.1rem; padding: .7rem 1.6rem;
  border-radius: 999px; border: 1px solid var(--bd); background: var(--bg); color: var(--fg);
  font-family: var(--f-texte); font-size: 1rem; font-weight: 500; letter-spacing: .01em; line-height: 1.2; text-decoration: none; text-align: center;
  transition: background-color .25s var(--ease-ui), color .25s var(--ease-ui), border-color .25s var(--ease-ui), transform .12s var(--ease-ui);
  -webkit-tap-highlight-color: transparent;
}
.bouton--plein { --bg: var(--accent); --fg: var(--accent-texte); --bd: var(--accent); }
.bouton--plein:hover { --bg: color-mix(in srgb, var(--accent) 86%, var(--texte)); }
.bouton--trait:hover { --bd: var(--texte); }
.bouton--discret { --bd: transparent; padding-inline: .75rem; color: var(--texte-2); }
.bouton--discret:hover { color: var(--texte); --bd: var(--ligne-douce); }
.bouton--petit { min-height: 2.75rem; padding: .5rem 1.15rem; font-size: .95rem; }
.bouton:active { transform: scale(.97); }
.bouton .picto { width: 1.25rem; height: 1.25rem; flex: none; }
.bouton[aria-disabled="true"], .bouton:disabled { opacity: .55; cursor: not-allowed; }
.bouton-icone { display: inline-grid; place-items: center; width: 2.75rem; height: 2.75rem; border-radius: 999px; border: 1px solid var(--ligne); background: none; color: var(--texte); }
.bouton-icone:hover { border-color: var(--texte); }
.magnetique { will-change: transform; }
.picto--lecture { display: none; }
[data-pause][data-en-pause] .picto--pause { display: none; }
[data-pause][data-en-pause] .picto--lecture { display: block; }
.lien-suite { margin-top: 2.5rem; font-size: 1.05rem; }
.lien-suite a { text-decoration: none; border-bottom: 1px solid currentColor; padding-bottom: .15rem; }

/* ---------- Récit : commun ---------- */
html[data-page="accueil"] .entete { background: color-mix(in srgb, var(--nuit) 90%, transparent); }
.entete { -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.recit { position: relative; isolation: isolate; }
.chapitre { position: relative; z-index: 1; }
.chapitre__texte { position: relative; }
.chapitre__texte p:not(.label):not(.mono) { max-width: 33rem; }
.chapitre__texte .h2 { margin-bottom: 1.5rem; }
.chapitre .label--chapitre, .chapitre--0 .label { color: var(--or); }
/* le libellé d'ouverture passe parfois sur la lumière ou le pollen : une fine pastille Nuit le garde lisible (≥ 7:1 mesuré) */
.chapitre--0 .label { display: inline-block; background: rgba(16, 21, 17, .78); padding: .35rem .6rem; margin-left: -.6rem; border-radius: 2px; }
.legende-planche { margin-top: 1.5rem; color: var(--feuille); text-transform: none; letter-spacing: .04em; font-size: .8125rem; }
.legende-planche i { font-family: var(--f-titre); font-size: 1.15em; letter-spacing: 0; }
.chapitre__suite { margin-top: 2rem; }
.h1--recit { margin-bottom: 1.75rem; }
.chapitre--0 .chapitre__texte { width: min(100%, 54rem); }
.h1--recit .h1__ligne { display: block; }
.h1--recit em { font-style: italic; }
.chapitre--0 .chapo { margin-bottom: 2.25rem; color: var(--lin); }
.actions { display: flex; flex-wrap: wrap; gap: .75rem 1rem; align-items: center; }
.compteur { color: var(--lin); font-size: .8125rem; white-space: nowrap; }
.compteur__fleche, .compteur__val { font-family: var(--f-mono); }
.compteur__val { color: var(--or); }
.fps { position: absolute; right: .75rem; bottom: .75rem; z-index: 5; background: rgba(16, 21, 17, .8); color: var(--lin); padding: .35rem .6rem; border: 1px solid var(--bord-nuit); text-transform: none; letter-spacing: 0; }

/* Dessins des affiches */
.planche { color: var(--argent); width: 100%; height: auto; }
.planche .pl-legende { display: none; }
.affiche--cueillette .planche .pl-legende { display: none; }
.alambic, .essencier, .terrasses, .goutte-dessinee, .pollen { width: 100%; height: 100%; }
.essencier { --niveau: .85; --huile: 1; }
.es-liquides { transform: translateY(calc((1 - var(--niveau)) * 456px)); transform-box: view-box; }
.es-huile { transform: scaleY(var(--huile)); transform-box: fill-box; transform-origin: 50% 100%; }
.es-hydrolat, .es-menisque { transform: translateY(0); }
.al-reflet { transform: translateX(calc(var(--reflet, .45) * 900px)) skewX(-14deg); transform-box: view-box; }

/* ---------- Récit : mode affiches (sans JS, mouvement réduit, pause, ?gl=0, sans WebGL) ---------- */
html:not([data-scene="gl"]) .recit { display: grid; grid-template-columns: minmax(0, 1fr); background: var(--nuit); }
/* l'ouverture a exactement la même géométrie dans les deux modes : aucune secousse quand la scène bascule */
.recit { margin-top: calc(-1 * var(--h-entete)); }
html:not([data-scene="gl"]) .scene { display: contents; }
html:not([data-scene="gl"]) .stage, html:not([data-scene="gl"]) .fps { display: none; }
html:not([data-scene="gl"]) .chapitre--0 { grid-row: 1; grid-column: 1 / -1; display: flex; align-items: flex-start; min-height: 100vh; min-height: 100svh; padding: calc(var(--h-entete) + clamp(2rem, 13vh, 9rem)) var(--marge) 3rem; }
html:not([data-scene="gl"]) .calque--1 { grid-row: 2; } html:not([data-scene="gl"]) .chapitre--1 { grid-row: 3; }
html:not([data-scene="gl"]) .calque--2 { grid-row: 4; } html:not([data-scene="gl"]) .chapitre--2 { grid-row: 5; }
html:not([data-scene="gl"]) .calque--3 { grid-row: 6; } html:not([data-scene="gl"]) .chapitre--3 { grid-row: 7; }
html:not([data-scene="gl"]) .calque--4 { grid-row: 8; } html:not([data-scene="gl"]) .chapitre--4 { grid-row: 9; }
html:not([data-scene="gl"]) .calque--5 { grid-row: 10; } html:not([data-scene="gl"]) .chapitre--5 { grid-row: 11; }
html:not([data-scene="gl"]) .chapitre:not(.chapitre--0) { padding: 3rem var(--marge) 5rem; }
html:not([data-scene="gl"]) .chapitre:not(.chapitre--0) .chapitre__texte { max-width: 36rem; }
html:not([data-scene="gl"]) .calque .affiche { position: relative; height: 100%; min-height: min(78vw, 30rem); overflow: hidden; display: grid; place-items: center; }
html:not([data-scene="gl"]) .pipette { display: none; }
@media (min-width: 56.25rem) {
  html[data-scene] .chapitre--0 .chapitre__texte { width: min(64%, 54rem); }
  html:not([data-scene="gl"]) .recit { grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); }
  html:not([data-scene="gl"]) .chapitre:not(.chapitre--0) { grid-column: 1; align-self: center; padding: 6rem var(--marge); }
  html:not([data-scene="gl"]) .calque:not(.calque--0) { grid-column: 2; }
  html:not([data-scene="gl"]) .calque--1 { grid-row: 2; } html:not([data-scene="gl"]) .chapitre--1 { grid-row: 2; }
  html:not([data-scene="gl"]) .calque--2 { grid-row: 3; } html:not([data-scene="gl"]) .chapitre--2 { grid-row: 3; }
  html:not([data-scene="gl"]) .calque--3 { grid-row: 4; } html:not([data-scene="gl"]) .chapitre--3 { grid-row: 4; }
  html:not([data-scene="gl"]) .calque--4 { grid-row: 5; } html:not([data-scene="gl"]) .chapitre--4 { grid-row: 5; }
  html:not([data-scene="gl"]) .calque--5 { grid-row: 6; } html:not([data-scene="gl"]) .chapitre--5 { grid-row: 6; }
  html:not([data-scene="gl"]) .affiche { min-height: min(46rem, 88vh); }

}
/* I7 · compositions de repli : dégradés de la palette + dessins */
.affiche--ouverture {
  background:
    radial-gradient(circle at 80% 24%, rgba(242, 204, 99, .5), rgba(194, 122, 78, .22) 16%, transparent 46%),
    radial-gradient(ellipse 70% 50% at 72% 100%, rgba(194, 122, 78, .3), transparent 70%),
    linear-gradient(90deg, rgba(16, 21, 17, .92) 0%, rgba(16, 21, 17, .55) 45%, rgba(16, 21, 17, 0) 75%),
    linear-gradient(180deg, #121813, #1A211B);
}
.affiche--ouverture .pollen { position: absolute; inset: 0; }
/* affiche d'ouverture : fond de l'article lui-même, même géométrie dans les deux modes ;
   en mode scène, elle s'efface quand la première image WebGL est prête */
html .recit .chapitre--0 > .affiche--ouverture { position: absolute; inset: 0; z-index: -1; min-height: 0 !important; overflow: hidden; transition: opacity .8s var(--ease-out); }
html[data-scene="gl"][data-gl-pret] .chapitre--0 > .affiche--ouverture { opacity: 0; }
.affiche--colline { background: radial-gradient(ellipse 60% 40% at 72% 52%, rgba(226, 178, 58, .32), transparent 70%), linear-gradient(180deg, #111712 0%, #2a2418 58%, #101511 100%); place-items: end center !important; }
.affiche--colline .terrasses { position: absolute; inset: 0; }
.affiche--cueillette { background: radial-gradient(circle at 78% 18%, rgba(226, 178, 58, .28), transparent 45%), radial-gradient(circle at 40% 70%, rgba(63, 90, 58, .35), transparent 60%), #121813; }
.affiche--cueillette .planche { width: min(26rem, 80%); }
.affiche--alambic { background: radial-gradient(ellipse 55% 50% at 45% 55%, rgba(194, 122, 78, .35), transparent 70%), #121813; }
.affiche--alambic .alambic { width: min(46rem, 96%); height: auto; }
.affiche--essencier { background: radial-gradient(ellipse 40% 45% at 50% 55%, rgba(226, 178, 58, .22), transparent 70%), #111612; grid-template-columns: auto auto; gap: 1.5rem; align-items: center; justify-content: center; }
.affiche--essencier .essencier { width: auto; height: min(30rem, 62vw); }
.affiche--goutte { background: radial-gradient(circle at 50% 46%, rgba(226, 178, 58, .18), transparent 40%), linear-gradient(180deg, #0d110e, #101511); }
.affiche--goutte .goutte-dessinee { width: min(24rem, 80%); height: auto; }
html:not([data-scene="gl"]) .chapitre--0 .chapitre__texte { position: relative; z-index: 1; }

/* ---------- Récit : scène WebGL collante ---------- */
html[data-scene="gl"] .scene { position: sticky; top: 0; height: 100vh; height: 100lvh; overflow: hidden; z-index: 0; background: var(--nuit); }
html[data-scene="gl"] .stage { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; transition: opacity .8s var(--ease-out); }
html[data-scene="gl"][data-gl-pret] .stage { opacity: 1; }
html[data-scene="gl"] .calque { position: absolute; inset: 0 0 0 40%; display: grid; place-items: center; opacity: var(--w, 0); pointer-events: none; z-index: 1; }
html[data-scene="gl"] .calque--1 { display: none; }
html[data-scene="gl"] .calque .affiche { background: none !important; width: 100%; height: 100%; display: grid; place-items: center; }
html[data-scene="gl"] .affiche--cueillette .planche { height: min(78vh, 46rem); width: auto; transform: translateY(calc((1 - var(--w, 0)) * 3vh)); }
html[data-scene="gl"] .affiche--alambic .alambic { width: min(52vw, 62rem); height: auto; max-height: 82vh; }
html[data-scene="gl"] .al-volutes { display: none; }
html[data-scene="gl"] .affiche--essencier { grid-template-columns: auto auto; gap: 2rem; justify-content: center; align-content: center; }
html[data-scene="gl"] .affiche--essencier .essencier { height: min(62vh, 36rem); width: auto; }
html[data-scene="gl"] .goutte-dessinee { display: none; }
html[data-scene="gl"] .affiche--goutte { place-items: start center; }
html[data-scene="gl"] .pipette { height: 22vh; width: auto; margin-top: calc(-1 * 22vh * 18 / 340); }
html[data-scene="gl"] .chapitre { min-height: 140vh; display: flex; align-items: center; padding: 0 var(--marge); }
html[data-scene="gl"] .chapitre--5 { min-height: 185vh; }
html[data-scene="gl"] .chapitre--0 { margin-top: -100vh; margin-top: -100lvh; min-height: 100vh; min-height: 100svh; align-items: flex-start; padding-top: calc(var(--h-entete) + clamp(2rem, 13vh, 9rem)); padding-bottom: 3rem; }
html[data-scene="gl"] .chapitre__texte { width: min(40%, 36rem); }

html[data-scene="gl"] .chapitre:not(.chapitre--0) .chapitre__texte::before {
  content: ""; position: absolute; z-index: -1; inset: -8rem -6rem -8rem calc(-1 * var(--marge));
  background: linear-gradient(90deg, rgba(16, 21, 17, .6), rgba(16, 21, 17, .42) 62%, rgba(16, 21, 17, 0));
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 8rem, #000 calc(100% - 8rem), transparent);
  mask-image: linear-gradient(180deg, transparent, #000 8rem, #000 calc(100% - 8rem), transparent);
}
@media (max-width: 56.24rem) {
  /* Mise en scène mobile : l'illustration occupe la moitié haute ; le texte, une carte opaque en bas.
     La carte du chapitre i est entière dans l'écran quand u_chapter = i (milieu du chapitre au milieu de l'écran). */
  html[data-scene="gl"] .calque { inset: var(--h-entete) 0 auto 0; height: calc(50vh - var(--h-entete)); height: calc(50svh - var(--h-entete)); place-items: center; padding: .75rem var(--marge) .25rem; }
  html[data-scene="gl"] .calque--5 { inset: 0 0 auto 0; height: 40vh; place-items: start center; padding: 0; }
  html[data-scene="gl"] .pipette { height: 15vh; margin-top: calc(var(--h-entete) - 2vh); }
  html[data-scene="gl"] .calque .affiche { grid-template: 100% / 100%; }
  html[data-scene="gl"] .affiche--cueillette .planche { height: 100%; width: 100%; transform: none; }
  html[data-scene="gl"] .affiche--alambic .alambic { width: 100%; height: 100%; max-height: none; }
  html[data-scene="gl"] .affiche--essencier .essencier { height: 100%; width: 100%; }
  html[data-scene="gl"] .compteur, html[data-scene="gl"] .legende-alambic { display: none; }
  html[data-scene="gl"] .chapitre { align-items: flex-end; padding: 0 var(--marge) 20vh; }
  html[data-scene="gl"] .chapitre:not(.chapitre--0) .chapitre__texte {
    width: 100%; padding: 1.35rem 1.25rem 1.5rem; background: rgba(16, 21, 17, .94); border: 1px solid var(--ligne-douce); border-radius: 3px;
    box-shadow: 0 -1.5rem 3rem rgba(16, 21, 17, .6);
  }
  html[data-scene="gl"] .chapitre:not(.chapitre--0) .chapitre__texte::before { display: none; }
  html[data-scene="gl"] .chapitre:not(.chapitre--0) .h2 { font-size: clamp(1.9rem, 1.2rem + 3.4vw, 2.6rem); margin-bottom: 1rem; }
  html[data-scene="gl"] .chapitre:not(.chapitre--0) .label { margin-bottom: .85rem; }
  html[data-scene="gl"] .chapitre:not(.chapitre--0) .chapitre__texte p:not(.label):not(.mono) { font-size: 1rem; line-height: 1.55; }
  html[data-scene="gl"] .chapitre__texte, html[data-scene="gl"] .chapitre--0 .chapitre__texte { width: 100%; }
  html[data-scene="gl"] .chapitre--0 { align-items: flex-start; padding-top: calc(var(--h-entete) + clamp(2rem, 13vh, 9rem)); padding-bottom: 3rem; }
  html[data-scene="gl"] .chapitre--5 { padding-bottom: 43vh; }
  /* ouverture : voile léger sous le texte, la lumière de juin reste visible autour */
  .chapitre--0 .chapitre__texte::before {
    content: ""; position: absolute; z-index: -1; inset: -2rem calc(-1 * var(--marge)) -1.5rem;
    background: radial-gradient(ellipse 95% 75% at 30% 40%, rgba(16, 21, 17, .7), rgba(16, 21, 17, .3) 72%, rgba(16, 21, 17, 0));
  }
  /* les légendes dessinées de l'alambic seraient illisibles (≈ 5 px) : une liste les remplace */
  .al-legendes { display: none; }
}
.legende-alambic { display: none; }
@media (max-width: 56.24rem) { html:not([data-scene="gl"]) .legende-alambic { display: block; position: absolute; left: var(--marge); right: var(--marge); bottom: 1rem; color: var(--argent); text-align: center; } }

/* ---------- Après le récit ---------- */
section { position: relative; }
.essences { padding: clamp(5rem, 12vw, 10rem) 0 clamp(4rem, 8vw, 7rem); overflow: hidden; }
html[data-scene="gl"] .essences { padding-top: calc(45vh + 2rem); }
html[data-scene="gl"] .essences::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 45vh; pointer-events: none;
  background: linear-gradient(180deg, #0b0f0c 0%, var(--nuit) 10%, #2a2c22 30%, #6b6553 56%, #c9c1ad 82%, var(--papier) 100%);
}
html[data-scene="gl"] .essences .ondes { top: 22vh; }
.essences .h2 { margin-bottom: 3rem; text-align: center; }
.essences .lien-suite { text-align: center; }
.ondes { position: absolute; left: 50%; top: 0; width: 0; height: 0; pointer-events: none; }
.ondes span { position: absolute; left: -45vmax; top: -45vmax; width: 90vmax; height: 90vmax; border-radius: 50%; border: 1px solid rgba(122, 67, 16, .16); transform: scale(var(--s, .5)); }
.ondes { z-index: 0; }
.ondes--boutique { left: 78%; top: 0; }
.ondes--boutique span { border-color: rgba(122, 67, 16, .1); }
main { position: relative; overflow-x: clip; }
.ondes span:nth-child(2) { --s: .72; } .ondes span:nth-child(3) { --s: .94; }
html[data-motion="full"] .ondes span { transform: scale(.05); opacity: 0; }
html[data-motion="full"] .ondes[data-vu] span { animation: onde 1.8s var(--ease-out) forwards; }
html[data-motion="full"] .ondes[data-vu] span:nth-child(2) { animation-delay: .22s; }
html[data-motion="full"] .ondes[data-vu] span:nth-child(3) { animation-delay: .44s; }
@keyframes onde { 0% { transform: scale(.05); opacity: 0; } 15% { opacity: 1; } 100% { transform: scale(var(--s)); opacity: 1; } }

.bandeau-visites { padding: clamp(4rem, 9vw, 7rem) 0; overflow: hidden;
  background: radial-gradient(ellipse 50% 80% at 85% 50%, rgba(194, 122, 78, .22), transparent 70%), var(--nuit); }
.bandeau-visites__in { display: grid; gap: 2rem; align-items: center; }
.bandeau-visites p:not(:last-child) { margin: 1.5rem 0 2rem; max-width: 34rem; }
.bandeau-visites__visuel { justify-self: center; color: var(--cuivre); }
.picto--grand { width: clamp(7rem, 16vw, 12rem); height: auto; stroke-width: .5; }
@media (min-width: 48rem) { .bandeau-visites__in { grid-template-columns: 3fr 2fr; } }

.avis { padding: clamp(4rem, 9vw, 7rem) 0; }
.avis .h2 { margin-bottom: 3rem; }
.avis__liste { display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr)); }
.avis__item figure { height: 100%; display: flex; flex-direction: column; justify-content: space-between; gap: 1.5rem; padding: 2rem 1.75rem; background: var(--surface); border: 1px solid var(--ligne-douce); }
.avis__item blockquote { font-family: var(--f-titre); font-size: 1.2rem; line-height: 1.45; font-variation-settings: "opsz" 28; }
.avis__item figcaption { color: var(--texte-2); }
.avis__legende { margin-top: 1.5rem; color: var(--texte-2); text-transform: none; letter-spacing: .04em; }

.journal-extrait { padding: clamp(2rem, 6vw, 5rem) 0 clamp(4rem, 8vw, 6rem); background: var(--ecru); }
.journal-extrait .h2 { margin-bottom: 3rem; }
.journal-liste { display: grid; gap: 0; }
.journal-liste--3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr)); gap: 2rem; }
.entree { padding-top: 1.25rem; border-top: 1px solid var(--ligne); }
.entree__date { color: var(--texte-2); margin-bottom: .6rem; }
.entree__titre { margin-bottom: .75rem; }
.entree__titre a { text-decoration: none; }
.entree__titre a:hover { text-decoration: underline; text-decoration-thickness: 1px; }

.lettre { padding: clamp(4rem, 8vw, 6rem) 0; }
.lettre__in { max-width: 40rem; text-align: center; }
.lettre__in > p { margin: 1rem auto 2rem; }
.lettre__form { text-align: left; }
.lettre__ligne { display: flex; gap: .75rem; flex-wrap: wrap; }
.lettre__ligne input { flex: 1 1 14rem; }
.lettre__ok { margin-top: 1rem; color: var(--succes); font-weight: 500; text-align: center; }

/* ---------- Pages : en-tête de page ---------- */
.page-tete { padding: clamp(3rem, 7vw, 6rem) 0 clamp(2rem, 4vw, 3rem); }
.page-tete .h1 { font-size: clamp(2.75rem, 1.7rem + 5vw, 7.5rem); hyphens: manual; overflow-wrap: normal; }
@media (max-width: 24.99rem) { .page-tete .h1, .fiche .h1 { font-size: clamp(2.2rem, .9rem + 8.2vw, 2.75rem); } }
.page-tete .chapo { margin-top: 1.5rem; }

/* ---------- Cartes produit ---------- */
.cartes { display: grid; gap: 3rem 1.5rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 15.5rem), 1fr)); }
.cartes--4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr)); }
.cartes--boutique { padding-bottom: clamp(4rem, 8vw, 7rem); }
@media (max-width: 37.49rem) {
  .cartes--boutique, .cartes--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2.25rem .9rem; }
  .cartes--boutique .carte__nom, .cartes--4 .carte__nom { font-size: 1.2rem; }
  .cartes--boutique .carte__meta, .cartes--4 .carte__meta { font-size: .6875rem; letter-spacing: .06em; }
  .cartes--boutique .bouton--petit, .cartes--4 .bouton--petit { padding-inline: .9rem; }
}
.carte { display: flex; flex-direction: column; position: relative; }
.carte__lien { text-decoration: none; display: block; color: inherit; border-radius: 2px; }
.carte__visuel { display: block; aspect-ratio: 3 / 4; background: var(--surface); border: 1px solid var(--ligne-douce); margin-bottom: 1.1rem; overflow: hidden; }
.carte__visuel .flacon { width: 100%; height: 100%; transition: transform .45s var(--ease-ui); transform: perspective(700px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); }
.flacon .aura { transform-box: fill-box; transform-origin: center; transition: transform .45s var(--ease-ui); }
.flacon .balayage { transform: translateX(0); }
.carte__nom { font-family: var(--f-titre); font-size: 1.6rem; line-height: 1.1; font-variation-settings: "opsz" 36; margin-bottom: .45rem; }
.carte__meta { color: var(--texte-2); min-height: 1.5em; }
.carte__prix { margin: .6rem 0 1rem; font-size: 1.0625rem; font-weight: 600; font-variant-numeric: tabular-nums lining-nums; }
.carte__action { margin-top: auto; }
.carte__lien:hover .aura, .carte__lien:focus-visible .aura { transform: scale(1.06); }
.carte__lien:focus-visible { outline-offset: 6px; }
html[data-motion="full"] .carte__lien:hover .balayage, html[data-motion="full"] .carte__lien:focus-visible .balayage { transform: translateX(260%); transition: transform .6s var(--ease-ui); }
.carte[data-cache] { display: none; }

.outils-boutique { display: flex; flex-wrap: wrap; gap: 1rem 2rem; align-items: center; margin-bottom: 2.5rem; padding-bottom: 1.5rem; border-bottom: 1px solid var(--ligne-douce); }
.filtres { display: flex; flex-wrap: wrap; gap: .5rem; }
.filtres--tri { margin-left: auto; }
.filtre { min-height: 2.75rem; padding: .4rem 1rem; border-radius: 999px; border: 1px solid var(--ligne); background: none; font-size: .95rem; transition: background-color .2s var(--ease-ui), color .2s var(--ease-ui); }
.filtre:hover { border-color: var(--texte); }
.filtre[aria-pressed="true"] { background: var(--texte); color: var(--fond); border-color: var(--texte); }
.compteur-produits { color: var(--texte-2); width: 100%; }
@media (min-width: 70rem) { .compteur-produits { width: auto; order: -1; margin-right: auto; } .filtres--tri { margin-left: 0; } }

/* ---------- Encadrés et formulaires ---------- */
.encadre { padding: 1.25rem 1.5rem; border: 1px solid var(--ligne); background: var(--surface); }
.encadre--demo { border-left: 3px solid var(--accent); }
p .picto, .encadre .picto { display: inline-block; vertical-align: -.35em; margin-right: .35rem; }
.champ { display: flex; flex-direction: column; gap: .4rem; margin-bottom: 1.25rem; }
.champ label { font-weight: 500; }
.champ input:not([type="checkbox"]), .champ select {
  min-height: 3rem; padding: .6rem .85rem; border: 1px solid var(--ligne); border-radius: var(--rayon); background: var(--surface); color: var(--texte); width: 100%;
}
.champ input:focus-visible, .champ select:focus-visible { outline: 2px solid var(--focus); outline-offset: 1px; }
.champ input[aria-invalid="true"] { border-color: var(--erreur); border-width: 2px; }
.champ__erreur { color: var(--erreur); font-size: .95rem; font-weight: 500; }
.champ__erreur:empty { display: none; }
.champ-duo { display: grid; gap: 0 1rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 12rem), 1fr)); }
.champ--case { flex-direction: row; flex-wrap: wrap; align-items: flex-start; gap: .75rem; }
.champ--case input { width: 1.35rem; height: 1.35rem; margin: .15rem 0 0; accent-color: var(--accent); flex: none; }
.champ--case label { flex: 1; font-weight: 400; }
.champ--case .champ__erreur { width: 100%; }
.erreurs-resume { color: var(--erreur); font-weight: 600; margin-bottom: 1rem; }
fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
legend { padding: 0; margin-bottom: 1.5rem; }

/* ---------- Fiche produit ---------- */
.fiche { padding-bottom: 5rem; }
.fiche__grille { display: grid; gap: 2rem 4rem; width: min(100% - 2 * var(--marge), var(--max)); margin: 0 auto; padding-top: 2rem; }
@media (min-width: 56.25rem) { .fiche__grille { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); padding-top: 3rem; } .fiche__visuel { position: sticky; top: calc(var(--h-entete) + 2rem); align-self: start; } }
.fil { font-size: .9rem; color: var(--texte-2); margin-bottom: 1.5rem; }
.fil ol { display: flex; flex-wrap: wrap; gap: .4rem; }
.fil li + li::before { content: "/"; margin-right: .4rem; color: var(--ligne); }
.fil a { color: var(--texte-2); }
.fiche__visuel { position: relative; background: var(--surface); border: 1px solid var(--ligne-douce); aspect-ratio: 4 / 5; overflow: hidden; }
@media (max-width: 56.24rem) { .fiche__visuel { aspect-ratio: auto; height: min(40vh, 26rem); height: min(40svh, 26rem); } }
/* le flacon remplit le cadre sans jamais être rogné (le SVG garde ses proportions) */
.fiche__flacon { position: absolute; inset: 4% 0 0; z-index: 1; view-transition-name: flacon; }
.fiche__flacon .flacon { width: 100%; height: 100%; }
/* planche botanique de la plante, au trait, derrière le flacon : chaque fiche a son visage */
.fiche__planche { position: absolute; z-index: 0; left: 50%; top: 4%; height: 92%; width: auto; max-width: none; transform: translateX(-50%); opacity: .2; pointer-events: none; }
html[data-motion="full"] .fiche__planche { animation: planche-entre 1.2s var(--ease-out) .1s backwards; }
@keyframes planche-entre { from { opacity: 0; transform: translateX(-50%) translateY(1.5rem); } }
.fiche__legende { position: absolute; z-index: 1; left: 1rem; bottom: .75rem; color: var(--texte-2); text-transform: none; letter-spacing: .02em; }
.fiche__legende i { font-family: var(--f-titre); font-size: 1.1em; }
/* barre d'achat collante (mobile), visible quand le bouton principal est hors de l'écran */
html.avec-barre { scroll-padding-bottom: 5.5rem; }
html.avec-barre body { padding-bottom: 4.5rem; }
.barre-achat { position: fixed; left: 0; right: 0; bottom: 0; z-index: 45; display: flex; align-items: center; gap: .75rem; padding: .6rem var(--marge) calc(.6rem + env(safe-area-inset-bottom)); background: color-mix(in srgb, var(--fond) 96%, transparent); border-top: 1px solid var(--ligne); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.barre-achat__nom { font-family: var(--f-titre); font-size: 1.15rem; line-height: 1.1; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.barre-achat__prix { font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.barre-achat .bouton { min-height: 2.75rem; padding: .5rem 1.1rem; white-space: nowrap; }
@media (min-width: 56.25rem) { .barre-achat { display: none !important; } }
html[data-motion="full"] .barre-achat:not([hidden]) { animation: barre-monte .3s var(--ease-out); }
@keyframes barre-monte { from { transform: translateY(100%); } }
.fiche .h1 { font-size: clamp(3rem, 2rem + 4vw, 5.5rem); margin-bottom: .75rem; }
.fiche__sous { color: var(--accent-2); margin-bottom: 1.75rem; }
.fiche__prix { font-size: 1.6rem; font-weight: 500; font-variant-numeric: tabular-nums; margin-bottom: 1.5rem; }
.fiche__prix small { display: block; font-size: .95rem; color: var(--texte-2); font-weight: 400; }
.variantes { display: flex; flex-wrap: wrap; gap: .6rem; margin-bottom: 1.5rem; }
.variante { position: relative; }
.variante input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.variante span { display: inline-flex; align-items: center; min-height: 3rem; padding: .5rem 1.1rem; border: 1px solid var(--ligne); border-radius: 999px; font-variant-numeric: tabular-nums; }
.variante input:checked + span { border: 2px solid var(--texte); background: var(--surface); font-weight: 600; padding: .45rem 1.05rem; }
.variante input:focus-visible + span { outline: 2px solid var(--focus); outline-offset: 3px; }
.achat { display: flex; flex-wrap: wrap; gap: 1rem; align-items: flex-end; margin-bottom: 1rem; }
.stepper { display: inline-flex; align-items: center; border: 1px solid var(--ligne); border-radius: 999px; }
.stepper button { width: 2.9rem; height: 2.9rem; border: 0; background: none; border-radius: 999px; display: grid; place-items: center; transition: transform .12s var(--ease-ui); }
.stepper button:hover { background: var(--fond-alt); }
.stepper button[aria-disabled="true"] { opacity: .4; cursor: not-allowed; }
.stepper button.enfonce { transform: scale(.94); }
.stepper .picto { width: 1.1rem; height: 1.1rem; }
.stepper input { width: 2.5rem; text-align: center; border: 0; background: none; font-variant-numeric: tabular-nums; font-weight: 600; -moz-appearance: textfield; appearance: textfield; padding: 0; min-height: 2.9rem; }
.stepper input::-webkit-inner-spin-button, .stepper input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.quantite-champ { display: flex; flex-direction: column; gap: .35rem; }
.quantite-champ > label, .quantite-champ > span { font-size: .9rem; color: var(--texte-2); }
.achat__info { color: var(--texte-2); font-size: .95rem; margin-bottom: 2.5rem; }
.achat__message { color: var(--erreur); font-weight: 500; margin: -.25rem 0 1rem; }
.achat__message:empty { display: none; }
.bloc { padding: 1.75rem 0; border-top: 1px solid var(--ligne-douce); }
.bloc h2 { margin-bottom: 1rem; }
.carnet { width: 100%; border-collapse: collapse; font-family: var(--f-mono); font-size: .8125rem; letter-spacing: .04em; }
.carnet th, .carnet td { text-align: left; padding: .7rem 0; border-bottom: 1px solid var(--ligne-douce); vertical-align: top; }
.carnet th { font-weight: 500; text-transform: uppercase; letter-spacing: .12em; font-size: .75rem; width: 40%; padding-right: 1rem; color: var(--texte-2); }
.carnet i { font-family: var(--f-titre); font-size: 1.15em; letter-spacing: 0; }
details { border-top: 1px solid var(--ligne-douce); }
details:last-child { border-bottom: 1px solid var(--ligne-douce); }
summary { cursor: pointer; padding: 1.1rem 2.5rem 1.1rem 0; font-family: var(--f-titre); font-size: 1.35rem; font-variation-settings: "opsz" 28; list-style: none; position: relative; }
summary::-webkit-details-marker { display: none; }
summary::after { content: ""; position: absolute; right: .5rem; top: 50%; width: .7rem; height: .7rem; border-right: 1.25px solid currentColor; border-bottom: 1.25px solid currentColor; transform: translateY(-70%) rotate(45deg); transition: transform .3s var(--ease-ui); }
details[open] > summary::after { transform: translateY(-30%) rotate(225deg); }
details > *:not(summary) { padding-bottom: 1.25rem; }
details h3 { font-family: var(--f-mono); font-size: .75rem; letter-spacing: .12em; text-transform: uppercase; font-weight: 500; margin: .75rem 0 .35rem; color: var(--texte-2); }
.avec { width: min(100% - 2 * var(--marge), var(--max)); margin: 4rem auto 0; }
.avec .h2 { margin-bottom: 2.5rem; }
.introuvable { padding: 4rem 0; }

/* ---------- Mini-panier (<dialog>) ---------- */
.mini-panier { margin: 0 0 0 auto; height: 100%; max-height: 100dvh; width: min(28rem, 100vw); max-width: 100vw; padding: 0; border: 0; border-left: 1px solid var(--ligne-douce); color: var(--texte); background: var(--fond); }
.mini-panier::backdrop { background: rgba(16, 21, 17, .55); }
.mini-panier__in { display: flex; flex-direction: column; height: 100%; }
.mini-panier__tete { display: flex; align-items: center; justify-content: space-between; padding: 1.25rem 1.5rem; border-bottom: 1px solid var(--ligne-douce); }
.mini-panier__corps { flex: 1; overflow-y: auto; padding: 1.25rem 1.5rem 1.5rem; display: flex; flex-direction: column; }
.mini-ligne { display: grid; grid-template-columns: 4rem 1fr auto; gap: 1rem; align-items: center; padding: .9rem 0; border-bottom: 1px solid var(--ligne-douce); }
.mini-ligne .flacon { width: 4rem; height: 5.33rem; }
.mini-ligne__nom { font-family: var(--f-titre); font-size: 1.2rem; line-height: 1.15; }
.mini-ligne__prix { font-variant-numeric: tabular-nums; font-weight: 600; }
.mini-panier__pied { margin-top: auto; padding-top: 1.5rem; display: grid; gap: .75rem; }
.mini-panier__total { display: flex; justify-content: space-between; font-size: 1.1rem; font-weight: 600; font-variant-numeric: tabular-nums; }
@media (max-width: 37.49rem) {
  .mini-panier { margin: auto 0 0; width: 100vw; height: auto; max-height: 85dvh; border-left: 0; border-top: 1px solid var(--ligne-douce); }
}
html[data-motion="full"] .mini-panier[open] { animation: mini-entre .38s var(--ease-out); }
html[data-motion="full"] .mini-panier[open]::backdrop { animation: voile .2s var(--ease-ui); }
html[data-motion="full"] .mini-panier[open] .mini-ligne { animation: ligne-entre .38s var(--ease-out) backwards; animation-delay: calc(var(--i, 0) * 40ms + 80ms); }
html[data-motion="reduce"] .mini-panier[open] { animation: voile .16s linear; }
@keyframes mini-entre { from { transform: translateX(100%); } }
@media (max-width: 37.49rem) { @keyframes mini-entre { from { transform: translateY(100%); } } }
@keyframes voile { from { opacity: 0; } }
@keyframes ligne-entre { from { opacity: 0; transform: translateX(1rem); } }

/* ---------- Page panier ---------- */
.panier-grille { display: grid; gap: 3rem; padding-bottom: 5rem; }
@media (min-width: 60rem) { .panier-grille { grid-template-columns: minmax(0, 1fr) 23rem; align-items: start; } .recap { position: sticky; top: calc(var(--h-entete) + 1.5rem); } }
.lignes { border-top: 1px solid var(--ligne); }
.ligne { display: grid; grid-template-rows: 1fr; transition: grid-template-rows .3s var(--ease-ui), opacity .3s var(--ease-ui); border-bottom: 1px solid var(--ligne-douce); }
.ligne > .ligne__in { overflow: hidden; min-height: 0; }
.ligne[data-repli] { grid-template-rows: 0fr; opacity: 0; border-bottom-color: transparent; }
.ligne__corps { display: grid; grid-template-columns: 4.5rem 1fr; gap: .5rem 1.25rem; padding: 1.25rem 0; align-items: start; }
.ligne__corps .flacon { width: 4.5rem; height: 6rem; }
.ligne__nom { font-family: var(--f-titre); font-size: 1.45rem; line-height: 1.1; }
.ligne__nom a { text-decoration: none; }
.ligne__nom a:hover { text-decoration: underline; text-decoration-thickness: 1px; }
.ligne__var { color: var(--texte-2); margin-top: .3rem; }
.ligne__bas { grid-column: 2; display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1.25rem; margin-top: .5rem; }
.ligne__unit { color: var(--texte-2); font-size: .95rem; font-variant-numeric: tabular-nums; }
.ligne__total { margin-left: auto; font-weight: 600; font-size: 1.1rem; font-variant-numeric: tabular-nums; min-width: 5.5rem; text-align: right; }
.ligne__retirer { background: none; border: 0; padding: .6rem 0; text-decoration: underline; text-underline-offset: .2em; color: var(--texte-2); min-height: 2.75rem; }
.ligne__retirer:hover { color: var(--texte); }
.ligne__msg { grid-column: 1 / -1; color: var(--erreur); font-weight: 500; font-size: .95rem; }
.ligne__msg:empty { display: none; }
@media (min-width: 40rem) { .ligne__corps { grid-template-columns: 6rem 1fr; } .ligne__corps .flacon { width: 6rem; height: 8rem; } }
.recap { background: var(--surface); border: 1px solid var(--ligne-douce); padding: 1.75rem; }
.recap .h3 { margin-bottom: 1.25rem; }
.recap dl { display: grid; grid-template-columns: 1fr auto; gap: .7rem 0; font-variant-numeric: tabular-nums; margin-bottom: 1rem; }
.recap dd { padding-left: 1rem; }
.recap dt { color: var(--texte-2); }
.recap dd { margin: 0; text-align: right; }
.recap .total dt, .recap .total dd { color: var(--texte); font-weight: 600; font-size: 1.2rem; padding-top: .8rem; border-top: 1px solid var(--ligne); }
.recap__tva { color: var(--texte-2); font-size: .9rem; margin-bottom: 1.5rem; }
.recap .bouton { width: 100%; }
.recap__suite { margin-top: 1rem; text-align: center; }
.destination { margin-bottom: 1.25rem; }
.barre-livraison { margin: 0 0 1.5rem; }
.barre-livraison__msg { font-size: .95rem; margin-bottom: .6rem; }
.barre-livraison__piste { position: relative; height: .5rem; border-radius: 999px; background: var(--fond-alt); overflow: hidden; border: 1px solid var(--ligne-douce); }
.barre-livraison__rempli { position: absolute; inset: 0; transform-origin: left; transform: scaleX(var(--p, 0)); background: var(--or); }
.barre-livraison__vague { position: absolute; top: -4px; bottom: -4px; width: 14px; left: calc(var(--p, 0) * 100% - 7px); opacity: 0; }
.barre-livraison[data-avance] .barre-livraison__vague { opacity: 1; }
.panier-vide { padding: 3rem 0 6rem; max-width: 34rem; }
/* contenus rendus par JS : hauteur réservée, le pied de page ne saute pas */
[data-panier-page], [data-commande] { min-height: 75vh; }
[data-resa-corps] { min-height: 22rem; }
.panier-vide p { font-family: var(--f-titre); font-size: 1.8rem; line-height: 1.2; margin-bottom: 2rem; }

/* ---------- Commande ---------- */
.commande__grille { display: grid; gap: 3rem; padding-bottom: 5rem; }
@media (min-width: 60rem) { .commande__grille { grid-template-columns: minmax(0, 1fr) 22rem; align-items: start; } }
.etapes { display: flex; flex-wrap: wrap; gap: .5rem clamp(.75rem, 2vw, 1.5rem); margin-bottom: 2.5rem; padding-bottom: 1.25rem; border-bottom: 1px solid var(--ligne-douce); color: var(--texte-2); }
.etapes li { display: flex; align-items: center; gap: .5rem; }
.etapes__n { display: inline-grid; place-items: center; width: 1.9rem; height: 1.9rem; border-radius: 50%; border: 1px solid var(--ligne); letter-spacing: 0; }
.etapes [aria-current="step"] { color: var(--texte); font-weight: 600; }
.etapes [aria-current="step"] .etapes__n { background: var(--texte); color: var(--fond); border-color: var(--texte); }
.etapes [data-fait] .etapes__n { border-color: var(--accent); color: var(--accent); }
.etape-nav { display: flex; gap: 1rem; justify-content: space-between; flex-wrap: wrap; margin-top: 1rem; }
.etape-nav [data-suivant] { margin-left: auto; }
.recap--commande .recap-ligne { display: flex; justify-content: space-between; gap: 1rem; padding: .5rem 0; border-bottom: 1px solid var(--ligne-douce); font-size: .95rem; }
.recap--commande dl { margin-top: 1rem; }
.confirmation { padding: 1rem 0 5rem; max-width: 44rem; }
.confirmation .h2 { margin-bottom: 1.5rem; }
.confirmation .numero { margin: 1.5rem 0; font-size: .9rem; }
.confirmation .encadre { margin: 2rem 0; }

/* ---------- Visites ---------- */
.formules { display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr)); margin-bottom: clamp(4rem, 8vw, 6rem); }
.formule { padding: 2rem; background: var(--surface); border: 1px solid var(--ligne-douce); }
.formule__picto { color: var(--cuivre); margin-bottom: 1rem; }
.formule__picto .picto { width: 3.5rem; height: 3.5rem; stroke-width: .8; }
.formule .h3 { margin-bottom: .75rem; }
.formule__quand { margin-bottom: 1rem; }
.formule__faits { display: flex; flex-wrap: wrap; gap: .4rem 1.25rem; color: var(--or); margin-bottom: 1rem; }
.reservation { padding-bottom: clamp(4rem, 8vw, 6rem); }
.reservation .h2 { margin-bottom: 2rem; }
.reservation__grille { background: var(--braise); border: 1px solid var(--ligne-douce); padding: clamp(1.25rem, 3vw, 2.5rem); }
.etapes--5 .etapes__t { display: none; }
.etapes--5 [aria-current="step"] .etapes__t { display: inline; }
@media (min-width: 62rem) { .etapes--5 .etapes__t { display: inline; } }
.choix-formules { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr)); }
.choix { position: relative; display: block; }
.choix input { position: absolute; opacity: 0; inset: 0; margin: 0; width: 100%; height: 100%; cursor: pointer; }
.choix__corps { display: block; padding: 1.25rem 1.4rem; border: 1px solid var(--ligne); border-radius: var(--rayon); height: 100%; }
.choix__corps strong { display: block; font-family: var(--f-titre); font-weight: 400; font-size: 1.4rem; margin-bottom: .35rem; }
.choix input:checked + .choix__corps { border: 2px solid var(--accent); padding: calc(1.25rem - 1px) calc(1.4rem - 1px); background: rgba(226, 178, 58, .06); }
.choix input:focus-visible + .choix__corps { outline: 2px solid var(--focus); outline-offset: 3px; }
.cal { margin-top: .5rem; }
.cal__tete { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; }
.cal__mois { font-family: var(--f-titre); font-size: 1.5rem; text-transform: capitalize; }
.cal table { width: 100%; border-collapse: collapse; table-layout: fixed; }
.cal th { font-family: var(--f-mono); font-size: .6875rem; letter-spacing: .1em; font-weight: 500; color: var(--texte-2); padding-bottom: .5rem; text-transform: uppercase; }
.cal td { padding: 2px; text-align: center; }
.jour { width: 100%; aspect-ratio: 1; max-height: 3.4rem; min-height: 2.75rem; border-radius: var(--rayon); border: 1px solid transparent; background: none; font-variant-numeric: tabular-nums; position: relative; color: var(--texte-2); }
.jour[data-etat="possible"] { color: var(--texte); border-color: var(--ligne); background: rgba(238, 232, 218, .04); font-weight: 600; }
.jour[data-etat="possible"]::after { content: ""; position: absolute; left: 50%; bottom: 18%; width: 4px; height: 4px; margin-left: -2px; border-radius: 50%; background: var(--or); }
.jour[data-etat="possible"]:hover { border-color: var(--texte); }
.jour[data-etat="complet"] { text-decoration: line-through; color: var(--texte-2); background: repeating-linear-gradient(135deg, transparent 0 5px, rgba(185, 191, 176, .12) 5px 6px); }
.jour[aria-disabled="true"] { cursor: default; }
.jour[aria-pressed="true"] { background: var(--or); color: var(--nuit); border: 2px solid var(--lin); }
.jour[aria-pressed="true"]::after { background: var(--nuit); }
.cal__note { margin-top: 1rem; color: var(--texte-2); font-size: .95rem; }
.cal__legende { display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; margin-top: 1rem; color: var(--texte-2); font-size: .9rem; }
.creneaux { margin-top: 2rem; }
.creneaux h3 { margin-bottom: 1rem; }
.creneaux__liste { display: flex; flex-wrap: wrap; gap: .75rem; }
.creneau { min-height: 3.2rem; padding: .6rem 1.2rem; border-radius: var(--rayon); border: 1px solid var(--ligne); background: none; text-align: left; display: flex; flex-direction: column; gap: .1rem; min-width: 9rem; }
.creneau strong { font-size: 1.1rem; font-variant-numeric: tabular-nums; }
.creneau span { font-size: .85rem; color: var(--texte-2); }
.creneau[aria-pressed="true"] { border: 2px solid var(--or); background: rgba(226, 178, 58, .1); }
.creneau[aria-disabled="true"] { opacity: .55; text-decoration: line-through; cursor: not-allowed; }
.creneau[data-peu] span { color: var(--or); }
html[data-motion="full"] .creneau { animation: creneau-entre .25s var(--ease-out) backwards; animation-delay: calc(var(--i, 0) * 40ms); }
@keyframes creneau-entre { from { opacity: 0; transform: translateY(6px); } }
.compteurs { display: grid; gap: 1rem; max-width: 32rem; }
.compteur-ligne { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .75rem 0; border-bottom: 1px solid var(--ligne-douce); }
.compteur-ligne__t small { display: block; color: var(--texte-2); }
.message { margin: 1rem 0; padding: .85rem 1.1rem; border-left: 3px solid var(--or); background: rgba(226, 178, 58, .08); }
.message--erreur { border-left-color: var(--erreur); background: rgba(240, 138, 108, .08); }
.resa-recap dl { display: grid; grid-template-columns: minmax(7rem, auto) 1fr; gap: .6rem 1.5rem; margin: 1rem 0 1.5rem; }
.resa-recap dt { color: var(--texte-2); }
.resa-recap dd { margin: 0; }
.resa-recap .total { font-size: 1.3rem; font-weight: 600; font-variant-numeric: tabular-nums; }
.acces { display: grid; gap: 2.5rem; padding-bottom: clamp(4rem, 8vw, 6rem); align-items: center; }
.acces p { margin-top: 1rem; max-width: 34rem; }
.acces__carte { justify-self: center; width: min(100%, 20rem); color: var(--lin); }
@media (min-width: 48rem) { .acces { grid-template-columns: 3fr 2fr; } }

/* ---------- Maison ---------- */
.maison { display: grid; gap: 3rem; align-items: center; padding-bottom: clamp(3rem, 7vw, 6rem); }
.maison__visuel { aspect-ratio: 4 / 3; overflow: hidden; background: radial-gradient(ellipse 60% 40% at 72% 52%, rgba(226, 178, 58, .3), transparent 70%), linear-gradient(180deg, #111712 0%, #2a2418 58%, #101511 100%); }
.maison__visuel .terrasses { width: 100%; height: 100%; }
@media (min-width: 56.25rem) { .maison { grid-template-columns: 1fr 1fr; } }
.habitudes { padding-bottom: clamp(3rem, 7vw, 6rem); }
.habitudes .h2 { margin-bottom: 2.5rem; }
.habitudes__liste { display: grid; gap: 1.5rem 2.5rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr)); }
.habitudes__liste li { padding-top: 1.25rem; border-top: 1px solid var(--ligne); }
.habitudes__n { color: var(--or); display: block; margin-bottom: .75rem; }
.planches { padding: clamp(2rem, 5vw, 4rem) 0; background: var(--braise); border-block: 1px solid var(--ligne-douce); overflow: hidden; }
.planches__liste { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(15rem, 22rem); gap: 1rem; overflow-x: auto; padding: 0 var(--marge) 1rem; scroll-snap-type: x mandatory; scrollbar-color: var(--bord-nuit) transparent; }
.planches__liste li { scroll-snap-align: center; }
.planches .planche .pl-legende { display: block; }
.planche-fig img { display: block; width: 100%; height: auto; }
.planche-fig figcaption { padding: .5rem .25rem 0; }
.planche-fig figcaption i { display: block; font-family: var(--f-titre); font-size: 1.15rem; line-height: 1.2; color: var(--texte); }
.planche-fig figcaption .mono { display: block; margin-top: .35rem; font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--texte-2); }
.roue-section { padding: clamp(4rem, 8vw, 6rem) 0; }
.roue-figure { display: grid; gap: 2.5rem; align-items: center; }
.roue { width: min(100%, 35rem); justify-self: center; color: var(--texte); overflow: visible; }
.roue__arc { cursor: pointer; }
.roue__halo { opacity: 0; }
.roue__trace { transition: stroke-width .25s var(--ease-ui); }
.roue__arc:hover .roue__trace, .roue__arc:focus-visible .roue__trace { stroke-width: 18; }
.roue__arc:focus-visible { outline: none; }
.roue__arc:focus-visible .roue__halo { opacity: 1; stroke: var(--focus); stroke-width: 26; }
.roue__arc:focus-visible .roue__trace { stroke-width: 16; }
html[data-motion="full"] .roue:not([data-vu]) .roue__trace { stroke-dasharray: 1 1; stroke-dashoffset: 1; }
html[data-motion="full"] .roue[data-vu] .roue__trace { stroke-dasharray: 1 1; animation: trace 1.2s var(--ease-inout) backwards; animation-delay: calc(var(--i) * 60ms); }
@keyframes trace { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@media (min-width: 56.25rem) { .roue-figure { grid-template-columns: 1fr 1fr; } }
.roue-legende { display: grid; gap: .75rem; }
.roue-legende li { display: flex; align-items: baseline; flex-wrap: wrap; gap: .25rem .75rem; padding-bottom: .75rem; border-bottom: 1px solid var(--ligne-douce); }
.roue-legende a { font-family: var(--f-titre); font-size: 1.4rem; text-decoration: none; }
.roue-legende a:hover { text-decoration: underline; text-decoration-thickness: 1px; }
.pastille { width: .8rem; height: .8rem; border-radius: 50%; background: var(--c); align-self: center; box-shadow: 0 0 0 1px var(--ligne-douce); }

/* ---------- Journal ---------- */
.journal { display: grid; gap: 4rem; padding-bottom: 6rem; }
@media (min-width: 62rem) { .journal { grid-template-columns: 5fr 6fr; align-items: start; } .roue-figure--journal { position: sticky; top: calc(var(--h-entete) + 2rem); grid-template-columns: 1fr; } }
.journal .journal-liste { gap: 2.5rem; }
.journal .entree { scroll-margin-top: calc(var(--h-entete) + 1.5rem); }
.journal .entree p:last-child { max-width: 36rem; }
.entree:target .entree__titre { text-decoration: underline; text-decoration-color: var(--or); text-decoration-thickness: 2px; text-underline-offset: .2em; }

/* ---------- Aide, CGV, mentions ---------- */
.aide { display: grid; grid-template-columns: minmax(0, 1fr); gap: 3rem; padding-bottom: 6rem; }
@media (min-width: 62rem) { .aide { grid-template-columns: 14rem minmax(0, 1fr); } .sommaire { position: sticky; top: calc(var(--h-entete) + 2rem); align-self: start; } }
.sommaire ul { display: grid; gap: .25rem; }
.sommaire a { display: block; padding: .5rem 0; text-decoration: none; border-bottom: 1px solid var(--ligne-douce); }
.sommaire a:hover { text-decoration: underline; }
.aide__corps section { padding-bottom: 3rem; max-width: 46rem; }
.aide__corps .h2 { margin-bottom: 1.5rem; font-size: clamp(2rem, 1.5rem + 2vw, 3rem); }
.aide__corps p + p, .aide__corps .tableau-defile + p { margin-top: 1rem; }
.tableau-defile { overflow-x: auto; margin-bottom: 1.25rem; }
.tableau { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; min-width: 17.5rem; }
.tableau th, .tableau td { text-align: left; padding: .8rem 1rem .8rem 0; border-bottom: 1px solid var(--ligne-douce); vertical-align: top; }
.tableau thead th { font-family: var(--f-mono); font-size: .75rem; letter-spacing: .12em; text-transform: uppercase; font-weight: 500; color: var(--texte-2); border-bottom-color: var(--ligne); }
.tableau tbody th { font-weight: 500; }
@media (max-width: 29.99rem) { .tableau th, .tableau td { padding-right: .75rem; } .tableau thead th { letter-spacing: .06em; } .tableau td:last-child { min-width: 6.5rem; } }
.faq summary { font-size: 1.25rem; }
.faq p { max-width: 40rem; }
.texte-legal { max-width: 48rem; padding-bottom: 6rem; }
.texte-legal .encadre { margin-bottom: 2.5rem; }
.texte-legal section { padding: 1.5rem 0; border-top: 1px solid var(--ligne-douce); }
.texte-legal h2 { margin-bottom: .75rem; }
.texte-legal h2 .mono { color: var(--accent-2); margin-right: .5rem; vertical-align: .2em; }
.mentions dt { font-family: var(--f-mono); font-size: .75rem; letter-spacing: .12em; text-transform: uppercase; font-weight: 500; color: var(--texte-2); padding-top: 1.5rem; border-top: 1px solid var(--ligne-douce); margin-top: 1.5rem; }
.mentions dd { margin: .5rem 0 0; }
.mentions dd .bouton { margin-top: 1rem; }

/* ---------- Pied de page ---------- */
.pied { padding: 0 0 2rem; }
.pied > .demo-banner { margin-bottom: clamp(3.5rem, 7vw, 5.5rem); }
.pied__in { width: min(100% - 2 * var(--marge), var(--max)); margin: 0 auto; display: grid; gap: 3rem; }
@media (min-width: 62rem) { .pied__in { grid-template-columns: 1.3fr 2fr 1.2fr; } }
.pied__marque { display: grid; gap: 1.5rem; justify-items: start; align-content: start; }
.pied__lettre { color: var(--texte-2); max-width: 22rem; }
.pied__nav { display: grid; gap: 2rem 1.5rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 9rem), 1fr)); align-content: start; }
.pied .label { color: var(--texte-2); margin-bottom: 1rem; }
.pied ul { display: grid; gap: .1rem; }
.pied ul a, .pied__contact a { text-decoration: none; display: inline-block; padding: .35rem 0; }
.pied ul a:hover, .pied__contact a:hover { text-decoration: underline; }
.pied__contact { font-style: normal; }
.pied__contact p { margin: 0; }
.pied__bas { width: min(100% - 2 * var(--marge), var(--max)); margin: 3rem auto 0; padding-top: 1.5rem; border-top: 1px solid var(--ligne-douce); display: flex; flex-wrap: wrap; gap: 1rem 2rem; align-items: center; font-size: .9rem; }
.pied__bas .secondaire { margin-left: auto; }
.interrupteur { display: inline-flex; align-items: center; gap: .75rem; background: none; border: 0; padding: .5rem 0; min-height: 2.75rem; font-size: .95rem; color: var(--texte); }
.interrupteur__piste { width: 2.75rem; height: 1.5rem; border-radius: 999px; border: 1px solid var(--ligne); position: relative; transition: background-color .2s; }
.interrupteur__bille { position: absolute; top: 3px; left: 3px; width: 1rem; height: 1rem; border-radius: 50%; background: var(--texte-2); transition: transform .2s var(--ease-ui), background-color .2s; }
.interrupteur[aria-checked="true"] .interrupteur__piste { background: rgba(226, 178, 58, .2); border-color: var(--or); }
.interrupteur[aria-checked="true"] .interrupteur__bille { transform: translateX(1.25rem); background: var(--or); }

/* ---------- Annonces, toast, halo ---------- */
.alerte-stockage { margin: 0; padding: .9rem var(--marge); background: #A1301E; color: #fff; font-weight: 500; }
.toast {
  position: fixed; left: 50%; bottom: 1.5rem; z-index: 60; transform: translateX(-50%); display: flex; align-items: center; gap: 1rem;
  background: var(--encre); color: var(--papier); padding: .6rem .75rem .6rem 1.25rem; border-radius: 999px; box-shadow: 0 10px 30px rgba(0, 0, 0, .25); max-width: calc(100vw - 2rem);
}
.toast button { background: var(--papier); color: var(--encre); border: 0; border-radius: 999px; padding: .5rem 1rem; font-weight: 600; min-height: 2.5rem; }
.halo { position: fixed; left: 0; top: 0; width: 28px; height: 28px; margin: -14px 0 0 -14px; border-radius: 50%; pointer-events: none; z-index: 70;
  background: radial-gradient(circle, rgba(226, 178, 58, .35), rgba(226, 178, 58, .08) 60%, transparent 70%); opacity: 0; transition: opacity .3s, width .35s var(--ease-out), height .35s var(--ease-out), margin .35s var(--ease-out);
  display: grid; place-items: center; }
.halo__mot { font-family: var(--f-mono); font-size: .625rem; letter-spacing: .14em; text-transform: uppercase; color: var(--nuit); opacity: 0; transition: opacity .2s; }
.halo[data-actif] { opacity: 1; }
.halo[data-carte] { width: 56px; height: 56px; margin: -28px 0 0 -28px; background: radial-gradient(circle, rgba(226, 178, 58, .85), rgba(226, 178, 58, .55) 60%, rgba(226, 178, 58, 0) 72%); }
.halo[data-carte] .halo__mot { opacity: 1; }
html:not([data-motion="full"]) .halo { display: none; }
@media not ((hover: hover) and (pointer: fine)) { .halo { display: none; } }
.vol { position: fixed; z-index: 80; pointer-events: none; margin: 0; }
.vol .flacon { width: 100%; height: 100%; }

/* ---------- Mouvement : entrées et titres ---------- */
html[data-motion="full"] .h1--recit .h1__ligne { animation: ligne-monte .9s var(--ease-out) backwards; }
html[data-motion="full"] .h1--recit .h1__ligne + .h1__ligne { animation-delay: 80ms; }
html[data-motion="reduce"] .h1--recit .h1__ligne { animation: fondu .2s linear backwards; }
@keyframes ligne-monte { from { opacity: 0; transform: translateY(70%); } }
@keyframes fondu { from { opacity: 0; } }
html[data-motion="full"] .logo__goutte { animation: goutte-ondule .9s var(--ease-out) 1; }
html[data-motion="full"] .logo:hover .logo__goutte, html[data-motion="full"] .logo:focus-visible .logo__goutte { animation: goutte-ondule2 .9s var(--ease-out) 1; }
@keyframes goutte-ondule { 0% { transform: scale(.6, 1.15); } 35% { transform: scale(1.12, .9); } 60% { transform: scale(.96, 1.04); } 100% { transform: none; } }
@keyframes goutte-ondule2 { 0% { transform: none; } 30% { transform: scale(1.12, .9); } 60% { transform: scale(.96, 1.05); } 100% { transform: none; } }
@supports (animation-timeline: view()) {
  html[data-motion="full"][data-scene="gl"] .chapitre:not(.chapitre--0) .chapitre__texte {
    animation: texte-entre linear both; animation-timeline: view(); animation-range: entry 0% entry 60%;
  }
  html[data-motion="full"] .essences .h2, html[data-motion="full"] .apparait {
    animation: texte-entre linear both; animation-timeline: view(); animation-range: entry 0% cover 25%;
  }
}
@keyframes texte-entre { from { opacity: 0; transform: translateY(2.5rem); } }
/* J22 : le fondu croisé Nuit → Lin est porté par la bande dégradée en tête de .essences (pas d'animation de background-color). */
.essences > .contenant { position: relative; z-index: 1; }

/* ---------- Transitions entre pages (J10) ---------- */
@view-transition { navigation: auto; }
::view-transition-old(root) { animation: vt-sort .3s var(--ease-ui) both; }
::view-transition-new(root) { animation: vt-entre .45s var(--ease-out) both; }
::view-transition-group(flacon) { animation-duration: .5s; animation-timing-function: var(--ease-inout); }
::view-transition-old(entete), ::view-transition-new(entete) { animation: none; }
@keyframes vt-sort { to { opacity: 0; } }
@keyframes vt-entre { from { clip-path: inset(100% 0 0 0); } to { clip-path: inset(0); } }
html[data-motion="reduce"]::view-transition-group(*), html[data-motion="reduce"]::view-transition-old(*), html[data-motion="reduce"]::view-transition-new(*) { animation: none !important; }
/* étapes de commande et de visite (J19) */
::view-transition-old(etape) { animation: etape-sort .22s var(--ease-out) both; }
::view-transition-new(etape) { animation: etape-entre .38s var(--ease-out) both; }
html[data-sens="retour"]::view-transition-old(etape) { animation-name: etape-sort-r; }
html[data-sens="retour"]::view-transition-new(etape) { animation-name: etape-entre-r; }
@keyframes etape-sort { to { opacity: 0; transform: translateX(-1rem); } }
@keyframes etape-entre { from { opacity: 0; transform: translateX(1.25rem); } }
@keyframes etape-sort-r { to { opacity: 0; transform: translateX(1rem); } }
@keyframes etape-entre-r { from { opacity: 0; transform: translateX(-1.25rem); } }

/* ---------- Réduction de mouvement : filet de sécurité ---------- */
html[data-motion="reduce"] *, html[data-motion="reduce"] *::before, html[data-motion="reduce"] *::after {
  scroll-behavior: auto !important;
}
html[data-motion="reduce"] .carte__visuel .flacon { transform: none !important; }
@media (prefers-reduced-motion: reduce) {
  html:not([data-motion="full"]) *, html:not([data-motion="full"]) *::before, html:not([data-motion="full"]) *::after { animation-duration: .2s !important; transition-duration: .16s !important; }
}
html { scroll-behavior: smooth; }
html[data-motion="reduce"] { scroll-behavior: auto; }

/* ---------- Couleurs forcées (Windows contraste élevé) ---------- */
@media (forced-colors: active) {
  .bouton, .filtre, .panier-bouton, .bouton-icone, .nav__menu, .creneau, .jour[data-etat="possible"], .choix__corps, .variante span { border: 1px solid ButtonText; }
  .interrupteur__piste { border: 1px solid ButtonText; }
  .interrupteur__bille { forced-color-adjust: none; background: ButtonText; }
  .interrupteur[aria-checked="true"] .interrupteur__bille { background: Highlight; }
  .filtre[aria-pressed="true"], .jour[aria-pressed="true"], .creneau[aria-pressed="true"], .variante input:checked + span, .choix input:checked + .choix__corps,
  .etapes [aria-current="step"] .etapes__n {
    forced-color-adjust: none; background: Highlight; color: HighlightText; border: 2px solid Highlight;
  }
  .barre-livraison__piste { border: 1px solid CanvasText; }
  .barre-livraison__rempli { forced-color-adjust: none; background: Highlight; }
  .jour[data-etat="complet"] { text-decoration: line-through; }
  .demo-banner, .toast, .encadre, .recap, .mini-panier, .barre-achat { border: 1px solid CanvasText; }
  .picto-goutte { fill: none; }
  .roue__arc:focus-visible { outline: 2px solid Highlight; }
  .halo, .fiche__planche, .ondes { display: none; }
}

/* ---------- Impression ---------- */
@media print { .entete, .pied, .scene, .demo-banner + .demo-banner, .halo, .alerte-stockage { margin: 0; padding: .9rem var(--marge); background: #A1301E; color: #fff; font-weight: 500; }
.toast { display: none !important; } body { background: #fff; color: #000; } }
.stepper__val { display: inline-grid; place-items: center; min-width: 2.5rem; font-weight: 600; font-variant-numeric: tabular-nums; }
/* J5 : en mode scène, la planche se trace au rythme du défilement */
html[data-scene="gl"][data-motion="full"] .affiche--cueillette .pl-tiges path { stroke-dasharray: 1 1; stroke-dashoffset: calc(1 - var(--tt, 0)); }
html[data-scene="gl"][data-motion="full"] .affiche--cueillette .pl-feuilles path { stroke-dasharray: 1 1; stroke-dashoffset: calc(1 - var(--tf, 0)); }
html[data-scene="gl"][data-motion="full"] .affiche--cueillette .pl-fleurs path { stroke-dasharray: 1 1; stroke-dashoffset: calc(1 - var(--tfl, 0)); }
