/* Galuma, le site vitrine. Les polices de l'app : SF Pro, et SF Pro Rounded pour l'heure.
   La page raconte une nuit : on lève la lune, on traverse la nuit en défilant, on finit à l'aube. */

:root {
  --nuit-0: #05071A;
  --nuit-1: #0B0F2E;
  --nuit-2: #121845;
  --nuit-3: #1A2052;
  --lavande: #B8ACE8;
  --lavande-vif: #9D8CFF;
  --lune-0: #F3F0FF;
  --lune-1: #D6CFFF;
  --lune-2: #B8ADFF;
  --peche: #E8BAA4;
  --soleil-0: #FFE7D6;
  --soleil-1: #F6B99A;
  --texte: #EAE7F2;
  --texte-2: #B6B3C9;
  --texte-3: #7F7B98;
  --verre: rgba(255, 255, 255, .06);
  --verre-trait: rgba(255, 255, 255, .10);
  --sf: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Inter", "Helvetica Neue", sans-serif;
  --sf-rond: ui-rounded, "SF Pro Rounded", "Nunito", -apple-system, BlinkMacSystemFont, sans-serif;
  --large: 1200px;
  --ressort: cubic-bezier(.34, 1.56, .64, 1);
  --doux: cubic-bezier(.22, 1, .36, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--sf);
  background: var(--nuit-0);
  color: var(--texte);
  font-size: 17px; line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
.contenu { width: min(var(--large), 100% - 32px); margin: 0 auto; }

/* ---------- En-tête ---------- */
/* Une capsule de verre qui flotte : bord en dégradé, reflet en haut, une pastille qui glisse sous la section en cours.
   Elle se compacte quand on descend, se cache en défilant vers le bas et revient dès qu'on remonte. */
.entete-site { position: fixed; inset: 0 0 auto; z-index: 50; display: flex; justify-content: center; padding: 14px 12px 0; pointer-events: none;
  transition: transform .5s var(--doux); }
.entete-site.cache { transform: translateY(-120%); }
.nav {
  pointer-events: auto; position: relative;
  width: min(1040px, 100%); height: 60px;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  padding: 0 8px 0 10px; border-radius: 22px;
  background: linear-gradient(180deg, rgba(30, 36, 92, .55), rgba(11, 15, 46, .55));
  backdrop-filter: blur(24px) saturate(160%); -webkit-backdrop-filter: blur(24px) saturate(160%);
  box-shadow: 0 1px 0 rgba(255,255,255,.08) inset, 0 12px 40px rgba(3, 4, 18, .45), 0 0 0 .5px rgba(0,0,0,.4);
  transition: height .4s var(--doux), width .4s var(--doux), background .4s, box-shadow .4s;
}
.nav::before { /* bord en dégradé */
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; pointer-events: none;
  background: linear-gradient(180deg, rgba(214, 207, 255, .35), rgba(214, 207, 255, .06) 60%, rgba(214,207,255,.14));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
}
.entete-site.compact .nav { height: 52px; width: min(880px, 100%); }

.marque { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; justify-self: start; padding: 6px 8px 6px 4px; border-radius: 14px; }
.marque-icone { width: 34px; height: 34px; border-radius: 10px; overflow: hidden; box-shadow: 0 0 0 1px rgba(255,255,255,.14), 0 4px 14px rgba(157,140,255,.35); transition: transform .5s var(--ressort); }
.marque:hover .marque-icone { transform: rotate(-8deg) scale(1.06); }
.marque-nom { font-weight: 650; font-size: 17px; letter-spacing: -.35px; }
.phase { width: 18px; height: 18px; margin-left: 2px; opacity: .9; }
.phase-lune { fill: var(--lune-1); }
.phase-ombre { fill: #10143A; transition: cx .2s linear; }

.liens { position: relative; display: flex; gap: 2px; padding: 4px; border-radius: 16px; background: rgba(255,255,255,.04); box-shadow: 0 0 0 1px rgba(255,255,255,.05) inset; }
.liens a { position: relative; z-index: 1; padding: 8px 14px; border-radius: 12px; font-size: 14px; font-weight: 500; color: var(--texte-2); text-decoration: none; letter-spacing: -.1px; transition: color .3s; }
.liens a:hover, .liens a.actif, .liens a[aria-current] { color: #fff; }
.curseur { position: absolute; top: 4px; left: 0; height: calc(100% - 8px); width: 0; border-radius: 12px; opacity: 0;
  background: linear-gradient(180deg, rgba(255,255,255,.16), rgba(255,255,255,.07));
  box-shadow: 0 0 0 1px rgba(255,255,255,.1) inset, 0 4px 14px rgba(0,0,0,.25);
  transition: transform .5s var(--ressort), width .5s var(--ressort), opacity .3s; }

.nav-droite { justify-self: end; display: flex; align-items: center; gap: 8px; }
.nav-cta { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 16px 0 14px; border-radius: 13px; text-decoration: none;
  font-size: 14px; font-weight: 600; letter-spacing: -.15px; color: var(--nuit-1);
  background: linear-gradient(180deg, #fff, var(--lune-1));
  box-shadow: 0 1px 0 #fff inset, 0 6px 22px rgba(184,173,255,.45);
  transition: transform .3s var(--ressort), box-shadow .3s; }
.nav-cta svg { width: 15px; height: 15px; margin-top: -2px; }
.nav-cta:hover { transform: translateY(-1px); box-shadow: 0 1px 0 #fff inset, 0 10px 30px rgba(184,173,255,.65); }
.menu-btn { display: none; width: 40px; height: 40px; border: 0; border-radius: 13px; background: rgba(255,255,255,.07); cursor: pointer; position: relative; }
.menu-btn span { position: absolute; left: 12px; right: 12px; height: 1.6px; border-radius: 2px; background: var(--texte); transition: transform .4s var(--ressort), top .4s var(--ressort); }
.menu-btn span:first-child { top: 16px; } .menu-btn span:last-child { top: 23px; }
.entete-site.ouvert .menu-btn span:first-child { top: 19.5px; transform: rotate(45deg); }
.entete-site.ouvert .menu-btn span:last-child { top: 19.5px; transform: rotate(-45deg); }

/* Menu mobile : un ciel plein écran, les liens arrivent un par un. */
.menu { position: fixed; inset: 0; z-index: -1; pointer-events: auto; display: flex; flex-direction: column; justify-content: center; gap: 6px; padding: 100px 28px 40px;
  background: radial-gradient(120% 70% at 50% 0%, var(--nuit-3), var(--nuit-0) 70%);
  opacity: 0; transition: opacity .4s var(--doux); }
.menu[hidden] { display: flex; visibility: hidden; }
.entete-site.ouvert .menu { opacity: 1; visibility: visible; }
.menu a:not(.bouton) { font-size: 44px; font-weight: 700; letter-spacing: -.04em; text-decoration: none; color: var(--texte);
  opacity: 0; transform: translateY(20px); transition: opacity .5s var(--doux), transform .5s var(--doux); transition-delay: calc(var(--i) * .06s + .1s); }
.menu .bouton { margin-top: 28px; justify-content: center; opacity: 0; transition: opacity .5s .4s; }
.entete-site.ouvert .menu a { opacity: 1; transform: none; }

@media (max-width: 760px) {
  .nav { grid-template-columns: 1fr auto; height: 56px; }
  .liens, .nav-cta span { display: none; }
  .nav-cta { padding: 0 12px; }
  .menu-btn { display: block; }
  .entete-site.compact .nav { height: 52px; }
}

/* Sur les sections claires, la capsule passe en clair. */
.entete-site.clair .nav { background: linear-gradient(180deg, rgba(255,255,255,.82), rgba(255,250,246,.72)); box-shadow: 0 1px 0 #fff inset, 0 12px 40px rgba(60, 40, 80, .12); }
.entete-site.clair .nav::before { background: linear-gradient(180deg, rgba(28,24,56,.10), rgba(28,24,56,.04)); }
.entete-site.clair .marque-nom { color: #1C1838; }
.entete-site.clair .liens { background: rgba(28,24,56,.04); box-shadow: 0 0 0 1px rgba(28,24,56,.05) inset; }
.entete-site.clair .liens a { color: #6B6680; }
.entete-site.clair .liens a:hover, .entete-site.clair .liens a.actif { color: #1C1838; }
.entete-site.clair .curseur { background: #fff; box-shadow: 0 1px 3px rgba(28,24,56,.12), 0 0 0 1px rgba(28,24,56,.05); }
.entete-site.clair .nav-cta { background: #1C1838; color: #fff; box-shadow: 0 6px 20px rgba(28,24,56,.25); }
.entete-site.clair .menu-btn { background: rgba(28,24,56,.06); }
.entete-site.clair .menu-btn span { background: #1C1838; }
.entete-site.clair .phase-ombre { fill: #E9E2DA; }
.entete-site.clair .phase-lune { fill: #9D8CFF; }

/* ---------- Boutons ---------- */
.bouton {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 15px 26px; border-radius: 999px; border: 0; cursor: pointer;
  font: 600 16px/1 var(--sf); letter-spacing: -.2px; text-decoration: none;
  transition: transform .3s var(--ressort), box-shadow .3s;
}
.bouton:hover { transform: translateY(-2px) scale(1.02); }
.bouton:active { transform: scale(.97); }
.bouton svg { width: 18px; height: 18px; }
.bouton-lune { background: linear-gradient(180deg, #fff, var(--lune-1)); color: var(--nuit-1); box-shadow: 0 0 0 1px rgba(255,255,255,.4) inset, 0 8px 40px rgba(184, 173, 255, .45); }
.bouton-lune:hover { box-shadow: 0 0 0 1px rgba(255,255,255,.4) inset, 0 12px 60px rgba(184, 173, 255, .7); }
.bouton-verre { background: var(--verre); color: var(--texte); border: 1px solid var(--verre-trait); }

/* ---------- Apparitions au défilement ---------- */
.apparait { opacity: 0; transform: translateY(40px); transition: opacity 1s var(--doux), transform 1s var(--doux); transition-delay: var(--retard, 0s); }
.apparait.vu { opacity: 1; transform: none; }

/* ---------- Héros : lève la lune ---------- */
.heros {
  position: relative; height: 100svh; min-height: 720px; overflow: hidden;
  background: radial-gradient(120% 90% at 50% 100%, var(--nuit-3) 0%, var(--nuit-1) 55%, var(--nuit-0) 100%);
  --levee: 0;
}
#ciel { position: absolute; inset: 0; width: 100%; height: 100%; }
.heros .voile { position: absolute; inset: 0; background: var(--nuit-0); opacity: calc(var(--levee) * .55); pointer-events: none; }
/* Deux colonnes : le texte à gauche, la lune et son rail à droite, au-dessus de la Terre. */
.heros-grille { position: absolute; inset: 0; display: grid; grid-template-columns: 1.1fr .9fr; gap: 24px; z-index: 3; left: 50%; translate: -50% 0; }
.heros-texte { align-self: center; padding-top: 40px; padding-bottom: 120px; max-width: 600px; }
.pastille {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 14px 7px 8px; border-radius: 999px;
  background: var(--verre); border: 1px solid var(--verre-trait);
  font-size: 13px; color: var(--texte-2);
}
.pastille b { background: var(--lavande-vif); color: var(--nuit-0); border-radius: 999px; padding: 3px 9px; font-size: 11px; letter-spacing: .4px; text-transform: uppercase; }
h1, h2, h3 { font-weight: 700; letter-spacing: -0.045em; line-height: .95; }
h1 { font-size: clamp(56px, 7.6vw, 118px); margin: 22px 0 0; }
.degrade {
  background: linear-gradient(180deg, #fff 10%, var(--lune-1) 55%, var(--lavande-vif));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.titre-bascule { display: inline-grid; }
.titre-bascule > span { grid-area: 1 / 1; transition: opacity .8s var(--doux), transform .8s var(--doux), filter .8s; padding-bottom: .08em; }
.titre-bascule .apres { opacity: 0; transform: translateY(24px); filter: blur(8px); }
.heros.endormi .titre-bascule .avant { opacity: 0; transform: translateY(-24px); filter: blur(8px); }
.heros.endormi .titre-bascule .apres { opacity: 1; transform: none; filter: none; }
.heros .sous { display: grid; max-width: 500px; margin-top: 22px; font-size: clamp(17px, 1.5vw, 20px); color: var(--texte-2); }
.heros .sous .apres { color: var(--lune-1); }
.heros .actions { display: flex; gap: 12px; margin-top: 30px; flex-wrap: wrap; }

/* La scène : rail en pointillés, cercle d'arrivée, lune, Terre, Galuma. */
.scene-lune { position: relative; --base: 210px; --taille: 128px; --haut: 170px; }
.cible {
  position: absolute; left: 50%; top: var(--haut); width: var(--taille); height: var(--taille); translate: -50% 0;
  border-radius: 50%; border: 1.5px dashed rgba(214, 207, 255, calc(.3 + var(--levee) * .5));
  display: grid; place-items: center; text-align: center;
  font-size: 13px; font-weight: 500; color: rgba(214, 207, 255, calc(.55 - var(--levee) * .55));
  transition: border-color .3s;
}
.piste {
  position: absolute; left: 50%; width: 2px; margin-left: -1px;
  top: calc(var(--haut) + var(--taille) + 10px); bottom: calc(var(--base) + var(--taille) + 10px);
  background: linear-gradient(to top, rgba(214,207,255,.55), rgba(214,207,255,.15));
  -webkit-mask: repeating-linear-gradient(to top, #000 0 5px, transparent 5px 12px); mask: repeating-linear-gradient(to top, #000 0 5px, transparent 5px 12px);
  opacity: calc(1 - var(--levee));
}
.lune {
  position: absolute; left: 50%; bottom: var(--base); width: var(--taille); height: var(--taille); margin-left: calc(var(--taille) / -2); z-index: 2;
  border-radius: 50%; cursor: grab; touch-action: none;
  transform: translateY(calc(var(--levee) * -1 * var(--course, 200px)));
  transition: transform .9s var(--ressort);
}
.lune:focus-visible { outline: 2px solid var(--lune-1); outline-offset: 8px; }
.lune.tenue { cursor: grabbing; transition: none; }
.lune .disque {
  position: absolute; inset: 0; border-radius: 50%;
  background: radial-gradient(circle at 34% 30%, #fff, var(--lune-0) 25%, var(--lune-1) 60%, var(--lune-2));
  box-shadow: 0 0 calc(50px + var(--levee) * 80px) calc(8px + var(--levee) * 30px) rgba(184, 173, 255, calc(.35 + var(--levee) * .3));
}
.lune .disque::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  background:
    radial-gradient(circle at 62% 38%, rgba(160,150,230,.28) 0 9%, transparent 10%),
    radial-gradient(circle at 40% 66%, rgba(160,150,230,.22) 0 6%, transparent 7%),
    radial-gradient(circle at 70% 70%, rgba(160,150,230,.2) 0 4%, transparent 5%);
}
.lune::before { content: ""; position: absolute; inset: -22px; border-radius: 50%; border: 1px solid rgba(214, 207, 255, .3); animation: halo 2.6s ease-out infinite; }
.heros.endormi .lune::before, .heros.tenu .lune::before { animation: none; opacity: 0; }
@keyframes halo { from { transform: scale(.78); opacity: 1; } to { transform: scale(1.45); opacity: 0; } }
.indice {
  position: absolute; left: 50%; bottom: calc(var(--base) - 40px); translate: -50% 0; white-space: nowrap;
  font-size: 14px; color: var(--texte-2); display: flex; align-items: center; gap: 8px;
  transition: opacity .4s; pointer-events: none;
}
.indice svg { width: 16px; animation: monte 1.6s ease-in-out infinite; }
@keyframes monte { 50% { transform: translateY(-6px); } }
.heros.endormi .indice, .heros.tenu .indice { opacity: 0; }

.terre {
  position: absolute; left: 50%; bottom: -1850px; width: 2000px; height: 2000px; margin-left: -1000px; z-index: 0;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 0%, #1E2566 0%, #0C1033 10%, var(--nuit-0) 26%);
  box-shadow: 0 -1px 0 rgba(184,172,232,.5), 0 -24px 90px rgba(120, 130, 255, .28);
}
.terre::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  background:
    radial-gradient(circle at 42% 1.6%, rgba(255,214,170,.9) 0 1.5px, transparent 2.5px),
    radial-gradient(circle at 44% 2.4%, rgba(255,214,170,.7) 0 1px, transparent 2px),
    radial-gradient(circle at 57% 2%, rgba(255,214,170,.8) 0 1.5px, transparent 2.5px),
    radial-gradient(circle at 58.5% 3%, rgba(255,214,170,.6) 0 1px, transparent 2px),
    radial-gradient(circle at 36% 3.4%, rgba(255,214,170,.6) 0 1px, transparent 2px);
}
.galuma-heros { position: absolute; left: calc(50% + 116px); bottom: 120px; width: 140px; aspect-ratio: 1; z-index: 3; }
.galuma-heros img { position: absolute; inset: 0; width: 100%; transition: opacity .8s; animation: respire 4s ease-in-out infinite; transform-origin: 50% 78%; }
.galuma-heros .dort { opacity: 0; }
.heros.endormi .galuma-heros .eveille { opacity: 0; }
.heros.endormi .galuma-heros .dort { opacity: 1; }
@keyframes respire { 50% { transform: scale(1.03, .97); } }
.zzz { position: absolute; left: 66%; top: 20%; font: 600 20px var(--sf-rond); color: var(--lavande); opacity: 0; transition: opacity .6s; }
.zzz span { position: absolute; }
.heros.endormi .zzz { opacity: 1; }
.heros.endormi .zzz span { animation: zzz 3s ease-out infinite; }
.zzz span:nth-child(2) { animation-delay: 1s !important; font-size: 15px; }
.zzz span:nth-child(3) { animation-delay: 2s !important; font-size: 11px; }
@keyframes zzz { 0% { opacity: 0; transform: translate(0, 0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translate(28px, -56px); } }
.reveil-btn { position: absolute; left: 50%; bottom: calc(var(--base) - 54px); translate: -50% 0; z-index: 4; opacity: 0; pointer-events: none; transition: opacity .6s .8s; white-space: nowrap; }
.heros.endormi .reveil-btn { opacity: 1; pointer-events: auto; }
/* Le bas du héros se fond dans la nuit qui suit. */
.heros::after { content: ""; position: absolute; inset: auto 0 0; height: 170px; background: linear-gradient(rgba(5,7,26,0), rgba(5,7,26,.6) 50%, var(--nuit-0)); z-index: 5; pointer-events: none; }

@media (max-width: 900px) {
  .heros-grille { grid-template-columns: 1fr; grid-template-rows: auto 1fr; gap: 0; }
  .heros-texte { text-align: center; padding: 96px 0 0; margin: 0 auto; }
  .heros .sous { margin-inline: auto; }
  .heros .actions { justify-content: center; }
  .heros .actions .bouton-verre { display: none; }
  .scene-lune { --base: 150px; --taille: 96px; --haut: 14px; }
  .terre { width: 1000px; height: 1000px; margin-left: -500px; bottom: -890px; }
  .galuma-heros { left: calc(50% + 82px); width: 92px; bottom: 76px; }
  .reveil-btn, .indice { left: 42%; }
  .cible { font-size: 11px; }
}

/* ---------- Défilé d'une nuit ---------- */
.histoire { position: relative; height: 520vh; --p: 0; }
.collant { position: sticky; top: 0; height: 100svh; overflow: hidden; display: grid; place-items: center; }
.collant .fond { position: absolute; inset: 0; background: var(--fond-histoire, var(--nuit-1)); }
.collant .soleil-fond {
  position: absolute; left: 50%; bottom: -70vmax; width: 120vmax; height: 120vmax; margin-left: -60vmax; border-radius: 50%;
  background: radial-gradient(circle, rgba(255,231,214,.95), rgba(246,185,154,.55) 30%, transparent 62%);
  transform: translateY(calc((1 - var(--aube, 0)) * 40vmax)); opacity: var(--aube, 0);
}
#etoiles-histoire { position: absolute; inset: 0; width: 100%; height: 100%; opacity: calc(1 - var(--aube, 0)); }
.scene-nuit { position: relative; width: min(var(--large), 100% - 32px); display: grid; grid-template-columns: 1fr auto 1fr; gap: 56px; align-items: center; }
.horloge {
  font: 200 clamp(64px, 8.5vw, 128px)/1 var(--sf-rond); letter-spacing: -0.04em; font-variant-numeric: tabular-nums;
  color: var(--lune-0); text-shadow: 0 0 40px rgba(184,173,255,.35);
}
.horloge-legende { color: rgba(255,255,255,.7); font-size: 15px; margin-top: 12px; }
.frise { margin-top: 36px; position: relative; height: 2px; background: rgba(255,255,255,.14); border-radius: 2px; max-width: 260px; }
.frise i { position: absolute; left: 0; top: 0; height: 100%; width: calc(var(--p) * 100%); background: linear-gradient(90deg, var(--lavande), var(--soleil-1)); border-radius: 2px; }
.frise b { position: absolute; top: -4px; width: 10px; height: 10px; margin-left: -5px; border-radius: 50%; background: var(--nuit-3); border: 2px solid rgba(255,255,255,.3); transition: background .3s, border-color .3s; }
.frise b.passe { background: var(--lune-0); border-color: var(--lune-0); }
.etapes { position: relative; min-height: 340px; }
.etape { position: absolute; inset: 0; opacity: 0; transform: translateY(24px); filter: blur(6px); transition: opacity .6s var(--doux), transform .6s var(--doux), filter .6s; pointer-events: none; }
.etape.active { opacity: 1; transform: none; filter: none; pointer-events: auto; }
.etape .heure { font: 600 13px var(--sf); letter-spacing: 1.4px; text-transform: uppercase; color: var(--lavande); }
.etape h3 { font-size: clamp(36px, 4vw, 54px); margin: 12px 0 16px; }
.etape p { color: rgba(255,255,255,.78); max-width: 34ch; }
.etape .bonus { margin-top: 24px; }

.telephone {
  position: relative; width: 300px; aspect-ratio: 1206 / 2622; border-radius: 52px; padding: 11px;
  background: linear-gradient(145deg, #2a2d45, #0c0e1d);
  box-shadow: 0 0 0 1px rgba(255,255,255,.12), 0 50px 100px rgba(0,0,0,.55), 0 0 120px rgba(157,140,255,.18);
}
.telephone .ecran { position: relative; width: 100%; height: 100%; border-radius: 42px; overflow: hidden; background: #000; }
.telephone .ecran img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.05); transition: opacity .7s var(--doux), transform .9s var(--doux); }
.telephone .ecran img.active { opacity: 1; transform: none; }
.histoire .telephone { transform: rotate(calc((var(--p) - .5) * 6deg)) translateY(calc((var(--p) - .5) * -30px)); }

.ondes { display: flex; gap: 5px; align-items: center; height: 42px; }
.ondes i { width: 5px; border-radius: 3px; background: var(--lavande); animation: onde 1.2s ease-in-out infinite; animation-delay: calc(var(--i) * -0.13s); }
@keyframes onde { 0%, 100% { height: 8px; opacity: .5; } 50% { height: 40px; opacity: 1; } }
.trace-son { display: flex; align-items: center; gap: 2px; height: 50px; }
.trace-son i { width: 3px; border-radius: 2px; background: rgba(184,172,232,.45); height: calc(var(--h) * 1px); transform-origin: center; animation: battre 2.4s ease-in-out infinite; animation-delay: calc(var(--i) * -0.05s); }
.trace-son i.fort { background: var(--peche); }
@keyframes battre { 50% { transform: scaleY(.6); } }
.etiquette { display: inline-flex; align-items: center; gap: 8px; margin-top: 12px; padding: 6px 12px; border-radius: 999px; background: rgba(232,186,164,.15); color: var(--peche); font-size: 13px; font-weight: 500; }
.etiquette::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; animation: clignote 1.4s infinite; }
@keyframes clignote { 50% { opacity: .2; } }
.soleil-mini { width: 64px; height: 64px; border-radius: 50%; background: radial-gradient(circle at 50% 40%, #FFF6EE, var(--soleil-0) 35%, var(--soleil-1)); box-shadow: 0 0 50px rgba(255,200,160,.7); animation: lever 3s ease-in-out infinite alternate; }
@keyframes lever { from { transform: translateY(10px); box-shadow: 0 0 20px rgba(255,200,160,.4); } to { transform: translateY(-6px); box-shadow: 0 0 60px rgba(255,200,160,.9); } }
.pilule-blocage { display: inline-flex; align-items: center; gap: 10px; padding: 10px 16px; border-radius: 999px; background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.2); font: 500 15px var(--sf); font-variant-numeric: tabular-nums; }
.pilule-blocage svg { width: 14px; }

@media (max-width: 900px) {
  .scene-nuit { grid-template-columns: 1fr; gap: 16px; justify-items: center; text-align: center; padding-top: 64px; }
  .scene-nuit .gauche { order: 1; }
  .scene-nuit .telephone { order: 2; width: 180px; border-radius: 32px; padding: 7px; }
  .scene-nuit .telephone .ecran { border-radius: 26px; }
  .scene-nuit .droite { order: 3; width: 100%; }
  .horloge { font-size: 54px; }
  .frise, .horloge-legende { display: none; }
  .etapes { min-height: 230px; }
  .etape p { margin: 0 auto; }
  .etape h3 { font-size: 30px; margin: 6px 0 8px; }
  .etape .bonus { display: flex; justify-content: center; margin-top: 12px; }
}

/* ---------- Sections claires : l'aube ---------- */
.aube-zone { background: linear-gradient(180deg, rgb(232,170,150) 0%, #F8D9C8 7%, #FBF4EF 20%, #FBF4EF 100%); color: #1C1838; }
.aube-zone .sous-titre { color: #5B5670; }
section.bloc { padding: 140px 0; }
.entete { text-align: center; max-width: 840px; margin: 0 auto 72px; }
.surtitre { font: 600 13px var(--sf); letter-spacing: 1.4px; text-transform: uppercase; color: #7A6AC8; }
.entete h2 { font-size: clamp(44px, 6.4vw, 92px); margin-top: 16px; }
.entete p { font-size: 19px; margin-top: 20px; }
.violet { color: #7A6AC8; }

.semaine-ciel {
  position: relative; border-radius: 40px; padding: 80px 40px 56px; overflow: hidden;
  background: radial-gradient(100% 120% at 50% 0%, var(--nuit-3), var(--nuit-1) 60%, var(--nuit-0));
  color: var(--texte);
  box-shadow: 0 40px 100px rgba(28, 24, 56, .25);
}
.semaine-ciel canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.lunes { position: relative; display: grid; grid-template-columns: repeat(7, 1fr); gap: 12px; align-items: end; min-height: 220px; }
.nuit-j { display: grid; justify-items: center; gap: 14px; }
.lune-j { position: relative; width: clamp(36px, 7.5vw, 90px); aspect-ratio: 1;
  transform: translateY(calc(var(--haut) * -1px)) scale(.3); opacity: 0;
  transition: transform 1.2s var(--ressort), opacity .8s; transition-delay: calc(var(--i) * .09s);
}
.lune-j svg { width: 100%; height: 100%; overflow: visible; filter: drop-shadow(0 0 18px rgba(184,173,255,.45)); }
.vu .lune-j { transform: translateY(calc(var(--haut) * -1px)); opacity: 1; }
.nuage { position: absolute; width: 80%; aspect-ratio: 2.2; bottom: -14%; left: 40%; opacity: 0; transform: translateX(40px);
  transition: opacity 1s, transform 1.4s var(--doux); transition-delay: calc(var(--i) * .09s + .7s); }
.nuage::before, .nuage::after { content: ""; position: absolute; border-radius: 999px; background: #CFC8EA; }
.nuage::before { inset: 38% 0 0 0; }
.nuage::after { width: 52%; aspect-ratio: 1; left: 20%; bottom: 22%; }
.vu .nuage { opacity: .92; transform: none; animation: derive 5s ease-in-out infinite alternate; animation-delay: calc(var(--i) * .4s); }
@keyframes derive { to { translate: -12px 0; } }
.nuit-j .jour { font-size: 13px; color: var(--texte-3); }
.nuit-j .score { font: 600 20px var(--sf-rond); font-variant-numeric: tabular-nums; }
.semaine-ciel .bilan { position: relative; text-align: center; margin-top: 48px; font-size: clamp(22px, 2.6vw, 30px); font-weight: 600; letter-spacing: -.02em; }
.semaine-ciel .bilan span { display: block; font-size: 16px; font-weight: 400; color: var(--texte-2); letter-spacing: 0; margin-top: 8px; }
@media (max-width: 600px) { .semaine-ciel { padding: 48px 12px 36px; border-radius: 28px; } .lunes { gap: 4px; min-height: 150px; } .nuit-j .score { font-size: 14px; } }

.habitudes-section { padding-top: 40px; }
.habitudes-grille { display: grid; grid-template-columns: .9fr 1.1fr; gap: 64px; align-items: center; }
.habitudes-texte h2 { font-size: clamp(40px, 5vw, 72px); margin-top: 16px; }
.habitudes-texte p { font-size: 19px; margin-top: 20px; max-width: 42ch; }
.panneau { background: #fff; border-radius: 32px; padding: 28px; box-shadow: 0 1px 0 rgba(28,24,56,.04), 0 30px 80px rgba(60, 40, 80, .10); border: 1px solid #EFE8E1; }
.panneau-tete { display: flex; justify-content: space-between; align-items: center; font-size: 14px; font-weight: 600; color: #1C1838; padding: 0 4px 14px; border-bottom: 1px solid #F1EBE4; }
.legende { display: flex; align-items: center; gap: 6px; font-weight: 500; color: #8A8499; font-size: 13px; }
.legende i { width: 8px; height: 8px; border-radius: 50%; margin-left: 8px; }
.pt-aide { background: #7A6AC8; } .pt-gene { background: #E48A6E; }
.panneau ul { list-style: none; }
.habitude { display: grid; grid-template-columns: 44px 1fr 150px 84px; align-items: center; gap: 14px; padding: 14px 4px; border-bottom: 1px solid #F5F0EA; }
.habitude:last-child { border-bottom: 0; }
.tuile { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; background: #F3EFFB; color: #5B4BB0; }
.gene .tuile { background: #FCEFEA; color: #B9573D; }
.tuile svg { width: 22px; height: 22px; }
.libelle strong { display: block; font-size: 16px; font-weight: 600; letter-spacing: -.2px; color: #1C1838; }
.libelle small { color: #8A8499; font-size: 13px; }
/* Jauge à deux sens autour d'un axe : à droite ce qui aide, à gauche ce qui gêne. */
.jauge { position: relative; height: 8px; border-radius: 4px; background: #F4EFE9; }
.jauge::before { content: ""; position: absolute; left: 50%; top: -4px; bottom: -4px; width: 1.5px; margin-left: -.75px; background: #D9D1C8; border-radius: 1px; }
.jauge i { position: absolute; top: 0; bottom: 0; width: 0; border-radius: 4px; transition: width 1.2s var(--doux); transition-delay: calc(var(--i) * .08s + .3s); }
.aide .jauge i { left: 50%; background: linear-gradient(90deg, #A99BF0, #7A6AC8); }
.gene .jauge i { right: 50%; background: linear-gradient(270deg, #F1B39E, #E48A6E); }
.vu .jauge i { width: calc(var(--l) * 50%); }
.valeur { text-align: right; font: 600 20px var(--sf-rond); letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.aide .valeur { color: #5B4BB0; } .gene .valeur { color: #C2603F; }
.panneau .note { text-align: left; color: #8A8499; font-size: 12.5px; margin: 14px 4px 0; }
@media (max-width: 900px) {
  .habitudes-grille { grid-template-columns: 1fr; gap: 36px; text-align: center; }
  .habitudes-texte p { margin-inline: auto; }
  .habitude { grid-template-columns: 40px 1fr 72px; text-align: left; }
  .habitude .jauge { grid-column: 2 / 4; grid-row: 2; }
  .panneau { padding: 18px; }
}

.enonce { padding: 40px 0 160px; }
.enonce p.grand { font-size: clamp(38px, 5.6vw, 80px); font-weight: 700; letter-spacing: -0.045em; line-height: 1.04; max-width: 1050px; }
.enonce p.grand span { opacity: .14; transition: opacity .35s; }
.enonce p.grand span.allume { opacity: 1; }
.garanties { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 64px; }
.garanties div { padding: 26px; border-radius: 24px; background: #F3ECE5; }
.garanties svg { width: 26px; height: 26px; color: #7A6AC8; }
.garanties strong { display: block; margin: 14px 0 6px; font-size: 18px; letter-spacing: -.2px; }
.garanties p { color: #5B5670; font-size: 15px; }
@media (max-width: 800px) { .garanties { grid-template-columns: 1fr; } }

.premium { background: #FBF4EF; color: #1C1838; margin-top: -1px; }
.premium .entete p { color: #5B5670; }
.offres { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; align-items: stretch; }
.offre { position: relative; padding: 34px; border-radius: 30px; overflow: hidden; background: #fff; border: 1px solid #EFE8E1; --mx: 50%; --my: 0%;
  box-shadow: 0 20px 50px rgba(60,40,80,.06); transition: transform .4s var(--ressort), box-shadow .4s; }
.offre:hover { transform: translateY(-4px); box-shadow: 0 30px 70px rgba(60,40,80,.12); }
.offre::before { content: ""; position: absolute; inset: 0; background: radial-gradient(380px circle at var(--mx) var(--my), rgba(157,140,255,.16), transparent 55%); opacity: 0; transition: opacity .3s; pointer-events: none; }
.offre:hover::before { opacity: 1; }
.offre.vedette { background: radial-gradient(120% 100% at 50% 0%, #2E3474, #121845 70%); color: #fff; border-color: transparent; box-shadow: 0 30px 80px rgba(46, 52, 116, .35); }
.offre .type { font-size: 14px; color: #6B6680; }
.offre.vedette .type { color: var(--lavande); }
.offre .prix { font: 700 56px/1 var(--sf); letter-spacing: -.04em; margin: 18px 0 8px; color: #1C1838; }
.offre.vedette .prix { color: #fff; }
.offre .prix small { font-size: 17px; font-weight: 500; color: #8A8499; letter-spacing: 0; }
.offre.vedette .prix small { color: var(--texte-2); }
.offre p { color: #6B6680; font-size: 15px; position: relative; }
.offre.vedette p { color: var(--texte-2); }
.offre .ruban { position: absolute; top: 18px; right: 18px; background: var(--lune-0); color: var(--nuit-1); font-size: 12px; font-weight: 600; padding: 5px 10px; border-radius: 999px; }
.avantages { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px 24px; margin-top: 72px; }
.avantages div { border-top: 1px solid #E9E1D8; padding-top: 18px; }
.avantages strong { display: block; font-size: 16px; letter-spacing: -.2px; }
.avantages span { color: #6B6680; font-size: 14px; }
.gratuit { text-align: center; color: #8A8499; max-width: 70ch; margin: 56px auto 0; font-size: 15px; }
@media (max-width: 900px) { .offres { grid-template-columns: 1fr; } .avantages { grid-template-columns: 1fr 1fr; } }

.final { position: relative; overflow: hidden; text-align: center; padding: 170px 0 0; min-height: 110svh;
  background: linear-gradient(180deg, #FBF4EF 0%, #F9E4D8 45%, #F6C7AE 80%, #F3B595 100%); color: #1C1838; --s: 0; }
.final h2 { font-size: clamp(56px, 9vw, 140px); position: relative; z-index: 2; }
.final p { color: #5B5670; font-size: 20px; margin: 22px 0 34px; position: relative; z-index: 2; }
.final .bouton { position: relative; z-index: 2; }
.grand-soleil {
  position: absolute; left: 50%; bottom: -560px; width: 900px; height: 900px; margin-left: -450px; border-radius: 50%;
  background: radial-gradient(circle at 50% 40%, #FFF6EE, var(--soleil-0) 30%, var(--soleil-1) 70%);
  box-shadow: 0 0 200px 60px rgba(255, 200, 160, .6);
  transform: translateY(calc((1 - var(--s)) * 300px));
}
.galuma-final { position: absolute; left: 50%; bottom: 282px; width: 210px; margin-left: -105px; z-index: 1; transform: translateY(calc((1 - var(--s)) * 300px)); }
.galuma-final img { animation: saute 2.6s var(--ressort) infinite; transform-origin: 50% 85%; }
@keyframes saute { 0%, 60%, 100% { transform: none; } 70% { transform: translateY(-20px) scale(.98, 1.03); } 80% { transform: translateY(0) scale(1.05, .95); } }

footer { background: linear-gradient(180deg, #FBE6DA, #FCF3EE); color: #6B6680; padding: 64px 0 40px; font-size: 15px; }
footer .contenu { display: flex; flex-wrap: wrap; gap: 32px; justify-content: space-between; }
footer .marque { color: #1C1838; }
footer ul { list-style: none; display: grid; gap: 10px; }
footer a { text-decoration: none; transition: color .2s; }
footer a:hover { color: #1C1838; }
footer .mentions { width: 100%; border-top: 1px solid rgba(28,24,56,.08); padding-top: 24px; font-size: 13px; color: #8A8499; }
.final { padding-bottom: 0; }
.final::after { content: ""; position: absolute; inset: auto 0 0; height: 140px; background: linear-gradient(rgba(251,230,218,0), #FBE6DA); z-index: 2; pointer-events: none; }

/* ---------- Pages de texte : confidentialité, aide ---------- */
.page { background: radial-gradient(100% 60% at 50% 0%, var(--nuit-3), var(--nuit-0) 70%); padding: 150px 0 120px; min-height: 100svh; }
.page article { max-width: 720px; margin: 0 auto; }
.page h1 { font-size: clamp(52px, 8vw, 96px); }
.page .chapo { font-size: 21px; color: var(--texte-2); margin: 22px 0 56px; }
.page h2 { font-size: 30px; letter-spacing: -.03em; margin: 52px 0 14px; line-height: 1.1; }
.page p, .page li { color: var(--texte-2); margin-bottom: 12px; }
.page ul { padding-left: 22px; }
.page strong { color: var(--texte); }
.page a { color: var(--lavande); }
.page details { border-top: 1px solid var(--verre-trait); padding: 22px 0; }
.page details:last-of-type { border-bottom: 1px solid var(--verre-trait); }
.page summary { cursor: pointer; font-weight: 600; font-size: 18px; color: var(--texte); list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.page summary::-webkit-details-marker { display: none; }
.page summary::after { content: "+"; font: 300 28px/0.8 var(--sf-rond); color: var(--lavande); transition: transform .3s var(--ressort); }
.page details[open] summary::after { transform: rotate(45deg); }
.page details p { margin: 14px 0 0; }
.page .contact { margin-top: 64px; background: var(--verre); border: 1px solid var(--verre-trait); border-radius: 28px; padding: 34px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
  .apparait { opacity: 1; transform: none; }
}
.phase-anneau { fill: none; stroke: rgba(214, 207, 255, .45); stroke-width: 1; }
.entete-site.clair .phase-anneau { stroke: rgba(122, 106, 200, .45); }

/* Raccord : la fin du défilé (l'aube et son soleil) se fond dans la première section claire. */
.aube-zone { position: relative; }
.aube-zone::before { content: ""; position: absolute; left: 0; right: 0; top: -240px; height: 240px; pointer-events: none;
  background: linear-gradient(rgba(232,170,150,0), rgb(232,170,150)); }

.bouton-encre { background: #1C1838; color: #fff; box-shadow: 0 10px 30px rgba(28,24,56,.25); }
.bouton-encre:hover { box-shadow: 0 14px 40px rgba(28,24,56,.35); }

/* Pages de texte (aide, confidentialité) : tout reste dans la nuit, pied de page compris. */
.sombre footer { background: var(--nuit-0); color: var(--texte-2); }
.sombre footer .marque { color: var(--texte); }
.sombre footer a:hover { color: var(--texte); }
.sombre footer .mentions { border-color: var(--verre-trait); color: var(--texte-3); }

/* Sélecteur de langue, à côté du bouton Télécharger. */
.langue { display: inline-grid; place-items: center; height: 40px; min-width: 40px; padding: 0 10px; border-radius: 13px; text-decoration: none;
  font-size: 13px; font-weight: 600; letter-spacing: .4px; color: var(--texte-2); background: rgba(255,255,255,.06); box-shadow: 0 0 0 1px rgba(255,255,255,.06) inset; transition: color .2s, background .2s; }
.langue:hover { color: #fff; background: rgba(255,255,255,.12); }
.entete-site.clair .langue { color: #6B6680; background: rgba(28,24,56,.05); box-shadow: 0 0 0 1px rgba(28,24,56,.05) inset; }
.entete-site.clair .langue:hover { color: #1C1838; }

/* Avant la sortie : le bouton annonce l'App Store sans y mener. */
.bouton.bientot { cursor: default; }
.bouton.bientot:hover { transform: none; }
