/**
 * BienHabillé - Variables CSS
 * 
 * Toutes les variables du thème centralisées
 * Inspiré du style Celio - minimaliste et élégant
 * 
 * @package BienHabille
 * @since 1.0.0
 */

:root {
    
    /* ========================================================================== */
    /* COULEURS PRINCIPALES */
    /* ========================================================================== */
    
    /* Marque */
    --bh-color-primary: #1d2327;          /* Noir principal */
    --bh-color-primary-hover: #000000;
    --bh-color-secondary: #6b7280;        /* Gris texte secondaire */
    
    /* Accent (pour soldes, alertes, CTA) */
    --bh-color-accent: #c53030;           /* Rouge */
    --bh-color-accent-hover: #a12828;
    --bh-color-accent-light: #fee2e2;
    
    /* Succès / Info / Warning */
    --bh-color-success: #059669;
    --bh-color-success-light: #d1fae5;
    --bh-color-info: #2563eb;
    --bh-color-info-light: #dbeafe;
    --bh-color-warning: #d97706;
    --bh-color-warning-light: #fef3c7;
    --bh-color-error: #dc2626;
    --bh-color-error-light: #fee2e2;
    
    /* ========================================================================== */
    /* NEUTRES & BACKGROUNDS */
    /* ========================================================================== */
    
    --bh-color-white: #ffffff;
    --bh-color-black: #000000;
    
    /* Échelle de gris */
    --bh-gray-50: #f9fafb;
    --bh-gray-100: #f3f4f6;
    --bh-gray-200: #e5e7eb;
    --bh-gray-300: #d1d5db;
    --bh-gray-400: #9ca3af;
    --bh-gray-500: #6b7280;
    --bh-gray-600: #4b5563;
    --bh-gray-700: #374151;
    --bh-gray-800: #1f2937;
    --bh-gray-900: #111827;
    
    /* Backgrounds */
    --bh-bg-primary: #ffffff;
    --bh-bg-secondary: #f9fafb;
    --bh-bg-tertiary: #f3f4f6;
    --bh-bg-dark: #1d2327;
    
    /* ========================================================================== */
    /* TEXTE */
    /* ========================================================================== */
    
    --bh-text-primary: #1d2327;
    --bh-text-secondary: #6b7280;
    --bh-text-tertiary: #9ca3af;
    --bh-text-inverse: #ffffff;
    --bh-text-link: #1d2327;
    --bh-text-link-hover: #000000;
    
    /* ========================================================================== */
    /* BORDURES */
    /* ========================================================================== */
    
    --bh-border-color: #e5e7eb;
    --bh-border-color-dark: #d1d5db;
    --bh-border-color-light: #f3f4f6;
    --bh-border-radius-sm: 4px;
    --bh-border-radius: 8px;
    --bh-border-radius-lg: 12px;
    --bh-border-radius-xl: 16px;
    --bh-border-radius-full: 9999px;
    
    /* ========================================================================== */
    /* TYPOGRAPHIE */
    /* ========================================================================== */
    
    /* Familles de polices */
    --bh-font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    --bh-font-secondary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --bh-font-mono: 'SF Mono', 'Fira Code', 'Fira Mono', 'Roboto Mono', monospace;
    
    /* Tailles de police */
    --bh-font-size-xs: 0.75rem;      /* 12px */
    --bh-font-size-sm: 0.875rem;     /* 14px */
    --bh-font-size-base: 1rem;       /* 16px */
    --bh-font-size-lg: 1.125rem;     /* 18px */
    --bh-font-size-xl: 1.25rem;      /* 20px */
    --bh-font-size-2xl: 1.5rem;      /* 24px */
    --bh-font-size-3xl: 1.875rem;    /* 30px */
    --bh-font-size-4xl: 2.25rem;     /* 36px */
    --bh-font-size-5xl: 3rem;        /* 48px */
    
    /* Poids de police */
    --bh-font-weight-light: 300;
    --bh-font-weight-normal: 400;
    --bh-font-weight-medium: 500;
    --bh-font-weight-semibold: 600;
    --bh-font-weight-bold: 700;
    
    /* Hauteur de ligne */
    --bh-line-height-tight: 1.25;
    --bh-line-height-snug: 1.375;
    --bh-line-height-normal: 1.5;
    --bh-line-height-relaxed: 1.625;
    --bh-line-height-loose: 2;
    
    /* Espacement des lettres */
    --bh-letter-spacing-tight: -0.025em;
    --bh-letter-spacing-normal: 0;
    --bh-letter-spacing-wide: 0.025em;
    --bh-letter-spacing-wider: 0.05em;
    --bh-letter-spacing-widest: 0.1em;
    
    /* ========================================================================== */
    /* ESPACEMENTS */
    /* ========================================================================== */
    
    --bh-spacing-0: 0;
    --bh-spacing-1: 0.25rem;    /* 4px */
    --bh-spacing-2: 0.5rem;     /* 8px */
    --bh-spacing-3: 0.75rem;    /* 12px */
    --bh-spacing-4: 1rem;       /* 16px */
    --bh-spacing-5: 1.25rem;    /* 20px */
    --bh-spacing-6: 1.5rem;     /* 24px */
    --bh-spacing-8: 2rem;       /* 32px */
    --bh-spacing-10: 2.5rem;    /* 40px */
    --bh-spacing-12: 3rem;      /* 48px */
    --bh-spacing-16: 4rem;      /* 64px */
    --bh-spacing-20: 5rem;      /* 80px */
    --bh-spacing-24: 6rem;      /* 96px */
    
    /* ========================================================================== */
    /* LAYOUT */
    /* ========================================================================== */
    
    /* Conteneur */
    --bh-container-sm: 640px;
    --bh-container-md: 768px;
    --bh-container-lg: 1024px;
    --bh-container-xl: 1280px;
    --bh-container-2xl: 1400px;
    --bh-container-padding: 1rem;
    
    /* Header */
    --bh-header-height-top: 40px;
    --bh-header-height-main: 70px;
    --bh-header-height-nav: 50px;
    --bh-header-height-total: 160px;
    
    /* Sidebar */
    --bh-sidebar-width: 280px;
    
    /* ========================================================================== */
    /* OMBRES */
    /* ========================================================================== */
    
    --bh-shadow-xs: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --bh-shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    --bh-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --bh-shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --bh-shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --bh-shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --bh-shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    --bh-shadow-inner: inset 0 2px 4px 0 rgba(0, 0, 0, 0.06);
    
    /* Ombres spécifiques */
    --bh-shadow-header: 0 2px 4px rgba(0, 0, 0, 0.08);
    --bh-shadow-dropdown: 0 4px 20px rgba(0, 0, 0, 0.1);
    --bh-shadow-card: 0 1px 3px rgba(0, 0, 0, 0.08);
    --bh-shadow-card-hover: 0 8px 24px rgba(0, 0, 0, 0.12);
    
    /* ========================================================================== */
    /* TRANSITIONS */
    /* ========================================================================== */
    
    --bh-transition-fast: 150ms ease;
    --bh-transition-normal: 200ms ease;
    --bh-transition-slow: 300ms ease;
    --bh-transition-slower: 500ms ease;
    
    /* Courbes d'accélération */
    --bh-ease-in: cubic-bezier(0.4, 0, 1, 1);
    --bh-ease-out: cubic-bezier(0, 0, 0.2, 1);
    --bh-ease-in-out: cubic-bezier(0.4, 0, 0.2, 1);
    
    /* ========================================================================== */
    /* Z-INDEX */
    /* ========================================================================== */
    
    --bh-z-dropdown: 100;
    --bh-z-sticky: 200;
    --bh-z-fixed: 300;
    --bh-z-header: 400;
    --bh-z-mega-menu: 500;
    --bh-z-modal-backdrop: 900;
    --bh-z-modal: 1000;
    --bh-z-tooltip: 1100;
    
    /* ========================================================================== */
    /* BOUTONS */
    /* ========================================================================== */
    
    --bh-btn-padding-x: 1.5rem;
    --bh-btn-padding-y: 0.75rem;
    --bh-btn-padding-x-sm: 1rem;
    --bh-btn-padding-y-sm: 0.5rem;
    --bh-btn-padding-x-lg: 2rem;
    --bh-btn-padding-y-lg: 1rem;
    --bh-btn-font-size: 0.875rem;
    --bh-btn-font-weight: 500;
    --bh-btn-border-radius: 4px;
    --bh-btn-border-radius-full: 9999px;
    
    /* ========================================================================== */
    /* FORMULAIRES */
    /* ========================================================================== */
    
    --bh-input-height: 44px;
    --bh-input-height-sm: 36px;
    --bh-input-height-lg: 52px;
    --bh-input-padding-x: 1rem;
    --bh-input-padding-y: 0.625rem;
    --bh-input-border-color: var(--bh-border-color);
    --bh-input-border-radius: 4px;
    --bh-input-focus-border-color: var(--bh-color-primary);
    --bh-input-focus-shadow: 0 0 0 3px rgba(29, 35, 39, 0.1);
    
    /* ========================================================================== */
    /* PRODUITS */
    /* ========================================================================== */
    
    --bh-product-card-gap: 1.5rem;
    --bh-product-card-padding: 1rem;
    --bh-product-image-ratio: 125%;  /* 4:5 aspect ratio */
    --bh-product-badge-size: 2rem;
    
    /* Prix */
    --bh-price-color: var(--bh-text-primary);
    --bh-price-sale-color: var(--bh-color-accent);
    --bh-price-regular-color: var(--bh-text-secondary);
    
    /* Swatches */
    --bh-swatch-size: 32px;
    --bh-swatch-size-lg: 40px;
    --bh-swatch-border-radius: 50%;
    --bh-swatch-border: 2px solid transparent;
    --bh-swatch-border-active: 2px solid var(--bh-color-primary);
    
    /* ========================================================================== */
    /* BREAKPOINTS (pour référence, utilisés dans responsive.css) */
    /* ========================================================================== */
    
    /* 
     * --bh-breakpoint-sm: 640px;
     * --bh-breakpoint-md: 768px;
     * --bh-breakpoint-lg: 1024px;
     * --bh-breakpoint-xl: 1280px;
     * --bh-breakpoint-2xl: 1400px;
     */
}

/* ========================================================================== */
/* DARK MODE (optionnel - préparé pour l'avenir) */
/* ========================================================================== */

@media (prefers-color-scheme: dark) {
    :root.auto-dark-mode {
        --bh-bg-primary: #1f2937;
        --bh-bg-secondary: #111827;
        --bh-bg-tertiary: #374151;
        
        --bh-text-primary: #f9fafb;
        --bh-text-secondary: #d1d5db;
        --bh-text-tertiary: #9ca3af;
        
        --bh-border-color: #374151;
        --bh-border-color-dark: #4b5563;
    }
}