/* Code Principal*/

body {
    font-family: 'Exo', sans-serif;
    background: grey;
    background: linear-gradient(to left, #808080, #BFBFBF);
    min-height: 100vh;
}

* {
    margin: 0;
    padding: 0;
    list-style-type: none;
    box-sizing: border-box;
}

.context {
    width: 100%;
    position: absolute;
    top: 50vh;
}

.context h1 {
    text-align: center;
    color: #fff;
    font-size: 50px;
}


/* image*/

.imgnav {
    float: left;
}

.imgcenter {
    margin-left: auto;
    margin-right: auto;
    margin-top: 50px;
    margin-bottom: 50px;
    display: block;
}

.imgleft {
    float: left;
    margin-left: 30px;
}


/* Parametre d'ecriture*/

h1 {
    text-align: center;
    font-family: 'Arial';
    font-size: 50px;
    padding: 30px;
}

h2 {
    text-align: left;
    padding-left: 45px;
    padding-bottom: 10px;
}

p {
    font-size: 25px;
    color: midnightblue;
    margin-top: 15px;
    margin-bottom: 15px;
    margin-right: 50px;
    margin-left: 50px;
}


/* Animation de fond*/


.circles {
    position: relative;
    top: 0;
    left: 0;
    overflow: hidden;
    min-height: 100vh;
}

.circles li#a {
    position: absolute;
    display: block;
    list-style: none;
    width: 20px;
    height: 20px;
    background: rgba(0, 0, 0, 0.3);
    animation: animate 25s linear infinite;
    bottom: -150px;
}

.circles li#a:nth-child(1) {
    left: 25%;
    width: 80px;
    height: 80px;
    animation-delay: 0s;
}

.circles li#a:nth-child(2) {
    left: 10%;
    width: 20px;
    height: 20px;
    animation-delay: 1s;
    animation-duration: 12s;
}

.circles li#a:nth-child(3) {
    left: 70%;
    width: 20px;
    height: 20px;
    animation-delay: 2s;
}

.circles li#a:nth-child(4) {
    left: 40%;
    width: 60px;
    height: 60px;
    animation-delay: 0s;
    animation-duration: 18s;
}

.circles li#a:nth-child(5) {
    left: 65%;
    width: 20px;
    height: 20px;
    animation-delay: 1s;
}

.circles li#a:nth-child(6) {
    left: 75%;
    width: 110px;
    height: 110px;
    animation-delay: 8s;
}

.circles li#a:nth-child(7) {
    left: 35%;
    width: 150px;
    height: 150px;
    animation-delay: 10s;
}

.circles li#a:nth-child(8) {
    left: 50%;
    width: 50px;
    height: 50px;
    animation-delay: 15s;
    animation-duration: 45s;
}

.circles li#a:nth-child(9) {
    left: 20%;
    width: 50px;
    height: 50px;
    animation-delay: 2s;
    animation-duration: 35s;
}

.circles li#a:nth-child(10) {
    left: 85%;
    width: 150px;
    height: 150px;
    animation-delay: 0s;
    animation-duration: 11s;
}

@keyframes animate {
    0% {
        transform: translateY(0) rotate(0deg);
        opacity: 1;
        border-radius: 0;
    }

    100% {
        transform: translateY(-2000px) rotate(720deg);
        opacity: 0;
        border-radius: 50%;
    }
}


/* menu de navigation*/

li {
    font-size: 25px;
    color: aliceblue;
    text-align: center;
}

nav {
    text-align: center;
}

.menu {
    display: inline-block;
}

.menu > li {
    float: left;
    color: #9B9B9B;
    width: 200px;
    height: 50px;
    line-height: 50px;
    background: rgba(0, 0, 0, 0.7);
    cursor: pointer;
    font-size: 20px;
}

.sub-menu {
    transform: scale(0);
    transform-origin: top center;
    transition: all 400ms ease-in-out;
}

.sub-menu li {
    font-size: 14px;
    background: rgba(0, 0, 0, 0.8);
    padding: 8px 0;
    color: white;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    transform: scale(0);
    transform-origin: top center;
    transition: all 400ms ease-in-out;
}

.sub-menu li:last-child {
    border-bottom: 0;
}

.sub-menu li:hover {
    background: #4C5FD1;
}

.menu > li:hover .sub-menu li {
    transform: scale(1);
}

.menu > li:hover .sub-menu {
    transform: scale(1);
}

a {
    outline: none;
    text-decoration: none;
    padding: 2px 1px 0;
}

a:link {
    color: white;
}

a:visited {
    color: white;
}
