.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: var(--color-white);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    width: 100%;
}

.navbar-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo a {
    height: 20px;
    display: flex;
    align-items: center;
}

.logo img {
    height: 100%;
    width: auto;
}

.burger-menu {
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 40px;
    height: 24px;
    position: relative;
    overflow: hidden;
}

.burger-menu span {
    display: block;
    width: 40px;
    height: 1.5px;
    background-color: var(--color-black) !important;
    transition: all 0.3s ease-in-out;
    position: absolute;
    left: 0;
    border-radius: 1px;
    transform-origin: center;
}

.burger-menu span:nth-child(1) {
    top: 4px;
}

.burger-menu span:nth-child(2) {
    top: 12px;
}

.burger-menu span:nth-child(3) {
    top: 20px;
}

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

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

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

.mobile-menu {
    position: fixed;
    top: 64px;
    left: 0;
    width: 100%;
    height: calc(100vh - 64px);
    background-color: var(--color-white);
    transform: translateX(100%);
    transition: transform 0.3s ease-in-out;
    visibility: hidden;
}

.mobile-menu.active {
    transform: translateX(0);
    visibility: visible;
}

.mobile-menu-content {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.menu-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px;
    text-decoration: none;
    border-top: 1px solid var(--color-light-gray);
}

.section-info {
    display: flex;
    align-items: center;
    gap: 4px;
    flex: 1;
}

.section-number {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 48px;
}

.section-number img {
    width: 16px;
    height: 16px;
}

.section-number span {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 18px;
    line-height: 1.4;
    letter-spacing: -0.01em;
    color: var(--color-black);
    min-width: 24px;
}

.menu-link .h5 {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 20px;
    line-height: 1.4;
    letter-spacing: -0.01em;
    color: var(--color-black);
}

.arrow-bottom-right {
    width: 32px;
    height: 32px;
    flex-shrink: 0;
    margin-left: 12px;
}

.header-links {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 24px;
    justify-content: flex-end;
    border: none;
}

.contact-button {
    background: var(--color-blue);
    color: var(--color-white);
    font-family: var(--font-body);
    font-size: 16px;
    font-weight: 500;
    padding: 10px 24px;
    border: none;
    border-radius: var(--radius-full);
    box-shadow: none;
    transition: background 0.2s, color 0.2s, transform 0.2s;
    width: auto;
    line-height: 1.5;
    text-decoration: none;
    cursor: pointer;
}

.contact-button:hover,
.contact-button:focus {
    background: var(--color-blue);
    color: var(--color-white);
    opacity: 0.9;
    outline: none;
    transform: scale(1.02);
}

.language-switcher {
    display: flex;
    align-items: center;
    gap: 0;
}

.lang-btn {
    background: none;
    border: none;
    color: var(--color-gray);
    font-family: var(--font-body);
    font-size: 15px;
    font-weight: 500;
    padding: 4px 12px;
    border-radius: 8px;
    cursor: pointer;
    transition: none;
    box-shadow: none;
    outline: none;
}

.lang-btn.active {
    color: var(--color-blue);
}

.lang-btn:not(.active):hover,
.lang-btn:not(.active):focus {
    background: none;
    color: var(--color-gray);
}

.lang-bar {
    display: inline-block;
    width: 1px;
    height: 20px;
    background: var(--color-light-gray);
    margin: 0 0;
    align-self: center;
    border-radius: 1px;
} 

/* Styles pour mobile et tablette */
@media (max-width: 1023px) {
    .mobile-menu-content {
        display: block;
        height: 100%;
        position: relative;
    }

    .nav-links {
        display: block;
    }

    .nav-links .menu-link:nth-child(3) {
        border-bottom: 1px solid var(--color-light-gray);
    }

    .header-links {
        flex-direction: column;
        gap: 0;
        position: absolute;
        bottom: 0;
        width: 100%;
        gap: 20px;
    }

    .contact-button {
        padding: 20px 24px;
        background: var(--color-blue);
        color: var(--color-white);
        border-radius: 0;
        width: 100%;
        font-size: 16px;
        margin-top: 0;
        text-align: center;
    }

    .contact-button:hover {
        opacity: 0.9;
        background: var(--color-blue);
        color: var(--color-white);
    }
}

/* Styles pour desktop */
@media (min-width: 1024px) {
    .burger-menu {
        display: none !important;
    }

    .navbar {
        display: flex;
        justify-content: center;
        padding: 0 64px;
        height: 80px;
    }

    .navbar-container {
        max-width: 1312px;
        height: 100%;
    }

    .logo a {
        height: 24px;
    }

    .mobile-menu {
        position: static;
        transform: none;
        visibility: visible;
        height: auto;
        background: none;
        width: auto;
    }

    .mobile-menu-content {
        display: flex !important;
        flex-direction: row;
        align-items: center;
        gap: 32px;
    }

    .nav-links {
        display: flex;
        align-items: center;
        gap: 32px;
    }

    .menu-link {
        position: relative;
        padding: 0;
        border: none;
        display: flex;
        align-items: center;
        transition: opacity 0.3s ease;
    }

    .section-number, .arrow-bottom-right {
        display: none;
    }

    .menu-link .h5 {
        font-family: var(--font-body);
        font-weight: 400;
        font-size: 16px;
        line-height: 1.5;
    }

    .menu-link .h5:hover {
        color: var(--color-blue);
        opacity: 1;
    }

    .header-links {
        gap: 32px;
    }

    .language-switcher {
        gap: 8px;
        margin-bottom: 0;
        margin-right: 0;
    }

    .contact-button {
        width: auto;
    }

    .lang-btn {
        font-size: 14px;
        padding: 0px;
        color: var(--color-gray);
        font-weight: 500;
        transition: background 0.2s, color 0.2s;
        box-shadow: none;
        border: none;
    }

    .lang-btn.active,
    .lang-btn:focus,
    .lang-btn:hover {
        color: var(--color-blue);
        outline: none;
    }

    .lang-bar {
        margin: 0 4px;
        height: 24px;
        background: var(--color-gray);
    }


}
