/* ==========================================================================
   DESIGN SYSTEM - Variables CSS
   Propositions pour Louhans-Châteaurenaud
   ========================================================================== */

:root {
    /* Couleurs principales - Palette neutre et citoyenne */
    --color-primary: #2c5f7e;
    --color-primary-dark: #1e4459;
    --color-primary-light: #3d7a9f;
    
    /* Couleurs d'accent - Tons sobres */
    --color-accent: #4a9eb8;
    --color-accent-dark: #3a8ca1;
    --color-accent-light: #6bb4ca;
    
    /* Couleurs secondaires */
    --color-secondary: #5d8a9a;
    --color-secondary-dark: #4a6f7d;
    --color-secondary-light: #7ba3b3;
    
    /* Couleurs de fond */
    --color-bg-white: #ffffff;
    --color-bg-light: #f8f9fa;
    --color-bg-gray: #e9ecef;
    --color-bg-dark: #1a1a2e;
    
    /* Couleurs de texte */
    --color-text-dark: #1a1a1a;
    --color-text-gray: #4a4a4a;
    --color-text-light: #6c757d;
    --color-text-white: #ffffff;
    
    /* Couleurs d'état */
    --color-success: #28a745;
    --color-warning: #f0ad4e;
    --color-danger: #dc3545;
    --color-info: #17a2b8;
    
    /* Couleurs thématiques par page */
    --color-securite: #0f172a;
    --color-environnement: #2e7d32;
    --color-cinema: #1a1a1a;
    --color-eclairage: #f59e0b;
    
    /* Typographie */
    --font-primary: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-display: 'Poppins', sans-serif;
    
    /* Tailles de police */
    --font-size-xs: 0.75rem;    /* 12px */
    --font-size-sm: 0.875rem;   /* 14px */
    --font-size-base: 1rem;     /* 16px */
    --font-size-md: 1.125rem;   /* 18px */
    --font-size-lg: 1.25rem;    /* 20px */
    --font-size-xl: 1.5rem;     /* 24px */
    --font-size-2xl: 2rem;      /* 32px */
    --font-size-3xl: 2.5rem;    /* 40px */
    --font-size-4xl: 3rem;      /* 48px */
    --font-size-5xl: 4rem;      /* 64px */
    
    /* Poids de police */
    --font-weight-light: 300;
    --font-weight-normal: 400;
    --font-weight-medium: 500;
    --font-weight-semibold: 600;
    --font-weight-bold: 700;
    --font-weight-extrabold: 800;
    
    /* Hauteur de ligne */
    --line-height-tight: 1.25;
    --line-height-normal: 1.5;
    --line-height-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 */
    --spacing-4xl: 6rem;        /* 96px */
    
    /* Bordures */
    --border-radius-sm: 0.25rem;
    --border-radius-md: 0.5rem;
    --border-radius-lg: 1rem;
    --border-radius-xl: 1.5rem;
    --border-radius-full: 9999px;
    
    /* 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), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --shadow-glow: 0 0 20px rgba(74, 158, 184, 0.3);
    
    /* Transitions */
    --transition-fast: 150ms ease;
    --transition-normal: 250ms ease;
    --transition-slow: 350ms ease;
    
    /* Breakpoints */
    --breakpoint-sm: 640px;
    --breakpoint-md: 768px;
    --breakpoint-lg: 1024px;
    --breakpoint-xl: 1280px;
    --breakpoint-2xl: 1536px;
    
    /* Conteneurs */
    --container-sm: 640px;
    --container-md: 768px;
    --container-lg: 1024px;
    --container-xl: 1280px;
    --container-2xl: 1536px;
    
    /* Header */
    --header-height: 80px;
    
    /* Z-index */
    --z-dropdown: 1000;
    --z-sticky: 1020;
    --z-fixed: 1030;
    --z-modal-backdrop: 1040;
    --z-modal: 1050;
    --z-popover: 1060;
    --z-tooltip: 1070;
}

/* Dark mode support (optionnel) */
@media (prefers-color-scheme: dark) {
    :root {
        --color-bg-white: #1a1a2e;
        --color-bg-light: #252540;
        --color-bg-gray: #2f2f45;
        --color-text-dark: #ffffff;
        --color-text-gray: #e0e0e0;
    }
}

/* Responsive header height */
@media (max-width: 768px) {
    :root {
        --header-height: 70px;
    }
}
