/**
 * CSS pour les notifications en bannière en haut de page
 * Style attractif avec animation et fermeture automatique
 */

.notifications-banner {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    background: linear-gradient(135deg, #ff6b6b, #ee5a52);
    color: white;
    padding: 15px 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    font-family: Arial, sans-serif;
    border-bottom: 3px solid #d63031;
    animation: slideDown 0.5s ease-out;
}

.notifications-banner.warning {
    background: linear-gradient(135deg, #fdcb6e, #e17055);
    border-bottom-color: #d63031;
}

.notifications-banner.info {
    background: linear-gradient(135deg, #74b9ff, #0984e3);
    border-bottom-color: #2d3436;
}

.notifications-banner.success {
    background: linear-gradient(135deg, #00b894, #00cec9);
    border-bottom-color: #2d3436;
}

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

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

.notifications-banner.hiding {
    animation: slideUp 0.3s ease-in forwards;
}

.banner-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
}

.banner-message {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 15px;
}

.banner-icon {
    font-size: 24px;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.banner-text {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.banner-title {
    font-size: 16px;
    font-weight: bold;
    margin: 0;
}

.banner-subtitle {
    font-size: 14px;
    opacity: 0.9;
    margin: 0;
}

.banner-close {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.banner-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

.banner-actions {
    display: flex;
    gap: 10px;
    margin-left: 20px;
}

.banner-btn {
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    text-decoration: none;
    font-size: 12px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.banner-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    text-decoration: none;
    color: white;
    transform: translateY(-1px);
}

.banner-btn.dismiss-btn {
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.4);
    font-weight: bold;
}

.banner-btn.dismiss-btn:hover {
    background: rgba(255, 255, 255, 0.35);
    transform: translateY(-2px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.banner-notifications-list {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.banner-notification-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 5px 0;
    font-size: 13px;
}

.banner-notification-time {
    font-weight: bold;
    opacity: 0.8;
}

/* Espacement pour le contenu de la page */
body.has-notifications-banner {
    padding-top: 80px;
}

body.has-notifications-banner.expanded {
    padding-top: 120px;
}

/* Responsive */
@media (max-width: 768px) {
    .notifications-banner {
        padding: 12px 15px;
    }
    
    .banner-content {
        flex-direction: column;
        gap: 10px;
    }
    
    .banner-actions {
        margin-left: 0;
        justify-content: center;
    }
    
    .banner-title {
        font-size: 14px;
    }
    
    .banner-subtitle {
        font-size: 12px;
    }
    
    body.has-notifications-banner {
        padding-top: 100px;
    }
    
    body.has-notifications-banner.expanded {
        padding-top: 140px;
    }
}

/* Animation de clignotement pour attirer l'attention */
.notifications-banner.urgent {
    animation: slideDown 0.5s ease-out, urgentBlink 1s ease-in-out 3;
}

@keyframes urgentBlink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}