*,*::before,*::after{box-sizing: border-box;}

html {
    scroll-behavior: smooth;
  }

:root{
    --main-bg-color: rgb(51, 68, 88);
    --bg-color: rgb(92, 109, 122);
    --accent-color: rgb(197, 232, 243);
}

body{
    margin:0;
    padding:0;
    background: var(--main-bg-color);
    font-family: 'Gelasio', serif;
    font-size:  1.1em;
    display:flex;
    flex-direction: row;
    width: 400vw;
    overflow: hidden;
    max-height: 100vh;
}

nav{
    width: 100vw;
    background: var(--bg-color);
    position:fixed;
    top:0;
    margin-bottom:50%;
    z-index:100;
}

nav ul {
    margin:0;
    padding: 0;
    display:flex;
    justify-content: flex-end;
    height: 60px;
}



nav ul li {
    display: flex;
    align-items: center;
    list-style: none;
    margin:0px 10px;
    background:var(--bg-color);
    position:relative;
    font-size: 1.1em;
    letter-spacing: 1.5px;
    top:-100px;
    transition: top 1.2s ease-in-out;
}

nav li a{
    padding:0.5em 1em;
    color: var(--accent-color);
    text-decoration: none;
    border: 0px solid var(--accent-color);
    border-radius: 7px;
    box-shadow: inset 0 0 25px 2px rgba(0, 0, 0, 0.1);
    transition: all 0.2s linear;
}

nav ul li a:hover {
    box-shadow: inset 0 0 10px 4px rgba(0, 0, 0, 0.11);
}

.toggle{
    position: absolute;
    top: 50%;
    left: 50%;
}

section{
    position:relative;
    padding:0em .5em;
    color:var(--accent-color);
    transition: left 2s ease-in-out,top .35s ease-out;
    width: 100vw !important;
    margin: 0;
    font-size: 1.2em
}

section h1{
    width: 100vw;
    text-align: center;
}

#titre_intro>h1{
    margin-bottom: 3em;
}

#accueil h1,
#accueil h2,
#accueil h3{
    color: white;
}

#cv_div>h1,
#portfolio>h1,
#contact>h1{
    color: white;
}


#intro,
#parcours,
#competences{
    text-align: center;
    margin-bottom: 5em;
}

#competences{
    position: relative;
    bottom: 0;
}

#dev,
#responsive{
    width: 50%;
    padding: .2em;
    float: left;
}

#cv{
    position: relative;
}

.date{
    width: 15%;
    float: left;
    margin-right: 30px;
}

.intitule{
    width: 80%;
    float: left;
    color: white;
}

.intitule>.details{
    color: var(--accent-color);
}

#cv_titre{
    font-size: 1.6em;
    width: 60%;
    margin-bottom: 2vh;
}

#cv_contact,
#cv_langue,
#cv_competence{
    float: right;
    width: 40%;
    text-align: right;
}

#cv_titre,
#cv_experience,
#cv_diplome,
#cv_divers{
    float: left;
    width: 50%;
    min-height: 15vh;
}

#cv_titre>span,
#cv_experience>span,
#cv_diplome>span,
#cv_divers>span,
#cv_contact>span,
#cv_langue>span,
#cv_competence>span{
    font-size: 40px;
    color: white;
}

#cv_experience{
    width: 70vw;
}

#cv_langue{
    width: 30vw;
}

.exp,
.dip{
    min-height: 6em;
    padding: 1em .8em;
    font-size: 1.08em;
}

#cv_contact{
    line-height: 2em;
}

#cv>#dl{
    position: absolute;
    right: 2em;
    top:0px;
    cursor: pointer;
    font-size: 1.3em;
    padding: .2em .8em;
    background: rgb(229, 248, 255);
    color: var(--main-bg-color);
    border: none;
    border-radius: 5px;
    box-shadow: inset 0px 0px 10px black;
    transition: box-shadow ease-in-out .15s;
}

#cv>#dl:hover{
    box-shadow: inset 0px 0px 2px black;
}
#portfolio_site{
    display:flex;
    flex-flow: row wrap;
    justify-content: space-around;
}

#portfolio_site a{
    border:3px var(--accent-color) solid;
    border-radius: 5px;
    flex-basis: 15vw;
    height: 15vw;
    margin:2em 3.8em;
    position :relative;
}

#portfolio_site a>span{
    position: absolute;
    bottom: -40%;
    color:white;
    cursor: default;
}

#contact>span{
    margin-bottom: 2em;
}

#form{
    margin: 2em;
}

#form div{
    margin: 2em ;
}

#form input,
#form textarea{
    padding: .2em ;
    border-radius: 5px;
}


#site1{
    background-image: url("../img/site_jeu_tir.png");
    width: 100%;
    height: 100%;
    background-repeat: round;
}

#site2{
    background-image: url("../img/bibliotheque.png");
    height: 100%;
    background-repeat: round;
}

#site3{
    background-image: url("../img/pizzeria.png");
    width: 100%;
    height: 100%;
    background-repeat: round;
}


/* ======================== HAMBURGER MENU ======================== */

#hamburger_menu{
    display:none;
}

#hamburger_menu span{
    position: absolute;
    display:block;
    background: #fff;
    width: 50%;
    height: 6px;
    transition: .5s;
}

#hamburger_menu  span:nth-child(even){
    left: 50%;
}

#hamburger_menu  span:nth-child(1),
#hamburger_menu  span:nth-child(2){
    top: 0;
}

#hamburger_menu  span:nth-child(3),
#hamburger_menu  span:nth-child(4){
    top: 15px;
}

#hamburger_menu  span:nth-child(5),
#hamburger_menu  span:nth-child(6){
    top: 30px;
}

#hamburger_menu.active span:nth-child(3){
    transform: translateX(-50px);
    opacity: 0;
}

#hamburger_menu.active span:nth-child(4){
    transform: translateX(50px);
    opacity: 0;
}

#hamburger_menu  span:nth-child(1){
    transform-origin: top left;
}

#hamburger_menu  span:nth-child(2){
    transform-origin: top right;
}

#hamburger_menu.active span:nth-child(1){
    transform: rotate(45deg);
    top: 5px;
    left: 9px;
}

#hamburger_menu.active span:nth-child(2){
    transform: rotate(-45deg);
    top: 5px;
    left:calc(50% - 9px);
}


#hamburger_menu  span:nth-child(5){
    transform-origin: bottom left;
}

#hamburger_menu  span:nth-child(6){
    transform-origin: bottom right;
}

#hamburger_menu.active span:nth-child(5){
    transform: rotate(-45deg);
    bottom: 5px;
    left: 9px;
}

#hamburger_menu.active span:nth-child(6){
    transform: rotate(45deg);
    bottom: 5px;
    left: calc(50% - 9px);
}



/* ================================================================ */

@media screen and (max-width:1000px){
    nav ul {
        justify-content: space-around;
    }

    #portfolio_site a{
        flex-basis: 25vw;
        height: 25vw;
}


@media screen and (min-width:730px){
    nav{
        display: block;
    }
    
    
}

@media screen and (max-width:730px){

    body{
        width: 100vw;
    }

    section{
        top:0;
        width: 100vw !important;
    }

    #titre_intro>h1{
        margin-bottom: 1em;
    }
    
    #dev,
    #responsive{
    width: 100%;
    padding: 1em;
    }

    #portfolio_site a{
        border:3px var(--accent-color) solid;
        border-radius: 5px;
        flex-basis: 40vw;
        height: 40vw;
    }
    
    #hamburger_menu{
        display: block;
        position: fixed;
        top:1em;
        left:calc(100% - 3em);
        width: 40px;
        height: 40px;
        z-index: 101;
    }

    #hamburger_menu span{
        position: absolute;
        display:block;
        background: #fff;
        width: 50%;
        height: 6px;
        transition: .5s;
    }

    nav{
        height: 100vh;
        background: rgba(180, 180, 180, 0.2);
        display: none;
    }



    nav ul {
        flex-flow: column;
        opacity:1;
        position: absolute;
        width: 100%;
        height: 50vh;
        background: rgb(117, 117, 117);
    }

    nav ul li{
        top:0;
        margin: 0;
        height: 100px;
        align-items: center;
        width: 100vw;
        height: 10vh;
        background: none;
    }

    nav li a{
        text-align: center;
        margin: 0 auto;
        height: 100%;
        width: 70%;
        box-shadow: inset 0 0 0 0;
        border: 0;
    }

    body{
        width: 100vw;
        overflow: scroll;
        flex-direction: column;
    }

    #cv_contact,
    #cv_langue,
    #cv_competence,
    #cv_titre,
    #cv_experience,
    #cv_diplome,
    #cv_divers{
        float: none;
        width: 100%;
        text-align: center;
        padding: 2em;
    }

    #portfolio_site a>span,
    #dl{
        display: none;
    }

    .intitule{
        float: right;
        width: 60vw;
    }
    
}
}