/* GusWorld v6 — page d'accueil.
   Dans la lignée de la proposition de Julien (noir, téléphones inclinés en éventail, gros titres courts,
   beaucoup d'air). Noir et blanc, Montserrat locale. Seule couleur : le mauve du mode fantôme
   (GHOST_COLORS de l'app, #9b59b6 → #8A2BE2), uniquement autour du fantôme (section Explore).
   Écrans : uniquement de vraies captures de l'app (assets/img/v6/, assets/img/app/), toujours entières :
   le cadre prend exactement le ratio de l'image (variable --ar), jamais de recadrage. */
@import url("../fonts/montserrat/montserrat.css");

:root {
  color-scheme: dark;
  --bg: #000;
  --text: #fff;
  --muted: rgba(255, 255, 255, .68);
  --faint: rgba(255, 255, 255, .44);
  --line: rgba(255, 255, 255, .12);
  --line-strong: rgba(255, 255, 255, .3);
  --ghost-1: #9b59b6;
  --ghost-2: #8A2BE2;
  --wrap: 1240px;
  --gutter: clamp(16px, 5vw, 56px);
  --section: clamp(88px, 11vw, 160px);
  --font: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --ease: cubic-bezier(.2, .8, .2, 1);
  /* Mouvement qui va et revient à l'écran (tas de cartes) : départ et arrivée doux. */
  --ease-in-out: cubic-bezier(.77, 0, .175, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 76px; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: var(--font); font-size: 17px; line-height: 1.55; overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
:focus-visible { outline: 3px solid #fff; outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { margin: 0; font-weight: 900; line-height: 1; letter-spacing: -0.045em; }
p { margin: 0; }
figure { margin: 0; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: 16px; top: -60px; z-index: 100; background: #fff; color: #000; padding: 10px 16px; border-radius: 10px; font-weight: 700; }
.skip:focus { top: 16px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Doodles de l'app (background_small.png), très discrets, échelle uniforme. */
.doodles { position: relative; isolation: isolate; }
.doodles::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: url("../img/doodles.webp") center top / 405px auto repeat; opacity: .07;
  -webkit-mask-image: radial-gradient(ellipse at 50% 50%, #000 20%, transparent 75%);
  mask-image: radial-gradient(ellipse at 50% 50%, #000 20%, transparent 75%);
}

/* ---------- En-tête ---------- */
.site-header { position: fixed; inset: 0 0 auto; z-index: 50; border-bottom: 1px solid transparent; transition: background .35s, border-color .35s; }
.site-header.scrolled { background: rgba(0, 0, 0, .8); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); border-bottom-color: var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; flex: none; }
.brand-head { width: auto; height: 26px; }
.brand-wm { width: auto; height: 32px; }
.nav { display: flex; align-items: center; gap: 2px; }
.nav a { text-decoration: none; font-weight: 700; font-size: 14px; color: var(--muted); padding: 8px 12px; border-radius: 999px; transition: color .2s, transform .16s var(--ease); }
.nav a:hover { color: #fff; }
.header-end { display: flex; align-items: center; gap: 10px; }
.lang { display: flex; border: 1px solid var(--line-strong); border-radius: 999px; padding: 3px; }
.lang a, .lang span { font-size: 12px; font-weight: 800; padding: 5px 10px; border-radius: 999px; text-decoration: none; line-height: 1.2; }
.lang span[aria-current] { background: #fff; color: #000; }
.lang a { color: var(--muted); transition: transform .16s var(--ease); }
.cta { white-space: nowrap; display: inline-flex; align-items: center; gap: 8px; background: #fff; color: #000; text-decoration: none; font-weight: 800; font-size: 14px; padding: 11px 18px; border-radius: 999px; transition: transform .16s var(--ease), box-shadow .25s; }
/* Soulèvement au survol : souris seulement (un toucher déclenche un faux survol qui reste). */
@media (hover: hover) and (pointer: fine) { .cta:hover { transform: translateY(-1px); box-shadow: 0 8px 30px rgba(255, 255, 255, .2); } }
.cta svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Badges des stores ---------- */
.stores { display: flex; flex-wrap: wrap; gap: 12px; }
.store { display: inline-flex; align-items: center; gap: 11px; padding: 10px 14px 10px 14px; border: 1px solid var(--line-strong); border-radius: 14px; background: rgba(255, 255, 255, .03); }
.store svg { width: 24px; height: 24px; fill: #fff; flex: none; }
.store span { display: flex; flex-direction: column; line-height: 1.15; }
.store small { font-size: 11px; color: var(--muted); font-weight: 600; }
.store strong { font-size: 16px; font-weight: 800; letter-spacing: -0.01em; }

/* ---------- Téléphones ----------
   Le cadre est dessiné en CSS. L'écran (.screen) prend exactement le ratio de la capture (--ar,
   largeur/hauteur réelles du fichier) : l'image est donc toujours affichée entière, sans recadrage. */
.phone {
  --pw: 260px;
  width: var(--pw); padding: calc(var(--pw) * .034); border-radius: calc(var(--pw) * .16);
  background: linear-gradient(145deg, #3a3a3c, #141416 38%, #2a2a2c 62%, #0d0d0e);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, .16),
    inset 0 0 0 1.5px rgba(255, 255, 255, .08),
    0 40px 90px -24px rgba(0, 0, 0, .95),
    0 24px 70px -36px rgba(255, 255, 255, .16);
}
.phone .screen { position: relative; aspect-ratio: var(--ar, 941 / 2048); border-radius: calc(var(--pw) * .13); overflow: hidden; background: #000; transform: translateZ(0); }
.phone .screen img, .phone .screen video { display: block; width: 100%; height: 100%; }
.phone .screen::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(115deg, rgba(255, 255, 255, .1) 0%, rgba(255, 255, 255, .02) 26%, transparent 42%);
}

/* Éventail : conteneur de référence (unités cqw), téléphones placés en % et tournés. */
.fan { position: relative; container-type: inline-size; width: 100%; margin: 0 auto; }
.fan .phone {
  position: absolute; left: var(--x); top: var(--y); z-index: var(--z, 1);
  translate: -50% -50%; rotate: var(--r, 0deg);
  transition: translate .9s var(--ease), rotate .9s var(--ease), opacity .9s var(--ease);
}

/* Héros : accueil (globe) + carte. */
.fan-hero { aspect-ratio: 1 / 1.04; max-width: 600px; }
.fan-hero .phone { --pw: min(44cqw, 280px); }
.fan-hero .p1 { --x: 31%; --y: 48%; --r: -7deg; --z: 1; }
.fan-hero .p2 { --x: 69%; --y: 53%; --r: 7deg; --z: 2; }

/* Explore et Moments : trois téléphones, celui du centre devant. */
.fan-3 { aspect-ratio: 1 / .98; max-width: 640px; }
.fan-3 .phone { --pw: min(35cqw, 236px); }
.fan-3 .p1 { --x: 19%; --y: 54%; --r: -9deg; --z: 1; }
.fan-3 .p2 { --x: 50%; --y: 49%; --r: 0deg; --z: 3; --pw: min(39cqw, 262px); }
.fan-3 .p3 { --x: 81%; --y: 54%; --r: 9deg; --z: 2; }

/* Jeux : cinq téléphones (trois en mobile). */
.fan-games { aspect-ratio: 1 / .5; max-width: 1100px; }
.fan-games .phone { --pw: min(18.5cqw, 210px); }
.fan-games .p1 { --x: 12%; --y: 55%; --r: -11deg; --z: 1; }
.fan-games .p2 { --x: 31%; --y: 51%; --r: -5deg; --z: 2; }
.fan-games .p3 { --x: 50%; --y: 49%; --r: 0deg; --z: 4; --pw: min(20.5cqw, 232px); }
.fan-games .p4 { --x: 69%; --y: 51%; --r: 5deg; --z: 3; }
.fan-games .p5 { --x: 88%; --y: 55%; --r: 11deg; --z: 1; }

/* ---------- Typographie des sections ---------- */
.section h2 { font-size: clamp(44px, 5.4vw, 78px); }
.sub { margin-top: 22px; max-width: 32ch; font-size: clamp(17px, 1.45vw, 20px); color: var(--muted); font-weight: 500; }

/* ---------- Héros ---------- */
.hero { position: relative; padding: clamp(104px, 12vw, 148px) 0 clamp(56px, 7vw, 96px); overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: .92fr 1.08fr; align-items: center; gap: clamp(24px, 4vw, 64px); }
.hero-copy { position: relative; z-index: 2; }
.hero-wm { width: min(100%, 520px); filter: drop-shadow(0 0 40px rgba(255, 255, 255, .16)); }
.tagline { display: block; margin-top: 18px; font-size: clamp(42px, 5.4vw, 80px); font-weight: 900; letter-spacing: -0.05em; line-height: .98; }
.lead { margin-top: 18px; font-size: clamp(18px, 1.6vw, 22px); color: var(--muted); font-weight: 600; }
.hero .stores { margin-top: 34px; }
.hero-note { margin-top: 14px; font-size: 13px; color: var(--faint); font-weight: 600; }
.hero-sign { display: flex; align-items: flex-end; gap: 18px; margin-top: 40px; }
.hero-gus { width: clamp(150px, 15vw, 220px); filter: drop-shadow(0 18px 30px rgba(0, 0, 0, .7)); }
.scribble { transform: rotate(-7deg); transform-origin: left bottom; margin-bottom: 30px; font-style: italic; font-weight: 600; font-size: 16px; line-height: 1.55; color: var(--muted); }
.hero-art { position: relative; }
.halo { position: absolute; left: 50%; top: 50%; width: 120%; aspect-ratio: 1; translate: -50% -50%; border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle, rgba(255, 255, 255, .13), rgba(255, 255, 255, .03) 40%, transparent 66%); }

/* ---------- Sections ---------- */
.section { position: relative; padding: var(--section) 0; border-top: 1px solid var(--line); }
.section .wrap { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: clamp(32px, 5vw, 80px); }
.section.visual-first .wrap { grid-template-columns: 1.15fr .85fr; }
.section.visual-last .wrap { grid-template-columns: 1fr 1fr; }
.visual { position: relative; }

/* Explore : le fantôme (seul mauve du site). */
.ghost-note { display: flex; align-items: center; gap: 16px; margin-top: 36px; }
.ghost-note img { width: 64px; flex: none; filter: drop-shadow(0 0 22px rgba(138, 43, 226, .6)); }
.ghost-note strong { display: block; font-size: 15px; font-weight: 800; background: linear-gradient(90deg, var(--ghost-1), var(--ghost-2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.ghost-note span { font-size: 15px; color: var(--muted); font-weight: 600; }

/* Moments : voter avec les émotions de Gus. */
.vote { margin-top: 34px; font-size: clamp(19px, 1.7vw, 23px); font-weight: 800; letter-spacing: -0.02em; }
.emotions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; list-style: none; padding: 0; }
.emotions img { width: 62px; }

/* ---------- Partage : tas de cartes GusWorld ----------
   Recréées d'après App/Components/Card de l'app (médias libres de droits, voir assets/img/cards/CREDITS.md) : carte au ratio des cartes du fil (698 × 1236 mesuré sur la
   capture), média plein cadre, coins ~3 %, halo de la couleur de carte (ici blanc), en-tête auteur (avatar
   cerclé de la couleur de carte, pseudo gras + badge, date, popularité 🔥, menu « ••• »), légende blanche
   sur 2 lignes en bas. Les cartes « texte » ont un fond en dégradé (PreviewGradient) et un texte centré. */
.deck { position: relative; container-type: inline-size; width: 100%; max-width: 560px; margin: 0 auto; aspect-ratio: 1 / 1.04; }
.gcard {
  --cw: min(46cqw, 256px);
  position: absolute; left: 50%; top: 50%; width: var(--cw); aspect-ratio: 698 / 1236; margin: calc(var(--cw) * -.885) 0 0 calc(var(--cw) * -.5);
  container-type: inline-size; border-radius: calc(var(--cw) * .03); overflow: hidden; background: #111; color: #fff;
  box-shadow: 0 0 calc(var(--cw) * .08) rgba(255, 255, 255, .28), 0 30px 60px -20px rgba(0, 0, 0, .9);
  transform: translate(var(--rx, 0), var(--ry, 0)) rotate(var(--rr, 0deg));
}
.gcard .media { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.gcard .fade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.55) 0%, rgba(0,0,0,.05) 16%, transparent 24%, transparent 72%, rgba(0,0,0,.06) 80%, rgba(0,0,0,.6) 100%); }
.gcard .head { position: absolute; left: 2.5cqw; right: 1cqw; top: 2.5cqw; display: flex; align-items: center; gap: 2.4cqw; }
.gcard .av { width: 17.5cqw; aspect-ratio: 1; border-radius: 50%; padding: .9cqw; background: var(--c); flex: none; }
.gcard .av img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; background: #161616; }
.gcard .who { display: flex; flex-direction: column; min-width: 0; line-height: 1.15; text-shadow: 0 1px 4px rgba(0, 0, 0, .55); }
.gcard .who b { display: flex; align-items: center; gap: 1.2cqw; font-size: 4.6cqw; font-weight: 800; white-space: nowrap; }
.gcard .who b svg { width: 4.2cqw; height: 4.2cqw; fill: #fff; flex: none; }
.gcard .who time { font-size: 3.6cqw; font-weight: 700; margin-left: 1cqw; }
.gcard .pop { display: flex; align-items: center; gap: 1cqw; margin-top: .8cqw; font-size: 4.7cqw; font-weight: 800; }
.gcard .pop svg { width: 4.2cqw; height: 4.2cqw; fill: none; stroke: #fff; stroke-width: 2.4; }
.gcard .menu { margin-left: auto; align-self: flex-start; display: flex; gap: 1.1cqw; padding: 2cqw 2.5cqw; }
.gcard .menu i { width: 2cqw; height: 2cqw; border-radius: 50%; background: #fff; }
.gcard .desc { position: absolute; left: 1.5cqw; right: 1.5cqw; bottom: 3cqw; padding: 3.4cqw; font-size: 4cqw; line-height: 1.3; font-weight: 500;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; text-shadow: 0 1px 4px rgba(0, 0, 0, .6); }
.gcard.text { background: linear-gradient(160deg, var(--g1), var(--g2)); }
.gcard.text .say { position: absolute; inset: 24% 9% 18%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5cqw; text-align: center;
  font-size: 8.4cqw; line-height: 1.15; font-weight: 900; font-style: italic; letter-spacing: -0.02em; text-shadow: 0 2px 10px rgba(0, 0, 0, .25); }
.gcard.text .say svg { width: 16cqw; height: 16cqw; fill: none; stroke: #fff; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; opacity: .9; }
/* Position dans le tas (--r*) et position écartée (--s*), en % de la largeur de la carte. */
.gcard.c1 { --rx: 0%; --ry: 0%; --rr: 0deg; z-index: 5; }
.gcard.c2 { --rx: -3%; --ry: 1.5%; --rr: -4deg; --sx: -72%; --sy: 5%; --sr: -12deg; --dl: 0s; z-index: 4; }
.gcard.c3 { --rx: 3%; --ry: 1%; --rr: 4deg; --sx: 72%; --sy: 5%; --sr: 12deg; --dl: .18s; z-index: 3; }
.gcard.c4 { --rx: -1.5%; --ry: -1%; --rr: -1.5deg; --sx: -3%; --sy: -17%; --sr: -3deg; --dl: .36s; z-index: 2; }
.gcard.c5 { --rx: 2%; --ry: -2%; --rr: 2.5deg; z-index: 1; }
.gcard.c6 { --rx: -2.5%; --ry: -3%; --rr: -3deg; z-index: 0; }
/* En pause hors écran plutôt que retirée : les cartes s'arrêtent où elles sont et reprennent au même point. */
.deck .gcard.move { animation: deal 9s var(--ease-in-out) infinite var(--dl, 0s); animation-play-state: paused; }
.deck.playing .gcard.move { animation-play-state: running; }
@keyframes deal {
  0%, 12% { transform: translate(var(--rx), var(--ry)) rotate(var(--rr)); }
  32%, 62% { transform: translate(var(--sx), var(--sy)) rotate(var(--sr)); }
  84%, 100% { transform: translate(var(--rx), var(--ry)) rotate(var(--rr)); }
}

/* ---------- Chat sécurisé : animation de chiffrement ---------- */
.chat-visual { display: grid; place-items: center; }
.chat-card {
  position: relative; width: min(100%, 430px); border-radius: 30px; overflow: hidden;
  background: #0b0b0b; border: 1px solid rgba(255, 255, 255, .14);
  box-shadow: 0 40px 100px -30px rgba(0, 0, 0, .95), 0 30px 90px -50px rgba(255, 255, 255, .22);
}
.chat-card::before { /* fond de doodles du chat de l'app (opacité 0,4 dans l'app, plus discret ici) */
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: url("../img/doodles.webp") center top / 405px auto repeat; opacity: .12;
}
.chat-head { position: relative; display: flex; align-items: center; gap: 12px; padding: 18px 20px; border-bottom: 1px solid rgba(255, 255, 255, .1); background: rgba(0, 0, 0, .55); }
.chat-head .av { width: 44px; height: 44px; border-radius: 50%; background: #1d1d1d; border: 1.5px solid rgba(255, 255, 255, .5); display: grid; place-items: center; overflow: hidden; flex: none; }
.chat-head .av img { width: 40px; }
.chat-head .who { display: flex; flex-direction: column; line-height: 1.2; min-width: 0; }
.chat-head .who b { font-size: 16px; font-weight: 800; }
.chat-head .who small { font-size: 12px; color: var(--faint); font-weight: 600; }
.chip { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .22); font-size: 11px; font-weight: 800; letter-spacing: .04em; color: var(--muted); transition: background .4s, color .4s, border-color .4s; white-space: nowrap; }
.chip svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.chip .shackle { transition: transform .45s var(--ease); transform-origin: 15.5px 11px; }
.chat-card[data-phase="open"] .chip .shackle { transform: translateY(-2.5px) rotate(28deg); }
.chat-card[data-phase="locked"] .chip { background: #fff; color: #000; border-color: #fff; }
.chat-body { position: relative; display: flex; flex-direction: column; gap: 12px; padding: 22px 18px 22px; min-height: 250px; }
.crypt-note { align-self: center; max-width: 80%; text-align: center; font-size: 12px; font-weight: 600; line-height: 1.4; color: var(--muted); padding: 9px 12px; border-radius: 12px; background: rgba(0, 0, 0, .45); margin-bottom: 4px; }
.msg { max-width: 84%; padding: 11px 15px; border-radius: 18px; font-size: 15px; font-weight: 600; line-height: 1.35; white-space: nowrap; overflow: hidden; font-variant-ligatures: none;
  transition: opacity .45s var(--ease), transform .45s var(--ease), background .4s, color .4s; }
.msg.them { align-self: flex-start; background: #3A3A3A; color: #fff; border-bottom-left-radius: 6px; }
.msg.me { align-self: flex-end; background: linear-gradient(135deg, #fff, #c4c4c4); color: #000; border-bottom-right-radius: 6px; }
.msg.enc { letter-spacing: 0; }
.msg.them.enc { background: #262626; color: rgba(255, 255, 255, .78); }
.msg.me.enc { background: linear-gradient(135deg, #d9d9d9, #9d9d9d); color: rgba(0, 0, 0, .7); }
.js .chat-card.anim .msg { opacity: 0; transform: translateY(10px) scale(.97); }
.js .chat-card.anim .msg.shown { opacity: 1; transform: none; }
.chat-foot { position: relative; display: flex; align-items: center; gap: 10px; margin: 0 16px 14px; padding: 11px 14px 11px 16px; border: 1px solid rgba(255, 255, 255, .22); border-radius: 18px; background: rgba(0, 0, 0, .5); color: rgba(255, 255, 255, .4); font-size: 14px; font-weight: 600; }
.chat-foot svg { margin-left: auto; width: 20px; height: 20px; fill: #fff; }
.crypt-status { position: relative; display: flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 16px 16px; font-size: 12px; font-weight: 700; color: var(--muted); letter-spacing: .02em; min-height: 44px; text-align: center; }
.crypt-status svg { width: 14px; height: 14px; flex: none; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.chat-stack { position: relative; width: min(100%, 430px); }
.chat-stack .chat-card { z-index: 1; }

/* ---------- Jeux ---------- */
.games .wrap { display: block; }
.games-head { text-align: center; display: flex; flex-direction: column; align-items: center; }
.games-head .sub { margin-inline: auto; }
.games .fan { margin-top: clamp(24px, 4vw, 48px); }

/* ---------- Téléchargement ---------- */
.download { position: relative; overflow: hidden; padding: var(--section) 0 calc(var(--section) * .9); text-align: center; border-top: 1px solid var(--line); }
.download::before { content: ""; position: absolute; left: 50%; bottom: -55%; width: min(1200px, 160vw); aspect-ratio: 1.6; translate: -50% 0; border-radius: 50%; pointer-events: none;
  background: radial-gradient(ellipse at 50% 50%, rgba(255, 255, 255, .16), rgba(255, 255, 255, .04) 42%, transparent 68%); }
.download .wrap { position: relative; display: flex; flex-direction: column; align-items: center; }
.download-gus { width: clamp(150px, 16vw, 210px); margin-bottom: 26px; }
.download-wm { width: min(84%, 560px); margin: 0 auto; filter: drop-shadow(0 0 50px rgba(255, 255, 255, .18)); }
.download .tagline { margin-top: 12px; }
.download p { margin-top: 18px; color: var(--muted); font-weight: 600; font-size: clamp(17px, 1.45vw, 20px); }
.download .stores { justify-content: center; margin-top: 30px; }

/* ---------- Pied de page ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 56px 0 40px; font-size: 14px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 32px; }
.footer-brand p { margin-top: 14px; color: var(--muted); max-width: 36ch; }
.site-footer h2 { font-size: 12px; letter-spacing: .18em; text-transform: uppercase; color: var(--faint); font-weight: 800; }
.site-footer ul { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 8px; }
.site-footer a { color: var(--muted); text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-bottom { margin-top: 44px; padding-top: 22px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 16px; color: var(--faint); flex-wrap: wrap; }

/* ---------- 404 ---------- */
.notfound { min-height: 100vh; display: grid; place-items: center; text-align: center; padding: 120px 0 48px; }
.notfound img { width: 140px; margin: 0 auto 12px; }
.notfound h1 { font-size: clamp(44px, 8vw, 84px); }
.notfound p { margin-top: 14px; color: var(--muted); font-weight: 600; }
.btn { display: inline-block; margin-top: 28px; background: #fff; color: #000; font-weight: 800; text-decoration: none; padding: 14px 22px; border-radius: 999px; transition: transform .16s var(--ease); }
/* Retour à l'appui sur tout ce qui se touche (léger enfoncement). */
.cta:active, .btn:active, .nav a:active, .lang a:active { transform: scale(.97); }

/* ---------- Apparitions au défilement (sobres, désactivées si mouvement réduit) ---------- */
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }
/* Les téléphones d'un éventail arrivent un par un, en se dépliant depuis le centre. */
.js .fan.reveal { opacity: 1; transform: none; }
.js .fan.reveal .phone { opacity: 0; translate: -50% -42%; rotate: 0deg; }
.js .fan.reveal.in .phone { opacity: 1; translate: -50% -50%; rotate: var(--r, 0deg); transition-delay: var(--d, 0s); }
.fan .p1 { --d: .03s; } .fan .p2 { --d: .09s; } .fan .p3 { --d: .15s; } .fan .p4 { --d: .21s; } .fan .p5 { --d: .27s; }
@media (prefers-reduced-motion: no-preference) {
  .hero-gus { animation: bob 5s ease-in-out infinite; }
  .ghost-note img { animation: bob 4s ease-in-out infinite; }
}
@keyframes bob { 50% { translate: 0 -7px; } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; transition-delay: 0s !important; animation: none !important; }
}

/* ---------- Tablette ---------- */
@media (max-width: 1080px) {
  .nav .nav-link { display: none; }
}
@media (max-width: 899px) {
  .hero { padding-top: 104px; }
  .hero-grid { grid-template-columns: 1fr; text-align: center; }
  .hero-copy { display: flex; flex-direction: column; align-items: center; }
  .hero-wm { width: min(88%, 460px); }
  .hero .stores { justify-content: center; }
  .hero-sign { margin-top: 28px; }
  .hero-gus { width: 150px; }
  .scribble { margin-bottom: 18px; text-align: left; }
  .hero-art { margin-top: 8px; }
  .section .wrap, .section.visual-first .wrap, .section.visual-last .wrap { grid-template-columns: 1fr; text-align: center; }
  .section .copy { order: 1; display: flex; flex-direction: column; align-items: center; }
  .section .visual { order: 2; }
  .sub { margin-inline: auto; }
  .ghost-note { text-align: left; }
  .emotions { justify-content: center; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

/* ---------- Mobile ---------- */
@media (max-width: 599px) {
  body { font-size: 16px; }
  .site-header .wrap { height: 64px; }
  .brand-head { display: none; }
  .brand-wm { height: 28px; }
  .cta { padding: 9px 14px; font-size: 13px; }
  .cta svg { display: none; }
  .section h2 { font-size: clamp(38px, 11vw, 48px); }
  .tagline { font-size: clamp(38px, 11.5vw, 52px); }
  .fan-hero { aspect-ratio: 1 / 1.08; }
  .fan-hero .phone { --pw: 46cqw; }
  .fan-3 { aspect-ratio: 1 / 1.02; }
  .fan-3 .phone { --pw: 36cqw; }
  .fan-3 .p2 { --pw: 40cqw; }
  .fan-games { aspect-ratio: 1 / 1.02; }
  .fan-games .phone { --pw: 35cqw; }
  .fan-games .p1, .fan-games .p5 { display: none; }
  .gcard { --cw: 50cqw; }
  .gcard.c2 { --sx: -40%; --sr: -8deg; }
  .gcard.c3 { --sx: 40%; --sr: 8deg; }
  .fan-games .p2 { --x: 20%; --y: 54%; --r: -9deg; }
  .fan-games .p3 { --pw: 39cqw; }
  .fan-games .p4 { --x: 80%; --y: 54%; --r: 9deg; }
  .emotions { gap: 8px; }
  .emotions img { width: 47px; }
  .chat-body { padding-inline: 14px; }
  .msg { font-size: 14px; }
}
@media (max-width: 419px) {
  .cta { display: none; }
}
