/* SudoKoum — site officiel.
   Design system de l'app (source : -Maquettes/design-system.md + prototype onboarding v3).
   Fond bleu nuit #0F1F3D (splash / onboarding), tokens du mode sombre, gradient CTA officiel. */

:root {
  --navy: #0F1F3D;          /* fond splash / onboarding */
  --navy-deep: #0B1220;     /* bg mode sombre */
  --surface: #152033;
  --surface-alt: #0F1A2B;
  --border: #243248;
  --text: #F1F5F9;
  --muted: #94A3B8;
  --teal: #14b8a6;
  --teal-bright: #5eead4;
  --teal-dark: #0d9488;
  --teal-deep: #0f766e;
  --grad-cta: linear-gradient(135deg, #134e4a 13%, #0d9488 60%, #14b8a6 100%);
  /* Échelle typo du DS : display 32/800, title 22/700, heading 18/700, body 15, small 13, tiny 11/600 */
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Roboto, system-ui, sans-serif;
  background: var(--navy);
  color: var(--text);
  line-height: 1.6;
  font-size: 15px;
  -webkit-font-smoothing: antialiased;
}

.wrap { max-width: 960px; margin: 0 auto; padding: 0 16px; }

/* ── Header ── */
header.site {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(15, 31, 61, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}
header.site .wrap { display: flex; align-items: center; justify-content: space-between; padding-top: 12px; padding-bottom: 12px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.logo img { width: 30px; height: 30px; border-radius: 8px; display: block; }
.wordmark { font-size: 20px; font-weight: 800; letter-spacing: -0.6px; color: #fff; }
.wordmark em { font-style: normal; color: var(--teal); }
nav { display: flex; gap: 18px; align-items: center; }
nav a { color: var(--muted); text-decoration: none; font-size: 13px; font-weight: 600; }
nav a:hover { color: var(--teal-bright); }
.lang-switch {
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 5px 14px;
  color: var(--text) !important;
}

/* ── Hero ── */
.hero { position: relative; overflow: hidden; padding: 72px 0 64px; }
.hero-glow-a {
  position: absolute; width: 420px; height: 420px; border-radius: 50%;
  background: radial-gradient(circle, rgba(20,184,166,0.22) 0%, transparent 68%);
  top: -120px; right: -100px; pointer-events: none;
}
.hero-glow-b {
  position: absolute; width: 260px; height: 260px; border-radius: 50%;
  background: radial-gradient(circle, rgba(13,148,136,0.18) 0%, transparent 70%);
  bottom: -60px; left: -90px; pointer-events: none;
}
.hero-art {
  position: absolute; top: 30px; right: -40px;
  transform: rotate(12deg); pointer-events: none;
}
.hero-grid9 {
  display: grid;
  grid-template-columns: repeat(9, 20px);
  grid-template-rows: repeat(9, 20px);
  gap: 2px;
}
.hg-cell {
  border-radius: 3px;
  display: flex; align-items: center; justify-content: center;
  font-size: 10px; font-weight: 800;
  background: rgba(255,255,255,0.04);
  color: transparent;
}
.hg-cell.lit { background: rgba(20,184,166,0.28); color: var(--teal-bright); }
.hg-cell.dim { background: rgba(255,255,255,0.07); color: rgba(255,255,255,0.35); }
.hero-art::after {
  content: ''; position: absolute; inset: -20px;
  background:
    linear-gradient(to right, var(--navy) 0%, transparent 35%, transparent 60%, var(--navy) 100%),
    linear-gradient(to bottom, var(--navy) 0%, transparent 30%, transparent 65%, var(--navy) 100%);
}
.hero .wrap { position: relative; z-index: 2; }
.eyebrow {
  font-size: 11px; font-weight: 800; letter-spacing: 2px;
  color: var(--teal); text-transform: uppercase; margin-bottom: 16px;
}
.hero h1 {
  font-size: clamp(30px, 5vw, 44px);
  font-weight: 800;
  letter-spacing: -1px;
  line-height: 1.15;
  color: #fff;
  max-width: 660px;
  margin-bottom: 16px;
}
.hero h1 em { font-style: normal; color: var(--teal); }
.hero .tagline {
  font-size: 16px; color: rgba(241,245,249,0.6);
  max-width: 560px; margin-bottom: 22px; line-height: 1.65;
}
.pills { display: flex; gap: 7px; flex-wrap: wrap; margin-bottom: 30px; }
.pill {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(20,184,166,0.1);
  border: 1px solid rgba(20,184,166,0.22);
  border-radius: 999px; padding: 5px 12px;
  font-size: 11px; font-weight: 700; color: var(--teal-bright);
}
.pill-dot { width: 5px; height: 5px; border-radius: 50%; background: var(--teal); }

.stores { display: flex; gap: 10px; flex-wrap: wrap; }
.store-btn {
  display: inline-flex; flex-direction: column; align-items: center;
  background: var(--grad-cta);
  border-radius: 999px;
  padding: 13px 28px;
  color: #fff; text-decoration: none;
  font-size: 15px; font-weight: 800; letter-spacing: 0.2px;
  box-shadow: 0 6px 20px rgba(13,148,136,0.4);
  line-height: 1.25;
}
.store-btn small { font-size: 10px; font-weight: 600; color: rgba(255,255,255,0.75); letter-spacing: 0.4px; }
.store-btn.soon { opacity: 0.55; cursor: default; box-shadow: none; }
.pricing-note { margin-top: 20px; color: var(--muted); font-size: 13px; }
.pricing-note strong { color: var(--teal-bright); }

/* ── Sections ── */
section { padding: 56px 0; }
section h2 { font-size: 22px; font-weight: 700; letter-spacing: -0.3px; margin-bottom: 8px; }
section .lead { color: var(--muted); margin-bottom: 28px; max-width: 620px; }

/* ── Carte Défi (DefiHero du DS) ── */
.defi-hero {
  position: relative;
  background: var(--grad-cta);
  border-radius: 20px;
  padding: 24px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(13,148,136,0.32);
  margin-bottom: 12px;
}
.defi-badge {
  display: inline-block;
  background: rgba(94,234,212,0.15);
  color: var(--teal-bright);
  font-size: 10px; font-weight: 800; letter-spacing: 1.2px;
  border-radius: 999px; padding: 4px 10px;
  text-transform: uppercase;
  margin-bottom: 12px;
}
.defi-hero h3 { font-size: 26px; font-weight: 800; letter-spacing: -0.6px; color: #fff; margin-bottom: 8px; }
.defi-hero p { font-size: 13px; color: rgba(255,255,255,0.75); max-width: 520px; }

/* ── Features (cards surface, style PlayerCard sombre) ── */
.feature-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 12px; }
.feature {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 18px;
}
.feature svg { stroke: var(--teal-bright); margin-bottom: 10px; }
.feature h3 { font-size: 15px; font-weight: 800; margin-bottom: 5px; }
.feature p { color: var(--muted); font-size: 13px; }

/* ── Tuiles difficulté (Solo Section du DS, teal monochrome) ── */
.solo-row { display: flex; gap: 6px; margin-top: 24px; }
.solo-tile {
  flex: 1; border-radius: 10px; min-height: 84px;
  padding: 12px;
  display: flex; align-items: center; justify-content: center;
  text-align: center;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
}
.solo-tile .name { font-size: 15px; font-weight: 800; line-height: 1.25; }

/* ── Comparatif ── */
.diff table {
  width: 100%; border-collapse: collapse;
  background: var(--surface);
  border-radius: 16px; overflow: hidden;
  border: 1px solid var(--border);
}
.diff th, .diff td { padding: 12px 14px; text-align: left; border-bottom: 1px solid var(--border); font-size: 13px; }
.diff tr:last-child td { border-bottom: none; }
.diff th {
  background: var(--surface-alt);
  font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.06em;
  color: var(--muted);
}
.diff td.yes { color: var(--teal-bright); font-weight: 800; }
.diff td.no { color: var(--muted); }

/* ── FAQ ── */
.faq h2.faq-q {
  font-size: 18px; font-weight: 700;
  margin: 26px 0 6px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}
.faq h2.faq-q:first-of-type { border-top: none; padding-top: 0; }
.faq p { color: var(--muted); max-width: 700px; }

/* ── Footer ── */
footer.site-footer {
  border-top: 1px solid var(--border);
  background: var(--navy-deep);
  padding: 36px 0;
  color: var(--muted);
  font-size: 13px;
}
footer.site-footer .canonical { max-width: 700px; margin-bottom: 18px; }
footer.site-footer a { color: var(--teal-bright); text-decoration: none; }
footer.site-footer .links { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 10px; }

/* ── Pages légales ── */
.legal-hero {
  padding: 48px 0 36px;
  border-bottom: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(20,184,166,0.06), transparent);
}
.legal-hero h1 { font-size: 30px; font-weight: 800; letter-spacing: -0.6px; color: #fff; line-height: 1.2; }
.legal-hero .sub { margin-top: 10px; color: var(--muted); font-size: 13px; }
.legal-main { max-width: 820px; margin: 0 auto; padding: 8px 16px 72px; }
.legal-main h2 {
  color: var(--text);
  font-size: 20px; font-weight: 700; letter-spacing: -0.3px;
  margin: 40px 0 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}
.legal-main h2 .num { color: var(--teal); margin-right: 8px; }
.legal-main p, .legal-main li { color: var(--muted); }
.legal-main strong { color: var(--text); }
.legal-main a { color: var(--teal-bright); }
.legal-main ul { padding-left: 22px; margin: 10px 0; }
.legal-main .lead {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 4px solid var(--teal);
  padding: 18px 20px;
  border-radius: 10px;
  margin-top: 28px;
}
.id-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 18px 22px;
  margin: 10px 0;
}
.id-card ul { list-style: none; margin: 0 !important; padding: 0 !important; }
.id-card li { padding: 4px 0; }
.id-card .k { color: var(--teal-bright); display: inline-block; min-width: 150px; font-size: 13px; font-weight: 700; }
.legal-main table {
  width: 100%;
  border-collapse: collapse;
  margin: 14px 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  font-size: 13.5px;
}
.legal-main th, .legal-main td { text-align: left; padding: 11px 14px; border-bottom: 1px solid var(--border); vertical-align: top; }
.legal-main th {
  background: var(--surface-alt);
  color: var(--muted);
  font-size: 11px; font-weight: 800;
  text-transform: uppercase; letter-spacing: 0.06em;
}
.legal-main tr:last-child td { border-bottom: none; }
.legal-note {
  margin-top: 50px;
  padding-top: 22px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 13px;
}
.legal-note a { color: var(--teal-bright); }

@media (max-width: 700px) {
  nav a.hide-mobile { display: none; }
  .hero { padding: 48px 0 44px; }
  .hero-art { opacity: 0.55; }
  .solo-row { flex-wrap: wrap; }
  .solo-tile { min-width: 96px; }
}
@media (max-width: 560px) {
  .legal-hero h1 { font-size: 24px; }
  .id-card .k { min-width: 0; display: block; }
}
