/**
 * Variables CSS - Thème Light et Dark
 * Permet le basculement entre les modes via data-theme
 */

:root {
    /* Couleurs primaires */
    --primary-color: #c2410c;
    --primary-hover: #9a3412;
    --primary-light: #ffedd5;
    --focus-ring: var(--primary-color);
    
    /* Couleurs secondaires */
    --secondary-color: #64748b;
    --secondary-hover: #475569;
    
    /* Couleurs de succès/erreur/warning */
    --success-color: #20da64;
    --success-bg: #dcfce7;
    --error-color: #ef4444;
    --error-bg: #fee2e2;
    --warning-color: #d97706;
    --warning-bg: #fef3c7;
    --info-color: #3b82f6;
    --info-bg: #dbeafe;
    
    /* Espacements */
    --spacing-xs: 0.25rem;
    --spacing-sm: 0.7rem;
    --spacing-md: 1rem;
    --spacing-lg: 1.5rem;
    --spacing-xl: 2rem;
    --spacing-2xl: 3rem;
    
    /* Bordures */
    --border-radius-sm: 0.25rem;
    --border-radius: 0.5rem;
    --border-radius-lg: 0.75rem;
    --border-radius-xl: 1rem;
    
    /* Ombres */
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    
    /* Typographie */
    --font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    --font-size-xs: 0.75rem;
    --font-size-sm: 0.875rem;
    --font-size-base: 1rem;
    --font-size-lg: 1.125rem;
    --font-size-xl: 1.25rem;
    --font-size-2xl: 1.5rem;
    --font-size-3xl: 1.875rem;
    
    /* Dimensions */
    --header-height: 60px;
    --sidebar-width: 280px;
    
    /* Transitions */
    --transition-fast: 150ms ease;
    --transition-normal: 300ms ease;
}

/* ============================================
   THEME LIGHT (par défaut)
   ============================================ */
[data-theme="light"], .light-mode {
    --bg-primary: #ffffff;
    --bg-secondary: #f8fafc;
    --bg-tertiary: #f1f5f9;
    
    --text-primary: #1e293b;
    --text-secondary: #475569;
    --text-muted: #94a3b8;
    
    --border-color: #e2e8f0;
    --border-light: #f1f5f9;
    
    --input-bg: #ffffff;
    --input-border: #cbd5e1;
    --input-focus-border: var(--primary-color);
    
    --card-bg: #ffffff;
    --card-border: #e2e8f0;
    
    --header-bg: #ffffff;
    --sidebar-bg: #ffffff;
    
    --overlay-bg: rgba(0, 0, 0, 0.5);
}

/* ============================================
   THEME DARK
   ============================================ */
[data-theme="dark"], .dark-mode {
    --bg-primary: #0f172a;
    --bg-secondary: #1e293b;
    --bg-tertiary: #334155;
    
    --text-primary: #f1f5f9;
    --text-secondary: #cbd5e1;
    --text-muted: #cbd5e1;
    
    --border-color: #334155;
    --border-light: #1e293b;
    
    --input-bg: #1e293b;
    --input-border: #475569;
    --input-focus-border: var(--primary-color);
    
    --card-bg: #1e293b;
    --card-border: #334155;
    
    --header-bg: #1e293b;
    --sidebar-bg: #1e293b;
    
    --overlay-bg: rgba(0, 0, 0, 0.7);
    
    /* Ajustements des couleurs primaires pour le dark mode */
    --primary-color: #f97316;
    --primary-hover: #ea580c;
    --primary-light: #c2410c;
    --success-bg: #218d4c;
    --error-bg: #7f1d1d;
    --warning-bg: #78350f;
    --info-bg: #1e3a8a;
}
