.site-nav {
    position: absolute;
    width: 100%;
    top: 0;
    left: 0;
}

.site-nav-inner {
    margin: 0 auto;
    padding: 12px;
    gap: 10px;
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: center;
}

.site-brand {
    color: var(--color-text);
    text-decoration: none;
    font-weight: bold;
    white-space: nowrap;
}

.site-nav-inner a {
    font-size: clamp(0.9rem, 0.2rem + 2vw, 1.4rem);
}

.menu-toggle {
    display: none;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 10px;
    transition: transform 0.3s ease-in-out;
}

.menu-toggle.is-hidden {
    transform: translateY(-200%);
}

.hamburger {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--color-text);
    position: relative;
}

.hamburger::before,
.hamburger::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 3px;
    background-color: var(--color-text);
    left: 0;
}

.hamburger::before {
    top: -8px;
}

.hamburger::after {
    bottom: -8px;
}

@media (max-width: 600px) {
    .menu-toggle {
        display: block; /* Affiché sur les petits écrans */
        position: fixed;
        top: calc(15px + env(safe-area-inset-top, 0px));
        right: calc(15px + env(safe-area-inset-right, 0px));
        z-index: 1001;
    }

    .site-nav-inner {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        min-height: 100vh;
        min-height: 100dvh;
        background-color: var(--color-bg);
        flex-direction: column;
        justify-content: flex-start;
        padding: 0px;
        padding-top: calc(40px + env(safe-area-inset-top, 0px));
        padding-bottom: 20px;
        transition: right 0.3s ease-in-out;
        z-index: 1000;
    }

    .site-nav-inner.active {
        right: 0;
    }

    .site-nav-inner .btn {
        max-width: 300px;
        font-size: 1.2rem;
        white-space: nowrap;
    }

    .site-nav-inner a {
        font-size: 1.2rem;
        padding: 10px;
        width: 100%;
    }
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}
