/*
 * Waypoint — design tokens « Cockpit ».
 * Uniquement des variables : toutes les couleurs de l'interface passent par ici,
 * pour qu'un thème clair puisse être ajouté plus tard en redéfinissant ce seul bloc.
 */
:root {
  color-scheme: dark;

  /* Surfaces */
  --bg: #0b1220;
  --bg-raised: #0e1729;
  --panel: #111c31;
  --panel-hover: #142240;
  --panel-sunken: #0d1628;

  /* Traits */
  --border: #1f2d47;
  --border-soft: #1a2740;
  --border-strong: #2a3a58;
  --faint: #3b4b69; /* décor uniquement (jamais pour du texte) */

  /* Texte */
  --text: #c9d4e5;
  --text-strong: #e6edf7;
  --text-soft: #b5c1d4; /* lecture longue : contraste légèrement adouci */
  --muted: #7d8aa3;

  /* Accents */
  --amber: #fbbf24;
  --amber-strong: #fcd34d;
  --cyan: #5eead4;
  --green: #4ade80;
  --red: #f87171;
  --red-muted: #e29a9a;
  --grey: #8b9ab5;
  --on-accent: #0b1220; /* texte posé sur un aplat ambre, cyan ou vert */

  /* Teintes (fonds de badges, alertes, survols) */
  --amber-tint: rgb(251 191 36 / 0.14);
  --amber-line: rgb(251 191 36 / 0.4);
  --cyan-tint: rgb(94 234 212 / 0.12);
  --cyan-line: rgb(94 234 212 / 0.35);
  --cyan-glow: rgb(94 234 212 / 0.15);
  --green-tint: rgb(74 222 128 / 0.12);
  --green-line: rgb(74 222 128 / 0.35);
  --red-tint: rgb(248 113 113 / 0.1);
  --red-line: rgb(248 113 113 / 0.4);
  --grey-tint: #18243b;
  --chip-bg: #0f2a2a;
  --chip-line: #155e59;
  --grid-line: rgb(94 234 212 / 0.045);
  --scrim: rgb(5 9 18 / 0.6);
  --shadow: 0 10px 30px rgb(0 0 0 / 0.35);
  --shadow-sm: 0 2px 8px rgb(0 0 0 / 0.25);

  /* Focus : anneau cyan, détaché du composant */
  --focus-ring: 0 0 0 2px var(--bg), 0 0 0 4px var(--cyan);

  /* Espacements */
  --s-1: 4px;
  --s-2: 8px;
  --s-3: 12px;
  --s-4: 16px;
  --s-5: 24px;
  --s-6: 32px;
  --s-7: 48px;

  /* Rayons */
  --r-sm: 4px;
  --r-md: 6px;
  --r-lg: 8px;
  --r-xl: 12px;
  --r-pill: 999px;

  /* Typographie */
  --font-sans: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", "Cascadia Mono", monospace;
  --fs-xs: 11px;
  --fs-sm: 12px;
  --fs-md: 14px;
  --fs-lg: 17px;
  --fs-xl: 22px;
  --fs-2xl: 28px;
  --lh: 1.5;
  --tracking-caps: 0.12em;

  /* Mise en page */
  --topbar-h: 56px;
  --content-max: 1200px;
  --prose-max: 75ch;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --t-fast: 120ms;
}
