/* Nunito (SIL Open Font License 1.1), hébergée ici : aucune requête vers un service tiers. */
@font-face {
  font-family: "Nunito";
  font-style: normal;
  font-weight: 500 900;
  font-display: swap;
  src: url("/fonts/nunito-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Nunito";
  font-style: normal;
  font-weight: 500 900;
  font-display: swap;
  src: url("/fonts/nunito-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Site vitrine de Njangi — mêmes couleurs que l'app (design/tokens.json).
   Le principe : l'app elle-même est le visuel. Elle tourne pour de vrai dans le téléphone et dans la fenêtre de
   bureau ; le récit au défilement la pilote. */
:root {
  --nuit: #0D1330; --indigo-900: #141C44; --indigo-800: #1C285C; --indigo-700: #253577; --indigo: #31469A; --indigo-200: #CBD4F0; --indigo-50: #F2F4FB;
  --cauri: #FAF5EA; --creme: #FFFDF8; --cauri-100: #F2EAD9; --cauri-200: #E5D8BF; --cauri-500: #8C7C62; --cauri-600: #6C5F4A;
  --or: #EFB553; --or-200: #F5CF88; --or-400: #E39A2A; --or-700: #7C4C0E; --feuille: #2C7A53; --ink: #15182B;
  --rond: "Nunito", ui-rounded, "SF Pro Rounded", system-ui, sans-serif;
  --ease: cubic-bezier(.2, .8, .2, 1);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--cauri); color: var(--ink); font: 500 17px/1.6 var(--rond); -webkit-font-smoothing: antialiased; }
a { color: var(--indigo); text-underline-offset: 3px; }
a:focus-visible, button:focus-visible { outline: 3px solid var(--or); outline-offset: 3px; border-radius: 10px; }
img, svg { display: block; max-width: 100%; }
p { margin: 0; }
h1, h2, h3 { font-family: var(--rond); margin: 0; }
.enveloppe { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Barre du haut : transparente sur l'ouverture, puis voilée */
.barre { position: fixed; inset: 0 0 auto 0; z-index: 30; transition: background .3s, box-shadow .3s, backdrop-filter .3s; }
/* Voile toujours bleu nuit, même au-dessus des sections crème (pas de gris délavé). */
.barre.voilee { background: rgba(13,19,48,.94); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: 0 1px 0 rgba(255,255,255,.06); }
.barre .enveloppe { display: flex; align-items: center; gap: 12px; height: 68px; }
.marque { display: flex; align-items: center; gap: 10px; color: var(--creme); text-decoration: none; font-weight: 900; font-size: 20px; letter-spacing: -0.02em; }
.barre nav { margin-left: auto; display: flex; gap: 26px; align-items: center; }
.barre nav a { color: var(--indigo-200); text-decoration: none; font-weight: 700; font-size: 15px; }
.barre nav a:hover { color: var(--creme); }
@media (max-width: 820px) { .barre nav a.secondaire { display: none; } }

/* Boutons */
.bouton { display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 54px; padding: 0 26px; border-radius: 999px; font-weight: 800; font-size: 17px;
  text-decoration: none; transition: transform .18s var(--ease), background-color .2s, box-shadow .2s; white-space: nowrap; border: 0; cursor: pointer; font-family: var(--rond); }
.bouton:active { transform: scale(.97); }
.bouton.or { background: var(--or); color: var(--nuit); }
.bouton.or:hover { background: var(--or-200); }
.bouton.contour { color: var(--creme); box-shadow: inset 0 0 0 1.5px rgba(255,253,248,.4); background: transparent; }
.bouton.contour:hover { box-shadow: inset 0 0 0 1.5px var(--creme); }
.bouton.indigo { background: var(--indigo-800); color: var(--creme); }
.bouton.indigo:hover { background: var(--indigo-700); }
.bouton.petit { height: 40px; padding: 0 18px; font-size: 15px; }

/* ——— Ouverture ——— */
.ouverture { position: relative; min-height: 100svh; background: var(--nuit); color: var(--creme); overflow: hidden; display: flex; align-items: center; }
.ouverture::before { content: ""; position: absolute; inset: 0; background: radial-gradient(70% 70% at 72% 48%, #31469A 0%, rgba(28,40,92,.6) 38%, transparent 70%); }
.ouverture .enveloppe { position: relative; width: 100%; display: grid; grid-template-columns: 1.1fr .9fr; gap: 24px; align-items: center; padding-top: 88px; padding-bottom: 48px; }
.titre-geant { font-weight: 900; font-size: clamp(52px, 8.4vw, 124px); line-height: .92; letter-spacing: -0.045em; color: var(--creme); }
.titre-geant .ligne { display: block; overflow: hidden; padding-bottom: .06em; }
.titre-geant .ligne span { display: inline-block; transform: translateY(105%); animation: monte .9s var(--ease) forwards; }
.titre-geant .ligne:nth-child(2) span { animation-delay: .12s; color: var(--or); }
@keyframes monte { to { transform: none; } }
.chapo { font-size: clamp(18px, 1.6vw, 22px); line-height: 1.5; color: var(--indigo-200); margin-top: 28px; max-width: 30ch; opacity: 0; animation: apparait .8s .45s var(--ease) forwards; }
.ouverture .actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; opacity: 0; animation: apparait .8s .6s var(--ease) forwards; }
.ouverture .note { margin-top: 18px; font-size: 14px; color: #8f9bc7; opacity: 0; animation: apparait .8s .75s var(--ease) forwards; }
.ouverture .note-lien { color: var(--or-200); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; white-space: nowrap; }
.ouverture .note-lien::after { content: " →"; }
.ouverture .note-lien:hover, .ouverture .note-lien:focus-visible { color: var(--or); }
@keyframes apparait { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

/* La roue derrière le téléphone : le logo, en très grand, qui tourne lentement */
.roue-fond { position: absolute; width: min(760px, 120%); aspect-ratio: 1; left: 50%; top: 50%; transform: translate(-50%, -50%); opacity: .9; pointer-events: none; }
.roue-fond svg { width: 100%; height: 100%; animation: tourne 120s linear infinite; }
@keyframes tourne { to { transform: rotate(360deg); } }
.scene { position: relative; display: flex; justify-content: center; align-items: center; min-height: 640px; }
.scene .telephone { animation: pose 1.1s .25s var(--ease) both; }
@keyframes pose { from { opacity: 0; transform: translateY(60px) rotate(-4deg) scale(.96); } to { opacity: 1; transform: rotate(-4deg); } }
.etiquette-vraie { position: absolute; bottom: 4%; right: 2%; background: var(--creme); color: var(--nuit); font-size: 14px; font-weight: 800; padding: 10px 14px;
  border-radius: 14px; box-shadow: 0 18px 40px rgba(0,0,0,.35); display: flex; gap: 8px; align-items: center; transform: rotate(3deg); opacity: 0; animation: apparait .6s 1.4s var(--ease) forwards; }
.etiquette-vraie i { width: 8px; height: 8px; border-radius: 4px; background: var(--feuille); box-shadow: 0 0 0 4px rgba(44,122,83,.2); }
@media (max-width: 900px) {
  .ouverture .enveloppe { grid-template-columns: 1fr; padding-top: 96px; text-align: left; }
  .scene { min-height: 0; padding: 12px 0 24px; }
  .etiquette-vraie { right: 6%; }
}

/* ——— Le téléphone : l'app réelle, à l'échelle ——— */
.telephone { --w: 320px; position: relative; width: var(--w); flex-shrink: 0; border-radius: calc(var(--w) * .155); padding: calc(var(--w) * .034);
  background: linear-gradient(145deg, #2b3567, #0b1029 60%, #1a2250); box-shadow: 0 0 0 1.5px rgba(255,255,255,.08) inset, 0 50px 100px rgba(0,0,0,.45), 0 12px 30px rgba(0,0,0,.35); }
.telephone .ecran { position: relative; width: 100%; aspect-ratio: 390 / 844; border-radius: calc(var(--w) * .121); overflow: hidden; background: #0b1029;
  /* Coins nets même dans un parent incliné (Safari) : le masque force la découpe arrondie. */
  isolation: isolate; -webkit-mask-image: -webkit-radial-gradient(white, black); }
.telephone .ecran iframe { position: absolute; top: 0; left: 0; width: 390px; height: 844px; border: 0; transform-origin: 0 0; transform: scale(var(--s, .8)); background: var(--cauri); }
/* L'îlot flotte comme sur un iPhone : 11 pt sous le haut de l'écran, 126 × 37 pt (proportions d'un écran de 390 pt). */
.telephone .ilot { position: absolute; top: calc(var(--w) * .06); left: 50%; width: 30%; height: calc(var(--w) * .088); transform: translateX(-50%); background: #000; border-radius: 99px; z-index: 2;
  box-shadow: 0 0 0 1px rgba(255,255,255,.04); }
.telephone .voile { position: absolute; inset: 0; z-index: 3; }
.ecran .attente { position: absolute; inset: 0; display: grid; place-items: center; background: linear-gradient(180deg, #31469A, #1C285C 50%, #0D1330); transition: opacity .4s; }
.ecran.pret .attente { opacity: 0; pointer-events: none; }

/* ——— Récit : une séance, de bout en bout ——— */
.recit { background: var(--cauri); position: relative; }
.recit-intro { padding: 120px 0 40px; }
.recit-intro h2, .bloc h2 { font-weight: 900; font-size: clamp(34px, 4.6vw, 64px); line-height: 1; letter-spacing: -0.035em; color: var(--nuit); max-width: 15ch; }
.recit-intro p, .bloc .intro { margin-top: 20px; font-size: 20px; line-height: 1.5; color: var(--cauri-600); max-width: 46ch; }
.recit-grille { display: grid; grid-template-columns: 1fr 420px; gap: 64px; align-items: start; }
.recit-scene { position: sticky; top: 0; height: 100svh; display: flex; align-items: center; justify-content: center; }
.recit-scene .telephone { --w: 330px; transition: transform .6s var(--ease); }
.chapitres { list-style: none; margin: 0; padding: 0 0 30vh; counter-reset: c; }
.chapitre { min-height: 82svh; display: flex; flex-direction: column; justify-content: center; padding: 40px 0; transition: opacity .5s var(--ease); }
/* Les chapitres hors champ restent lisibles (contraste suffisant) : seul le titre du chapitre en cours prend le bleu nuit. */
.chapitre:not(.actif) h3 { color: var(--cauri-600); }
.chapitre h3 { transition: color .5s var(--ease); }
.chapitre .role { display: inline-flex; align-self: flex-start; align-items: center; gap: 8px; font-size: 14px; font-weight: 800; padding: 6px 12px; border-radius: 999px; margin-bottom: 18px; }
.role.membre { background: var(--indigo-50); color: var(--indigo-800); }
.role.tresorier { background: #E2F1E8; color: #174530; }
.role.presidente { background: #FAE5BC; color: #58360C; }
.chapitre h3 { font-weight: 900; font-size: clamp(28px, 3.2vw, 44px); line-height: 1.05; letter-spacing: -0.03em; color: var(--nuit); max-width: 16ch; }
.chapitre p { margin-top: 16px; font-size: 19px; line-height: 1.55; color: var(--cauri-600); max-width: 40ch; }
/* Le fil du récit : le bandeau des tours, debout. Or = chapitre passé, bleu = chapitre lu. */
.fil { position: sticky; top: 50%; transform: translateY(-50%); display: flex; flex-direction: column; gap: 6px; height: 0; overflow: visible; }
.fil-in { position: absolute; left: -36px; top: -90px; display: flex; flex-direction: column; gap: 6px; }
.fil i { width: 4px; height: 26px; border-radius: 2px; background: var(--cauri-200); transition: background .4s, height .4s; }
.fil i.passe { background: var(--or); }
.fil i.lu { background: var(--indigo); height: 34px; }
@media (max-width: 900px) {
  .recit-grille { grid-template-columns: 1fr; gap: 0; }
  .recit-scene { order: -1; height: auto; top: 64px; padding: 12px 0 8px; background: linear-gradient(var(--cauri) 88%, transparent); z-index: 5; }
  .recit-scene .telephone { --w: min(46vw, 210px); }
  .chapitre { min-height: 60svh; }
  .chapitre h3 { font-size: 28px; }
  .chapitre p { font-size: 17px; }
  .fil { display: none; }
}

/* ——— Bureau : la même app, en grand ——— */
.bureau { background: var(--nuit); color: var(--indigo-200); padding: 120px 0 140px; overflow: hidden; position: relative; }
.bureau::before { content: ""; position: absolute; inset: 0; background: radial-gradient(60% 50% at 50% 70%, rgba(49,70,154,.55), transparent 70%); }
.bureau .enveloppe { position: relative; }
.bureau h2 { color: var(--creme); }
.bureau .intro { color: var(--indigo-200) !important; }
.fenetre { margin-top: 56px; border-radius: 18px; overflow: hidden; background: #141C44; isolation: isolate; -webkit-mask-image: -webkit-radial-gradient(white, black); box-shadow: 0 60px 120px rgba(0,0,0,.5), 0 0 0 1px rgba(255,255,255,.08);
  transform-origin: 50% 0; transform: perspective(1800px) rotateX(var(--rx, 14deg)) scale(var(--sc, .92)); transition: transform .1s linear; will-change: transform; }
.fenetre .chrome { height: 38px; background: #f3ede1; display: flex; align-items: center; gap: 8px; padding: 0 14px; border-bottom: 1px solid #e3d9c6; }
.fenetre .chrome i { width: 12px; height: 12px; border-radius: 6px; background: #e0d4bf; }
.fenetre .chrome .adresse { margin: 0 auto; background: #fff; border-radius: 8px; padding: 4px 40px; font-size: 13px; color: var(--cauri-600); font-weight: 700; }
.fenetre .ecran { position: relative; width: 100%; aspect-ratio: 1440 / 900; overflow: hidden; background: #141C44; }
.fenetre .ecran iframe { position: absolute; top: 0; left: 0; width: 1440px; height: 900px; border: 0; transform-origin: 0 0; transform: scale(var(--s, .6)); }
.atouts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; margin-top: 56px; }
.atout h3 { color: var(--creme); font-size: 18px; font-weight: 800; display: flex; align-items: center; gap: 10px; }
.atout p { margin-top: 8px; font-size: 15px; line-height: 1.55; }
kbd { font: 800 12px/1 var(--rond); color: var(--nuit); background: var(--creme); border-radius: 6px; padding: 4px 7px; box-shadow: 0 2px 0 rgba(0,0,0,.25); }
@media (max-width: 900px) { .atouts { grid-template-columns: 1fr 1fr; } .fenetre { --rx: 0deg !important; --sc: 1 !important; } }
@media (max-width: 520px) { .atouts { grid-template-columns: 1fr; } }

/* ——— Blocs courants ——— */
.bloc { padding: 120px 0; }
.garanties { display: grid; grid-template-columns: repeat(2, 1fr); gap: 40px 64px; margin-top: 56px; }
/* Sur grand écran : le titre à gauche, les quatre engagements à droite (plus de colonne vide). */
@media (min-width: 1080px) {
  #securite .enveloppe { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); column-gap: 72px; align-items: start; }
  #securite .enveloppe > h2, #securite .enveloppe > .intro { grid-column: 1; }
  #securite .garanties { grid-column: 2; grid-row: 1 / span 2; margin-top: 8px; gap: 40px 48px; }
}
.garanties h3 { font-size: 22px; font-weight: 900; color: var(--nuit); letter-spacing: -0.01em; }
.garanties p { margin-top: 8px; font-size: 17px; color: var(--cauri-600); max-width: 44ch; }
@media (max-width: 760px) { .garanties { grid-template-columns: 1fr; } }

.appareils { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 56px; }
.appareil { background: var(--creme); border: 1px solid var(--cauri-200); border-radius: 28px; padding: 28px; display: flex; flex-direction: column; gap: 12px; }
.appareil h3 { font-size: 22px; font-weight: 900; color: var(--nuit); }
.appareil p, .appareil ol { font-size: 16px; color: var(--cauri-600); margin: 0; }
.appareil ol { padding-left: 1.2em; }
.appareil li { margin: 4px 0; }
.appareil .pied { margin-top: auto; padding-top: 10px; }
.appareil.vedette { background: var(--indigo-800); border-color: var(--indigo-800); }
.appareil.vedette h3 { color: var(--creme); }
.appareil.vedette p, .appareil.vedette ol { color: var(--indigo-200); }
@media (max-width: 960px) { .appareils { grid-template-columns: 1fr; } }

.tarifs-table { margin-top: 48px; width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.tarifs-table th, .tarifs-table td { text-align: left; padding: 18px 12px; border-bottom: 1px solid var(--cauri-200); vertical-align: top; }
.tarifs-table thead th { font-size: 14px; color: var(--cauri-600); font-weight: 700; }
.tarifs-table tbody th { font-size: 19px; font-weight: 900; color: var(--nuit); }
.tarifs-table tbody th small { display: block; font-size: 14px; font-weight: 600; color: var(--cauri-600); margin-top: 2px; }
.tarifs-table td.prix { font-weight: 900; color: var(--nuit); white-space: nowrap; font-size: 18px; }
.tarifs-table tr.conseil { background: var(--creme); }
.pastille { display: inline-block; margin-top: 6px; font-size: 12px; font-weight: 800; color: var(--or-700); background: #FAE5BC; padding: 2px 8px; border-radius: 999px; }
.table-defile { overflow-x: auto; }
/* Sur téléphone, ce qu'ajoute chaque formule passe sous sa ligne, au lieu de disparaître. */
@media (max-width: 640px) {
  .tarifs-table, .tarifs-table tbody { display: block; }
  .tarifs-table thead { display: none; }
  .tarifs-table tbody tr { display: grid; grid-template-columns: 1fr auto auto; align-items: baseline; column-gap: 14px; border-bottom: 1px solid var(--cauri-200); padding: 6px 0; }
  .tarifs-table tbody th, .tarifs-table tbody td { border-bottom: 0; padding: 12px 4px 6px; }
  .tarifs-table tbody td:nth-child(2) { color: var(--cauri-600); font-size: 15px; white-space: nowrap; }
  .tarifs-table tbody td:nth-child(2)::after { content: " membres"; }
  html[lang="en"] .tarifs-table tbody td:nth-child(2)::after { content: " members"; }
  .tarifs-table tbody td.masque-mobile { display: block; grid-column: 1 / -1; padding: 0 4px 12px; font-size: 15px; line-height: 1.5; color: var(--cauri-600); }
  .tarifs-table tr.conseil { border-radius: 14px; }
}
.note-tarifs { margin-top: 20px; font-size: 15px; color: var(--cauri-600); max-width: 70ch; }

/* ——— Fin : explorer ——— */
.explorer { background: var(--nuit); color: var(--creme); padding: 140px 0 120px; position: relative; overflow: hidden; text-align: center; }
/* La lueur s'éteint avant le bas de la section : aucune lisière avec la signature qui suit. */
.explorer::before { content: ""; position: absolute; inset: 0; background: radial-gradient(50% 55% at 50% 80%, rgba(239,181,83,.2), transparent 70%);
  -webkit-mask-image: linear-gradient(to bottom, #000 55%, transparent 96%); mask-image: linear-gradient(to bottom, #000 55%, transparent 96%); }
.explorer .enveloppe { position: relative; }
.explorer h2 { font-weight: 900; font-size: clamp(42px, 7vw, 96px); line-height: .95; letter-spacing: -0.045em; color: var(--creme); }
.explorer p { margin: 22px auto 0; font-size: 20px; color: var(--indigo-200); max-width: 40ch; }
.roles { display: grid; grid-template-columns: repeat(3, minmax(0, 260px)); gap: 14px; justify-content: center; margin-top: 44px; }
.carte-role { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; text-align: left; padding: 22px; border-radius: 22px; text-decoration: none;
  transition: transform .25s var(--ease), box-shadow .25s; }
.carte-role:hover { transform: translateY(-4px); box-shadow: 0 20px 40px rgba(0,0,0,.3); }
.carte-role strong { font-size: 20px; font-weight: 900; }
.carte-role span { font-size: 15px; opacity: .85; }
.carte-role.membre { background: var(--indigo-800); color: var(--creme); box-shadow: inset 0 0 0 1px rgba(255,255,255,.1); }
.carte-role.tresorier { background: var(--feuille); color: var(--creme); }
.carte-role.presidente { background: var(--or); color: var(--nuit); }
.explorer .ou { margin-top: 30px; font-size: 16px; color: var(--indigo-200); }
.explorer .ou a { color: var(--creme); font-weight: 800; }
@media (max-width: 760px) { .roles { grid-template-columns: 1fr; } }

/* Bandeau des tours : séparateur de la marque */
.bandeau { display: flex; gap: 4px; padding: 0 24px; height: 14px; align-items: center; background: var(--nuit); }
.bandeau i { flex: 1; height: 4px; border-radius: 1.5px; background: #fff; }
.bandeau i.or { background: var(--or); }
.bandeau i.bleu { background: #31469A; height: 6px; box-shadow: 0 0 0 1px #CBD4F0; }

/* Pied */
.pied-page { background: var(--nuit); color: var(--indigo-200); padding: 0 0 48px; }
.pied-page .enveloppe { display: flex; flex-wrap: wrap; gap: 16px 28px; align-items: center; padding-top: 40px; font-size: 15px; }
.pied-page a { color: var(--creme); text-decoration: none; font-weight: 700; }
.pied-page a:hover { text-decoration: underline; }
/* La marque sur sa ligne, les liens dessous : plus de lien orphelin quand la liste passe à la ligne. */
.pied-page .marque { flex-basis: 100%; margin-bottom: 4px; }
.pied-page .en { flex-basis: 100%; margin-top: 12px; font-size: 14px; color: #8f9bc7; max-width: 80ch; }

/* Pages de texte (confidentialité, conditions) */
.page-texte .entete { background: var(--nuit); color: var(--creme); padding: 28px 0 40px; }
.page-texte .entete .marque { margin-bottom: 36px; }
.page-texte .entete h1 { color: var(--creme); font-size: clamp(32px, 5vw, 48px); font-weight: 900; letter-spacing: -0.028em; line-height: 1.05; }
.page-texte .entete p { color: var(--indigo-200); margin-top: 10px; }
.page-texte main { padding: 48px 20px 80px; max-width: 760px; margin: 0 auto; }
.page-texte main h2 { font-size: 24px; margin: 40px 0 10px; color: var(--nuit); font-weight: 900; }
.page-texte main p { margin: 0 0 12px; }
.page-texte main ul { margin: 0 0 12px; padding-left: 22px; }
.page-texte main li { margin: 0 0 6px; }
.page-texte main a { overflow-wrap: anywhere; }
.page-texte .entete p a { color: var(--creme); }
.page-texte table { border-collapse: collapse; width: 100%; font-size: 16px; }
.page-texte td, .page-texte th { border-bottom: 1px solid var(--cauri-200); padding: 10px 6px; text-align: left; vertical-align: top; }

/* Apparition au défilement (une seule fois, sobre) */
.revele { opacity: 0; transform: translateY(24px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.revele.vu { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0s !important; transition-duration: .01ms !important; }
  .titre-geant .ligne span { transform: none; }
  .revele { opacity: 1; transform: none; }
}

/* Questions fréquentes : des volets natifs, ouverts au clavier comme au toucher. */
.faq { margin-top: 32px; display: grid; gap: 10px; max-width: 760px; }
.faq details { background: #fff; border-radius: 18px; padding: 18px 22px; box-shadow: 0 1px 2px rgba(13,19,48,.05), 0 6px 18px -6px rgba(13,19,48,.12); }
.faq summary { cursor: pointer; font-family: var(--rond); font-weight: 800; font-size: 19px; color: var(--nuit); list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-weight: 700; color: var(--cauri-600); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 10px 0 0; font-size: 17px; line-height: 1.55; color: var(--cauri-600); }


/* ——— Premium : matière, mouvement, signature ——— */
/* Grain photographique sur les fonds sombres : la matière d'un papier, pas un aplat numérique. */
.ouverture::after, .bureau::after, .explorer::after, .signature::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background-image: url("/grain.png");
}
/* Une lueur d'or qui respire derrière le titre. */
.ouverture .enveloppe::before { content: ""; position: absolute; width: 620px; height: 620px; left: -220px; top: -160px; border-radius: 50%; pointer-events: none;
  background: radial-gradient(closest-side, rgba(239,181,83,.20), transparent); animation: respire 9s ease-in-out infinite; }
@keyframes respire { 50% { transform: scale(1.12) translate(30px, 20px); opacity: .7; } }
/* Le téléphone suit la main (souris seulement), en perspective. */
.scene { perspective: 1400px; }
.scene .telephone { transition: transform .5s cubic-bezier(.2,.8,.2,1); transform-style: preserve-3d; }
.scene.incline .telephone { animation: none; opacity: 1; transform: rotate(-4deg) rotateX(var(--ix, 0deg)) rotateY(var(--iy, 0deg)); }

/* Bandeau : les mots de Njangi, en continu, sur l'or. */
.defile { position: relative; z-index: 2; display: flex; overflow: hidden; background: var(--or); color: var(--nuit); padding: 22px 0; margin-top: -28px;
  transform: rotate(-1.6deg) scale(1.02); box-shadow: 0 20px 50px -20px rgba(13,19,48,.45); }
.defile-piste { display: flex; flex-shrink: 0; align-items: center; gap: 34px; padding-right: 34px; animation: defile 60s linear infinite; }
.defile-piste span { font-family: var(--rond); font-weight: 900; font-size: clamp(22px, 2.6vw, 34px); letter-spacing: -0.02em; white-space: nowrap; }
.defile-piste i { width: 14px; height: 14px; border-radius: 4px; background: var(--nuit); transform: rotate(12deg); flex-shrink: 0; }
.defile-piste i:nth-of-type(3n) { background: var(--creme); }
@keyframes defile { to { transform: translateX(-100%); } }
.defile:hover .defile-piste { animation-play-state: paused; }

/* Chiffres : grands, vrais, qui montent à l'apparition. */
.chiffres { background: var(--cauri); padding: 120px 0 40px; }
.chiffres-grille { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; }
.chiffre { border-top: 2px solid var(--nuit); padding-top: 22px; display: flex; flex-direction: column; gap: 12px; }
.chiffre b { font-family: var(--rond); font-weight: 900; font-size: clamp(56px, 6.4vw, 96px); line-height: .9; letter-spacing: -0.05em; color: var(--nuit); font-variant-numeric: tabular-nums; }
.chiffre:nth-child(1) b { color: var(--or-700); }
.chiffre span { font-size: 17px; line-height: 1.5; color: var(--cauri-600); max-width: 26ch; }
@media (max-width: 900px) { .chiffres-grille { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .chiffres-grille { grid-template-columns: 1fr; } .chiffres { padding-top: 90px; } }

/* Signature : le nom en très grand, l'anneau qui tourne derrière. */
.signature { position: relative; overflow: hidden; background: var(--nuit); color: var(--creme); padding: 140px 24px 120px; display: grid; place-items: center; text-align: center; gap: 36px; }
.signature-roue { position: absolute; width: min(820px, 130vw); height: min(820px, 130vw); left: calc(50% - min(410px, 65vw)); top: calc(50% - min(410px, 65vw)); opacity: 1; animation: tourne 160s linear infinite reverse; pointer-events: none; }
.signature-mot { position: relative; margin: 0; font-family: var(--rond); font-weight: 900; font-size: clamp(88px, 19vw, 300px); line-height: .86; letter-spacing: -0.05em; padding: 0 .06em .04em;
  background: linear-gradient(180deg, var(--creme) 30%, var(--or) 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.signature .bouton { position: relative; }

/* Bouton principal « aimanté » (souris seulement). */
.bouton.or { transition: transform .25s cubic-bezier(.2,.8,.2,1), background-color .2s, box-shadow .2s; }
.bouton.or:hover { box-shadow: 0 14px 32px -10px rgba(239,181,83,.7); }

@media (prefers-reduced-motion: reduce) {
  .defile-piste, .signature-roue, .ouverture .enveloppe::before { animation: none !important; }
}


/* ——— Le cercle vivant : la pièce maîtresse, pilotée par le défilement ——— */
.vivant { position: relative; background: var(--nuit); color: var(--creme); }
.vivant::after { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background-image: url("/grain.png"); }
.vivant-scene { position: relative; min-height: 100svh; padding: 96px 0 72px; box-sizing: border-box; overflow: hidden; display: flex; align-items: center; }
.vivant-scene::before { content: ""; position: absolute; width: 900px; height: 900px; right: -180px; top: 50%; transform: translateY(-50%); border-radius: 50%;
  background: radial-gradient(closest-side, rgba(49,70,154,.55), transparent); pointer-events: none; }
.vivant-grille { position: relative; width: 100%; display: grid; grid-template-columns: .9fr 1.1fr; gap: 32px; align-items: center; }
.vivant-sur { font-size: 14px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: var(--or); margin: 0 0 22px; }
.vivant-etapes { list-style: none; margin: 0; padding: 0; display: grid; }
.vivant-etapes li { grid-area: 1 / 1; opacity: 0; transform: translateY(26px); transition: opacity .6s var(--ease), transform .7s var(--ease); pointer-events: none; }
.vivant-etapes li.actif { opacity: 1; transform: none; }
.vivant-etapes li.passe { transform: translateY(-26px); }
.vivant-etapes h2 { font-weight: 900; font-size: clamp(38px, 4.6vw, 68px); line-height: .98; letter-spacing: -0.04em; color: var(--creme); max-width: 13ch; margin: 0; }
.vivant-etapes p { margin: 22px 0 0; font-size: 19px; line-height: 1.55; color: var(--indigo-200); max-width: 36ch; }
.vivant-compteur { margin: 40px 0 0; display: flex; flex-direction: column; gap: 6px; font-variant-numeric: tabular-nums; }
.vivant-compteur b { font-family: var(--rond); font-weight: 900; font-size: 22px; color: var(--or); }
.vivant-compteur span { font-size: 16px; color: var(--indigo-200); min-height: 1.4em; }
.vivant-toile { position: relative; aspect-ratio: 1; width: 100%; max-width: 640px; justify-self: center; }
.vivant-toile canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
/* Le fil des séances et la lecture : lecture automatique, et chaque séance se touche (mêmes couleurs que l'app). */
.vivant-toile { touch-action: pan-y; cursor: grab; }
.lecture { margin-top: 26px; display: flex; align-items: center; gap: 14px; max-width: 520px; }
.lecture-bouton { all: unset; flex: none; width: 40px; height: 40px; border-radius: 20px; display: grid; place-items: center; cursor: pointer;
  color: var(--creme); box-shadow: inset 0 0 0 1.5px rgba(203,212,240,.35); transition: box-shadow .25s var(--ease), background .25s var(--ease); }
.lecture-bouton:hover { box-shadow: inset 0 0 0 1.5px rgba(239,181,83,.8); }
.lecture-bouton:focus-visible, .seances-fil button:focus-visible, .points button:focus-visible { outline: 3px solid var(--or); outline-offset: 3px; }
.lecture-bouton svg { width: 14px; height: 14px; fill: currentColor; }
.seances-fil { list-style: none; margin: 0; padding: 0; flex: 1; display: grid; grid-template-columns: repeat(13, 1fr); gap: 4px; }
.seances-fil button { all: unset; display: block; width: 100%; height: 40px; cursor: pointer; position: relative; }
.seances-fil button::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 6px; margin-top: -3px; border-radius: 3px;
  background: rgba(255,253,248,.14); transition: background .35s var(--ease), height .2s var(--ease); }
.seances-fil li.passe button::before { background: var(--or); }
.seances-fil li.actif button::before { background: linear-gradient(90deg, var(--or) calc(var(--t, 0) * 100%), #31469A 0); box-shadow: 0 0 0 1.5px rgba(203,212,240,.6); }
.seances-fil button:hover::before { height: 10px; margin-top: -5px; }
@media (max-width: 900px) {
  .vivant-scene { padding: 84px 0 40px; }
  .lecture { margin-top: 14px; gap: 10px; }
  .seances-fil { gap: 3px; }
  .seances-fil button { height: 44px; }
  .vivant-grille { grid-template-columns: 1fr; gap: 8px; align-content: center; }
  .vivant-toile { order: -1; max-width: min(74vw, 40svh); }
  .vivant-etapes h2 { font-size: clamp(30px, 8.4vw, 44px); }
  .vivant-etapes p { font-size: 16px; margin-top: 12px; }
  .vivant-compteur { margin-top: 16px; }
  .vivant-sur { margin-bottom: 10px; }
}
/* Sans mouvement : une scène fixe, et les quatre idées lisibles l'une sous l'autre. */
@media (prefers-reduced-motion: reduce) {
  .vivant-scene { padding: 110px 0; }
  .vivant-etapes { gap: 36px; }
  .vivant-etapes li { grid-area: auto; opacity: 1; transform: none; }
}

/* ——— Écrans réels (images) : nets, instantanés ; l'île reste au-dessus ——— */
.telephone .ilot { z-index: 6; }
/* Un pixel de débord de chaque côté : aucun liseré du fond sous l'arrondi. */
.telephone .ecran img { position: absolute; top: -1px; left: -1px; width: calc(100% + 2px); height: calc(100% + 2px); object-fit: cover; object-position: top; display: block; }
/* Barre d'état : l'heure à gauche de l'îlot, réseau et batterie à droite, centrées sur lui. */
.telephone .ecran::before, .telephone .ecran::after { content: ""; position: absolute; top: calc(var(--w) * .07); width: 36%; height: calc(var(--w) * .05); transform: translateY(-50%); z-index: 5; pointer-events: none; }
.telephone .ecran::before { content: "9:41"; left: 0; text-align: center; color: #fff; font: 700 calc(var(--w) * .041) / calc(var(--w) * .05) -apple-system, "SF Pro Text", system-ui, sans-serif; letter-spacing: -.01em; }
.telephone .ecran::after { right: 0; background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 68 12'><g fill='white'><rect x='0' y='8' width='3' height='4' rx='1'/><rect x='4.5' y='6' width='3' height='6' rx='1'/><rect x='9' y='3.5' width='3' height='8.5' rx='1'/><rect x='13.5' y='1' width='3' height='11' rx='1'/><path d='M30 3.2a10.5 10.5 0 0 1 13.6 0l-1.3 1.4a8.6 8.6 0 0 0-11 0zM32.4 5.9a6.8 6.8 0 0 1 8.8 0l-1.3 1.4a4.9 4.9 0 0 0-6.2 0zM34.8 8.5a3 3 0 0 1 4 0L36.8 10.6z'/><rect x='48' y='1.5' width='17' height='9' rx='2.6' fill='none' stroke='white' stroke-opacity='.45'/><rect x='49.6' y='3.1' width='13.8' height='5.8' rx='1.4'/><rect x='66' y='4.4' width='1.6' height='3.2' rx='.8' fill-opacity='.45'/></g></svg>") center / auto 58% no-repeat; }
.vues .vue { opacity: 0; transform: translateY(3%) scale(.985); filter: blur(6px); transition: opacity .55s var(--ease), transform .7s var(--ease), filter .55s var(--ease); }
.vues .vue.actif { opacity: 1; transform: none; filter: none; z-index: 1; }
.vues .vue.sort { opacity: 0; transform: translateY(-3%) scale(.985); filter: blur(6px); }

/* ——— Comment ça marche : une scène fixe, six étapes ——— */
.recit { position: relative; background: var(--cauri); }
.recit-scene { position: relative; top: auto; min-height: 100svh; padding: 96px 0 64px; box-sizing: border-box; display: flex; align-items: center; overflow: hidden; }
.recit-tel { touch-action: pan-y; }
.recit-sur .lecture-bouton { width: 32px; height: 32px; color: var(--nuit); box-shadow: inset 0 0 0 1.5px var(--cauri-200); align-self: center; margin-left: auto; }
.recit-sur .lecture-bouton svg { width: 12px; height: 12px; }
.recit-grille { width: 100%; display: grid; grid-template-columns: 1fr min(400px, 40vw); gap: clamp(32px, 6vw, 96px); align-items: center; }
.recit-sur { margin: 0 0 22px; font-size: 14px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: var(--or-700); display: flex; gap: 14px; align-items: baseline; }
.recit-sur span { color: var(--cauri-500); letter-spacing: .08em; font-variant-numeric: tabular-nums; }
.recit-etapes { list-style: none; margin: 0; padding: 0; display: grid; min-height: 15em; }
.recit-etapes li { grid-area: 1 / 1; align-self: start; pointer-events: none; }
.recit-etapes li > * { opacity: 0; transform: translateY(22px); filter: blur(4px); transition: opacity .5s var(--ease), transform .6s var(--ease), filter .5s var(--ease); }
.recit-etapes li.actif > * { opacity: 1; transform: none; filter: none; }
.recit-etapes li.actif > h3 { transition-delay: .06s; }
.recit-etapes li.actif > p { transition-delay: .12s; }
.recit-etapes li.passe > * { transform: translateY(-22px); }
.recit-etapes .role { display: inline-flex; font-size: 14px; font-weight: 800; padding: 6px 12px; border-radius: 999px; }
.recit-etapes h3 { margin: 16px 0 0; font-weight: 900; font-size: clamp(32px, 3.6vw, 54px); line-height: 1.02; letter-spacing: -0.035em; color: var(--nuit); max-width: 15ch; }
.recit-etapes p { margin: 16px 0 0; font-size: 19px; line-height: 1.55; color: var(--cauri-600); max-width: 38ch; }
.recit-pas { list-style: none; margin: 28px 0 0; padding: 0; display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; max-width: 560px; }
.recit-pas button { all: unset; cursor: pointer; display: flex; flex-direction: column; gap: 8px; width: 100%; padding: 8px 0; font-size: 12px; line-height: 1.3; color: var(--cauri-500); }
.recit-pas button::before { content: ""; display: block; height: 3px; border-radius: 2px; background: var(--cauri-200); transition: background .4s var(--ease); }
.recit-pas b { font-weight: 800; font-variant-numeric: tabular-nums; }
.recit-pas span { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.recit-pas li.passe button::before { background: var(--or); }
.recit-pas li.actif button { color: var(--nuit); }
.recit-pas li.actif button::before { background: linear-gradient(90deg, var(--nuit) calc(var(--t, 0) * 100%), var(--cauri-200) 0); }
.recit-pas button:focus-visible { outline: 3px solid var(--or); outline-offset: 4px; border-radius: 6px; }
.recit-tel { display: flex; justify-content: center; }
.recit-tel .telephone { --w: min(360px, 38vw); }
@media (max-width: 900px) {
  .recit-scene { padding: 80px 0 40px; }
  .recit-pas b { padding: 6px 0; }
  .recit-grille { grid-template-columns: 1fr; gap: 14px; align-content: center; }
  .recit-tel { order: -1; }
  .recit-tel .telephone { --w: min(250px, 30svh); }
  .recit-sur { margin-bottom: 8px; font-size: 12px; }
  .recit-etapes { min-height: 10.5em; }
  .recit-etapes h3 { font-size: clamp(24px, 6.6vw, 32px); margin-top: 10px; }
  .recit-etapes p { font-size: 15.5px; margin-top: 8px; }
  .recit-pas { margin-top: 10px; }
  .recit-pas span { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .vues .vue, .recit-etapes li > * { transition: none !important; filter: none !important; }
}

/* Fenêtre de bureau : ses vues réelles en fondu, et un point par vue qui se touche. */
.points { display: flex; justify-content: center; align-items: center; gap: 4px; margin-top: 18px; position: relative; z-index: 3; }
.points ol button { all: unset; cursor: pointer; width: 44px; height: 44px; display: grid; place-items: center; }
.points ol button::before { content: ""; width: 28px; height: 4px; border-radius: 2px; background: rgba(255,253,248,.18); transition: background .3s var(--ease); }
.points li { list-style: none; }
.points ol { display: flex; gap: 2px; margin: 0; padding: 0; }
.points li.passe button::before { background: rgba(239,181,83,.55); }
.points li.actif button::before { background: linear-gradient(90deg, var(--or) calc(var(--t, 0) * 100%), rgba(255,253,248,.18) 0); }
.points .lecture-bouton { width: 32px; height: 32px; }
.points .lecture-bouton svg { width: 11px; height: 11px; }
.fenetre .ecran.vues { position: relative; aspect-ratio: 1440 / 900; }

/* Bouton flottant (téléphone) : installer, à portée de pouce, entre l'ouverture et la signature. */
.cta-flottant { position: fixed; left: 50%; bottom: calc(16px + env(safe-area-inset-bottom)); z-index: 40; transform: translate(-50%, 140%);
  box-shadow: 0 16px 40px -12px rgba(13,19,48,.55); transition: transform .45s var(--ease); white-space: nowrap; }
.cta-flottant.visible { transform: translate(-50%, 0); }
/* Le bouton de la barre reste visible partout : le bouton flottant faisait doublon et masquait le contenu. */
.cta-flottant { display: none !important; }
.signature-note { position: relative; margin: -14px 0 0; font-size: 14px; color: var(--indigo-200); }

/* Les cartes d'installation : celle de cet appareil en premier, mise en avant. */
.appareils .appareil.ici { order: -1; }
@media (max-width: 900px) {
  /* Scènes sur téléphone : sous la barre du haut, sans place perdue en bas. */
  .recit-scene, .vivant-scene { padding: 76px 0 36px; box-sizing: border-box; }
  .recit-tel .telephone { --w: min(200px, 23svh); }
  .recit-etapes { min-height: 9.5em; }
}
/* Le téléphone du récit tient toujours dans la hauteur de l'écran (sous la barre du haut). */
@media (min-width: 901px) { .recit-tel .telephone { --w: min(360px, 36vw, calc((100svh - 130px) * .44)); } .recit-scene { padding-top: 64px; box-sizing: border-box; } }

/* Première vue rapide : sur téléphone, le titre et l'ouverture s'affichent tout de suite ; sur ordinateur, l'entrée est
   plus brève. */
@media (max-width: 900px) {
  .titre-geant .ligne span { animation: none; transform: none; }
  .chapo, .ouverture .actions, .ouverture .note { animation: none; opacity: 1; }
}
@media (min-width: 901px) {
  .titre-geant .ligne span { animation-duration: .6s; }
  .chapo { animation-delay: .25s; } .ouverture .actions { animation-delay: .35s; } .ouverture .note { animation-delay: .45s; }
}

/* Sélecteur de langue : discret, à côté du bouton de la barre. */
.barre .langue { color: var(--creme); text-decoration: none; font-weight: 800; font-size: 14px; letter-spacing: .06em; padding: 8px 10px; border-radius: 10px;
  box-shadow: inset 0 0 0 1.5px rgba(255,253,248,.28); }
.barre .langue:hover { box-shadow: inset 0 0 0 1.5px var(--or); color: var(--or); }
/* Le titre anglais est plus long : un cran plus petit, pour tenir en trois lignes. */
html[lang="en"] .titre-geant { font-size: clamp(46px, 6.6vw, 98px); }

/* ——— Sur ordinateur : la fenêtre à plat et nette, un iPhone posé devant (les membres suivent sur leur téléphone) ——— */
.poste { position: relative; margin-top: 56px; padding: 0 0 6% 0; }
.poste .fenetre { margin-top: 0; transform: none !important; width: 88%; }
/* L'écran d'ordinateur remplit exactement la fenêtre (16:10, comme la capture) : sans hauteur fixée, l'image gardait
   ses 1600 px et n'en montrait que le coin, très agrandi. */
.poste .fenetre .ecran img { position: absolute; top: -1px; left: -1px; width: calc(100% + 2px); height: calc(100% + 2px); object-fit: cover; object-position: top left; display: block; }
/* Fondu enchaîné : la nouvelle vue se pose sur l'ancienne, qui reste opaque dessous jusqu'à la fin (jamais de fond
   visible entre les deux). Sans déplacement : la barre latérale, commune aux vues, ne bouge pas ; seul le contenu change. */
.poste .vues .vue { opacity: 0; transform: none; filter: none; z-index: 0; transition: opacity .9s cubic-bezier(.45, 0, .25, 1); will-change: opacity; }
.poste .vues .vue.actif { opacity: 1; transform: none; z-index: 2; }
.poste .vues .vue.dessous { opacity: 1; transform: none; z-index: 1; transition: none; }
.poste-tel { --w: clamp(150px, 19%, 250px); position: absolute; right: 0; bottom: 0; transform: rotate(3deg); box-shadow: 0 40px 80px rgba(0,0,0,.55), 0 0 0 1.5px rgba(255,255,255,.08) inset; }
.poste-sync { position: absolute; right: calc(clamp(150px, 19%, 250px) + 18px); bottom: 9%; margin: 0; display: flex; align-items: center; gap: 10px;
  background: var(--creme); color: var(--nuit); font-size: 14px; font-weight: 800; padding: 10px 14px; border-radius: 14px; box-shadow: 0 18px 40px rgba(0,0,0,.35); }
.poste-sync i { width: 8px; height: 8px; border-radius: 4px; background: var(--feuille); box-shadow: 0 0 0 0 rgba(44,122,83,.5); animation: pouls 2.4s ease-out infinite; }
@keyframes pouls { 70% { box-shadow: 0 0 0 9px rgba(44,122,83,0); } 100% { box-shadow: 0 0 0 0 rgba(44,122,83,0); } }
@media (max-width: 900px) {
  .poste { padding-bottom: 18%; }
  .poste .fenetre { width: 100%; }
  .poste-tel { --w: 34%; right: -2%; bottom: 0; }
  .poste-sync { right: auto; left: 0; bottom: 2%; font-size: 12px; padding: 8px 12px; }
}
@media (prefers-reduced-motion: reduce) { .poste-sync i { animation: none; } }
/* Le lien d'installation se lit sur toutes les cartes, claires ou mises en avant. */
.appareil strong { color: var(--nuit); font-weight: 800; }
.appareil.vedette strong { color: var(--creme); }
/* La note sous le bouton de la signature reste lisible au-dessus des traits de la roue. */
.signature-note { text-shadow: 0 0 14px var(--nuit), 0 0 4px var(--nuit); }

/* ——— Défilement fluide, sans débordement ——— */
/* Jamais de défilement horizontal (un élément incliné ou décalé ne doit pas élargir la page). « clip » plutôt que
   « hidden » : ne crée pas de conteneur de défilement, les scènes collantes (position: sticky) continuent de marcher. */
html, body { overflow-x: clip; }
@media (max-width: 900px) {
  .poste-tel { right: 0; }
  /* Sur téléphone, la barre reste opaque : un flou d'arrière-plan recalculé à chaque défilement saccade. */
  .barre.voilee { background: rgba(13,19,48,.97); backdrop-filter: none; -webkit-backdrop-filter: none; }
}
/* La progression de lecture : un fil d'or sous la barre, discret. */
.progression { position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 31; pointer-events: none; }
.progression i { display: block; height: 100%; width: 100%; background: var(--or); transform-origin: 0 50%; transform: scaleX(var(--p, 0)); opacity: .9; }
/* « La suite est en dessous » : apparaît après une pause, disparaît dès qu'on défile. */
.indice-defiler { position: fixed; left: 50%; bottom: calc(18px + env(safe-area-inset-bottom)); z-index: 30; width: 44px; height: 44px; border-radius: 22px; border: 0;
  display: grid; place-items: center; color: var(--creme); background: rgba(13,19,48,.72); box-shadow: 0 8px 24px rgba(0,0,0,.25), inset 0 0 0 1px rgba(255,255,255,.14);
  transform: translate(-50%, 12px); opacity: 0; transition: opacity .35s var(--ease), transform .35s var(--ease); cursor: pointer; }
.indice-defiler.visible { opacity: 1; transform: translate(-50%, 0); }
.indice-defiler.visible svg { animation: indice 1.8s var(--ease) infinite; }
@keyframes indice { 0%, 100% { transform: translateY(-2px); } 50% { transform: translateY(3px); } }
@media (prefers-reduced-motion: reduce) { .indice-defiler.visible svg { animation: none; } }

/* Le défilement reste libre et fluide partout : aucune pause imposée sur les animations (choix de Johan, 2026-11-08). */

/* ——— Retouches de la revue (2026-11-08) ——— */
/* La langue : un sélecteur FR | EN, la langue affichée en évidence. */
.langues { display: inline-flex; align-items: center; gap: 2px; padding: 3px; border-radius: 999px; box-shadow: inset 0 0 0 1.5px rgba(203,212,240,.35); }
.langues svg { width: 15px; height: 15px; margin: 0 4px 0 7px; color: var(--indigo-200); flex: none; }
.barre nav .langues a { min-width: 34px; height: 30px; display: inline-grid; place-items: center; border-radius: 999px; font-size: 13px; font-weight: 800; letter-spacing: .04em; color: var(--indigo-200); }
.barre nav .langues a[aria-current] { background: var(--creme); color: var(--nuit); }
.barre nav .langues a:not([aria-current]):hover { color: var(--or); }
/* Proposition discrète de la langue du navigateur. */
.suggestion-langue { position: fixed; left: 50%; top: calc(76px + env(safe-area-inset-top)); z-index: 32; transform: translate(-50%, -12px); opacity: 0; transition: opacity .35s var(--ease), transform .45s var(--ease);
  display: flex; align-items: center; gap: 10px; padding: 8px 8px 8px 16px; border-radius: 999px; background: var(--creme); color: var(--nuit); font-size: 14px; font-weight: 700;
  box-shadow: 0 18px 40px -14px rgba(13,19,48,.55); white-space: nowrap; }
.suggestion-langue.visible { opacity: 1; transform: translate(-50%, 0); }
.suggestion-langue a { color: var(--nuit); background: var(--or); padding: 8px 14px; border-radius: 999px; text-decoration: none; }
.suggestion-langue button { all: unset; cursor: pointer; width: 32px; height: 32px; border-radius: 16px; display: grid; place-items: center; color: var(--cauri-600); }
/* Les boutons de lecture : une bordure partout, une zone à toucher de 44 px au moins. */
.lecture-bouton { position: relative; }
.lecture-bouton::after { content: ""; position: absolute; inset: -6px; border-radius: 50%; }
.points .lecture-bouton { color: var(--creme); box-shadow: inset 0 0 0 1.5px rgba(255,253,248,.45); }
.points .lecture-bouton:hover { box-shadow: inset 0 0 0 1.5px rgba(239,181,83,.85); }
.seances-fil button::before { background: rgba(255,253,248,.32); }
.points li button::before { background: rgba(255,253,248,.32); }
/* Contraste des étapes et titres serrés. */
.recit-pas button { font-size: 13px; color: var(--cauri-600); }
.recit-sur span { color: var(--cauri-600); }
.garanties h3, .appareil h3, .atout h3, .faq summary { line-height: 1.2; }
/* La suite, toujours là : une pastille qui dit où elle mène (ordinateur), un rond à droite (téléphone). */
.indice-defiler { width: auto; min-width: 44px; height: 44px; padding: 0 16px 0 18px; gap: 8px; display: inline-flex; align-items: center; font-family: inherit; font-weight: 700; font-size: 14px; line-height: 1; white-space: nowrap; }
.indice-defiler .suite-titre { max-width: 0; overflow: hidden; opacity: 0; transition: max-width .45s var(--ease), opacity .3s var(--ease); }
.indice-defiler .suite-titre:not(:empty) { max-width: 240px; opacity: 1; }
/* La suite, au bas de chaque section, sur tous les écrans : un seul composant, un vrai lien (il marche même sans script).
   Le chevron est dans une pastille ronde, à l'intérieur du bouton : il hérite du rembourrage et reste centré. */
.indice-defiler { display: none !important; }
main > section { position: relative; }
.suite-section { position: absolute; left: 50%; bottom: 18px; z-index: 10; display: inline-flex; align-items: center; gap: 10px;
  height: 44px; padding: 0 6px 0 18px; border-radius: 999px; font-size: 14px; font-weight: 700; line-height: 1; white-space: nowrap; text-decoration: none;
  color: var(--creme); background: rgba(13,19,48,.86); box-shadow: 0 10px 28px -8px rgba(13,19,48,.45), inset 0 0 0 1px rgba(255,255,255,.14);
  opacity: 0; transform: translate(-50%, 12px); transition: opacity .45s var(--ease), transform .45s var(--ease), background-color .2s, box-shadow .2s;
  -webkit-tap-highlight-color: transparent; cursor: pointer; }
.suite-section .chevron { width: 32px; height: 32px; border-radius: 16px; display: grid; place-items: center; background: rgba(255,253,248,.12); flex: none; transition: background .2s; }
.suite-section svg { width: 16px; height: 16px; display: block; }
.suite-section.visible { opacity: 1; transform: translate(-50%, 0); }
.suite-section.visible svg { animation: indice 1.8s var(--ease) infinite; }
.suite-section:hover { background: rgba(13,19,48,.95); box-shadow: 0 14px 32px -8px rgba(13,19,48,.55), inset 0 0 0 1px rgba(239,181,83,.6); }
.suite-section:hover .chevron, .suite-section:active .chevron { background: var(--or); color: var(--nuit); }
.suite-section:active { transform: translate(-50%, 0) scale(.96); }
.suite-section:focus-visible { outline: 3px solid var(--or); outline-offset: 3px; }
/* Sur fond nuit, le bouton se détache par un filet un peu plus clair. */
.vivant .suite-section, .bureau .suite-section, .ouverture .suite-section, .explorer .suite-section { background: rgba(255,253,248,.08); box-shadow: inset 0 0 0 1px rgba(255,253,248,.22); }
.vivant .suite-section:hover, .bureau .suite-section:hover, .ouverture .suite-section:hover { background: rgba(255,253,248,.14); box-shadow: inset 0 0 0 1px rgba(239,181,83,.7); }
@keyframes indice { 0%, 100% { transform: translateY(-1.5px); } 50% { transform: translateY(1.5px); } }
@media (max-width: 900px) {
  .recit-scene, .vivant-scene { padding-bottom: 72px; }
  #questions { padding-bottom: 150px; }
  .chiffres { padding-bottom: 84px; }
}
  .chiffres { padding-bottom: 84px; }
}
/* Fonctionnement : le bouton secondaire se voit sur fond clair. */
.page-texte .bouton.contour { color: var(--nuit); box-shadow: inset 0 0 0 1.5px var(--cauri-200); }
.page-texte .bouton.contour:hover { box-shadow: inset 0 0 0 1.5px var(--nuit); }
/* Le bandeau défilant se met en pause au toucher ou au clavier. */
.defile:focus-within .defile-piste, .defile.arret .defile-piste { animation-play-state: paused; }
/* Menu des sections sur téléphone. */
.menu-bouton { display: none; }
@media (max-width: 820px) {
  .barre nav { gap: 10px; }
  .langues svg { display: none; }
  .barre nav .langues a { min-width: 30px; }
  .barre .marque { flex-shrink: 0; }
  .menu-bouton { all: unset; cursor: pointer; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 22px; color: var(--creme); }
  .menu-bouton:focus-visible { outline: 3px solid var(--or); }
  .barre nav.menu-sections { position: fixed; margin: 0; flex-direction: column; align-items: stretch; top: calc(64px + env(safe-area-inset-top)); left: 12px; right: 12px; z-index: 31; display: grid; gap: 4px; padding: 10px; border-radius: 20px;
    background: var(--nuit); box-shadow: 0 30px 60px -20px rgba(0,0,0,.6), inset 0 0 0 1px rgba(255,255,255,.08); opacity: 0; transform: translateY(-8px); pointer-events: none; transition: opacity .25s var(--ease), transform .35s var(--ease); }
  .barre nav.menu-sections.ouvert { opacity: 1; transform: none; pointer-events: auto; }
  .menu-sections a { display: flex; align-items: center; min-height: 48px; padding: 0 14px; border-radius: 12px; color: var(--creme); text-decoration: none; font-weight: 700; font-size: 17px; }
  .menu-sections a:active { background: rgba(255,255,255,.08); }
}
@media (min-width: 821px) { .barre nav.menu-sections, .menu-bouton { display: none; } }
/* « Comment ça marche » : l'ancienne étape sort vite, puis la nouvelle entre ; le téléphone change d'écran sans flou. */
.recit-etapes li:not(.actif) > * { transition-duration: .22s; transition-delay: 0s !important; }
.recit-etapes li.actif > * { transition-delay: .18s; }
.recit-etapes li.actif > h3 { transition-delay: .24s; }
.recit-etapes li.actif > p { transition-delay: .3s; }
.recit-etapes li > * { filter: none !important; }
.recit-tel .vues .vue { filter: none; transform: translateY(2%); }
.recit-tel .vues .vue.actif { transform: none; }
.recit-tel .vues .vue.dessous { opacity: 1; z-index: 0; transform: none; transition: none; }
/* Petits téléphones : la barre tient sur une ligne, menu compris. */
@media (max-width: 420px) {
  .barre nav { gap: 6px; }
  .barre .bouton.petit { padding: 0 13px; font-size: 14px; }
  .menu-bouton { width: 40px; }
}
@media (max-width: 360px) { .barre .marque { font-size: 0; gap: 0; } }

/* Au toucher, les boutons répondent comme sous la souris : halo d'or et léger enfoncement. */
@media (hover: none) {
  .bouton { -webkit-tap-highlight-color: transparent; transition: transform .2s var(--ease), box-shadow .25s var(--ease), background-color .2s; }
  .bouton.or:active { background: var(--or-200); box-shadow: 0 14px 32px -10px rgba(239,181,83,.7); transform: scale(.97); }
  .bouton.contour:active { box-shadow: inset 0 0 0 1.5px var(--creme); transform: scale(.97); }
  .bouton.indigo:active { background: var(--indigo-700); transform: scale(.97); }
}
@media (prefers-reduced-motion: reduce) { .suite-section.visible svg { animation: none; } .suite-section { transition: none; } }

/* Les confettis du cercle bouclé : une toile au-dessus du cercle, qui ne capte aucun toucher. */
.vivant-scene .fete { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 4; }
/* L'ouverture : le bouton de suite se pose au-dessus de la bande d'or inclinée, avec sa place réservée. */
.ouverture { padding-bottom: 96px; box-sizing: border-box; }
.ouverture .suite-section { bottom: 52px; }
/* L'ancienne scène fixe du récit gardait un empilement au-dessus du reste : plus besoin, le bouton de suite passe devant. */
.recit-scene { z-index: auto; }

/* ——— Projet commun : la caisse du projet, animée (même géométrie dorée que l'anneau, mêmes couleurs que l'app) ——— */
.projet { background: var(--cauri); padding: 120px 0; }
.projet-grille { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 520px); grid-template-areas: "tete scene" "suite scene"; gap: 8px 72px; align-items: start; }
.projet-tete { grid-area: tete; }
.projet-scene { grid-area: scene; }
.projet-suite { grid-area: suite; }
.projet-sur { margin: 0 0 18px; }
.pastille-plus { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 800; letter-spacing: .02em; color: var(--or-700); background: #FAE5BC; padding: 5px 12px; border-radius: 999px; }
.projet h2 { font-weight: 900; font-size: clamp(34px, 4.6vw, 64px); line-height: 1; letter-spacing: -0.035em; color: var(--nuit); max-width: 13ch; }
.projet .intro { margin: 20px 0 0; font-size: 20px; line-height: 1.5; color: var(--cauri-600); max-width: 42ch; }
.projet-scene { position: relative; border-radius: 32px; aspect-ratio: 480 / 520; padding: 14px; box-sizing: border-box; overflow: hidden;
  background: radial-gradient(320px circle at 50% 36%, rgba(239,181,83,.18), transparent 70%), linear-gradient(180deg, var(--indigo-800), var(--nuit));
  box-shadow: 0 40px 80px -32px rgba(13,19,48,.6), inset 0 0 0 1px rgba(255,253,248,.07); }
.projet-scene svg { display: block; width: 100%; height: 100%; font-family: var(--rond); }
.projet-etapes { list-style: none; margin: 28px 0 0; padding: 0; max-width: 560px; }
.projet-etapes button { all: unset; box-sizing: border-box; cursor: pointer; position: relative; display: grid; grid-template-columns: 34px 1fr; gap: 10px; width: 100%;
  padding: 14px 0; border-top: 1px solid var(--cauri-200); font-size: 16px; line-height: 1.5; color: var(--cauri-600); }
.projet-etapes button::before { content: ""; position: absolute; top: -1px; left: 0; height: 2px; width: 0; background: var(--nuit); }
.projet-etapes li.actif button::before { width: calc(var(--t, 0) * 100%); }
.projet-etapes li.passe button::before { width: 100%; background: var(--or); }
.projet-etapes b { font-weight: 800; color: var(--cauri-500); font-variant-numeric: tabular-nums; }
.projet-etapes strong { color: var(--nuit); font-weight: 800; }
.projet-etapes em { font-style: normal; font-weight: 800; color: var(--or-700); white-space: nowrap; }
.projet-etapes li:not(.actif) span { opacity: .7; }
.projet-etapes li.actif b { color: var(--nuit); }
.projet-etapes li.passe b { color: var(--or-400); }
.projet-etapes button:focus-visible { outline: 3px solid var(--or); outline-offset: 4px; border-radius: 6px; }
.projet .lecture { margin-top: 12px; }
.projet-note { margin: 18px 0 0; font-size: 14px; line-height: 1.5; color: var(--cauri-600); max-width: 56ch; }
@media (max-width: 900px) {
  .projet { padding: 90px 0; }
  .projet-grille { grid-template-columns: minmax(0, 1fr); grid-template-areas: "tete" "scene" "suite"; gap: 28px; }
  .projet-scene { width: 100%; max-width: 520px; margin: 0 auto; border-radius: 26px; }
  .projet-etapes { margin-top: 0; }
}

/* ——— Tarifs : les mêmes formules que l'écran d'abonnement de l'app (Famille, Réunion, Grand groupe, Association) ——— */
.rythme { display: inline-grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; margin-top: 36px; border-radius: 18px; background: var(--cauri-100); }
.rythme button { all: unset; box-sizing: border-box; cursor: pointer; display: flex; flex-direction: column; align-items: center; gap: 1px; padding: 9px 22px; border-radius: 14px;
  font-size: 16px; font-weight: 800; color: var(--cauri-600); text-align: center; }
.rythme small { font-size: 12.5px; font-weight: 700; color: var(--cauri-500); }
.rythme button.on { background: var(--creme); color: var(--nuit); box-shadow: 0 1px 3px rgba(13,19,48,.12); }
.rythme button.on:first-child small { color: var(--or-700); }
.rythme button:focus-visible { outline: 3px solid var(--or); outline-offset: 2px; }
.formules { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; margin-top: 28px; align-items: stretch; }
.formule { position: relative; display: flex; flex-direction: column; gap: 6px; padding: 24px 18px 22px; border-radius: 24px; background: var(--creme); border: 1px solid var(--cauri-200); }
.formule.gratuite { background: transparent; }
.formule h3 { font-size: 22px; font-weight: 900; color: var(--nuit); letter-spacing: -.01em; }
.formule p { margin: 0; }
.formule .capacite { font-size: 14px; color: var(--cauri-600); }
.formule .montant { margin-top: 10px; display: flex; align-items: baseline; gap: 4px; }
.formule .montant b { font-size: 30px; font-weight: 900; letter-spacing: -.02em; color: var(--nuit); white-space: nowrap; font-variant-numeric: tabular-nums; }
.formule .montant small { font-size: 14px; font-weight: 700; color: var(--cauri-600); }
.formule .ancre { font-size: 13.5px; font-weight: 700; line-height: 1.4; color: var(--indigo); }
.formule .promesse { margin-top: 10px; font-size: 15px; font-weight: 800; line-height: 1.35; color: var(--nuit); }
.formule .plus { margin-top: 4px; font-size: 13px; font-weight: 800; color: var(--cauri-600); }
.formule ul { list-style: none; margin: 4px 0 0; padding: 0; display: flex; flex-direction: column; gap: 6px; font-size: 14.5px; line-height: 1.4; color: var(--ink); }
.formule li { position: relative; padding-left: 22px; }
.formule li::before { content: ""; position: absolute; left: 1px; top: .32em; width: 12px; height: 7px; border-left: 2.5px solid var(--indigo); border-bottom: 2.5px solid var(--indigo); transform: rotate(-45deg) scale(.85); }
.formule.conseil { border: 2px solid var(--or); padding-top: 58px; box-shadow: 0 26px 50px -26px rgba(199,128,23,.5); }
.formule .ruban { position: absolute; top: 0; left: 0; right: 0; padding: 8px 14px; border-radius: 22px 22px 0 0; background: var(--or); color: var(--nuit); font-size: 12.5px; font-weight: 900; line-height: 1.25; text-align: center; }
@media (min-width: 1101px) {
  /* Le bandeau « choix évident » se pose au-dessus de la carte : les prix restent alignés d'une carte à l'autre. */
  .formules { margin-top: 64px; }
  .formule.conseil { padding-top: 24px; border-top-left-radius: 0; border-top-right-radius: 0; }
  .formule.conseil .ruban { top: auto; bottom: 100%; left: -2px; right: -2px; }
}
.tarifs .mois { display: none; }
.tarifs.mensuel .an { display: none; }
.tarifs.mensuel .mois { display: inline; }
.rassure { list-style: none; margin: 28px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.rassure li { padding: 16px 18px; border-radius: 18px; background: var(--cauri-100); font-size: 14.5px; line-height: 1.45; color: var(--cauri-600); }
.rassure b { display: block; margin-bottom: 4px; font-size: 16px; font-weight: 900; color: var(--nuit); }
@media (max-width: 1100px) {
  .formules { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .formule.gratuite { grid-column: 1 / -1; }
  .rassure { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .formules { grid-template-columns: minmax(0, 1fr); }
  .rythme { display: grid; width: 100%; box-sizing: border-box; }
  .rythme button { padding: 9px 8px; }
  .rassure { grid-template-columns: minmax(0, 1fr); }
}
