@font-face { font-family: 'Cormorant Garamond'; src: url('/fonts/cormorant.woff2') format('woff2'); font-weight: 300 700; font-display: swap; }
@font-face { font-family: 'Cormorant Garamond'; src: url('/fonts/cormorant-italique.woff2') format('woff2'); font-weight: 300 700; font-style: italic; font-display: swap; }
@font-face { font-family: 'Figtree'; src: url('/fonts/figtree.woff2') format('woff2'); font-weight: 300 900; font-display: swap; }

/* vivii — liste d'attente. Ambiance « Nuit » de l'app.
   Mise en page : une colonne sur téléphone ; sur grand écran, l'ouverture
   et le fil du jour passent en deux colonnes, le reste garde sa mesure. */
:root {
  --nuit-0: #040919;
  --nuit-1: #0B1838;
  --nuit-2: #13285A;
  --encre: #EFF3FF;
  --doux: #A9B6D6;
  --pale: #6F7FA8;
  --accent: #9CC4FF;
  --lueur: #A78BFA;
  --cyan: #6EC6D9;
  --bouton: #E6EEFF;
  --bouton-encre: #0B1838;
  --verre: rgba(16, 32, 72, .62);
  --verre-bord: rgba(255, 255, 255, .14);
  --pastille: rgba(255, 255, 255, .07);
  --pastille-bord: rgba(255, 255, 255, .16);
  --erreur: #FFB4C0;

  --titre: 'Cormorant Garamond', 'Cormorant', Garamond, Georgia, serif;
  --texte: 'Figtree', 'Helvetica Neue', system-ui, sans-serif;

  --mesure: 1120px;
  --gouttiere: 20px;   /* marges fixes : 20 / 32 / 40 px selon la largeur, jamais en vw */
  --section: 64px;     /* espace entre les sections : 64 / 96 px */
  --barre: 64px;       /* hauteur de la barre du haut */
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--nuit-0); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  background: var(--nuit-0);
  color: var(--encre);
  font: 400 17px/1.55 var(--texte);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--accent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 8px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ── Le ciel ── */
#ciel {
  position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0;
  background: linear-gradient(180deg, var(--nuit-0), var(--nuit-1) 55%, var(--nuit-2));
}
.voile {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background: radial-gradient(120% 70% at 50% 0%, transparent 40%, rgba(2, 6, 20, .45));
}

/* Les étoiles de l'app : nettes, au-dessus des nuages */
#etoiles { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }

/* Le contenu passe devant le ciel */
main, .pied { position: relative; z-index: 1; }

/* ── Barre ── */
.barre {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: calc(env(safe-area-inset-top, 0px) + 12px) var(--gouttiere) 12px;
  transition: background .4s, backdrop-filter .4s;
}
.barre.collee { background: rgba(4, 9, 25, .72); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.logo { display: inline-flex; align-items: center; gap: 8px; color: var(--encre); text-decoration: none; font: 400 30px/1 var(--titre); letter-spacing: .02em; }
.logo img { width: 30px; height: 30px; flex: none; }
.bouton-petit {
  height: 40px; padding: 0 16px; border-radius: 20px; display: inline-flex; align-items: center;
  background: var(--pastille); border: 1px solid var(--pastille-bord); color: var(--encre);
  font: 600 14px var(--texte); text-decoration: none; white-space: nowrap;
  transition: background .25s, transform .25s;
}
.bouton-petit:hover { background: rgba(255, 255, 255, .14); transform: translateY(-1px); }

main > section { width: min(100%, var(--mesure)); margin-inline: auto; padding-inline: var(--gouttiere); }
.ouverture, .fil, .ouverture-texte, .ouverture-vivi, .fin, .inscription { grid-template-columns: minmax(0, 1fr); }
main > section > * { min-width: 0; }

/* ── Typo ── */
h1, h2, h3 { font-family: var(--titre); font-weight: 500; letter-spacing: -.01em; text-wrap: balance; margin: 0; }
h1 { font-size: clamp(50px, 12.5vw, 96px); line-height: .98; letter-spacing: -.015em; }
h2 { font-size: clamp(36px, 7.2vw, 62px); line-height: 1.04; }
h3 { font-size: 24px; line-height: 1.2; letter-spacing: 0; font-weight: 600; }
h1 em, h2 em { font-style: italic; color: var(--accent); }
.etiquette, .sur-titre { margin: 0 0 14px; font: 700 12px var(--texte); letter-spacing: .16em; text-transform: uppercase; color: var(--doux); }
p { margin: 0; text-wrap: pretty; }
@media (min-width: 640px) { :root { --gouttiere: 32px; } }
@media (min-width: 960px) { :root { --gouttiere: 40px; --section: 96px; } }

/* ── Ouverture ── */
.ouverture {
  display: grid; gap: 8px;
  padding-block: 36px var(--section);
}
.ouverture-vivi { display: grid; justify-items: center; position: relative; margin-top: 40px; }
.scene-orbe {
  /* --t : taille du canvas. L'orbe visible (anneaux compris, même quand elle parle) n'en occupe que 73 % :
     la boîte prend la taille de l'orbe visible, le canvas déborde de 13,5 % de chaque côté.
     La mise en page suit ainsi ce qu'on voit, sans marge négative. */
  --t: min(80vw, 360px); --deborde: calc(var(--t) * .135);
  width: calc(var(--t) - 2 * var(--deborde)); aspect-ratio: 1; position: relative;
}
.scene-orbe canvas, #orbe { width: 100%; height: 100%; display: block; }
/* Vivii parle sur l'orbe : on l'atténue pour que ses mots se lisent. */
#orbe { transition: filter 1.2s ease; }
.demo-joue #orbe { filter: brightness(.66); }

/* ── La démo : l'orbe raconte ── */
.orbe-bouton {
  appearance: none; border: 0; padding: 0; margin: 0; background: none; color: inherit; font: inherit;
  display: block; position: absolute; top: calc(-1 * var(--deborde)); left: calc(-1 * var(--deborde));
  width: var(--t); height: var(--t); border-radius: 50%; cursor: pointer; /* un bouton ne s'étire pas avec inset */
  -webkit-tap-highlight-color: transparent;
  transition: transform .5s cubic-bezier(.2, .8, .2, 1);
}
.orbe-bouton:active { transform: scale(.97); }
.orbe-bouton:focus-visible { outline: 2px solid var(--accent); outline-offset: -14%; }
/* Au repos, un halo bat doucement pour inviter à toucher. */
.orbe-bouton::after {
  content: ''; position: absolute; inset: 24%; border-radius: 50%; pointer-events: none;
  box-shadow: 0 0 0 1px rgba(156, 196, 255, .35), 0 0 40px rgba(143, 184, 255, .25);
  animation: appel 2.8s ease-out infinite; opacity: 0;
}
.demo-joue .orbe-bouton::after, .demo-vue .orbe-bouton::after { animation: none; }
@keyframes appel { 0% { transform: scale(.92); opacity: 0; } 30% { opacity: .9; } 100% { transform: scale(1.32); opacity: 0; } }

/* Les paroles d'accueil et les mots de l'histoire partagent la même place : sur l'orbe. */
.voix-off {
  position: absolute; inset: 2%; display: grid; place-items: center; pointer-events: none;
  background: radial-gradient(closest-side, rgba(4, 9, 25, .26), transparent);
  opacity: 0; transition: opacity 1.2s ease;
}
.demo-joue .voix-off { opacity: 1; }
.voix-off > * { grid-area: 1 / 1; }
.parole, .sous-titre {
  margin: 0; max-width: 100%; text-align: center;
  font: 500 clamp(19px, calc(var(--t) * .062), 27px)/1.22 var(--titre); letter-spacing: -.005em; color: var(--encre);
  text-shadow: 0 1px 2px rgba(2, 6, 20, .6), 0 0 18px rgba(2, 6, 20, .75);
}
.parole .mot { white-space: nowrap; opacity: 0; transition: opacity .35s ease, filter .35s ease; filter: blur(3px); }
.parole .mot.vu { opacity: 1; filter: none; }
.parole { transition: opacity .5s ease; }
.demo-joue .parole { opacity: 0; pointer-events: none; }
/* L'histoire, une page à la fois : elle arrive en fumée, chaque mot attend pâle (--a)
   et s'éclaire quand la voix le dit ; à la page suivante, elle s'envole. */
.sous-titre { display: grid; place-items: center; width: 100%; }
.sous-titre .page { grid-area: 1 / 1; display: block; transition: opacity .7s ease, transform .9s cubic-bezier(.2, .8, .2, 1), filter .7s ease; }
.sous-titre .page.part { opacity: 0; transform: translateY(-22px) scale(.97); filter: blur(8px); }
.sous-titre .m {
  display: inline-block; white-space: nowrap; color: rgb(239 243 255 / var(--a, .28));
  animation: fumee 1.2s cubic-bezier(.16, .84, .3, 1) both;
}
@keyframes fumee { from { opacity: 0; filter: blur(10px); transform: translateY(12px) scale(.94); } to { opacity: 1; filter: none; transform: none; } }

/* Écouter / Arrêter, juste sous l'orbe */
.lecture-cta {
  position: relative; z-index: 1; margin-top: 24px;
  display: inline-flex; align-items: center; gap: 9px; height: 48px; padding: 0 24px 0 18px; border-radius: 24px;
  appearance: none; cursor: pointer; border: 1px solid transparent; background: var(--bouton); color: var(--bouton-encre);
  font: 700 15px var(--texte); white-space: nowrap; box-shadow: 0 0 30px -6px rgba(156, 196, 255, .65);
  transition: background .35s, color .35s, border-color .35s, box-shadow .35s, transform .25s;
}
.lecture-cta:hover { transform: translateY(-1px); }
.lecture-cta svg { width: 18px; height: 18px; fill: currentColor; flex: none; }
.lecture-cta .ico-arreter, .lecture-cta.joue .ico-jouer { display: none; }
.lecture-cta.joue .ico-arreter { display: block; }
.lecture-cta.joue { background: rgba(255, 255, 255, .08); color: var(--encre); border-color: var(--pastille-bord); box-shadow: none; }

.voix-choix {
  position: relative; display: inline-grid; grid-template-columns: 1fr 1fr; margin-top: 18px; padding: 4px;
  border-radius: 22px; background: rgba(4, 9, 25, .45); border: 1px solid var(--pastille-bord);
}
.voix-choix button {
  position: relative; z-index: 1; appearance: none; border: 0; background: none; cursor: pointer;
  height: 34px; padding: 0 16px; border-radius: 17px; color: var(--doux); font: 600 13.5px var(--texte); white-space: nowrap;
  transition: color .3s;
}
.voix-choix button[aria-checked="true"] { color: var(--bouton-encre); }
.voix-curseur {
  position: absolute; z-index: 0; top: 4px; bottom: 4px; left: 4px; width: calc(50% - 4px); border-radius: 17px;
  background: var(--bouton); box-shadow: 0 0 18px rgba(156, 196, 255, .35);
  transition: transform .45s cubic-bezier(.2, .8, .2, 1);
}
.voix-choix[data-voix="homme"] .voix-curseur { transform: translateX(100%); }

.pastilles { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 10px; }
.pastille {
  position: relative; overflow: hidden; isolation: isolate; appearance: none; cursor: pointer;
  height: 42px; padding: 0 18px; border-radius: 21px; white-space: nowrap;
  background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .12); color: var(--doux);
  font: 500 19px/1 var(--titre); transition: background .3s, border-color .3s, color .3s, box-shadow .3s, transform .25s;
}
.pastille:hover { background: rgba(255, 255, 255, .1); color: var(--encre); transform: translateY(-1px); }
.pastille[aria-pressed="true"] {
  color: #fff; border-color: var(--accent); background: rgba(156, 196, 255, .28);
  box-shadow: inset 0 0 0 1px rgba(156, 196, 255, .45), 0 0 26px -4px rgba(143, 184, 255, .85);
}
/* Pendant l'écoute, la pastille choisie se remplit comme une barre de progression. */
.pastille::before {
  content: ''; position: absolute; inset: 0; z-index: -1; transform-origin: left; transform: scaleX(var(--avance, 0));
  background: linear-gradient(90deg, rgba(110, 198, 217, .28), rgba(167, 139, 250, .34));
}
.pastille[aria-pressed="false"]::before { transform: scaleX(0); }

.chapo { margin-top: 20px; max-width: 34ch; font-size: clamp(17px, 2.2vw, 20px); color: var(--doux); }
.ouverture-texte { display: grid; justify-items: start; }

/* ── Formulaire ── */
.inscription { width: 100%; max-width: 520px; margin-top: 28px; display: grid; gap: 10px; }
.champ {
  display: flex; gap: 6px; padding: 6px; border-radius: 34px;
  background: var(--verre); border: 1px solid var(--verre-bord);
  box-shadow: 0 20px 50px -24px rgba(46, 134, 255, .55);
  position: relative; isolation: isolate;
}
/* Le liseré qui fait le tour, comme le champ de l'app */
.champ::before {
  content: ''; position: absolute; inset: -1.5px; border-radius: inherit; padding: 1.5px; z-index: -1;
  background: conic-gradient(from var(--angle), transparent 0 55%, var(--lueur) 72%, #F2A07E 82%, transparent 92%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude;
  animation: tour 5s linear infinite;
}
@property --angle { syntax: '<angle>'; inherits: false; initial-value: 0deg; }
@keyframes tour { to { --angle: 360deg; } }
.champ input {
  flex: 1; min-width: 0; height: 50px; padding: 0 16px; border: 0; border-radius: 26px;
  background: transparent; color: var(--encre); font: 500 17px var(--texte); outline: none;
}
.champ input::placeholder { color: var(--pale); }
.champ button {
  flex-shrink: 0; height: 50px; padding: 0 20px; border: 0; border-radius: 25px; cursor: pointer;
  background: var(--bouton); color: var(--bouton-encre); font: 700 15px var(--texte);
  transition: transform .2s, box-shadow .3s;
}
.champ button:hover { transform: translateY(-1px); box-shadow: 0 8px 24px -8px rgba(156, 196, 255, .7); }
.champ button:disabled { opacity: .6; cursor: default; transform: none; }
.piege { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.note { font-size: 13.5px; color: var(--doux); padding-inline: 8px; }
.note.erreur { color: var(--erreur); }
.merci {
  padding: 22px 24px; border-radius: 28px; background: var(--verre); border: 1px solid var(--verre-bord);
  animation: monte .6s cubic-bezier(.2, .9, .3, 1.2) both;
}
.merci b { display: block; font: 600 26px/1.2 var(--titre); letter-spacing: 0; margin-bottom: 6px; }
.merci p { color: var(--doux); font-size: 15px; }
.merci button {
  margin-top: 14px; height: 40px; padding: 0 16px; border-radius: 20px; cursor: pointer;
  background: var(--pastille); border: 1px solid var(--pastille-bord); color: var(--encre); font: 600 14px var(--texte);
}
@keyframes monte { from { opacity: 0; transform: translateY(10px) scale(.98); } }

/* ── Étapes ── */
.etapes { padding-block: var(--section); }
.etapes h2 { max-width: 18ch; }
.etapes ol { list-style: none; margin: 36px 0 0; padding: 0; display: grid; gap: 18px; }
.etapes li {
  position: relative; display: grid; gap: 8px; padding: 22px 22px 24px; border-radius: 30px; align-content: start;
  background: linear-gradient(160deg, rgba(255, 255, 255, .07), rgba(255, 255, 255, .02)); border: 1px solid var(--verre-bord);
}
.etapes li p { color: var(--doux); }
.num {
  width: 34px; height: 34px; border-radius: 17px; display: grid; place-items: center;
  font: 700 15px var(--texte); color: var(--bouton-encre);
  background: radial-gradient(circle at 35% 30%, #fff, var(--accent) 60%, var(--lueur));
  box-shadow: 0 0 18px rgba(156, 196, 255, .55);
}

/* ── Fil du jour ── */
.fil { display: grid; gap: 40px; padding-block: var(--section); align-items: center; }
.fil-texte { min-width: 0; }
.moments { margin: 28px 0 0; display: grid; gap: 0; }
.moments div { display: grid; grid-template-columns: 96px 1fr; gap: 14px; padding: 14px 0; border-top: 1px solid var(--pastille-bord); }
.moments div:last-child { border-bottom: 1px solid var(--pastille-bord); }
.moments dt { font: 700 12px var(--texte); letter-spacing: .14em; text-transform: uppercase; color: var(--accent); padding-top: 4px; }
.moments dd { margin: 0; color: var(--encre); }

/* ── Atouts ── */
.atouts { padding-block: var(--section); }
.atouts h2 { max-width: 20ch; }
.atouts ul { list-style: none; margin: 36px 0 0; padding: 0; display: grid; gap: 0; }
.atouts li { padding: 22px 0; border-top: 1px solid var(--pastille-bord); display: grid; gap: 6px; }
.atouts li p { color: var(--doux); max-width: 52ch; }

/* ── Questions ── */
.questions { padding-block: var(--section); max-width: 820px; }
.questions h2 { margin-bottom: 20px; }
details { border-top: 1px solid var(--pastille-bord); }
details:last-of-type { border-bottom: 1px solid var(--pastille-bord); }
summary {
  list-style: none; cursor: pointer; padding: 20px 40px 20px 0; position: relative;
  font: 600 22px/1.3 var(--titre); letter-spacing: 0;
}
summary::-webkit-details-marker { display: none; }
summary::after {
  content: ''; position: absolute; right: 6px; top: 50%; width: 12px; height: 12px; margin-top: -8px;
  border-right: 2px solid var(--doux); border-bottom: 2px solid var(--doux); transform: rotate(45deg); transition: transform .3s;
}
details[open] summary::after { transform: rotate(225deg); margin-top: -2px; }
details p { padding: 0 0 22px; color: var(--doux); max-width: 62ch; }

/* ── Fin ── */
.fin { display: grid; justify-items: center; text-align: center; gap: 14px; padding-block: var(--section) calc(var(--section) + 24px); }
.fin-orbe { width: 200px; height: 200px; }
.fin p { color: var(--doux); max-width: 40ch; }
.fin .inscription { justify-items: center; }

.pied {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 22px;
  padding: 26px var(--gouttiere) calc(env(safe-area-inset-bottom, 0px) + 32px);
  font-size: 13.5px; color: var(--pale); border-top: 1px solid rgba(255, 255, 255, .08);
}
.pied a { color: var(--doux); }

/* Apparition douce au défilement (visible par défaut sans JS) */
.js .apparait { opacity: 0; transform: translateY(18px); transition: opacity .9s ease, transform .9s cubic-bezier(.2, .9, .3, 1); }
.js .apparait.vu { opacity: 1; transform: none; }

/* ── Grand écran ── */
@media (min-width: 640px) {
  .etapes ol { grid-template-columns: repeat(3, 1fr); }
  .atouts ul { grid-template-columns: 1fr 1fr; column-gap: 40px; }
}
@media (min-width: 960px) {
  .ouverture {
    grid-template-columns: minmax(0, 1fr) 420px; align-items: center; align-content: center; gap: 48px;
    min-height: calc(100svh - var(--barre)); padding-block: 32px;
  }
  .ouverture-vivi { margin-top: 0; }
  .scene-orbe { --t: 420px; }
  /* Le titre tient sur deux lignes à côté de l'orbe, quelle que soit la largeur. */
  .ouverture h1 { font-size: clamp(60px, calc((100vw - 560px) / 6), 96px); }
  .fil { grid-template-columns: 1fr 1fr; gap: 80px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001s !important; animation-iteration-count: 1 !important; transition-duration: .001s !important; scroll-behavior: auto !important; }
  .js .apparait { opacity: 1; transform: none; }
}

/* ── Page de texte (confidentialité) ── */
.texte-long { width: min(100%, 720px); margin-inline: auto; padding: 24px var(--gouttiere) 80px; display: grid; gap: 14px; }
.texte-long h1 { font-size: clamp(38px, 8vw, 56px); }
.texte-long h2 { font-size: 22px; margin-top: 18px; }
.texte-long p { color: var(--doux); }
.texte-long b, .texte-long strong { color: var(--encre); font-weight: 600; }
.texte-long ul { margin: 0; padding-left: 1.2em; display: grid; gap: 8px; }
.texte-long li { color: var(--doux); }

/* Sans WebGL : une orbe en dégradé, pour garder l'esprit */
.sans-webgl #orbe, .sans-webgl canvas.miroir {
  border-radius: 50%;
  background: radial-gradient(circle at 50% 48%, #fff 0, #C9DCFF 14%, rgba(143, 184, 255, .7) 34%, rgba(167, 139, 250, .25) 55%, transparent 70%);
}


/* ── iPhone : vraies captures de l'app ── */
.iphone {
  margin: 0; width: 100%; max-width: 300px; aspect-ratio: 590 / 1279; padding: 3.2%;
  border-radius: 15% / 7%; background: linear-gradient(145deg, #2A2F45, #0B0E1C 40%, #1C2135);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .12), inset 0 0 0 1.5px rgba(255, 255, 255, .06), 0 40px 80px -36px rgba(46, 134, 255, .7);
  position: relative;
}
.iphone-ecran { position: relative; width: 100%; height: 100%; border-radius: 12.5% / 5.8%; overflow: hidden; background: var(--nuit-1); container-type: inline-size; }
.iphone-ecran img { width: 100%; height: 100%; object-fit: cover; }
.ilot { position: absolute; top: 2.6%; left: 50%; width: 31%; height: 4.2%; transform: translateX(-50%); border-radius: 99px; background: #000; }
.statut {
  position: absolute; top: 2.9%; left: 9%; right: 8%; display: flex; justify-content: space-between; align-items: center;
  color: #fff; font: 600 4.2cqw/1 -apple-system, 'SF Pro Text', var(--texte);
}
.statut b { font-weight: 600; padding-left: 4%; }
.statut svg { width: 17cqw; height: auto; fill: currentColor; }
.barre-accueil { position: absolute; bottom: 1.2%; left: 50%; width: 35%; height: 1.4cqw; min-height: 3px; transform: translateX(-50%); border-radius: 99px; background: rgba(255, 255, 255, .85); }
.etapes .iphone { justify-self: center; max-width: 230px; margin-bottom: 14px; }
.fil .iphone.grand { justify-self: center; max-width: 320px; transform: rotate(-2deg); transition: transform .8s cubic-bezier(.2, .9, .3, 1); }
.fil .iphone.grand:hover { transform: rotate(0) translateY(-4px); }
.atouts-grille { display: grid; gap: 36px; margin-top: 36px; grid-template-columns: minmax(0, 1fr); }
.atouts-grille ul { margin-top: 0; }
.duo { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; max-width: 520px; justify-self: center; width: 100%; }
.duo .iphone:first-child { transform: rotate(-3deg) translateY(10px); }
.duo .iphone:last-child { transform: rotate(3deg); }
@media (min-width: 960px) {
  .atouts-grille { grid-template-columns: .9fr 1.1fr; align-items: center; gap: 60px; }
  .atouts-grille ul { grid-template-columns: 1fr 1fr; }
  .fil .iphone.grand { max-width: 340px; }
}

/* Changement de prénom : l'écran suivant apparaît en fondu */
.iphone-ecran img.fondu { position: absolute; inset: 0; opacity: 0; transition: opacity .6s ease; }
.iphone-ecran img.fondu.vu { opacity: 1; }

/* ── Téléphone : tout est centré, comme dans l'app ── */
@media (max-width: 959px) {
  main > section { text-align: center; }
  .ouverture-texte, .fil-texte, .etapes li, .atouts li { justify-items: center; }
  .ouverture-texte { justify-items: center; }
  .chapo, .etapes h2, .atouts h2, .atouts li p, details p { margin-inline: auto; }
  .inscription { justify-self: center; justify-items: center; }
  .note { text-align: center; }
  .etapes li { text-align: center; }
  .num { justify-self: center; }
  .moments div { grid-template-columns: 1fr; gap: 4px; text-align: center; }
  .moments dt { padding-top: 0; }
  .questions { text-align: center; }
  summary { padding-inline: 40px; }
}

.fil-chapo { margin-top: 14px; color: var(--doux); max-width: 44ch; }
@media (max-width: 959px) { .fil-chapo { margin-inline: auto; } }

/* ── Guides (pages de contenu) ── */
.guide { width: min(100%, 740px); margin-inline: auto; padding: 8px var(--gouttiere) 40px; }
.fil-ariane { display: flex; gap: 8px; align-items: center; font-size: 13.5px; color: var(--pale); margin-bottom: 22px; }
.fil-ariane a { color: var(--doux); text-decoration: none; }
.fil-ariane a:hover { text-decoration: underline; }
.guide h1 { font-size: clamp(34px, 8vw, 56px); line-height: 1.04; }
.chapo-guide { margin-top: 18px; font-size: clamp(18px, 2.4vw, 20px); color: var(--encre); opacity: .92; }
.maj { margin-top: 12px; font-size: 13.5px; color: var(--pale); }
.guide h2 { font-size: clamp(26px, 5vw, 34px); margin: 48px 0 14px; }
.guide h3 { font-size: 19px; margin: 22px 0 6px; }
.guide p, .guide li { color: var(--doux); }
.guide p + p { margin-top: 12px; }
.guide strong { color: var(--encre); font-weight: 600; }
.guide a { color: var(--accent); text-underline-offset: 3px; }
.guide ul { padding-left: 20px; display: grid; gap: 8px; }
.etapes-guide { list-style: none; padding: 0; margin: 8px 0 0; display: grid; gap: 12px; counter-reset: etape; }
.etapes-guide li {
  counter-increment: etape; position: relative; padding: 18px 20px 18px 64px; border-radius: 22px;
  background: linear-gradient(160deg, rgba(255, 255, 255, .07), rgba(255, 255, 255, .02)); border: 1px solid var(--verre-bord);
}
.etapes-guide li::before {
  content: counter(etape); position: absolute; left: 18px; top: 18px; width: 32px; height: 32px; border-radius: 16px;
  display: grid; place-items: center; font: 700 15px var(--texte); color: var(--bouton-encre);
  background: radial-gradient(circle at 35% 30%, #fff, var(--accent) 60%, var(--lueur)); box-shadow: 0 0 16px rgba(156, 196, 255, .5);
}
.etapes-guide h3 { margin: 4px 0 6px; color: var(--encre); }
.affirmations { list-style: none; padding: 0 !important; display: grid; gap: 8px; }
.affirmations li {
  padding: 12px 16px; border-radius: 16px; background: var(--pastille); border: 1px solid var(--pastille-bord);
  color: var(--encre) !important; font: 500 20px/1.3 var(--titre); letter-spacing: 0;
}
.scene {
  margin: 8px 0 0; padding: 20px 22px; border-radius: 22px; border: 1px solid var(--verre-bord);
  background: rgba(4, 9, 25, .5); font: 500 23px/1.4 var(--titre); color: var(--encre);
}
.note-guide { margin-top: 16px; font-size: 14px; }
.faq-guide { margin-top: 8px; }
.faq-guide details p { padding-bottom: 18px; }

.cta-guide {
  width: min(calc(100% - 2 * var(--gouttiere)), 740px); margin: 20px auto 0; padding: 36px 28px;
  border-radius: 32px; display: grid; justify-items: center; text-align: center; gap: 12px;
  background: radial-gradient(80% 60% at 50% 0%, rgba(46, 134, 255, .35), transparent 70%), var(--verre); border: 1px solid var(--verre-bord);
  grid-template-columns: minmax(0, 1fr);
}
.cta-guide h2 { font-size: clamp(26px, 5vw, 36px); }
.cta-guide p { color: var(--doux); max-width: 46ch; }
/* L'orbe du logo, en grand : elle respire */
.orbe-statique { width: 96px; height: 96px; animation: respire 6s ease-in-out infinite; }
.introuvable { text-align: center; padding-top: 80px; min-height: 60vh; }
.introuvable .orbe-statique { margin: 0 auto 24px; }
.introuvable .liens { margin-top: 24px; }
@keyframes respire { 50% { transform: scale(1.08); filter: brightness(1.15); } }

.guides-lies, .guides-accueil { width: min(100%, var(--mesure)); margin-inline: auto; padding: 56px var(--gouttiere) 40px; }
.guides-lies h2 { font-size: clamp(24px, 4.6vw, 32px); margin-bottom: 18px; }
.cartes-guides { display: grid; gap: 12px; grid-template-columns: minmax(0, 1fr); margin-top: 24px; }
.carte-guide {
  display: grid; gap: 6px; padding: 20px 22px; border-radius: 24px; text-decoration: none; color: var(--encre);
  background: linear-gradient(160deg, rgba(255, 255, 255, .08), rgba(255, 255, 255, .02)); border: 1px solid var(--verre-bord);
  transition: transform .25s, border-color .25s;
}
.carte-guide:hover { transform: translateY(-3px); border-color: rgba(156, 196, 255, .45); }
.carte-guide b { font: 600 23px/1.2 var(--titre); letter-spacing: 0; }
.carte-guide b::after { content: ' →'; color: var(--accent); }
.carte-guide span { color: var(--doux); font-size: 15px; }
@media (min-width: 760px) { .cartes-guides { grid-template-columns: repeat(3, 1fr); } .guides-lies .cartes-guides { grid-template-columns: 1fr 1fr; } }

.pied { flex-direction: column; align-items: center; text-align: center; gap: 14px; }
.pied-guides { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 20px; }
.pied-guides a { color: var(--doux); text-decoration: none; }
.pied-guides a:hover, .pied-guides a[aria-current] { color: var(--encre); text-decoration: underline; }
.pied-apropos { max-width: 52ch; color: var(--pale); }
.pied-bas { display: flex; gap: 22px; }

/* Téléphone : titres et cartes centrés comme l'app ; le texte long reste aligné à gauche pour la lecture */
@media (max-width: 959px) {
  .guide h1, .chapo-guide, .maj, .fil-ariane { text-align: center; justify-content: center; }
  .guides-lies, .guides-accueil { text-align: center; }
}
.nb { white-space: nowrap; }

/* ── Admin (/admin) : mêmes jetons, cartes de verre comme les guides ── */
.admin { width: min(100%, var(--mesure)); margin-inline: auto; padding: 16px var(--gouttiere) 64px; display: grid; gap: 16px; }
.admin h1 { font-size: 48px; line-height: 1.05; }
.admin h2 { font-size: 24px; margin-bottom: 16px; }
.admin h2 small { font: 500 13px var(--texte); color: var(--pale); margin-left: 8px; letter-spacing: 0; }
.admin-tete { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 8px; }
.admin-qui { margin-top: 8px; font-size: 14px; color: var(--pale); }
.admin-etat { color: var(--doux); }
.admin-carte { position: relative; padding: 24px; border-radius: 24px; background: var(--verre); border: 1px solid var(--verre-bord); min-width: 0; }
/* Les sections de l'admin ne prennent ni la gouttière ni le centrage mobile des sections du site. */
.admin > section, .admin .admin-deux > section { padding-inline: 0; text-align: left; }
.admin > section.admin-carte, .admin .admin-deux > section { padding-inline: 24px; }
.admin-tuiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.tuile { padding: 18px 20px; border-radius: 20px; background: var(--verre); border: 1px solid var(--verre-bord); display: grid; gap: 4px; }
.tuile span { font: 700 12px var(--texte); letter-spacing: .12em; text-transform: uppercase; color: var(--doux); }
.tuile b { font: 500 44px/1.1 var(--titre); color: var(--encre); font-variant-numeric: tabular-nums; }
.tuile small { font-size: 13px; color: var(--pale); }
.admin-deux { display: grid; gap: 16px; }
@media (min-width: 760px) {
  .admin-tuiles { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .admin-deux { grid-template-columns: 1fr 1fr; }
}

/* Barres par jour : une série, une couleur (l'accent), bouts du haut arrondis, 2 px d'écart */
.graphe { height: 160px; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 2px; align-items: end;
  border-bottom: 1px solid rgba(255, 255, 255, .14); position: relative; }
.graphe::before { content: attr(data-max); position: absolute; top: -2px; right: 0; font-size: 12px; color: var(--pale); }
.barre-jour { appearance: none; border: 0; padding: 0; cursor: default; height: 100%; display: flex; align-items: end; background: none; }
.barre-jour::after { content: ''; width: 100%; height: max(2px, calc(var(--n) / var(--max) * 100%)); border-radius: 4px 4px 0 0;
  background: var(--accent); opacity: .85; transition: opacity .2s; }
.barre-jour:hover::after, .barre-jour:focus-visible::after { opacity: 1; background: #fff; }
.graphe-axe { position: relative; height: 22px; margin-top: 6px; font-size: 12px; color: var(--pale); }
.graphe-axe span { position: absolute; left: calc((var(--i) + .5) / var(--nb) * 100%); transform: translateX(-50%); white-space: nowrap; }
.infobulle { position: absolute; top: 56px; left: calc(24px + var(--x, 0px)); transform: translateX(-50%); pointer-events: none;
  padding: 6px 10px; border-radius: 10px; background: var(--nuit-0); border: 1px solid var(--verre-bord); font-size: 13px; white-space: nowrap; }
/* Graphe placé sous d'autres éléments dans sa carte (admin : limite des créations) : l'infobulle se cale sur lui. */
.zone-graphe { position: relative; margin-top: 28px; }
.zone-graphe .infobulle { top: -8px; left: var(--x, 0px); }

/* Répartitions : nom, nombre, et une fine barre proportionnelle */
.repartition { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.repartition li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 12px; align-items: baseline; }
.repartition-nom { color: var(--doux); font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.repartition b { font-variant-numeric: tabular-nums; }
.repartition i { grid-column: 1 / -1; height: 4px; border-radius: 2px; background: var(--accent); width: calc(var(--part) * 100%); min-width: 4px; }
.repartition-vide { color: var(--pale); }

/* Tableau des inscrits */
.admin-liste-tete { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.admin-liste-tete h2 { margin: 0; }
.cherche { height: 40px; min-width: 240px; padding: 0 16px; border-radius: 20px; border: 1px solid var(--pastille-bord);
  background: rgba(4, 9, 25, .45); color: var(--encre); font: 500 15px var(--texte); outline: none; }
.cherche:focus { border-color: rgba(156, 196, 255, .6); }
.tableau-defile { overflow-x: auto; margin-inline: -8px; }
.tableau { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.tableau th { text-align: left; font: 700 12px var(--texte); letter-spacing: .1em; text-transform: uppercase; color: var(--pale); padding: 8px; }
.tableau td { padding: 10px 8px; border-top: 1px solid rgba(255, 255, 255, .07); color: var(--doux); white-space: nowrap; }
.tableau td.email { color: var(--encre); }
.tableau td.date { font-variant-numeric: tabular-nums; }
.admin-vide { color: var(--doux); padding-top: 8px; }

/* ── Partager sur TikTok (/tiktok) : mêmes cartes de verre que l'admin ── */
.page-partage [hidden] { display: none !important; }
.partage { width: min(100%, 960px); margin-inline: auto; padding: 16px var(--gouttiere) 64px; display: grid; gap: 16px; }
.partage #compose { display: grid; gap: 16px; }
.partage #compose[hidden] { display: none; }
.partage h2 { font-size: 28px; margin-bottom: 16px; }
.partage .cta-guide { width: 100%; margin-top: 24px; }
.partage .cta-guide h1 { font-size: clamp(36px, 7vw, 56px); }
.partage .lecture-cta { text-decoration: none; }
.compte { display: flex; align-items: center; gap: 16px; }
.compte .etiquette { margin-bottom: 4px; }
.compte-avatar { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; border: 1px solid var(--verre-bord); flex: none; }
.compte-nom { margin: 0; font-size: 18px; }
.compte-nom span { color: var(--doux); font-size: 15px; margin-left: 6px; }

.videos { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 12px; }
.video { appearance: none; cursor: pointer; padding: 0 0 12px; border-radius: 18px; overflow: hidden; text-align: left;
  background: rgba(4, 9, 25, .45); border: 1px solid var(--verre-bord); color: var(--encre); font: inherit; display: grid; gap: 4px;
  transition: border-color .2s, transform .2s; }
.video:hover:not(:disabled) { transform: translateY(-2px); }
.video[aria-checked="true"] { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent); }
.video:disabled { opacity: .45; cursor: default; }
.video video { width: 100%; aspect-ratio: 9 / 16; object-fit: cover; background: var(--nuit-0); pointer-events: none; }
.video-titre { padding: 4px 12px 0; font-weight: 600; font-size: 14.5px; line-height: 1.3; }
.video small { padding: 0 12px; color: var(--pale); font-size: 12.5px; }

.publication-grille { display: grid; gap: 24px; }
@media (min-width: 760px) { .publication-grille { grid-template-columns: 260px minmax(0, 1fr); align-items: start; } }
.apercu video { width: 100%; aspect-ratio: 9 / 16; border-radius: 18px; background: var(--nuit-0); border: 1px solid var(--verre-bord); }
.apercu .note { padding: 0; }
.reglages { display: grid; gap: 20px; }
.reglage { display: grid; gap: 8px; margin: 0; padding: 0; border: 0; min-width: 0; }
.reglage > span, .reglage legend { font: 700 12px var(--texte); letter-spacing: .12em; text-transform: uppercase; color: var(--doux); padding: 0; margin-bottom: 8px; }
.reglage textarea, .reglage select { width: 100%; padding: 12px 16px; border-radius: 16px; border: 1px solid var(--pastille-bord);
  background: rgba(4, 9, 25, .45); color: var(--encre); font: 500 16px var(--texte); outline: none; resize: vertical; }
.reglage select { height: 48px; padding-block: 0; }
.reglage textarea:focus, .reglage select:focus { border-color: rgba(156, 196, 255, .6); }
.case { display: flex; align-items: flex-start; gap: 10px; font-size: 15.5px; cursor: pointer; }
.case input { width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--accent); flex: none; }
.case:has(input:disabled) { color: var(--pale); cursor: default; }
.case span { display: grid; gap: 2px; }
.case small { color: var(--pale); font-size: 13px; }
.commercial-choix { display: grid; gap: 10px; margin: 6px 0 0 28px; }
.reglage .note { padding: 0; margin: 0; }
.consentement { margin: 0; font-size: 14px; color: var(--doux); }
.publier { justify-self: start; margin-top: 0; border: 0; }
.publier:disabled { opacity: .5; cursor: default; transform: none; box-shadow: none; }
.publication, .reglages { text-align: left; }
.apercu { max-width: 260px; width: 100%; margin-inline: auto; }
