/* ==========================================================
   AERID — NAVIGATION
   Responsabilité : header, onglets, menu mobile.
   ========================================================== */

header .hb {
    min-height: 64px;

    display: flex;
    align-items: center;

    gap: 24px;
}

header .logo {
    flex: 0 0 auto;

    display: inline-flex;
    align-items: center;

    gap: 9px;

    text-decoration: none;
}

header .logo img {
    width: auto;
    height: 40px;

    max-width: 150px;

    object-fit: contain;

    border-radius: 0;
}

header nav[aria-label="Principal"] {
    display: flex;
    align-items: stretch;
    justify-content: center;

    gap: clamp(20px, 2vw, 32px);

    margin-inline: auto;
}

header nav[aria-label="Principal"] a,
.header-tab {
    position: relative;

    min-height: 64px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    gap: 6px;

    padding: 0;

    border: 0;
    border-bottom:
        2px solid transparent;

    border-radius: 0;

    background:
        transparent !important;

    color:
        var(--text);

    font: inherit;
    font-weight: 400 !important;

    text-decoration: none;

    white-space: nowrap;

    cursor: pointer;

    box-shadow:
        none !important;

    transform:
        none !important;
}

header nav[aria-label="Principal"] a:hover,
.header-tab:hover {
    color:
        var(--brand);

    background:
        transparent !important;
}

header nav[aria-label="Principal"] a.is-active,
header nav[aria-label="Principal"] a[aria-current="page"] {
    color:
        var(--brand);

    border-bottom-color:
        var(--brand);

    font-weight:
        400 !important;
}

.theme-tab {
    flex: 0 0 auto;

    min-width: auto;
}

header .ic {
    flex: 0 0 auto;

    width: 42px;
    height: 42px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    border:
        1px solid
        var(--border);

    border-radius: 50%;

    color:
        var(--text);

    text-decoration: none;
}

header .ic:hover {
    color:
        var(--brand);

    border-color:
        var(--brand);
}

/* Pas d'animations qui déplacent la navigation */

header nav a,
.header-tab,
header .ic {
    transition:
        color .12s ease,
        border-color .12s ease,
        background-color .12s ease;
}

/* ==========================================================
   MOBILE
   ========================================================== */

@media (max-width: 1000px) {
    header .hb {
        gap: 14px;

        flex-wrap: wrap;
    }

    .burger {
        margin-left: auto;
    }

    header nav[aria-label="Principal"] {
        display: none;

        width: 100%;

        order: 10;

        flex-direction: column;

        gap: 0;

        margin: 0;

        padding:
            8px 0 14px;

        border-top:
            1px solid
            var(--border);
    }

    #mn:checked ~ nav[aria-label="Principal"] {
        display: flex;
    }

    header nav[aria-label="Principal"] a {
        width: 100%;
        min-height: 46px;

        justify-content: center;

        padding: 8px 12px;

        border: 0;

        text-align: center;
    }

    header nav[aria-label="Principal"] a.is-active,
    header nav[aria-label="Principal"] a[aria-current="page"] {
        color:
            var(--brand);

        background:
            var(--brand-soft) !important;
    }

    .theme-tab {
        min-height: 42px;
    }
}

@media (max-width: 520px) {
    header .logo img {
        height: 36px;

        max-width: 125px;
    }

    .theme-tab span {
        display: none;
    }

    .theme-tab {
        width: 38px;
    }
}
