/* ═══════════════════════════════════════════════════════════════
   HEVOLVE · TOKENS
   Une seule source de vérité pour toutes les pages.
   Règle : aucune couleur en dur dans les composants, uniquement ces variables.
   ═══════════════════════════════════════════════════════════════ */

:root {
  /* Marque (identiques dans les deux thèmes) */
  --violet-600: #6d28d9;
  --violet-500: #7c3aed;
  --violet-400: #9d65f5;
  --violet-300: #c4a5ff;
  --navy-950:   #0b0b18;
  --navy-900:   #10102a;

  /* Typographie */
  --font-display: "Bricolage Grotesque", system-ui, sans-serif;
  --font-body: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;

  --step--1: clamp(.8125rem, .79rem + .1vw, .875rem);
  --step-0:  clamp(1rem, .97rem + .15vw, 1.0625rem);
  --step-1:  clamp(1.125rem, 1.07rem + .3vw, 1.3125rem);
  --step-2:  clamp(1.375rem, 1.25rem + .6vw, 1.75rem);
  --step-3:  clamp(1.75rem, 1.5rem + 1.2vw, 2.5rem);
  --step-4:  clamp(2.25rem, 1.8rem + 2.2vw, 3.5rem);
  --step-5:  clamp(2.75rem, 1.9rem + 4.2vw, 5.25rem);

  /* Espacement / rayons / mouvement */
  --space-section: clamp(4.5rem, 3rem + 7vw, 9rem);
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --container: 1200px;
  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 24px;
  --r-pill: 999px;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --ease-in-out: cubic-bezier(.65, 0, .35, 1);
  --dur-1: .18s;
  --dur-2: .35s;
  --dur-3: .7s;
  --nav-h: 72px;
}

/* ── SOMBRE (défaut) · aussi appliqué aux blocs « inversés » en thème clair ── */
:root,
:root[data-theme="dark"],
[data-tone="inverse"] {
  --bg:        #0b0b18;
  --bg-2:      #0f0f22;
  --bg-3:      #151530;
  --surface:   rgba(255,255,255,.045);
  --surface-2: rgba(255,255,255,.08);
  --surface-solid: #14142b;
  --line:      rgba(255,255,255,.1);
  --line-2:    rgba(255,255,255,.18);
  --text:      #ffffff;
  --text-2:    rgba(255,255,255,.7);
  --text-3:    rgba(255,255,255,.5);
  --accent:    #9d65f5;          /* violet lisible sur fond sombre */
  --accent-strong: #7c3aed;
  --accent-soft: rgba(124,58,237,.16);
  --glow:      rgba(124,58,237,.38);
  --glow-2:    rgba(157,101,245,.2);
  --grid-line: rgba(255,255,255,.045);
  --shadow:    0 30px 80px -20px rgba(0,0,0,.6);
  --shadow-sm: 0 8px 30px -10px rgba(0,0,0,.5);
  --ok: #4ade80;
  --warn: #fbbf24;
  --no: #f87171;
  --nav-line: rgba(255,255,255,.07);
  --nav-island: rgba(11,11,24,.92);
  --nav-island-line: rgba(255,255,255,.14);
  --nav-island-shadow: 0 8px 40px rgba(0,0,0,.4);
  --nav-drop: rgba(18,18,36,.97);
  --nav-drop-line: rgba(255,255,255,.1);
  --nav-mob-bg: rgba(11,11,24,.95);
  --drawer-bg: rgba(11,11,24,.97);
  color-scheme: dark;
}

/* ── CLAIR ── */
:root[data-theme="light"] {
  --bg:        #f2f2f8;
  --bg-2:      #e8e8f2;
  --bg-3:      #dedcec;
  --surface:   #ffffff;
  --surface-2: #f6f4ff;
  --surface-solid: #ffffff;
  --line:      rgba(24,16,70,.1);
  --line-2:    rgba(24,16,70,.2);
  --text:      #0d0b22;
  --text-2:    #4d4b69;
  --text-3:    #6b6987;
  --accent:    #6d28d9;
  --accent-strong: #7c3aed;
  --accent-soft: rgba(124,58,237,.1);
  --glow:      rgba(124,58,237,.22);
  --glow-2:    rgba(157,101,245,.16);
  --grid-line: rgba(24,16,70,.05);
  --shadow:    0 30px 70px -25px rgba(60,30,140,.28);
  --shadow-sm: 0 8px 28px -12px rgba(60,30,140,.2);
  --ok: #16a34a;
  --warn: #d97706;
  --no: #dc2626;
  --nav-line: rgba(0,0,0,.07);
  --nav-island: rgba(255,255,255,.96);
  --nav-island-line: rgba(0,0,0,.12);
  --nav-island-shadow: 0 8px 32px rgba(0,0,0,.1);
  --nav-drop: rgba(255,255,255,.97);
  --nav-drop-line: rgba(0,0,0,.08);
  --nav-mob-bg: rgba(255,255,255,.97);
  --drawer-bg: rgba(244,244,248,.97);
  color-scheme: light;
}

/* ── PAPER : sections toujours blanches, quel que soit le thème (comme l'original) ── */
[data-tone="paper"] {
  --bg: #ffffff;
  --bg-2: #f7f7fb;
  --bg-3: #f0f0f7;
  --surface: #ffffff;
  --surface-2: #f4f4f9;
  --surface-solid: #ffffff;
  --line: #e8e8f0;
  --line-2: #d6d6e4;
  --text: #0b0b18;
  --text-2: #50506e;
  --text-3: #6b6b87;
  --accent: #6d28d9;
  --accent-soft: rgba(124,58,237,.09);
  --glow: rgba(124,58,237,.22);
  --glow-2: rgba(157,101,245,.14);
  --shadow: 0 30px 70px -25px rgba(60,30,140,.28);
  --shadow-sm: 0 8px 28px -12px rgba(60,30,140,.2);
  --ok: #16a34a; --warn: #d97706; --no: #dc2626;
  color-scheme: light;
  background: var(--bg); color: var(--text);
}
