/**
 * Styles pour la bannière Black Friday
 * Responsive et moderne
 */

.bfb-banner {
    width: 100%;
    padding: 15px 20px;
    position: relative;
    z-index: 9999;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    animation: bfb-slide-down 0.5s ease-out;
}

@keyframes bfb-slide-down {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.bfb-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.bfb-text {
    font-size: 18px;
    font-weight: bold;
    text-align: center;
    flex: 1;
    padding: 0 40px;
    line-height: 1.4;
}

.bfb-close {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    font-size: 32px;
    line-height: 1;
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    opacity: 0.7;
    color: inherit;
}

.bfb-close:hover {
    opacity: 1;
    transform: translateY(-50%) scale(1.1);
}

.bfb-close:focus {
    outline: 2px solid currentColor;
    outline-offset: 2px;
}

/* Animation de fermeture */
.bfb-banner.bfb-hiding {
    animation: bfb-slide-up 0.3s ease-out forwards;
}

@keyframes bfb-slide-up {
    from {
        transform: translateY(0);
        opacity: 1;
    }
    to {
        transform: translateY(-100%);
        opacity: 0;
    }
}

/* Responsive - Tablette */
@media screen and (max-width: 768px) {
    .bfb-banner {
        padding: 12px 15px;
    }
    
    .bfb-text {
        font-size: 16px;
        padding: 0 35px;
    }
    
    .bfb-close {
        font-size: 28px;
        width: 28px;
        height: 28px;
    }
}

/* Responsive - Mobile */
@media screen and (max-width: 480px) {
    .bfb-banner {
        padding: 10px 12px;
    }
    
    .bfb-text {
        font-size: 14px;
        padding: 0 30px;
    }
    
    .bfb-close {
        font-size: 24px;
        width: 24px;
        height: 24px;
    }
    
    .bfb-container {
        padding: 0;
    }
}

/* Amélioration de l'accessibilité */
@media (prefers-reduced-motion: reduce) {
    .bfb-banner {
        animation: none;
    }
    
    .bfb-banner.bfb-hiding {
        animation: none;
        display: none;
    }
}

/* Mode sombre (si le site l'utilise) */
@media (prefers-color-scheme: dark) {
    .bfb-banner {
        box-shadow: 0 2px 8px rgba(255, 255, 255, 0.1);
    }
}

/* Support pour les anciens navigateurs */
.bfb-banner {
    -webkit-box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    -moz-box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}
