/* ========================================
   NOTIFICATIONS & ALERTES
   ======================================== */

/* ----- Messages Flash (Succès/Erreur) ----- */
.notification-flash {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 16px 20px;
    margin-bottom: 16px;
    border-radius: 12px;
    background: #ffffff;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border-left: 5px solid;
    position: relative;
    animation: slideDownFlash 0.5s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.notification-flash.notification-success {
    border-left-color: #10b981;
    background: #f0fdf4;
}

.notification-flash.notification-success .notification-flash-icon {
    background: #10b981;
    color: #fff;
}

.notification-flash.notification-success .notification-flash-title {
    color: #065f46;
}

.notification-flash.notification-error {
    border-left-color: #ef4444;
    background: #fef2f2;
}

.notification-flash.notification-error .notification-flash-icon {
    background: #ef4444;
    color: #fff;
}

.notification-flash.notification-error .notification-flash-title {
    color: #991b1b;
}

/* Icône */
.notification-flash-icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    background: #10b981;
    color: #fff;
}

/* Contenu */
.notification-flash-content {
    flex: 1;
    min-width: 0;
}

.notification-flash-title {
    font-weight: 700;
    font-size: 15px;
    margin-bottom: 2px;
    color: #1a1a2e;
}

.notification-flash-message {
    font-size: 14px;
    color: #4a4a6a;
    line-height: 1.5;
}

/* Bouton de fermeture */
.notification-flash-close {
    flex-shrink: 0;
    background: none;
    border: none;
    color: #94a3b8;
    cursor: pointer;
    font-size: 18px;
    padding: 4px;
    transition: color 0.2s, transform 0.2s;
    line-height: 1;
}

.notification-flash-close:hover {
    color: #475569;
    transform: rotate(90deg);
}

/* ----- Alertes d'erreur (liste) ----- */
.alert {
    padding: 16px 20px;
    border-radius: 12px;
    margin-bottom: 16px;
    border-left: 5px solid;
    animation: slideDownFlash 0.5s ease;
}

.alert.alert-danger {
    background: #fef2f2;
    border-left-color: #ef4444;
}

.alert.alert-danger ul {
    margin: 0;
    padding-left: 24px;
    color: #991b1b;
}

.alert.alert-danger ul li {
    margin-bottom: 4px;
    font-size: 14px;
}

.alert.alert-danger ul li::marker {
    color: #ef4444;
}

.alert.alert-success {
    background: #f0fdf4;
    border-left-color: #10b981;
    color: #065f46;
}

.alert.alert-success ul {
    margin: 0;
    padding-left: 24px;
}

.alert.alert-success ul li {
    margin-bottom: 4px;
    font-size: 14px;
}

.alert.alert-success ul li::marker {
    color: #10b981;
}

/* Classe utilitaire */
.mb-0 {
    margin-bottom: 0 !important;
}

/* Animations */
@keyframes slideDownFlash {
    0% {
        opacity: 0;
        transform: translateY(-20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ----- Responsive ----- */
@media (max-width: 576px) {
    .notification-flash {
        padding: 14px 16px;
        border-radius: 10px;
    }
    
    .notification-flash-icon {
        width: 34px;
        height: 34px;
        font-size: 16px;
    }
    
    .notification-flash-title {
        font-size: 14px;
    }
    
    .notification-flash-message {
        font-size: 13px;
    }
    
    .alert {
        padding: 14px 16px;
    }
    
    .alert ul li {
        font-size: 13px;
    }
}