/* Police Inter chargée via <link> dans index.html */

:root {
  /* === THÈME SOMBRE (défaut) === */
  --bg-primary:    #0F172A;
  --bg-secondary:  #0B1120;
  --bg-card:       #1E293B;
  --bg-card-hover: #243347;
  --bg-elevated:   #263445;

  --text-primary:   #F1F5F9;
  --text-secondary: #94A3B8;
  --text-muted:     #475569;

  --border:       #334155;
  --border-focus: #10B981;

  --accent:        #10B981;
  --accent-light:  #34D399;
  --accent-dark:   #059669;
  --accent-subtle: rgba(16, 185, 129, 0.12);

  --warning:        #F59E0B;
  --warning-subtle: rgba(245, 158, 11, 0.12);
  --error:          #EF4444;
  --error-subtle:   rgba(239, 68, 68, 0.12);
  --info:           #3B82F6;
  --info-subtle:    rgba(59, 130, 246, 0.12);

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.5);

  /* Spacing (multiples de 4px) */
  --space-1:  4px;
  --space-2:  8px;
  --space-3:  12px;
  --space-4:  16px;
  --space-5:  20px;
  --space-6:  24px;
  --space-8:  32px;
  --space-10: 40px;
  --space-12: 48px;

  /* Border radius */
  --radius-sm:  6px;
  --radius-md:  10px;
  --radius-lg:  16px;
  --radius-xl:  24px;
  --radius-full: 9999px;

  /* Typographie */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;

  /* Font sizes */
  --text-xs:   11px;
  --text-sm:   13px;
  --text-base: 15px;
  --text-md:   16px;
  --text-lg:   18px;
  --text-xl:   20px;
  --text-2xl:  24px;
  --text-3xl:  30px;
  --text-4xl:  36px;

  /* Transitions */
  --transition-fast: 150ms ease;
  --transition:      200ms ease;
  --transition-slow: 300ms ease;

  /* Layout */
  --sidebar-width:    240px;
  --header-height:    56px;
  --bottom-nav-height: 64px;
}

/* === THÈME CLAIR === */
[data-theme='light'] {
  --bg-primary:    #F8FAFC;
  --bg-secondary:  #F1F5F9;
  --bg-card:       #FFFFFF;
  --bg-card-hover: #F8FAFC;
  --bg-elevated:   #FFFFFF;

  --text-primary:   #0F172A;
  --text-secondary: #64748B;
  --text-muted:     #94A3B8;

  --border: #E2E8F0;

  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.10);
  --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.15);
}
