@font-face {
    font-family: FedraSans;
    src: url("FedraSansPro-Normal.ttf");
}

:root{
    --grad: linear-gradient(217deg, #e10000, #3c5ca2, #507e37);
    --grad2: linear-gradient(180deg, #e10000, #3c5ca2, #507e37);
    --accent: #8c8c8c;
    --en_disp: initial;
    --fr_disp: none;
}

@keyframes backgroundScroll {
    0% {
        background-position: 0 0, 0 0, 0 0;
    }
    100%{
        background-position: 0 0, -700px 0, 0 0;
    }
}


*{
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: FedraSans;

}
html{
    height: 100%;
    display: flex;
    flex-direction: column;
}
body{

    height: 100%;
    display: flex;
    flex-direction: column;

    background-image: var(--grad), url("bgpattern1.png"), linear-gradient(#000000, #2a2a2a);
    background-attachment: fixed, fixed, fixed;
    background-repeat: no-repeat, repeat,no-repeat;
    background-size: 100%, 700px, 100%;
    background-blend-mode: overlay, color-dodge, normal;
    animation: backgroundScroll 6s linear 1;
    animation-fill-mode: forwards;
    animation-iteration-count: infinite;
    color: rgba(255, 255, 255, 0.1);
}

a{
    text-decoration: none;
}
ul{
    list-style: none;
}

header{
    width: 100%;
    top: 0;
    left: 0;
}

.bar{
    display: block;
    width: 20px;
    height: 2px;
    margin: 6px;
    background-color: #ffffff;
    transition: all ease 0.3s;
}

.menu-icons{
    color: white;
    font-size: 4rem;
    position: absolute;
    top: 2rem;
    right: 1rem;
    transform: translateY(-50%);
    z-index: 1500;
}

nav{
    width: 100%;
    height: 4rem;
    border-bottom: 3px solid transparent;
    background-color: black;
    display: flex;
    align-content: center;
    justify-content: center;
    border-image: var(--grad);
    border-image-slice: 1;

}

.navlist{
    display: flex;
}

.navlist > li{
    line-height: 4rem;
    position: relative;
}

.sub-menu li{
    line-height: 2rem;
}

.navlist a{
    display: block;
    color: white;
    padding: 0 1.5rem;
}

.navlist a:hover{
    color: #8c8c8c;
    transition: color 0.3s;
}

.sub-menu{
    width: 10rem;
    display: block;
    position: absolute;
    border-top: 1px solid white;
    background-color: #000000;
    z-index: 100;
    top: 6rem;
    opacity: 0;
    visibility: hidden;
}

.sub-menu .sub-menu{
    border-top: none;
    border-left: 3px solid #ffffff;
    top: 0;
    left: 130%;
}

.navlist li:hover > .sub-menu{
    top: 4rem;
    opacity: 1;

    visibility: visible;
    transition: all ease 0.3s;
}

.sub-menu li:hover > .sub-menu{
    top: 0;
    left: 100%;
    opacity: 1;
    visibility: visible;
    transition: all ease 0.3s;
}

li.mo

* [lang="en"]{
    display: var(--en_disp);
}
* [lang="fr"]{
    display: var(--fr_disp);
}

body > * {
    flex-shrink: 0;
}

.icon-menu{
    display: none;
}

.main{
    color: white;
    padding: 2rem;
    text-align: center;
    line-height: 5rem;
    font-size: 1.2rem;
}


@media screen and (max-width: 900px){
    body{
        animation: none;
    }

    .navlist{
        font-size: 1.3rem;
        margin: auto;
        position: fixed;
        top: 0;
        left: 0;
        flex-direction: column;
        width: 80%;
        height: 100vh;
        background-color: transparent;
        z-index: 1000;
        transition: all ease 0.3s;
        overflow-y: auto;
        overflow-x: auto;
        opacity: 0;
        border-right: 3px solid transparent;
        border-image: var(--grad2);
        background-image: url("bgpattern.png"),linear-gradient(#0a0a0a, rgba(30, 30, 30, 0.8));
        background-blend-mode: overlay, normal;
        border-image-slice: 1;
        align-content: center;
    }

    .navlist > li{
        line-height: 4rem;
    }
    .sub-menu{
        position: initial;
        border: 3px solid transparent;
        border-left-color: white;
        margin-left: 0.4rem;
        max-height: 0;
        background-color: transparent;
    }
    .navlist li:hover > .sub-menu{
        opacity: 1;
        visibility: visible;
        max-height: initial;

    }

    nav.active .navlist{
        opacity: 1;

    }

    .icon-menu{
        display: block;
    }

    nav.active .bar:nth-child(2){
        opacity: 0;
        transition: all ease 0.3s;
    }

    nav.active .bar:nth-child(1){
        transform: translateY(8px) rotate(45deg);
        transition: all ease 0.3s;
    }
    nav.active .bar:nth-child(3){
        transform: translateY(-8px) rotate(-45deg);
        transition: all ease 0.3s;
    }



}

