* {
    margin: 0;
    padding: 0;
    text-decoration: none;
    list-style: none;
    font-family: 'Roboto', sans-serif;
}

/*Police d'écriture*/
@font-face {
    font-family: "Roboto";
    src: url("../fonts/Roboto.ttf") format("truetype");
    font-weight: normal;
    font-style: normal;
}

html {
    height: 100%;
}

body {
    height: 100%;
    overflow-y: scroll;
    background-color: #000000;
}

/*Style de la nav bar*/
.navbar {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2em 11em 2em;
    background-color: #141519;
    height: 5em;
    margin-bottom: 0;
    box-sizing: border-box;
}

/*Style du titre de la navbar*/
.navbar .titre_navbar {
    position: absolute;
    left: 5em;
    align-items: center;
    font-size: 2em;
    color: #edf0f1;
}

/*Style des lettres CST dans le titre*/
.navbar .red {
    font-weight: bold;
    color: #e40613;
}

/*Style du titre de la navbar sur autre que mobile*/
.navbar .titre_navbar_mobile {
    display: none;
    position: absolute;
    left: 11em;
    align-items: center;
    font-size: 2em;
    color: #edf0f1;
}


/*Style de la navbar et animations sur les onglets*/
.nav__links {
    list-style: none;
    display: flex;
}

.nav__links li {
    display: inline-block;
    padding: 0px 3em;
    border: none;
    margin: 20px;
    /* enlève le contour focus */
    outline: none;
    /* enlève le flash bleu qunad on clique dessus*/
    -webkit-tap-highlight-color: transparent;
}

li:focus {
    /* évite que le navigateur redessine le focus */
    outline: none;

}

.nav__links li a {
    color: #fff;
    position: relative;
}

.nav__links li a:after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -5px;
    background-color: #e40613;
    height: 4px;
    width: 0%;
    border-radius: 4px;
    transition: 0.5s;
}

.nav__links li a:hover:after {
    width: 100%;
}

.button_navbar {
    color: #fff;
    border: none;
    background: none;
    font-size: x-large;
    cursor: pointer;
}

/*Style de l'onglet actif*/
.nav__links li.active a:after {
    width: 100%;

}

/*Non affichage du bouton du menu sur autre que mobile*/
.bloc_bouton_menu_mobile {
    display: none;
}







/*--------------------------Style de la page en dessous de 1500px de large--------------------------*/

@media screen and (max-width:1500px) {
    body {
        font-family: 'Roboto', sans-serif;
    }

    .navbar {
        padding: 2em 1em 2em;
        height: 5em;
        z-index: 9999;
        justify-content: flex-end;
    }

    .navbar .titre_navbar {
        display: none;
        position: absolute;
        left: 5em;
        align-items: center;
    }

    .navbar .titre_navbar_mobile {
        display: inline;
        position: relative;
        left: 5em;
        align-items: center;
        font-size: 2em;
        z-index: 9999;

    }

    .nav__links {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        display: flex;
        justify-content: center;
        align-items: center;
        flex-direction: column;

        background-color: rgba(255, 255, 255, 0.214);
        backdrop-filter: blur(3px);

        transform: translateX(-100%);
        transition: all 0.5s ease;
    }

    .nav__links.menu_mobile {
        /*Pour changer l'endroit ou arrive le menu de navbar sur téléphone*/
        transform: translateX(0);
        flex-direction: column;
    }

    .nav__links li {
        margin: 4em;
    }

    .navbar .bloc_bouton_menu_mobile {
        display: flex;
    }

    .navbar .nav__links ul li {
        margin: 25px 0;
        font-size: 1.2em;
    }

    .navbar .nav__links ul li.active a {
        color: #e40613;
        font-weight: 600;
    }



    /*Bouton hamburger du menu mobile*/
    .bloc_bouton_menu_mobile {
        display: block;
        float: left;
        margin-right: 2em;
        position: relative;

    }

    #bouton_mobile .line {
        width: 40px;
        height: 5px;
        background-color: #e40613;
        display: block;
        margin: 8px auto;
        transition: all 0.3s ease-in-out;
    }

    #bouton_mobile:hover {
        cursor: pointer;
    }

    #bouton_mobile {
        transition: all 0.3s ease-in-out;
        /* enlève le contour focus */
        outline: none;
        /* enlève le flash bleu sur mobile */
        -webkit-tap-highlight-color: transparent;
    }

    #bouton_mobile:focus {
        /* évite que le navigateur redessine le focus */
        outline: none;
    }

    #bouton_mobile.is-active .line:nth-child(1) {
        transform: rotate(-45deg);
        top: 10px;
    }

    #bouton_mobile.is-active .line:nth-child(2) {
        opacity: 0;
    }

    #bouton_mobile.is-active .line:nth-child(3) {
        transform: rotate(45deg);
        bottom: 10px;
    }
}




/*--------------------------Style de la page en dessous de 600px de large--------------------------*/
@media screen and (max-width:600px) {
    .navbar .titre_navbar_mobile {
        display: inline;
        position: absolute;
        left: 1.5em;
        align-items: center;
        font-size: 2em;
    }
}