/* ============================================
   MAISON DE BATTERIE - DESIGN SYSTEM
   Professional Design System for 10/10 Style
   ============================================ */

/* ============================================
   1. TYPOGRAPHY SYSTEM (Standardized)
   ============================================ */
:root {
    /* Typography Scale */
    --font-size-xs: 0.75rem;      /* 12px */
    --font-size-sm: 0.875rem;     /* 14px */
    --font-size-base: 1rem;       /* 16px */
    --font-size-lg: 1.125rem;     /* 18px */
    --font-size-xl: 1.25rem;      /* 20px */
    --font-size-2xl: 1.5rem;      /* 24px */
    --font-size-3xl: 1.875rem;    /* 30px */
    --font-size-4xl: 2.25rem;     /* 36px */
    --font-size-5xl: 3rem;        /* 48px */
    --font-size-6xl: 3.75rem;     /* 60px */
    
    /* Line Heights */
    --line-height-tight: 1.2;
    --line-height-normal: 1.5;
    --line-height-relaxed: 1.7;
    
    /* Letter Spacing */
    --letter-spacing-tight: -0.02em;
    --letter-spacing-normal: -0.01em;
    --letter-spacing-wide: 0.05em;
    --letter-spacing-wider: 0.1em;
    
    /* Font Weights */
    --font-weight-normal: 400;
    --font-weight-medium: 500;
    --font-weight-semibold: 600;
    --font-weight-bold: 700;
    --font-weight-black: 800;
}

/* Typography Classes */
.heading-1 {
    font-size: var(--font-size-4xl);
    font-weight: var(--font-weight-black);
    line-height: var(--line-height-tight);
    letter-spacing: var(--letter-spacing-tight);
}

@media (min-width: 768px) {
    .heading-1 {
        font-size: var(--font-size-5xl);
    }
}

@media (min-width: 1024px) {
    .heading-1 {
        font-size: var(--font-size-6xl);
    }
}

.heading-2 {
    font-size: var(--font-size-3xl);
    font-weight: var(--font-weight-black);
    line-height: var(--line-height-tight);
    letter-spacing: var(--letter-spacing-tight);
}

@media (min-width: 768px) {
    .heading-2 {
        font-size: var(--font-size-4xl);
    }
}

.heading-3 {
    font-size: var(--font-size-2xl);
    font-weight: var(--font-weight-black);
    line-height: var(--line-height-tight);
    letter-spacing: var(--letter-spacing-tight);
}

@media (min-width: 768px) {
    .heading-3 {
        font-size: var(--font-size-3xl);
    }
}

/* ============================================
   2. SPACING SYSTEM (Consistent)
   ============================================ */
:root {
    --spacing-xs: 0.5rem;    /* 8px */
    --spacing-sm: 0.75rem;   /* 12px */
    --spacing-md: 1rem;      /* 16px */
    --spacing-lg: 1.5rem;    /* 24px */
    --spacing-xl: 2rem;      /* 32px */
    --spacing-2xl: 3rem;     /* 48px */
    --spacing-3xl: 4rem;     /* 64px */
    --spacing-4xl: 5rem;     /* 80px */
    --spacing-5xl: 6rem;     /* 96px */
}

.section-spacing {
    padding-top: var(--spacing-3xl);
    padding-bottom: var(--spacing-3xl);
}

@media (min-width: 768px) {
    .section-spacing {
        padding-top: var(--spacing-4xl);
        padding-bottom: var(--spacing-4xl);
    }
}

/* ============================================
   3. BUTTON COMPONENT SYSTEM
   ============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    font-weight: var(--font-weight-black);
    text-transform: uppercase;
    letter-spacing: var(--letter-spacing-wider);
    border-radius: 0.5rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    border: 2px solid transparent;
    font-size: var(--font-size-sm);
    line-height: 1;
    position: relative;
    overflow: hidden;
}

.btn:focus-visible {
    outline: 3px solid #dc2626;
    outline-offset: 3px;
}

.btn-primary {
    background: linear-gradient(135deg, #dc2626 0%, #f97316 100%);
    color: white;
    border-color: #dc2626;
    box-shadow: 0 4px 6px -1px rgba(220, 38, 38, 0.2);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #b91c1c 0%, #ea580c 100%);
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(220, 38, 38, 0.4);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-secondary {
    background: white;
    color: #374151;
    border-color: #e5e7eb;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.btn-secondary:hover {
    background: #f9fafb;
    border-color: #dc2626;
    color: #dc2626;
    transform: translateY(-1px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.btn-ghost {
    background: transparent;
    color: #374151;
    border-color: transparent;
}

.btn-ghost:hover {
    background: rgba(220, 38, 38, 0.1);
    color: #dc2626;
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: var(--font-size-base);
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: var(--font-size-xs);
}

/* ============================================
   4. FORM ELEMENTS (Enhanced)
   ============================================ */
.form-input,
.form-textarea,
.form-select {
    width: 100%;
    padding: 0.875rem 1.25rem;
    background: white;
    border: 2px solid #e5e7eb;
    border-radius: 0.5rem;
    font-size: var(--font-size-base);
    color: #1f2937;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    font-weight: var(--font-weight-semibold);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.form-input::placeholder,
.form-textarea::placeholder {
    color: #9ca3af;
    font-weight: var(--font-weight-normal);
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
    outline: none;
    border-color: #dc2626;
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1), 0 4px 6px rgba(0, 0, 0, 0.1);
    transform: translateY(-1px);
}

.form-input:disabled,
.form-textarea:disabled,
.form-select:disabled {
    background: #f3f4f6;
    color: #6b7280;
    cursor: not-allowed;
    opacity: 0.6;
}

.form-label {
    display: block;
    font-weight: var(--font-weight-bold);
    color: #dc2626;
    margin-bottom: 0.5rem;
    font-size: var(--font-size-sm);
    text-transform: uppercase;
    letter-spacing: var(--letter-spacing-wider);
}

.form-error {
    margin-top: 0.5rem;
    font-size: var(--font-size-sm);
    color: #dc2626;
    font-weight: var(--font-weight-semibold);
}

/* ============================================
   5. ACCESSIBILITY ENHANCEMENTS
   ============================================ */
*:focus-visible {
    outline: 3px solid #dc2626;
    outline-offset: 3px;
    border-radius: 4px;
}

.skip-link {
    position: absolute;
    top: -9999px;
    left: 0;
    background: #dc2626;
    color: white;
    padding: 0.75rem 1.5rem;
    text-decoration: none;
    z-index: 10000;
    font-weight: var(--font-weight-bold);
    border-radius: 0 0 4px 0;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
}

.skip-link:focus {
    top: 0;
    opacity: 1;
    pointer-events: auto;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* ============================================
   6. IMAGE ASPECT RATIOS
   ============================================ */
.img-aspect-square {
    aspect-ratio: 1 / 1;
    object-fit: cover;
}

.img-aspect-4-3 {
    aspect-ratio: 4 / 3;
    object-fit: cover;
}

.img-aspect-16-9 {
    aspect-ratio: 16 / 9;
    object-fit: cover;
}

.img-aspect-3-2 {
    aspect-ratio: 3 / 2;
    object-fit: cover;
}

/* ============================================
   7. LOADING STATES
   ============================================ */
.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s ease-in-out infinite;
    border-radius: 0.5rem;
}

@keyframes loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

.skeleton-text {
    height: 1rem;
    margin-bottom: 0.5rem;
}

.skeleton-title {
    height: 2rem;
    margin-bottom: 1rem;
}

.skeleton-image {
    width: 100%;
    aspect-ratio: 16 / 9;
}

.spinner {
    width: 2rem;
    height: 2rem;
    border: 3px solid rgba(220, 38, 38, 0.2);
    border-top-color: #dc2626;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* ============================================
   8. EMPTY STATES (Enhanced)
   ============================================ */
.empty-state {
    text-align: center;
    padding: var(--spacing-5xl) var(--spacing-xl);
}

.empty-state-icon {
    width: 6rem;
    height: 6rem;
    margin: 0 auto var(--spacing-xl);
    color: #dc2626;
    opacity: 0.5;
}

.empty-state-title {
    font-size: var(--font-size-2xl);
    font-weight: var(--font-weight-black);
    color: #374151;
    margin-bottom: var(--spacing-md);
    text-transform: uppercase;
}

.empty-state-description {
    font-size: var(--font-size-base);
    color: #6b7280;
    margin-bottom: var(--spacing-xl);
    max-width: 32rem;
    margin-left: auto;
    margin-right: auto;
}

/* ============================================
   9. MICRO-INTERACTIONS
   ============================================ */
.hover-lift {
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.hover-lift:hover {
    transform: translateY(-4px);
}

.hover-scale {
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.hover-scale:hover {
    transform: scale(1.05);
}

.hover-glow {
    transition: box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.hover-glow:hover {
    box-shadow: 0 0 20px rgba(220, 38, 38, 0.3);
}

/* ============================================
   10. PERFORMANCE OPTIMIZATIONS
   ============================================ */
.will-change-transform {
    will-change: transform;
}

.will-change-opacity {
    will-change: opacity;
}

.gpu-accelerated {
    transform: translateZ(0);
    backface-visibility: hidden;
    perspective: 1000px;
}

/* ============================================
   11. CARD COMPONENTS
   ============================================ */
.card {
    background: white;
    border-radius: 0.75rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    border: 1px solid #e5e7eb;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

.card:hover {
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    transform: translateY(-4px);
    border-color: rgba(220, 38, 38, 0.5);
}

.card-image {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.card:hover .card-image {
    transform: scale(1.05);
}

.card-body {
    padding: 1.5rem;
}

.card-title {
    font-size: var(--font-size-xl);
    font-weight: var(--font-weight-black);
    color: #1f2937;
    margin-bottom: 0.75rem;
    line-height: var(--line-height-tight);
}

.card-description {
    font-size: var(--font-size-sm);
    color: #6b7280;
    line-height: var(--line-height-relaxed);
    margin-bottom: 1rem;
}

/* ============================================
   12. GRADIENT ACCENTS
   ============================================ */
.gradient-accent {
    width: 100%;
    height: 0.25rem;
    background: linear-gradient(90deg, #dc2626 0%, #f97316 100%);
    border-radius: 9999px;
    margin: 1rem 0;
}

.gradient-text {
    background: linear-gradient(135deg, #dc2626 0%, #f97316 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ============================================
   13. ANIMATIONS (Optimized)
   ============================================ */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.animate-fade-in-up {
    animation: fadeInUp 0.6s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.animate-fade-in {
    animation: fadeIn 0.4s ease-out forwards;
}

.animate-slide-in-left {
    animation: slideInLeft 0.6s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.animate-slide-in-right {
    animation: slideInRight 0.6s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

/* ============================================
   14. UTILITY CLASSES
   ============================================ */
.text-balance {
    text-wrap: balance;
}

.container-narrow {
    max-width: 42rem;
    margin-left: auto;
    margin-right: auto;
}

.container-wide {
    max-width: 80rem;
    margin-left: auto;
    margin-right: auto;
}

/* ============================================
   15. PRINT STYLES
   ============================================ */
@media print {
    .no-print {
        display: none !important;
    }
}


