@import url('https://fonts.googleapis.com/css2?family=Reem+Kufi&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Big+Shoulders+Display:wght@300&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@300&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html{
    scroll-behavior: smooth;
}

.separator{
    height: 20px;
}

span{
    background-color: #FFDE59;
    font-size: 2.2vw;
}

body{
    background-color:rgb(231, 220, 205);
}

.page{
    padding: 20px;
}

.yellow {
    margin-left: 2%;
    z-index: 5;
    background-color: #FFDE59;
    position: fixed;
    overflow: auto;
    float: right;
}

menu {
    display: flex;
    flex-direction: column;
    font-size: 3vw;
    padding: 3vw;
}

menu a{
    float: left;
    color: black;
    text-decoration: none;
    font-family: 'Big Shoulders Display', cursive;
}

menu a:hover{
    color:rgb(255, 244, 221);
    transition: color 0.25s;
}

header {
    z-index: -10;
    height: 95vh;
    background-color: #313638;
    position: relative;
}

.florent{
    z-index: -1;
    position: absolute;
    margin-left: 21.5vw;
    width: 75vw;
    opacity: 0.25;
}

h1 {
    z-index: 20;
    padding: 35px;
    font-size: 3vw;
    text-align: right;
    color: #f3f7f0;
    font-family: 'Reem Kufi', sans-serif;
}

h2 {
    float: center;
    text-align: center;
    color: #f3f7f0;
    font-size: 4vw;
    font-family: 'Roboto', sans-serif;
    margin-top: 10%;
}

main {
    height: auto;
    background-color:rgb(231, 220, 205);
}

#presentation{
    padding: 50px 17vw;
    text-align: justify;
    color: black;
    font-size: 2vw;
    font-family: 'Roboto', sans-serif;
}

.projets{
    padding: 10px 0;
    text-align: center;
    color: white;
    font-size: 30px;
    font-family: 'Roboto', sans-serif;
}

#mes-projets{
    display: flex;
}

.left{
    margin-left: 5%;
    width: 45%;
    background-color: #313638;
    height: auto;
    color: white;
    text-align: center;
    font-size: 2vw;
    font-family: 'Roboto', sans-serif;
    padding-bottom: 20px;
}

.left > h3{
    padding-top: 10px;
}

.left > h4{
    padding: 10px;
}

.left > img{
    width: 80%;
}

.right{
    margin-right: 5%;
    width: 45%;
    background-color: rgb(255, 244, 221);
    height: auto;
    color: black;
    text-align: center;
    font-size: 2vw;
    font-family: 'Roboto', sans-serif;
    padding-bottom: 20px;
}

.right > h3{
    padding-top: 10px;
}

.right > h4{
    padding: 10px;
}

.right > img{
    width: 35%;
}

#contact {
    height: auto;
    background-color: #313638;
    padding: 5% 0;
}

#contact > #mon-profil{
    color: white;
    font-family: 'Reem Kufi', sans-serif;
    font-size: 2vw;
    text-align: center;
}

#contact > p {
    color: white;
    font-family: 'Reem Kufi', sans-serif;
    font-size: 2vw;
    text-align: center;
    padding-top: 1%;
    padding-bottom: 1.5%;
}

.button{
    display: flex;
}

.left-button{
    flex: 3;
}

.button > a{
    flex: 2;
    background-color: #FFDE59;
    text-decoration: none;
    text-align: center;
    font-size: 1.8vw;
    padding: 5px 30px;
    color: black;
}

.button a:hover{
    color:rgb(255, 244, 221);
    transition: color 0.25s;
}

.right-button{
    flex: 3;
}

#contact > a:hover{
    background-color: rgb(238, 234, 10);
}

.form {
    margin-left: 35vw;
    margin-right: 35vw;
    width: 30vw;
    height: 520px;
    background-color: rgb(255, 244, 221);
    border: 2px solid black;
    font-family: 'Reem Kufi', sans-serif;
  }
  
form > p {
    padding: 20px;
    text-align: center;
}

form > label {
    display: block;
    font-size: 18px;
    margin-left: 10%;
    padding: 8px 0px;
}

.email, .text, .textarea {
    width: 80%;
    height: 35px;
    margin-left: 10%;
    margin-right: 10%;
    padding: 5px;
}

.textarea {
    resize: none;
    height: 250px;
}

input[type="submit"]{
    background-color: rgb(255, 244, 221);
    width: 150px;
    height: 30px;
    cursor: pointer;
    margin-left: 10%;
    margin-top: 8px;
    border: 1px black solid;
}

footer {
    height: 6vh;
    background-color: #FFDE59;
    color: black;
    text-align: center;
}

footer > ul{
    padding: 1vh 1vh;
    float: left;
}

footer > ul > li{
    list-style: none;
    display: inline;
    padding: 0 1vh;
    font-size: 1.8vw;

}

footer > ul > li > a{
    text-decoration: none;
    color: black;
    font-size: 1.2vw;
}

footer > ul > li > a:hover{
    border-bottom: 2px black solid;
}

footer > p{
    float: right;
    padding: 1.5vh 1vh;
    font-size: 1.2vw;
}

footer > p > a {
    color: black;
    text-decoration: none;
}

@media screen and (max-width:1170px) {
    .florent{
        margin-left: 10%;
        width: 90%;
    }

    .form {
        margin-left: 20%;
        margin-right: 20%;
        width: 60%;
        height: 520px;
        background-color: rgb(255, 244, 221);
        border: 2px solid black;
        font-family: 'Reem Kufi', sans-serif;
      }
}

@media screen and (max-width:1015px) {
    header {
        height: 75vw;
    }

    #presentation{
        padding: 5vw 15vw;
    }

    #mes-projets{
        display: flex;
        flex-wrap: wrap;
    }

    .left{
        margin-left: 20%;
        margin-right: 20%;
        width: 60%;
        font-size: 2vw;
    }

    .right{
        margin-top: 20px;
        margin-left: 20%;
        margin-right: 20%;
        width: 60%;
        font-size: 2vw;
    }

    footer {
        height: auto;
        display: flex;
        flex-wrap: wrap;
    }  

    footer > ul{
        flex: 1;
    }

    footer > p{
        flex: 2;
        padding: 1.5vh 1vh;
        font-size: 2vw;
    }

    footer > ul > li{
        font-size: 2vw;
    
    }
    
    footer > ul > li > a{
        font-size: 2vw;
    }  
}

@media screen and (max-width:600px) {
    header {
        height: 72vw;
    }

    menu{
        font-size: 18px;
    }

    .button > a{
        font-size: 2.2vw;
    }

    #contact > #mon-profil{
        font-size: 3vw;
    }

    #contact > p{
        font-size: 3vw;
    }

    .right-button{
        flex: 2;
    }

    .left-button{
        flex: 2;
    }
    
    .button > a{
        font-size: 3vw;
        padding: 5px 10px;
    }

    footer > p{
        font-size: 3vw;
    }

    footer > ul > li{
        font-size: 3vw;
    
    }
    
    footer > ul > li > a{
        font-size: 3vw;
    }  
}