/* =========================================================
   base.css — Couleurs, polices, reset, éléments de base
   Thème « Nuit » : fond noir à grille de points, accent vert.
   Pour changer les couleurs du site : modifie les variables ci-dessous.
   ========================================================= */

:root {
  /* Couleurs */
  --bg: #08090a;          /* fond de page */
  --surface: #0f1113;     /* cartes, panneaux */
  --surface-2: #16191c;   /* éléments dans les cartes */
  --ink: #edeef0;         /* texte principal */
  --muted: #8a8f98;       /* texte secondaire */
  --line: #1d2024;        /* bordures */
  --line-strong: #3a3f46; /* bordures au survol */
  --accent: #3ee08f;      /* vert */
  --accent-ink: #04140b;  /* texte posé sur le vert */
  --glow: rgba(62, 224, 143, 0.14);
  --ok: #3ee08f;
  --meter-off: #1d2024;

  /* Polices */
  --font-display: "Space Grotesk", "Segoe UI", system-ui, sans-serif;
  --font-body: "Space Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Consolas, monospace;

  /* Dimensions et mouvement */
  --max: 1160px;
  --radius: 16px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);

  color-scheme: dark;
}

/* Reset */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background-color: var(--bg);
  background-image: radial-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px);
  background-size: 24px 24px;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; display: block; }
::selection { background: var(--accent); color: var(--accent-ink); }

/* Titres et texte */
h1, h2, h3 {
  font-family: var(--font-display);
  line-height: 1.04;
  text-wrap: balance;
  margin: 0;
  font-weight: 600;
}
h1 { font-size: clamp(2.4rem, 6vw, 4.4rem); letter-spacing: -0.04em; }
h2 { font-size: clamp(1.9rem, 4.2vw, 3.2rem); letter-spacing: -0.035em; }
h3 { font-size: 1.3rem; letter-spacing: -0.01em; }
p { margin: 0; }
a { color: var(--accent); }

/* Petite étiquette verte avec un point lumineux */
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--accent);
}
.eyebrow::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%; flex: none;
  background: var(--accent); box-shadow: 0 0 12px var(--accent);
}
.muted { color: var(--muted); }
.small { font-size: 0.82rem; color: var(--muted); }
.grad {
  background: linear-gradient(90deg, var(--ink), var(--accent));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* Focus clavier visible (accessibilité) */
a:focus-visible, button:focus-visible, input:focus-visible,
textarea:focus-visible, select:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

/* Boutons */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 12px 22px; border-radius: 10px;
  font: 500 1rem var(--font-body);
  text-decoration: none; cursor: pointer;
  border: 1px solid var(--line);
  background: var(--surface); color: var(--ink);
  transition: border-color 0.3s, background 0.3s, box-shadow 0.3s;
  will-change: transform;
}
.btn.primary { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.btn.primary:hover { box-shadow: 0 0 0 4px var(--glow), 0 10px 30px -10px var(--accent); }
.btn.ghost:hover { border-color: var(--line-strong); }
.btn:disabled { opacity: 0.6; cursor: wait; }

/* Formulaires */
label { display: grid; gap: 6px; font-weight: 500; font-size: 0.92rem; }
input, textarea, select {
  font: inherit; color: var(--ink); background: var(--bg);
  border: 1px solid var(--line); border-radius: 10px;
  padding: 11px 13px; width: 100%;
  transition: border-color 0.2s, box-shadow 0.2s;
}
input:focus, textarea:focus, select:focus { border-color: var(--accent); box-shadow: 0 0 0 4px var(--glow); outline: none; }
textarea { min-height: 140px; resize: vertical; }
