/*-----GENERAL-----*/

*{
    margin: 0;
    padding: 0;
}

@font-face {
    font-family: "BaronNeue";
    src: url(baron/BaronNeue.otf);
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "BaronNeue";
    src: url(baron/BaronNeueBold.otf);
    font-weight: bold;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "BaronNeue";
    src: url(baron/BaronNeueItalic.otf);
    font-weight: normal;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: "Montserrat";
    src: url(montserrat/Montserrat-Medium.ttf);
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Montserrat";
    src: url(montserrat/Montserrat-Bold.ttf);
    font-weight: bold;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Montserrat";
    src: url(montserrat/Montserrat-MediumItalic.ttf);
    font-weight: normal;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: "Montserrat";
    src: url(montserrat/Montserrat-Light.ttf);
    font-weight: lighter;
    font-style: normal;
    font-display: swap;
}

a{
    color: #000000;
    font-size: large;
    text-decoration: none;
}

body{
    background-color: #eeeeee;
    color: #000000;
    font-family: 'BaronNeue', 'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;
}

p{
    font-family: 'Montserrat',Arial, Helvetica, sans-serif;
}

/*-----HEADER-----*/

header{
    position: fixed;
    background-color: #008515 ;
    z-index: 1;
    width: 100%;
    border-bottom: 4px solid #008515;
    margin-bottom: 5px;
    padding-bottom: 10px;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between; 
}

h1{
    font-size: 3rem;
    margin-left: 10px;
    color: #eeeeee;
    text-shadow: 5px 3px #000000;
}

h2{
    font-size: 1.5rem;
    margin-left: 10px;
    color: #eeeeee;
    text-shadow: 5px 3px #000000;
}

nav{
    width: 50%;
    height: 100%;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-around;
}

nav ul{
    width: 100%;
    list-style: none;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-around;
}

nav li{
    position: relative;
    text-align: center;
}

nav a{
    font-size: 1.5rem;
    color: #eeeeee;
    width: 100%;
    text-align: center;
    transition: all 0.2s linear;
}

nav a:hover{
    font-size: 2em;
    color: #ffffff;
}

#bout{
    margin-right: 1%;
    display: none;
}

header img{
    max-height: 40px;
}

#space{
    width: 100%;
    height: 86px;
}

/*-----MAIN-----*/

main{
    width: 80%;
    margin: auto;
    margin-top:10px;

    display: flex;
    flex-direction: column;
    align-items: center;
}

section{
    width: 100%;
    height: 400px;
    background-color: #eeeeee;
    border: 5px solid #008515;
    border-radius: 10px;
    margin-bottom: 10px;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    transition: all 0.2s linear;
}

section:hover{
    background-color: #00000025;
    box-shadow: 5px 5px #808080;
    transform: translate(-5px,-5px);
    border: 5px solid #000000;
}

section h2{
    color: #000000;
    text-shadow: none;
}

section img{
    height: 400px;
}

/*-----TRAVAUX-----*/

#travaux{
    background-color: #dddddd;
    padding-top: 50px;
    padding-bottom: 50px;
    color: #000000;
    border-top: 4px solid #000000;
    border-bottom: 4px solid #000000;
    font-family: 'Montserrat','Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;
    display: flex;
    flex-direction: column;
    align-items: center;
}


h4{
    font-size: 1.5em;
    margin-bottom: 20px;
}

#travaux img{
    width: 50%;
    aspect-ratio: 2 / 1;
    margin-right: 2%;
    margin-left: 2%;
    border: 4px solid #ffffff;
    box-shadow: 5px 5px #000000;
    transition: 1s;
}

#travaux img:hover
{
   transform: scale(1.4);
}

#travaux img :not(:active)
{
   transition: 1s;
}

#travaux a{
    font-weight: 700;
    color: #323232;
    border: 2px solid #323232;
}
*/
/*-----CONTACT-----*/

#contact{
    padding-top: 50px;
    font-family: 'Montserrat','Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;
    display: flex;
    flex-direction: column;
    align-items: center;
}

#contact a{
    text-decoration: underline;
}

/*-----CV-----*/

embed{
    width: 100%;
    height: 1000px;
    margin-top: 86px;
}

/*-----FOOTER-----*/

footer{
    width: 100%;
    padding-top: 10px;
    padding-bottom: 10px;
    height: 50px;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-around;
}

#RS{
    width: 100px;
    position: fixed;
    left: -80px;
    top: 200px;
    padding-left: 10px;
    padding-right: 5px;
    padding-bottom: 5px;
    background-color: #eeeeee;
    border: 5px solid #008515;
    border-left: 0;
    border-radius: 0 5px 5px 0;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-evenly;
    transition: left 1s;
}

#RS div img{
    height: 50px;
}

#RS:hover{
    left: 0;
    transition: left 1s;
}

/*-----BREAKPOINT-----*/

@media only screen and (max-width:1014px ) {
    #space{
        height: 134px;
    }
    embed{
        margin-top: 134px;
    }
}

@media only screen and (max-width:800px ) {
    header,#l1,#l2{
        height: auto;
    }
    nav{
        display: none;
    }
    #bout{
        display: block;
    }
    :target{
        display: flex;
        height: 150px;
    }
    #menu ul{
        flex-direction: column;
    }
    #menu li{
        height: 30px;
    }    
    #space{
        height: 86px;
    }
    embed{
        margin-top: 86px;
    }
    #bigP{
    font-size: 5em;
    margin-bottom: 10px;
    }
    #moi{
        flex-direction: column-reverse;
        align-items: center;
    }
    #moi div{
        width: 90%;
        align-items: center;
    }
    object{
        margin: 0;
        width: 100%;
        margin-top: 100px;
    }
    .projetD{
        flex-direction: column;
    }
    .projetG{
        flex-direction: column;
    }
    #travaux img{
        width: 90%;
    }
    @keyframes biggie {
        0%{
            bottom: -500px;
        }
        50%{
            bottom: 0;
            text-shadow: 0 0 #000000;
        }
        100%{
            bottom: 0;
            text-shadow: 8px 5px #000000;
        }
    }
}

@media only screen and (max-width:556px ) {
    #space{
        height: 134px;
    }

    embed{
        margin-top: 134px;
    }
}

@media only screen and (max-width:462px ) {
    #space{
        height: 158px;
    }

    embed{
        margin-top: 158px;
    }
}