﻿/**
 * EFFET 3D MÃ‰TALLIQUE SURÃ‰LEVÃ‰ - DESKTOP UNIQUEMENT
 * Style Premium pour le logo "allopiecedetachee.com"
 * Gris mÃ©tallique avec effet 3D Ã©lÃ©gant et profondeur
 */

/* Desktop uniquement - >= 769px */
@media (min-width: 769px) {
    .logo-text-senegal {
        position: relative;
        display: inline-block;
        color: #a8a8a8;
        font-weight: 700 !important;
        letter-spacing: 1px !important;
        font-size: 1.5rem !important;
        /* Effet 3D surÃ©levÃ© avec multiples ombres */
        text-shadow: 
            0 1px 0 #fff,
            0 2px 0 #e0e0e0,
            0 3px 0 #d0d0d0,
            0 4px 0 #c0c0c0,
            0 5px 0 #b0b0b0,
            0 6px 1px rgba(0, 0, 0, 0.1),
            0 0 5px rgba(0, 0, 0, 0.1),
            0 1px 3px rgba(0, 0, 0, 0.3),
            0 3px 5px rgba(0, 0, 0, 0.2),
            0 5px 10px rgba(0, 0, 0, 0.25),
            0 10px 20px rgba(0, 0, 0, 0.15);
        filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
    }
    
    /* Style pour le .sn avec les couleurs du drapeau sÃ©nÃ©galais */
    .sn-flag {
        position: relative;
        display: inline-block;
        background: linear-gradient(
            to right,
            #00853f 0%,
            #00853f 33.33%,
            #fdef42 33.33%,
            #fdef42 66.66%,
            #e31b23 66.66%,
            #e31b23 100%
        );
        background-clip: text;
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        font-weight: 700 !important;
        text-shadow: none;
        filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.3));
    }
    
    /* Étoile verte supprimée */
    .sn-flag::before {
        content: none;
    }
    
    @keyframes star-pulse {
        0%, 100% { transform: scale(1); opacity: 1; }
        50%       { transform: scale(1.1); opacity: 0.9; }
    }
    
    /* Effet de brillance au survol */
    .logo:hover .logo-text-senegal {
        color: #b8b8b8;
        text-shadow: 
            0 1px 0 #fff,
            0 2px 0 #f0f0f0,
            0 3px 0 #e0e0e0,
            0 4px 0 #d0d0d0,
            0 5px 0 #c0c0c0,
            0 6px 1px rgba(0, 0, 0, 0.15),
            0 0 5px rgba(0, 0, 0, 0.15),
            0 1px 3px rgba(0, 0, 0, 0.35),
            0 3px 5px rgba(0, 0, 0, 0.25),
            0 5px 10px rgba(0, 0, 0, 0.3),
            0 10px 25px rgba(0, 0, 0, 0.2);
        transform: translateY(-1px);
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.25));
    }
    
    .logo:hover .sn-flag {
        filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.4));
    }
    
    .logo:hover .sn-flag::before {
        content: none;
    }
    
    @keyframes star-pulse-fast {
        0%, 100% {
            transform: scale(1);
            opacity: 1;
        }
        50% {
            transform: scale(1.2) rotate(15deg);
            opacity: 1;
        }
    }
    
    /* Effet de relief supplÃ©mentaire */
    .logo-text-senegal::after {
        content: '';
        position: absolute;
        top: -2px;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: -1;
        opacity: 0;
        transition: opacity 0.3s ease;
    }
    
    .logo:hover .logo-text-senegal::after {
        opacity: 1;
    }
}

/* Mobile - Pas d'effet shimmer, texte en bleu Ã©lÃ©gant */
@media (max-width: 768px) {
    .logo-text-senegal {
        color: #004E89;
        font-weight: 700 !important;
        font-size: 1.5rem !important;
    }
    
    /* Style pour le .sn avec les couleurs du drapeau sÃ©nÃ©galais sur mobile */
    .sn-flag {
        background: linear-gradient(
            to right,
            #00853f 0%,
            #00853f 33.33%,
            #fdef42 33.33%,
            #fdef42 66.66%,
            #e31b23 66.66%,
            #e31b23 100%
        );
        background-clip: text;
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        font-weight: 700 !important;
    }
    
    /* Étoile verte supprimée sur mobile */
    .sn-flag::before {
        content: none;
    }
}
/* ========================================
   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;
    }
}
