/* ========================================
   EFFET DE DÉCOLLAGE ÉLÉGANT DU HEADER (DESKTOP UNIQUEMENT)
   ======================================== */

@media (min-width: 769px) {
    /* Style par défaut - header au repos */
    body header {
        position: sticky !important;
        top: 0 !important;
        z-index: 1000 !important;
        transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1) !important;
    }
    
    /* État "décollé" - ajouté par JavaScript au scroll */
    body header.floating {
        box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25), 
                    0 8px 24px rgba(0, 0, 0, 0.18),
                    0 4px 12px rgba(0, 0, 0, 0.12) !important;
        transform: translateY(-3px) !important;
    }
    
    /* Accentuer légèrement le logo lors du décollage */
    body header.floating .logo {
        transform: scale(1.03) !important;
        transition: transform 0.4s ease !important;
    }
    
    /* Animation de l'icône panier */
    body header.floating .cart-icon {
        transform: translateY(-2px) !important;
        transition: transform 0.4s ease !important;
    }
    
    /* Bordure inférieure subtile qui apparaît au scroll */
    body header::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 0;
        right: 0;
        height: 2px;
        background: linear-gradient(90deg, 
            transparent 0%, 
            rgba(247, 184, 1, 0.4) 50%, 
            transparent 100%);
        opacity: 0;
        transition: opacity 0.4s ease;
    }
    
    body header.floating::after {
        opacity: 1;
    }
    
    /* Animation de lueur subtile - PLUS VISIBLE */
    @keyframes headerGlow {
        0%, 100% {
            box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25), 
                        0 8px 24px rgba(0, 0, 0, 0.18),
                        0 4px 12px rgba(0, 0, 0, 0.12),
                        0 0 50px rgba(247, 184, 1, 0.15);
        }
        50% {
            box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25), 
                        0 8px 24px rgba(0, 0, 0, 0.18),
                        0 4px 12px rgba(0, 0, 0, 0.12),
                        0 0 70px rgba(247, 184, 1, 0.25);
        }
    }
    
    /* Appliquer l'animation de lueur uniquement quand floating */
    body header.floating.with-glow {
        animation: headerGlow 3s ease-in-out infinite !important;
    }
}

/* Mobile - pas d'effet de décollage */
@media (max-width: 768px) {
    body header {
        position: sticky !important;
        top: 0 !important;
        z-index: 1000 !important;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1) !important;
    }
}
