/* La vitrine de Mytik (mytikapp.com) : l'accueil, la page de téléchargement, et la base de l'espace
   « Mes stats » (espace.css). Mobile d'abord. Couleurs et polices de l'appli (thème Braise, Barlow).

   L'idée qui tient la page : le téléphone posé sur un socle de temple, dans la lueur des braises.
   Ce qui bouge raconte le jeu : les braises montent, les événements d'une séance flottent autour du
   téléphone, l'écran change quand on avance dans les étapes, les rangs se posent marche après marche. */

@font-face { font-family: 'Barlow'; font-style: normal; font-weight: 400; font-display: swap; src: url('/fonts/barlow-400.woff') format('woff'); }
@font-face { font-family: 'Barlow'; font-style: normal; font-weight: 500 600; font-display: swap; src: url('/fonts/barlow-600.woff') format('woff'); }
@font-face { font-family: 'Barlow'; font-style: normal; font-weight: 700 800; font-display: swap; src: url('/fonts/barlow-700.woff') format('woff'); }
@font-face { font-family: 'Barlow Condensed'; font-style: normal; font-weight: 600 800; font-display: swap; src: url('/fonts/barlow-condensed-800.woff') format('woff'); }

:root {
  --nuit: #141015;      /* le fond, comme l'appli */
  --pierre: #1f1a20;    /* les surfaces */
  --pierre-haute: #2a242b;
  --arete: #342d35;     /* les bords */
  --braise: #ff6a2b;    /* l'action : télécharger, se connecter */
  --braise-vive: #ff8a57;
  --or: #f5c542;        /* les rangs, la flamme */
  --ivoire: #f4efe9;    /* le texte */
  --doux: #cfc6cb;
  --cendre: #a79fa4;    /* le texte secondaire (contraste 7:1 sur la nuit) */
  --vert: #3ddc84;
  --rouge: #ff7a7e;

  --display: 'Barlow Condensed', 'Barlow', 'Arial Narrow', sans-serif;
  --texte: 'Barlow', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --gouttiere: max(16px, env(safe-area-inset-left, 0px));
  --large: 1160px;
  --elan: cubic-bezier(0.2, 0.8, 0.2, 1);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 96px; }
body {
  margin: 0;
  background: var(--nuit);
  color: var(--ivoire);
  font: 400 17px/1.55 var(--texte);
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}
img, svg, canvas { display: block; max-width: 100%; }
[hidden] { display: none !important; }
a { color: var(--braise); text-underline-offset: 3px; }
a:hover { color: var(--braise-vive); }
:focus-visible { outline: 3px solid var(--braise); outline-offset: 3px; border-radius: 6px; }
p { margin: 0 0 1em; }
h1, h2, h3 { margin: 0; font-family: var(--display); font-weight: 800; letter-spacing: 0.005em; text-wrap: balance; }
button { font: inherit; color: inherit; }
.visuel-cache { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.evitement { position: absolute; left: 12px; top: -60px; z-index: 60; background: var(--braise); color: var(--nuit); padding: 10px 14px; border-radius: 10px; font-weight: 700; text-decoration: none; }
.evitement:focus { top: 12px; }

.cadre { width: 100%; max-width: var(--large); margin: 0 auto; padding-left: var(--gouttiere); padding-right: max(16px, env(safe-area-inset-right, 0px)); }

/* L'interrupteur de la sortie (site-config.js) : avant, la liste d'attente ; après, les stores. */
html:not(.sortie) .si-sortie { display: none !important; }
html.sortie .si-avant { display: none !important; }

/* ------------------------------------------------------------------------------------------
   La barre du haut : une pilule de verre qui flotte au-dessus de la page
   ------------------------------------------------------------------------------------------ */
.haut {
  position: fixed; z-index: 40; left: 0; right: 0;
  top: max(10px, env(safe-area-inset-top, 0px));
  padding: 0 10px;
  pointer-events: none;
}
.pilule {
  pointer-events: auto;
  display: flex; align-items: center; gap: 4px;
  width: 100%; max-width: 860px; margin: 0 auto;
  min-height: 56px; padding: 6px 6px 6px 14px;
  border-radius: 999px;
  background: rgba(31, 26, 32, 0.66);
  -webkit-backdrop-filter: saturate(160%) blur(18px); backdrop-filter: saturate(160%) blur(18px);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.09), inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 14px 40px -14px rgba(0, 0, 0, 0.8);
  transition: background 0.3s, box-shadow 0.3s, max-width 0.45s var(--elan);
}
.haut.colle .pilule {
  max-width: 760px;
  background: rgba(22, 18, 23, 0.93);
  -webkit-backdrop-filter: saturate(160%) blur(26px); backdrop-filter: saturate(160%) blur(26px);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.11), inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 20px 50px -14px rgba(0, 0, 0, 0.95), 0 0 34px -18px rgba(255, 106, 43, 0.8);
}
.marque { display: inline-flex; align-items: center; gap: 9px; margin-right: auto; color: var(--ivoire); text-decoration: none; font: 800 22px/1 var(--display); text-transform: uppercase; letter-spacing: 0.06em; }
.marque:hover { color: var(--ivoire); }
.marque img { width: 32px; height: 32px; border-radius: 9px; transition: transform 0.4s var(--elan); }
.marque:hover img { transform: rotate(-8deg) scale(1.08); }
.haut-liens { display: none; }
.lien-haut { display: inline-flex; align-items: center; gap: 7px; min-height: 40px; color: var(--doux); text-decoration: none; font-weight: 600; font-size: 15px; padding: 0 12px; border-radius: 999px; transition: background 0.2s, color 0.2s; }
.lien-haut:hover, .lien-haut[aria-current='page'] { color: var(--ivoire); background: rgba(255, 255, 255, 0.08); }
.lien-haut svg { width: 18px; height: 18px; }
.lien-compte { padding: 0 11px; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.14); color: var(--ivoire); }
.lien-compte span { display: none; }

/* ------------------------------------------------------------------------------------------
   Les boutons
   ------------------------------------------------------------------------------------------ */
.bouton {
  position: relative; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 24px;
  border: 0; border-radius: 999px;
  background: var(--braise); color: #1a0f08;
  font: 800 19px/1 var(--display); letter-spacing: 0.04em; text-transform: uppercase;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  box-shadow: 0 10px 30px -12px rgba(255, 106, 43, 0.9);
  transition: background 0.15s, transform 0.2s var(--elan), box-shadow 0.2s;
}
.bouton:hover { background: var(--braise-vive); color: #1a0f08; transform: translateY(-2px); box-shadow: 0 16px 34px -12px rgba(255, 106, 43, 1); }
.bouton:active { transform: scale(0.97); }
.bouton:disabled { opacity: 0.6; cursor: progress; transform: none; }
.bouton svg { width: 20px; height: 20px; flex: none; }
/* un reflet qui traverse le bouton au survol */
.bouton::after { content: ''; position: absolute; top: 0; bottom: 0; left: -60%; width: 40%; background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.45), transparent); transform: skewX(-18deg); transition: left 0.6s var(--elan); pointer-events: none; }
.bouton:hover::after { left: 120%; }
.bouton-creux { background: rgba(255, 255, 255, 0.05); color: var(--ivoire); box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.18); }
.bouton-creux:hover { background: rgba(255, 255, 255, 0.1); color: var(--ivoire); box-shadow: inset 0 0 0 1.5px var(--braise); }
.bouton-creux svg { color: var(--braise); }
.bouton-creux::after { display: none; }
.bouton-petit { min-height: 44px; padding: 0 18px; font-size: 17px; }
.lien-compte-texte { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; color: var(--doux); font-weight: 600; font-size: 16px; text-decoration: underline; text-decoration-color: rgba(255, 106, 43, 0.6); text-underline-offset: 5px; transition: color 0.2s, text-decoration-color 0.2s; }
.lien-compte-texte:hover { color: var(--ivoire); text-decoration-color: var(--braise); }
.lien-compte-texte svg { width: 20px; height: 20px; flex: none; color: var(--braise); }
.bouton-leger { display: inline-flex; align-items: center; gap: 9px; min-height: 46px; padding: 0 18px 0 14px; border-radius: 999px; background: rgba(255, 255, 255, 0.04); box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.16); color: var(--ivoire); font: 600 16px/1.2 var(--texte); text-decoration: none; transition: background 0.2s, box-shadow 0.2s, transform 0.2s var(--elan); }
.bouton-leger:hover { color: var(--ivoire); background: rgba(255, 255, 255, 0.09); box-shadow: inset 0 0 0 1.5px var(--braise); transform: translateY(-2px); }
.bouton-leger svg { width: 20px; height: 20px; flex: none; color: var(--braise); }
.lien-simple { background: none; border: 0; padding: 0; color: var(--braise); font: inherit; font-weight: 600; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }

/* Les badges des stores. Tant que les fichiers officiels ne sont pas là (docs/site-vitrine.md),
   on les dessine : fond noir, filet clair, logo et deux lignes. */
.stores { display: flex; flex-wrap: wrap; gap: 12px; }
.store {
  display: inline-flex; align-items: center; gap: 10px;
  height: 56px; padding: 0 18px 0 14px; min-width: 176px;
  background: #000; color: #fff; text-decoration: none;
  border-radius: 13px; box-shadow: inset 0 0 0 1px #8a8a8a;
  transition: transform 0.2s var(--elan), box-shadow 0.2s;
}
.store:hover { color: #fff; transform: translateY(-3px); box-shadow: inset 0 0 0 1px #fff, 0 14px 30px -14px rgba(255, 106, 43, 0.9); }
.store:active { transform: scale(0.98); }
.store svg { width: 26px; height: 26px; flex: none; }
.store span { display: flex; flex-direction: column; font: 400 11px/1.1 var(--texte); letter-spacing: 0.02em; }
.store strong { font: 600 21px/1.05 var(--texte); letter-spacing: -0.01em; }
.store[aria-disabled='true'] { position: relative; cursor: default; box-shadow: inset 0 0 0 1px #4a4a4a; transform: none; }
.store[aria-disabled='true'] > * { opacity: 0.5; }
/* Un store pas encore ouvert le dit (le texte suit la langue de la page). */
.store[aria-disabled='true']::after { content: 'Bientôt'; position: absolute; top: -9px; right: -6px; padding: 4px 9px; border-radius: 999px; background: var(--or); color: #1a0f08; font: 700 11px/1 var(--texte); }
:lang(en) .store[aria-disabled='true']::after { content: 'Soon'; }
.bientot .store[aria-disabled='true']::after { display: none; }
.telecharge { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 20px; }
.qr-haut { display: none; }
.os-android .stores .store[data-store='android'] { order: -1; }
/* Les badges officiels (img/stores, fournis par Apple et Google) : on n'y touche pas, on les pose.
   Le badge Google a sa marge de protection dans l'image : on la compense pour aligner les deux. */
.store { height: auto; min-width: 0; padding: 0; background: none; box-shadow: none; border-radius: 9px; }
.store:hover { box-shadow: 0 14px 30px -14px rgba(255, 106, 43, 0.9); }
.store img { display: block; height: 54px; width: auto; }
.store[data-store='android'] img { height: 70px; margin: -8px 0; }
.store[aria-disabled='true'] { box-shadow: none; }
.store[aria-disabled='true'] > * { opacity: 0.45; }
.bientot .store img { height: 38px; }
.bientot .store[data-store='android'] img { height: 49px; margin: -5.5px 0; }
.pas-de-compte .store img, .dans-appli .store img { height: 46px; }
.pas-de-compte .store[data-store='android'] img, .dans-appli .store[data-store='android'] img { height: 59px; margin: -6.5px 0; }

/* ------------------------------------------------------------------------------------------
   Le formulaire de la liste d'attente (avant la sortie), compact
   ------------------------------------------------------------------------------------------ */
.liste { max-width: 520px; }
.liste .rang-champ { display: flex; gap: 8px; }
.liste input[type=email] {
  flex: 1; min-width: 0; width: 100%; height: 56px; padding: 0 18px;
  background: rgba(31, 26, 32, 0.8); color: var(--ivoire);
  border: 1.5px solid var(--arete); border-radius: 999px;
  font: 400 17px/1 var(--texte);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.liste input[type=email]::placeholder { color: #7d7479; }
.liste input[type=email]:focus { outline: none; border-color: var(--braise); box-shadow: 0 0 0 4px rgba(255, 106, 43, 0.18); }
.liste .bouton { min-height: 56px; flex: none; }
.liste .case { display: flex; gap: 10px; align-items: flex-start; margin: 14px 0 0; color: var(--doux); font-size: 15px; cursor: pointer; }
.liste .case input { width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--braise); flex: none; }
.liste .mention { margin: 10px 0 0; color: var(--cendre); font-size: 14px; }
.liste .retour { margin: 12px 0 0; padding: 12px 14px; border-radius: 14px; background: rgba(255, 90, 95, 0.12); color: #ffc4c6; font-weight: 600; }
.liste .retour.ok { background: rgba(61, 220, 132, 0.12); color: #9af2c2; }
.liste .retour:focus { outline: none; }
.liste.fait .rang-champ, .liste.fait .case, .liste.fait .mention { display: none; }
.piege { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.cible { display: none; }
.cible:target { display: block; margin: 0 0 12px; padding: 12px 14px; border-radius: 14px; background: rgba(255, 90, 95, 0.12); color: #ffc4c6; font-weight: 600; }
.cible.ok:target { background: rgba(61, 220, 132, 0.12); color: #9af2c2; }
.bientot { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 12px; margin: 20px 0 0; color: var(--cendre); font-size: 15px; }
.bientot .stores { gap: 8px; }
.bientot .store { height: 40px; min-width: 0; padding: 0 12px 0 10px; border-radius: 9px; }
.bientot .store svg { width: 18px; height: 18px; }
.bientot .store strong { font-size: 14px; }

/* ------------------------------------------------------------------------------------------
   L'ouverture : le titre, les stores, et le téléphone sur son socle, dans les braises
   ------------------------------------------------------------------------------------------ */
.ouverture {
  position: relative; isolation: isolate;
  padding: 104px 0 0;
  background:
    radial-gradient(60% 460px at 78% 60%, rgba(255, 106, 43, 0.24), transparent 70%),
    radial-gradient(90% 520px at 50% -180px, rgba(255, 106, 43, 0.2), transparent 70%);
}
.braises { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none; }
.ouverture .cadre { display: grid; gap: 44px; }
.ouverture .cadre > * { min-width: 0; }
.appli-mobile { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 18px; padding: 7px 14px 7px 10px; border-radius: 999px; background: rgba(255, 106, 43, 0.1); box-shadow: inset 0 0 0 1px rgba(255, 106, 43, 0.3); color: var(--ivoire); font-weight: 600; font-size: 15px; }
.appli-mobile svg { width: 18px; height: 18px; color: var(--braise); }
.ouverture h1 { font-size: clamp(54px, 14.5vw, 98px); line-height: 0.9; text-transform: uppercase; letter-spacing: -0.005em; }
.ouverture h1 .mot { display: inline-block; }
.ouverture .chapeau { margin: 20px 0 28px; max-width: 34ch; color: var(--doux); font-size: clamp(19px, 2.2vw, 22px); line-height: 1.45; }
.deja { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin: 18px 0 0; }
.gratuit { margin: 14px 0 0; color: var(--cendre); font-size: 15px; }

/* La scène : le téléphone en relief, les événements du jeu qui flottent autour, le socle. */
.scene { position: relative; display: flex; flex-direction: column; align-items: center; padding-top: 8px; perspective: 1400px; }
.scene::before {
  content: ''; position: absolute; left: 50%; top: 6%; width: 96%; aspect-ratio: 1; transform: translateX(-50%);
  background: radial-gradient(closest-side, rgba(255, 106, 43, 0.5), rgba(255, 106, 43, 0) 70%);
  filter: blur(10px); pointer-events: none;
}
.flotte { position: relative; z-index: 2; }
.relief { position: relative; transform-style: preserve-3d; transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform 0.25s ease-out; }
.telephone {
  position: relative; margin: 0;
  width: min(62vw, 270px);
  padding: 8px; border-radius: 42px;
  background: linear-gradient(160deg, #453c44, #0d0a0e 40%, #221c22);
  box-shadow: 0 0 0 1px #47404a, 0 40px 60px -20px rgba(0, 0, 0, 0.9), 0 0 80px -20px rgba(255, 106, 43, 0.5);
}
.telephone img { width: 100%; height: auto; border-radius: 34px; }
/* un reflet de verre sur l'écran */
.telephone::after { content: ''; position: absolute; inset: 8px; border-radius: 34px; background: linear-gradient(125deg, rgba(255, 255, 255, 0.13) 0, rgba(255, 255, 255, 0) 32%); pointer-events: none; }
.telephone-petit { width: min(56vw, 240px); border-radius: 38px; padding: 7px; }
.telephone-petit img { border-radius: 31px; }
.telephone-petit::after { inset: 7px; border-radius: 31px; }

.evenement {
  position: absolute; z-index: 3;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 14px 8px 9px; border-radius: 999px; white-space: nowrap;
  background: rgba(31, 26, 32, 0.86);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12), 0 14px 30px -10px rgba(0, 0, 0, 0.85);
  font: 600 14px/1 var(--texte); color: var(--doux);
  transform: translateZ(60px);
}
.evenement b { color: var(--ivoire); font: 800 17px/1 var(--display); letter-spacing: 0.02em; }
.evenement svg, .evenement img { width: 26px; height: 26px; padding: 4px; border-radius: 50%; background: rgba(255, 255, 255, 0.07); flex: none; }
.evenement img { padding: 0; background: none; }
.e-flamme { left: -34px; top: -20px; }
.e-flamme svg, .e-flamme b { color: var(--or); }
.e-xp { right: -34px; bottom: 9%; }
.e-xp svg { color: #38bdf8; }
.e-xp b { color: var(--braise-vive); }
.e-rang { display: none; }
.e-rang b { color: var(--or); }

.socle { position: relative; z-index: 1; width: 100%; display: flex; flex-direction: column; align-items: center; margin-top: -6px; }
.marche {
  position: relative;
  background: linear-gradient(180deg, #3b333b 0, #2a242b 3px, #221d23 100%);
  box-shadow: inset 0 1px 0 rgba(255, 220, 190, 0.18), 0 1px 0 #0d0a0e;
}
.marche::after { content: ''; position: absolute; left: 6%; right: 6%; top: 0; height: 1px; background: linear-gradient(90deg, transparent, rgba(245, 197, 66, 0.6), transparent); }
.marche-1 { width: 74%; height: 14px; border-radius: 4px 4px 0 0; }
.marche-2 { width: 88%; height: 18px; }
.marche-3 { width: 100%; height: 26px; border-radius: 0 0 6px 6px; display: flex; align-items: center; justify-content: center; }
.socle .qr { display: none; }

/* Le bandeau des sports : il flotte dans la page, défile tout seul (vitrine.js) et se fait glisser au doigt. */
.bandeau { margin-top: 44px; padding: 10px 0 14px; overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: none; cursor: grab; -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.bandeau::-webkit-scrollbar { display: none; }
.bandeau:active { cursor: grabbing; }
.bandeau:focus-visible { outline-offset: -3px; }
.piste-sports { display: flex; gap: 10px; width: max-content; margin: 0; padding: 0 24px; list-style: none; }
.piste-sports li { display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 17px 0 11px; border-radius: 999px; background: rgba(31, 26, 32, 0.72); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08), 0 10px 24px -14px rgba(0, 0, 0, 0.9); font-weight: 600; font-size: 15px; color: var(--doux); white-space: nowrap; user-select: none; }
.piste-sports li:nth-child(even) { transform: translateY(8px); }
.piste-sports svg { width: 22px; height: 22px; }
.c-endurance svg { color: #38bdf8; }
.c-force svg { color: #f5a524; }
.c-collectifs svg { color: #f97316; }
.c-raquettes svg { color: #a3e635; }
.c-combat svg { color: #f0435f; }
.c-eau svg { color: #818cf8; }
.c-precision svg { color: #c4b5fd; }

/* ------------------------------------------------------------------------------------------
   Les sections
   ------------------------------------------------------------------------------------------ */
.section { padding: 96px 0 0; }
.titre-section { font-size: clamp(38px, 6.6vw, 64px); line-height: 0.98; max-width: 16ch; }
.intro { margin: 16px 0 0; max-width: 56ch; color: var(--doux); font-size: 19px; }

/* Une séance, et tout s'enchaîne : trois étapes ; sur ordinateur, un seul téléphone reste à
   l'écran et change d'image quand on passe d'une étape à l'autre. */
.defile { margin-top: 40px; }
.etapes { list-style: none; margin: 0; padding: 0; display: grid; gap: 56px; counter-reset: etape; }
.etape { position: relative; display: grid; gap: 22px; counter-increment: etape; }
.etape-texte { padding-left: 64px; position: relative; max-width: 42ch; }
.etape-texte::before {
  content: counter(etape);
  position: absolute; left: 0; top: -4px;
  width: 46px; height: 46px; border-radius: 50%;
  display: grid; place-items: center;
  font: 800 24px/1 var(--display); color: var(--braise);
  box-shadow: inset 0 0 0 1.5px var(--braise);
  transition: background 0.4s, color 0.4s, box-shadow 0.4s;
}
.etape h3 { font-size: clamp(30px, 4vw, 44px); line-height: 1; margin: 0 0 10px; }
.etape p { color: var(--doux); margin: 0; font-size: 18px; }
.etape .telephone { justify-self: center; }
.puces { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0 0; padding: 0; list-style: none; }
.puces li { display: inline-flex; align-items: center; gap: 7px; height: 36px; padding: 0 13px 0 9px; border-radius: 999px; background: var(--pierre); box-shadow: inset 0 0 0 1px var(--arete); font: 600 14px/1 var(--texte); color: var(--doux); }
.puces svg { width: 20px; height: 20px; color: var(--braise); }
.puces .or svg { color: var(--or); }
.ecran-fixe { display: none; }

/* Les sept rangs, posés sur un escalier. */
.rangs-bloc { margin-top: 72px; }
.rangs-bloc h3 { font-size: clamp(28px, 4vw, 40px); line-height: 1; }
.rangs-bloc > p { margin: 10px 0 0; color: var(--doux); max-width: 52ch; }
.rangs { list-style: none; margin: 28px 0 0; padding: 0; display: grid; grid-template-columns: repeat(7, 1fr); align-items: end; gap: 4px; }
.rangs li { display: flex; flex-direction: column; align-items: center; gap: 6px; font: 700 13px/1.1 var(--texte); color: var(--doux); text-align: center; }
.rangs img { width: 100%; max-width: 84px; height: auto; transition: transform 0.4s var(--elan); }
.rangs li:hover img { transform: translateY(-6px) scale(1.08); }
.rangs li::after {
  content: ''; display: block; width: 100%; margin-top: 4px;
  background: linear-gradient(180deg, #3b333b, #221d23); border-radius: 3px 3px 0 0;
  box-shadow: inset 0 1px 0 rgba(255, 220, 190, 0.16);
}
.rangs li:nth-child(1)::after { height: 10px; }
.rangs li:nth-child(2)::after { height: 22px; }
.rangs li:nth-child(3)::after { height: 34px; }
.rangs li:nth-child(4)::after { height: 46px; }
.rangs li:nth-child(5)::after { height: 58px; }
.rangs li:nth-child(6)::after { height: 70px; }
.rangs li:nth-child(7)::after { height: 82px; box-shadow: inset 0 1px 0 rgba(245, 197, 66, 0.7), 0 -14px 40px -8px rgba(245, 197, 66, 0.35); }
.rangs li:last-child { color: var(--or); }
.rangs li:last-child img { filter: drop-shadow(0 0 16px rgba(245, 197, 66, 0.55)); }

/* Le tour de l'appli : des onglets, et le téléphone montre l'écran choisi. */
.tour { display: grid; gap: 36px; margin-top: 40px; }
.tour-ecran { justify-self: center; position: relative; }
.tour-ecran::before { content: ''; position: absolute; inset: 8% -18%; background: radial-gradient(closest-side, rgba(255, 106, 43, 0.3), transparent); filter: blur(12px); }
.pile { position: relative; }
.pile img { transition: opacity 0.5s ease, transform 0.6s var(--elan); }
.pile img + img { position: absolute; left: 0; top: 0; }
.pile img:not(.actif) { opacity: 0; transform: scale(1.04); }
.onglets { display: grid; gap: 10px; align-content: center; max-width: 600px; }
.onglet {
  position: relative; overflow: hidden;
  display: grid; grid-template-columns: 46px 1fr; gap: 4px 14px; align-items: start; text-align: left;
  padding: 16px 18px; border: 0; border-radius: 20px; cursor: pointer;
  background: transparent; box-shadow: inset 0 0 0 1px var(--arete);
  transition: background 0.3s, box-shadow 0.3s, transform 0.3s var(--elan);
}
.onglet:hover { background: rgba(255, 255, 255, 0.03); transform: translateX(4px); }
.onglet svg { grid-row: span 2; width: 46px; height: 46px; padding: 11px; border-radius: 14px; background: var(--pierre); box-shadow: inset 0 0 0 1px var(--arete); color: var(--cendre); transition: color 0.3s, background 0.3s; }
.onglet strong { font: 800 26px/1.05 var(--display); display: flex; align-items: center; gap: 10px; }
.onglet span { color: var(--cendre); font-size: 16px; line-height: 1.45; }
.onglet .plus { font: 700 12px/1 var(--texte); letter-spacing: 0.02em; padding: 4px 8px; border-radius: 999px; background: rgba(245, 197, 66, 0.14); color: var(--or); }
.onglet[aria-selected='true'] { background: var(--pierre); box-shadow: inset 0 0 0 1px rgba(255, 106, 43, 0.55), 0 20px 40px -24px rgba(255, 106, 43, 0.6); }
.onglet[aria-selected='true'] svg { color: var(--braise); background: rgba(255, 106, 43, 0.12); }
.onglet[aria-selected='true'] span { color: var(--doux); }
/* la jauge du passage automatique d'un onglet à l'autre */
.onglet::after { content: ''; position: absolute; left: 0; bottom: 0; height: 3px; width: 100%; background: var(--braise); transform: scaleX(0); transform-origin: left; }
.tour.auto .onglet[aria-selected='true']::after { animation: jauge 5.5s linear forwards; }
@keyframes jauge { to { transform: scaleX(1); } }

/* Sur ordinateur : l'espace Mes stats */
.ordi { border-top: 1px solid var(--arete); border-bottom: 1px solid var(--arete); background: linear-gradient(180deg, #1a151b, var(--nuit)); padding: 72px 0; }
.ordi .cadre { display: grid; gap: 44px; align-items: center; }
.ordi h2 { font-size: clamp(36px, 5.6vw, 56px); line-height: 1; max-width: 16ch; }
.rappel-appli { display: flex; gap: 12px; align-items: flex-start; margin: 20px 0 28px; padding: 14px 16px; border-radius: 16px; background: rgba(255, 106, 43, 0.09); box-shadow: inset 0 0 0 1px rgba(255, 106, 43, 0.28); color: var(--doux); max-width: 52ch; font-size: 16px; }
.rappel-appli svg { width: 22px; height: 22px; flex: none; color: var(--braise); margin-top: 1px; }
.rappel-appli strong { color: var(--ivoire); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

/* La miniature de l'espace, dans une fenêtre de navigateur ; elle s'anime quand elle arrive à l'écran. */
.fenetre { border-radius: 16px; background: var(--pierre); box-shadow: 0 0 0 1px var(--arete), 0 50px 90px -30px rgba(0, 0, 0, 0.95), 0 0 80px -40px rgba(255, 106, 43, 0.7); overflow: hidden; }
.penche { perspective: 1400px; }
.fenetre-barre { display: flex; align-items: center; gap: 6px; height: 36px; padding: 0 12px; background: #17131a; border-bottom: 1px solid var(--arete); }
.fenetre-barre i { width: 10px; height: 10px; border-radius: 50%; background: #3a333b; }
.fenetre-barre span { margin-left: 10px; flex: 1; max-width: 240px; height: 22px; border-radius: 7px; background: var(--pierre); color: var(--cendre); font: 500 12px/22px var(--texte); padding: 0 10px; overflow: hidden; white-space: nowrap; }
.fenetre-corps { padding: 16px; display: grid; gap: 12px; grid-template-columns: 1fr 1fr; }
.mini { border-radius: 14px; background: var(--nuit); box-shadow: inset 0 0 0 1px var(--arete); padding: 12px 14px; min-width: 0; }
.mini small { display: block; color: var(--cendre); font-size: 12px; }
.mini b { display: block; font: 800 30px/1.1 var(--display); }
.mini b.or { color: var(--or); }
.mini-niveau { display: flex; align-items: center; gap: 12px; }
.js .fenetre:not(.vu) .anneau { --p: 0; }
.mini .anneau { --p: 62; width: 46px; height: 46px; }
.mini-large { grid-column: 1 / -1; }
.mini-barres { display: flex; align-items: flex-end; gap: 5px; height: 84px; margin-top: 10px; }
.mini-barres i { flex: 1; background: linear-gradient(180deg, var(--braise-vive), var(--braise)); border-radius: 4px 4px 1px 1px; transform-origin: bottom; }
.mini-barres i:last-child { background: linear-gradient(180deg, #ffe08a, var(--or)); }
.mini-barres i:nth-child(1) { height: 40%; } .mini-barres i:nth-child(2) { height: 55%; } .mini-barres i:nth-child(3) { height: 35%; }
.mini-barres i:nth-child(4) { height: 70%; } .mini-barres i:nth-child(5) { height: 62%; } .mini-barres i:nth-child(6) { height: 80%; }
.mini-barres i:nth-child(7) { height: 58%; } .mini-barres i:nth-child(8) { height: 90%; } .mini-barres i:nth-child(9) { height: 75%; }
.mini-barres i:nth-child(10) { height: 100%; } .mini-barres i:nth-child(11) { height: 84%; } .mini-barres i:nth-child(12) { height: 46%; }

/* L'anneau de progression (niveau), partagé avec l'espace */
.anneau { position: relative; flex: none; width: 54px; height: 54px; }
.anneau svg { width: 100%; height: 100%; transform: rotate(-90deg); overflow: visible; }
.anneau circle { fill: none; stroke-width: 3.2; stroke-linecap: round; }
.anneau .fond { stroke: var(--arete); }
.anneau .arc { stroke: var(--braise); stroke-dasharray: 100; stroke-dashoffset: calc(100 - var(--p, 0)); transition: stroke-dashoffset 1.4s var(--elan) 0.2s; }
.anneau > span { position: absolute; inset: 0; display: grid; place-items: center; font: 800 18px/1 var(--display); }

/* Les formules */
.formules-grille { display: grid; gap: 16px; margin-top: 36px; }
.formule { border-radius: 26px; padding: 28px 24px; background: var(--pierre); box-shadow: inset 0 0 0 1px var(--arete); transition: transform 0.4s var(--elan), box-shadow 0.4s; }
.formule:hover { transform: translateY(-6px); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.16), 0 30px 60px -30px rgba(0, 0, 0, 0.9); }
.formule h3 { display: flex; align-items: center; gap: 10px; font-size: 36px; line-height: 1; }
.formule h3 svg { width: 28px; height: 28px; color: var(--or); }
.formule-sous { margin: 6px 0 18px; color: var(--cendre); }
.formule ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.formule li { display: grid; grid-template-columns: 22px 1fr; gap: 10px; color: var(--doux); }
.formule li svg { width: 20px; height: 20px; margin-top: 3px; color: var(--vert); }
.formule-plus { background: linear-gradient(170deg, #2e2114, var(--pierre) 45%); box-shadow: inset 0 0 0 1px rgba(245, 197, 66, 0.4); }
.formule-plus:hover { box-shadow: inset 0 0 0 1px rgba(245, 197, 66, 0.7), 0 30px 60px -30px rgba(245, 197, 66, 0.35); }
.formule-plus .signe { color: var(--or); }
.formule-plus li svg { color: var(--or); }
.regle-or { display: flex; gap: 12px; align-items: flex-start; margin: 24px 0 0; max-width: 64ch; color: var(--doux); }
.regle-or svg { width: 26px; height: 26px; flex: none; color: var(--or); }
.regle-or strong { color: var(--ivoire); }

/* Les questions */
.questions { max-width: 780px; }
.questions h2 { margin-bottom: 24px; }
.questions details { border-bottom: 1px solid var(--arete); }
.questions details:first-of-type { border-top: 1px solid var(--arete); }
.questions summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 20px 0; font: 700 19px/1.3 var(--texte); transition: color 0.2s; }
.questions summary:hover { color: var(--braise-vive); }
.questions summary::-webkit-details-marker { display: none; }
.questions summary::after { content: '+'; flex: none; width: 32px; height: 32px; display: grid; place-items: center; border-radius: 50%; box-shadow: inset 0 0 0 1.5px var(--arete); color: var(--braise); font: 600 20px/1 var(--texte); transition: transform 0.3s var(--elan), background 0.3s; }
.questions details[open] summary::after { transform: rotate(45deg); background: rgba(255, 106, 43, 0.14); }
.questions details p { margin: -6px 0 20px; color: var(--doux); max-width: 64ch; }
.questions details[open] p { animation: ouvre 0.35s var(--elan); }
@keyframes ouvre { from { opacity: 0; transform: translateY(-6px); } }

/* Le dernier appel */
.final { position: relative; isolation: isolate; margin-top: 96px; padding: 88px 0 96px; text-align: center; overflow: hidden; border-top: 1px solid var(--arete); background: radial-gradient(70% 420px at 50% 100%, rgba(255, 106, 43, 0.3), transparent 70%); }
.final .cadre { position: relative; display: flex; flex-direction: column; align-items: center; }
.final img.temple { width: min(320px, 72vw); height: auto; margin-bottom: 8px; filter: drop-shadow(0 30px 60px rgba(255, 106, 43, 0.35)); }
.final h2 { font-size: clamp(46px, 10vw, 96px); line-height: 0.92; text-transform: uppercase; max-width: 12ch; }
.final p { margin: 16px 0 28px; color: var(--doux); font-size: 19px; }
.final .stores { justify-content: center; }
.final .qr-bloc { display: none; }
.final .liste { margin: 0 auto; text-align: left; width: 100%; }

/* Le pied de page */
.pied { border-top: 1px solid var(--arete); padding: 40px 0 48px; color: var(--cendre); font-size: 15px; }
.pied .cadre { display: grid; gap: 28px; }
.pied nav { display: flex; flex-wrap: wrap; gap: 10px 28px; }
.pied nav a, .pied a { color: var(--doux); text-decoration: none; }
.pied nav a:hover, .pied a:hover { color: var(--ivoire); text-decoration: underline; }
.pied p { margin: 0; max-width: 70ch; }
.pied .marque { font-size: 20px; }

/* ------------------------------------------------------------------------------------------
   Ordinateur et tablette
   ------------------------------------------------------------------------------------------ */
@media (max-width: 559px) {
  .stores .store { flex: none; }
  .stores .store img { height: 48px; }
  .stores .store[data-store='android'] img { height: 62px; margin: -7px 0; }
  .stores .store svg { width: 22px; height: 22px; }
  .stores .store strong { font-size: 17px; white-space: nowrap; }
  .stores .store span { font-size: 10px; white-space: nowrap; }
  .bientot .stores .store { flex: none; }
  .telecharge .stores { flex: 1 1 100%; }
}
@media (min-width: 560px) {
  .lien-compte span { display: inline; }
  .lien-compte { padding: 0 14px 0 11px; }
}
@media (min-width: 760px) {
  .haut-liens { display: flex; gap: 2px; margin-right: 6px; }
  .formules-grille { grid-template-columns: 1fr 1fr; align-items: start; }
  .rangs { gap: 12px; }
  .rangs li { font-size: 15px; }
  .tour { grid-template-columns: auto 1fr; align-items: center; gap: 72px; }
  .fenetre-corps { grid-template-columns: repeat(3, 1fr); padding: 20px; gap: 14px; }
}

@media (min-width: 980px) {
  .ouverture { padding-top: 132px; }
  .ouverture .cadre { grid-template-columns: 1.08fr 0.92fr; align-items: end; gap: 24px; }
  .ouverture .texte { padding-bottom: 72px; }
  /* Le téléphone et son socle tiennent dans l'écran : 0,462 = largeur / hauteur de la capture. */
  .ouverture .telephone { width: clamp(250px, calc((100vh - 132px - 110px) * 0.462 + 16px), 340px); }
  .socle { width: 480px; }
  .marche-1 { height: 16px; }
  .marche-2 { height: 20px; }
  .marche-3 { height: 30px; }
  /* Sur ordinateur, le QR code est à côté des badges : c'est le chemin le plus court vers l'appli. */
  .telecharge .stores { flex-direction: column; gap: 10px; }
  .qr-haut { display: flex; align-items: center; gap: 14px; padding: 10px 18px 10px 10px; border-radius: 20px; background: rgba(31, 26, 32, 0.78); box-shadow: inset 0 0 0 1px rgba(245, 197, 66, 0.4), 0 20px 40px -24px rgba(245, 197, 66, 0.5); color: var(--cendre); }
  .qr-haut img { width: 104px; height: 104px; border-radius: 12px; }
  .qr-haut strong { display: block; color: var(--ivoire); font: 800 22px/1 var(--display); text-transform: uppercase; letter-spacing: 0.03em; margin-bottom: 6px; max-width: 9ch; }
  .qr-haut span { display: block; font-size: 14px; line-height: 1.35; max-width: 17ch; }
  .e-flamme { left: auto; right: calc(100% - 20px); top: 9%; }
  .e-xp { right: auto; left: calc(100% - 20px); top: 36%; bottom: auto; }
  .e-rang { display: inline-flex; right: calc(100% - 20px); top: 64%; }
  .evenement { font-size: 15px; padding: 10px 16px 10px 10px; }
  .evenement b { font-size: 19px; }

  /* Le défilement : les étapes à gauche, le téléphone fixe à droite. */
  .defile { display: grid; grid-template-columns: 1fr 380px; gap: 40px; margin-top: 0; }
  .etapes { gap: 0; }
  .etape { min-height: 62vh; align-content: center; opacity: 0.5; transition: opacity 0.5s; }
  .etape-texte { padding-left: 84px; max-width: 30em; }
  .etape-texte::before { width: 58px; height: 58px; font-size: 30px; top: -6px; }
  .etape h3 { font-size: clamp(44px, 4.6vw, 64px); }
  .etape p { font-size: 21px; line-height: 1.5; }
  .puces li { height: 40px; font-size: 15px; padding: 0 15px 0 11px; }
  /* le fil qui relie les trois étapes */
  .etapes { position: relative; }
  .etapes::before { content: ''; position: absolute; left: 28px; top: 31vh; bottom: 31vh; width: 2px; background: linear-gradient(180deg, var(--braise), rgba(255, 106, 43, 0.15)); opacity: 0.5; }
  .etape-texte::before { background: var(--nuit); z-index: 1; }
  .etape.active { opacity: 1; }
  .etape.active .etape-texte::before { background: var(--braise); color: #1a0f08; box-shadow: 0 0 0 8px rgba(255, 106, 43, 0.16); }
  .etape > .telephone { display: none; }
  .ecran-fixe { display: grid; place-items: center; position: sticky; top: 0; height: 100vh; }
  .ecran-fixe::before { content: ''; position: absolute; width: 130%; aspect-ratio: 1; background: radial-gradient(closest-side, rgba(255, 106, 43, 0.32), transparent 70%); filter: blur(10px); }
  .ecran-fixe .telephone { width: min(300px, calc((100vh - 150px) * 0.462)); }

  .ordi { padding: 104px 0; }
  .ordi .cadre { grid-template-columns: 0.9fr 1.1fr; gap: 72px; }

  .final .qr-bloc { display: flex; align-items: center; gap: 16px; margin-top: 28px; padding: 14px 20px 14px 14px; border-radius: 18px; background: rgba(31, 26, 32, 0.8); box-shadow: inset 0 0 0 1px var(--arete); text-align: left; color: var(--doux); }
  .final .qr-bloc img { width: 88px; height: 88px; border-radius: 8px; }
  .final .qr-bloc strong { display: block; color: var(--ivoire); font: 800 20px/1.1 var(--display); text-transform: uppercase; letter-spacing: 0.03em; }
}

/* ------------------------------------------------------------------------------------------
   Le mouvement. Sans JavaScript (pas de classe .js) ou avec « réduire les animations », tout est
   affiché tout de suite, immobile.
   ------------------------------------------------------------------------------------------ */
@media (prefers-reduced-motion: no-preference) {
  /* L'arrivée de l'ouverture : les mots du titre montent, le téléphone se pose, les événements surgissent. */
  .js .ouverture h1 .mot { animation: monte 0.9s var(--elan) backwards; }
  .js .ouverture h1 .mot:nth-child(2) { animation-delay: 0.09s; }
  .js .ouverture h1 .mot:nth-child(3) { animation-delay: 0.18s; }
  .js .ouverture h1 .mot:nth-child(4) { animation-delay: 0.27s; }
  .js .ouverture .appli-mobile, .js .ouverture .chapeau, .js .ouverture .appel { animation: monte 0.9s var(--elan) 0.3s backwards; }
  .js .ouverture .appel { animation-delay: 0.42s; }
  @keyframes monte { from { opacity: 0; transform: translateY(26px); } }

  .ouverture .flotte { animation: pose 1.1s var(--elan) 0.15s backwards, flotte 7s ease-in-out 1.3s infinite; }
  .ouverture .scene::before { animation: lueur 1.6s ease-out 0.3s backwards, respire 6s ease-in-out 2s infinite; }
  @keyframes pose { from { opacity: 0.3; transform: translateY(-34px) scale(0.96); } }
  @keyframes flotte { 50% { transform: translateY(-9px); } }
  @keyframes lueur { from { opacity: 0; } }
  @keyframes respire { 50% { opacity: 0.72; } }

  .evenement { animation: surgit 0.7s var(--elan) backwards, derive 6s ease-in-out infinite; }
  .e-flamme { animation-delay: 1s, 1.7s; }
  .e-xp { animation-delay: 1.25s, 2.4s; animation-duration: 0.7s, 7s; }
  .e-rang { animation-delay: 1.5s, 3s; animation-duration: 0.7s, 8s; }
  @keyframes surgit { from { opacity: 0; scale: 0.6; } }
  @keyframes derive { 50% { translate: 0 -8px; } }

  .final img.temple { animation: flotte 8s ease-in-out infinite; }

  /* L'arrivée au défilement (vitrine.js pose .vu). */
  .js [data-vie] { opacity: 0; transform: translateY(30px); transition: opacity 0.8s var(--elan), transform 0.8s var(--elan); transition-delay: var(--retard, 0s); }
  .js [data-vie='gauche'] { transform: translateX(-36px); }
  .js [data-vie='droite'] { transform: translateX(36px); }
  .js [data-vie='zoom'] { transform: scale(0.92); }
  .js [data-vie].vu { opacity: 1; transform: none; }

  /* Les rangs se posent l'un après l'autre sur leur marche. */
  .js .rangs li { opacity: 0; transform: translateY(-34px); transition: opacity 0.5s, transform 0.7s cubic-bezier(0.3, 1.5, 0.5, 1); transition-delay: calc(var(--n) * 0.11s); }
  .js .rangs.vu li { opacity: 1; transform: none; }
  .rangs li:nth-child(1) { --n: 0; } .rangs li:nth-child(2) { --n: 1; } .rangs li:nth-child(3) { --n: 2; } .rangs li:nth-child(4) { --n: 3; }
  .rangs li:nth-child(5) { --n: 4; } .rangs li:nth-child(6) { --n: 5; } .rangs li:nth-child(7) { --n: 6; }

  /* Les barres de la miniature poussent. */
  .js .fenetre .mini-barres i { transform: scaleY(0); transition: transform 0.9s var(--elan); }
  .js .fenetre.vu .mini-barres i { transform: none; }
  .mini-barres i:nth-child(2) { transition-delay: 0.05s; } .mini-barres i:nth-child(3) { transition-delay: 0.1s; } .mini-barres i:nth-child(4) { transition-delay: 0.15s; }
  .mini-barres i:nth-child(5) { transition-delay: 0.2s; } .mini-barres i:nth-child(6) { transition-delay: 0.25s; } .mini-barres i:nth-child(7) { transition-delay: 0.3s; }
  .mini-barres i:nth-child(8) { transition-delay: 0.35s; } .mini-barres i:nth-child(9) { transition-delay: 0.4s; } .mini-barres i:nth-child(10) { transition-delay: 0.45s; }
  .mini-barres i:nth-child(11) { transition-delay: 0.5s; } .mini-barres i:nth-child(12) { transition-delay: 0.55s; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .piste-sports li[aria-hidden='true'] { display: none; }
}

/* La page de téléchargement (telecharger/) */
.aiguillage { min-height: 100vh; display: grid; place-items: center; text-align: center; padding: 120px 0 56px; background: radial-gradient(70% 420px at 50% 0, rgba(255, 106, 43, 0.22), transparent 70%); }
.aiguillage .cadre { display: flex; flex-direction: column; align-items: center; }
.aiguillage img.icone { width: 96px; height: 96px; border-radius: 24px; margin-bottom: 20px; box-shadow: 0 20px 50px -10px rgba(255, 106, 43, 0.6); }
.aiguillage h1 { font-size: clamp(42px, 9vw, 68px); line-height: 0.95; text-transform: uppercase; }
.aiguillage p { color: var(--doux); margin: 14px 0 24px; max-width: 40ch; }
.aiguillage .stores { justify-content: center; }
.aiguillage .retour-accueil { margin-top: 24px; }
