/* Styles pour la barre de notification */
.notification-bar {
    position: fixed;
    top: 0;
    right: 0;
    width: 300px; /* Largeur des notifications */
    z-index: 9000; /* Assurez-vous que la barre de notification chevauche le reste de la page */
    display: flex;
    flex-direction: column;
    align-items: flex-end; /* Alignement à droite */
    pointer-events: none; /* Empêche les notifications de bloquer les clics */
}

/* Exemple de style pour une notification individuelle */
.notification {
    display: flex;
    align-items: center;
    padding: 15px 20px;
    margin: 10px 10px 0 10px;
    background-color: #444;
    color: #fff;
    border-radius: 5px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    opacity: 0; /* Initialement invisible */
    transform: translateX(20px); /* Position initiale pour l'animation */
    animation: fadeIn 0.5s forwards, fadeOut 0.5s 4.5s forwards; /* Animation d'apparition et de disparition */
    pointer-events: auto; /* Réactive les clics sur les notifications */
}

/* Définir les animations */
@keyframes fadeIn {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeOut {
    to {
        opacity: 0;
        transform: translateX(20px);
    }
}

/* Styles colorés pour différents types de notifications */
.notification-success {
    background-color: #28a745;
}

.notification-error {
    background-color: #dc3545;
}

.notification-warning {
    background-color: #ffc107;
}

.notification-info {
    background-color: #17a2b8;
}

/* Styles pour les icônes */
.notification-icon {
    margin-right: 10px;
    font-size: 20px;
}