/* ============================================================
   navbar.css — Navigation principale
   ============================================================ */

#main-nav {
    background-color: rgba(250, 247, 242, 0.95) !important;
    backdrop-filter: blur(4px);
    border-bottom: 1px solid var(--encre-200) !important;
    transition: box-shadow 0.3s ease;
}

/* Filet coloré en haut de la barre */
#main-nav::before {
    content: '';
    display: block;
    height: 3px;
    background: linear-gradient(to right, var(--pourpre-800), var(--pourpre-600), var(--cuivre-500));
}

#main-nav.scrolled {
    box-shadow: 0 2px 8px rgba(15, 30, 46, 0.1);
}

/* Marque */
#main-nav .navbar-brand {
    font-family: var(--font-display);
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--encre-900);
    text-decoration: none;
    letter-spacing: -0.02em;
    transition: color 0.2s;
}

#main-nav .navbar-brand:hover {
    color: var(--pourpre-700);
}

#main-nav .navbar-brand img {
    width: 40px;
    height: 40px;
    object-fit: cover;
    border-radius: 50%;
    border: 2px solid var(--pourpre-600);
    transition: border-color 0.2s;
}

#main-nav .navbar-brand:hover img {
    border-color: var(--pourpre-700);
}

/* Liens de navigation */
.nav-link {
    font-family: var(--font-sans);
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--encre-700) !important;
    padding: 0.4rem 0.75rem !important;
    transition: color 0.2s;
    display: inline-block !important;
}

.nav-link:hover {
    color: var(--pourpre-700) !important;
}

.nav-link--active {
    color: var(--pourpre-700) !important;
    border-bottom: 2px solid var(--pourpre-700);
}

@media (max-width: 767.98px) {
    .nav-link--active {
        border-bottom: none;
        border-left: 3px solid var(--pourpre-700);
        padding-left: 0.75rem !important;
    }
}

/* Avatar utilisateur */
.user-avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--pourpre-600), var(--pourpre-700));
    color: white;
    font-family: var(--font-sans);
    font-size: 0.75rem;
    font-weight: 700;
    border: 2px solid var(--pourpre-400);
    flex-shrink: 0;
    overflow: hidden;
}

.user-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

/* Menu déroulant */
.dropdown-menu {
    border: 2px solid var(--encre-900);
    border-radius: 0;
    box-shadow: 4px 4px 0 0 rgba(15, 30, 46, 0.12);
    background-color: var(--papier-50);
    min-width: 260px;
    margin-top: 0.5rem;
}

.dropdown-header {
    font-family: var(--font-sans);
    font-size: 0.75rem;
    padding: 0.75rem 1rem;
    color: var(--encre-600);
    max-width: 250px;
}

.dropdown-item {
    font-family: var(--font-sans);
    font-size: 0.875rem;
    color: var(--encre-700);
    padding: 0.6rem 1rem;
    transition: background 0.15s, color 0.15s;
}

.dropdown-item:hover {
    background-color: var(--pourpre-50);
    color: var(--pourpre-700);
}

.dropdown-item i {
    color: var(--pourpre-600);
    width: 20px;
    text-align: center;
}

.dropdown-divider {
    border-top-color: var(--encre-200);
    margin: 0.5rem 0;
}

/* Toggler mobile */
.navbar-toggler {
    border: 2px solid var(--encre-300);
    padding: 0.4rem 0.6rem;
    transition: border-color 0.2s;
}

.navbar-toggler:hover {
    border-color: var(--pourpre-600);
}

.navbar-toggler:focus {
    box-shadow: 0 0 0 3px rgba(123, 37, 68, 0.12);
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(30, 45, 66, 0.9)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}
