/* ============================================================
   DESIGN TOKENS — source unique de vérité pour l'espace membre
   Aucune valeur hardcodée en dehors de ce fichier.
   ============================================================ */

:root {
  /* ── Palette Navy (identité ASM) ── */
  --navy-950: #0e1820;
  --navy-900: #1f2b36;
  --navy-800: #2a3a4a;
  --navy-700: #3a4f62;
  --navy-600: #4d6478;
  --navy-400: #7a9bb5;
  --navy-200: #c8d8e8;
  --navy-100: #e2edf6;
  --navy-50:  #f2f6fa;

  /* ── Palette Blue (action principale) ── */
  --blue-700: #175a8a;
  --blue-600: #1f6aa5;
  --blue-500: #2e7ab7;
  --blue-100: #dbeafe;
  --blue-50:  #eff6ff;

  /* ── Palette Success ── */
  --green-700: #15803d;
  --green-600: #16a34a;
  --green-100: #dcfce7;
  --green-50:  #f0fdf4;

  /* ── Palette Danger ── */
  --red-700: #b91c1c;
  --red-600: #dc2626;
  --red-200: #fca5a5;
  --red-100: #fee2e2;
  --red-50:  #fef2f2;

  /* ── Palette Warning ── */
  --amber-700: #b45309;
  --amber-600: #d97706;
  --amber-100: #fef3c7;
  --amber-50:  #fffbeb;

  /* ── Sémantique ── */
  --color-primary:      var(--blue-600);
  --color-primary-dark: var(--blue-700);
  --color-primary-bg:   var(--blue-50);
  --color-danger:       var(--red-600);
  --color-danger-dark:  var(--red-700);
  --color-danger-bg:    var(--red-50);
  --color-success:      var(--green-600);
  --color-success-dark: var(--green-700);
  --color-success-bg:   var(--green-50);
  --color-warning:      var(--amber-600);
  --color-warning-dark: var(--amber-700);
  --color-warning-bg:   var(--amber-50);

  /* ── Sidebar ── */
  --sidebar-bg:          var(--navy-900);
  --sidebar-border:      var(--navy-800);
  --sidebar-text:        var(--navy-200);
  --sidebar-text-dim:    var(--navy-400);
  --sidebar-hover-bg:    rgba(255,255,255,0.06);
  --sidebar-active-bg:   rgba(255,255,255,0.12);
  --sidebar-active-text: #ffffff;
  --sidebar-sep:         rgba(255,255,255,0.10);

  /* ── Surface & texte ── */
  --color-bg:      var(--navy-50);
  --color-surface: #ffffff;
  --color-text:    var(--navy-900);
  --color-muted:   var(--navy-600);
  --color-border:  var(--navy-100);

  /* ── Espacement (multiples de 4px) ── */
  --s1:  4px;
  --s2:  8px;
  --s3:  12px;
  --s4:  16px;
  --s5:  20px;
  --s6:  24px;
  --s8:  32px;
  --s10: 40px;
  --s12: 48px;
  --s16: 64px;

  /* ── Typographie ── */
  --font:      "Montserrat", "Segoe UI", Arial, sans-serif;
  --text-xs:   0.75rem;
  --text-sm:   0.875rem;
  --text-base: 1rem;
  --text-lg:   1.125rem;
  --text-xl:   1.25rem;
  --text-2xl:  1.5rem;
  --text-3xl:  1.875rem;
  --fw-normal: 400;
  --fw-medium: 500;
  --fw-semi:   600;
  --fw-bold:   700;
  --fw-extra:  800;
  --leading:   1.6;

  /* ── Border radius ── */
  --r-sm:   6px;
  --r-md:   10px;
  --r-lg:   14px;
  --r-xl:   20px;
  --r-full: 9999px;

  /* ── Ombres ── */
  --shadow-xs: 0 1px 2px  rgba(18,38,58,0.06);
  --shadow-sm: 0 1px 4px  rgba(18,38,58,0.08);
  --shadow-md: 0 4px 14px rgba(18,38,58,0.10);
  --shadow-lg: 0 8px 28px rgba(18,38,58,0.13);
  --shadow-xl: 0 16px 44px rgba(18,38,58,0.16);

  /* ── Transitions ── */
  --ease:     cubic-bezier(0.22,0.61,0.36,1);
  --dur-fast: 150ms;
  --dur-mid:  250ms;

  /* ── Layout ── */
  --sidebar-w: 260px;
  --topbar-h:  56px;
}
