/* ScoreMoi marketing site — identité « tableau de score »
   Espace dédié dark-only (identité propre, charte G-05). Zéro JS, fonts système. */

:root {
  /* Surfaces — navy « tableau de score », d'après le logo 4:2 */
  --bg-page:        #0a1526;
  --bg-card:        #12213c;
  --bg-card-2:      #1a2d4c;
  --bg-card-3:      #142440;
  --board-bg:       #050b16;

  /* Texte */
  --text:           #e7edf6;
  --text-strong:    #ffffff;
  --text-muted:     #93a3ba;
  --text-dim:       #5d6d85;

  /* Accent — bleu électrique du logo (primaire) */
  --accent:         #4aa3ff;
  --accent-hi:      #78bcff;
  --accent-ink:     #04142e;          /* encre navy sur pastille bleue */

  /* Sémantique */
  --orange:         #ff8a1f;          /* secondaire, du logo (« eux », packs) */
  --free:           #34d399;          /* jeux gratuits */
  --free-dim:       #10633f;
  --pack:           #ff8a1f;          /* packs payants = orange */
  --victory:        #22c55e;
  --defeat:         #ef4444;

  --border:         rgba(255, 255, 255, 0.09);
  --border-strong:  rgba(255, 255, 255, 0.17);

  --radius:         14px;
  --radius-lg:      22px;
  --max-w:          920px;

  --shadow-card:    0 1px 2px rgba(0, 0, 0, 0.4), 0 8px 24px rgba(0, 0, 0, 0.35);

  color-scheme: dark;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background:
    radial-gradient(1100px 560px at 82% -12%, rgba(74, 163, 255, 0.10), transparent 60%),
    radial-gradient(900px 500px at 8% 8%, rgba(255, 138, 31, 0.05), transparent 55%),
    var(--bg-page);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", "Inter", system-ui, sans-serif;
  font-feature-settings: "tnum", "ss01";
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.15s ease;
}

a:hover, a:focus-visible { text-decoration: underline; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ---------- Layout shell ---------- */
.shell {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 24px 24px 80px;
}

header.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 0 24px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 32px;
}

header.top .brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 17px;
  letter-spacing: -0.01em;
  color: var(--text-strong);
}

header.top .brand:hover { text-decoration: none; }

header.top .brand .brand-logo {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  display: block;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08) inset, 0 2px 8px rgba(0, 0, 0, 0.4);
}

nav.top-nav {
  display: flex;
  gap: 20px;
  font-size: 14px;
}

nav.top-nav a { color: var(--text-muted); }

nav.top-nav a:hover,
nav.top-nav a[aria-current="page"] {
  color: var(--text-strong);
  text-decoration: none;
}

/* ---------- Section label ---------- */
.section-label {
  font-size: 11px;
  margin: 0 0 6px;
  color: var(--accent);
  letter-spacing: 0.09em;
  text-transform: uppercase;
  font-weight: 800;
}

/* ---------- Hero ---------- */
.hero {
  display: grid;
  grid-template-columns: 1fr;
  gap: 44px;
  padding: 20px 0 40px;
  align-items: center;
}

@media (min-width: 800px) {
  .hero {
    grid-template-columns: 1fr 300px;
    gap: 48px;
  }
}

.hero h1 {
  font-size: clamp(36px, 6.4vw, 56px);
  line-height: 1.02;
  letter-spacing: -0.03em;
  margin: 0 0 16px;
  font-weight: 850;
  color: var(--text-strong);
}

.hero h1 .accent { color: var(--accent); }

.hero p.lead {
  font-size: clamp(15px, 1.8vw, 17px);
  color: var(--text-muted);
  max-width: 540px;
  margin: 0 0 28px;
  line-height: 1.55;
}

.cta-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 18px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.01em;
  border: 1px solid var(--border-strong);
  background: var(--bg-card-2);
  color: var(--text-strong);
  transition: transform 0.08s ease, background 0.15s ease, border-color 0.15s ease;
}

.btn:hover {
  text-decoration: none;
  transform: translateY(-1px);
  border-color: var(--text-dim);
}

.btn.primary {
  background: var(--accent);
  color: var(--accent-ink);
  border-color: transparent;
  box-shadow: 0 0 0 2px rgba(74, 163, 255, 0.22);
}

.btn.primary:hover { background: var(--accent-hi); }

.btn.off {
  opacity: 0.55;
  cursor: default;
  pointer-events: none;
}

.btn small { font-weight: 700; opacity: 0.85; }

.btn-note {
  font-size: 13px;
  color: var(--text-muted);
  margin: 8px 0 0;
}

/* ---------- Mockup : duo iPhone + Apple Watch ---------- */
.devices {
  position: relative;
  height: 340px;
  margin: 0 auto;
  width: 100%;
  max-width: 300px;
}

/* iPhone — écran de score posé sur la table */
.phone {
  position: absolute;
  left: 0;
  top: 8px;
  width: 190px;
  height: 320px;
  background: var(--board-bg);
  border-radius: 34px;
  border: 7px solid #17171c;
  box-shadow: 0 0 0 1px #2b2b32 inset, 0 18px 44px rgba(0, 0, 0, 0.6);
  overflow: hidden;
  font-feature-settings: "tnum";
}

.phone .notch {
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: 58px;
  height: 15px;
  background: #17171c;
  border-radius: 999px;
}

.phone .screen {
  padding: 30px 14px 14px;
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 10px;
  color: #fff;
}

.phone .board-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 10px;
  color: rgba(255, 255, 255, 0.5);
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.phone .board-top .live {
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.phone .board-top .live::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

.phone .teams {
  flex: 1;
  display: grid;
  grid-template-rows: 1fr 1fr;
  gap: 8px;
}

.phone .team {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  padding: 0 14px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.phone .team.lead {
  background: rgba(74, 163, 255, 0.15);
  border-color: rgba(74, 163, 255, 0.42);
}

.phone .team .who {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.01em;
  opacity: 0.92;
}

.phone .team .pts {
  font-size: 40px;
  font-weight: 850;
  letter-spacing: -0.03em;
  line-height: 1;
}

.phone .team.lead .pts { color: var(--accent); }        /* « nous » = bleu */
.phone .team:not(.lead) .pts { color: var(--orange); }  /* « eux » = orange */

.phone .tapline {
  text-align: center;
  font-size: 9.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.35);
  font-weight: 700;
}

/* Apple Watch — superposée, en écho */
.watch {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 118px;
  height: 142px;
  background: var(--board-bg);
  border-radius: 30px;
  border: 6px solid #000;
  box-shadow: 0 0 0 2px #26262c inset, 0 14px 34px rgba(0, 0, 0, 0.65);
  overflow: hidden;
  font-feature-settings: "tnum";
}

.watch .crown {
  position: absolute;
  right: -9px;
  top: 42px;
  width: 7px;
  height: 22px;
  background: #1a1a1f;
  border-radius: 2px;
}

.watch .wscreen {
  padding: 12px 9px;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  color: #fff;
  text-align: center;
}

.watch .wgame {
  font-size: 8.5px;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
  font-weight: 800;
}

.watch .wcount {
  font-size: 46px;
  font-weight: 850;
  line-height: 0.9;
  letter-spacing: -0.04em;
  color: var(--accent);
}

.watch .wsub {
  font-size: 9px;
  color: rgba(255, 255, 255, 0.55);
  font-weight: 700;
}

/* ---------- Section générique ---------- */
.section { margin-top: 56px; }

.section > .section-label { margin-bottom: 4px; }

.section h2 {
  font-size: clamp(24px, 3.4vw, 30px);
  letter-spacing: -0.02em;
  margin: 0 0 8px;
  font-weight: 850;
  color: var(--text-strong);
}

.section .intro {
  font-size: 15px;
  color: var(--text-muted);
  max-width: 620px;
  margin: 0 0 22px;
}

/* Étiquette de prix (gratuit / pack) */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid;
}

.tag--free {
  color: var(--free);
  border-color: color-mix(in srgb, var(--free) 45%, transparent);
  background: color-mix(in srgb, var(--free) 10%, transparent);
}

.tag--pack {
  color: var(--orange);
  border-color: color-mix(in srgb, var(--orange) 45%, transparent);
  background: color-mix(in srgb, var(--orange) 10%, transparent);
}

/* ---------- Grille de jeux (chips) ---------- */
.games {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.game {
  display: flex;
  flex-direction: column;
  gap: 4px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 16px 18px;
  box-shadow: var(--shadow-card);
}

.game .game-ico {
  width: 40px;
  height: 40px;
  display: block;
  margin-bottom: 8px;
  opacity: 0.95;
}

.game .name {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-strong);
}

.game .desc {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.45;
}

/* ---------- Packs thématiques ---------- */
.packs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.pack {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px 20px 22px;
  box-shadow: var(--shadow-card);
}

.pack--soon { opacity: 0.72; }

.pack .pack-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.pack h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--text-strong);
}

.pack .pack-list {
  font-size: 13.5px;
  color: var(--text-muted);
  line-height: 1.5;
  margin: 0;
}

.pack .pack-note {
  margin: 12px 0 0;
  font-size: 12px;
  color: var(--text-dim);
}

/* ---------- Bandeau promesse ---------- */
.promise {
  margin-top: 56px;
  background: var(--bg-card-3);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius);
  padding: 22px 24px 24px;
}

.promise h2 {
  font-size: 20px;
  margin: 0 0 12px;
  color: var(--text-strong);
  letter-spacing: -0.01em;
  font-weight: 800;
}

.promise ul {
  margin: 0 0 14px;
  padding-left: 0;
  list-style: none;
  display: grid;
  gap: 8px;
}

.promise li {
  font-size: 14px;
  color: var(--text);
  padding-left: 24px;
  position: relative;
  line-height: 1.5;
}

.promise li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--accent);
  font-weight: 800;
}

.promise .more { font-size: 13.5px; margin: 0; color: var(--text-muted); }

/* ---------- Content pages ---------- */
.page-head { padding: 8px 0 28px; }

.page-title {
  font-size: clamp(28px, 5vw, 40px);
  letter-spacing: -0.02em;
  margin: 4px 0 6px;
  font-weight: 850;
  color: var(--text-strong);
}

.page-subtitle { color: var(--text-muted); margin: 0; font-size: 14px; }

.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 22px 24px;
  box-shadow: var(--shadow-card);
  margin-bottom: 16px;
  max-width: 740px;
}

.card h2 {
  margin: 0 0 8px;
  font-size: 14px;
  color: var(--accent);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 800;
}

.card h3 {
  margin: 20px 0 6px;
  font-size: 16px;
  color: var(--text-strong);
  letter-spacing: -0.005em;
}

.card h3:first-of-type { margin-top: 4px; }

.card p {
  margin: 0 0 12px;
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--text);
}

.card p:last-child { margin-bottom: 0; }

.card strong { color: var(--text-strong); font-weight: 600; }

.card ul { padding-left: 18px; margin: 6px 0 12px; }

.card li { font-size: 14px; line-height: 1.55; color: var(--text); }

.card li + li { margin-top: 4px; }

.card li::marker { color: var(--text-dim); }

/* Note callout */
.note {
  font-size: 13.5px;
  color: var(--text);
  line-height: 1.55;
  background: var(--bg-card-3);
  border-left: 3px solid var(--accent);
  padding: 12px 16px;
  border-radius: 6px;
  margin: 0 0 20px;
  max-width: 740px;
}

.note b, .note strong { color: var(--text-strong); }

/* Email pill button reuse */
.email-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--accent-ink) !important;
  font-weight: 700;
  font-size: 14px;
  margin: 4px 0 4px;
  box-shadow: 0 0 0 2px rgba(74, 163, 255, 0.22);
}

.email-cta:hover { background: var(--accent-hi); text-decoration: none; }

/* ---------- Footer ---------- */
footer.bottom {
  margin-top: 64px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 12.5px;
  color: var(--text-dim);
  letter-spacing: 0.01em;
}

footer.bottom nav { display: flex; gap: 16px; }

footer.bottom nav a { color: var(--text-muted); }

/* ---------- Page introuvable (404) ---------- */
.nf {
  min-height: 54vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 24px 0 40px;
}

.nf-score {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  margin: 6px 0 18px;
}

.nf-num {
  font-size: clamp(72px, 17vw, 140px);
  font-weight: 850;
  line-height: 0.85;
  letter-spacing: -0.05em;
  color: var(--text-strong);
  font-variant-numeric: tabular-nums;
}

.nf-call {
  font-size: clamp(12px, 2.2vw, 15px);
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  padding: 6px 14px;
  white-space: nowrap;
}

.nf h1 {
  font-size: clamp(26px, 4.5vw, 38px);
  font-weight: 850;
  letter-spacing: -0.025em;
  color: var(--text-strong);
  margin: 0 0 12px;
}

.nf-lead {
  font-size: clamp(15px, 1.8vw, 17px);
  color: var(--text-muted);
  max-width: 460px;
  margin: 0 0 26px;
  line-height: 1.55;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
