/* Bandeau promotionnel - masqué par défaut */
.promo-banner {
    display: none !important;
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    color: #ffffff;
    padding: 12px 0;
    text-align: center;
    width: 100%;
    position: fixed;
    top: 55px;
    left: 0;
    z-index: 999998;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

/* Classe pour afficher le bandeau uniquement sur /fr/ */
.promo-banner.show {
    display: block !important;
}

/* Ajuster le main-container pour compenser le header fixe (55px) + bandeau (environ 40px) = 95px */
/* Appliquer uniquement quand le bandeau est visible */
body:has(.promo-banner.show) .main-container {
    padding-top: 95px !important;
}

.promo-banner .container {
    max-width: 1400px;
}

.promo-text {
    font-size: 15px;
    font-weight: 400;
    line-height: 1.5;
    display: inline-block;
}

.promo-text strong {
    font-weight: 700;
    font-size: 16px;
}

.promo-date {
    font-size: 13px;
    font-weight: 400;
    opacity: 0.9;
    font-style: italic;
}

/* Bouton de fermeture supprimé */

@media (max-width: 767px) {
    .promo-banner {
        padding: 10px 0;
    }
    
    .promo-text {
        font-size: 12px;
        line-height: 1.4;
    }
    
    .promo-text strong {
        font-size: 13px;
    }
    
    .promo-date {
        font-size: 11px;
        display: block;
        margin-top: 4px;
    }
    
    .promo-close {
        width: 24px;
        height: 24px;
        font-size: 18px;
    }
}

/* Styles pour le champ code promo - version simplifiée */
.promo-code-section {
    margin-bottom: 12px;
}

.promo-code-title {
    font-size: 13px;
    font-weight: 400;
    margin-bottom: 6px;
    color: #666;
    display: inline-block;
    margin-right: 10px;
}

.promo-code-input-group {
    display: inline-flex;
    gap: 8px;
    align-items: center;
}

.promo-code-input {
    width: 150px;
    padding: 6px 10px;
    border: 1px solid #ccc;
    border-radius: 3px;
    font-size: 13px;
    transition: border-color 0.3s ease;
    height: 32px;
}

.promo-code-input:focus {
    outline: none;
    border-color: #f77f00;
}

.promo-code-btn {
    padding: 5px 12px;
    background: transparent;
    color: #666;
    border: 1px solid #ddd;
    border-radius: 3px;
    font-size: 11px;
    font-weight: 400;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
    height: 32px;
}

.promo-code-btn:hover {
    background: #f5f5f5;
    color: #333;
    border-color: #ccc;
}

.promo-code-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
}

.promo-code-message {
    margin-top: 6px;
    margin-left: 0;
    font-size: 12px;
    font-weight: 500;
    min-height: 16px;
    display: block;
}

/* Masquer le bloc code promo quand le code est appliqué */
.promo-code-section.hidden {
    display: none;
}

/* Styles pour l'affichage de la réduction après application du code */
.promo-discount-display {
    margin-bottom: 12px;
    padding: 8px 0;
}

.promo-discount-line {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
    font-size: 13px;
}

.promo-discount-label {
    color: #666;
}

.promo-discount-amount {
    color: #28a745;
    font-weight: 600;
}

.promo-total-line {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 8px;
    border-top: 1px solid #e0e0e0;
    font-size: 15px;
    font-weight: 600;
}

.promo-total-label {
    color: #333;
}

.promo-total-amount {
    color: #28a745;
    font-weight: 700;
    font-size: 16px;
}

.promo-code-message.success {
    color: #28a745;
}

.promo-code-message.error {
    color: #dc3545;
}

/* Styles pour l'affichage détaillé du prix avec réduction */
.price-breakdown {
    text-align: right;
    display: inline-block;
    min-width: 200px;
}

.price-line {
    margin-bottom: 4px;
    line-height: 1.5;
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.price-line:last-child {
    margin-bottom: 0;
}

.price-label {
    font-size: 12px;
    color: #666;
    margin-right: 10px;
    white-space: nowrap;
}

.price-original {
    text-decoration: line-through;
    color: #999;
    font-size: 13px;
    font-weight: 400;
}

.discount-line {
    color: #28a745;
}

.discount-line .price-label {
    color: #28a745;
    font-size: 12px;
}

.price-discount-amount {
    color: #28a745;
    font-weight: 600;
    font-size: 13px;
}

.total-line {
    border-top: 2px solid #e0e0e0;
    padding-top: 10px;
    margin-top: 10px;
    margin-bottom: 0;
}

.total-line .price-label {
    font-weight: 600;
    color: #333;
    font-size: 15px;
}

.price-discounted {
    color: #28a745;
    font-weight: 700;
    font-size: 18px;
}

@media (max-width: 767px) {
    .price-breakdown {
        min-width: auto;
        width: 100%;
    }
    
    .price-line {
        justify-content: space-between;
    }
    
    .price-label {
        font-size: 11px;
        margin-right: 5px;
    }
    
    .price-original,
    .price-discount-amount {
        font-size: 12px;
    }
    
    .total-line .price-label {
        font-size: 13px;
    }
    
    .price-discounted {
        font-size: 16px;
    }
}

@media (max-width: 767px) {
    .promo-code-section {
        padding: 10px 12px;
    }
    
    .promo-code-title {
        font-size: 12px;
        margin-bottom: 6px;
    }
    
    .promo-code-input-group {
        flex-direction: column;
    }
    
    .promo-code-input {
        padding: 7px 10px;
        font-size: 12px;
    }
    
    .promo-code-btn {
        width: 100%;
        padding: 7px 14px;
        font-size: 12px;
    }
    
    .promo-code-message {
        font-size: 11px;
        margin-top: 6px;
    }
}

