/* Styles pour l'avatar utilisateur rond et autres ajustements de la barre du haut */

/* Avatar utilisateur rond */
.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%; /* Rend l'avatar parfaitement rond */
    object-fit: cover; /* Assure que l'image remplit bien le cercle */
    border: 2px solid #4169e1; /* Bordure bleue */
    box-shadow: 0 0 10px rgba(65, 105, 225, 0.5); /* Ombre bleue */
    transition: all 0.3s ease;
    overflow: hidden; /* S'assure que rien ne dépasse du cercle */
    display: block; /* Élimine les espaces blancs potentiels */
}

/* Force l'image à être parfaitement carrée avant d'appliquer le border-radius */
.user-toggle img.user-avatar {
    aspect-ratio: 1/1;
    max-width: 100%;
    max-height: 100%;
}

.user-toggle {
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.user-toggle:hover .user-avatar {
    transform: scale(1.1);
    box-shadow: 0 0 15px rgba(65, 105, 225, 0.8);
}


/* Ajustements pour le responsive */
@media (max-width: 768px) {
    .user-avatar {
        width: 35px;
        height: 35px;
    }
    /* 1) Rendre chaque icône plus lâche et plus petite */
        .nav-menu a,
        .nav-menu button {
        /* hauteur/largeur réduites */
        width: 30px !important;
        height: 30px !important;
        /* padding interne plus petit */
        padding: 4px !important;
        /* taille de police adaptée aux 32px */
        font-size: 1.1rem !important; 
        }

        /* 2) Si vous utilisez flex sur .nav-menu, vous pouvez gérer l’espace entre les icônes */
        .nav-menu {
        display: flex;
        align-items: center;
        /* espace fixe entre chaque icône */
        gap: 8px !important;
        }

        /* 3) Si vous n’avez pas de gap, vous pouvez aussi mettre un margin à droite */
        .nav-menu a + a,
        .nav-menu button + button {
        margin-left: 8px;
        }

}

@media (max-width: 576px) {
    .user-avatar {
        width: 30px;
        height: 30px;
    }

}

@keyframes pulse {
    0% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.2); opacity: 0.6; }
    100% { transform: scale(1); opacity: 1; }
}
/* ✅ Scroll + badge pulse */
.notifications-list {
    max-height: 300px;
    overflow-y: auto;
    scroll-behavior: smooth;
    padding-right: 6px;
}
.notifications-list::-webkit-scrollbar {
    width: 6px;
}
.notifications-list::-webkit-scrollbar-thumb {
    background-color: rgba(255,255,255,0.3);
    border-radius: 3px;
}
.notification-badge.pulse {
    animation: pulse 1.2s infinite;
}
@keyframes pulse {
    0% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.2); opacity: 0.6; }
    100% { transform: scale(1); opacity: 1; }
}

.notification-badge {
    background: red;
    color: #fff;
    font-size: 12px;
    font-weight: bold;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: -5px;
    right: -5px;
    animation: pulse 1.2s infinite;
    z-index: 10;
}
@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.3); }
    100% { transform: scale(1); }
}
.notifications-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.notifications-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.select-all {
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 4px;
    color: #ddd;
}

.delete-selected:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.notification-item input[type="checkbox"] {
    margin-right: 8px;
}
.notification-item {
    position: relative;
    padding-right: 30px;
}

.site-header .main-navigation {
    font-size: inherit;
}

.notification-delete-btn {
    position: absolute;
    top: 8px;
    right: 8px;
    background: none;
    border: none;
    color: #ccc;
    cursor: pointer;
    font-size: 14px;
}

.notification-delete-btn:hover {
    color: red;
}

.notifications-header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}
.notification-item {
    position: relative;
    padding: 10px;
    border-bottom: 1px solid #333;
    background-color: #111;
    color: #fff;
    font-size: 14px;
    border-radius: 5px;
    margin-bottom: 8px;
}

.notification-delete {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: none;
    border: none;
    color: #aaa;
    cursor: pointer;
    font-size: 0.8em;
    transition: color 0.3s ease;
}

.notification-delete:hover {
    color: #e74c3c;
}
.notification-empty {
    text-align: center;
    padding: 20px;
    color: #aaa;
    font-style: italic;
  }

  .notif-chapter-link {
    text-decoration: none;
    color: inherit;
  }

  .notification-content .notif-chapter-link {
    color: #0073aa; /* WordPress blue, or choose your color */
    text-decoration: underline;
    cursor: pointer;
}

.notification-content .notif-chapter-link:hover {
    color: #005177; /* Darker shade on hover */
    text-decoration: none;
}
/* Cible le lien “Va vite le voir !” dans la notif */
.notification-content .notif-chapter-link {
    /* retire tout padding ou bord arrondi imposé */
    padding: 0;
    border-radius: 0 !important;      
    background: transparent !important;
    outline: none !important;
  }
  
  /* seulement soulignement au survol, sans cercle autour */
  .notification-content .notif-chapter-link:hover,
  .notification-content .notif-chapter-link:focus {
    background: transparent !important;
    outline: none !important;
    text-decoration: underline;
  }
.notification-content a.notif-chapter-link {
    white-space: nowrap;       
    margin-top: 0.25em;        
    color: #FFD700;
    text-decoration: none; 
  }
  
.notification-content  a.notif-chapter-link:hover {
        color: #FFC300; 
}

.notification-item .notif-chapter-link {
    white-space: normal;
  }
  
  /* 2) Passe ton lien en block pour qu’il soit sur sa propre ligne */
  .notification-item .notif-chapter-link {
    display: block;
    margin-top: 0.5em; 
  }
  