/* Styles pour les bandeaux de promotion */

.promo-banner {
    position: relative;
    width: 100%;
    z-index: 1000;
    font-family: Arial, sans-serif;
    font-size: 16px;
    line-height: 1.5;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    display: none; /* Caché par défaut */
    margin: 0; /* Reset des marges */
    top: 0; /* Force la position en haut */
}

.promo-banner.show {
    display: block;
    animation: slideDown 0.5s ease-out;
}

.promo-banner .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.banner-content {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px 60px 12px 20px;
    position: relative;
    text-align: center;
    flex-wrap: wrap;
}

.banner-text {
    font-weight: bold;
    font-size: 18px;
    margin-right: 15px;
    flex: 1;
    min-width: 200px;
}

.banner-code {
    font-weight: bold;
    font-size: 16px;
    background: rgba(255,255,255,0.2);
    padding: 4px 8px;
    border-radius: 4px;
    margin: 0 10px;
    border: 1px solid rgba(255,255,255,0.3);
}

.banner-date {
    font-size: 13px;
    opacity: 0.9;
    margin-left: 15px;
    white-space: nowrap;
}

.banner-close {
    position: absolute;
    right: 15px;
    top: 15px;
    cursor: pointer;
    font-size: 18px;
    font-weight: bold;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
    background: rgba(0,0,0,0.1);
    color: rgba(255,255,255,0.8);
    z-index: 10;
}

.banner-close:hover {
    background: rgba(0,0,0,0.2);
    color: rgba(255,255,255,1);
    transform: scale(1.1);
}

/* Couleurs des bandeaux */

/* Rouge - Noël */
.banner-red {
    background: linear-gradient(135deg, #c41e3a 0%, #8b0000 100%);
    color: white;
}

.banner-red .banner-close:hover {
    background-color: rgba(255,255,255,0.2);
}

/* Noir - Black Friday */
.banner-black {
    background: linear-gradient(135deg, #2c2c2c 0%, #000000 100%);
    color: white;
}

.banner-black .banner-close:hover {
    background-color: rgba(255,255,255,0.2);
}

/* Jaune */
.banner-yellow {
    background: linear-gradient(135deg, #ffd700 0%, #ffb347 100%);
    color: #333;
}

.banner-yellow .banner-close:hover {
    background-color: rgba(0,0,0,0.1);
}

/* Vert */
.banner-green {
    background: linear-gradient(135deg, #32cd32 0%, #228b22 100%);
    color: white;
}

.banner-green .banner-close:hover {
    background-color: rgba(255,255,255,0.2);
}

/* Bleu */
.banner-blue {
    background: linear-gradient(135deg, #4169e1 0%, #1e3a8a 100%);
    color: white;
}

.banner-blue .banner-close:hover {
    background-color: rgba(255,255,255,0.2);
}

/* Violet */
.banner-purple {
    background: linear-gradient(135deg, #9932cc 0%, #4b0082 100%);
    color: white;
}

.banner-purple .banner-close:hover {
    background-color: rgba(255,255,255,0.2);
}

/* Orange */
.banner-orange {
    background: linear-gradient(135deg, #ff8c00 0%, #ff4500 100%);
    color: white;
}

.banner-orange .banner-close:hover {
    background-color: rgba(255,255,255,0.2);
}

/* Animation d'apparition */
@keyframes slideDown {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Animation de fermeture */
.promo-banner.closing {
    animation: slideUp 0.3s ease-in forwards;
}

@keyframes slideUp {
    from {
        transform: translateY(0);
        opacity: 1;
        max-height: 100px;
    }
    to {
        transform: translateY(-100%);
        opacity: 0;
        max-height: 0;
        padding: 0;
        margin: 0;
    }
}

/* Responsive */
@media (max-width: 768px) {
    .banner-content {
        flex-direction: column;
        text-align: center;
        padding: 12px 15px;
    }
    
    .banner-text {
        margin-right: 0;
        margin-bottom: 8px;
        font-size: 16px;
    }
    
    .banner-code {
        font-size: 14px;
        margin: 5px 0;
    }
    
    .banner-date {
        margin-left: 0;
        font-size: 12px;
    }
    
    .banner-close {
        top: 10px;
        right: 10px;
        width: 25px;
        height: 25px;
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .promo-banner {
        font-size: 14px;
    }
    
    .banner-text {
        font-size: 15px;
    }
    
    .banner-code {
        font-size: 13px;
    }
    
    .banner-date {
        font-size: 11px;
    }
}
