/* Barre d'information - Styles adaptés aux différents types */
/* Couleurs harmonisées avec le site O Time Fly */

.info-bar {
    position: static;
    width: 100%;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 0.875rem;
    line-height: 1.4;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
    animation: slideDown 0.4s ease-out;
}

.info-bar-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.5rem 2rem;
    max-width: 1400px;
    margin: 0 auto;
    min-height: 32px;
    position: relative;
    gap: 1rem;
}

.info-bar-content {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex: 1;
    min-width: 0;
}

.info-bar-message {
    font-weight: 500;
    margin: 0;
    flex: 1;
    min-width: 0;
}

.info-bar-link {
    display: inline-flex;
    align-items: center;
    padding: 0.4rem 1rem;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.8rem;
    transition: all 0.2s ease;
    white-space: nowrap;
    border: 2px solid transparent;
    flex-shrink: 0;
}

.info-bar-close {
    position: absolute;
    top: 50%;
    right: 1rem;
    transform: translateY(-50%);
    background: none;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    padding: 0;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    opacity: 0.8;
    flex-shrink: 0;
    line-height: 1;
    font-family: Arial, sans-serif;
}

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

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

/* Type: Promotion - Couleur caramel/bronze harmonisée */
.info-bar-promo {
    background: linear-gradient(135deg, #a67c52 0%, #8a6642 100%);
    color: #ffffff;
    box-shadow: 0 2px 12px rgba(166, 124, 82, 0.25);
}

.info-bar-promo .info-bar-message {
    color: #ffffff;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.info-bar-promo .info-bar-message::before {
    content: "🎉 ";
    margin-right: 0.5rem;
}

.info-bar-promo .info-bar-link {
    background: #ffffff;
    color: #8a6642;
    border-color: #ffffff;
}

.info-bar-promo .info-bar-link:hover {
    background: #f8f8f8;
    color: #6b4d35;
    transform: translateY(-1px);
}

.info-bar-promo .info-bar-close {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.15);
}

.info-bar-promo .info-bar-close:hover {
    background: rgba(255, 255, 255, 0.25);
}

/* Type: Information - Couleur bleu neutre */
.info-bar-info {
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    color: #ffffff;
    box-shadow: 0 2px 12px rgba(52, 152, 219, 0.25);
}

.info-bar-info .info-bar-message {
    color: #ffffff;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.info-bar-info .info-bar-message::before {
    content: "ℹ️ ";
    margin-right: 0.5rem;
}

.info-bar-info .info-bar-link {
    background: #ffffff;
    color: #2980b9;
    border-color: #ffffff;
}

.info-bar-info .info-bar-link:hover {
    background: #f8f8f8;
    color: #1f5f8b;
    transform: translateY(-1px);
}

.info-bar-info .info-bar-close {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.15);
}

.info-bar-info .info-bar-close:hover {
    background: rgba(255, 255, 255, 0.25);
}

/* Type: Success - Couleur verte positive */
.info-bar-success {
    background: linear-gradient(135deg, #27ae60 0%, #229954 100%);
    color: #ffffff;
    box-shadow: 0 2px 12px rgba(39, 174, 96, 0.25);
}

.info-bar-success .info-bar-message {
    color: #ffffff;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.info-bar-success .info-bar-message::before {
    content: "✅ ";
    margin-right: 0.5rem;
}

.info-bar-success .info-bar-link {
    background: #ffffff;
    color: #229954;
    border-color: #ffffff;
}

.info-bar-success .info-bar-link:hover {
    background: #f8f8f8;
    color: #1e7e34;
    transform: translateY(-1px);
}

.info-bar-success .info-bar-close {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.15);
}

.info-bar-success .info-bar-close:hover {
    background: rgba(255, 255, 255, 0.25);
}

/* Type: Warning - Couleur orange d'avertissement */
.info-bar-warning {
    background: linear-gradient(135deg, #f39c12 0%, #e67e22 100%);
    color: #ffffff;
    box-shadow: 0 2px 12px rgba(243, 156, 18, 0.25);
}

.info-bar-warning .info-bar-message {
    color: #ffffff;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.info-bar-warning .info-bar-message::before {
    content: "⚠️ ";
    margin-right: 0.5rem;
}

.info-bar-warning .info-bar-link {
    background: #ffffff;
    color: #e67e22;
    border-color: #ffffff;
}

.info-bar-warning .info-bar-link:hover {
    background: #f8f8f8;
    color: #d35400;
    transform: translateY(-1px);
}

.info-bar-warning .info-bar-close {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.15);
}

.info-bar-warning .info-bar-close:hover {
    background: rgba(255, 255, 255, 0.25);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .info-bar-container {
        padding: 0.4rem 1.5rem;
        gap: 0.75rem;
    }
    
    .info-bar-message {
        font-size: 0.8rem;
    }
    
    .info-bar-link {
        padding: 0.3rem 0.8rem;
        font-size: 0.75rem;
    }
}

@media (max-width: 768px) {
    .info-bar-container {
        padding: 0.4rem 1rem;
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
        min-height: auto;
    }
    
    .info-bar-content {
        width: 100%;
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .info-bar-close {
        position: absolute;
        top: 50%;
        right: 0.5rem;
        transform: translateY(-50%);
        width: 24px;
        height: 24px;
        font-size: 1rem;
    }
    
    .info-bar-close:hover {
        transform: translateY(-50%) scale(1.1);
    }
}

@media (max-width: 480px) {
    .info-bar-container {
        padding: 0.3rem 0.75rem;
    }
    
    .info-bar-message {
        font-size: 0.75rem;
        line-height: 1.3;
    }
    
    .info-bar-link {
        padding: 0.25rem 0.6rem;
        font-size: 0.7rem;
    }
}
