/* ============================================
   VARIABLES CSS - Design Élégant et Professionnel
   IEF Louga - CFEE 2025-2026
   ============================================ */

:root {
  /* ===== COULEURS PRINCIPALES ===== */
  
  /* Bleu foncé - Couleur principale */
  --primary: #1e3a8a;
  --primary-hover: #1e40af;
  --primary-light: #3b82f6;
  --primary-dark: #1e293b;
  
  /* Couleurs secondaires */
  --secondary: #475569;
  --accent: #0ea5e9;
  
  /* Couleurs neutres */
  --white: #ffffff;
  --background: #ffffff;
  --surface: #f8fafc;
  --surface-light: #f1f5f9;
  --border: #e2e8f0;
  --border-light: #f1f5f9;
  
  /* Textes */
  --text-primary: #0f172a;
  --text-secondary: #64748b;
  --text-tertiary: #94a3b8;
  --text-on-primary: #ffffff;
  
  /* États */
  --success: #10b981;
  --success-light: #d1fae5;
  --success-dark: #065f46;
  
  --warning: #f59e0b;
  --warning-light: #fef3c7;
  --warning-dark: #92400e;
  
  --error: #ef4444;
  --error-light: #fee2e2;
  --error-dark: #991b1b;
  
  --info: #3b82f6;
  --info-light: #dbeafe;
  --info-dark: #1e40af;
  
  /* ===== TYPOGRAPHIE ===== */
  --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-family-heading: 'Plus Jakarta Sans', 'Inter', sans-serif;
  
  /* Tailles de police - Mobile first */
  --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-normal: 400;
  --font-medium: 500;
  --font-semibold: 600;
  --font-bold: 700;
  
  /* Hauteur de ligne */
  --leading-tight: 1.25;
  --leading-normal: 1.5;
  --leading-relaxed: 1.75;
  
  /* ===== ESPACEMENTS ===== */
  --spacing-xs: 0.25rem;   /* 4px */
  --spacing-sm: 0.5rem;    /* 8px */
  --spacing-md: 1rem;      /* 16px */
  --spacing-lg: 1.5rem;    /* 24px */
  --spacing-xl: 2rem;      /* 32px */
  --spacing-2xl: 3rem;     /* 48px */
  --spacing-3xl: 4rem;     /* 64px */
  
  /* Espacements responsifs */
  --container-padding: 1rem;
  --container-width: 100%;
  --spacing-unit: 8px;
  
  /* ===== BORDURES ===== */
  --radius-sm: 0.375rem;   /* 6px */
  --radius-md: 0.5rem;     /* 8px */
  --radius-lg: 0.75rem;    /* 12px */
  --radius-xl: 1rem;       /* 16px */
  --radius-2xl: 1.5rem;    /* 24px */
  --radius-full: 9999px;   /* Cercle complet */
  
  --border-width: 1px;
  --border-width-thick: 2px;
  
  /* ===== OMBRES - Subtiles et élégantes ===== */
  --shadow-xs: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-sm: 0 1px 3px 0 rgb(0 0 0 / 0.1);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1);
  --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1);
  --shadow-2xl: 0 25px 50px -12px rgb(0 0 0 / 0.25);
  
  /* Ombre focus pour accessibilité */
  --shadow-focus: 0 0 0 3px rgb(30 58 138 / 0.1);
  
  /* ===== 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;
  
  /* ===== TAILLES ===== */
  --header-height: 64px;
  --sidebar-width: 280px;
  --touch-target: 44px; /* Taille minimale tactile */
}

/* ===== MEDIA QUERIES - RESPONSIVE ===== */

/* Très petits mobiles */
@media (min-width: 320px) {
  :root {
    --container-padding: 12px;
    --text-base: 14px;
  }
}

/* Mobiles standard */
@media (min-width: 376px) {
  :root {
    --container-padding: 16px;
    --text-base: 15px;
  }
}

/* Grands mobiles / Phablets */
@media (min-width: 481px) {
  :root {
    --container-padding: 20px;
    --text-base: 16px;
    --spacing-unit: 12px;
  }
}

/* Tablettes */
@media (min-width: 769px) {
  :root {
    --container-padding: 24px;
    --container-width: 720px;
    --header-height: 72px;
  }
}

/* Laptops */
@media (min-width: 1025px) {
  :root {
    --container-padding: 32px;
    --container-width: 960px;
  }
}

/* Desktops */
@media (min-width: 1281px) {
  :root {
    --container-width: 1200px;
  }
}

/* Large desktops */
@media (min-width: 1441px) {
  :root {
    --container-width: 1400px;
    --spacing-unit: 16px;
  }
}

/* Ultra-wide / TV */
@media (min-width: 1921px) {
  :root {
    --container-width: 1600px;
    --text-base: 18px;
  }
}
