/* ==========================================================================
   VARIABLES GLOBALES
   ========================================================================== */
:root {
    /* Couleurs principales */
    --primary-color: #bb2b3f;
    --secondary-color: #f8e5e5;
    --text-color: #333333;
    --background-color: #ffffff;
    --primary: #bb2b3f;
    --dark: #333333;
    
    /* Couleurs d'accent */
    --gold-accent: #d4af37;
    --shadow-color: rgba(0, 0, 0, 0.2);
    --dark-bg: #2b1a1f;
    --light-bg: #fef9f5;
    
    /* Transitions et animations */
    --transition-speed: 0.3s;
}

/* ==========================================================================
   STYLES COMMUNS ET UTILITAIRES
   ========================================================================== */
/* Styles communs pour le compteur du panier */
.header-cart-count,
.mobile-cart-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    height: 20px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    font-size: 12px;
    font-weight: bold;
    position: absolute;
    top: -10px;
    right: -10px;
    transition: all 0.3s ease;
}

.header-cart-count.empty-cart,
.mobile-cart-count.empty-cart {
    opacity: 0;
    transform: scale(0.5);
}

.header-cart-count.has-items,
.mobile-cart-count.has-items {
    opacity: 1;
    transform: scale(1);
}

/* ==========================================================================
   ANIMATIONS GLOBALES
   ========================================================================== */
@keyframes bloom {
    0% { transform: scale(0) rotate(0deg); opacity: 0; }
    50% { transform: scale(1.2) rotate(15deg); opacity: 1; }
    100% { transform: scale(1) rotate(0deg); opacity: 1; }
}

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

@keyframes driftBackground {
    0% { transform: rotate(-10deg) translateX(-10%); }
    50% { transform: rotate(5deg) translateX(10%); }
    100% { transform: rotate(-10deg) translateX(-10%); }
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
/* Tablettes */
@media (max-width: 1024px) {
    .expertise-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Mobiles & Tablettes */
@media (max-width: 768px) {
    .expertise-grid {
        grid-template-columns: 1fr;
    }
    
    .title-main {
        font-size: 2.5rem;
    }
    
    .title-sub {
        font-size: 1rem;
    }
    
    .products-preview { 
        grid-template-columns: 1fr; 
        gap: 20px; 
        width: 90%; 
        margin: 0 auto; 
    }
    
    .product-card { 
        max-width: 320px; 
    }
    
    .custom-calendar-modal { 
        align-items: center; 
        padding: 20px; 
    }
    
    .calendar-content { 
        max-width: 90%; 
        margin: 10% auto; 
        padding: 20px; 
        max-height: 80vh; 
    }
    
    .calendar-header button { 
        font-size: 1rem; 
    }
    
    .month-year { 
        font-size: 1.1rem; 
    }
    
    .day-names span { 
        font-size: 0.8rem; 
    }
    
    .day { 
        font-size: 0.85rem; 
    }
    
    .time-picker { 
        flex-direction: column; 
        gap: 10px; 
        align-items: stretch; 
    }
    
    #pickup-time { 
        width: 100%; 
        color: var(--text-color); 
        border-color: rgba(187, 43, 63, 0.2); 
        font-size: 14px; 
    }
    
    .confirm-date { 
        width: 100%; 
        padding: 12px; 
        font-size: 14px; 
    }
}

/* Petits mobiles */
@media (max-width: 480px) {
    .title-main {
        font-size: 2rem;
    }
    
    .title-sub {
        font-size: 0.9rem;
    }
    
    .calendar-content { 
        padding: 15px; 
    }
    
    .month-year { 
        font-size: 1rem; 
    }
    
    .day { 
        font-size: 0.8rem; 
    }
}