.notification-container {
    position: absolute;
    top: 60px;
    right: 20px;
    width: 500px;
    max-height: 500px;
    background-color: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    overflow-y: auto;
    z-index: 1000;
    display: none;
    font-family: Arial, sans-serif;
}

.notification-container.show {
    display: block;
}

.notification-header {
    padding: 15px;
    background-color: #f8f8f8;
    border-bottom: 1px solid #e0e0e0;
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-weight: bold;
    color: #333;
}

.notification-header i {
    margin-right: 10px;
    font-size: 1.2em;
}

.notification-count {
    background-color: #dc3545;
    color: white;
    border-radius: 50%;
    padding: 5px 8px;
    font-size: 0.8em;
    line-height: 1;
}

.notification-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.notification-item {
    position: relative; /* Nï¿½cessaire pour positionner le bouton de suppression */
}

.notification-item-empty {
    padding: 15px;
    text-align: center;
    color: #888;
}

.notification-link {
    display: flex;
    padding: 15px;
    border-bottom: 1px solid #f0f0f0;
    cursor: pointer;
    transition: background-color 0.3s ease;
    text-decoration: none;
    color: inherit;
    width: 100%;
}

.notification-link:last-child {
    border-bottom: none;
}

.notification-link:hover {
    background-color: #f5f5f5;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    transform: translateY(-1px);
}

/* Style du bouton de suppression */
.delete-btn {
    position: absolute;
    top: 50%;
    right: 15px;
    transform: translateY(-50%);
    background-color: #3f51b5; /* Bleu du bouton */
    color: white; /* Texte blanc */
    border: none;
    border-radius: 50%;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2em;
    cursor: pointer;
    opacity: 0; /* Cachï¿½ par dï¿½faut */
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

/* Affiche le bouton au survol de l'ï¿½lï¿½ment parent */
.notification-item:hover .delete-btn {
    opacity: 1;
}

/* Effet de survol pour le bouton de suppression */
.delete-btn:hover {
    background-color: #2c387e; /* Bleu plus foncï¿½ au survol */
    transform: translateY(-50%) scale(1.1); /* Agrandit lï¿½gï¿½rement */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.notification-icon {
    margin-right: 15px;
    font-size: 1.5em;
    color: #007bff;
}

.notification-content {
    flex-grow: 1;
}

.notification-title {
    font-weight: bold;
    margin-bottom: 5px;
    color: #333;
    line-height: 1.2;
}

.notification-message {
    font-size: 0.9em;
    color: #666;
    line-height: 1.4;
}

.notification-footer {
    padding: 15px;
    background-color: #f8f8f8;
    border-top: 1px solid #e0e0e0;
    border-bottom-left-radius: 8px;
    border-bottom-right-radius: 8px;
    text-align: center;
}

.notification-footer a {
    color: #007bff;
    text-decoration: none;
    font-size: 0.9em;
}

.notification-footer a:hover {
    text-decoration: underline;
}

/* Responsive design */
@media (max-width: 400px) {
    .notification-container {
        width: 90%;
        right: 5%;
        left: 5%;
    }
}


/* Styles CSS pour header noir */
/* Style pour la barre d'en-tête (plus clair et stylé) */
.topbar.scrolled {
    /* Un gris très foncé  */
    background-color: rgba(30, 30, 30) !important;
    transition: background-color 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
    /* Ombre subtile pour la profondeur */
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2); 
}

/* Style pour le menu de navigation (plus clair et stylé) */
.primary-menu .navbar.scrolled {
    /* Un gris très foncé  */
    background-color: rgba(30, 30, 30) !important;
    transition: background-color 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
    /* Ombre subtile pour la profondeur */
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

/* Optionnel : Ajuster la couleur du texte et des icônes pour le contraste */
.topbar.scrolled .navbar-nav .nav-link,
.topbar.scrolled .logo-text,
.primary-menu .navbar.scrolled .navbar-nav .nav-link,
.primary-menu .navbar.scrolled .menu-title {
    color: #f0f0f0 !important; /* Texte blanc cassé pour un meilleur contraste */
}


/* Styles CSS pour le preloader */
/* Le conteneur du loader qui couvre tout l'écran */
#my-loader-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #ffffff; /* Fond blanc */
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease-in-out;
}

/* L'animation du loader (un simple cercle qui tourne) */
.my-loader {
    width: 50px;
    height: 50px;
    border: 5px solid #f3f3f3; /* Bordure grise */
    border-top: 5px solid #3498db; /* Bordure bleue pour l'animation */
    border-radius: 50%;
    animation: my-spin 1s linear infinite;
}

/* Animation de la rotation */
@keyframes my-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Classe ajoutée par le JavaScript pour masquer le loader */
.my-loader-hidden {
    opacity: 0;
    pointer-events: none; /* Empêche les clics sur le loader une fois masqué */
}
