/* ==========================================================================
   Scorazone — page d'accueil en scrollytelling.

   Direction artistique « Arena » de l'app Flutter (lib/theme/app_colors.dart) :
   Anton pour les chiffres et les titres qui frappent, Archivo pour le reste,
   orange flamme réservé à ce qui est vivant. Les polices sont auto-hébergées
   (assets/fonts) : le site n'appelle aucun domaine externe (voir README, RGPD).

   Deux thèmes, choisis en haut de page (bouton soleil/lune), mémorisés dans
   localStorage, sinon réglage du système : fond BLANC ou NOIR, ombre orange
   derrière le téléphone dans les deux cas. L'app dans le téléphone suit le
   même thème, avec la règle d'Arena : en mode jour, le bloc du score reste
   sombre.
   ========================================================================== */

@font-face { font-family: 'Anton'; font-weight: 400; font-display: swap; src: url('assets/fonts/Anton-Regular.woff2') format('woff2'); }
@font-face { font-family: 'Archivo'; font-weight: 500; font-display: swap; src: url('assets/fonts/Archivo-Medium.woff2') format('woff2'); }
@font-face { font-family: 'Archivo'; font-weight: 600; font-display: swap; src: url('assets/fonts/Archivo-SemiBold.woff2') format('woff2'); }
@font-face { font-family: 'Archivo'; font-weight: 700; font-display: swap; src: url('assets/fonts/Archivo-Bold.woff2') format('woff2'); }
@font-face { font-family: 'Archivo'; font-weight: 800; font-display: swap; src: url('assets/fonts/Archivo-ExtraBold.woff2') format('woff2'); }

:root {
  --orange: #E8460B;
  --orange-light: #FF7A3D;
  --orange-pale: #FF9A6B;
  --flame: linear-gradient(135deg, #FF7A3D 0%, #E8460B 100%);
  --good: #2E9E4F;
  --mid: #FF7A3D;
  --bad: #B4342E;
  --score-dark: #1E1813;

  /* Thème clair (défaut) */
  --bg: #FFFFFF;
  --ink: #14100D;
  --muted: rgba(20, 16, 13, 0.62);
  --line: rgba(20, 16, 13, 0.1);
  --header-bg: rgba(255, 255, 255, 0.72);
  --glow-strength: 0.62;

  /* L'app dans le téléphone, ambiance jour */
  --a-bg: #F3EDE6;
  --a-surface: #FFFFFF;
  --a-surface2: #F1EEE9;
  --a-ink: #241C15;
  --a-muted: #6B6259;
  --a-track: #EFE7DC;
  --a-line: rgba(36, 28, 21, 0.09);
  --a-shadow: 0 10px 24px rgba(36, 28, 21, 0.07);

  --font-display: 'Anton', 'Impact', 'Arial Narrow', sans-serif;
  --font: 'Archivo', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

:root[data-theme="dark"] {
  --bg: #050403;
  --ink: #F5EFE8;
  --muted: rgba(245, 239, 232, 0.62);
  --line: rgba(245, 239, 232, 0.12);
  --header-bg: rgba(5, 4, 3, 0.65);
  --glow-strength: 0.75;
  --good: #3E9E62;

  --a-bg: #14100D;
  --a-surface: #201A15;
  --a-surface2: #2C241D;
  --a-ink: #F5EFE8;
  --a-muted: #B5A99C;
  --a-track: #332A22;
  --a-line: rgba(245, 239, 232, 0.08);
  --a-shadow: none;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  transition: background-color .35s ease, color .35s ease;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; border-radius: 8px; }

.skip-link { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--ink); color: var(--bg); padding: 10px 16px; border-radius: 999px; }
.skip-link:focus { left: 16px; }

/* ── En-tête ─────────────────────────────────────────────────────────── */
.top {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 14px clamp(16px, 4vw, 48px);
  background: var(--header-bg);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 18px; letter-spacing: -0.01em; }
.brand img { width: 32px; height: 32px; border-radius: 9px; }
.top-actions { display: flex; align-items: center; gap: 10px; }

.theme-switch { display: flex; padding: 3px; border-radius: 999px; background: var(--line); }
.theme-switch button {
  width: 34px; height: 30px; border: 0; border-radius: 999px; background: transparent;
  color: var(--muted); cursor: pointer; display: grid; place-items: center; transition: background .2s, color .2s;
}
.theme-switch button svg { width: 17px; height: 17px; }
:root[data-theme="light"] .theme-switch [data-theme-set="light"],
:root[data-theme="dark"] .theme-switch [data-theme-set="dark"] { background: var(--bg); color: var(--orange); box-shadow: 0 2px 8px rgba(0,0,0,.12); }

.lang-picker { position: relative; display: flex; align-items: center; color: var(--muted); }
.lang-picker svg { position: absolute; left: 9px; width: 15px; height: 15px; pointer-events: none; }
.lang-picker select {
  appearance: none; -webkit-appearance: none; border: 1px solid var(--line); background: transparent; color: var(--ink);
  font: 600 13px var(--font); padding: 7px 10px 7px 29px; border-radius: 999px; cursor: pointer;
}
.lang-picker select option { color: #14100D; }

.btn-cta {
  font-weight: 700; font-size: 14px; color: #fff; background: var(--flame);
  padding: 9px 16px; border-radius: 999px; box-shadow: 0 8px 20px rgba(232, 70, 11, .32); white-space: nowrap;
}

/* ── Scène collée ────────────────────────────────────────────────────── */
.story { position: relative; height: 1050vh; }
.stage { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }

.glow {
  position: absolute; left: var(--glow-x, var(--phone-x, 66%)); top: 54%; width: 70vmin; height: 90vmin;
  transform: translate(-50%, -50%) scale(var(--glow-scale, 0.4));
  background: radial-gradient(closest-side, rgba(255, 106, 40, 1), rgba(232, 70, 11, .55) 45%, rgba(232, 70, 11, 0) 100%);
  filter: blur(40px);
  opacity: calc(var(--glow-opacity, 0) * var(--glow-strength));
  pointer-events: none; will-change: transform, opacity;
}

/* Légendes (ordinateur : colonne de gauche) */
.captions { position: absolute; left: clamp(24px, 7vw, 120px); top: 50%; transform: translateY(-42%); width: min(40vw, 540px); }
.cap {
  position: absolute; left: 0; top: 0; width: 100%;
  opacity: 0; transform: translateY(24px); transition: opacity .45s ease, transform .45s ease; pointer-events: none;
}
.cap.on { opacity: 1; transform: none; pointer-events: auto; }
.cap:not(.on) { visibility: hidden; transition: opacity .45s ease, transform .45s ease, visibility 0s .45s; }
.kicker { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--orange); }
.kicker b { font-family: var(--font-display); font-weight: 400; font-size: 15px; letter-spacing: .04em; padding: 3px 8px; border-radius: 6px; background: var(--flame); color: #fff; }
.cap-title { font-family: var(--font-display); font-weight: 400; text-transform: uppercase; font-size: clamp(44px, 5.6vw, 92px); line-height: .95; letter-spacing: .005em; margin: 18px 0 18px; }
.cap p, .outro p { font-size: clamp(16px, 1.35vw, 20px); color: var(--muted); margin: 0; max-width: 30em; }
.flame { background: var(--flame); -webkit-background-clip: text; background-clip: text; color: transparent; }

.scroll-hint { display: inline-flex; align-items: center; gap: 12px; margin-top: 34px; font-weight: 600; font-size: 14px; color: var(--muted); }
.scroll-hint i { width: 22px; height: 34px; border: 2px solid var(--muted); border-radius: 12px; position: relative; }
.scroll-hint i::after { content: ""; position: absolute; left: 50%; top: 6px; width: 4px; height: 7px; margin-left: -2px; border-radius: 2px; background: var(--orange); animation: wheel 1.6s ease-in-out infinite; }
@keyframes wheel { 0% { transform: translateY(0); opacity: 1; } 70% { transform: translateY(11px); opacity: 0; } 100% { opacity: 0; } }

/* ── Le téléphone ────────────────────────────────────────────────────── */
.phone-slot {
  position: absolute; left: var(--phone-x, 66%); top: 54%; width: 414px; height: 868px;
  transform: translate(-50%, -50%) translateY(var(--phone-y, 0px)) scale(calc(var(--phone-scale, .8) * var(--phone-pop, 1)));
  opacity: var(--phone-opacity, 1); will-change: transform, opacity;
}
.phone {
  position: relative; width: 414px; height: 868px; border-radius: 64px; padding: 12px;
  background: linear-gradient(145deg, #3a3330, #0d0b0a 40%, #1c1816);
  box-shadow: inset 0 0 0 2px #4a423d, inset 0 0 0 5px #0a0807, 0 40px 80px rgba(0, 0, 0, .28);
}
.phone-btn { position: absolute; width: 4px; border-radius: 2px; background: #2a2421; }
.phone-btn.b1 { left: -3px; top: 170px; height: 34px; }
.phone-btn.b2 { left: -3px; top: 225px; height: 64px; }
.phone-btn.b3 { right: -3px; top: 250px; height: 96px; }

.screen {
  position: relative; width: 390px; height: 844px; border-radius: 52px; overflow: hidden;
  background: var(--a-bg); color: var(--a-ink); font-family: var(--font); font-size: 14px; line-height: 1.35;
  transition: background-color .35s ease, color .35s ease;
}
.statusbar {
  position: absolute; z-index: 6; inset: 0 0 auto 0; height: 54px; padding: 0 30px 0 34px;
  display: flex; align-items: center; justify-content: space-between; font-weight: 700; font-size: 15px;
  color: var(--sb-color, var(--a-ink));
}
.statusbar .island { position: absolute; left: 50%; top: 11px; width: 120px; height: 34px; margin-left: -60px; border-radius: 20px; background: #000; }
.sb-icons { display: flex; gap: 6px; align-items: center; }
.sb-icons svg { height: 12px; fill: currentColor; }
.sb-icons svg:first-child { width: 18px; }
.sb-icons svg:last-child { width: 26px; }
.home-bar { position: absolute; z-index: 6; bottom: 8px; left: 50%; width: 134px; height: 5px; margin-left: -67px; border-radius: 3px; background: var(--a-ink); opacity: .55; }

.page { position: absolute; inset: 0; will-change: transform, opacity; }

/* Écran 1 : sports */
.page-sports { padding: 62px 18px 0; background: var(--a-bg); }
.ps-head { display: flex; align-items: center; justify-content: space-between; }
.ps-logo { width: 34px; height: 34px; border-radius: 10px; }
.ps-step { display: flex; gap: 5px; }
.ps-step i { width: 22px; height: 4px; border-radius: 2px; background: var(--a-track); }
.ps-step i.on { background: var(--orange); }
.ps-title { font-family: var(--font-display); font-weight: 400; font-size: 34px; line-height: 1; text-transform: uppercase; margin: 18px 0 6px; }
.ps-sub { margin: 0 0 14px; color: var(--a-muted); font-size: 14px; }
.sport-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.tile {
  position: relative; height: 112px; border-radius: 16px; overflow: hidden; background: #111;
  outline: 3px solid transparent; outline-offset: -3px; transition: outline-color .2s, transform .2s;
}
.tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .4s, filter .3s; }
.tile::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.05) 30%, rgba(0,0,0,.72)); transition: background .3s; }
.tile span { position: absolute; z-index: 1; left: 9px; right: 9px; bottom: 8px; color: #fff; font-weight: 800; font-size: 12.5px; line-height: 1.1; }
.tile .check {
  position: absolute; z-index: 2; top: 7px; right: 7px; width: 22px; height: 22px; border-radius: 50%;
  background: var(--orange); transform: scale(0); transition: transform .25s cubic-bezier(.3, 1.6, .5, 1);
}
.tile .check::after { content: ""; position: absolute; left: 7px; top: 4px; width: 6px; height: 11px; border: solid #fff; border-width: 0 2.5px 2.5px 0; transform: rotate(45deg); }
.tile.sel { outline-color: var(--orange); }
.tile.sel::after { background: linear-gradient(180deg, rgba(232,70,11,.18), rgba(140,30,0,.75)); }
.tile.sel .check { transform: scale(1); }
.tile.sel img { transform: scale(1.06); }
.tile.press { transform: scale(.95); }
.ps-foot { position: absolute; left: 18px; right: 18px; bottom: 34px; }

.app-btn {
  display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; height: 52px; border: 0; border-radius: 999px;
  background: var(--a-track); color: var(--a-muted); font-weight: 800; font-size: 16px; transition: background .25s, color .25s, transform .15s;
}
.app-btn.ready { background: var(--flame); color: #fff; box-shadow: 0 10px 24px rgba(232,70,11,.32); }
.app-btn.press { transform: scale(.96); }
.app-btn em { font-style: normal; display: inline-grid; place-items: center; min-width: 24px; height: 24px; padding: 0 6px; border-radius: 12px; background: rgba(255,255,255,.25); font-size: 13px; }
.app-btn em:empty { display: none; }
.app-btn.wide { margin-top: 14px; height: 48px; font-size: 15px; }

/* Écran 2 : fiche match */
.page-match { background: var(--a-bg); transform: translateX(100%); }
.m-hero { position: absolute; z-index: 3; inset: 0 0 auto 0; height: 300px; color: #fff; background: var(--score-dark); overflow: hidden; }
.m-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 60%; }
.m-veil { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(20,16,13,.55) 0%, rgba(20,16,13,.72) 50%, rgba(20,16,13,.95) 100%); }
.m-top { position: absolute; left: 18px; right: 18px; top: 58px; display: flex; align-items: center; justify-content: space-between; }
.m-back, .m-share { width: 34px; height: 34px; border-radius: 50%; background: rgba(255,255,255,.14); display: grid; place-items: center; font-size: 22px; line-height: 1; }
.m-comp { font-weight: 700; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: rgba(255,255,255,.8); }
.m-score { position: absolute; left: 14px; right: 14px; top: 110px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; }
.m-team { display: flex; flex-direction: column; align-items: center; gap: 8px; font-weight: 800; font-size: 14px; text-transform: uppercase; letter-spacing: .04em; }
.m-team img { width: 54px; height: 36px; border-radius: 6px; object-fit: cover; box-shadow: 0 0 0 2px rgba(255,255,255,.85), 0 6px 14px rgba(0,0,0,.35); }
.m-digits { font-family: var(--font-display); font-size: 74px; line-height: 1; display: flex; gap: 10px; align-items: center; }
.m-digits i { font-style: normal; font-size: 46px; color: rgba(255,255,255,.55); }
.m-status { position: absolute; left: 0; right: 0; top: 206px; text-align: center; }
.m-status span { display: inline-block; font-weight: 800; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; padding: 5px 11px; border-radius: 999px; background: rgba(255,255,255,.14); }
.m-scorers { position: absolute; left: 20px; right: 20px; top: 248px; display: flex; justify-content: space-between; font-size: 11.5px; color: rgba(255,255,255,.72); font-weight: 600; }
.m-scorers span::before { content: "⚽ "; }

.m-body { position: absolute; inset: 300px 0 0 0; overflow: hidden; }
.m-scroll { padding: 14px 14px 120px; will-change: transform; }

.card { background: var(--a-surface); border-radius: 22px; padding: 16px; box-shadow: var(--a-shadow); border: 1px solid var(--a-line); }
.card-title { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; margin-bottom: 12px; }
.card-title span { font-family: var(--font-display); font-size: 21px; text-transform: uppercase; letter-spacing: .01em; }
.card-title small { color: var(--a-muted); font-size: 11.5px; font-weight: 600; }

.rate-row { margin-bottom: 9px; }
.rate-label { display: flex; align-items: center; justify-content: space-between; min-height: 22px; font-weight: 700; font-size: 13px; margin-bottom: 5px; }
.rate-val { font-family: var(--font-display); font-weight: 400; font-size: 18px; min-width: 22px; text-align: right; }
.with-flag { display: inline-flex; align-items: center; gap: 7px; }
.with-flag img { width: 20px; height: 14px; border-radius: 3px; object-fit: cover; }
.notches { display: grid; grid-template-columns: repeat(10, 1fr); gap: 4px; height: 27px; }
.notches i { border-radius: 8px; background: var(--a-track); transition: background .25s, box-shadow .2s, transform .15s; }
.notches i.lit { background: var(--c); }
.notches i.sel { box-shadow: inset 0 0 0 2px var(--a-ink); transform: scaleY(1.08); }

.motm-pick { margin-top: 4px; }
.motm-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.player { display: flex; flex-direction: column; align-items: center; gap: 5px; font-size: 11.5px; font-weight: 700; padding: 8px 2px; border-radius: 14px; transition: background .25s; }
.player.sel { background: rgba(232,70,11,.12); color: var(--orange); }
.player.sel .av { box-shadow: 0 0 0 3px var(--orange); }
.player.press { transform: scale(.94); }

.av { position: relative; width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; overflow: hidden; font-weight: 800; font-size: 14px; color: #fff; flex: none; transition: box-shadow .25s; }
.av img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 15%; z-index: 1; background: #fff; }
.av.fr { background: linear-gradient(135deg, #1f3c8f, #0b1e57); }
.av.es { background: linear-gradient(135deg, #c8102e, #8a0a1f); }
.av.me { background: var(--flame); }
.av.c1 { background: #3d5a99; } .av.c2 { background: #b8442c; } .av.c3 { background: #4f6b4a; }
.av.big { width: 62px; height: 62px; font-size: 18px; overflow: visible; }
.av.big img { border-radius: 50%; }
.av.big em { position: absolute; z-index: 2; right: -4px; bottom: -4px; width: 24px; height: 24px; border-radius: 50%; background: var(--flame); display: grid; place-items: center; font-style: normal; font-size: 13px; border: 2px solid var(--a-surface); }

.verdict { position: absolute; left: 14px; right: 14px; top: 14px; opacity: 0; transform: translateY(20px); }
.v-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.v-tile { background: var(--a-surface2); border-radius: 14px; padding: 10px 11px 11px; font-size: 12px; font-weight: 700; color: var(--a-muted); position: relative; }
.v-tile b { display: block; font-family: var(--font-display); font-weight: 400; font-size: 34px; line-height: 1.05; margin-top: 2px; }
.v-tile i { display: block; height: 5px; border-radius: 3px; background: var(--a-track); position: relative; overflow: hidden; margin-top: 4px; }
.v-tile i::after { content: ""; position: absolute; inset: 0 auto 0 0; width: calc(var(--w) * var(--fill, 0)); border-radius: 3px; background: currentColor; }
.good { color: var(--good); } .mid { color: var(--mid); } .bad { color: var(--bad); }
.v-tile i.good, .v-tile i.mid { color: inherit; }
.v-tile b.good + i { color: var(--good); } .v-tile b.mid + i { color: var(--mid); }
.v-motm { display: flex; align-items: center; gap: 14px; margin-top: 12px; padding: 12px; border-radius: 16px; background: linear-gradient(135deg, rgba(255,122,61,.16), rgba(232,70,11,.06)); }
.v-motm-txt { display: flex; flex-direction: column; gap: 1px; }
.v-motm-txt small { font-size: 11px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--orange); }
.v-motm-txt strong { font-family: var(--font-display); font-weight: 400; font-size: 22px; text-transform: uppercase; line-height: 1.1; }
.v-motm-txt > span { font-size: 12px; color: var(--a-muted); font-weight: 600; }
.v-mood { margin-top: 12px; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.v-mood small { font-size: 12px; font-weight: 700; color: var(--a-muted); }
.v-mood div { display: flex; gap: 6px; }
.v-mood div span { font-size: 12px; font-weight: 700; padding: 5px 8px; border-radius: 999px; background: var(--a-surface2); }

.comments { position: absolute; left: 14px; right: 14px; top: 0; opacity: 0; }
.c-head { display: flex; align-items: baseline; justify-content: space-between; margin: 4px 2px 10px; }
.c-head > span:first-child { font-family: var(--font-display); font-size: 21px; text-transform: uppercase; }
.c-sort { font-size: 12px; font-weight: 700; padding: 5px 10px; border-radius: 999px; background: var(--a-surface); border: 1px solid var(--a-line); }
.composer { display: flex; align-items: center; gap: 10px; background: var(--a-surface); border: 1px solid var(--a-line); border-radius: 18px; padding: 9px 9px 9px 10px; margin-bottom: 10px; }
.composer .av { width: 34px; height: 34px; font-size: 13px; }
.c-input { flex: 1; min-height: 20px; font-size: 13.5px; font-weight: 500; position: relative; display: flex; flex-wrap: wrap; align-items: center; }
.c-input .ph { color: var(--a-muted); }
.c-input .caret { display: none; width: 2px; height: 17px; background: var(--orange); margin-left: 1px; animation: blink 1s steps(1) infinite; }
.composer.typing .ph { display: none; }
.composer.typing .caret { display: inline-block; }
@keyframes blink { 50% { opacity: 0; } }
.send { width: 36px; height: 36px; border: 0; border-radius: 50%; background: var(--a-track); color: var(--a-muted); font-size: 14px; flex: none; transition: background .2s, color .2s, transform .15s; }
.send.ready { background: var(--flame); color: #fff; }
.send.press { transform: scale(.88); }

.comment { display: flex; gap: 10px; background: var(--a-surface); border: 1px solid var(--a-line); border-radius: 18px; padding: 12px; margin-bottom: 8px; }
.comment .av { width: 36px; height: 36px; font-size: 13px; }
.c-body { flex: 1; min-width: 0; }
.c-meta { display: flex; align-items: center; gap: 7px; font-size: 12.5px; }
.c-meta .note { font-family: var(--font-display); font-size: 13px; line-height: 1; padding: 4px 6px 3px; border-radius: 6px; background: color-mix(in srgb, currentColor 14%, transparent); }
.c-time { margin-left: auto; color: var(--a-muted); font-size: 11.5px; font-weight: 600; }
.comment p { margin: 5px 0 6px; font-size: 13.5px; line-height: 1.38; font-weight: 500; }
.c-like { font-size: 12px; font-weight: 700; color: var(--a-muted); }
.c-like.liked { color: #E11D48; }
.comment.mine { display: none; border-color: rgba(232,70,11,.5); box-shadow: 0 0 0 3px rgba(232,70,11,.12); }
.comment.mine.show { display: flex; animation: drop .45s cubic-bezier(.2, 1.2, .4, 1); }
@keyframes drop { from { opacity: 0; transform: translateY(-12px) scale(.97); } to { opacity: 1; transform: none; } }

/* Doigt */
.finger { position: absolute; z-index: 8; left: 0; top: 0; width: 46px; height: 46px; margin: -23px 0 0 -23px; opacity: 0; pointer-events: none; transition: opacity .25s; }
.finger i { position: absolute; inset: 0; border-radius: 50%; background: rgba(255,255,255,.55); border: 2px solid rgba(255,255,255,.95); box-shadow: 0 6px 18px rgba(0,0,0,.28), 0 0 0 1px rgba(0,0,0,.08); transition: transform .14s ease; }
.finger.down i { transform: scale(.78); background: rgba(255,122,61,.65); }
.finger.down::after { content: ""; position: absolute; inset: -6px; border-radius: 50%; border: 2px solid rgba(255,122,61,.8); animation: ripple .5s ease-out forwards; }
@keyframes ripple { from { transform: scale(.6); opacity: 1; } to { transform: scale(1.7); opacity: 0; } }

/* Fin */
.outro {
  position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 0 24px;
  opacity: var(--outro, 0); transform: translateY(calc((1 - var(--outro, 0)) * 40px)); pointer-events: none; z-index: 5;
}
.outro.live { pointer-events: auto; }
.outro-logo { width: 88px; height: 88px; border-radius: 24px; box-shadow: 0 16px 40px rgba(232,70,11,.4); margin-bottom: 8px; }
.outro .cap-title { font-size: clamp(42px, 6.4vw, 104px); line-height: 1.04; }
.store-badges { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; margin: 30px 0 22px; }
.store-badges a { display: block; border-radius: 10px; transition: transform .2s; }
.store-badges a:hover { transform: translateY(-3px); }
.store-badges img { height: 56px; width: auto; }
.outro .outro-note { font-size: 14px; max-width: 34em; }
.outro-badges { display: grid; grid-template-columns: repeat(9, auto); align-items: end; justify-content: center; gap: clamp(6px, 1.2vw, 16px); margin: 8px 0 12px; }
/* Écran étroit : 3 rangées de 3, jamais une rangée incomplète. */
@media (max-width: 640px) {
  .outro-badges { grid-template-columns: repeat(3, auto); gap: 10px 18px; }
  .outro .outro-badges img { width: 50px; }
}
.outro-badges img {
  width: clamp(40px, 5.4vw, 72px); height: auto; image-rendering: pixelated; object-fit: contain;
  opacity: var(--b, 0); transform: translateY(calc((1 - var(--b, 0)) * 26px)) scale(calc(.6 + .4 * var(--b, 0)));
  filter: drop-shadow(0 8px 14px rgba(232, 70, 11, .28));
}

.progress { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: var(--line); }
.progress i { display: block; height: 100%; width: calc(var(--p, 0) * 100%); background: var(--flame); }

/* Pied de page */
.foot { border-top: 1px solid var(--line); padding: 34px clamp(16px, 4vw, 48px) 40px; }
.foot-in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px 28px; max-width: 1240px; margin: 0 auto; }
.foot .brand img { width: 28px; height: 28px; border-radius: 8px; }
.foot-links { display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: 14px; color: var(--muted); }
.foot-links a:hover { color: var(--orange); }
.foot-copy { font-size: 13px; color: var(--muted); }

/* ── Petits écrans : téléphone en haut, légende en bas ───────────────── */
@media (max-width: 899px) {
  .btn-cta { display: none; }
  .glow { top: 42%; width: 95vw; height: 70vh; }
  .phone-slot { top: 41%; }
  .captions { left: 16px; right: 16px; width: auto; top: auto; bottom: 0; transform: none; height: 32%; }
  .cap {
    top: auto; bottom: 0; padding: 18px 2px calc(20px + env(safe-area-inset-bottom));
  }
  .cap-title { font-size: clamp(30px, 8.6vw, 44px); margin: 10px 0 8px; }
  .cap p { font-size: 14.5px; }
  .kicker { font-size: 11px; }
  .scroll-hint { margin-top: 14px; }
  .stage::after {
    content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 34%; pointer-events: none;
    background: linear-gradient(180deg, transparent, var(--bg) 38%); z-index: 3;
  }
  .captions { z-index: 4; }
  .store-badges img { height: 48px; }
}

@media (prefers-reduced-motion: reduce) {
  .cap, .tile, .tile img, .notches i, .finger i, .app-btn, .send { transition: none !important; }
  .scroll-hint i::after, .c-input .caret, .comment.mine.show, .finger.down::after { animation: none !important; }
}

/* Fin de séquence sur petit écran : tout doit tenir entre l'en-tête et le bas. */
@media (max-width: 899px) {
  .outro { padding: 70px 20px 16px; }
}
@media (max-width: 640px) and (max-height: 760px) {
  .outro-logo { width: 60px; height: 60px; border-radius: 17px; margin-bottom: 4px; }
  .outro .cap-title { font-size: clamp(32px, 9vw, 42px); margin: 6px 0; }
  .store-badges { margin: 14px 0 10px; gap: 10px; }
  .store-badges img { height: 42px; }
  .outro .outro-badges { gap: 6px 14px; margin: 4px 0 8px; }
  .outro .outro-badges img { width: 40px; }
  .outro .outro-note { font-size: 13px; }
}
