/**
 * Design Tokens & CSS Variables
 * Système de design inspiré de verify-elaoumrani
 * Pour système de projets Excel L3 Physique-Chimie
 */

:root {
  /* ========================================
     COLOR PALETTE
     ======================================== */

  /* Background Colors */
  --bg-primary: #0a0a0a;
  --bg-secondary: #1a1a1a;
  --bg-tertiary: #252525;

  /* Glassmorphism Colors */
  --glass-bg: rgba(255, 255, 255, 0.08);
  --glass-bg-hover: rgba(255, 255, 255, 0.12);
  --glass-border: rgba(255, 255, 255, 0.1);
  --glass-border-hover: rgba(255, 255, 255, 0.2);

  /* Text Colors */
  --text-primary: #ffffff;
  --text-secondary: #b0b0b0;
  --text-muted: #6b7280;
  --text-inverse: #0a0a0a;

  /* Accent Colors */
  --accent-success: #10b981;
  --accent-success-light: #34d399;
  --accent-success-dark: #059669;

  --accent-warning: #f59e0b;
  --accent-warning-light: #fbbf24;
  --accent-warning-dark: #d97706;

  --accent-error: #ef4444;
  --accent-error-light: #f87171;
  --accent-error-dark: #dc2626;

  --accent-info: #3b82f6;
  --accent-info-light: #60a5fa;
  --accent-info-dark: #2563eb;

  /* Gradient Colors for Animated Background */
  --gradient-1: #667eea;
  --gradient-2: #764ba2;
  --gradient-3: #f093fb;
  --gradient-4: #4facfe;
  --gradient-5: #00f2fe;
  --gradient-6: #43e97b;

  /* ========================================
     SPACING SYSTEM
     ======================================== */

  --spacing-xs: 0.5rem;    /* 8px */
  --spacing-sm: 1rem;      /* 16px */
  --spacing-md: 1.5rem;    /* 24px */
  --spacing-lg: 2rem;      /* 32px */
  --spacing-xl: 3rem;      /* 48px */
  --spacing-2xl: 4rem;     /* 64px */
  --spacing-3xl: 6rem;     /* 96px */

  /* ========================================
     BORDER RADIUS
     ======================================== */

  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --radius-full: 9999px;

  /* ========================================
     SHADOWS
     ======================================== */

  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.2);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.3);
  --shadow-xl: 0 16px 48px rgba(0, 0, 0, 0.4);

  /* Colored Shadows (Glow Effects) */
  --shadow-glow-success: 0 0 20px rgba(16, 185, 129, 0.4);
  --shadow-glow-warning: 0 0 20px rgba(245, 158, 11, 0.4);
  --shadow-glow-error: 0 0 20px rgba(239, 68, 68, 0.4);
  --shadow-glow-info: 0 0 20px rgba(59, 130, 246, 0.4);

  /* ========================================
     TRANSITIONS & ANIMATIONS
     ======================================== */

  --transition-fast: 0.15s ease;
  --transition-base: 0.3s ease;
  --transition-slow: 0.5s ease;
  --transition-slower: 0.8s ease;

  /* Cubic Bezier Easing Functions */
  --ease-in-out-cubic: cubic-bezier(0.645, 0.045, 0.355, 1);
  --ease-out-expo: cubic-bezier(0.19, 1, 0.22, 1);
  --ease-out-back: cubic-bezier(0.34, 1.56, 0.64, 1);

  /* ========================================
     Z-INDEX LAYERS
     ======================================== */

  --z-background: -1;
  --z-base: 1;
  --z-card: 10;
  --z-header: 50;
  --z-modal: 100;
  --z-overlay: 1000;

  /* ========================================
     TYPOGRAPHY
     ======================================== */

  /* Font Families */
  --font-primary: 'Satoshi', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-logo: 'Alphonse', serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', 'Consolas', monospace;

  /* Font Sizes */
  --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 */
  --text-5xl: 3rem;        /* 48px */
  --text-6xl: 3.75rem;     /* 60px */

  /* Font Weights */
  --font-light: 300;
  --font-regular: 400;
  --font-medium: 500;
  --font-semibold: 600;
  --font-bold: 700;
  --font-black: 900;

  /* Line Heights */
  --leading-none: 1;
  --leading-tight: 1.25;
  --leading-snug: 1.375;
  --leading-normal: 1.5;
  --leading-relaxed: 1.625;
  --leading-loose: 2;

  /* ========================================
     LAYOUT & BREAKPOINTS
     ======================================== */

  --container-sm: 640px;
  --container-md: 768px;
  --container-lg: 1024px;
  --container-xl: 1280px;
  --container-2xl: 1536px;

  /* ========================================
     GLASSMORPHISM EFFECTS
     ======================================== */

  --blur-sm: 4px;
  --blur-base: 10px;
  --blur-md: 16px;
  --blur-lg: 24px;
  --blur-xl: 40px;

  /* ========================================
     ANIMATION DURATIONS
     ======================================== */

  --duration-instant: 0.1s;
  --duration-fast: 0.2s;
  --duration-normal: 0.3s;
  --duration-slow: 0.5s;
  --duration-slower: 0.8s;
  --duration-slowest: 1.2s;
}

/* ========================================
   REDUCED MOTION PREFERENCE
   ======================================== */

@media (prefers-reduced-motion: reduce) {
  :root {
    --transition-fast: 0.01s;
    --transition-base: 0.01s;
    --transition-slow: 0.01s;
    --transition-slower: 0.01s;
    --duration-instant: 0.01s;
    --duration-fast: 0.01s;
    --duration-normal: 0.01s;
    --duration-slow: 0.01s;
    --duration-slower: 0.01s;
    --duration-slowest: 0.01s;
  }
}
