nav {
    font-family: 'Circular', sans-serif;
    font-weight: bold;
    display: flex;
    justify-content: space-between;
    margin: 15px;
    position: fixed;
    left: 0;
    right: 0;
    color: white;
    filter: drop-shadow(0px 0px 3px black);
    transition-duration: 1s;
    transition-timing-function: cubic-bezier(0.46, 0.21, 0.32, 1);
    z-index: 3;
}

nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: inline;
    position: relative;
}

nav ul li {
    display: inline;
    margin: 10px;
}

nav ul:nth-child(1) li {
    opacity: 0;
    display: inline;
    /*Utilise ensuite du javascript pour remettre les liens qui possèdent une page en display inline*/
}

nav ul li a {
    cursor: pointer;
    text-decoration: none;
}

#menu-selected {
    width: 0px;
    position: absolute;
    border-bottom: 2px solid white;
    transition-timing-function: cubic-bezier(0.6, 0.33, 0.26, 0.97);
    transition-duration: 0.9s;
}

.nav-open {
    display: none;
    right: 2vw;
    position: fixed;
    top: 3.5vh;
    z-index: 305;
    cursor: pointer;
    transition-duration: 1.2s;
}

.nav-open-line:nth-child(2) {
    transition-duration: .5s;
}
.nav-open-line {
    border-bottom: 3.5px solid white;
    border-radius: 3px;
    width: 6vh;
    margin-bottom: 1.5vh;
    transition-duration: .5s;
    transition-timing-function: cubic-bezier(0.46, 0.21, 0.32, 1);
}

#open-nav {
    display: none;
}

.mobile-navigation {
    display: none;
}

@media only screen and (min-width: 1000px) {
    nav {
        z-index: 3;
    }
}

@media only screen and (max-width: 1000px) {
    nav.with-mobile {
        opacity: 0;
        transition-duration: .5s;
        display: flex;
        width: 100%;
        height: 100%;
        background-color: #000000bf;
        margin: 0;
        justify-content: space-around;
        flex-direction: column;
        box-sizing: border-box;
        padding: 5%;
        z-index: -2;
    }

    nav.with-mobile ul li {
        display: block;
        font-size: 4vh;
        color: white!important;
        position: relative;
        height: 5vh;
    }

    nav.with-mobile ul li a {
        /*position: absolute;
        transition-duration: .5s;
        margin-left: -20px;
        opacity: 0;*/
    }

    #open-nav:checked ~ label div {
        border-color: white!important;
        margin-bottom: 10px;
    }

    #open-nav:checked ~ nav.with-mobile {
        z-index: 300;
        opacity: 1;
    }
    #open-nav:checked ~ nav.with-mobile ul li a {
        margin-left: 0px;
        opacity: 1;
    }
    #open-nav:checked ~ label div:nth-child(1) {
        transform: rotate(-45deg);
        transform-origin: 100% 100%;
        width: 40px;
    }
    #open-nav:checked ~ label div:nth-child(2) {
        opacity: 0;
        width: 0px;
    }
    #open-nav:checked ~ label div:nth-child(3) {
        transform: rotate(45deg);
        transform-origin: 100% 100%;
        width: 40px;
    }

    /* Ouverture */
    /*#open-nav:checked ~ nav ul:nth-child(1) li:nth-child(1) a {transition-delay: 0.00s!important;}
    #open-nav:checked ~ nav ul:nth-child(1) li:nth-child(2) a {transition-delay: 0.05s!important;}
    #open-nav:checked ~ nav ul:nth-child(1) li:nth-child(3) a {transition-delay: 0.10s!important;}
    #open-nav:checked ~ nav ul:nth-child(1) li:nth-child(4) a {transition-delay: 0.15s!important;}
    #open-nav:checked ~ nav ul:nth-child(1) li:nth-child(5) a {transition-delay: 0.20s!important;}
    #open-nav:checked ~ nav ul:nth-child(1) li:nth-child(6) a {transition-delay: 0.25s!important;}
    #open-nav:checked ~ nav ul:nth-child(1) li:nth-child(7) a {transition-delay: 0.30s!important;}
    #open-nav:checked ~ nav ul:nth-child(2) li a {transition-delay: .5s!important;}*/

    /* Fermeture */
    /*#open-nav:not(:checked) ~ nav ul:nth-child(1) li:nth-child(1) a {transition-delay: 0.30s!important;}
    #open-nav:not(:checked) ~ nav ul:nth-child(1) li:nth-child(2) a {transition-delay: 0.25s!important;}
    #open-nav:not(:checked) ~ nav ul:nth-child(1) li:nth-child(3) a {transition-delay: 0.20s!important;}
    #open-nav:not(:checked) ~ nav ul:nth-child(1) li:nth-child(4) a {transition-delay: 0.15s!important;}
    #open-nav:not(:checked) ~ nav ul:nth-child(1) li:nth-child(5) a {transition-delay: 0.10s!important;}
    #open-nav:not(:checked) ~ nav ul:nth-child(1) li:nth-child(6) a {transition-delay: 0.05s!important;}
    #open-nav:not(:checked) ~ nav ul:nth-child(1) li:nth-child(7) a {transition-delay: 0s!important;}
    #open-nav:not(:checked) ~ nav ul:nth-child(2) li a {transition-delay: 0s!important;}
    #open-nav:not(:checked) ~ nav {transition-delay: 0.4s!important;}*/

    #menu-selected {
        display: none;
    }

    nav.with-mobile ~ .nav-open {
        display: block;
    }

    .mobile-navigation {
        display: block;
    }
}

@keyframes open-nav {
    from {z-index: -2;}
    to {z-index: 3;}
}

@keyframes close-nav {
    from {z-index: 3;}
    to {z-index: -2;}
}

@keyframes nav-display-none-delay {
    from {display: flex;}
    to {display: none;}
}
