/* Brunante — site v1. Direction artistique : design/direction.md
   Idée : la page fait tomber la nuit, un fil de lumière descend jusqu'au sachet. */

@font-face {
  font-family: "Cormorant";
  src: url("/assets/fonts/cormorant.woff2") format("woff2");
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Cormorant";
  src: url("/assets/fonts/cormorant-italic.woff2") format("woff2");
  font-weight: 300 700;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Jost";
  src: url("/assets/fonts/jost.woff2") format("woff2");
  font-weight: 200 600;
  font-style: normal;
  font-display: swap;
}

:root {
  --crepuscule: #1B2444;
  --bleu-nuit: #0E1428;
  --nuit: #070A14;
  --nuit-noire: #04060C;
  --or: #D2AD6F;
  --or-clair: #EBCB92;
  --or-sombre: #9C7642;
  --braise: #F6BE6A;
  --ivoire: #EDE6D8;
  --ivoire-doux: rgba(237, 230, 216, .72);
  --ivoire-pale: rgba(237, 230, 216, .5);
  --filet: rgba(210, 173, 111, .22);

  --serif: "Cormorant", "Cormorant Garamond", Georgia, serif;
  --sans: "Jost", "Avenir Next", Avenir, "Helvetica Neue", Arial, sans-serif;

  --t-xs: 13px;
  --t-s: 15px;
  --t-m: 18px;
  --t-l: clamp(19px, 1.55vw, 22px);
  --t-xl: clamp(25px, 2.5vw, 34px);
  --t-2xl: clamp(34px, 4.4vw, 62px);
  --t-3xl: clamp(42px, 6.2vw, 92px);

  --lent: cubic-bezier(.22, .61, .36, 1);
  --tres-lent: cubic-bezier(.16, 1, .3, 1);
  --echelle: 1;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  background: var(--nuit-noire);
  color: var(--ivoire);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
}

body {
  margin: 0;
  font-family: var(--sans);
  font-weight: 300;
  font-size: var(--t-m);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  font-kerning: normal;
}

img, svg, canvas { display: block; }
img { max-width: 100%; height: auto; }
button { font: inherit; color: inherit; }
a { color: inherit; text-underline-offset: .2em; text-decoration-thickness: 1px; }
p { margin: 0; }
h1, h2, h3 { margin: 0; font-family: var(--serif); font-weight: 300; }
em, i { font-style: italic; }

::selection { background: rgba(210, 173, 111, .35); color: var(--ivoire); }
:focus-visible { outline: 2px solid var(--or-clair); outline-offset: 4px; border-radius: 2px; }

[hidden] { display: none !important; }

.visuellement-cache {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}

.evitement {
  position: fixed; left: 16px; top: -80px; z-index: 100;
  background: var(--or-clair); color: var(--bleu-nuit);
  padding: 10px 16px; text-decoration: none; border-radius: 2px;
}
.evitement:focus { top: 16px; }

/* ── Calques : nuit (fond de .page) < fil < grain < contenu < en-tête ── */

.tiroir-ouvert, .tiroir-ouvert body { overflow: hidden; }

.fil-canvas {
  position: fixed; inset: 0; width: 100%; height: 100%;
  pointer-events: none; z-index: 1;
}

.grain {
  position: fixed; inset: 0; z-index: 2; pointer-events: none; opacity: .07;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 .55 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

.page {
  position: relative;
  overflow-x: clip;
  background:
    radial-gradient(70% 520px at 50% 0, rgba(246, 190, 106, .085), rgba(246, 190, 106, 0) 75%),
    linear-gradient(180deg,
      #1A2343 0%, #141C38 7%, #0F162D 18%, #0C1225 34%,
      #090E1D 52%, #070B17 70%, #050810 86%, #04060C 100%);
}

.page > section, .page > footer { position: relative; z-index: 3; }

/* ── Boutons et liens ── */

.bouton {
  appearance: none;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 14px 30px;
  border: 1px solid rgba(235, 203, 146, .62);
  border-radius: 2px;
  background: rgba(235, 203, 146, .05);
  color: var(--or-clair);
  font-family: var(--sans); font-weight: 400; font-size: 16px; letter-spacing: .03em;
  text-decoration: none; cursor: pointer;
  transition: background .5s var(--lent), color .5s var(--lent), border-color .5s var(--lent), box-shadow .6s var(--lent);
}
.bouton:hover { background: rgba(235, 203, 146, .14); border-color: var(--or-clair); box-shadow: 0 0 32px rgba(246, 190, 106, .16); }
.bouton-plein { background: var(--or-clair); color: #121931; border-color: var(--or-clair); }
.bouton-plein:hover { background: #F5DCA9; color: #0E1428; box-shadow: 0 0 40px rgba(246, 190, 106, .32); }
.bouton-petit { min-height: 40px; padding: 8px 18px; font-size: 14px; }
.bouton-large { width: 100%; }
.bouton[disabled] { opacity: .6; cursor: progress; }

.lien-ecoute {
  display: inline-flex; align-items: center; gap: 12px;
  min-height: 52px; padding: 8px 6px;
  color: var(--ivoire); text-decoration: none; font-size: 16px; letter-spacing: .02em;
}
.pastille-lecture {
  position: relative; width: 38px; height: 38px; border-radius: 50%;
  border: 1px solid rgba(235, 203, 146, .55);
  transition: border-color .5s, box-shadow .5s;
}
.pastille-lecture::after {
  content: ""; position: absolute; left: 15px; top: 12px;
  border-left: 11px solid var(--or-clair); border-top: 7px solid transparent; border-bottom: 7px solid transparent;
}
.lien-ecoute:hover .pastille-lecture { border-color: var(--or-clair); box-shadow: 0 0 22px rgba(246, 190, 106, .28); }

.lien-discret {
  appearance: none; background: none; border: 0; padding: 6px 2px; cursor: pointer;
  color: var(--ivoire-doux); font-size: 14px; text-decoration: underline; text-underline-offset: .25em;
}

/* ── En-tête : apparaît une fois l'ouverture passée ── */

.entete {
  position: fixed; inset: 0 0 auto 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px clamp(16px, 3vw, 36px);
  background: linear-gradient(180deg, rgba(7, 10, 20, .9), rgba(7, 10, 20, .55) 65%, rgba(7, 10, 20, 0));
  transform: translateY(-115%);
  transition: transform .9s var(--tres-lent);
}
.entete.est-visible { transform: none; }
.entete-logo { display: block; padding: 6px 0; }
.entete-logo img { width: clamp(112px, 10vw, 138px); }

/* ── L'ouverture ── */

.ouverture {
  min-height: 100vh; min-height: 100svh;
  display: grid; grid-template-rows: auto 1fr auto; justify-items: center;
  padding: clamp(64px, 13vh, 150px) 24px clamp(36px, 6vh, 64px);
  text-align: center;
}
.ouverture-marque { display: grid; justify-items: center; gap: clamp(16px, 2.4vh, 24px); }
.ouverture-logo { width: min(600px, 78vw); filter: drop-shadow(0 0 30px rgba(246, 190, 106, .12)); }
.signature {
  font-family: var(--serif); font-weight: 500;
  font-size: clamp(12px, 1.05vw, 15px); letter-spacing: .44em; padding-left: .44em;
  text-transform: uppercase; color: var(--or);
}
.fil-origine { display: block; width: 2px; height: 2px; margin-top: clamp(10px, 3vh, 30px); }

.ouverture-texte { grid-row: 3; display: grid; justify-items: center; gap: 16px; max-width: 860px; }
.ouverture h1 {
  font-size: var(--t-3xl); line-height: 1.02; letter-spacing: -.012em;
  text-wrap: balance;
}
.chapeau { font-size: var(--t-l); color: var(--ivoire-doux); max-width: 30em; }
.actions { display: flex; flex-wrap: wrap; gap: 12px 28px; justify-content: center; align-items: center; margin-top: 12px; }
.mention { font-size: var(--t-s); color: var(--ivoire-pale); margin-top: 4px; }

/* Ce qui s'allume au passage du fil (sans JS, tout reste allumé) */
.js [data-allume] { transition: opacity 1.4s var(--lent), color 1.4s var(--lent), text-shadow 1.4s var(--lent); }

/* ── La version de soi ── */

.version {
  display: grid; justify-items: center; gap: clamp(30px, 7vh, 76px);
  padding: clamp(110px, 22vh, 230px) 24px clamp(90px, 18vh, 190px);
  text-align: center;
}
.vers {
  font-family: var(--serif); font-weight: 300;
  font-size: var(--t-2xl); line-height: 1.12; max-width: 15em; text-wrap: balance;
}
.js .vers { opacity: .24; }
.js .vers.est-allume { opacity: 1; }

/* ── Le corps en mots ── */

.corps { padding: clamp(80px, 14vh, 150px) 24px clamp(90px, 16vh, 170px); }
.corps-intro, .corps-outro { display: grid; justify-items: center; gap: 14px; text-align: center; max-width: 820px; margin: 0 auto; }
.corps-intro h2 { font-size: var(--t-2xl); line-height: 1.1; text-wrap: balance; }
.corps-intro p, .corps-outro p { color: var(--ivoire-doux); max-width: 32em; }
.corps-outro .grand, .grand {
  font-family: var(--serif); font-size: var(--t-xl); line-height: 1.25; color: var(--ivoire); text-wrap: balance;
}

.corps-figure {
  position: relative; height: clamp(760px, 112vh, 1000px);
  max-width: 760px; margin: clamp(70px, 12vh, 130px) auto;
}
.zone, .pensee, .cou { position: absolute; left: calc(50% + var(--x, 0px) * var(--echelle)); top: var(--y); transform: translate(-50%, -50%); white-space: nowrap; }
.pensee { left: calc(50% + var(--x, 0px) * var(--echelle-pensee, var(--echelle))); }
.zone {
  font-family: var(--serif); font-style: italic; font-weight: 400;
  font-size: clamp(22px, 2.3vw, 31px); color: var(--ivoire);
}
.zone-petite { font-size: clamp(19px, 1.8vw, 24px); }
.js .zone { opacity: .3; }
.js .zone.est-allume { opacity: 1; color: var(--or-clair); text-shadow: 0 0 26px rgba(246, 190, 106, .4); }
.cou { width: 2px; height: 2px; }

.pensee {
  font-size: 15px; letter-spacing: .02em; color: rgba(237, 230, 216, .58);
  transition: opacity 1.8s var(--lent), filter 1.8s var(--lent), top 2.2s var(--lent);
  transition-delay: calc(var(--i) * 110ms);
}
.corps-figure.apaise .pensee { opacity: 0; filter: blur(4px); top: calc(var(--y) - 5%); }
@media (prefers-reduced-motion: no-preference) {
  .pensee { animation: derive 7s ease-in-out infinite alternate; animation-delay: calc(var(--i) * -1.3s); }
}
@keyframes derive {
  from { translate: 0 0; }
  to { translate: var(--dx, 6px) var(--dy, -8px); }
}

/* ── Les trois gestes ── */

.gestes { padding: clamp(90px, 16vh, 170px) 24px; }
.gestes h2 { font-size: var(--t-2xl); text-align: center; line-height: 1.1; max-width: 14em; margin: 0 auto; text-wrap: balance; }
.geste-liste {
  list-style: none; padding: 0; margin: clamp(60px, 11vh, 120px) auto 0;
  max-width: 1080px;
  display: grid; grid-template-columns: 1fr 1fr; column-gap: clamp(90px, 13vw, 190px); row-gap: clamp(26px, 6vh, 60px);
}
.geste { display: grid; grid-template-columns: auto 1fr; column-gap: 22px; align-items: start; max-width: 430px; }
.geste:nth-child(odd) { grid-column: 1; justify-self: end; text-align: right; grid-template-columns: 1fr auto; }
.geste:nth-child(odd) .geste-num { order: 2; }
.geste:nth-child(even) { grid-column: 2; justify-self: start; }
.geste:nth-child(1) { grid-row: 1; }
.geste:nth-child(2) { grid-row: 2; }
.geste:nth-child(3) { grid-row: 3; }
.geste-num { font-family: var(--serif); font-style: italic; font-size: clamp(56px, 5.4vw, 78px); line-height: .82; color: var(--or); }
.geste h3 { font-size: var(--t-xl); line-height: 1.15; }
.geste p { color: var(--ivoire-doux); margin-top: 8px; }
.js .geste { opacity: .32; }
.js .geste.est-allume { opacity: 1; }

/* ── L'écoute ── */

.ecoute {
  display: grid; justify-items: center; gap: clamp(24px, 4vh, 40px);
  padding: clamp(100px, 18vh, 190px) 24px; text-align: center;
}
.ecoute-entete { display: grid; gap: 10px; justify-items: center; }
.ecoute-entete h2 { font-size: var(--t-2xl); line-height: 1.1; max-width: 14em; text-wrap: balance; }
.ecoute-entete p { color: var(--ivoire-pale); font-size: var(--t-s); }

.lecteur { position: relative; width: 240px; height: 240px; --niveau: 0; }
.lecteur-anneau { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.lecteur-anneau line { stroke: rgba(235, 203, 146, .26); stroke-width: 1.4; stroke-linecap: round; transition: stroke .4s; }
.lecteur-anneau line.passe { stroke: rgba(246, 208, 140, .95); }
.lecteur-bouton {
  position: absolute; inset: 52px; border-radius: 50%; cursor: pointer;
  display: grid; place-items: center;
  border: 1px solid rgba(235, 203, 146, .55);
  background: radial-gradient(circle at 50% 38%, rgba(235, 203, 146, .16), rgba(14, 20, 40, .96) 72%);
  box-shadow: 0 0 calc(18px + var(--niveau) * 46px) rgba(246, 190, 106, calc(.1 + var(--niveau) * .3));
  transition: border-color .5s, box-shadow .25s linear;
}
.lecteur-bouton:hover { border-color: var(--or-clair); }
.lecteur-bouton svg { width: 34px; height: 34px; fill: var(--or-clair); }
.lecteur-bouton .icone-lecture { transform: translateX(2px); }
.lecteur .icone-pause, .lecteur.joue .icone-lecture { display: none; }
.lecteur.joue .icone-pause { display: block; }
.lecteur-temps {
  position: absolute; left: 50%; bottom: -34px; transform: translateX(-50%);
  font-size: 13px; letter-spacing: .08em; color: var(--ivoire-pale); font-variant-numeric: tabular-nums;
}

.sous-titre {
  min-height: 3.6em; max-width: 21em; margin-top: 20px;
  font-family: var(--serif); font-style: italic; font-size: var(--t-xl); line-height: 1.25;
  color: var(--ivoire); transition: opacity .7s var(--lent); text-wrap: balance;
}
.sous-titre.cache { opacity: 0; }
.sous-titre.indication { color: var(--ivoire-pale); font-size: var(--t-l); }

.ecoute-pied { display: grid; justify-items: center; gap: 22px; }
.ecoute-fin { display: grid; justify-items: center; gap: 22px; max-width: 28em; }
.transcription { max-width: 34em; text-align: left; color: var(--ivoire-doux); font-size: var(--t-s); }
.transcription summary { cursor: pointer; text-align: center; color: var(--ivoire-pale); list-style: none; text-decoration: underline; text-underline-offset: .25em; }
.transcription summary::-webkit-details-marker { display: none; }
.transcription p { margin-top: 14px; }

/* ── Les 31 soirs ── */

.soirs { padding: clamp(100px, 18vh, 190px) 24px clamp(90px, 16vh, 170px); }
.soirs-grille {
  display: grid; grid-template-columns: 1fr auto 1fr; column-gap: clamp(48px, 8vw, 120px);
  max-width: 1120px; margin: 0 auto; align-items: start;
}
.soirs-titre, .soirs-texte { position: sticky; top: 34vh; }
.soirs-titre { text-align: right; justify-self: end; }
.soirs-titre h2 { font-size: var(--t-2xl); line-height: 1.08; max-width: 8.5em; margin-left: auto; }
.soirs-texte { display: grid; gap: 16px; color: var(--ivoire-doux); max-width: 24em; }

.chapelet { list-style: none; margin: 0; padding: 0; display: grid; justify-items: center; gap: 20px; }
.perle {
  position: relative; width: 11px; height: 11px; border-radius: 50%;
  border: 1px solid rgba(235, 203, 146, .5); background: var(--nuit);
  transition: background .9s var(--lent), box-shadow .9s var(--lent), border-color .9s var(--lent);
}
.js .perle.est-allume { background: var(--or-clair); border-color: var(--or-clair); box-shadow: 0 0 14px rgba(246, 190, 106, .65); }
.perle[data-etiquette]::after {
  content: attr(data-etiquette); position: absolute; left: 26px; top: 50%; transform: translateY(-50%);
  font-size: 13px; letter-spacing: .06em; color: var(--ivoire-pale); white-space: nowrap;
}

.soirs-fin { display: grid; justify-items: center; gap: 10px; text-align: center; margin-top: clamp(60px, 10vh, 100px); color: var(--ivoire-doux); }
.reviens { font-family: var(--serif); font-style: italic; font-size: var(--t-2xl); color: var(--ivoire); line-height: 1.1; }
.js .soirs-fin { opacity: .32; }
.js .soirs-fin.est-allume { opacity: 1; }

/* ── La tasse ── */

.tasse { padding: clamp(100px, 18vh, 190px) 24px; text-align: center; }
.tasse h2 { font-size: var(--t-2xl); line-height: 1.1; max-width: 15em; margin: 0 auto; text-wrap: balance; }
.ingredients {
  list-style: none; padding: 0; margin: clamp(60px, 10vh, 110px) auto;
  max-width: 960px; display: grid; grid-template-columns: 1fr 1fr;
  column-gap: clamp(90px, 15vw, 220px); row-gap: clamp(30px, 5.5vh, 56px);
}
.ingredient { display: grid; gap: 2px; }
.ingredient:nth-child(odd) { text-align: right; }
.ingredient:nth-child(even) { text-align: left; transform: translateY(clamp(30px, 6vh, 60px)); }
.ingredient-nom { font-family: var(--serif); font-style: italic; font-size: var(--t-xl); line-height: 1.15; }
.ingredient-note { font-size: var(--t-s); color: var(--ivoire-doux); }
.js .ingredient { opacity: .3; }
.js .ingredient.est-allume { opacity: 1; }
.js .ingredient.est-allume .ingredient-nom { color: var(--or-clair); }
.tasse-pied { max-width: 30em; margin: clamp(40px, 8vh, 80px) auto 0; color: var(--ivoire-doux); }

/* ── Chaque mois : le sachet ── */

.mois { padding: clamp(100px, 18vh, 190px) 24px clamp(110px, 18vh, 200px); }
.mois h2 { font-size: var(--t-2xl); text-align: center; line-height: 1.1; margin: 0 auto; max-width: 14em; text-wrap: balance; }
.mois-scene {
  display: grid; grid-template-columns: 1fr minmax(280px, 400px) 1fr;
  column-gap: clamp(40px, 6vw, 96px); align-items: center;
  max-width: 1200px; margin: clamp(80px, 14vh, 150px) auto 0;
}
.sachet { position: relative; margin: 0; grid-column: 2; grid-row: 1; }
.sachet img { width: 100%; filter: drop-shadow(0 46px 60px rgba(0, 0, 0, .6)); }
.sachet-fil { position: absolute; left: 50.3%; top: 37.4%; width: 2px; height: 2px; }
.sachet-lueur {
  position: absolute; left: 50.2%; top: 84%; width: 78%; aspect-ratio: 1.7;
  transform: translate(-50%, -50%); border-radius: 50%; pointer-events: none;
  background: radial-gradient(closest-side, rgba(255, 226, 170, .85), rgba(246, 170, 90, .32) 42%, rgba(246, 150, 70, 0));
  mix-blend-mode: screen; opacity: 0; transition: opacity 2.4s var(--lent);
}
.sachet.pose .sachet-lueur { opacity: .95; }
@media (prefers-reduced-motion: no-preference) {
  .sachet.pose .sachet-lueur { animation: braise 6s ease-in-out 2.4s infinite alternate; }
}
@keyframes braise { from { opacity: .95; } to { opacity: .62; } }

.mois-cote { display: grid; gap: 10px; align-content: center; }
.mois-gauche { grid-column: 1; grid-row: 1; text-align: right; justify-items: end; }
.mois-droite { grid-column: 3; grid-row: 1; justify-items: start; }
.mois-cote h3 { font-size: var(--t-xl); line-height: 1.15; }
.mois-cote p { color: var(--ivoire-doux); max-width: 21em; }
.mois-cote p + h3, .mois-cote .ticket-mini + h3 { margin-top: 28px; }
.js .mois-cote { opacity: .42; transition: opacity 1.8s var(--lent) .5s; }
.js .sachet.pose ~ .mois-cote { opacity: 1; }
.infuseur { width: min(230px, 70%); margin-bottom: 8px; filter: drop-shadow(0 24px 30px rgba(0, 0, 0, .5)); }

.ticket-mini {
  margin-top: 30px; width: 210px; aspect-ratio: 85 / 55;
  background: #05070D; border: 1px solid rgba(210, 173, 111, .28);
  display: grid; align-content: center; justify-items: center; gap: 12px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, .45); transform: rotate(-3deg);
}
.ticket-mini span:first-child { font-family: var(--serif); font-style: italic; font-size: 18px; color: var(--ivoire); }
.ticket-mini-or { width: 62%; height: 16px; border-radius: 2px; background: linear-gradient(100deg, #A97B44, #F1D69E 45%, #C49553 70%, #E8C68A); }

/* ── Les offres ── */

.offres { padding: clamp(90px, 15vh, 160px) 24px clamp(70px, 12vh, 120px); }
.offres-entete { display: grid; justify-items: center; gap: 12px; text-align: center; }
.offres-entete h2 { font-size: var(--t-2xl); line-height: 1.1; }
.offres-entete p { color: var(--ivoire-doux); max-width: 30em; }
.offres-grille {
  display: grid; grid-template-columns: 1fr 1.08fr 1fr; align-items: stretch;
  max-width: 1140px; margin: clamp(56px, 9vh, 90px) auto 0;
}
.offre {
  display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center;
  padding: 44px clamp(20px, 2.8vw, 44px) 46px;
}
.offre + .offre { border-left: 1px solid var(--filet); }
.offre-heros {
  position: relative; z-index: 1;
  margin: -22px 0; padding-top: 64px; padding-bottom: 66px;
  border: 1px solid rgba(235, 203, 146, .55) !important;
  background: linear-gradient(180deg, rgba(235, 203, 146, .085), rgba(235, 203, 146, .015) 70%);
}
.offre-heros + .offre { border-left: 0; }
.offre-nom { font-size: var(--t-xl); line-height: 1.1; }
.offre-duree { font-size: var(--t-s); color: var(--ivoire-pale); }
.offre-prix {
  font-family: var(--serif); font-weight: 300; font-size: clamp(46px, 4.6vw, 66px); line-height: 1;
  color: var(--or-clair); margin-top: 10px; font-variant-numeric: lining-nums;
}
.offre-prix small { font-family: var(--sans); font-size: 15px; letter-spacing: .02em; color: var(--ivoire-doux); }
.offre-soir { font-size: var(--t-s); color: var(--or); }
.offre-texte { color: var(--ivoire-doux); font-size: 16px; max-width: 19em; flex: 1; margin-top: 6px; }
.offre .bouton { margin-top: 14px; }
.offres-pied { text-align: center; color: var(--ivoire-pale); font-size: var(--t-s); margin-top: clamp(44px, 7vh, 70px); }

/* ── Rassurance, questions, fin ── */

.rassurance { padding: clamp(60px, 10vh, 110px) 24px; text-align: center; }
.rassurance p {
  max-width: 22em; margin: 0 auto;
  font-family: var(--serif); font-style: italic; font-size: var(--t-xl); line-height: 1.3; text-wrap: balance;
}

.questions { max-width: 780px; margin: 0 auto; padding: clamp(60px, 10vh, 110px) 24px clamp(80px, 14vh, 150px); }
.questions h2 { font-size: var(--t-2xl); line-height: 1.1; margin-bottom: clamp(28px, 5vh, 48px); }
.question { border-top: 1px solid var(--filet); }
.question:last-of-type { border-bottom: 1px solid var(--filet); }
.question summary {
  position: relative; list-style: none; cursor: pointer;
  padding: 22px 48px 22px 0;
  font-family: var(--serif); font-size: clamp(22px, 2vw, 27px); line-height: 1.25;
}
.question summary::-webkit-details-marker { display: none; }
.question summary::after {
  content: ""; position: absolute; right: 8px; top: 50%; width: 10px; height: 10px;
  border-right: 1px solid var(--or); border-bottom: 1px solid var(--or);
  transform: translateY(-70%) rotate(45deg); transition: transform .45s var(--lent);
}
.question[open] summary::after { transform: translateY(-25%) rotate(-135deg); }
.question summary:hover { color: var(--or-clair); }
.reponse { padding: 0 0 26px; color: var(--ivoire-doux); max-width: 36em; }

.fin { display: grid; justify-items: center; gap: 22px; text-align: center; padding: clamp(110px, 20vh, 230px) 24px clamp(70px, 12vh, 130px); }
.fin-nom { font-family: var(--serif); font-size: var(--t-xl); line-height: 1.3; max-width: 22em; color: var(--ivoire-doux); text-wrap: balance; }
.fin-heure { font-family: var(--serif); font-size: var(--t-2xl); line-height: 1.1; margin-bottom: 12px; }

.pied { padding: 30px 24px 56px; text-align: center; font-size: 14px; color: var(--ivoire-pale); }
.pied-univers { font-family: var(--serif); font-style: italic; font-size: 19px; line-height: 1.4; max-width: 30em; margin: 0 auto 30px; color: var(--ivoire-doux); }
.pied nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 28px; }
.pied nav a { text-decoration: none; padding: 6px 0; }
.pied nav a:hover { color: var(--ivoire); text-decoration: underline; }

/* ── Le tiroir de réservation ── */

.tiroir {
  border: 0; padding: 0; margin: 0 0 0 auto;
  width: min(500px, 100vw); height: 100vh; height: 100dvh; max-height: none; max-width: 100vw;
  background: linear-gradient(180deg, #141C38 0%, #0C1226 55%, #080C19 100%);
  color: var(--ivoire); box-shadow: -30px 0 90px rgba(0, 0, 0, .55);
  overflow-y: auto; overscroll-behavior: contain;
}
.tiroir::backdrop { background: rgba(4, 6, 12, .66); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); }
@media (prefers-reduced-motion: no-preference) {
  .tiroir[open] { animation: tiroir-entre .7s var(--tres-lent); }
}
@keyframes tiroir-entre { from { transform: translateX(48px); opacity: 0; } }

.tiroir-fermer {
  position: absolute; top: 14px; right: 14px; width: 44px; height: 44px;
  background: none; border: 0; cursor: pointer; border-radius: 50%;
}
.tiroir-fermer span, .tiroir-fermer span::after {
  position: absolute; left: 12px; top: 21px; width: 20px; height: 1px; background: var(--ivoire); content: "";
}
.tiroir-fermer span { transform: rotate(45deg); }
.tiroir-fermer span::after { left: 0; top: 0; transform: rotate(90deg); }
.tiroir-fermer:hover { background: rgba(237, 230, 216, .06); }

.tiroir-corps { padding: 64px clamp(24px, 6vw, 52px) 44px; }
.tiroir h2 { font-size: clamp(32px, 3.2vw, 42px); line-height: 1.05; }
.tiroir h2:focus { outline: none; }
.tiroir-intro { color: var(--ivoire-doux); margin-top: 10px; }
.tiroir-petit { font-size: 13px; color: var(--ivoire-pale); margin-top: 14px; text-align: center; }

.choix-offre { border: 0; padding: 0; margin: 30px 0 8px; display: grid; gap: 10px; }
.choix-offre legend { font-size: 14px; color: var(--ivoire-doux); padding: 0; margin-bottom: 10px; }
.choix {
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 14px;
  padding: 15px 18px; border: 1px solid rgba(210, 173, 111, .24); border-radius: 2px; cursor: pointer;
  transition: border-color .35s, background .35s;
}
.choix:hover { border-color: rgba(235, 203, 146, .55); }
.choix:has(input:checked) { border-color: var(--or-clair); background: rgba(235, 203, 146, .07); }
.choix input {
  appearance: none; margin: 0; width: 18px; height: 18px; border-radius: 50%;
  border: 1px solid rgba(235, 203, 146, .7); display: grid; place-items: center; cursor: pointer;
}
.choix input::after { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--or-clair); transform: scale(0); transition: transform .25s var(--lent); }
.choix input:checked::after { transform: scale(1); }
.choix input:focus-visible { outline: 2px solid var(--or-clair); outline-offset: 3px; }
.choix-nom { font-size: 16px; }
.choix-prix { font-family: var(--serif); font-size: 21px; color: var(--or-clair); font-variant-numeric: lining-nums; }

.champ { display: grid; gap: 8px; margin-top: 18px; }
.champ > span { font-size: 14px; color: var(--ivoire-doux); }
.champ i { color: var(--ivoire-pale); }
.champ input {
  width: 100%; padding: 14px 16px; border-radius: 2px;
  background: rgba(237, 230, 216, .035); border: 1px solid rgba(237, 230, 216, .22);
  color: var(--ivoire); font: inherit; font-size: 17px;
  transition: border-color .3s, background .3s;
}
.champ input:focus { outline: none; border-color: var(--or-clair); background: rgba(237, 230, 216, .06); }
.champ input[aria-invalid="true"] { border-color: #E59A84; }
.pot { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.erreur { color: #F0AE98; font-size: 15px; margin-top: 16px; }
.formulaire .bouton-large { margin-top: 26px; }

.ticket {
  position: relative; width: min(360px, 100%); aspect-ratio: 85 / 55; margin: 30px auto 6px;
  background: #05070D; border: 1px solid rgba(210, 173, 111, .3);
  box-shadow: 0 30px 60px rgba(0, 0, 0, .5);
  display: grid; grid-template-rows: auto auto 1fr; justify-items: center; align-items: center;
  padding: 18px 22px 20px; text-align: center;
}
.ticket-etoile {
  width: 14px; height: 14px; background: var(--or-clair);
  clip-path: polygon(50% 0, 60% 40%, 100% 50%, 60% 60%, 50% 100%, 40% 60%, 0 50%, 40% 40%);
}
.ticket-titre { font-family: var(--serif); font-style: italic; font-size: 21px; margin-top: 6px; }
.ticket-zone { position: relative; width: 100%; height: 100%; min-height: 70px; display: grid; place-items: center; margin-top: 10px; }
.ticket-secret { font-family: var(--serif); font-size: 20px; line-height: 1.25; color: var(--or-clair); padding: 6px 10px; }
.ticket-secret sup { font-size: .62em; line-height: 0; }
.ticket-grattage { position: absolute; inset: 0; width: 100%; height: 100%; cursor: crosshair; touch-action: none; transition: opacity 1s var(--lent); border-radius: 2px; }
.ticket-grattage.gratte { opacity: 0; pointer-events: none; }
.tiroir [data-reveler] { display: block; margin: 0 auto; }

.partage { margin-top: 30px; padding-top: 26px; border-top: 1px solid var(--filet); text-align: center; }
.partage > p:first-child { color: var(--ivoire-doux); }
.partage-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 16px; }
.partage [data-lien] { word-break: break-all; }

/* ── Pages de texte (mentions, confidentialité) ── */

.texte-page { max-width: 720px; margin: 0 auto; padding: 130px 24px 90px; }
.texte-page h1 { font-size: var(--t-2xl); line-height: 1.1; margin-bottom: 36px; }
.texte-page h2 { font-size: var(--t-xl); margin: 40px 0 12px; }
.texte-page p, .texte-page li { color: var(--ivoire-doux); }
.texte-page p + p { margin-top: 12px; }
.texte-page ul { padding-left: 1.2em; }
.texte-page a { color: var(--or-clair); }
.retour { display: inline-block; margin-bottom: 40px; color: var(--ivoire-pale); text-decoration: none; font-size: 15px; }
.retour:hover { color: var(--ivoire); }
.formulaire-contact { margin-top: 20px; }
.formulaire-contact textarea {
  width: 100%; min-height: 140px; padding: 14px 16px; border-radius: 2px; resize: vertical;
  background: rgba(237, 230, 216, .035); border: 1px solid rgba(237, 230, 216, .22);
  color: var(--ivoire); font: inherit; font-size: 17px;
}
.formulaire-contact textarea:focus { outline: none; border-color: var(--or-clair); }
.formulaire-contact .bouton { margin-top: 22px; }
.confirmation { color: var(--or-clair); margin-top: 18px; }

/* ── Mobile : on recompose, on ne compresse pas ── */

@media (max-width: 860px) {
  :root { --echelle: .5; --echelle-pensee: .6; --t-m: 17px; }

  .ouverture-logo { width: min(440px, 80vw); }

  .geste-liste { grid-template-columns: 1fr; row-gap: clamp(64px, 12vh, 100px); }
  .geste, .geste:nth-child(odd), .geste:nth-child(even) {
    grid-column: 1; grid-row: auto; justify-self: center; text-align: center;
    grid-template-columns: 1fr; justify-items: center; row-gap: 10px; max-width: 26em;
  }
  .geste:nth-child(odd) .geste-num { order: 0; }

  .corps-figure { height: clamp(700px, 100vh, 860px); }
  .zone { font-size: 21px; }
  .zone-petite { font-size: 18px; }
  .pensee { font-size: 13px; }

  .soirs-grille { grid-template-columns: 1fr; row-gap: 56px; justify-items: center; }
  .soirs-titre, .soirs-texte { position: static; text-align: center; justify-self: center; }
  .soirs-titre h2 { margin: 0 auto; }
  .chapelet { gap: 16px; }
  .soirs-texte { justify-items: center; }

  .ingredients { grid-template-columns: 1fr; row-gap: 34px; }
  .ingredient:nth-child(odd), .ingredient:nth-child(even) { text-align: center; transform: none; }

  .mois-scene { grid-template-columns: 1fr; row-gap: 64px; justify-items: center; }
  .sachet { grid-column: 1; grid-row: 1; width: min(330px, 82vw); }
  .mois-gauche, .mois-droite { grid-column: 1; grid-row: auto; text-align: center; justify-items: center; }

  .offres-grille { grid-template-columns: 1fr; row-gap: 18px; max-width: 460px; }
  .offre + .offre { border-left: 0; }
  .offre { border: 1px solid var(--filet); }
  .offre-heros { margin: 0; padding-top: 44px; padding-bottom: 46px; }

  .tiroir {
    width: 100vw; height: auto; max-height: 94dvh; margin: auto 0 0 0;
    border-radius: 14px 14px 0 0; box-shadow: 0 -20px 60px rgba(0, 0, 0, .5);
  }
  @media (prefers-reduced-motion: no-preference) {
    .tiroir[open] { animation-name: tiroir-monte; }
  }
  .tiroir-corps { padding-top: 56px; }
}
@keyframes tiroir-monte { from { transform: translateY(60px); opacity: 0; } }

@media (max-width: 420px) {
  :root { --echelle: .44; --echelle-pensee: .56; }
  .zone { font-size: 19px; }
  .actions { flex-direction: column; gap: 6px; }
  .bouton { padding-inline: 24px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js [data-allume] { transition: none; }
}

/* Pages de texte : la nuit, sans le fil */
.page-texte { min-height: 100vh; min-height: 100svh; }
.texte-perdu { min-height: 100svh; display: grid; align-content: center; justify-items: start; gap: 18px; }
.texte-perdu .bouton { margin-top: 18px; }
