/* Modern header styles (no nested rules) */

header {
    width: 100%;
}

#navbarOne.site-nav,
#navbarOne { /* default styles */
    background: linear-gradient(180deg, #1e2124 0%, #15181a 100%);
    color: #fff;
    width: 100%;
    padding: 0;
    position: sticky;
    top: 0;
    z-index: 1020;
    backdrop-filter: saturate(160%) blur(8px);
    -webkit-backdrop-filter: saturate(160%) blur(8px);
    box-shadow: 0 1px 0 rgba(255, 255, 255, .06) inset, 0 6px 24px rgba(0, 0, 0, .25);
}

/* Sizing targets for smooth transitions */
#titleNavb {
    font-size: 28px;
    transition: font-size .3s ease;
}

#logoNavb {
    height: 44px;
    transition: height .3s ease;
}

#logoHeaderAgglo {
    display: none;
}

.navbar-brand span {
    font-weight: 700;
    letter-spacing: .5px;
}

/* No JS scroll behavior; stable compact navbar */

/* Nav links */
.nav-darky .nav-link {
    color: var(--ligthGray);
    font-family: 'Quicksand', sans-serif;
    font-weight: bolder;
    transition: color .2s ease, background-color .2s ease;
    padding: .5rem .75rem;
    border-radius: .5rem;
    text-wrap: nowrap;
}


/* Override global hover/active from style.css to avoid conflicts */
.site-header .navbar .nav-link.active {
    background: transparent !important;
    color: #fff !important;
    border-radius: .5rem;
}

.site-header .navbar .nav-item a:hover {
    background-color: rgba(255, 255, 255, .06);
    border-radius: .5rem;
}

.nav-darky .nav-link:hover {
    color: #fff;
    text-decoration: none;
    background-color: rgba(255, 255, 255, .04);
}

.nav-darky .nav-link.active i {
    color: inherit;
}

.nav-darky .nav-link i {
    color: var(--main-green);
}

/* Dropdown */
.dropdown-menu {
    background-color: #1a1d20;
    border-color: rgba(255, 255, 255, .1);
}

.dropdown-item {
    color: var(--ligthGray);
}

.dropdown-item:hover {
    background-color: #15181a;
    color: #ddd;
}

/* Toggler */
.navbar-dark .navbar-toggler {
    border-color: rgba(255, 255, 255, .15);
}

.navbar-dark .navbar-toggler-icon {
    filter: drop-shadow(0 0 1px rgba(0, 0, 0, .1));
}

/* Removed WorkInProg bar in new navbar */

/* Center nav underline effect */
.nav-main .nav-link {
    position: relative;
    border-radius: 0;
}

.nav-main .nav-link::after {
    content: "";
    position: absolute;
    left: .5rem;
    right: .5rem;
    bottom: .2rem;
    height: 3px;
    background: linear-gradient(90deg, var(--main-green), var(--bleuAgglo));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .25s ease;
    border-radius: 3px;
}

.nav-main .nav-link:hover::after,
.nav-main .nav-link.active::after {
    transform: scaleX(1);
}

.nav-main .nav-link.active {
    color: #fff;
    background: transparent !important;
}

/* CTA in nav */
.nav-link--cta {
    background: var(--main-green);
    color: #111 !important;
    border-radius: 999px;
    padding: .5rem 1rem !important;
    box-shadow: 0 4px 16px rgba(104, 177, 57, .35);
}

.nav-link--cta:hover {
    background: #6f942d;
    color: #111 !important;
}

/* Mobile / Tablet */
@media (max-width: 992px) {
    #navbarOne {
        padding: 0 12px;
    }

    #titleNavb {
        font-size: 22px;
    }

    #logoNavb {
        height: 32px;
    }

    #logoHeaderAgglo {
        height: 36px;
    }

    .site-header .navbar-collapse {
        background: linear-gradient(180deg, #1e2124 0%, #15181a 100%);
        border-top: 1px solid rgba(255, 255, 255, .08);
        padding: .5rem 0;
    }

    .nav-main .nav-link {
        padding: .75rem 1rem;
        margin: .125rem 0;
        border-radius: .5rem;
    }

    .nav-main .nav-link::after {
        display: none;
    }

    .nav-link--cta {
        width: 100%;
        text-align: center;
        margin-top: .25rem;
    }
}

@media (max-width: 420px) {
    #navbarOne {
        padding-left: 7px;
        padding-right: 7px;
    }

    #logoNavb {
        height: 20px;
    }

    #logoHeaderAgglo {
        height: 30px;
    }

    #titleNavb {
        font-size: 17px;
    }

    #titleNavb span {
        display: none;
    }
}
