/**
 * CSS Variables - SimCrise Admin
 * Définition centralisée de toutes les variables de design
 */

:root {
  /* ==================== COULEURS ==================== */
  
  /* Palette Primaire (Bleu) */
  --color-primary-50: #eff6ff;
  --color-primary-100: #dbeafe;
  --color-primary-200: #bfdbfe;
  --color-primary-300: #93c5fd;
  --color-primary-400: #60a5fa;
  --color-primary-500: #2563eb;
  --color-primary-600: #2563eb;
  --color-primary-700: #1d4ed8;
  --color-primary-800: #1e40af;
  --color-primary-900: #1e3a8a;
  
  /* Palette Secondaire (Slate) */
  --color-slate-50: #f8fafc;
  --color-slate-100: #f1f5f9;
  --color-slate-200: #e2e8f0;
  --color-slate-300: #cbd5e1;
  --color-slate-400: #94a3b8;
  --color-slate-500: #64748b;
  --color-slate-600: #475569;
  --color-slate-700: #334155;
  --color-slate-800: #1e293b;
  --color-slate-900: #0f172a;
  
  /* Palette Succès (Vert) */
  --color-success-50: #f0fdf4;
  --color-success-100: #dcfce7;
  --color-success-200: #bbf7d0;
  --color-success-500: #22c55e;
  --color-success-600: #16a34a;
  --color-success-700: #15803d;
  
  /* Palette Danger (Rouge) */
  --color-danger-50: #fef2f2;
  --color-danger-100: #fee2e2;
  --color-danger-200: #fecaca;
  --color-danger-500: #dc2626;
  --color-danger-600: #dc2626;
  --color-danger-700: #b91c1c;
  
  /* Palette Warning (Jaune) */
  --color-warning-50: #fefce8;
  --color-warning-100: #fef3c7;
  --color-warning-200: #fde68a;
  --color-warning-500: #eab308;
  --color-warning-600: #ca8a04;
  
  /* Palette Info (Cyan) */
  --color-info-50: #ecfeff;
  --color-info-100: #cffafe;
  --color-info-500: #06b6d4;
  --color-info-600: #0891b2;
  
  /* Palette Secourisme (Rouge foncé) */
  --color-firstaid-primary: #8C3048;
  --color-firstaid-secondary: #BF2424;
  --color-firstaid-light: #fef2f2;
  
  /* Couleurs Texte */
  --color-text-primary: #0f172a;
  --color-text-secondary: #475569;
  --color-text-muted: #64748b;
  --color-text-disabled: #94a3b8;
  
  /* Couleurs Fond */
  --color-bg-primary: #ffffff;
  --color-bg-secondary: #f8fafc;
  --color-bg-tertiary: #f1f5f9;
  --color-bg-overlay: rgba(0, 0, 0, 0.5);
  
  /* Couleurs Bordure */
  --color-border-light: #e2e8f0;
  --color-border-default: #cbd5e1;
  --color-border-dark: #94a3b8;
  
  /* ==================== ESPACEMENTS ==================== */
  
  --spacing-0: 0;
  --spacing-1: 4px;
  --spacing-2: 8px;
  --spacing-3: 12px;
  --spacing-4: 16px;
  --spacing-5: 20px;
  --spacing-6: 24px;
  --spacing-8: 32px;
  --spacing-10: 40px;
  --spacing-12: 48px;
  --spacing-16: 64px;
  
  /* ==================== BORDURES ==================== */
  
  --radius-none: 0;
  --radius-sm: 4px;
  --radius-md: 6px;
  --radius-lg: 8px;
  --radius-xl: 12px;
  --radius-2xl: 16px;
  --radius-full: 9999px;
  
  --border-width-thin: 1px;
  --border-width-default: 2px;
  --border-width-thick: 3px;
  
  /* ==================== OMBRES ==================== */
  
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
  --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  
  /* ==================== TYPOGRAPHIE ==================== */
  
  /* Familles de polices — Charte 2026-07-05 (docs/CHARTE_GRAPHIQUE.md) : Inter partout */
  --font-sans: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Monaco, Consolas, monospace;
  
  /* Tailles de police */
  --text-xs: 0.75rem;     /* 12px */
  --text-sm: 0.875rem;    /* 14px */
  --text-base: 1rem;      /* 16px */
  --text-lg: 1.125rem;    /* 18px */
  --text-xl: 1.25rem;     /* 20px */
  --text-2xl: 1.5rem;     /* 24px */
  --text-3xl: 1.875rem;   /* 30px */
  --text-4xl: 2.25rem;    /* 36px */
  
  /* Poids de police */
  --font-light: 300;
  --font-normal: 400;
  --font-medium: 500;
  --font-semibold: 600;
  --font-bold: 700;
  --font-extrabold: 800;
  
  /* Hauteur de ligne */
  --leading-tight: 1.25;
  --leading-normal: 1.5;
  --leading-relaxed: 1.75;
  
  /* ==================== TRANSITIONS ==================== */
  
  --transition-fast: 150ms ease-in-out;
  --transition-base: 200ms ease-in-out;
  --transition-slow: 300ms ease-in-out;
  
  /* ==================== Z-INDEX ==================== */
  
  --z-dropdown: 1000;
  --z-sticky: 1020;
  --z-fixed: 1030;
  --z-modal-backdrop: 1040;
  --z-modal: 1050;
  --z-popover: 1060;
  --z-tooltip: 1070;
  
  /* ==================== BREAKPOINTS (pour info) ==================== */
  /* xs: 0px, sm: 640px, md: 768px, lg: 1024px, xl: 1280px, 2xl: 1536px */
}

/* Variables sémantiques (aliases) */
:root {
  /* Charte 2026-07-05 : identité navy + action bleue AA (docs/CHARTE_GRAPHIQUE.md) */
  --color-brand: #1a3f6e;          /* marque : héros, en-têtes, fonds identitaires */
  --color-brand-dark: #132f52;
  --color-risk-major: #dc2626;     /* module Risques Majeurs (citoyen) */
  --color-pse: #047857;            /* module PSE — remplace l'ancien vert menthe (AA ✗ en bouton) */
  --color-space: #4f46e5;          /* espaces sur mesure (/play) */

  /* --primary était la primary-500 historique (bleu clair) : 3,7:1 avec texte
     blanc, échec WCAG AA sur les boutons. La 600 (#2563eb) passe à 5,2:1. */
  --primary: var(--color-primary-600);
  --secondary: var(--color-slate-500);
  --success: var(--color-success-600);
  --danger: var(--color-danger-600);
  --warning: var(--color-warning-600);
  --info: var(--color-info-600);
  
  --text-color: var(--color-text-primary);
  --text-muted: var(--color-text-muted);
  --border-color: var(--color-border-default);
  --bg-color: var(--color-bg-primary);
}
