/* ==========================================================================
   Jetons de design — un seul endroit pour couleurs, rythme et typographie.
   Thème sombre unique : le site est pensé comme un poste de travail.
   ========================================================================== */
:root {
  /* Couleurs de surface */
  --bg: #070b11;
  --bg-deep: #05080d;
  --surface: #0d141d;
  --surface-2: #111a25;
  --surface-3: #16212e;
  --overlay: rgba(4, 7, 11, 0.72);

  /* Lignes et séparateurs */
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.16);
  --line-accent: rgba(94, 225, 192, 0.35);

  /* Texte */
  --text: #e7eef7;
  --text-soft: #b3c0cf;
  --text-muted: #8090a3;
  --text-inverse: #061014;

  /* Accents */
  --accent: #5ee1c0;
  --accent-strong: #2fc9a6;
  --accent-soft: rgba(94, 225, 192, 0.12);
  --accent-line: rgba(94, 225, 192, 0.28);
  --blue: #7aa8ff;
  --danger: #ff8080;
  --danger-soft: rgba(255, 128, 128, 0.12);
  --warning: #ffc46b;

  /* Typographie */
  --font-sans: "Inter", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, "SFMono-Regular", "Cascadia Code", "JetBrains Mono", Consolas,
    "Liberation Mono", monospace;

  --text-xs: 0.6875rem;
  --text-sm: 0.8125rem;
  --text-base: 0.9375rem;
  --text-md: 1.0625rem;
  --text-lg: clamp(1.25rem, 1.1rem + 0.6vw, 1.5rem);
  --text-xl: clamp(1.6rem, 1.3rem + 1.4vw, 2.25rem);
  --text-2xl: clamp(2.1rem, 1.6rem + 2.6vw, 3.4rem);
  --text-hero: clamp(2.6rem, 1.8rem + 4.4vw, 4.75rem);

  --leading-tight: 1.12;
  --leading-snug: 1.35;
  --leading-normal: 1.65;
  --tracking-wide: 0.16em;
  --tracking-wider: 0.24em;

  /* Rythme */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-7: 3rem;
  --space-8: 4.5rem;
  --space-9: 6.5rem;

  /* Rayons */
  --radius-xs: 4px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-pill: 999px;

  /* Ombres */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 18px 40px -24px rgba(0, 0, 0, 0.85);
  --shadow-lg: 0 40px 90px -50px rgba(0, 0, 0, 0.95);
  --glow: 0 0 0 1px var(--accent-line), 0 24px 60px -40px rgba(94, 225, 192, 0.6);

  /* Gabarit */
  --sidebar-w: 264px;
  --topbar-h: 60px;
  --page-max: 1140px;
  --gutter: clamp(1.15rem, 4vw, 3.25rem);

  /* Mouvement */
  --reveal-delay: 0ms;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --dur-fast: 140ms;
  --dur: 220ms;
  --dur-slow: 420ms;

  /* Plans */
  --z-backdrop: -1;
  --z-topbar: 40;
  --z-sidebar: 50;
  --z-drawer: 70;
  --z-overlay: 80;
  --z-loader: 100;
}
