/* Page d'accueil d'Avanti. Pas de script (CSP) : toutes les animations sont en CSS. */
:root {
  color-scheme: light;
  --night: #0c1233;
  --night-2: #172052;
  --indigo: #4253e0;
  --indigo-soft: #aab5ff;
  --gold: #f5bd39;
  --gold-deep: #9b6a00;
  --mint: #6dd0b8;
  --coral: #ff8a6b;
  --paper: #f7f5ef;
  --card: #fff;
  --ink: #141a3d;
  --muted: #5a6078;
  --line: #e4e1d6;
  --on-night: #e9ecff;
  --on-night-muted: #b8bedb;
  --radius-lg: 28px;
  --radius: 18px;
  --ease: cubic-bezier(.16, 1, .3, 1);
  --sans: Inter, "Segoe UI Variable", "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Times New Roman", serif;
  --gutter: clamp(16px, 4vw, 40px);
  font-family: var(--sans);
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body { margin: 0; overflow-x: hidden; background: var(--paper); color: var(--ink); font-size: 16px; line-height: 1.6; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
a:focus-visible, summary:focus-visible, .btn:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
h1, h2, h3, p, figure { margin: 0; }
h2 { font-size: clamp(34px, 5vw, 60px); font-weight: 800; letter-spacing: -.045em; line-height: 1.02; }
h2 em, h1 em { font-family: var(--serif); font-style: italic; font-weight: 500; letter-spacing: -.02em; }
h3 { font-size: 21px; font-weight: 750; letter-spacing: -.03em; line-height: 1.2; }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 var(--gutter); }

.skip-link { position: absolute; top: -60px; left: 16px; z-index: 50; padding: 10px 14px; border-radius: 10px; background: var(--gold); color: var(--night); font-weight: 700; }
.skip-link:focus { top: 12px; }

/* --- Boutons et petits éléments --- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 50px; padding: 13px 22px; border: 1px solid transparent; border-radius: 999px; font-size: 15px; font-weight: 750; text-decoration: none; transition: transform .25s var(--ease), background-color .25s, border-color .25s, box-shadow .25s; }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(.98); }
.btn-gold { background: var(--gold); color: var(--night); box-shadow: 0 10px 30px -10px rgb(245 189 57 / .7); }
.btn-gold:hover { background: #ffcb52; box-shadow: 0 16px 36px -12px rgb(245 189 57 / .85); }
.btn-ghost { border-color: rgb(255 255 255 / .28); color: #fff; background: rgb(255 255 255 / .06); }
.btn-ghost:hover { border-color: rgb(255 255 255 / .6); background: rgb(255 255 255 / .12); }
.btn-small { min-height: 40px; padding: 8px 16px; font-size: 13px; white-space: nowrap; }
.kicker { display: inline-flex; align-items: center; gap: 10px; margin-bottom: 18px; color: var(--gold); font-size: 12px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
.kicker-ink { color: var(--indigo); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 0 rgb(245 189 57 / .6); animation: pulse 2.4s infinite; }
.fine { margin-top: 18px; color: var(--muted); font-size: 13px; }

/* --- En-tête --- */
.topbar { position: sticky; top: 0; z-index: 20; background: rgb(12 18 51 / .82); backdrop-filter: blur(14px) saturate(140%); -webkit-backdrop-filter: blur(14px) saturate(140%); border-bottom: 1px solid rgb(255 255 255 / .08); }
.topbar-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; max-width: 1200px; margin: 0 auto; padding: 12px var(--gutter); color: #fff; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.brand img { border-radius: 10px; }
.brand span { font-size: 21px; font-weight: 800; letter-spacing: -.05em; }
.topnav { display: flex; gap: 28px; }
.topnav a { position: relative; color: var(--on-night-muted); font-size: 14px; font-weight: 600; text-decoration: none; transition: color .2s; }
.topnav a::after { position: absolute; right: 0; bottom: -6px; left: 0; height: 2px; border-radius: 2px; background: var(--gold); content: ""; transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease); }
.topnav a:hover { color: #fff; }
.topnav a:hover::after { transform: scaleX(1); }
.lang-switch { display: flex; gap: 2px; margin-left: auto; padding: 3px; border: 1px solid rgba(255, 255, 255, .18); border-radius: 999px; }
.lang-switch a { padding: 4px 10px; border-radius: 999px; color: var(--on-night-muted); font-size: 12px; font-weight: 700; letter-spacing: .06em; text-decoration: none; transition: color .2s, background-color .2s; }
.lang-switch a:hover { color: #fff; }
.lang-switch a[aria-current="true"] { background: var(--gold); color: var(--night); }
.lang-switch a:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.fr-only { opacity: .7; font-size: .85em; }

/* --- Héros --- */
.hero { position: relative; overflow: hidden; padding: clamp(48px, 8vw, 96px) 0 34px; background: radial-gradient(120% 90% at 80% 10%, #26318a 0%, var(--night-2) 42%, var(--night) 100%); color: #fff; }
.aurora { position: absolute; inset: 0; pointer-events: none; }
.aurora span { position: absolute; width: 46vmax; height: 46vmax; border-radius: 50%; filter: blur(60px); opacity: .45; animation: drift 22s ease-in-out infinite alternate; }
.aurora span:nth-child(1) { top: -20vmax; left: -12vmax; background: #3443c9; }
.aurora span:nth-child(2) { right: -18vmax; bottom: -26vmax; background: #6a3fb8; animation-duration: 28s; animation-delay: -6s; }
.aurora span:nth-child(3) { top: 20%; left: 40%; width: 24vmax; height: 24vmax; background: rgb(245 189 57 / .45); opacity: .25; animation-duration: 18s; }
.hero-inner { position: relative; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); align-items: center; gap: 40px; max-width: 1200px; margin: 0 auto; padding: 0 var(--gutter); }
.hero h1 { margin-bottom: 22px; font-size: clamp(46px, 7.2vw, 92px); font-weight: 820; letter-spacing: -.055em; line-height: .96; }
.hero h1 em { color: var(--gold); }
.lead { max-width: 520px; margin-bottom: 30px; color: var(--on-night-muted); font-size: clamp(16px, 1.6vw, 19px); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-facts { display: flex; flex-wrap: wrap; gap: 14px 34px; margin: 38px 0 0; padding: 22px 0 0; border-top: 1px solid rgb(255 255 255 / .12); list-style: none; }
.hero-facts li { display: grid; }
.hero-facts strong { font-size: 24px; font-weight: 800; letter-spacing: -.03em; }
.hero-facts span { color: var(--on-night-muted); font-size: 13px; }
.hero-footnote { position: relative; max-width: 1200px; margin: 40px auto 0; padding: 0 var(--gutter); color: rgb(184 190 219 / .7); font-size: 12px; }

.hero-stage { position: relative; min-height: 600px; }
.device { position: relative; overflow: hidden; width: 270px; border: 9px solid #05081c; border-radius: 40px; background: #05081c; box-shadow: 0 40px 80px -30px rgb(0 0 0 / .65), 0 0 0 1px rgb(255 255 255 / .12); }
.device img { border-radius: 31px; }
.device-front { position: absolute; top: 10px; right: 12%; z-index: 2; width: 290px; }
.device-back { position: absolute; top: 90px; left: 2%; width: 250px; opacity: .92; rotate: -8deg; }
.float { animation: float 7s ease-in-out infinite; }
.float-slow { animation: float 9s ease-in-out -3s infinite; }
.bubble { position: absolute; z-index: 3; padding: 10px 14px; border-radius: 16px; background: rgb(255 255 255 / .96); color: var(--ink); font-size: 13px; box-shadow: 0 18px 40px -16px rgb(0 0 0 / .55); opacity: 0; animation: pop .7s var(--ease) forwards, float 8s ease-in-out infinite; }
.bubble b { color: var(--indigo); }
.bubble-a { top: 40px; left: 0; animation-delay: .9s, 1.6s; }
.bubble-b { bottom: 120px; left: 6%; animation-delay: 1.2s, 2s; }
.bubble-c { right: 0; bottom: 40px; animation-delay: 1.5s, 2.4s; }
.check { display: inline-grid; width: 20px; height: 20px; margin-right: 6px; place-items: center; border-radius: 50%; background: #e2f4ee; color: #0b806b; font-weight: 800; }

.rise { opacity: 0; animation: rise .9s var(--ease) forwards; }
.r1 { animation-delay: .05s; } .r2 { animation-delay: .15s; } .r3 { animation-delay: .3s; } .r4 { animation-delay: .45s; } .r5 { animation-delay: .6s; }

/* --- Bande de mots allemands --- */
.ticker { overflow: hidden; padding: 16px 0; background: var(--gold); color: var(--night); }
.ticker-track { display: flex; width: max-content; animation: marquee 38s linear infinite; }
.ticker-track span { padding: 0 26px; font-family: var(--serif); font-size: 22px; font-style: italic; white-space: nowrap; }
.ticker-track span::after { margin-left: 52px; content: "✦"; font-family: var(--sans); font-size: 14px; font-style: normal; }

/* --- Sections : titres --- */
.section-head { max-width: 760px; margin: 0 auto 48px; text-align: center; }
.section-head > p:last-child:not(.kicker) { max-width: 560px; margin: 16px auto 0; color: var(--muted); font-size: 17px; }
.section-head-left { margin-left: 0; text-align: left; }

/* --- Visite --- */
.tour { padding: clamp(72px, 10vw, 120px) 0 clamp(56px, 8vw, 90px); }
.tour .section-head { padding: 0 var(--gutter); }
.tour h2 em { color: var(--indigo); }
.tour-viewport { overflow-x: auto; padding: 10px 0 30px; scroll-snap-type: x mandatory; scrollbar-width: thin; }
.tour-track { display: flex; gap: 26px; width: max-content; margin: 0 auto; padding: 0 var(--gutter); list-style: none; }
.tour-item { scroll-snap-align: center; width: 196px; }
.tour-item .device { width: 196px; border-width: 7px; border-radius: 34px; transition: transform .45s var(--ease), box-shadow .45s var(--ease); }
.tour-item .device img { border-radius: 27px; }
.tour-item:nth-child(even) { margin-top: 46px; }
.tour-item:hover .device { transform: translateY(-10px) rotate(-1.5deg); box-shadow: 0 50px 80px -30px rgb(20 26 61 / .55); }
.tour-item p { display: grid; gap: 2px; margin-top: 16px; color: var(--muted); font-size: 14px; }
.tour-item b { color: var(--ink); font-size: 17px; }

/* --- Méthode : tuiles --- */
.method { padding: clamp(72px, 10vw, 120px) 0; background: var(--card); }
.method h2 em { color: var(--indigo); }
.bento { display: grid; grid-template-columns: repeat(6, 1fr); grid-auto-rows: minmax(240px, auto); gap: 16px; }
.tile { position: relative; overflow: hidden; padding: 28px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--paper); transition: translate .4s var(--ease), box-shadow .4s var(--ease); }
.tile:hover { translate: 0 -4px; box-shadow: 0 30px 60px -36px rgb(20 26 61 / .45); }
.tile h3 { margin-bottom: 10px; }
.tile > p:not(.tile-label) { max-width: 360px; color: var(--muted); font-size: 15px; }
.tile-label { margin-bottom: 12px; color: var(--indigo); font-size: 11px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
.tile-lesson { grid-column: span 4; grid-row: span 2; padding-right: 300px; background: linear-gradient(135deg, #eef0ff, #f7f5ef 70%); }
.tile-lesson h3 { font-size: clamp(26px, 3vw, 36px); }
.device-peek { position: absolute; right: 36px; bottom: -120px; width: 240px; border-width: 7px; border-radius: 34px; rotate: 6deg; transition: transform .5s var(--ease); }
.device-peek img { border-radius: 27px; }
.tile:hover .device-peek { transform: translateY(-16px); }
.tile-listen { grid-column: span 2; background: var(--night-2); border-color: transparent; color: #fff; }
.tile-listen .tile-label { color: var(--gold); }
.tile-listen > p:not(.tile-label) { color: var(--on-night-muted); }
.wave { display: flex; align-items: center; gap: 5px; height: 56px; margin-top: 22px; }
.wave span { width: 6px; height: 100%; border-radius: 6px; background: var(--indigo-soft); transform-origin: center; animation: wave 1.3s ease-in-out infinite; }
.wave span:nth-child(3n) { background: var(--gold); }
.wave span:nth-child(4n) { background: var(--mint); }
.wave span:nth-child(1) { animation-delay: -1.2s; } .wave span:nth-child(2) { animation-delay: -1.1s; } .wave span:nth-child(3) { animation-delay: -.9s; }
.wave span:nth-child(4) { animation-delay: -.7s; } .wave span:nth-child(5) { animation-delay: -.5s; } .wave span:nth-child(6) { animation-delay: -.35s; }
.wave span:nth-child(7) { animation-delay: -.2s; } .wave span:nth-child(8) { animation-delay: -1s; } .wave span:nth-child(9) { animation-delay: -.6s; }
.wave span:nth-child(10) { animation-delay: -.8s; } .wave span:nth-child(11) { animation-delay: -.4s; } .wave span:nth-child(12) { animation-delay: -.1s; }
.tile-write { grid-column: span 2; background: #fff8e6; border-color: #f1e2b4; }
.tile-write .tile-label { color: var(--gold-deep); }
.correction { margin-top: 18px; padding: 12px 14px; border-radius: 12px; background: #fff; font-family: var(--serif); font-size: 18px; font-style: italic; }
.correction s { color: #c0392b; text-decoration-thickness: 2px; }
.correction ins { color: #0b806b; font-weight: 700; text-decoration: none; }
.tile-tutor { grid-column: span 3; grid-row: span 2; padding-bottom: 300px; background: linear-gradient(160deg, #1e2766, var(--night)); border-color: transparent; color: #fff; }
.tile-tutor .tile-label { color: var(--gold); }
.tile-tutor > p:not(.tile-label) { color: var(--on-night-muted); }
.tile-tutor .device-peek { right: 50%; bottom: -200px; translate: 50% 0; rotate: 0deg; }
.tile-review { grid-column: span 3; grid-row: span 2; background: #eaf7f2; border-color: #cdebdf; }
.tile-review .tile-label { color: #0b806b; }
.cards-stack { position: relative; height: 210px; margin: 26px 0 0; padding: 0; list-style: none; }
.cards-stack li { position: absolute; left: 50%; display: grid; width: min(260px, 80%); height: 120px; place-items: center; border-radius: 18px; background: #fff; box-shadow: 0 20px 40px -24px rgb(11 128 107 / .6); font-size: 26px; font-weight: 800; letter-spacing: -.03em; translate: -50% 0; animation: deal 6s var(--ease) infinite; }
.cards-stack li:nth-child(1) { top: 0; rotate: -7deg; opacity: .55; animation-delay: -4s; }
.cards-stack li:nth-child(2) { top: 22px; rotate: 4deg; opacity: .8; animation-delay: -2s; }
.cards-stack li:nth-child(3) { top: 44px; rotate: -1deg; }

/* --- Parcours --- */
.path { padding: clamp(72px, 10vw, 120px) 0; }
.path h2 em { color: var(--indigo); }
.steps { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin: 0; padding: 0; list-style: none; counter-reset: none; }
.steps::before { position: absolute; top: 31px; right: 16%; left: 16%; height: 2px; background: repeating-linear-gradient(90deg, var(--indigo) 0 10px, transparent 10px 18px); content: ""; opacity: .35; }
.step { position: relative; padding: 0 12px; text-align: center; }
.step-num { position: relative; display: grid; width: 62px; height: 62px; margin: 0 auto 20px; place-items: center; border-radius: 50%; background: var(--indigo); color: #fff; font-size: 24px; font-weight: 800; box-shadow: 0 0 0 8px var(--paper), 0 18px 30px -12px rgb(66 83 224 / .7); }
.step:nth-child(2) .step-num { background: var(--gold); color: var(--night); }
.step:nth-child(3) .step-num { background: var(--mint); color: var(--night); }
.step h3 { margin-bottom: 8px; }
.step p { max-width: 320px; margin: 0 auto; color: var(--muted); font-size: 15px; }
.note { max-width: 820px; margin: 56px auto 0; padding: 16px 20px; border-left: 4px solid var(--gold); border-radius: 0 14px 14px 0; background: #fff4d6; color: #4f431c; font-size: 14px; }

/* --- Examens --- */
.exams { position: relative; overflow: hidden; padding: clamp(72px, 10vw, 120px) 0; background: var(--night); color: #fff; }
.exams h2 em { color: var(--gold); }
.exams-inner { display: grid; grid-template-columns: 1.05fr .95fr; align-items: center; gap: 56px; }
.exams-copy > p:not(.kicker, .fine) { margin-top: 20px; color: var(--on-night-muted); font-size: 17px; }
.exams .fine { color: rgb(184 190 219 / .75); }
.ticks { display: grid; gap: 12px; margin: 28px 0 0; padding: 0; list-style: none; font-weight: 600; }
.ticks li { display: flex; gap: 12px; align-items: baseline; }
.ticks li::before { flex: 0 0 auto; color: var(--mint); content: "✓"; font-weight: 800; }
.exams-stage { position: relative; display: grid; min-height: 560px; place-items: center; }
.tilt-r { rotate: 4deg; }
.tilt-l { rotate: -5deg; }
.timer { position: absolute; top: 30px; left: 4%; z-index: 2; display: grid; width: 120px; height: 120px; place-items: center; }
.timer svg { position: absolute; inset: 0; rotate: -90deg; }
.timer circle { fill: rgb(12 18 51 / .85); stroke: rgb(255 255 255 / .15); stroke-width: 8; }
.timer .timer-arc { fill: none; stroke: var(--gold); stroke-dasharray: 327; stroke-linecap: round; animation: countdown 12s linear infinite; }
.timer span { position: relative; font-size: 22px; font-weight: 800; font-variant-numeric: tabular-nums; }

/* --- Communauté --- */
.community { padding: clamp(72px, 10vw, 120px) 0; background: linear-gradient(180deg, #eef0ff, var(--paper)); }
.community h2 em { color: var(--indigo); }
.community-inner { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 56px; }
.community-stage { position: relative; display: flex; align-items: flex-start; justify-content: center; min-height: 580px; }
.community-stage .device { width: 240px; }
.community-stage .tilt-l { margin-top: 60px; }
.community-stage .lift { margin-left: -50px; }
.community-copy > p:not(.kicker, .fine) { margin-top: 20px; color: var(--muted); font-size: 17px; }

/* --- Installer --- */
.install { padding: clamp(72px, 10vw, 120px) 0; background: var(--night-2); color: #fff; }
.install h2 em { color: var(--gold); }
.install .section-head > p:last-child { color: var(--on-night-muted); }
.install-grid { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 16px; }
.install-card { display: flex; flex-direction: column; align-items: flex-start; padding: 28px; border: 1px solid rgb(255 255 255 / .12); border-radius: var(--radius-lg); background: rgb(255 255 255 / .05); transition: translate .4s var(--ease), border-color .4s; }
.install-card:hover { translate: 0 -4px; border-color: rgb(255 255 255 / .3); }
.install-card .tile-label { color: var(--gold); }
.install-card h3 { margin-bottom: 10px; }
.install-card > p:not(.tile-label) { flex: 1; margin-bottom: 24px; color: var(--on-night-muted); font-size: 15px; }
.install-card .btn { width: 100%; }
.install-card small { width: 100%; margin-top: 12px; color: var(--on-night-muted); font-size: 12px; text-align: center; }
.install-main { background: linear-gradient(150deg, #3443c9, #24308f); border-color: transparent; }
.install-note { max-width: 820px; margin: 32px auto 0; color: var(--on-night-muted); font-size: 14px; text-align: center; }
.install-note strong { color: #fff; }

/* --- FAQ --- */
.faq { padding: clamp(72px, 10vw, 120px) 0; }
.faq-inner { display: grid; grid-template-columns: .8fr 1.2fr; gap: 56px; }
.faq h2 em { color: var(--indigo); }
.faq-head > p:last-child { margin-top: 20px; color: var(--muted); font-size: 15px; }
.faq-list { border-top: 1px solid var(--line); }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list summary { position: relative; padding: 22px 44px 22px 0; cursor: pointer; font-size: 17px; font-weight: 700; list-style: none; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { position: absolute; top: 18px; right: 0; display: grid; width: 30px; height: 30px; place-items: center; border-radius: 50%; background: #eef0ff; color: var(--indigo); content: "+"; font-size: 20px; font-weight: 500; transition: rotate .3s var(--ease), background-color .3s; }
.faq-list details[open] summary::after { background: var(--indigo); color: #fff; rotate: 45deg; }
.faq-list details p { max-width: 640px; margin: -6px 0 22px; color: var(--muted); font-size: 15px; }
.faq-list details[open] p { animation: rise .5s var(--ease); }

/* --- Appel final --- */
.final { position: relative; overflow: hidden; padding: clamp(80px, 11vw, 130px) 0; background: var(--night); color: #fff; text-align: center; }
.aurora-soft span { opacity: .35; }
.final-inner { position: relative; }
.final h2 { font-size: clamp(42px, 7vw, 86px); }
.final h2 em { color: var(--gold); }
.final p { margin: 16px 0 30px; color: var(--on-night-muted); font-size: 18px; }

/* --- Pied de page --- */
.footer { padding: 30px 0; background: #070b24; color: var(--on-night-muted); }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px 30px; }
.footer .brand { color: #fff; }
.footer .brand span { font-size: 18px; }
.footer nav { display: flex; flex-wrap: wrap; gap: 10px 24px; }
.footer nav a { font-size: 14px; text-decoration: none; }
.footer nav a:hover { color: #fff; text-decoration: underline; text-underline-offset: 4px; }
.footer small { font-size: 12px; }

/* --- Animations --- */
@keyframes rise { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
@keyframes pop { from { opacity: 0; transform: scale(.85); } to { opacity: 1; transform: none; } }
@keyframes float { 0%, 100% { translate: 0 0; } 50% { translate: 0 -14px; } }
@keyframes drift { from { transform: translate(0, 0) scale(1); } to { transform: translate(8vmax, 6vmax) scale(1.15); } }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgb(245 189 57 / .6); } 70%, 100% { box-shadow: 0 0 0 10px rgb(245 189 57 / 0); } }
@keyframes marquee { to { transform: translateX(-50%); } }
@keyframes wave { 0%, 100% { transform: scaleY(.25); } 50% { transform: scaleY(1); } }
@keyframes deal { 0%, 70% { transform: none; } 80% { transform: translateX(140%) rotate(12deg); opacity: 0; } 81% { transform: translateY(-30px); opacity: 0; } 100% { transform: none; } }
@keyframes countdown { from { stroke-dashoffset: 0; } to { stroke-dashoffset: 327; } }
@keyframes reveal { from { opacity: 0; transform: translateY(40px) scale(.98); } to { opacity: 1; transform: none; } }

/* Apparition au défilement, là où le navigateur la connaît (sinon : contenu affiché tel quel). */
@supports (animation-timeline: view()) {
  .reveal { animation: reveal linear both; animation-timeline: view(); animation-range: entry 5% entry 70%; }
}

/* --- Tablette --- */
@media (max-width: 980px) {
  .topnav { display: none; }
  .hero-inner, .exams-inner, .community-inner, .faq-inner { grid-template-columns: 1fr; }
  .hero-stage { min-height: 560px; max-width: 520px; width: 100%; margin: 0 auto; }
  .exams-stage { min-height: 520px; }
  .community-stage { order: 2; }
  .bento { grid-template-columns: repeat(2, 1fr); }
  .tile-lesson, .tile-tutor, .tile-review { grid-column: span 2; grid-row: auto; }
  .tile-listen, .tile-write { grid-column: span 1; }
  .tile-lesson { padding-right: 270px; min-height: 380px; }
  .tile-tutor { padding-bottom: 28px; padding-right: 270px; min-height: 380px; }
  .tile-tutor .device-peek { right: 36px; bottom: -150px; translate: 0 0; rotate: -5deg; }
  .install-grid { grid-template-columns: 1fr; }
}

/* --- Téléphone --- */
@media (max-width: 640px) {
  body { font-size: 15px; }
  .topbar-inner { padding-top: 10px; padding-bottom: 10px; }
  .brand span { font-size: 19px; }
  .hero { padding-top: 40px; }
  .hero-facts { gap: 12px 24px; }
  .hero-facts strong { font-size: 20px; }
  .hero-stage { min-height: 470px; }
  .device-front { right: 2%; width: 220px; }
  .device-back { top: 70px; left: 0; width: 190px; }
  .device { border-width: 7px; border-radius: 32px; }
  .device img { border-radius: 25px; }
  .bubble { font-size: 12px; }
  .bubble-a { top: 6px; }
  .bubble-b { bottom: 80px; left: 0; }
  .bubble-c { bottom: 10px; }
  .ticker-track span { font-size: 18px; }
  .section-head { margin-bottom: 36px; }
  .tour-item, .tour-item .device { width: 200px; }
  .tour-item:nth-child(even) { margin-top: 0; }
  .bento { grid-template-columns: 1fr; }
  .tile-lesson, .tile-tutor, .tile-review, .tile-listen, .tile-write { grid-column: auto; }
  .tile { padding: 24px; }
  .tile-lesson, .tile-tutor { min-height: 0; padding-right: 24px; padding-bottom: 290px; }
  .tile-lesson .device-peek, .tile-tutor .device-peek { right: 50%; bottom: -180px; width: 210px; translate: 50% 0; rotate: 0deg; }
  .steps { grid-template-columns: 1fr; gap: 34px; }
  .steps::before { top: 30px; right: auto; bottom: 30px; left: 30px; width: 2px; height: auto; background: repeating-linear-gradient(180deg, var(--indigo) 0 10px, transparent 10px 18px); }
  .step { display: grid; grid-template-columns: 62px 1fr; column-gap: 18px; padding: 0; text-align: left; }
  .step-num { grid-row: span 2; margin: 0; }
  .step p { margin: 0; }
  .exams-stage { min-height: 470px; }
  .exams-stage .device, .community-stage .device { width: 200px; }
  .timer { top: 0; left: 0; width: 96px; height: 96px; }
  .timer span { font-size: 17px; }
  .community-stage { min-height: 460px; }
  .community-stage .lift { margin-left: -60px; }
  .faq-list summary { font-size: 16px; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
}

/* Mouvements réduits : tout est affiché d'emblée, rien ne bouge. */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .rise, .bubble { opacity: 1; }
  .ticker-track { flex-wrap: wrap; width: auto; justify-content: center; }
  .ticker-track span:nth-child(n + 9) { display: none; }
}
