/**
 * VARIABLES.CSS
 * Design tokens - Couleurs, typographie, espacements
 * Architecture modulaire pour thème extensible
 */

:root {
    /* ============================================
       COULEURS PRINCIPALES
       Palette professionnelle et rassurante
       ============================================ */

    /* Primary - Bleu nuit (confiance, sérieux) */
    --color-primary: #1a365d;
    --color-primary-light: #2c5282;
    --color-primary-lighter: #4299e1;
    --color-primary-dark: #1a202c;

    /* Secondary - Gris foncé (neutralité) */
    --color-secondary: #2d3748;
    --color-secondary-light: #4a5568;

    /* Accent - Bleu vif (actions, CTAs) */
    --color-accent: #3182ce;
    --color-accent-hover: #2b6cb0;
    --color-accent-light: #90cdf4;
    --color-accent-lighter: #bee3f8;

    /* ============================================
       COULEURS NEUTRES
       Fond, texte, bordures
       ============================================ */

    /* Backgrounds */
    --color-bg: #f8fafc;
    --color-bg-light: #ffffff;
    --color-bg-offset: #e5e7eb;  /* Plus foncé pour meilleur contraste */
    --color-bg-dark: #1a202c;
    --color-bg-darker: #171923;

    /* Text */
    --color-text: #1f2937;        /* Plus foncé pour meilleur contraste */
    --color-text-secondary: #4b5563;
    --color-text-muted: #6b7280;
    --color-text-light: #9ca3af;
    --color-text-on-dark: #f9fafb;

    /* Borders */
    --color-border: #d1d5db;      /* Plus visible */
    --color-border-light: #e5e7eb;
    --color-border-dark: #9ca3af;

    /* ============================================
       COULEURS SÉMANTIQUES
       États, feedback, validation
       ============================================ */

    --color-success: #48bb78;
    --color-success-light: #9ae6b4;
    --color-success-dark: #38a169;

    --color-warning: #ed8936;
    --color-warning-light: #fbd38d;
    --color-warning-dark: #dd6b20;

    --color-error: #f56565;
    --color-error-light: #fc8181;
    --color-error-dark: #e53e3e;

    --color-info: #4299e1;
    --color-info-light: #90cdf4;

    /* ============================================
       TYPOGRAPHIE
       Font: Inter (Google Fonts)
       ============================================ */

    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI',
                   Roboto, 'Helvetica Neue', Arial, sans-serif;
    --font-family-mono: 'SF Mono', Monaco, 'Cascadia Code', 'Roboto Mono',
                        Consolas, 'Courier New', monospace;

    /* Tailles - Mobile first */
    --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: 1.875rem;  /* 30px */
    --font-size-3xl: 2.25rem;   /* 36px */
    --font-size-4xl: 3rem;      /* 48px */
    --font-size-5xl: 3.75rem;   /* 60px */

    /* Weights */
    --font-weight-light: 300;
    --font-weight-normal: 400;
    --font-weight-medium: 500;
    --font-weight-semibold: 600;
    --font-weight-bold: 700;

    /* Line heights */
    --line-height-tight: 1.25;
    --line-height-normal: 1.5;
    --line-height-relaxed: 1.75;
    --line-height-loose: 2;

    /* ============================================
       ESPACEMENTS
       Scale cohérente (8px base)
       ============================================ */

    --spacing-0: 0;
    --spacing-1: 0.25rem;  /* 4px */
    --spacing-2: 0.5rem;   /* 8px */
    --spacing-3: 0.75rem;  /* 12px */
    --spacing-4: 1rem;     /* 16px */
    --spacing-5: 1.25rem;  /* 20px */
    --spacing-6: 1.5rem;   /* 24px */
    --spacing-8: 2rem;     /* 32px */
    --spacing-10: 2.5rem;  /* 40px */
    --spacing-12: 3rem;    /* 48px */
    --spacing-16: 4rem;    /* 64px */
    --spacing-20: 5rem;    /* 80px */
    --spacing-24: 6rem;    /* 96px */
    --spacing-32: 8rem;    /* 128px */

    /* ============================================
       RAYONS DE BORDURE
       ============================================ */

    --radius-none: 0;
    --radius-sm: 0.25rem;   /* 4px */
    --radius-md: 0.5rem;    /* 8px */
    --radius-lg: 0.75rem;   /* 12px */
    --radius-xl: 1rem;      /* 16px */
    --radius-2xl: 1.5rem;   /* 24px */
    --radius-full: 9999px;

    /* ============================================
       OMBRES
       Subtiles, professionnelles
       ============================================ */

    --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);

    /* Ombres spécifiques */
    --shadow-card: 0 4px 20px rgba(0, 0, 0, 0.08);
    --shadow-card-hover: 0 8px 30px rgba(0, 0, 0, 0.12);
    --shadow-header: 0 2px 10px rgba(0, 0, 0, 0.05);

    /* ============================================
       TRANSITIONS
       Durées et easing functions
       ============================================ */

    --transition-fast: 150ms;
    --transition-base: 250ms;
    --transition-slow: 350ms;
    --transition-slower: 500ms;

    --ease-in: cubic-bezier(0.4, 0, 1, 1);
    --ease-out: cubic-bezier(0, 0, 0.2, 1);
    --ease-in-out: cubic-bezier(0.4, 0, 0.2, 1);

    /* ============================================
       LAYOUT
       ============================================ */

    --container-max-width: 1280px;
    --container-padding: var(--spacing-4);
    --header-height: 80px;
    --header-height-scrolled: 64px;

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

    --z-base: 1;
    --z-dropdown: 100;
    --z-sticky: 200;
    --z-fixed: 300;
    --z-modal: 400;
    --z-popover: 500;
    --z-tooltip: 600;
}

/* Dark mode support (future-proof) */
@media (prefers-color-scheme: dark) {
    /* :root dark overrides - à activer si besoin */
}
