/* Odyssée·Math — site vitrine : rétro-futuriste, verre liquide, effets au défilement. */
:root {
  --bg: #0b0618;
  --bg2: #160b33;
  --ink: #f4efff;
  --muted: #b9acd9;
  --violet: #9b7cf0;
  --lilac: #e4d8ff;
  --pink: #ff7ad9;
  --mint: #8fffd2;
  --line: rgba(255, 255, 255, 0.18);
  --glass: rgba(255, 255, 255, 0.07);
  --radius: 28px;
  --display: 'Baloo 2', system-ui, sans-serif;
  --retro: 'Orbitron', 'Space Grotesk', sans-serif;
  --body: 'Space Grotesk', system-ui, sans-serif;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: radial-gradient(1200px 800px at 80% -10%, #3a1d7a 0%, transparent 60%), linear-gradient(180deg, var(--bg) 0%, var(--bg2) 55%, var(--bg) 100%);
  color: var(--ink);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.6;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: var(--lilac); }

/* ------------------------------------------------------------ fond */
#stars { position: fixed; inset: 0; width: 100%; height: 100%; z-index: -3; }
.nebula {
  position: fixed; inset: -20%; z-index: -2; pointer-events: none;
  background:
    radial-gradient(40% 30% at 20% 30%, rgba(255, 122, 217, 0.16), transparent 70%),
    radial-gradient(35% 30% at 85% 60%, rgba(143, 255, 210, 0.10), transparent 70%),
    radial-gradient(50% 40% at 50% 100%, rgba(155, 124, 240, 0.22), transparent 70%);
  animation: drift 40s ease-in-out infinite alternate;
}
@keyframes drift { to { transform: translate3d(3%, -4%, 0) rotate(4deg); } }
.scanlines {
  position: fixed; inset: 0; z-index: 50; pointer-events: none; mix-blend-mode: overlay; opacity: 0.25;
  background: repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.05) 0 1px, transparent 1px 3px);
}

/* ------------------------------------------------------------ verre liquide */
.glass {
  position: relative;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.04) 45%, rgba(255, 255, 255, 0.08));
  backdrop-filter: blur(22px) saturate(170%);
  -webkit-backdrop-filter: blur(22px) saturate(170%);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.45),
    inset 0 -1px 0 rgba(255, 255, 255, 0.06),
    inset 0 0 40px rgba(155, 124, 240, 0.12),
    0 24px 70px rgba(5, 0, 25, 0.55);
  overflow: hidden;
  isolation: isolate;
}
/* reflet qui suit le pointeur (--mx / --my posés par site.js) */
.glass::before {
  content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(420px circle at var(--mx, 30%) var(--my, 0%), rgba(255, 255, 255, 0.20), transparent 45%);
  transition: opacity 0.3s;
}
/* liseré irisé sur le bord */
.glass::after {
  content: ''; position: absolute; inset: 0; border-radius: inherit; padding: 1px; pointer-events: none;
  background: linear-gradient(120deg, rgba(255, 122, 217, 0.6), rgba(155, 124, 240, 0.15) 30%, rgba(143, 255, 210, 0.5) 60%, rgba(255, 255, 255, 0.1));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  opacity: 0.55;
}

/* ------------------------------------------------------------ typo */
h1, h2, h3 { font-family: var(--display); line-height: 1.08; margin: 0 0 0.4em; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.3rem, 5.4vw, 4.4rem); }
h2 { font-size: clamp(1.9rem, 4.2vw, 3.2rem); }
h3 { font-size: 1.45rem; }
.kicker { font-family: var(--retro); text-transform: uppercase; letter-spacing: 0.22em; font-size: 0.78rem; color: var(--mint); margin: 0 0 1rem; }
.center { text-align: center; }
.narrow { max-width: 720px; margin-left: auto; margin-right: auto; color: var(--muted); }
.chrome {
  background: linear-gradient(180deg, #ffffff 0%, #e4d8ff 38%, #9b7cf0 52%, #ffd1f1 70%, #ffffff 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 4px 24px rgba(155, 124, 240, 0.55));
}
.lead { font-size: 1.15rem; color: var(--muted); max-width: 560px; }

/* ------------------------------------------------------------ boutons */
.btn {
  display: inline-flex; align-items: center; gap: 0.5em; padding: 0.9em 1.6em; border-radius: 999px;
  font-family: var(--display); font-weight: 800; font-size: 1.1rem; text-decoration: none; color: #1a0b3b;
  background: linear-gradient(180deg, #ffffff, #e4d8ff 45%, #b9a2ff);
  box-shadow: inset 0 -3px 0 rgba(80, 40, 160, 0.35), 0 10px 30px rgba(155, 124, 240, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.6);
  transition: transform 0.2s, box-shadow 0.2s;
}
.btn:hover { transform: translateY(-2px) scale(1.03); box-shadow: inset 0 -3px 0 rgba(80, 40, 160, 0.35), 0 16px 44px rgba(255, 122, 217, 0.55), 0 0 0 1px #fff; }
.btn-ghost { color: var(--ink); background: rgba(255, 255, 255, 0.08); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.35); backdrop-filter: blur(10px); }
.btn-small { padding: 0.5em 1.1em; font-size: 0.95rem; }
.btn-big { font-size: 1.35rem; padding: 1em 2.2em; }
.link { font-weight: 600; }

/* ------------------------------------------------------------ barre du haut */
.topbar {
  position: fixed; top: 14px; left: 50%; transform: translateX(-50%); z-index: 40;
  width: min(1100px, calc(100% - 32px)); display: flex; align-items: center; gap: 24px; padding: 8px 10px 8px 18px; border-radius: 999px;
  transition: transform 0.35s, opacity 0.35s;
}
.topbar.hidden { transform: translate(-50%, -140%); }
.brand img { height: 34px; width: auto; }
.topbar nav { display: flex; gap: 22px; margin-left: auto; }
.topbar nav a { color: var(--ink); text-decoration: none; font-weight: 500; font-size: 0.95rem; opacity: 0.85; }
.topbar nav a:hover { opacity: 1; color: var(--mint); }

/* ------------------------------------------------------------ héros */
.hero { position: relative; min-height: 100vh; min-height: 100svh; display: grid; grid-template-columns: 1.1fr 0.9fr; align-items: center; gap: 24px; padding: 120px max(16px, 6vw) 120px; overflow: hidden; }
.hero-inner { position: relative; z-index: 2; will-change: transform, opacity, filter; }
.cta { display: flex; gap: 14px; flex-wrap: wrap; margin: 22px 0 24px; }
.badges { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; padding: 0; margin: 0; }
.badges li { font-family: var(--retro); font-size: 0.7rem; letter-spacing: 0.14em; text-transform: uppercase; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line); background: rgba(255, 255, 255, 0.05); }
.hero-stage { position: relative; height: 600px; z-index: 1; will-change: transform; }
/* la planète en horizon, le héros debout devant, en grand ; Pix vole à son épaule */
.halo { position: absolute; left: 50%; bottom: 40px; width: 520px; height: 520px; transform: translateX(-50%); border-radius: 50%; background: radial-gradient(circle, rgba(143, 255, 210, 0.28), rgba(155, 124, 240, 0.18) 45%, transparent 70%); filter: blur(10px); animation: pulse 5s ease-in-out infinite; }
@keyframes pulse { 50% { transform: translateX(-50%) scale(1.08); opacity: 0.8; } }
.planet { position: absolute; left: 70%; top: 22%; width: min(560px, 95%); max-width: none; transform: translate(-50%, -50%); filter: drop-shadow(0 0 60px rgba(155, 124, 240, 0.55)); opacity: 0.9; animation: planet 12s ease-in-out infinite; }
@keyframes planet { 50% { transform: translate(-50%, -53%) rotate(-3deg); } }
.hero-kid { position: absolute; left: 44%; bottom: 0; height: 500px; z-index: 2; width: auto; transform: translateX(-50%); filter: drop-shadow(0 0 28px rgba(143, 255, 210, 0.35)) drop-shadow(0 26px 30px rgba(0, 0, 0, 0.55)); animation: stand 4s ease-in-out infinite; }
@keyframes stand { 50% { transform: translateX(-50%) translateY(-8px); } }
.hero-stage::after { content: ''; position: absolute; left: 44%; bottom: -6px; width: 260px; height: 34px; transform: translateX(-50%); border-radius: 50%; background: radial-gradient(rgba(0, 0, 0, 0.55), transparent 70%); z-index: 1; }
.pix-wrap { position: absolute; left: 68%; top: 12%; z-index: 3; display: flex; flex-direction: column; align-items: flex-start; gap: 6px; animation: orbit 6s ease-in-out infinite; }
@keyframes orbit { 25% { transform: translate(10px, -14px) rotate(4deg); } 50% { transform: translate(0, -24px) rotate(-2deg); } 75% { transform: translate(-10px, -10px) rotate(-5deg); } }
.hero-pix { height: 170px; width: auto; filter: drop-shadow(0 0 26px rgba(143, 255, 210, 0.6)); }
.bubble { position: relative; max-width: 230px; padding: 12px 16px; border-radius: 18px; background: #fff; color: #28195a; font: 700 1rem var(--display); box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35); transition: opacity 0.3s, transform 0.3s; }
.bubble::after { content: ''; position: absolute; left: 34px; bottom: -8px; border: 8px solid transparent; border-bottom: 0; border-top-color: #fff; }
.bubble.out { opacity: 0; transform: translateY(6px) scale(0.95); }
.float { animation: float 4.5s ease-in-out infinite; }
@keyframes float { 50% { transform: translateY(-16px) rotate(-3deg); } }
.grid-floor { position: absolute; left: 0; right: 0; bottom: 0; height: 42%; perspective: 360px; pointer-events: none; z-index: 0; mask-image: linear-gradient(to top, #000 30%, transparent); -webkit-mask-image: linear-gradient(to top, #000 30%, transparent); }
.grid {
  position: absolute; inset: -100% -50% 0; transform: rotateX(62deg); transform-origin: bottom;
  background-image: linear-gradient(rgba(255, 122, 217, 0.55) 2px, transparent 2px), linear-gradient(90deg, rgba(155, 124, 240, 0.55) 2px, transparent 2px);
  background-size: 64px 64px; animation: grid 2.4s linear infinite;
}
@keyframes grid { to { background-position: 0 64px; } }
.scroll-hint { position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%); width: 28px; height: 46px; border-radius: 20px; border: 2px solid rgba(255, 255, 255, 0.5); z-index: 3; }
.scroll-hint span { position: absolute; left: 50%; top: 8px; width: 4px; height: 10px; margin-left: -2px; border-radius: 2px; background: #fff; animation: wheel 1.6s ease-in-out infinite; }
@keyframes wheel { 60% { transform: translateY(14px); opacity: 0; } }

/* ------------------------------------------------------------ vie : symboles, ruban, étincelles */
.glyphs { position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.glyphs span { position: absolute; font: 800 var(--s, 28px) var(--display); color: var(--c, #e4d8ff); opacity: 0.16; text-shadow: 0 0 18px currentColor; animation: rise var(--t, 30s) linear infinite; animation-delay: var(--dl, 0s); will-change: transform; }
@keyframes rise { from { transform: translate3d(0, 110vh, 0) rotate(0deg); } to { transform: translate3d(var(--dx, 40px), -20vh, 0) rotate(var(--r, 180deg)); } }
.ribbon { position: relative; z-index: 3; margin: -30px -20px 0; transform: rotate(-2deg); background: linear-gradient(90deg, #ff7ad9, #9b7cf0 45%, #8fffd2); box-shadow: 0 10px 40px rgba(155, 124, 240, 0.45); overflow: hidden; }
.ribbon-track { display: flex; width: max-content; animation: marquee 32s linear infinite; }
.ribbon-track span { padding: 14px 0; font: 700 1rem var(--retro); letter-spacing: 0.22em; color: #1a0b3b; white-space: nowrap; }
@keyframes marquee { to { transform: translateX(-50%); } }
.spark { position: fixed; z-index: 60; width: 6px; height: 6px; margin: -3px 0 0 -3px; border-radius: 50%; pointer-events: none; background: var(--c); box-shadow: 0 0 10px var(--c); animation: spark 0.8s ease-out forwards; }
@keyframes spark { to { transform: translate(var(--x), var(--y)) scale(0); opacity: 0; } }

/* ------------------------------------------------------------ mini-défi */
.tryit { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; align-items: center; padding: 40px; }
.tryit-text p { color: var(--muted); margin: 0 0 10px; }
.streak b { font: 800 1.6rem var(--display); color: var(--mint); }
.door { display: grid; gap: 18px; justify-items: center; }
.door-panel { position: relative; width: min(340px, 100%); padding: 34px 20px; border-radius: 22px; text-align: center; background: linear-gradient(180deg, #2b1a5c, #160b33); border: 2px solid rgba(155, 124, 240, 0.7); box-shadow: inset 0 0 30px rgba(155, 124, 240, 0.35), 0 0 40px rgba(155, 124, 240, 0.25); transition: transform 0.25s, box-shadow 0.3s, border-color 0.3s; }
.door-panel::before, .door-panel::after { content: ''; position: absolute; top: 14px; bottom: 14px; width: 6px; border-radius: 4px; background: repeating-linear-gradient(#9b7cf0 0 10px, transparent 10px 18px); opacity: 0.6; }
.door-panel::before { left: 14px; } .door-panel::after { right: 14px; }
.door-calc { font: 800 clamp(2rem, 5vw, 3rem) var(--display); letter-spacing: 0.02em; }
.door.open .door-panel { border-color: var(--mint); box-shadow: inset 0 0 40px rgba(143, 255, 210, 0.45), 0 0 70px rgba(143, 255, 210, 0.5); transform: scale(1.04); }
.door.wrong .door-panel { animation: shake 0.4s; border-color: var(--pink); }
@keyframes shake { 20%, 60% { transform: translateX(-10px); } 40%, 80% { transform: translateX(10px); } }
.choices { display: flex; gap: 12px; }
.choices button { min-width: 82px; padding: 14px 18px; border-radius: 18px; border: 1px solid rgba(255, 255, 255, 0.4); cursor: pointer; font: 800 1.5rem var(--display); color: var(--ink); background: rgba(255, 255, 255, 0.1); backdrop-filter: blur(8px); transition: transform 0.15s, background 0.2s; }
.choices button:hover { transform: translateY(-3px); background: rgba(255, 255, 255, 0.2); }

/* ------------------------------------------------------------ costumes */
.parade { display: flex; justify-content: center; align-items: flex-end; gap: clamp(8px, 3vw, 34px); margin-top: 50px; padding: 30px 10px 0; position: relative; }
.parade::after { content: ''; position: absolute; left: 10%; right: 10%; bottom: -10px; height: 30px; border-radius: 50%; background: radial-gradient(rgba(155, 124, 240, 0.55), transparent 70%); filter: blur(4px); }
.parade img { height: clamp(110px, 18vw, 210px); width: auto; filter: drop-shadow(0 14px 18px rgba(0, 0, 0, 0.5)); animation: hop 2.4s ease-in-out infinite; animation-delay: calc(var(--i) * 0.18s); transition: transform 0.3s; position: relative; z-index: 1; }
.parade img.star { height: clamp(130px, 21vw, 250px); }
.parade img:hover { transform: translateY(-14px) scale(1.06); }
@keyframes hop { 0%, 70%, 100% { translate: 0 0; } 80% { translate: 0 -18px; } 90% { translate: 0 0; } }

/* ------------------------------------------------------------ sections */
.section { padding: 120px max(16px, 6vw); max-width: 1240px; margin: 0 auto; }
.cards3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 48px; }
.card { padding: 30px 28px; transform-style: preserve-3d; transition: transform 0.25s ease-out; }
.card p, .panel p { color: var(--muted); margin: 0; }
.icon { font-size: 2.2rem; margin-bottom: 14px; width: 64px; height: 64px; display: grid; place-items: center; border-radius: 20px; background: rgba(255, 255, 255, 0.1); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4); }

/* apparition au défilement */
[data-reveal] { opacity: 0; transform: translateY(46px) scale(0.98); filter: blur(3px); transition: opacity 0.9s cubic-bezier(.2, .7, .2, 1) var(--d, 0s), transform 0.9s cubic-bezier(.2, .7, .2, 1) var(--d, 0s), filter 0.9s var(--d, 0s); }
[data-reveal].in { opacity: 1; transform: none; filter: none; }

/* ------------------------------------------------------------ mondes */
.worlds { position: relative; height: 420vh; }
.worlds-sticky { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; display: flex; flex-direction: column; justify-content: center; }
.worlds-head { padding: 0 max(16px, 6vw); margin-bottom: 28px; }
.worlds-progress { height: 4px; width: min(420px, 70vw); background: rgba(255, 255, 255, 0.12); border-radius: 4px; overflow: hidden; }
.worlds-progress span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--pink), var(--violet), var(--mint)); }
.worlds-track { display: flex; gap: 28px; padding: 0 max(16px, 6vw); will-change: transform; }
.world { flex: 0 0 min(78vw, 640px); height: min(62vh, 520px); display: flex; flex-direction: column; }
.world-img { flex: 1; background: var(--img) center / cover; transform: scale(1.12); transition: transform 1.2s; border-bottom: 1px solid var(--line); }
.world.active .world-img { transform: scale(1); }
.world-body { padding: 22px 26px 26px; }
.world-body p { margin: 0; color: var(--muted); }
.tag { font-family: var(--retro); font-size: 0.7rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--pink); }

/* ------------------------------------------------------------ progrès */
.split { display: grid; grid-template-columns: 1.15fr 1fr; gap: 22px; margin-top: 48px; }
.panel { padding: 30px; }
.panel.small { padding: 22px 26px; }
.stack { display: grid; gap: 22px; }
.beforeafter { margin-top: 26px; display: grid; gap: 14px; }
.beforeafter > div { display: grid; grid-template-columns: 110px 1fr 36px; align-items: center; gap: 12px; }
.beforeafter .label { font-family: var(--retro); font-size: 0.72rem; letter-spacing: 0.08em; color: var(--muted); }
.bar { height: 14px; border-radius: 10px; background: rgba(255, 255, 255, 0.08); overflow: hidden; box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.4); }
.bar i { display: block; height: 100%; width: 0; border-radius: inherit; background: linear-gradient(90deg, var(--violet), var(--pink)); transition: width 1.4s cubic-bezier(.2, .7, .2, 1) 0.3s; }
.in .bar i { width: var(--w); }
.beforeafter b { font-family: var(--display); font-size: 1.4rem; text-align: right; }
.note { font-size: 0.8rem; color: var(--muted); margin: 4px 0 0; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 56px; text-align: center; }
.stats b { display: block; font-family: var(--display); font-size: clamp(2.4rem, 5vw, 3.6rem); line-height: 1; }
.stats span { color: var(--muted); font-size: 0.95rem; }

/* ------------------------------------------------------------ histoire */
.timeline { position: relative; list-style: none; padding: 0; margin: 60px auto 0; max-width: 900px; }
.timeline::before { content: ''; position: absolute; left: 50%; top: 0; bottom: 0; width: 2px; background: rgba(255, 255, 255, 0.12); }
.timeline::after { content: ''; position: absolute; left: 50%; top: 0; width: 2px; height: var(--fill, 0%); background: linear-gradient(var(--mint), var(--violet), var(--pink)); box-shadow: 0 0 16px var(--violet); }
.timeline li { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 60px; margin-bottom: 44px; }
.timeline li::before { content: ''; position: absolute; left: 50%; top: 26px; width: 16px; height: 16px; margin-left: -8px; border-radius: 50%; background: var(--bg2); border: 2px solid var(--violet); z-index: 1; transition: background 0.4s, box-shadow 0.4s; }
.timeline li.in::before { background: var(--mint); box-shadow: 0 0 18px var(--mint); }
.timeline .date { font-family: var(--retro); font-size: 0.85rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--mint); text-align: right; padding-top: 18px; }
.timeline .glass { padding: 20px 24px; }
.timeline .glass p { margin: 0; color: var(--muted); }
.timeline li:nth-child(even) .date { order: 2; text-align: left; }
.timeline li:nth-child(even) .glass { order: 1; }
.glow { box-shadow: 0 0 60px rgba(143, 255, 210, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.45); }

/* ------------------------------------------------------------ bêta */
.beta { display: grid; grid-template-columns: 1fr 220px; gap: 30px; align-items: center; padding: 44px; }
.promises { padding: 0; list-style: none; margin: 18px 0 22px; display: grid; gap: 14px; }
.promises li { padding-left: 34px; position: relative; color: var(--muted); }
.promises li::before { content: '✓'; position: absolute; left: 0; top: 0; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font-size: 0.8rem; background: rgba(143, 255, 210, 0.18); color: var(--mint); }
.promises b { color: var(--ink); }
.beta-pix { height: 200px; width: auto; justify-self: center; }
.privacy .promises { list-style: none; padding: 0; display: grid; gap: 12px; }
.promises.no li::before { content: '✕'; background: rgba(255, 122, 217, 0.18); color: #ff7ad9; }
.privacy .note { color: var(--muted); font-size: 0.9rem; }
.footer a { color: inherit; }
button.btn { border: 0; cursor: pointer; }
[hidden] { display: none !important; }

/* ------------------------------------------------------------ installer */
.install { margin-top: 40px; padding: 10px; }
.tabs { display: flex; gap: 6px; padding: 6px; border-radius: 22px; background: rgba(0, 0, 0, 0.2); overflow-x: auto; }
.tabs button { flex: 1; min-width: max-content; border: 0; cursor: pointer; padding: 12px 16px; border-radius: 16px; font: 600 0.95rem var(--body); color: var(--muted); background: transparent; transition: background 0.2s, color 0.2s; }
.tabs button[aria-selected='true'] { color: #1a0b3b; background: linear-gradient(180deg, #fff, #e4d8ff); box-shadow: 0 6px 18px rgba(155, 124, 240, 0.45); }
.tabpanels { padding: 26px 28px 20px; }
.tabpanels ol { margin: 0; padding-left: 1.4em; display: none; gap: 10px; }
.tabpanels ol.on { display: grid; animation: pop 0.4s ease-out; }
@keyframes pop { from { opacity: 0; transform: translateY(10px); } }
.tabpanels li { color: var(--muted); }
.tabpanels li b { color: var(--ink); }
.key { display: inline-grid; place-items: center; min-width: 1.7em; height: 1.7em; padding: 0 0.3em; border-radius: 8px; background: rgba(255, 255, 255, 0.12); border: 1px solid var(--line); font-size: 0.9em; }

/* ------------------------------------------------------------ fin */
.final { padding: 80px max(16px, 6vw) 120px; display: grid; place-items: center; }
.final-card { text-align: center; padding: 56px max(24px, 6vw); max-width: 760px; }
.final-card p { color: var(--muted); margin: 0 0 28px; }
.final-logo { width: min(320px, 70%); margin: 0 auto 18px; }
.footer { text-align: center; color: var(--muted); font-size: 0.9rem; padding: 0 16px 40px; }

/* ------------------------------------------------------------ téléphone */
@media (max-width: 860px) {
  body { font-size: 16px; }
  .topbar nav { display: none; }
  .topbar .btn-small { margin-left: auto; }
  .hero { grid-template-columns: 1fr; padding-top: 110px; text-align: left; }
  .hero-stage { height: 380px; order: -1; }
  .hero-kid { height: 320px; left: 40%; }
  .hero-stage::after { left: 40%; width: 180px; }
  .halo { width: 340px; height: 340px; }
  .pix-wrap { left: 62%; top: 18%; }
  .hero-pix { height: 100px; }
  .bubble { font-size: 0.8rem; max-width: 140px; }
  .planet { width: 120%; left: 60%; }
  .cards3, .split, .stats { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr 1fr; }
  .timeline::before, .timeline::after, .timeline li::before { left: 10px; }
  .timeline li { grid-template-columns: 1fr; gap: 8px; padding-left: 36px; }
  .timeline .date, .timeline li:nth-child(even) .date { text-align: left; order: 0; padding-top: 0; }
  .timeline li:nth-child(even) .glass { order: 1; }
  .beta { grid-template-columns: 1fr; padding: 28px 22px; }
  .tryit { grid-template-columns: 1fr; padding: 28px 20px; }
  .ribbon { margin-top: -10px; }
  .beta-pix { display: none; }
  .world { flex-basis: 84vw; height: 60vh; }
  .section { padding-top: 90px; padding-bottom: 90px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  [data-reveal] { opacity: 1; transform: none; filter: none; }
  html { scroll-behavior: auto; }
}
