.site-header {
    width: 100%;
    position: relative;
    z-index: 1000;
    background: #ffffff;
}

.header-container {
    width: 100%;
    /* max-width: 1680px; */
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
 
.top-bar {
    width: 100%;
    background: #f2f2f2;
    padding: 15px 0;
    border-bottom: 1px solid #e5e5e5;
}

.logo-container {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    text-decoration: none;
}

.logo-img {
    display: block;
    width: 150px;
    height: auto;
    margin-right: 12px;
}

.logo-text {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.brand-name {
    color: #1e3a5f;
    font-size: 22px;
    font-weight: 800;
    letter-spacing: 1px;
    line-height: 1;
}

.top-bar-right {
    display: flex;
    align-items: center;
    gap: 30px;
}

.phone-link {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    font-family: 'Montserrat' !important;
}

.whatsapp-icon {
    width: 28px;
    height: 28px;
    flex-shrink: 0;
}

.phone-number {
    color: #1e3a5f;
    font-size: 15px;
    font-weight: 500;
    font-family: 'Montserrat' !important;
}

.pro-link {
    color: #1e3a5f;
    font-family: 'Montserrat' !important;
    text-decoration: underline;
    transition: color 0.2s ease;
}

.pro-link:hover {
    color: #c82333;
}

.pro-active {
    color: #c82333 !important;
}

.main-nav {
    width: 100%;
    background: #ffffff;
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 9999;
}

.nav-list {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.nav-item {
    position: relative;
    list-style: none;
}

.nav-link {
    display: inline-flex;
    align-items: center;
    color: #1e3a5f;
    text-decoration: none;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    padding: 0 0 5px;
    border-bottom: 2px solid transparent;
    transition:
        color 0.2s ease,
        border-color 0.2s ease,
        background-color 0.2s ease;
}

.nav-link:hover {
    color: #c82333;
    border-bottom-color: #c82333;
}

.nav-link.active {
    color: #c82333;
    border-bottom-color: #c82333;
}

.products-item {
    position: relative;
}

/* CORRECTION DESKTOP : Affichage du sous-menu au survol */
.products-item:hover .submenu {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateX(-50%) translateY(0);
}

.products-mobile-header {
    display: flex;
    align-items: center;
}

.submenu-toggle {
    display: none;
}

.submenu {
    position: absolute;
    top: 100%;
    left: 50%;
    width: 245px;
    margin: 0;
    padding: 8px 0;
    list-style: none;
    background: #ffffff;
    border: 1px solid #eeeeee;
    border-radius: 6px;
    transform: translateX(-50%) translateY(8px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    z-index: 5000;
    transition:
        opacity 0.2s ease,
        transform 0.2s ease,
        visibility 0.2s ease;
}

.submenu::after {
    content: "";
    position: absolute;
    top: -15px;
    left: 0;
    width: 100%;
    height: 15px;
    background: transparent;
}



.submenu li {
    width: 100%;
    list-style: none;
}

.submenu li a {
    display: block;
    position: relative;
    width: 100%;
    padding: 13px 18px;
    color: #1e3a5f;
    background: #ffffff;
    font-weight: 600;
    text-decoration: none;
    text-transform: uppercase;
    border: none;
    transition:
        color 0.2s ease,
        background-color 0.2s ease,
        padding-left 0.2s ease;
}

.submenu li a:hover {
    color: #c82333;
    background: #f7f7f7;
}

.submenu li a.active {
    color: #1e3a5f;
    background: #f7f7f7;
    border: none;
}

.submenu li a.active::before {
    content: "";
    position: absolute;
    left: 0;
    top: 7px;
    bottom: 7px;
    width: 4px;
    background: #c82333;
    border-radius: 0 3px 3px 0;
}

.submenu-title {
    display: block;
    width: 100%;
}

.btn-contact {
    display: inline-block;
    color: #1e3a5f;
    background: transparent;
    font-size: 11px;
    font-weight: 700;
    text-decoration: none;
    text-transform: uppercase;
    border: 1px solid #1e3a5f;
    border-radius: 6px;
    padding: 8px 22px;
    transition:
        background-color 0.3s ease,
        color 0.3s ease,
        border-color 0.3s ease;
}

.btn-contact:hover {
    color: #ffffff;
    background: #1e3a5f;
}

.menu-toggle {
    display: none;
    width: 44px;
    height: 44px;
    padding: 9px;
    flex-shrink: 0;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    border: none;
    border-radius: 6px;
    background: #1e3a5f;
    cursor: pointer;
    z-index: 10003;
}

.menu-toggle span {
    display: block;
    width: 24px;
    height: 3px;
    background: #ffffff;
    border-radius: 3px;
    transition: all 0.3s ease;
}

.mobile-pro-item {
    display: none;
}

.mobile-pro-link {
    display: none;
}

.products-link{
    margin-top: 5px;
}

@media (min-width: 1600px) {
    .header-container {
        width: calc(100% - 80px);
        margin-left: 40px;
        margin-right: 40px;
    }

     .products-link {
        margin-top: 6px;
    }
}

@media (max-width: 1600px) {

     .products-link {
        margin-top: 4px;
    }
}


@media (max-width: 1260px) {

     .products-link {
        margin-top: 8px;
    }
}



@media (max-width: 1100px) {
    .header-container {
        width: 100%;
        max-width: 1680px;
        margin: 0 auto;
        padding: 0 5px;
        display: flex;
        align-items: center;
        justify-content: space-between;
    }
    .products-link {
        margin-top: 8px;
    }
    .nav-list {
        gap: 5px;
    }

    .nav-link {
        font-size: 12px;
    }

    .btn-contact {
        font-size: 10px;
        padding: 7px 5px;
    }

    .submenu {
        width: 220px;
    }
}

@media (max-width: 992px) {
    body.menu-open {
        overflow: hidden;
    }

    .top-bar {
        position: fixed;
        z-index: 10002;
        top: 0;
        padding: 10px 0;
    }

    .top-bar .header-container {
        width: 100%;
        padding: 0 15px;
    }

    .logo-container {
        flex: 1;
        min-width: 0;
        max-width: calc(100% - 55px);
    }

    .logo-img {
        height: 42px;
        width: 130px;
        margin-right: 8px;
    }

    .brand-name {
        font-size: 19px;
        letter-spacing: 0.8px;
    }

    .top-bar-right {
        display: none;
    }

    .menu-toggle {
        display: flex;
        position: relative;
        margin-left: 10px;
    }

    .menu-toggle.active span:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

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

    .menu-toggle.active span:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .main-nav {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        max-width: 100vw;
        height: 100vh;
        height: 100dvh;
        padding: 75px 20px 30px;
        background: #ffffff;
        overflow-x: hidden;
        overflow-y: auto;
        z-index: 10000;
        transform: translateX(-100%);
        visibility: hidden;
        transition:
            transform 0.3s ease,
            visibility 0.3s ease;
    }

    .main-nav.open {
        transform: translateX(0);
        visibility: visible;
    }

    .main-nav .header-container {
        display: block;
        width: 100%;
        max-width: none;
        margin: 0;
        padding: 0;
    }

    .nav-list {
        display: flex;
        width: 100%;
        flex-direction: column;
        align-items: stretch;
        justify-content: flex-start;
        gap: 0;
        margin: 0;
        padding: 0;
        list-style: none;
    }

    .nav-item {
        display: block;
        width: 100%;
        position: relative;
        border-bottom: 1px solid #eeeeee;
    }

    .nav-link {
        display: flex;
        align-items: center;
        width: 100%;
        min-height: 52px;
        padding: 15px 10px;
        color: #1e3a5f;
        font-size: 12px;
        line-height: 1.4;
        border: none;
        text-decoration: none;
        transition:
            color 0.2s ease,
            background-color 0.2s ease,
            padding-left 0.2s ease;
    }

    .nav-link:hover {
        color: #1e3a5f;
        background: #f7f7f7;
        border: none;
        padding-left: 10px;
    }

    .nav-link.active {
        color: #c82333;
        background: #f7f7f7;
        border: none;
        padding-left: 18px;
    }

    .products-mobile-header {
        display: flex;
        align-items: stretch;
        width: 100%;
        border-bottom: 1px solid #eeeeee;
    }

    .products-mobile-header .products-link {
        flex: 1;
        min-width: 0;
        display: flex;
        align-items: center;
        margin: 0;
        border: none;
    }

    .products-mobile-header .products-link:hover {
        color: #1e3a5f;
        background: #f7f7f7;
        padding-left: 10px;
    }

    .products-mobile-header .products-link.active {
        color: #c82333;
        background: #f7f7f7;
        padding-left: 18px;
    }

    .submenu-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 55px;
        min-width: 55px;
        height: 52px;
        padding: 0;
        margin: 0;
        border: none;
        background: #ffffff;
        color: #1e3a5f;
        cursor: pointer;
        z-index: 20;
        -webkit-tap-highlight-color: transparent;
        transition:
            color 0.2s ease,
            background-color 0.2s ease;
    }

    .submenu-toggle:hover {
        color: #1e3a5f;
        background: #ffffff;
    }

    .products-item.active .submenu-toggle {
        color: #c82333;
    }

    .products-item.submenu-open .submenu-toggle {
        background: #f7f7f7;
    }

    .submenu-toggle svg {
        width: 11px;
        height: 11px;
        fill: currentColor;
        transition: transform 0.25s ease;
    }

    .products-item.submenu-open .submenu-toggle svg {
        transform: rotate(180deg);
    }

    .products-item.submenu-open .products-link {
        color: #c82333;
        background: #f7f7f7;
    }

    .products-item.submenu-open .submenu-toggle {
        color: #c82333;
        background: #f7f7f7;
    }

    .main-nav .submenu {
        position: static !important;
        top: auto !important;
        left: auto !important;
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
        transform: none !important;
        opacity: 1 !important;
        visibility: visible !important;
        pointer-events: auto !important;
        display: none;
        background: #f7f8fa;
        border: none;
        border-radius: 0;
        z-index: auto;
    }

    .products-item.submenu-open>.submenu {
        display: block !important;
    }

    .main-nav .submenu::before,
    .main-nav .submenu::after {
        display: none !important;
        content: none !important;
    }

    .main-nav .submenu li {
        display: block;
        width: 100%;
        margin: 0;
        padding: 0;
        border-bottom: 1px solid #e5e5e5;
        list-style: none;
    }

    .main-nav .submenu li:last-child {
        border-bottom: none;
    }

    .main-nav .submenu li a {
        position: relative;
        display: flex;
        align-items: center;
        width: 100%;
        min-height: 50px;
        padding: 14px 20px 14px 35px;
        color: #1e3a5f;
        background: #f7f8fa;
        font-size: 13px;
        font-weight: 600;
        text-decoration: none;
        text-transform: uppercase;
        border: none;
        transition:
            color 0.2s ease,
            background-color 0.2s ease,
            padding-left 0.2s ease;
    }

    .main-nav .submenu li a:hover {
        color: #1e3a5f;
        background: #eeeeee;
        padding-left: 35px;
    }

    .main-nav .submenu li a.active {
        color: #1e3a5f;
        background: #eeeeee;
        padding-left: 35px;
        border: none;
    }

    .main-nav .submenu li a.active::before {
        content: "";
        position: absolute;
        left: 0;
        top: 7px;
        bottom: 7px;
        width: 4px;
        background: #c82333;
        border-radius: 0 3px 3px 0;
    }

    .main-nav .submenu li a.active:hover {
        color: #1e3a5f;
        background: #eeeeee;
        padding-left: 35px;
    }

    .submenu-title {
        display: block;
        width: 100%;
    }

    .contact-item {
        border-bottom: none;
        padding-top: 5px;
    }

    .btn-contact {
        display: block;
        width: 100%;
        margin-top: 20px;
        padding: 14px 20px;
        text-align: center;
        font-size: 12px;
        border: 1px solid #1e3a5f;
        border-radius: 6px;
    }

    .mobile-pro-item {
        display: block;
        width: 100%;
        border-bottom: none;
        margin-top: 10px;
    }

    .mobile-pro-link {
        display: block;
        width: 100%;
        padding: 15px 20px;
        margin: 0;
        color: #ffffff !important;
        background-color: #1e3a5f;
        text-align: center !important;
        font-size: 14px !important;
        font-weight: 600;
        text-decoration: none;
        border: 1px solid #1e3a5f;
        border-radius: 5px;
        transition:
            background-color 0.2s ease,
            color 0.2s ease;
    }

    .mobile-pro-link:hover {
        color: #1e3a5f !important;
        background-color: #ffffff;
    }

    .main-nav::-webkit-scrollbar {
        width: 5px;
    }

    .main-nav::-webkit-scrollbar-track {
        background: #f5f5f5;
    }

    .main-nav::-webkit-scrollbar-thumb {
        background: #1e3a5f;
        border-radius: 10px;
    }
}

@media (max-width: 750px) {
    .top-bar .header-container {
        padding: 0 12px;
    }

    .logo-img {
        height: 38px;
        margin-right: 7px;
    }

    .brand-name {
        font-size: 17px;
    }

    .menu-toggle {
        width: 42px;
        height: 42px;
        margin-left: 8px;
    }

    .menu-toggle span {
        width: 22px;
        height: 3px;
    }

    .main-nav {
        padding: 70px 15px 25px;
    }



    .nav-link.active {
        padding-left: 16px;
    }

    .products-mobile-header .products-link.active {
        padding-left: 16px;
    }

    .submenu-toggle {
        width: 50px;
        min-width: 50px;
        height: 50px;
    }

    .main-nav .submenu li a {
        min-height: 48px;
        padding: 13px 15px 13px 30px;
        font-size: 12px;
    }
}

@media (max-width: 360px) {
    .logo-img {
        height: 35px;
    }

    .brand-name {
        font-size: 15px;
    }

    .menu-toggle {
        width: 40px;
        height: 40px;
    }

    .nav-link {
        font-size: 10px;
        padding: 14px 8px;
    }

    .submenu-toggle {
        width: 45px;
        min-width: 45px;
        height: 48px;
    }

    .main-nav .submenu li a {
        min-height: 46px;
        padding: 12px 15px 12px 25px;
        font-size: 11px;
    }
}