
/*************************************
* MENU
*************************************/
header.menu {
    padding: 0 2rem;
    z-index: 10;
    height: 6rem;
    margin-bottom: 5rem;
    top: 0;
    background-color: var(--bg-color-dark);
    position: sticky;
}
header.menu nav {
    display: flex;
    color: var(--text-color-white);
    height: 100%;
}
.menu .img-home-link {
    width: 12rem;
    display: block;
    height: 100%;
}
.menu .img-home-link > img {
    width: 100%;
    height: 100%;
}
.menu .menu-left {
    display: flex;
    align-items: center;
    height: 100%;
}
.menu .menu-right {
    margin-left: auto;
    display: flex;
    align-items: center;
    transition: all 0.3s;
}
.menu .menu-right > a {
    text-decoration: none;
    color: inherit;
    padding: 10px 20px;
    justify-content: center;
    font-weight: 400;
    font-size: 14px;
    margin: 4px 0;
    text-align: center;
    letter-spacing: 1px;
}
.menu .menu-right > a::after {
    display: block;
    content: '';
    border-bottom: solid 2px var(--bg-color-white);
    transform: scaleX(0);
    transition: transform 250ms ease-in-out;
    margin-top: 2px;
}
.menu .menu-right > a:hover::after {
    transform: scaleX(1);
}
.menu.show .navigation-content {
    visibility: visible;
    opacity: 1;
}
.menu #mobileMenuButton {
    display: none;
    background: none;
    border: none;
    color: inherit;
    font-size: 36px;
    cursor: pointer;
    outline: none;
    width: 50px;
    height: 50px;
    align-items: center;
    justify-content: center;
}
.menu #mobileMenuButton > .fa-times,
.menu.show #mobileMenuButton > .fa-bars {
    display: none;
}
.menu.show #mobileMenuButton > .fa-times {
    display: block;
}

@media all and (max-width: 1250px) {
    header.menu nav {
        flex-direction: column;
    }
    .menu .menu-left {
        justify-content: space-between;
    }
    .menu .menu-right {
        visibility: hidden;
        opacity: 0;
        margin-left: unset;
        flex-direction: column;
        justify-content: center;
        background-color: #000000db;
        position: fixed;
        top: 0;
        right: 0;
        bottom: 0;
        left: 0;
        z-index: 10;
    }
    .menu .menu-right a {
        font-size: 18px;
        letter-spacing: 2px;
    }
    .menu .img-home-link,
    .menu #mobileMenuButton {
        z-index: 11;
    }
    .menu #mobileMenuButton {
        display: flex;
    }
}

@media all and (max-width: 550px) {
    .menu .img-home-link {
        width: 8rem;
    }
    .menu .img-home-link > img {
        object-fit: contain;
    }
}

/***************** Submenu *****************/
.subnav{
    text-decoration: none;
    color: inherit;
    padding: 10px 20px;
    justify-content: center;
    font-weight: 400;
    font-size: 14px;
    margin: 4px 0;
    text-align: center;
    letter-spacing: 1px;
    position: relative;
}
.subnav:hover {
    cursor: pointer;
}
.subnav > a {
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
    color: inherit;
}
.subnav > a > img{
    width: 1em;
}
.subnav-content{
    display: none;
    position: absolute;
}
.subnav:hover .subnav-content{
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 15px;
    align-items: start;
    background-color: var(--bg-color-dark);
    padding: 15px;
    border-radius: 0 0 15px 15px;
    border-left: 1px solid white;
}
.subnav-content > a {
    text-decoration: none;
    width: 150px;
    text-align: left;
    color: inherit;
}
@media all and (max-width: 1250px) {
    .subnav-activites{
        z-index: 100;
        margin-left: -40px;
    }
    .subnav-history > a > img{
        display: none;
    }
    .subnav-history.subnav:hover .subnav-content{
        display: none !important;
    }

}
/************ Subline link ************/
.subnav::after {
    display: block;
    content: '';
    border-bottom: solid 2px var(--bg-color-white);
    transform: scaleX(0);
    transition: transform 250ms ease-in-out;
    margin-top: 2px;
}
.subnav:hover::after {
    transform: scaleX(1);
}
.subnav-content > a::after {
    display: block;
    content: '';
    border-bottom: solid 2px var(--bg-color-white);
    transform: scaleX(0);
    transition: transform 250ms ease-in-out;
    margin-top: 2px;
}
.subnav-content > a:hover::after {
    transform: scaleX(1);
}