/* =========================================================================
   SPOTTED — styles.css — feuille unique partagée (vanilla, zéro build)
   Polices self-hostées (SquidBoy + Fredoka). ZÉRO Google Fonts.
   ========================================================================= */

/* ── @font-face : polices self-hostées (§1.2) ── */
/* SquidBoy : titres signature uniquement. woff2 prioritaire, ttf fallback. */
@font-face {
  font-family: 'SquidBoy';
  src: url('/fonts/SquidBoy.woff2') format('woff2'),
       url('/fonts/SquidBoy.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* Fredoka : corps, boutons, nav. 4 poids (400/500/600/700). */
@font-face {
  font-family: 'Fredoka';
  src: url('/fonts/Fredoka-Regular.woff2') format('woff2'),
       url('/fonts/Fredoka-Regular.ttf') format('truetype');
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Fredoka';
  src: url('/fonts/Fredoka-Medium.woff2') format('woff2'),
       url('/fonts/Fredoka-Medium.ttf') format('truetype');
  font-weight: 500; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Fredoka';
  src: url('/fonts/Fredoka-SemiBold.woff2') format('woff2'),
       url('/fonts/Fredoka-SemiBold.ttf') format('truetype');
  font-weight: 600; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Fredoka';
  src: url('/fonts/Fredoka-Bold.woff2') format('woff2'),
       url('/fonts/Fredoka-Bold.ttf') format('truetype');
  font-weight: 700; font-style: normal; font-display: swap;
}

/* ── :root : CSS custom properties (§1.1, tokens @spotted/ui) ── */
:root {
  /* ── Surfaces (thème sombre app, source: colors.ts surface.*) ── */
  --bg:            #070911;            /* surface.bg — noir doux app, PAS #000 */
  --surface:       #16161B;            /* carte de base (legacy site, conservé) */
  --surface-card:  #1A1A1F;            /* surface.card — glass cards */
  --surface-2:     #1E1E25;            /* surface élevée / gradient bas de carte */
  --surface-elevated: #252530;         /* surface.elevated */
  --tile:          rgba(255,255,255,0.10);  /* surface.tile */
  --input-bg:      rgba(255,255,255,0.08);  /* surface.input */
  --scrim:         rgba(0,0,0,0.35);   /* surface.scrim */
  --backdrop:      rgba(0,0,0,0.6);    /* surface.backdrop */

  /* ── Texte (source: colors.ts text.*) ── */
  --text:          #FFFFFF;            /* text.primary */
  --muted:         #A0A0B0;            /* text.secondary */
  --muted-2:       #5C5C70;            /* text.muted */
  --dim:           rgba(255,255,255,0.5);   /* text.dim */

  /* ── Marque / accents principaux ── */
  --pink:          #FF2146;            /* palette.roseVif — accent signature (MLT/Guess Who) */
  --pink-coral:    #FF4D6D;            /* brand.coral — corail legacy, hover/soft */
  --pink-soft:     rgba(255,33,70,0.12);     /* fond chip rose */
  --coral-soft:    rgba(255,77,109,0.8);     /* eyebrow softened */
  --orange:        #FF7043;            /* brand.orange */
  --lavender:      #A7BEFF;            /* palette.bleuLavande */
  --mauve:         #E5A7FF;            /* palette.mauve — signature récurrente */

  /* ── Premium (gold) — source: badge.gold #FFD700 + premium gradient 2026-05-28 ── */
  --gold:          #FFD700;            /* badge Premium + médaille or (CANONIQUE badge) */
  --premium-mid:   #FF8147;            /* brand.premium — centre du gradient premium */
  --premium-pink:  #FF2F7F;            /* fin du gradient premium */

  /* ── Halo décoratif (PageHeroHalo app) ── */
  --halo-1:        #FFAE00;            /* jaune-orange */
  --halo-2:        #E5A7FF;            /* mauve */
  --halo-3:        #A7BEFF;            /* lavande */

  /* ── Feedback ── */
  --success:       #4ADE80;
  --warning:       #FBBF24;
  --error:         #FF4D4D;

  /* ── Bordures (source: colors.ts border.*) ── */
  --border:        rgba(255,255,255,0.08);   /* border.default */
  --border-subtle: rgba(255,255,255,0.2);    /* border.subtle */
  --border-faint:  rgba(255,255,255,0.07);   /* border.faint — conservé legacy */

  /* ── Gradients de marque (CSS, dérivés de gradients.ts) ── */
  --grad-mlt:        linear-gradient(37deg,  #111111 0%, #FF2146 2%,  #A7BEFF 100%);
  --grad-mlt-2:      linear-gradient(37deg,  #FF2146 0%, #A7BEFF 100%);
  --grad-guess:      linear-gradient(44deg,  #FFFBFC 0%, #FFEFC0 15%, #FF7060 45%, #FF2146 80%);
  --grad-caption:    linear-gradient(26deg,  #A7BEFF 0%, #E5A7FF 45%, #FFAE00 100%);
  --grad-photo:      linear-gradient(40deg,  #FFD27D 0%, #5297FF 58%, #E5A7FF 100%);
  --grad-who:        linear-gradient(64deg,  #FFC300 0%, #3BECA2 54%, #E5A7FF 100%);
  --grad-dix:        linear-gradient(252deg, #FF5252 0%, #FFC300 100%);
  --grad-qad:        linear-gradient(251deg, #03FFB3 0%, #1E78FF 100%);
  --grad-premium:    linear-gradient(100deg, #E5A7FF 0%, #FF8147 50%, #FF2F7F 100%);
  --grad-halo:       linear-gradient(172deg, #FFAE00 0%, #E5A7FF 55%, #A7BEFF 100%);
  --grad-btn:        linear-gradient(90deg,  #FF4D6D 0%, #FF7043 100%);

  /* ── Radius (source: radius.ts) ── */
  --r-sm:    8px;
  --r-md:    12px;
  --r-lg:    16px;
  --r-card:  20px;     /* boutons V2, cartes, tuiles */
  --r-xl:    24px;
  --r-xxl:   30px;     /* grandes surfaces */
  --r-pill:  999px;

  /* ── Spacing (grille 4px, source: spacing.ts) ── */
  --s-1:  4px;
  --s-2:  8px;
  --s-3:  12px;
  --s-4:  16px;
  --s-5:  20px;
  --s-6:  24px;
  --s-8:  32px;
  --s-12: 48px;
  --s-16: 64px;
  --s-section: 96px;   /* padding vertical des sections (desktop) */

  /* ── Ombres (source: shadows.ts, adaptées web) ── */
  --shadow-sm:   0 1px 2px rgba(0,0,0,0.18);
  --shadow-md:   0 4px 8px rgba(0,0,0,0.24);
  --shadow-lg:   0 8px 16px rgba(0,0,0,0.30);
  --shadow-glow: 0 8px 24px rgba(255,33,70,0.30);   /* glow corail CTA */
  --shadow-glow-gold: 0 8px 24px rgba(255,129,71,0.30);

  /* ── Typo (familles, cf. §1.2) ── */
  --font-title: 'SquidBoy', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  --font-body:  'Fredoka', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;

  /* ── Layout ── */
  --wrap-max: 1080px;
  --header-h: 64px;
}

/* ── Reset ── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg, video { display: block; max-width: 100%; }
a { color: var(--pink-coral); text-decoration: none; }
a:hover { color: var(--pink); }
.wrap { max-width: var(--wrap-max); margin: 0 auto; padding: 0 24px; }
.brand-name { font-family: var(--font-title); font-size: 22px; color: var(--pink); letter-spacing: -0.5px; line-height: 1; }
.eyebrow { color: var(--pink); font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: 1.5px; }
h1, h2 { font-family: var(--font-title); font-weight: 400; letter-spacing: -0.5px; text-wrap: balance; }
h2 { font-size: 34px; line-height: 1.1; margin: 10px 0 16px; }
h3 { font-family: var(--font-body); }
.section-intro { color: var(--muted); max-width: 680px; font-size: 16px; }
.small { font-size: 14px; } .tiny { font-size: 12px; color: var(--muted); }

/* ── Header ── */
.site-header {
  position: sticky; top: 0; z-index: 30;
  background: rgba(7,9,17,0.78);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); }
.brand { display: inline-flex; align-items: center; gap: 10px; }
.brand img { width: 34px; height: 34px; border-radius: 9px; }
.nav-links { display: flex; align-items: center; gap: 26px; }
.nav-links > a:not(.btn) { color: var(--muted); font-size: 14px; font-weight: 500; transition: color .15s; }
.nav-links > a:not(.btn):hover { color: var(--text); }
@media (max-width: 760px) { .nav-links > a:not(.btn) { display: none; } }

/* ── Boutons ── */
.btn { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-body); font-weight: 600; border-radius: var(--r-card); transition: transform .15s ease, box-shadow .15s ease, filter .15s ease; cursor: pointer; }
.btn-lg { padding: 16px 28px; font-size: 16px; }
.btn-nav { padding: 9px 18px; font-size: 14px; border-radius: var(--r-pill); }
.btn-store { background: var(--grad-btn); color: #fff !important; box-shadow: var(--shadow-glow); }
.btn-store:hover { transform: translateY(-2px); box-shadow: 0 12px 32px rgba(255,33,70,0.42); color: #fff !important; }
.btn-store-icon { width: 20px; height: 20px; fill: #fff; }
.btn-store-text { display: inline-flex; flex-direction: column; line-height: 1.1; font-size: 12px; font-weight: 400; }
.btn-store-text strong { font-size: 16px; font-weight: 600; }
.btn-gold { background: var(--grad-premium); color: #fff !important; box-shadow: var(--shadow-glow-gold); }
.btn-gold:hover { transform: translateY(-2px); filter: brightness(1.05); color: #fff !important; }
.btn-ghost { background: var(--tile); color: var(--text) !important; border: 1px solid var(--border-subtle); padding: 14px 24px; }
.btn-ghost:hover { border-color: var(--pink); }
/* Cible tactile : garantit ≥ 48px de haut même sur très petit écran (WCAG 2.5.5). */
.btn { min-height: 48px; }
@media (max-width: 400px) { .btn-lg { padding: 16px 20px; } }

/* ── Sections ── */
.block { padding: var(--s-section) 0; scroll-margin-top: calc(var(--header-h) + 20px); }
.block + .block { border-top: 1px solid var(--border); }

/* ── Split asymétrique ── */
.split { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 56px; align-items: center; }
.split-text h2 { margin-top: 8px; }
.split-text p { color: var(--muted); margin: 12px 0 24px; }
.split-media { position: relative; }
@media (max-width: 860px) {
  .split, .split-reverse { grid-template-columns: 1fr; gap: 32px; }
  .split-reverse .split-media { order: 2; }
}
@media (min-width: 861px) { .split-reverse { direction: rtl; } .split-reverse > * { direction: ltr; } }

/* ── Halo décoratif (réutilisable derrière un media) ── */
.halo { position: absolute; inset: -10% -10% auto -10%; height: 70%; border-radius: var(--r-xxl);
  background: var(--grad-halo); filter: blur(60px); opacity: 0.4; z-index: 0; pointer-events: none; }
/* Variante Premium (gradient gold/mauve) — remplace l'ancien style inline. */
.halo-premium { background: var(--grad-premium); }
.split-media > :not(.halo) { position: relative; z-index: 1; }

/* ── Hero ── */
.hero { padding: 72px 0 64px; position: relative; overflow: hidden; }
.hero .split { gap: 48px; }
.hero h1 { font-size: 52px; line-height: 1.05; }
.hero h1 .accent { color: var(--pink); }
.hero .lead { font-size: 19px; color: var(--muted); margin: 18px 0 8px; max-width: 540px; }
.hero .sub { color: var(--dim); font-size: 14px; margin-bottom: 28px; }
.hero-cta { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.phone-frame { width: 300px; max-width: 78%; margin: 0 auto; border-radius: 38px; box-shadow: var(--shadow-lg); }
@media (max-width: 560px) { .hero h1 { font-size: 34px; } }

/* ── Grilles ── */
.grid { display: grid; gap: 18px; margin-top: 36px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 880px) { .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .grid-3, .grid-2 { grid-template-columns: 1fr; } }

/* ── Carte feature ── */
.card { background: var(--surface-card); border: 1px solid var(--border); border-radius: var(--r-card); padding: 26px 24px; }
.card .emoji { font-size: 28px; }
.card h3 { font-size: 19px; font-weight: 600; margin: 14px 0 8px; }
.card p { color: var(--muted); font-size: 15px; }

/* ── Grille de modes (asymétrique : carte « featured » plus grande) ── */
.modes-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 36px; }
@media (max-width: 880px) { .modes-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .modes-grid { grid-template-columns: 1fr; } }
.mode-card { background: var(--surface-card); border: 1px solid var(--border); border-radius: var(--r-card);
  padding: 22px; display: flex; flex-direction: column; gap: 6px; transition: transform .15s ease, border-color .15s ease, box-shadow .15s ease; position: relative; }
.mode-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.mode-illu { width: 96px; height: 96px; object-fit: contain; margin-bottom: 6px; }
/* Illustration de mode agrandie (page Premium, media des sections split). */
.mode-illu-lg { width: 180px; height: 180px; object-fit: contain; margin: 0 auto; }
.mode-title { font-size: 19px; font-weight: 600; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.mode-desc { color: var(--muted); font-size: 14.5px; }
.mode-card.featured { grid-column: span 2; flex-direction: row; align-items: center; gap: 24px; }
.mode-card.featured .mode-illu { width: 140px; height: 140px; }
@media (max-width: 560px) { .mode-card.featured { grid-column: span 1; flex-direction: column; } .mode-card.featured .mode-illu { width: 96px; height: 96px; } }
/* accents par mode : voir §8, généré ici via [data-mode] (fin de fichier) */

/* ── Badge premium ── */
.badge-premium { font-size: 11px; font-weight: 600; color: #1A1A1F; background: var(--gold);
  border-radius: var(--r-pill); padding: 3px 10px; letter-spacing: 0.3px; }

/* ── Steps ── */
.steps { counter-reset: step; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 36px; }
@media (max-width: 720px) { .steps { grid-template-columns: 1fr; } }
.step { background: var(--surface-card); border: 1px solid var(--border); border-radius: var(--r-card); padding: 28px 24px; }
.step .num { counter-increment: step; width: 38px; height: 38px; border-radius: var(--r-md);
  background: var(--pink-soft); color: var(--pink); font-weight: 700; display: inline-flex;
  align-items: center; justify-content: center; margin-bottom: 16px; font-family: var(--font-body); }
.step .num::before { content: counter(step); }
.step h3 { font-size: 17px; font-weight: 600; margin-bottom: 6px; }
.step p { color: var(--muted); font-size: 14.5px; }

/* ── TikTok callout ── */
.tiktok-block { background: linear-gradient(135deg, var(--surface-2), var(--surface-card));
  border: 1px solid var(--border); border-radius: var(--r-xxl); padding: 40px 34px; margin-top: 36px; }
.tiktok-block h3 { font-size: 22px; font-weight: 700; margin-bottom: 14px; }
.tiktok-block p { color: var(--muted); font-size: 15px; }
.tiktok-block ul { list-style: none; margin: 18px 0 0; display: grid; gap: 12px; }
.tiktok-block li { color: var(--muted); font-size: 15px; padding-left: 26px; position: relative; }
.tiktok-block li::before { content: "✓"; position: absolute; left: 0; color: var(--pink); font-weight: 700; }

/* ── FAQ ── */
.faq { margin-top: 30px; display: grid; gap: 12px; }
details { background: var(--surface-card); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 4px 20px; }
summary { cursor: pointer; font-weight: 600; font-size: 16px; padding: 16px 0; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; color: var(--pink); font-size: 22px; font-weight: 400; }
details[open] summary::after { content: "–"; }
details p { color: var(--muted); font-size: 14.5px; padding: 0 0 18px; }

/* ── CTA final (bandeau gradient) ── */
.cta-final { text-align: center; padding: 88px 24px; border-radius: var(--r-xxl); margin: var(--s-section) auto;
  max-width: var(--wrap-max); position: relative; overflow: hidden;
  background: var(--grad-mlt); }
.cta-final::after { content: ""; position: absolute; inset: 0; background: rgba(7,9,17,0.35); }
.cta-final > * { position: relative; z-index: 1; }
.cta-final h2 { font-size: 36px; }
.cta-final p { color: rgba(255,255,255,0.85); margin: 12px 0 28px; }
.cta-final .hero-cta { justify-content: center; }

/* ── Premium page : tableau comparatif + offres ── */
.compare { width: 100%; border-collapse: collapse; margin-top: 28px; }
.compare th, .compare td { text-align: left; padding: 14px 16px; border-bottom: 1px solid var(--border); font-size: 15px; }
.compare th { color: var(--muted); font-weight: 600; }
.compare .yes { color: var(--success); } .compare .no { color: var(--muted-2); }
.offers { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 28px; }
@media (max-width: 620px) { .offers { grid-template-columns: 1fr; } }
.offer { background: var(--surface-card); border: 1px solid var(--border); border-radius: var(--r-card); padding: 28px 24px; position: relative; }
.offer.best { border-color: var(--premium-mid); box-shadow: var(--shadow-glow-gold); }
.offer .price { font-family: var(--font-title); font-size: 32px; color: var(--text); margin: 8px 0; }
.offer .price small { font-family: var(--font-body); font-size: 14px; color: var(--muted); }
.offer .tag { position: absolute; top: -12px; right: 16px; background: var(--grad-premium); color: #fff; font-size: 12px; font-weight: 600; padding: 4px 12px; border-radius: var(--r-pill); }
.offer ul { list-style: none; margin: 14px 0 0; display: grid; gap: 8px; }
.offer li { color: var(--muted); font-size: 14px; padding-left: 22px; position: relative; }
.offer li::before { content: "✓"; position: absolute; left: 0; color: var(--premium-mid); }

/* ── Preuve sociale ── */
.rating-strip { display: flex; align-items: center; gap: 10px; margin-top: 20px; }
/* L'attribut [hidden] doit gagner sur display:flex → sinon le bandeau note
   s'affiche (★★★★★ vides) alors qu'il n'y a aucune vraie note. assets.js
   retire [hidden] uniquement si l'API Apple renvoie >= 5 notes réelles. */
.rating-strip[hidden] { display: none; }
.rating-stars { color: var(--gold); font-size: 18px; letter-spacing: 2px; }
.rating-value { font-weight: 700; } .rating-count { color: var(--muted); font-size: 14px; }
.quote { background: var(--surface-card); border: 1px solid var(--border); border-radius: var(--r-card); padding: 24px; }
.quote blockquote { font-style: italic; font-size: 15px; }
.quote figcaption { color: var(--pink-coral); font-size: 13px; font-weight: 600; margin-top: 12px; }

/* ── Gameplay frame ── */
.gameplay-frame { width: 280px; max-width: 80%; margin: 0 auto; border-radius: 32px; overflow: hidden; box-shadow: var(--shadow-lg); }
.app-icon-hero { display: block; width: 230px; max-width: 62%; margin: 0 auto; border-radius: 23%; box-shadow: var(--shadow-lg); }
.hero .app-icon-hero { margin-left: auto; margin-right: 8%; }
.hero-shot { display: block; width: 248px; max-width: 72%; margin: 0 auto; border-radius: var(--r-xl); box-shadow: var(--shadow-lg); }
/* Teaser Premium centré (sans visuel à droite) */
.premium-teaser { text-align: center; }
.premium-teaser p:not(.eyebrow) { color: var(--muted); max-width: 600px; margin: 16px auto 28px; }
.gameplay-video, .gameplay-fallback { width: 100%; height: auto; }

/* ── Galerie de captures (App Store screenshots, scroll horizontal) ── */
.shots {
  display: flex; gap: var(--s-4, 16px);
  overflow-x: auto; scroll-snap-type: x mandatory;
  padding: 8px 4px 18px; margin-top: var(--s-5, 20px);
  -webkit-overflow-scrolling: touch; scrollbar-width: none;
}
.shots::-webkit-scrollbar { display: none; }
.shots img {
  flex: 0 0 auto; width: 232px; height: auto;
  aspect-ratio: 640 / 1384;
  border-radius: var(--r-xl, 24px);
  box-shadow: var(--shadow-lg);
  scroll-snap-align: center;
}
@media (min-width: 760px) { .shots img { width: 256px; } }

/* ── Footer ── */
.site-footer { border-top: 1px solid var(--border); padding: 44px 0 56px; margin-top: var(--s-section); }
.foot { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; align-items: center; }
.foot-links { display: flex; gap: 22px; flex-wrap: wrap; }
.foot-links a { color: var(--muted); font-size: 14px; }
.foot-links a:hover { color: var(--text); }
.copyright { color: var(--muted-2); font-size: 13px; margin-top: 22px; }

/* ── Legal pages (terms/privacy) ── */
.legal { max-width: 800px; margin: 0 auto; padding: 56px 24px; }
.legal h1 { font-size: 36px; margin-bottom: 8px; }
.legal h2 { font-size: 22px; margin: 36px 0 12px; }
.legal h3 { font-size: 17px; font-weight: 600; margin: 22px 0 8px; }
.legal p, .legal li { color: var(--muted); font-size: 15px; margin-bottom: 12px; }
.legal ul { padding-left: 22px; margin-bottom: 12px; }
.legal a { color: var(--pink-coral); }
.legal .updated { color: var(--muted-2); font-size: 13px; }
.legal table { width: 100%; border-collapse: collapse; margin: 12px 0; }
.legal th, .legal td { border: 1px solid var(--border); padding: 10px 12px; text-align: left; font-size: 14px; }

/* ── Join page (page d'invitation autonome, centrée) ── */
.join-body { min-height: 100dvh; display: flex; flex-direction: column;
  align-items: center; justify-content: center; padding: 24px; text-align: center; }
.join-card { display: flex; flex-direction: column; align-items: center; gap: 0; max-width: 360px; width: 100%; }
.join-icon { width: 88px; height: 88px; border-radius: var(--r-card); margin-bottom: 20px; }
.join-logo { font-size: 40px; margin-bottom: 8px; }
.join-title { font-family: var(--font-body); font-size: 20px; font-weight: 600; letter-spacing: 0; margin-bottom: 6px; }
.join-code { font-size: 16px; color: var(--muted); font-weight: 500; margin-bottom: 32px; letter-spacing: 2px; }
.join-code b { color: var(--text); letter-spacing: 3px; }
.join-card .btn-store { justify-content: center; min-width: 240px; margin-bottom: 16px; }
.join-open { display: block; color: var(--muted); font-size: 14px;
  border-bottom: 1px solid var(--border-subtle); padding-bottom: 3px; margin: 8px auto 0; width: fit-content; }
.join-open:hover { color: var(--text); border-color: var(--text); }
.join-hint { font-size: 13px; color: var(--muted-2); margin-top: 28px; max-width: 320px; }
.join-foot { position: fixed; bottom: 16px; font-size: 12px; color: var(--muted-2); }
.join-android { background: var(--pink-soft); border: 1px solid var(--border); border-radius: var(--r-card);
  padding: 22px 20px; margin-bottom: 16px; width: 100%; text-align: left; }
.join-android strong { display: block; font-size: 17px; font-weight: 600; color: var(--text); margin-bottom: 8px; }
.join-android p { color: var(--muted); font-size: 14px; margin-bottom: 14px; }
.join-android form { display: flex; gap: 10px; flex-wrap: wrap; }
.join-android input { flex: 1 1 160px; background: var(--input-bg); border: 1px solid var(--border-subtle);
  border-radius: var(--r-md); padding: 12px 14px; color: var(--text); font-family: var(--font-body); font-size: 15px; }
.join-android input::placeholder { color: var(--muted-2); }
.join-android .btn-store { min-width: 0; margin-bottom: 0; padding: 12px 20px; }
.join-qr { width: 200px; height: 200px; background: #fff; border-radius: var(--r-md); padding: 10px; margin: 0 auto 16px; }

/* ── Accessibilité : contenu réservé aux lecteurs d'écran (caption de table, etc.) ── */
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

/* ── Reveal on scroll (progressive enhancement ; sans JS tout reste visible) ── */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity .4s ease, transform .4s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; }
  .reveal { opacity: 1 !important; transform: none !important; transition: none; }
  .btn { transition: none; }
  /* Halo décoratif diffus : on coupe le blur pour les utilisateurs sensibles au mouvement. */
  .halo { filter: none; opacity: 0.25; }
}

/* ── §8.2 Accents par mode (couleur `solid` de accentByMode, hover) ── */
.mode-card[data-mode="most-likely-to"]:hover { border-color: #FF2146; }
.mode-card[data-mode="guess-who"]:hover      { border-color: #FF2146; }
.mode-card[data-mode="caption-battle"]:hover { border-color: #E5A7FF; }
.mode-card[data-mode="photo-roulette"]:hover { border-color: #5297FF; }
.mode-card[data-mode="who-liked-this"]:hover { border-color: #3BECA2; }
.mode-card[data-mode="un-10-mais"]:hover     { border-color: #FF5252; }
.mode-card[data-mode="qui-a-deja"]:hover     { border-color: #1E78FF; }
