/* ── EdgeMetrics — Site vitrine — jetons & composants partagés ──────────────
   Recréation fidèle (hifi) du design fourni par l'utilisateur (dossier
   design_handoff_edgemetrics_site/). Les .dc.html d'origine encodaient les
   couleurs en styles inline recalculés par un moteur de prototypage
   ({{ }}) — remplacé ici par de vraies variables CSS, plus robuste et
   sans dépendance à ce moteur (support.js/<x-dc> ignorés, comme l'indique
   le README fourni).

   Thème unique, sombre, permanent — choix explicite de l'utilisatrice
   (proposition A parmi 4 : "miroir intégral de l'app") après mise en
   ligne d'une première version à 3 thèmes commutables. Les jetons
   reprennent tels quels ceux du vrai sélecteur de plan de l'app
   (#versionSelector dans EdgeMetrics_v5_apifootball_phase1.html) plutôt
   qu'une réinterprétation graphique — le site vitrine doit ressembler à
   l'app, pas à une autre identité. Le switcher 3 thèmes a été retiré : un
   choix ferme, jamais délégué au visiteur. */

:root {
  --bg: #071a18;
  --bg-soft: #0b2e29;
  --text: #fff;
  --text-muted: rgba(255, 255, 255, .55);
  --text-faint: rgba(255, 255, 255, .4);
  --card-bg: rgba(255, 255, 255, .05);
  --card-border: rgba(255, 255, 255, .1);
  --nav-bg: rgba(7, 26, 24, .88);
  --nav-border: rgba(255, 255, 255, .08);
  --footer-bg: rgba(0, 0, 0, .25);
  --accent: #0b7871;
  --strip-bg: rgba(0, 0, 0, .25);

  --accent-grad: linear-gradient(90deg, #3aa05a, #7eeaa0);
  --btn-grad: linear-gradient(135deg, #0b7871, #3aa05a 55%, #4ab868);
  --btn-text: #04140f;
  --gold-grad: linear-gradient(90deg, #c87800, #e6c34a, #c87800);
  --gold-text: #1a1200;
}

* { box-sizing: border-box; }

html, body { margin: 0; }

body {
  font-family: Inter, system-ui, sans-serif;
  background: #071a18 linear-gradient(160deg, #071a18 0%, #0b2e29 55%, #0d3530 100%);
  color: var(--text);
  min-width: 360px;
}

a { text-decoration: none; }
::selection { background: rgba(58, 160, 90, .35); }
img { max-width: 100%; }

.mono {
  font-family: ui-monospace, "SF Mono", Consolas, monospace;
}

/* ── Layout de base ───────────────────────────────────────────────────── */
.wrap { max-width: 1280px; margin: 0 auto; padding: 0 52px; }
@media (max-width: 900px) {
  .wrap { padding: 0 20px; }
}

section { padding: 90px 52px; }
@media (max-width: 900px) {
  section { padding: 56px 20px; }
}

/* ── Navigation sticky ────────────────────────────────────────────────── */
.site-header { position: sticky; top: 0; z-index: 80; }

nav.site-nav {
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 14px 52px;
  background: var(--nav-bg);
  backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--nav-border);
  flex-wrap: wrap;
}
@media (max-width: 900px) { nav.site-nav { padding: 12px 20px; } }

.brand { display: flex; align-items: center; gap: 10px; }
.brand img { height: 30px; width: auto; border-radius: 7px; }
.brand span {
  font-size: 1.22rem; font-weight: 800; letter-spacing: -.02em; color: var(--text);
}
.brand .grad {
  background: var(--accent-grad);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}

.nav-links { display: flex; align-items: center; gap: 6px; font-size: .86rem; font-weight: 700; }
.nav-links a {
  color: var(--text-muted); padding: 8px 14px; border-radius: 999px;
  transition: background .16s ease, color .16s ease, transform .16s ease, box-shadow .16s ease;
}
.nav-links a:hover {
  background: var(--card-bg); color: var(--text);
  transform: translateY(-1px) scale(1.05);
  box-shadow: 0 4px 12px rgba(58, 160, 90, .18);
}
.nav-links a.current { color: var(--accent); }
@media (max-width: 1020px) { .nav-links { display: none; } }

.nav-right { display: flex; align-items: center; gap: 14px; }

.btn {
  display: inline-block; padding: 10px 22px; border-radius: 10px;
  background: var(--btn-grad); color: var(--btn-text); font-weight: 800; white-space: nowrap;
  font-size: .84rem; box-shadow: 0 4px 18px rgba(58, 160, 90, .3); border: none; cursor: pointer;
}
.btn-lg { padding: 15px 28px; font-size: .96rem; border-radius: 12px; box-shadow: 0 10px 28px rgba(58, 160, 90, .28); }
.btn-outline {
  display: inline-block; padding: 15px 28px; border-radius: 12px; border: 1px solid var(--card-border);
  color: var(--text); font-weight: 700; font-size: .96rem; white-space: nowrap;
}
.btn-gold {
  display: inline-block; background: var(--gold-grad); color: var(--gold-text); font-weight: 800;
  border-radius: 11px; padding: 12px; text-align: center; font-size: .86rem; white-space: nowrap;
  box-shadow: 0 6px 18px rgba(224, 180, 0, .25);
}

.hud-strip {
  display: flex; align-items: center; justify-content: center; gap: 16px; padding: 8px 0;
  background: var(--strip-bg); border-bottom: 1px solid var(--card-border);
  font-family: ui-monospace, monospace; font-size: .66rem; font-weight: 800; letter-spacing: .14em;
  text-transform: uppercase; color: var(--accent); backdrop-filter: blur(8px);
}
.hud-strip .dot { width: 4px; height: 4px; border-radius: 50%; background: var(--accent); }

/* HUD de progression — toujours sombre (effet gaming), indépendant du thème */
.hud-progress {
  display: flex; align-items: center; justify-content: center; gap: 26px; flex-wrap: wrap;
  padding: 9px 24px; background: #050b0a; border-bottom: 1px solid rgba(126, 234, 160, .14);
  font-family: ui-monospace, monospace; font-size: .68rem;
}
.hud-progress .live { display: flex; align-items: center; gap: 6px; color: #7eeaa0; }
.hud-progress .live .pip { width: 6px; height: 6px; border-radius: 50%; background: #7eeaa0; box-shadow: 0 0 8px #7eeaa0; }
.hud-progress .muted { color: #8a9a92; }
.hud-progress .bar { width: 120px; height: 5px; background: rgba(255, 255, 255, .08); border-radius: 99px; overflow: hidden; display: inline-block; }
.hud-progress .bar > span { display: block; height: 100%; background: linear-gradient(90deg, #0b7871, #7eeaa0); }
.hud-progress .gold { color: #e6c34a; }
.hud-progress .purple { color: #c9a4ff; }

/* ── Composants génériques ───────────────────────────────────────────── */
.eyebrow {
  font-family: ui-monospace, monospace; font-size: .68rem; font-weight: 800; letter-spacing: .2em;
  text-transform: uppercase; margin-bottom: 12px;
}
.eyebrow.accent { color: var(--accent); }
.eyebrow.purple { color: #6d4bb0; }

.section-head { text-align: center; margin-bottom: 48px; }
.section-head h2 {
  font-family: "Space Grotesk", Inter, sans-serif; font-size: 2.2rem; font-weight: 600;
  color: var(--text); letter-spacing: -.01em; margin: 0 auto 16px; max-width: 700px;
}
.section-head p { color: var(--text-muted); font-size: 1rem; max-width: 680px; margin: 0 auto; line-height: 1.65; }
@media (max-width: 640px) { .section-head h2 { font-size: 1.6rem; } }

/* "Puffed" — ombre externe en 2 couches + liseré interne haut clair / bas
   sombre, repris tel quel de .version-card dans l'app (vraie sensation de
   volume plutôt qu'un simple aplat bordé). */
.card {
  background: var(--card-bg); border: 1px solid var(--card-border); border-radius: 20px; padding: 24px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .22), 0 8px 20px rgba(0, 0, 0, .12),
    inset 0 1.5px 0 rgba(255, 255, 255, .10), inset 0 -1px 0 rgba(0, 0, 0, .18);
  position: relative; overflow: hidden;
}
.card::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, .08), transparent 42%, rgba(0, 0, 0, .10));
  mix-blend-mode: overlay;
}
.card > * { position: relative; z-index: 1; }

.grid { display: grid; gap: 18px; }
.grid-2 { grid-template-columns: 1fr 1fr; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-5 { grid-template-columns: repeat(5, 1fr); }
@media (max-width: 900px) {
  .grid-2, .grid-3, .grid-4, .grid-5 { grid-template-columns: 1fr; }
}

.icon-box {
  width: 34px; height: 34px; border-radius: 10px; background: rgba(58, 160, 90, .16); color: #2f8b50;
  display: flex; align-items: center; justify-content: center; margin-bottom: 12px;
}

/* ── Rythme et découpage entre sections ──────────────────────────────────
   Plusieurs sections s'enchaînent sur le même fond neutre sans aucune
   séparation visuelle — juste un padding-top:0 répété section par section
   (retiré au profit d'une classe unique ici). Le trait fin reprend le
   token de bordure déjà utilisé partout ailleurs (nav, footer, cartes) :
   le découpage devient net sans introduire de nouvelle couleur. */
.section-tight { padding-top: 0; }
.section-divider {
  padding-top: 64px;
  border-top: 1px solid var(--card-border);
}
@media (max-width: 900px) {
  .section-divider { padding-top: 40px; }
}

footer.site-footer { background: var(--footer-bg); border-top: 1px solid var(--card-border); padding: 56px 52px 32px; }
@media (max-width: 900px) { footer.site-footer { padding: 40px 20px 28px; } }
footer.site-footer .cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; }
@media (max-width: 760px) { footer.site-footer .cols { grid-template-columns: 1fr 1fr; } }
footer.site-footer h4 {
  font-size: .7rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase;
  color: var(--text-faint); margin: 0 0 14px;
}
footer.site-footer .links { display: flex; flex-direction: column; gap: 10px; font-size: .84rem; }
footer.site-footer .links a { color: var(--text-muted); }
footer.site-footer .bottom {
  max-width: 1280px; margin: 40px auto 0; padding-top: 24px; border-top: 1px solid var(--card-border);
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px;
  color: var(--text-faint); font-size: .74rem;
}

/* ── Splash d'entrée (Accueil uniquement) ────────────────────────────── */
#splash {
  position: fixed; inset: 0; z-index: 999; cursor: pointer; display: flex; flex-direction: column;
  align-items: center; justify-content: center; background-color: #070d0c;
  background-image: var(--triangle-pattern); background-size: 420px 720px;
}
#splash::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(ellipse 900px 600px at 50% 45%, rgba(58, 160, 90, .14), transparent 65%);
}
#splash .inner { position: relative; text-align: center; padding: 0 20px; }
#splash img { height: 90px; width: auto; margin-bottom: 28px; filter: drop-shadow(0 8px 30px rgba(58, 160, 90, .35)); }
#splash .title {
  font-family: "Space Grotesk", Inter, sans-serif; font-size: 3.6rem; font-weight: 600; line-height: 1.1;
  letter-spacing: -.01em; color: #fff; text-shadow: 0 4px 40px rgba(58, 160, 90, .4); margin-bottom: 22px;
}
#splash .title .g { color: #3aa05a; }
#splash .tagline {
  display: flex; align-items: center; justify-content: center; gap: 18px; margin-bottom: 40px;
  font-family: ui-monospace, monospace; font-size: .78rem; font-weight: 800; letter-spacing: .14em;
  text-transform: uppercase; color: rgba(200, 235, 215, .8);
}
#splash .tagline .pip { width: 5px; height: 5px; border-radius: 50%; background: #7eeaa0; }
#splash .cta-pill {
  display: inline-flex; align-items: center; gap: 10px; padding: 14px 30px; border-radius: 999px;
  border: 1px solid rgba(126, 234, 160, .4); color: #7eeaa0; font-family: ui-monospace, monospace;
  font-size: .76rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; white-space: nowrap;
}
@media (max-width: 640px) {
  #splash .title { font-size: 2.2rem; }
  #splash .tagline { flex-wrap: wrap; gap: 10px; }
}
