/* ============================================
   NAVIGATION - NOUVEAU DESIGN BTP CONSULTING
   Version 2.0 - Premium Navigation
============================================ */

/* === NAVBAR CONTAINER === */
.navbar-new {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    padding: 15px 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.navbar-new.scrolled {
    padding: 8px 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

.navbar-new .nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* === LOGO === */
.navbar-new .nav-logo img {
    height: 70px;
    width: auto;
    transition: all 0.4s ease;
    /* filter removed - logo original colors */
}

.navbar-new.scrolled .nav-logo img {
    height: 55px;
    filter: none;
}

/* === MAIN MENU === */
.nav-menu-new {
    display: flex;
    align-items: center;
    gap: 5px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-item {
    position: relative;
}

.nav-link-new {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 12px 18px;
    font-size: 0.92rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.95);
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s ease;
    position: relative;
}

.navbar-new.scrolled .nav-link-new {
    color: #1B3A6D;
}

.nav-link-new::after {
    content: '';
    position: absolute;
    bottom: 6px;
    left: 50%;
    width: 0;
    height: 2px;
    background: #F37021;
    transition: all 0.3s ease;
    transform: translateX(-50%);
    border-radius: 2px;
}

.nav-link-new:hover::after,
.nav-link-new.active::after {
    width: calc(100% - 36px);
}

.nav-link-new:hover {
    color: #F37021;
}

.navbar-new.scrolled .nav-link-new:hover {
    color: #F37021;
    background: rgba(243, 112, 33, 0.08);
}

/* === DROPDOWN ARROW === */
.nav-arrow {
    width: 10px;
    height: 10px;
    transition: transform 0.3s ease;
}

.nav-item:hover .nav-arrow {
    transform: rotate(180deg);
}

/* === MEGA MENU === */
.mega-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    width: 750px;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 20px;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.15);
    padding: 30px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.nav-item:hover .mega-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
    pointer-events: auto;
}

.mega-menu-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 20px;
    margin-bottom: 20px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.mega-menu-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #1B3A6D;
}

.mega-menu-subtitle {
    font-size: 0.85rem;
    color: #64748B;
}

.mega-menu-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}

.mega-menu-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.mega-menu-item:hover {
    background: linear-gradient(135deg, rgba(243, 112, 33, 0.08), rgba(243, 112, 33, 0.03));
    transform: translateX(5px);
}

.mega-menu-icon {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(27, 58, 109, 0.1), rgba(27, 58, 109, 0.05));
    border-radius: 12px;
    font-size: 1.3rem;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.mega-menu-item:hover .mega-menu-icon {
    background: linear-gradient(135deg, #F37021, #FF8C42);
    transform: scale(1.1);
}

.mega-menu-text {
    display: flex;
    flex-direction: column;
}

.mega-menu-name {
    font-size: 0.9rem;
    font-weight: 600;
    color: #1B3A6D;
    margin-bottom: 2px;
}

.mega-menu-desc {
    font-size: 0.75rem;
    color: #64748B;
}

/* === DROPDOWN SIMPLE === */
.dropdown-simple {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 220px;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.12);
    padding: 12px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    pointer-events: none;
}

.nav-item:hover .dropdown-simple {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}

.dropdown-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    font-size: 0.9rem;
    font-weight: 500;
    color: #374151;
    text-decoration: none;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.dropdown-link:hover {
    background: rgba(243, 112, 33, 0.1);
    color: #F37021;
    transform: translateX(5px);
}

.dropdown-link .icon {
    font-size: 1.1rem;
}

/* === CTA BUTTON === */
.nav-cta-new {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 28px;
    background: linear-gradient(135deg, #F37021, #E8601A);
    color: #fff !important;
    font-size: 0.9rem;
    font-weight: 700;
    border-radius: 50px;
    text-decoration: none;
    transition: all 0.4s ease;
    box-shadow: 0 8px 25px rgba(243, 112, 33, 0.35);
    margin-left: 15px;
}

.nav-cta-new:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(243, 112, 33, 0.45);
}

.nav-cta-new::after {
    display: none !important;
}

/* === MOBILE MENU TOGGLE === */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    padding: 10px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 100;
}

.nav-toggle span {
    display: block;
    width: 28px;
    height: 3px;
    background: #fff;
    border-radius: 3px;
    transition: all 0.3s ease;
}

.navbar-new.scrolled .nav-toggle span {
    background: #1B3A6D;
}

.nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.nav-toggle.active span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* === MOBILE MENU === */
@media (max-width: 1100px) {
    .nav-toggle {
        display: flex;
    }

    .nav-menu-new {
        position: fixed;
        top: 0;
        right: -100%;
        width: 320px;
        height: 100vh;
        flex-direction: column;
        align-items: flex-start;
        justify-content: flex-start;
        padding: 100px 30px 40px;
        background: linear-gradient(180deg, #1B3A6D 0%, #0F2847 100%);
        gap: 0;
        transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        overflow-y: auto;
    }

    .nav-menu-new.active {
        right: 0;
    }

    .nav-item {
        width: 100%;
    }

    .nav-link-new {
        color: #fff;
        padding: 16px 0;
        font-size: 1.05rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        border-radius: 0;
        width: 100%;
    }

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

    .nav-link-new:hover {
        color: #F37021;
        background: transparent;
    }

    .mega-menu,
    .dropdown-simple {
        position: static;
        width: 100%;
        transform: none;
        background: rgba(0, 0, 0, 0.2);
        backdrop-filter: none;
        box-shadow: none;
        border-radius: 12px;
        margin: 10px 0;
        padding: 15px;
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        display: none;
    }

    .nav-item.open .mega-menu,
    .nav-item.open .dropdown-simple {
        display: block;
    }

    .mega-menu-grid {
        grid-template-columns: 1fr;
    }

    .mega-menu-item {
        padding: 12px;
    }

    .mega-menu-name {
        color: #fff;
    }

    .mega-menu-desc {
        color: rgba(255, 255, 255, 0.7);
    }

    .mega-menu-icon {
        background: rgba(255, 255, 255, 0.15);
    }

    .nav-cta-new {
        margin: 20px 0 0 0;
        width: 100%;
        justify-content: center;
    }

    .mega-menu-header {
        display: none;
    }

    .dropdown-link {
        color: #fff;
    }

    .dropdown-link:hover {
        background: rgba(255, 255, 255, 0.1);
        color: #F37021;
    }
}

/* === OVERLAY MOBILE === */
.nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 9990;
}

.nav-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* === RESPONSIVE SMALL === */
@media (max-width: 768px) {
    .navbar-new .nav-container {
        padding: 0 20px;
    }

    .navbar-new .nav-logo img {
        height: 55px;
    }

    .navbar-new.scrolled .nav-logo img {
        height: 45px;
    }
}
