:root{
    --fond: linear-gradient(90deg, #ff0000 , #fbff00, #09ff00, #00f2ff, #0d00ff, #dd00ff, #ff0000);
}

@font-face {
  font-family: Milker; /* set name */
  src: url(GreaterTheory.otf); /* url of the font */
}

@keyframes rainbow {
    to{background-position: 200%;}
}

body{
    overflow-x: hidden;
    overflow-y: scroll;
    margin: auto;
    background-color: black;
    color: black;
    width: 100%;
    font-family:cambria;
}

header{
    width: 100%;
}

#special{
    color: red;
    font-size: 20px;
}

#accueil{
    height: 100vh;
}

nav{
    margin: auto;
    width: 50%;
}

.nav{
    background-color: rgb(160, 253, 0);
}

nav ul{
    display: flex;
    flex-direction: row;
    justify-content: space-around;
}

nav ul li{
    font-family: Arial;
    list-style-type: none;
    font-size: 32px;
    font-weight: bold;
    margin: 50px;
    transition: 0.5s;
}

nav ul li:hover{
    scale: 1.5;
}

nav a{
    text-decoration: none;
    color: white;
}

/*====================================== Accueil ===========*/

#pub{
    margin-top: 100px;
    margin-bottom: 300px;
    text-align: center;
    display: flex;
    flex-direction: column;
    font-family: monospace;
}

#pub h1{
    font-size: 100px;
    color: darkblue;
    animation: test 2s;
}

#pub h2{
    font-size: 24px;
    color: white;
}

@keyframes test{
    0%{
        opacity: 0;
        transform: translateX(50px);
    }
    
    100%{
        opacity: 1;
        transform: translateX(0px);
    }
}

.etape{
    margin: auto;
    margin-top: 250px;
    margin-bottom: 250px;
    width: 80%;
    text-align: center;
}

@keyframes etape {
    0%{
        scale: 100;
    }

    100%{
        scale:1;
    }
}

/*============================ Partie des skills =================*/

#skillsPart{
    height: 100vh;
}

#skillsPart h2{
    font-size: 48px;
}

#skills{
    margin: auto;
    width: 80%;
    display: flex;
    flex-direction: row;
    background-color: rgb(124, 143, 155);
    border-radius: 20px;
    color: white;
}

.skillsColumn{
    margin: 50px;
    max-width: 50%;
    display: flex;
    flex-direction: column;
    height: 400px;
}

.logos{
    margin: auto;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
}

.logo{
    height: 65px;
    max-width: 100px;
    margin: 20px;
    filter: grayscale(100%);
    transition: 0.5s;
}

.logo img{
    width: 100%;
    height: 100%;
    object-fit: contain;
    margin: auto;
}

.logo:hover{
    scale: 1.2;
    filter: grayscale(0%);
}

/*================ La timeline ===================*/

#timeline{
    position: relative;
    width: 80%;
    height: 300vh;
    margin: auto;
    padding: 100px;
    display: flex;
    flex-direction: column;
    justify-content: space-around;
}

#timeline ul{
    list-style-type: circle;
    font-size: 32px;
}

#line{
    position: absolute;
    left: 50%;
    height: 100%;
    width: 2px;
    background-color: white;
}

#line2{
    position: absolute;
    left: 50%;
    height: 100%;
    width: 2px;
    background-color: darkred;

    transform-origin: top;

    animation: lined linear both;
    animation-timeline: view();
    animation-range: entry 40% cover 90%;
}

@keyframes lined{
    from{
        transform: scaleY(0.0);
    }

    to{
        transform: scaleY(1.0);
    }
}

.gauche{
    align-self: flex-start; 
    width: 30%;
    margin: 20px;
    padding: 20px;
    border-radius: 5px;
    background-color: rgb(235, 235, 235);
}

.date{
    position:absolute;
    left: 50%;

    font-size: 32px;
    color: white;
    padding: 30px;
    border-radius: 100%;
    background-color: darkblue;
    transform: translate(-50%, -50%);
}

.droite{
    align-self: flex-end;
    width: 30%;
    margin: 20px;
    padding: 20px;
    border-radius: 10px;
    background-color: rgb(235, 235, 235);
}

/*========================= Page Projets =================*/

#projets{
    height: 100vh;
    width:80%;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: auto;
    color: white;
}

#projetsTitle{
    width: 80%;
    font-size: 24px;
    text-align: left;
    margin-bottom: 200px;
}

#projetsBox{
    width: 100%;
    display: flex;
    flex-direction: row;
    justify-content: space-around;
}

.projet{
    position: relative;
    width: 30%;
    min-height: 200px;
    display: flex;
    flex-direction: column;
    flex-wrap:wrap;
    box-shadow: 10px 10px 10px 10px lightgray;
    padding: 15px;
    border-radius: 10px;
    background-color: rgb(243, 243, 243);
    color: black;
    filter: blur(2px);
}

.projet:hover{
    transition: 0.5s;
    scale: 1.05;
}

.projet p{
    margin-left: 20px;
}

.projet ul{
    position: absolute;
    bottom: 0;
    right: 0;
    margin-right: 20px;
    display: flex;
    flex-direction: row;
    justify-content: flex-end;
}

.projet li{
    width: fit-content;
    list-style: none;
    background-color: red;
    border-radius: 4px;
    margin: 3px;
    padding: 2px;
    padding-left: 4px;
    padding-right: 4px;
    color: white
}


/*================================== Page contact =============*/

#contact{
    height: 100vh;
    width: 50%;
    color: white;
    display: flex;
    align-items: center;
    margin: auto;
}

#contactChild{
    margin: auto;
}

.coordonnées{ 
     margin-left: 50px;
     margin-bottom: 50px;
}

.coordonnées ul{
    margin:0;
    padding: 0;
}

.coordonnées li{
    margin: 0;
    padding: 0;
    margin-top: 15px;
    display: flex;
    flex-direction: row;
    align-items: center;
}

.coordonnées img{
    height: 16px;
    margin-right: 20px;
}

form{
    margin-left: 50px;
    display: flex;
    flex-direction: column;
    width: 500px;
}

form .cell{
    margin-bottom: 20px;
    height: 25px;
    width: 100%;
}

form textarea{
    margin-bottom: 20px;
    height: 300px;
    width: 100%;
    resize: none;
}

form div{
    text-align: right;
}

#envoyer{
    height: 25px;
    width: 100px;
    background-image: var(--fond);
    background-size: 200%;
    animation: rainbow 10s linear infinite;
    color: white;
    border: none;
    border-radius: 5px;
}

#envoyer:hover{
    scale: 1.03;
}

#envoyer:active{
    scale: .95;
}

#succes{
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 24px;
}

#succes img{
    width: 200px;
    margin: 40px;
}

/*========================== CV =====================*/

#cv{
    display: flex;
    align-items: center;
    margin: auto;
    font-size: 32px;
    width: fit-content;
    height: 200vh;
}

#cv a{
    color: white;
    text-decoration: none;
    padding: 20px;
    border-radius: 20px;
    background-image: var(--fond);
    background-size: 200%;
    animation: rainbow 10s linear infinite;
    animation-timeline: unset;
}

#cv:hover{
    scale: 1.03;;
}

#cv:active{
    scale: 0.9;
}

footer{
    height: 100vh;
    width: 100%;
    color: white;
    display: flex;
    flex-direction: column;
    font-size: 24px;
}

footer a{
    color: white;
}

footer ul{
    list-style: none;
}

footer li{
    margin-top: 10px;
}

#footerEl{
    margin-top: auto;
    height: 500px;
    display: flex;
    flex-direction: row;
    justify-content: space-around;
    background-color: darkblue;
}

#footerEl div{
    margin: auto;
}