/* ── Core Navbar ── */
.navbar {
    background-color: #ffffff;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 10;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
    transition: background-color 0.3s ease-in-out;
}

.navbar.scrolled {
    background-color: #fffffff2;
    transition: background-color 0.3s ease-in-out;
}

.imgLOGO {
    width: 175px;
    height: 55px;
}

/* ── Nav Links ── */
.navbar .navbar-nav .nav-link {
    color: #022E51;
    font-weight: 800;
}

.navbar .navbar-nav .nav-link.active,
.navbar .navbar-nav .nav-link:focus,
.navbar .navbar-nav .nav-link:hover {
    color: var(--green-color);
}

/* ── User button (shared desktop + mobile) ── */
.nav-user-btn {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
    display: flex;
    align-items: center;
    gap: 8px;
    color: #002b4d !important;
}

.nav-user-btn:focus,
.nav-user-btn:active {
    box-shadow: none !important;
    outline: none !important;
}

/* Avatar circle with initial */
.nav-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #002b4d;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.95rem;
    flex-shrink: 0;
}

.nav-prenom {
    font-weight: 600;
    font-size: 0.95rem;
    color: #002b4d;
}

/* ── Dropdown Menu ── */
.dropdown-menu {
    min-width: 220px !important;
    padding: 0.5rem 0;
    border: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important;
    border-radius: 12px !important;
    margin-top: 0.5rem;
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0.65rem 1rem;
    color: #333;
    transition: all 0.2s ease;
    font-size: 0.95rem;
}

.dropdown-item i {
    width: 20px;
    color: #022E51;
    font-size: 1rem;
}

.dropdown-item:hover {
    background-color: #f8f9fa;
    color: var(--green-color);
    padding-left: 1.25rem;
}

.dropdown-item:hover i {
    color: var(--green-color);
}

.dropdown-toggle::after { display: none; }

.btn-secondary.dropdown-toggle:focus { box-shadow: none; }

/* ── Navbar Search ── */
.navbar-search {
    position: relative;
    width: 250px;
    display: inline-block;
    margin-right: 1rem;
}

.navbar-search input {
    width: 100%;
    padding: 8px 40px 8px 15px;
    border: 1px solid #ddd;
    border-radius: 30px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%23198754' viewBox='0 0 16 16'%3E%3Cpath d='M11.742 10.344a6.5 6.5 0 1 0-1.397 1.398h-.001c.03.04.062.078.098.115l3.85 3.85a1 1 0 0 0 1.415-1.414l-3.85-3.85a1.007 1.007 0 0 0-.115-.1zM12 6.5a5.5 5.5 0 1 1-11 0 5.5 5.5 0 0 1 11 0z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 15px center;
    background-size: 18px;
}

.navbar-search input:focus {
    outline: none;
    border-color: var(--green-color);
    box-shadow: 0 0 0 0.2rem rgba(25, 135, 84, 0.15);
}

/* ── Mobile ≤ 991px ── */
@media (max-width: 991px) {
    .navbar-search {
        width: 100%;
        margin: 10px 0 4px;
    }
    .navbar .container {
        flex-wrap: nowrap;
    }
}

@media (max-width: 480px) {
    .imgLOGO {
        width: 140px;
        height: auto;
    }
}