/* -------------------------- NAVIGATION -------------------------- */
.menu ul {
    list-style: none;
}

.menuList {
    display: flex;
    align-items: center;
}

@media (min-width: 1101px) {
    .menu {
        flex: 1;
        min-width: 0;
    }

    .menuList {
        flex-wrap: wrap;
        justify-content: flex-end;
        gap: 4px 10px;
    }
}

@media (max-width: 1100px) {
    .menu {
        display: none;
        position: absolute;
        inset: 124px 44px 56px;
        overflow-y: auto;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }

    .menu::-webkit-scrollbar {
        display: none;
        width: 0;
        height: 0;
    }

    .header.menuOuvert .menu {
        display: block;
    }

    .menuList {
        min-height: 0;
        align-items: stretch;
        flex-direction: column;
        gap: 28px;
    }
}

/* -------------------------- ÉLÉMENTS DU MENU -------------------------- */
.menuParent .flecheDroite,
.menuParentLibelle {
    display: none;
}

.menuItem {
    position: relative;
}

.menuParent, .menuRetour {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0;
    border: 0;
    background: none;
    color: #000;
    cursor: pointer;
    font-family: 'Poppins', sans-serif;
    font-size: 16px;
    font-weight: 600;
    line-height: 21.5px;
    white-space: nowrap;
}

.menuParent img {
    width: auto;
    height: auto;
    object-fit: contain;
}

.menuParent .flecheHaut {
    transform: scaleY(-1);
}

.menuParent[aria-expanded="true"] .flecheHaut {
    transform: none;
}

.menuContact {
    margin-left: 4px;
    padding: 8px 16px;
    border-radius: 36px;
    background: #0e0e0e;
    color: #fff;
    font-family: 'Noir Pro', sans-serif;
    font-size: 13px;
    font-weight: 600;
    line-height: 18px;
    text-transform: uppercase;
    white-space: nowrap;
    transition: background-color .2s ease, box-shadow .2s ease;
}

.menuList > .hasChildren {
    display: flex;
    align-items: center;
    gap: 8px;
}

.menuList > .menuItem > .menuLabel {
    color: #000;
    font-family: 'Poppins', sans-serif;
    font-size: 16px;
    font-weight: 600;
    line-height: 21.5px;
    white-space: nowrap;
}

.menuList > .menuContact > .menuLabel {
    color: #fff;
    font-family: 'Noir Pro', sans-serif;
    font-size: 13px;
}

@media (hover: hover) and (pointer: fine) {
    .menuContact:hover {
        background: var(--color-white);
        box-shadow: inset 0 0 0 1px var(--color-footer);
    }

    .menuList > .menuContact:hover > .menuLabel {
        color: var(--color-footer);
    }
}

@media (min-width: 1101px) {
    .menuList > .menuItem {
        padding: 6px 8px;
    }

    .menuList > .menuContact {
        padding: 8px 16px;
    }

    .menuList > .hasChildren {
        --sous-menu-ecart: 32px;
    }

    .menuList > .hasChildren.actif::after {
        content: '';
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        height: var(--sous-menu-ecart);
    }

    .menuParent {
        min-height: 26px;
    }
}

@media (max-width: 1100px) {
    .menuParent {
        width: 100%;
        min-height: 25px;
        justify-content: space-between;
        font-size: 18px;
    }

    .menuParent .flecheHaut {
        display: none;
    }

    .menuParent .flecheDroite {
        display: block;
        flex-shrink: 0;
    }

    .menuParentLibelle {
        display: block;
        text-align: left;
        white-space: normal;
        overflow-wrap: anywhere;
    }

    .menuContact {
        align-self: flex-start;
        margin: 0;
        margin-top: clamp(24px, 10dvh, 90px);
        padding: 16px 32px;
        min-height: 50px;
        font-size: 16px;
        line-height: 18px;
    }

    .menuList > .hasChildren > .menuLabel {
        display: none;
    }

    .menuList > .menuItem > .menuLabel {
        font-size: 18px;
    }

    .menuList > .menuItem:not(.menuContact) {
        min-height: 25px;
    }

    .menuList > .menuContact > .menuLabel {
        color: #fff;
        font-size: 16px;
    }
}

/* -------------------------- SOUS-MENUS -------------------------- */
.menuRetour, .sousMenuTitre {
    display: none;
}

.sousMenu {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    padding: 26px;
    border-radius: 28px;
    background: rgba(238, 238, 238, .96);
    box-shadow: 4px 4px 11.1px rgba(0, 0, 0, .04);
}

.sousMenu[hidden] {
    display: none;
}

.sousMenu ul {
    display: flex;
    flex-direction: column;
}

.sousMenu li {
    display: flex;
    align-items: center;
    min-height: 33px;
    font-size: 16px;
    font-weight: 600;
    line-height: 21.5px;
}

.sousMenu .menuLabel {
    color: #000;
}

@media (min-width: 1101px) {
    .sousMenu {
        top: calc(100% + var(--sous-menu-ecart));
        z-index: 1;
        width: max-content;
        min-width: 0;
        max-width: calc(100vw - 40px);
        max-height: var(--sous-menu-hauteur, 60dvh);
        margin-left: var(--sous-menu-decalage, 0px);
        overflow-y: auto;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }

    .sousMenu::-webkit-scrollbar {
        display: none;
        width: 0;
        height: 0;
    }

    .sousMenu ul {
        gap: 2px;
    }

    .sousMenu li {
        padding: 6px 8px;
    }

    .sousMenu .menuLabel {
        white-space: normal;
        overflow-wrap: anywhere;
    }
}

@media (max-width: 1100px) {
    .sousMenu {
        position: static;
        transform: none;
        min-width: 0;
        padding: 0;
        border-radius: 0;
        background: none;
        box-shadow: none;
    }

    .menu.sousMenuOuvert .menuItem, .menu.sousMenuOuvert .menuContact {
        display: none;
    }

    .menu.sousMenuOuvert .menuItem.actif {
        display: block;
    }

    .menu.sousMenuOuvert .menuItem.actif .menuParent {
        display: none;
    }

    .menuRetour {
        display: flex;
        gap: 10px;
            margin-bottom: 28px;
        font-size: 18px;
    }

    .menuRetour img {
        width: auto;
        height: auto;
        transform: rotate(180deg);
    }

    .sousMenuTitre {
        display: block;
        margin-bottom: 28px;
        color: #000;
        font-size: 18px;
        font-weight: 600;
        line-height: 21.5px;
    }

    .sousMenuTitre[href] {
        text-decoration: underline;
        text-underline-offset: .2em;
    }

    .sousMenu ul {
        gap: 22px;
    }

    .sousMenu li {
        min-height: 20px;
        font-size: 16px;
        font-weight: 400;
        line-height: 20px;
    }

    .menuList > .hasChildren .sousMenu {
        width: 100%;
    }
}
