/* -------------------------- MENU - DÉBUT -------------------------- */


.menuContainer {
    display: flex;
    justify-content: space-between;
    padding: 16px 0px;
}

.menuContainer > .logo {
    aspect-ratio: 99 /44;
    width: auto;
    height: 100%;
    max-height: 44px;
}

.menu {
    width: auto;
}

.menu > li:not(.contactLink) {
    display: none;
}

.menu > li.contactLink > a {
    display: flex;
    gap: 3px;
    font-size: .875rem;
    line-height: 1.0625rem;
    color: var(--white);
    background-color: var(--black);
    border-radius: 50px;
    padding: 8px 16px;
    align-items: center;
    transition: .5s ease;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.menu > li.contactLink > a::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 100%;
    aspect-ratio: 1;
    background-color: var(--primary);
    border-radius: 50%;
    transform: translate(-50%, 50%) scale(0);
    transition: transform .5s ease;
    z-index: -1;
}

.menu > li.contactLink > a::before {
    background-image: url("../img/logosIcons/arrow.svg");
    background-repeat: no-repeat;
    background-size: 14px;
    background-position: center;
    content: "";
    display: inline-flex;
    color: var(--black);
    background-color: var(--white);
    border-radius: 50px;
    aspect-ratio: 1;
    width: 24px;
    height: auto;
    padding: 2px;
    position: relative;
    z-index: 1;
}

@media (width > 991px) {
    .menu > li:not(.contactLink) {
        display: block;
    }

    #header .menu {
        display: flex;
        gap: 16px;
        align-items: center;
        margin-top: 5px;
    }

    #header .menu a:not(.contactLink > a),
    #header .menu a:not(.contactLink > a):visited {
        display: block;
        color: var(--black);
        font-size: 14px;
        line-height: normal;
        font-family: var(--ffMRe);
        padding: 8px;
        transition: all .25s ease;
    }

    #header .menuContainer {
        align-items: center;
    }

    #header .menuContainer > .logo {
        aspect-ratio: 110 / 49;
        max-height: unset;
        max-width: 110px;
        object-fit: contain;
    }

    body > #header {
        max-width: 1800px;
        padding-inline: 30px;
    }
}

@media (width > 1199px) {
    #header .menu {
        gap: 36px;
    }
}

@media (pointer:fine) {
    .menu > li.contactLink > a:hover::after {
        transform: translate(-50%, 50%) scale(2.5);
    }
    
    .menu > li.contactLink > a:hover {
        padding-inline: 19px 13px;
        transition: .5s ease;
    }

    #header .menu a:not(.contactLink > a):hover {
        color: var(--primary);
        text-decoration: underline!important;
        transition: all .5s ease;
    }
}

/* -------------------------- MENU - FIN -------------------------- */