/* ============================================================
   TRENKIL — Les scènes du site vitrine
   Une scène = un bloc commenté. Le JS ne pose que des classes
   d'état (.on, .in, .is-off…) et des custom properties (--p) ;
   tout le rendu est déclaratif, ici.
   ============================================================ */

/* ------------------------------------------------------------
   HERO — « Vous levez le jour ».
   Toute la scène est pilotée par UNE variable : --sun (0 = nuit,
   1 = aube), posée sur .hero par le JS. Chaque couche la
   consomme en déclaratif : le ciel s'échauffe (opacity), les
   étoiles s'effacent, le soleil monte (translateY), la crête
   des montagnes prend un liseré, les inspirations s'allument.
   Le soleil vit dans un conteneur à overflow hidden : la ligne
   d'horizon est un clip, pas un calcul.
   ------------------------------------------------------------ */

.hero {
  --landh: clamp(120px, 18vh, 190px);
  --lakeh: clamp(76px, 11vh, 130px); /* la bande d'eau, sous les crêtes */
  position: relative;
  min-height: 100svh;
  display: grid;
  place-items: center;
  /* Le contenu vit au-dessus du paysage : le soleil se lève
     sous les CTA, il ne les touche pas. */
  padding: calc(var(--nav-h) + 24px) 0 calc(var(--landh) + var(--lakeh) + 16px);
  overflow: hidden;
}

.dawn { position: absolute; inset: 0; pointer-events: none; }

/* Le ciel qui s'échauffe — le jour monte par le bas. */
.dawn__aube {
  position: absolute; inset: 0;
  opacity: var(--sun);
  background:
    radial-gradient(95% 60% at 50% 102%, rgba(245, 192, 122, 0.30) 0%, rgba(240, 154, 98, 0.12) 40%, rgba(6, 14, 17, 0) 68%),
    linear-gradient(180deg, rgba(6, 14, 17, 0) 34%, rgba(15, 118, 110, 0.14) 100%);
}

/* Les étoiles : un seul élément, une ombre par étoile (en vw/vh,
   posées par le JS) — elles s'effacent quand le soleil monte. */
.dawn__stars {
  position: absolute; inset: 0 0 22%;
  opacity: calc(1 - var(--sun) * 1.3);
}

.dawn__stars i {
  position: absolute; top: 0; left: 0;
  width: 2px; height: 2px; border-radius: 50%;
}

/* L'horizon est un clip : le soleil ne peut pas exister sous la
   ligne d'eau. Le conteneur monte jusqu'en haut du hero : il ne
   coupe QUE le bas — un clip plus court trancherait le halo. */
.dawn__horizon {
  position: absolute; left: 0; right: 0;
  top: 0;
  bottom: var(--lakeh);
  overflow: hidden;
}

/* Le soleil : un disque avec de la matière (bord assombri, sommet
   incandescent, comme à travers l'atmosphère), un halo serré qui
   respire, une corona large. Il se lève DERRIÈRE les crêtes :
   son bas est occulté par la montagne, pas coupé par une ligne. */
.dawn__sun {
  position: absolute; left: 50%; bottom: -70px;
  width: 220px; height: 220px; border-radius: 50%;
  background: radial-gradient(circle at 50% 20%,
    #FFF8E9 0%, #FFE3B0 30%, #F5C07A 58%, #F09A62 84%, #E98950 97%, rgba(233, 137, 80, 0) 100%);
  box-shadow:
    inset 0 -18px 40px rgba(233, 137, 80, 0.55),
    inset 0 14px 30px rgba(255, 250, 238, 0.6),
    0 0 38px rgba(255, 226, 176, 0.5),
    0 0 100px rgba(245, 192, 122, 0.4),
    0 0 220px rgba(245, 170, 100, 0.24);
  transform: translateX(-50%) translateY(calc((1 - var(--sun)) * 190px));
}

.dawn__sun::before {
  content: "";
  position: absolute; inset: -26%;
  border-radius: 50%;
  background: radial-gradient(circle,
    rgba(255, 240, 214, 0.5) 0%, rgba(255, 226, 176, 0.18) 45%, rgba(255, 226, 176, 0) 68%);
  opacity: var(--sun);
  animation: sun-breathe 6.5s ease-in-out infinite alternate;
}

.dawn__sun::after {
  content: "";
  position: absolute; inset: -130%;
  border-radius: 50%;
  background: radial-gradient(circle,
    rgba(245, 192, 122, 0.4) 0%, rgba(245, 170, 100, 0.14) 40%, rgba(245, 170, 100, 0) 66%);
  opacity: var(--sun);
}

@keyframes sun-breathe {
  to { transform: scale(1.08); }
}


/* Deux nuages effilés au-dessus des crêtes : silhouettes sombres
   dont le ventre s'embrase avec le soleil. Ils dérivent à peine. */
.dawn__cloud {
  position: absolute;
  height: 10px; border-radius: 999px;
  background: linear-gradient(180deg, rgba(10, 27, 33, 0.72) 0%, rgba(10, 27, 33, 0.4) 100%);
  filter: blur(1px); /* de la brume, pas un trait — c'est de l'atmosphère */
  animation: cloud-drift 70s ease-in-out infinite alternate;
}

.dawn__cloud::after {
  content: "";
  position: absolute; inset: 55% -2px -1px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(245, 192, 122, 0.5), rgba(240, 154, 98, 0.12));
  opacity: var(--sun);
}

/* Juste au-dessus des crêtes (les sommets culminent vers 78 %
   de la boîte des montagnes), jamais dans la zone de contenu. */
.dawn__cloud--1 {
  width: 230px;
  left: calc(50% - 330px);
  bottom: calc(var(--lakeh) + var(--landh) * 0.78);
}

.dawn__cloud--2 {
  width: 140px; height: 7px;
  left: calc(50% + 170px);
  bottom: calc(var(--lakeh) + var(--landh) * 0.94);
  animation-duration: 90s; animation-delay: -30s;
}

@keyframes cloud-drift {
  to { transform: translateX(34px); }
}

.dawn__land {
  position: absolute; left: 0; right: 0;
  bottom: var(--lakeh); /* les crêtes se posent sur l'eau */
  width: 100%; height: var(--landh);
}

.dawn__ridge--back { fill: #0A1B21; }
.dawn__ridge--front { fill: #040D10; }

/* Le liseré d'aube sur la crête : la lumière touche d'abord les sommets. */
.dawn__rim {
  fill: none;
  stroke: rgba(245, 192, 122, 0.6);
  stroke-width: 1.5;
  opacity: calc(var(--sun) * 0.75);
}

/* La barre teal du logo devient la ligne d'eau : posée là où la
   montagne touche le lac, fondue à ses extrémités. L'identité
   (dôme ambre au-dessus de la ligne teal) appartient au paysage. */
.dawn__bar {
  position: absolute; left: 50%;
  bottom: calc(var(--lakeh) - 2px);
  transform: translateX(-50%);
  width: min(640px, 82vw); height: 4px;
  border-radius: 999px;
  background: linear-gradient(90deg,
    rgba(45, 212, 191, 0) 0%, var(--teal) 22%, var(--teal) 78%, rgba(45, 212, 191, 0) 100%);
  filter: drop-shadow(0 0 12px rgba(45, 212, 191, 0.55));
  opacity: calc(0.38 + var(--sun) * 0.62);
}

/* ---- LE LAC ---- */

.dawn__lake {
  position: absolute; left: 0; right: 0; bottom: 0;
  height: var(--lakeh);
  overflow: hidden;
  background: linear-gradient(180deg, #0B282C 0%, #07191E 48%, #050F13 100%);
}

/* La lueur du ciel sur l'eau. */
.dawn__lake::before {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(72% 95% at 50% 0%,
    rgba(245, 180, 110, 0.32) 0%, rgba(245, 180, 110, 0.08) 46%, rgba(245, 180, 110, 0) 76%);
  opacity: var(--sun);
}

/* Le reflet des crêtes, retourné dans l'eau : discret, adouci —
   c'est de la lumière sur une surface, le flou y est permis. */
.dawn__mirror {
  position: absolute; left: 0; right: 0; top: 0;
  width: 100%; height: var(--landh);
  transform: scaleY(-1);
  opacity: 0.14;
  filter: blur(2px);
  -webkit-mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0) 82%);
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0) 82%);
}

/* Le chemin de soleil : des stries horizontales de deux
   fréquences qui dérivent en sens opposés, fondues par un
   masque radial — du scintillement, pas un projecteur. */
.dawn__glitter {
  position: absolute; left: 50%; top: 0;
  width: 330px; height: 100%;
  transform: translateX(-50%);
  background:
    repeating-linear-gradient(180deg,
      rgba(255, 222, 165, 0.5) 0px, rgba(255, 222, 165, 0.5) 2px, rgba(255, 222, 165, 0) 2px, rgba(255, 222, 165, 0) 8px),
    repeating-linear-gradient(180deg,
      rgba(255, 196, 130, 0.32) 0px, rgba(255, 196, 130, 0.32) 3px, rgba(255, 196, 130, 0) 3px, rgba(255, 196, 130, 0) 14px);
  -webkit-mask-image: radial-gradient(52% 108% at 50% 0%, #000 24%, rgba(0, 0, 0, 0.4) 56%, transparent 80%);
  mask-image: radial-gradient(52% 108% at 50% 0%, #000 24%, rgba(0, 0, 0, 0.4) 56%, transparent 80%);
  opacity: calc(var(--sun) * 0.9);
  animation: glitter-drift 7s linear infinite;
}

/* Les périodes (8 et 14 px) glissent d'exactement un cycle :
   la boucle est invisible, l'eau respire. */
@keyframes glitter-drift {
  to { background-position: 0 8px, 0 -14px; }
}

.hero__field {
  position: absolute; inset: 0;
  pointer-events: none;
  opacity: calc(1 - var(--hx, 0));
  transform: translateY(calc(var(--hx, 0) * -40px));
}

.frag {
  position: absolute; left: 50%; top: 50%;
  transform: translate(-50%, -50%)
             translate(calc(var(--x) * 1vw), calc(var(--y) * 1vh));
  animation: frag-drift 8.4s ease-in-out infinite alternate;
}

/* Désynchronisation : l'unisson se lirait comme un motif. */
.frag:nth-child(2n) { animation-duration: 10.2s; }
.frag:nth-child(3n) { animation-duration: 7.1s; }
.frag:nth-child(5n) { animation-duration: 11.6s; }

@keyframes frag-drift {
  to { transform: translate(-50%, -50%)
                  translate(calc(var(--x) * 1vw + 8px), calc(var(--y) * 1vh - 10px)); }
}

/* Chaque fragment a deux visages empilés (grid 1/1) :
   la question qui pèse (verre sombre, penchée) et l'idée qui
   la remplace (papier ensoleillé, droite — du penché vers le
   droit, la grammaire de la page). La classe .good bascule
   de l'un à l'autre, dans les deux sens. */
.frag { display: grid; }

.frag i {
  grid-area: 1 / 1;
  justify-self: center;
  align-self: center;
  display: block;
  font-style: normal;
  font-family: 'Outfit', sans-serif;
  font-size: 0.86rem; font-weight: 400;
  border-radius: 18px;
  padding: 9px 15px;
  white-space: nowrap;
}

.frag__bad {
  color: rgba(246, 250, 249, 0.5);
  background: rgba(246, 250, 249, 0.05);
  border: 1px solid rgba(246, 250, 249, 0.09);
  box-shadow: 0 6px 20px rgba(3, 10, 12, 0.35);
  transform: rotate(var(--r, 0deg));
  animation: frag-in 1.4s var(--ease) var(--d, 0s) backwards;
  transition: opacity 0.5s var(--gather), transform 0.5s var(--gather);
}

/* Les voix : ce qu'on entend, un ton au-dessus des notes. */
.frag--said .frag__bad {
  color: rgba(246, 250, 249, 0.74);
  background: rgba(246, 250, 249, 0.07);
  border-color: rgba(246, 250, 249, 0.14);
}

.frag.good .frag__bad {
  opacity: 0;
  transform: rotate(0deg) translateY(-10px) scale(0.97);
}

/* L'idée : un morceau de papier qui a pris le soleil. */
.frag__good {
  font-weight: 500;
  color: var(--ink-dark);
  background: linear-gradient(168deg, var(--paper) 0%, var(--paper-edge) 100%);
  box-shadow:
    0 8px 26px rgba(245, 170, 100, 0.24),
    0 6px 20px rgba(3, 10, 12, 0.35);
  opacity: 0;
  transform: rotate(var(--r, 0deg)) translateY(12px) scale(0.95);
  transition: opacity 0.5s var(--ease), transform 0.6s var(--snap);
}

.frag.good .frag__good {
  opacity: 1;
  transform: rotate(0deg) scale(1);
}

@keyframes frag-in {
  from { opacity: 0; transform: rotate(var(--r, 0deg)) translateY(14px); }
}

/* Sur petit écran, seules les questions courtes flottent ; le
   soleil et le chemin de lumière se resserrent à l'échelle.

   Le champ change aussi de grammaire. Sur grand écran les idées
   tournent autour d'un centre ; sur téléphone, le bloc central
   remplit presque tout l'écran, « autour du centre » n'existe
   plus : les positions en vh depuis le milieu tombaient dans le
   titre et deux idées se retrouvaient à la même hauteur, l'une
   sur l'autre. Elles sont donc ancrées aux BORDS du hero, dans
   les deux bandes qui restent libres — sous la nav, et sur le
   paysage — à quatre hauteurs distinctes, et elles passent à la
   ligne au lieu de sortir de l'écran. */
@media (max-width: 900px) {
  .frag--m { display: none; }

  .frag {
    left: auto; right: auto; top: auto; bottom: auto;
    transform: none;
    animation-name: frag-drift-m;
  }

  .frag i {
    font-size: 0.72rem;
    line-height: 1.35;
    padding: 6px 12px;
    border-radius: 15px;
    white-space: normal;
    text-align: center;
    max-width: min(74vw, 300px);
  }

  /* Deux hauteurs en haut, deux en bas ; jamais du même côté à
     la même hauteur : le champ reste vivant sans se croiser. */
  .frag--s1 { top: calc(var(--nav-h) + 6px); left: 3vw; }
  .frag--s2 { top: calc(var(--nav-h) + 44px); right: 3vw; }
  .frag--s3 { bottom: calc(var(--landh) + var(--lakeh) - 40px); left: 3vw; }
  .frag--s4 { bottom: calc(var(--landh) - 20px); right: 3vw; }

  /* Le bloc central se resserre un peu : c'est ce qui rend la
     bande sous la nav respirable. */
  .hero__center { gap: 16px; }

  .dawn__sun { width: 165px; height: 165px; bottom: -52px; }
  .dawn__glitter { width: 240px; }
  .dawn__cloud--1 { left: calc(50% - 190px); width: 150px; }
  .dawn__cloud--2 { left: calc(50% + 70px); width: 100px; }
}

/* La dérive, version ancrée : plus de translate(-50%, -50%) à
   préserver, l'idée respire simplement sur place. */
@keyframes frag-drift-m {
  to { transform: translate(7px, -9px); }
}

/* Écran court (iPhone SE, mini) : la bande sous la nav n'existe
   pas — le titre commencerait sous les idées. Seules les deux
   idées du paysage restent ; mieux vaut un champ plus calme
   qu'un champ qui marche sur le texte. */
@media (max-width: 900px) and (max-height: 820px) {
  .frag--s1, .frag--s2 { display: none; }
}

/* ------------------------------------------------------------
   L'INTRODUCTION — ~5 s avant le site.
   html.intro : seul le ciel joue (nav, contenu et cue sont
   retirés du rendu). À la fin, le JS retire la classe et le
   site entre en scène (site-in) ; les lettres du nom rejouent
   leur chute. html.skip : le visiteur a fait un geste, tout
   arrive immédiatement — la page ne prend personne en otage.
   ------------------------------------------------------------ */

html.intro { overflow: hidden; }
html.intro .nav,
html.intro .hero__center,
html.intro .hero__cue { display: none; }
html.intro .frag { pointer-events: none; }

.frag { pointer-events: auto; }

html.skip .frag__bad { animation: none; }

.nav { animation: site-in 0.9s var(--ease) backwards; }
.hero__center { animation: site-in 1.1s var(--ease) backwards; }

@keyframes site-in {
  from { opacity: 0; transform: translateY(14px); }
}

.hero__center {
  position: relative;
  display: grid; justify-items: center; gap: 22px;
  text-align: center;
  padding: 0 24px;
}

/* Le nom — dégradé aube→eau, le i porte le soleil. */
.brand {
  font-family: 'Outfit', sans-serif;
  font-size: clamp(56px, 11vw, 118px);
  font-weight: 500;
  letter-spacing: -0.018em;
  line-height: 1;
  margin-top: 8px;
}

.brand .l {
  display: inline-block;
  background: linear-gradient(178deg, #FFF6E7 0%, #FCE2BA 34%, #D8EFE6 68%, #93E2D6 100%);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
  animation: letter-drop 0.86s var(--snap) calc(0.35s + var(--i) * 0.055s) backwards;
}

.brand .l--i {
  background: linear-gradient(180deg, #FFF3DC 0%, #F8CE93 55%, #F5C07A 100%);
  -webkit-background-clip: text; background-clip: text;
  filter: drop-shadow(0 0 22px rgba(245, 192, 122, 0.55));
}

/* Net dès 0 % : un mot qui atterrit, pas un mot qui apparaît. */
@keyframes letter-drop {
  from { opacity: 0; transform: translateY(26px) scale(0.94); }
}

.hero__tagline {
  font-family: 'Instrument Serif', Georgia, serif;
  font-style: italic; font-weight: 400;
  font-size: clamp(1.4rem, 3.6vw, 2.2rem);
  color: var(--ink);
}

.hero__lead { max-width: 36em; }

.hero__ctas {
  display: flex; gap: 14px; flex-wrap: wrap; justify-content: center;
  margin-top: 10px;
}

.hero__cue {
  position: absolute; bottom: 22px; left: 50%;
  transform: translateX(-50%);
  display: grid; justify-items: center; gap: 10px;
  font-family: 'Outfit', sans-serif;
  font-size: 0.72rem; letter-spacing: 0.3em; text-transform: uppercase;
  color: var(--ink-mute);
  animation: cue-in 1.4s var(--ease) 1.2s backwards;
}

.hero__cue::after {
  content: "";
  width: 1px; height: 34px;
  background: linear-gradient(180deg, var(--ink-mute), transparent);
  animation: cue-pulse 2.4s var(--ease) infinite;
}

@keyframes cue-in { from { opacity: 0; } }
@keyframes cue-pulse { 50% { transform: scaleY(0.55); transform-origin: top; } }

/* ------------------------------------------------------------
   LA MÉTHODE — les cinq questions.
   Scène épinglée : les questions se posent une à une,
   du penché vers le droit (jamais du flou vers le net).
   Le JS pilote --p (0 → 1) et pose .on par seuil — réversible.
   ------------------------------------------------------------ */

.methode { height: 380vh; }

.methode__pin {
  position: sticky; top: 0;
  height: 100svh;
  display: flex; align-items: center;
  overflow: hidden;
}

.methode__grid {
  display: grid;
  grid-template-columns: minmax(300px, 5fr) minmax(320px, 6fr);
  gap: clamp(32px, 6vw, 88px);
  align-items: center;
}

.methode__copy { display: grid; gap: 18px; }

.methode__count {
  font-family: 'Instrument Serif', Georgia, serif;
  font-style: italic;
  font-size: 1.1rem;
  color: var(--amber);
}

.qstack { display: grid; gap: 14px; }

.qcard {
  display: flex; align-items: center; gap: 18px;
  background: rgba(246, 250, 249, 0.05);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 17px 22px;
  opacity: 0;
  transform: translateY(30px) rotate(-2.2deg);
  transition: opacity 0.5s var(--ease), transform 0.65s var(--snap),
              border-color 0.5s ease, background 0.5s ease;
}

.qcard.on {
  opacity: 1;
  transform: none;
}

/* La dernière posée est la plus présente ; les précédentes
   reculent d'un ton — on conduit l'œil sans rien flouter. */
.qcard.on:not(.is-last) { background: rgba(246, 250, 249, 0.035); }
.qcard.is-last { border-color: rgba(45, 212, 191, 0.3); }

.qcard__n {
  font-family: 'Instrument Serif', Georgia, serif;
  font-style: italic;
  font-size: 1.5rem;
  color: var(--amber);
  min-width: 1.2em;
  text-align: center;
}

.qcard__body { display: grid; gap: 7px; }

.qcard__q {
  font-family: 'Outfit', sans-serif;
  font-weight: 500; font-size: 1.04rem;
}

/* La réponse est en papier : la matière du carnet entre déjà. */
.qcard__a {
  justify-self: start;
  font-family: 'Outfit', sans-serif;
  font-size: 0.82rem; font-weight: 500;
  color: var(--ink-dark);
  background: linear-gradient(168deg, var(--paper) 0%, var(--paper-edge) 100%);
  border-radius: 999px;
  padding: 6px 13px;
  box-shadow: 0 4px 14px rgba(3, 12, 14, 0.35);
}

@media (max-width: 860px) {
  .methode { height: 340vh; }
  /* La nav est fixe : la scène épinglée commence sous elle. */
  .methode__pin { align-items: flex-start; padding-top: calc(var(--nav-h) + 18px); }
  .methode__grid { grid-template-columns: 1fr; gap: 22px; align-content: start; }
  .methode__copy { gap: 10px; }
  .methode__copy .lead { display: none; }
  .methode__copy .h2 { font-size: clamp(1.5rem, 6vw, 1.9rem); }
  .qstack { gap: 10px; }
  .qcard { padding: 11px 14px; gap: 12px; }
  .qcard__q { font-size: 0.92rem; }
  .qcard__a { font-size: 0.76rem; padding: 5px 11px; }
}

/* ------------------------------------------------------------
   LE SÉJOUR SE DESSINE — la scène signature.
   La ligne d'itinéraire (teal) se trace au rythme du scroll,
   les journées éclosent à son passage, et le soleil (ambre)
   se lève au bout : la ligne + le soleil, c'est le logo.
   Le JS écrit --p ; le tracé est un dashoffset, le soleil
   une translation — compositor only.
   ------------------------------------------------------------ */

.sejour { height: 320vh; }

.sejour__pin {
  position: sticky; top: 0;
  height: 100svh;
  display: flex; flex-direction: column;
  justify-content: center;
  overflow: hidden;
}

.sejour__head { text-align: center; display: grid; gap: 16px; justify-items: center; margin-bottom: clamp(28px, 5vh, 56px); }

.sejour__scene {
  position: relative;
  width: min(960px, 94vw);
  margin: 0 auto;
}

.itin { width: 100%; height: auto; overflow: visible; }

/* Le tracé : dash normalisé (pathLength=1). 1.02 et non 1 :
   avec linecap round, l'arrondi dépasserait le dash et
   laisserait un point visible à l'origine. */
.itin__line {
  fill: none;
  stroke: var(--teal);
  stroke-width: 5;
  stroke-linecap: round;
  stroke-dasharray: 1;
  stroke-dashoffset: calc(1.02 - var(--p, 0) * 1.02);
  filter: drop-shadow(0 0 12px rgba(45, 212, 191, 0.35));
}

.itin__ghost {
  fill: none;
  stroke: rgba(246, 250, 249, 0.08);
  stroke-width: 5;
  stroke-linecap: round;
}

.itin__dot {
  fill: rgba(246, 250, 249, 0.16);
  transition: fill 0.5s ease, filter 0.5s ease;
}

.itin__dot.on {
  fill: var(--teal);
  filter: drop-shadow(0 0 8px rgba(45, 212, 191, 0.6));
}

/* Le soleil — se lève derrière l'horizon (clip côté SVG). */
.itin__sun {
  fill: var(--amber);
  transform: translateY(calc((1 - var(--sun, 0)) * 78px));
  transition: transform 0.2s linear;
  filter: drop-shadow(0 0 26px rgba(245, 192, 122, 0.55));
}

/* Le reflet du logo : il naît avec le soleil. */
.itin__reflect {
  fill: var(--amber);
  opacity: var(--sun, 0);
}

/* Les journées qui éclosent le long de la ligne. */
.daybloom {
  position: absolute;
  left: var(--bx); top: var(--by);
  transform: translate(-50%, -100%) translateY(14px) rotate(-1.6deg) scale(0.94);
  opacity: 0;
  transition: opacity 0.45s var(--ease), transform 0.6s var(--snap);
  display: grid; gap: 2px;
  background: linear-gradient(168deg, var(--paper) 0%, var(--paper-edge) 100%);
  color: var(--ink-dark);
  border-radius: 13px;
  padding: 10px 14px;
  box-shadow: 0 14px 34px -10px rgba(3, 12, 14, 0.65);
  pointer-events: none;
}

.daybloom.on { opacity: 1; transform: translate(-50%, -100%) translateY(-14px); }

.daybloom--below {
  transform: translate(-50%, 0) translateY(-14px) rotate(1.6deg) scale(0.94);
}

.daybloom--below.on { transform: translate(-50%, 0) translateY(14px); }

.daybloom b {
  font-family: 'Outfit', sans-serif;
  font-weight: 600; font-size: 0.78rem;
  letter-spacing: 0.01em;
}

.daybloom b em { font-style: normal; }

.daybloom span { font-size: 0.72rem; color: var(--ink-dark-mu); }

.sejour__done {
  margin-top: clamp(24px, 4vh, 44px);
  text-align: center;
  font-family: 'Instrument Serif', Georgia, serif;
  font-style: italic;
  font-size: clamp(1.2rem, 2.6vw, 1.7rem);
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}

.sejour--done .sejour__done { opacity: 1; transform: none; }

@media (max-width: 720px) {
  .sejour { height: 280vh; }
  /* À cette échelle, trois journées suffisent — cinq se marchent dessus. */
  .daybloom--m { display: none; }
  .daybloom span { display: none; }
  /* Le centre des cartes reste à ≥ 48 px des bords : rien ne sort,
     et la date seule suffit à cette échelle. */
  .daybloom { padding: 7px 10px; left: clamp(48px, var(--bx), calc(100% - 48px)); }
  .daybloom b { font-size: 0.68rem; white-space: nowrap; }
  .daybloom b em { display: none; }
}

/* ------------------------------------------------------------
   LE CARNET — l'objet, en papier.
   Trois journées réelles à feuilleter. La carte s'incline
   sous le pointeur (±3° : au-delà, l'objet devient un gadget).
   « Une autre envie ? » : la preuve qu'on n'oblige jamais.
   ------------------------------------------------------------ */

.carnet__stage {
  display: grid;
  justify-items: center;
  gap: 26px;
}

.deck {
  position: relative;
  width: min(600px, 100%);
}

.daycard {
  background: linear-gradient(168deg, var(--paper) 0%, var(--paper-edge) 100%);
  color: var(--ink-dark);
  border-radius: 20px;
  padding: clamp(22px, 4vw, 34px);
  box-shadow:
    0 34px 70px -22px rgba(3, 12, 14, 0.8),
    0 10px 26px -8px rgba(3, 12, 14, 0.45),
    0 0 0 1px rgba(255, 255, 255, 0.05);
  transition: transform 0.55s var(--snap), opacity 0.55s var(--ease);
}

/* Les journées voisines attendent derrière, un peu penchées —
   elles se redresseront quand leur tour viendra. */
.deck__card { position: absolute; inset: 0; height: fit-content; }
.deck__card.is-front { position: relative; z-index: 3; }
.deck__card.is-next {
  z-index: 2;
  transform: translate(4.5%, 5%) rotate(2.1deg) scale(0.96);
  opacity: 0.55;
  pointer-events: none;
}
.deck__card.is-prev {
  z-index: 1;
  transform: translate(-4.5%, 5%) rotate(-2.1deg) scale(0.96);
  opacity: 0.35;
  pointer-events: none;
}

/* L'inclinaison au pointeur est portée par un wrapper interne :
   une seule responsabilité de transform par élément. */
.daycard__tilt {
  display: grid; gap: 16px;
  transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transition: transform 0.22s ease-out;
}

.daycard__head {
  display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap;
}

.daycard__date {
  font-family: 'Outfit', sans-serif;
  font-weight: 600; font-size: 0.8rem;
  letter-spacing: 0.14em; text-transform: uppercase;
}

.daycard__loc {
  font-family: 'Outfit', sans-serif;
  font-size: 0.78rem;
  color: var(--ink-dark-mu);
}

.daycard__theme {
  margin-left: auto;
  font-family: 'Instrument Serif', Georgia, serif;
  font-style: italic;
  font-size: 0.95rem;
  color: var(--gold);
}

.daycard__title {
  font-family: 'Instrument Serif', Georgia, serif;
  font-style: italic; font-weight: 400;
  font-size: clamp(1.5rem, 3.4vw, 2rem);
  line-height: 1.15;
}

.daycard__tag { font-size: 0.92rem; color: var(--ink-dark-mu); max-width: 34em; }

.daycard__moments { display: grid; }

.mrow {
  position: relative;
  display: grid;
  grid-template-columns: 92px 1fr auto;
  gap: 4px 16px;
  align-items: baseline;
  padding: 13px 0;
  border-top: 1px solid var(--rule);
}

.mrow__period {
  font-family: 'Outfit', sans-serif;
  font-weight: 600; font-size: 0.68rem;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--teal-deep);
}

.mrow__body { display: grid; gap: 2px; min-width: 0; }

.mrow__title { font-weight: 600; font-size: 0.96rem; }

.mrow__text { font-size: 0.85rem; color: var(--ink-dark-mu); line-height: 1.5; }

/* Le glissement d'une envie vers une autre : l'ancienne part
   se poser ailleurs (gather), la nouvelle s'installe (ease). */
.mrow__body.is-leaving { opacity: 0; transform: translateX(-14px); transition: opacity 0.28s var(--gather), transform 0.28s var(--gather); }
.mrow__body.is-arriving { animation: mrow-in 0.55s var(--ease); }

@keyframes mrow-in {
  from { opacity: 0; transform: translateX(18px); }
}

.mrow__alt {
  font-family: 'Outfit', sans-serif;
  font-size: 0.72rem; font-weight: 500;
  color: var(--teal-deep);
  border: 1px solid rgba(15, 118, 110, 0.28);
  border-radius: 999px;
  padding: 5px 11px;
  align-self: center;
  opacity: 0.45;
  transition: opacity 0.25s ease, background 0.25s ease;
  white-space: nowrap;
}

.mrow:hover .mrow__alt, .mrow__alt:focus-visible { opacity: 1; }
.mrow__alt:hover { background: rgba(15, 118, 110, 0.08); }

.daycard__famille {
  display: flex; align-items: baseline; gap: 10px;
  border-top: 1px solid var(--rule);
  padding-top: 14px;
  font-family: 'Instrument Serif', Georgia, serif;
  font-style: italic;
  font-size: 0.98rem;
  color: var(--ink-dark);
}

/* Une pastille, pas un emoji : l'état rendu par la forme. */
.daycard__famille::before {
  content: "";
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--amber-warm);
  align-self: center; flex: none;
}

.deck__nav {
  display: flex; align-items: center; gap: 18px;
}

.deck__btn {
  width: 44px; height: 44px;
  border: 1px solid var(--line);
  border-radius: 999px;
  display: grid; place-items: center;
  color: var(--ink-soft);
  transition: border-color 0.25s ease, color 0.25s ease, transform 0.25s var(--ease);
}

.deck__btn:hover { border-color: rgba(246, 250, 249, 0.32); color: var(--ink); }

.deck__btn svg { width: 16px; height: 16px; }

.deck__count {
  font-family: 'Outfit', sans-serif;
  font-size: 0.85rem;
  color: var(--ink-mute);
  min-width: 96px; text-align: center;
}

.carnet__legend { text-align: center; }

@media (max-width: 640px) {
  .mrow { grid-template-columns: 1fr auto; }
  .mrow__period { grid-column: 1 / -1; }
  .daycard__theme { margin-left: 0; width: 100%; }
}

/* ------------------------------------------------------------
   LA CONFIANCE — rien n'est inventé (D-002).
   Chaque ligne du carnet porte sa preuve : on la déplie.
   ------------------------------------------------------------ */

.confiance__grid {
  display: grid;
  grid-template-columns: minmax(300px, 5fr) minmax(320px, 6fr);
  gap: clamp(36px, 6vw, 88px);
  align-items: start;
}

.confiance__copy { display: grid; gap: 18px; position: sticky; top: calc(var(--nav-h) + 40px); }

.confiance__rule {
  border-left: 3px solid var(--teal-deep);
  padding: 4px 0 4px 16px;
  color: var(--ink-soft);
  font-size: 0.95rem;
}

.proofcard {
  background: linear-gradient(168deg, var(--paper) 0%, var(--paper-edge) 100%);
  color: var(--ink-dark);
  border-radius: 20px;
  padding: clamp(20px, 3vw, 30px);
  box-shadow:
    0 34px 70px -22px rgba(3, 12, 14, 0.8),
    0 10px 26px -8px rgba(3, 12, 14, 0.45),
    0 0 0 1px rgba(255, 255, 255, 0.05);
}

.proofcard__head {
  display: flex; justify-content: space-between; align-items: baseline;
  padding-bottom: 12px;
}

.proofcard__day {
  font-family: 'Outfit', sans-serif;
  font-weight: 600; font-size: 0.8rem;
  letter-spacing: 0.14em; text-transform: uppercase;
}

.proofcard__hint {
  font-family: 'Instrument Serif', Georgia, serif;
  font-style: italic;
  font-size: 0.9rem;
  color: var(--ink-dark-mu);
}

.fact {
  width: 100%;
  text-align: left;
  display: grid;
  grid-template-columns: 58px 1fr auto;
  gap: 2px 14px;
  align-items: baseline;
  padding: 14px 8px;
  margin: 0 -8px;
  width: calc(100% + 16px);
  border-top: 1px solid var(--rule);
  border-radius: 10px;
  transition: background 0.25s ease;
}

.fact:hover { background: rgba(15, 118, 110, 0.06); }

.fact__time {
  font-family: 'Outfit', sans-serif;
  font-weight: 600; font-size: 0.82rem;
  font-variant-numeric: tabular-nums;
  color: var(--teal-deep);
}

.fact__name { font-weight: 600; font-size: 0.95rem; }

.fact__meta { font-size: 0.82rem; color: var(--ink-dark-mu); }

.fact__chev {
  align-self: center;
  color: var(--ink-dark-mu);
  transition: transform 0.35s var(--ease);
}

.fact[aria-expanded="true"] .fact__chev { transform: rotate(180deg); }

.fact__chev svg { width: 14px; height: 14px; }

/* La preuve se déplie — elle glisse, elle ne floute pas. */
.fact__proof {
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  transition: max-height 0.55s var(--ease), opacity 0.45s var(--ease);
  margin: 0 -8px;
}

.fact__proof.open { max-height: 200px; opacity: 1; }

.fact__proof-in {
  display: flex; flex-wrap: wrap; gap: 8px;
  background: rgba(15, 118, 110, 0.07);
  border-left: 3px solid var(--teal-deep);
  border-radius: 0 10px 10px 0;
  padding: 12px 14px;
  margin: 2px 8px 10px;
}

.proof-chip {
  display: inline-flex; align-items: center; gap: 7px;
  font-family: 'Outfit', sans-serif;
  font-size: 0.75rem; font-weight: 500;
  color: var(--ink-dark);
  background: rgba(252, 248, 241, 0.85);
  border: 1px solid rgba(18, 33, 31, 0.1);
  border-radius: 999px;
  padding: 5px 11px;
}

.proof-chip::before {
  content: "";
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--teal-deep);
  flex: none;
}

.proof-chip--star::before { background: var(--gold); }

.confiance__foot {
  padding-top: 14px;
  border-top: 1px solid var(--rule);
  font-size: 0.85rem;
  color: var(--ink-dark-mu);
}

@media (max-width: 860px) {
  .confiance__grid { grid-template-columns: 1fr; }
  .confiance__copy { position: static; }
}

/* ------------------------------------------------------------
   HORS-LIGNE — le réseau tombe, pas votre journée.
   Un geste : couper le réseau. Les services s'éteignent,
   le carnet reste la seule source de lumière — littéralement.
   ------------------------------------------------------------ */

.horsligne__scene {
  position: relative;
  display: grid; justify-items: center; gap: 30px;
  padding: clamp(30px, 5vw, 56px) 0 8px;
}

.net__services {
  display: flex; gap: 12px; flex-wrap: wrap; justify-content: center;
}

.net__srv {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: 'Outfit', sans-serif;
  font-size: 0.82rem;
  color: var(--ink-soft);
  background: rgba(246, 250, 249, 0.05);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 15px;
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.net__srv::before {
  content: "";
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--teal);
  transition: background 0.5s ease;
}

/* Coupure : les services s'éteignent et reculent — le carnet, non. */
.is-off .net__srv { opacity: 0.22; transform: translateY(6px); }
.is-off .net__srv::before { background: rgba(246, 250, 249, 0.25); }

.net__card {
  width: min(460px, 100%);
  transition: box-shadow 1.2s var(--ease);
}

.is-off .net__card {
  box-shadow:
    0 34px 90px -18px rgba(245, 170, 100, 0.28),
    0 34px 70px -22px rgba(3, 12, 14, 0.8),
    0 0 0 1px rgba(255, 255, 255, 0.05);
}

.net__status {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: 'Outfit', sans-serif;
  font-size: 0.78rem; font-weight: 500;
  color: var(--ink-dark-mu);
  border-top: 1px solid var(--rule);
  padding-top: 13px;
}

.net__status::before {
  content: "";
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--teal-deep);
  flex: none;
}

.net__status b { font-weight: 600; color: var(--ink-dark); }

.horsligne__note {
  text-align: center;
  font-family: 'Instrument Serif', Georgia, serif;
  font-style: italic;
  font-size: 1.05rem;
  color: var(--ink-soft);
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.9s var(--ease) 0.4s, transform 0.9s var(--ease) 0.4s;
}

.is-off .horsligne__note { opacity: 1; transform: none; }

/* Réseau coupé : la nuit se referme un peu autour du carnet —
   il devient la seule source de lumière de la page. */
.halo, .pointer-glow { transition: opacity 1.2s var(--ease); }
body.net-off .halo { opacity: 0.3; }
body.net-off .pointer-glow { opacity: 0.4; }

/* ------------------------------------------------------------
   LE LANCEMENT — l'aube, et un seul geste.
   ------------------------------------------------------------ */

.finale {
  padding: clamp(110px, 18vh, 190px) 0 clamp(90px, 14vh, 150px);
  text-align: center;
}

.finale__inner { display: grid; justify-items: center; gap: 24px; }

.finale__markwrap { position: relative; }

.finale__mark { position: relative; width: clamp(74px, 9vw, 104px); }

/* Le soleil du logo respire — une lueur en opacité derrière lui,
   jamais un filter animé (couche composée = artefacts de rendu). */
.finale__markwrap::before {
  content: "";
  position: absolute; inset: -60%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(245, 192, 122, 0.35) 0%, rgba(245, 192, 122, 0) 62%);
  animation: dome-glow 6s ease-in-out infinite alternate;
}

@keyframes dome-glow {
  from { opacity: 0.35; }
  to { opacity: 1; }
}

.finale__title {
  font-family: 'Instrument Serif', Georgia, serif;
  font-style: italic; font-weight: 400;
  font-size: clamp(2.1rem, 5.4vw, 3.6rem);
  line-height: 1.12;
  letter-spacing: -0.01em;
}

.wl { display: grid; justify-items: center; gap: 14px; margin-top: 10px; width: 100%; }

.wl__row {
  display: flex; gap: 10px;
  width: min(480px, 100%);
  background: rgba(246, 250, 249, 0.05);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px;
  transition: border-color 0.3s ease;
}

.wl__row:focus-within { border-color: rgba(245, 192, 122, 0.4); }

.wl__input {
  flex: 1; min-width: 0;
  background: none; border: 0; outline: none;
  color: var(--ink);
  font: inherit; font-size: 0.95rem;
  padding: 8px 8px 8px 18px;
}

.wl__input::placeholder { color: var(--ink-mute); }

.wl__submit { padding: 12px 24px; flex: none; }

/* La confirmation remplace le geste : une seule chose à l'écran. */
.wl__done {
  display: none;
  font-family: 'Instrument Serif', Georgia, serif;
  font-style: italic;
  font-size: 1.3rem;
  animation: swap-in 0.75s var(--ease);
}

.wl.is-done .wl__row, .wl.is-done .wl__note { display: none; }
.wl.is-done .wl__done { display: block; }

@keyframes swap-in {
  from { opacity: 0; transform: translateY(10px); }
}

.wl__err {
  display: none;
  font-size: 0.85rem;
  color: var(--amber-warm);
}

.wl__err.on { display: block; animation: swap-in 0.4s var(--ease); }

/* ------------------------------------------------------------
   MOUVEMENT RÉDUIT — les scènes sont livrées accomplies :
   questions posées, itinéraire tracé, soleil levé.
   ------------------------------------------------------------ */

@media (prefers-reduced-motion: reduce) {
  /* La charge mentale est déjà dissoute : le visiteur reçoit
     directement le jour levé, sans le spectacle. */
  .frag { display: none; }
  .brand .l, .hero__cue, .hero__cue::after, .nav, .hero__center,
  .dawn__sun::before, .dawn__glitter, .dawn__cloud { animation: none; }
  .methode, .sejour { height: auto; }
  .methode__pin, .sejour__pin { position: static; height: auto; padding: clamp(80px, 12vh, 130px) 0; }
  .qcard, .daybloom, .itin__dot { opacity: 1; transform: none; transition: none; }
  .daybloom { position: static; margin: 6px; display: inline-grid; }
  .itin__line { stroke-dashoffset: 0; }
  .itin__sun { transform: none; }
  .sejour__done { opacity: 1; transform: none; }
  .finale__mark .dome { animation: none; }
  .daycard__tilt { transform: none !important; transition: none; }
}
