*{
    font-family: 'Varela Round', sans-serif;
}

html{
    height: 100%;
    scroll-behavior: smooth;
}

body{
    margin: 0;
    height: 100%;
}

.body{
    margin-left: 240px;
    transition: margin-left 0.3s;
}

.titre1{
    font-size: 2em;
    color: #a4c2f4;
    text-align: center;
}

.uptitre1{
    margin-top: 10%;
}

.whiteB{
    margin-top: 7px;
    height: 7px;
    width: 50px;
    background-color: #5277b2;
    border-radius: 5px;
}

p{
    font-size: 1.25em;
}

.parcoursS{
    font-size: 1.2rem;
    font-weight: bold;
    color: #a4c2f4;
}

/*** MAIN ***/

#main{
    display: flex;
    flex-direction: column;
    background-color: #6d9eeb;
    color: white;
    height: 100vh;
}

#main>div{
    margin: auto;
}

#main>div>img{
    width: 100%;
}

#main h2, #main h3{
    text-align: center;
}

#main h2{
    font-size: 2em;
    margin: 12px;
}

#main h2:last-child{
    margin-bottom: 8%;
}

#main h3{
    font-size: 1.5em;
    margin: 12px;
}

/*** MEHO ***/

#meho_container{
    
}

#meho{
    display: flex;
    margin-top: 5%;
    color: #3c78d8;
}

.iconT{
    font-size: 3em;
    color: #1c4587;
}

#gps_icon{
    font-size: 1.5em;
    color: #1c4587;  
    margin-right: 2%;
}

#meho>div{
    width: 50%;
    text-align: center;
}

#meho>div:first-child{
    display: flex;
    flex-direction: column;
}

#meho>div:first-child>div>p{
    display: block;
    margin-left: auto; margin-right: auto;
    text-align: justify;
    width: 70%;
}

#meho>div:first-child>div>div{
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
}

#meho>div:first-child>div:last-child{
    margin: auto;
}

#button{
    display: flex;
    width: 100%;
    margin-top: 2%;
    justify-content: space-evenly; 
    text-align: center;
}

#button>a{
    padding: 20px;
    border-radius: 10px;
    font-size: 1.5em;
    color: white;
    border:none;
    cursor: pointer;
    box-shadow: rgba(0, 0, 0, 0.35) 0px 5px 15px;
    text-decoration: none;
}

#button>a:first-child{
    background-color: #7fc95d;
    transition: background-color 0.3s;
    display: none;
}

#button>a:first-child:hover{
    background-color: #65a04a;
}

#button>a:last-child{
    background-color: #6d9eeb;
    transition: background-color 0.3s;
}

#button>a:last-child:hover{
    background-color: #5277b2;
}

/*** HOBBIES ***/

#hobbies_img{
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
}

#hobbies_img img{
    width: 40%;
    padding: 2%;
}

/*** COMPETENCES ***/

#competence_container{
    padding: 0% 2% 0% 2%;
}

.competence{
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-between;
    margin-top: 5%;
}

.competence h4, #competence2_container h4{
    display: inline-block;
    color:white;
    font-size: 1.75em;
    margin-left: 4%;
}

.competence>div{
    border-radius: 30px;
    width: 48%;
    padding-bottom: 2%;
    box-shadow: rgba(0, 0, 0, 0.35) 0px 5px 15px;
}

.competence>div:first-child{
    background-color: #417edf;
}

.competence>div:last-child{
    background-color: #734dd2;
}

.competence>div>div{
    margin-left: 4%;
    color: white;
    font-size: 1.25em;
}

.competence>div>div>div{
    margin-bottom: 2%;
}

#competence2>div{
    margin-left: 4%;
    color: white;
    font-size: 1.25em;
}

#competence2>div>div{
    margin-bottom: 2%;
}

.comp_bar_container{
    display: flex;
    flex-direction: row;
    justify-content: space-evenly;
}

.comp_bar_container>div:first-child{
    width: 30%;
}

.comp_bar_container>div:last-child{
    height: 15px;
    background-color: white;
    border-radius: 50px;
    width: 60%;
}

.comp_bar_container>div:last-child>div{
    position: relative;
    border-radius: 50px;
    height: 15px;
}

.comp_front{
    background-color: #1f3f73;
}

.comp_divers{
    background-color: #342855;
}

.comp_back{
    background-color: #11424d;
}

.c10{
    width: 10%;
    transition: width 1s;
}

.c20{
    width: 20%;
    transition: width 1s;
}

.c30{
    width: 30%;
    transition: width 1s;
}

.c40{
    width: 40%;
    transition: width 1s;
}

.c50{
    width: 50%;
    transition: width 1s;
}

.c60{
    width: 60%;
    transition: width 1s;
}

.c70{
    width: 70%;
    transition: width 1s;
}

.c80{
    width: 80%;
    transition: width 1s;
}

.c90{
    width: 90%;
    transition: width 1s;
}

.c100{
    width: 100%;
    transition: width 1s;
}

#competence2_container{
    background-color: #2d93a8;
    border-radius: 30px;
    margin-top: 4%;
    padding-bottom: 2%;
    box-shadow: rgba(0, 0, 0, 0.35) 0px 5px 15px;
}

#competence2{
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
}

#competence2>div{
    width: 42%;
}

/*** PARCOURS ***/

#parcours_container{

}

/*** PORTFOLIO ***/

#portfolio_container{
	display: flex;
	flex-direction: column;
}

#portfolio_container>div{
    display: flex;
    justify-content: space-evenly;
    flex-wrap: wrap;
    margin-top: 5%;
}

#portfolioButton{
	text-align: center;
text-decoration: unset;
color: black;
background-color: #6d9eeb;
padding: 10px;
border-radius: 5px;
color: white;
margin: auto;
display: inline-block;
}

.carte_container{
    position: relative;
    z-index: 2;
    width: 40%;
    border-radius: 10px;
}

#portfolio_container>div>div>img{
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.carte{
    position: absolute;
    overflow: hidden;
    bottom: 0;
    opacity: 0.9;
    color:white;
    background-color: #313430;
    width: 100%;
    height: 60px;
    text-align: center;
    transition: height 0.3s;
    -webkit-transition: height 0.3s;
}

.carte_container:hover .carte{
    height: 100%;
}

.carte:hover{ 
    height: 100%;
}

.carte_titre{
    height: 50px;
    font-size: 1.5em;
    font-weight: bold;
    padding: 5px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.carte_desc{
    padding: 5px;
}

.carte a{
    color: #fff;
    font-weight: bold;
    font-size: 1.5em;
    transition: color 0.3s;
}

.carte a:hover{
    color: #a4c2f4;
}

.cardModal{
    display: none;
    position: fixed;
    flex-direction: column;
    top: 0;
    width: 100%;
    height: 100%;
    z-index: 6;
    background-color: rgba(0, 0, 0, 0.9);
    color: white;
    text-align: center;
    justify-content: center;
    align-items: center;
}

.cardModal a{
    color: #fff;
    font-weight: bold;
    font-size: 1.5em;
    transition: color 0.3s;
}

.cardModal img{
    width: 90%;
    margin-top: 15px;
}

.cardModal i{
    font-size: 2.5em;
    position: absolute;
    right: 30px;
    top: 30px;
}

/*** CONTACT ***/ 

#contact_container{

}

#contact_container>div{
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-around;
    text-align: center;
    width: 100%;
    margin-top: 5%;
}

#contact_container i{
    font-size: 2em;
}

#contact_container>div>div{
    width: 25%;
    border-radius: 5px;
    padding: 2%;
    color: white;
    box-shadow: rgba(0, 0, 0, 0.35) 0px 5px 15px;
    transition: transform 0.5s;
}

#contact_container>div>div>p:last-child{
    margin-top: 30px;
}

#contact_container>div>div:nth-child(1){
    background-color: #3c78d8;
}

#contact_container>div>div:nth-child(2){
    background-color: #674ea7;
}

#contact_container>div>div:nth-child(3){
    background-color: #134f5c;
}

#contact_container>div>div:hover{
    transform: scale(1.1);
}

/*** HEADER ***/

header{
    position: fixed;
    display: flex;
    height: 100%;
    width: 200px;
    flex-direction: column;
    justify-content: space-around;
    background-color: #6d9eeb;
    color: white;
    font-size: 1.25em;
    padding: 0px 20px 0px 20px;
    /* box-shadow: rgba(0, 0, 0, 0.35) 0px 5px 15px; */
    z-index: 3;
    transition: width 0.3s, fontSize 0.3s;
}

.ht{
    transition: opacity 0.3s;
}

header>a{
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    border-radius: 5px;
    padding: 10px;
    cursor: pointer;
    color:white;
    text-decoration: none;
    transition: background-color 0.5s;
}

header i{
    margin-bottom: 10px;
}

header>a:hover{
    background-color: #5277b2;
}

/*** HEADER RESPONSIVE/TABLETTE ***/

#headerResponsive{
    position: fixed;
    display: none;
    height: 100%;
    width: 25px;
    flex-direction: column;
    justify-content: space-around;
    background-color: #6d9eeb;
    color: white;
    font-size: 1.25em;
    padding: 0px 20px 0px 20px;
    z-index: 3;
    transition: width 0.3s, fontSize 0.3s;
}

.ht{
    transition: opacity 0.3s;
}

#headerResponsive>a{
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    border-radius: 5px;
    padding: 10px;
    cursor: pointer;
    color:white;
    text-decoration: none;
    transition: background-color 0.5s;
}

#headerResponsive i{
    margin-bottom: 10px;
}

#headerResponsive>a:hover{
    background-color: #5277b2;
}

#headerResponsive>i{
    position: absolute;
    right: -40px;
    cursor: pointer;
    color: #5277b2;
    background-color: white;
    border-radius: 100px;
    font-size: 3em;
}

.whiteBresponsive{
    margin-top: 7px;
    height: 7px;
    width: 25px;
    background-color: #5277b2;
    border-radius: 5px;
}

/*** HEADER MOBILE ***/

#mobileHeader{
    position: fixed;
    display: none;
    flex-direction: column;
    z-index: 5;
    top: 0;
    width: 100%;
    height: 75px;
    background-color: white;
    box-shadow: rgba(0, 0, 0, 0.56) 0px 5px 20px 4px;
}

#mobileHeader a{
    text-decoration: none;
}

#mobileHeader>div:nth-child(1){
    display: flex;
    background-color: #6d9eeb;
    height: 100%;
    z-index: 2;
    flex-direction: row;
    align-items: center;
    padding: 20px;
}

#mobileHeader div:nth-child(1) i{
    color: white;
    font-size: 2em;
}

#mobileHeader div:nth-child(1) a i:last-child{
    display: none;
}

#mobileHeader>div:nth-child(2){
    display: none;
    box-shadow: rgba(0, 0, 0, 0.56) 0px 22px 50px 4px;
    background-color: #041e37;
}

#mobileHeader div:nth-child(2) nav{
    display: flex;
    flex-direction: column;
    padding: 20px;
}

#mobileHeader div:nth-child(2) nav>a{
    color:white;
    text-decoration: none;
    text-align: left;
    padding: 15px;
}

#mobileHeader nav>div>div{
    margin-bottom: 5px;
    display: inline;
}

#mobileHeader div:nth-child(2)>nav>a:last-child{
    border: solid 1px #44aada;
    border-radius: 5px;
    text-align: center;
}

#mobileHeader hr{
    color: #0d101d;
    border: solid 1px #0d101d;
    background-color: #0d101d;
}

#mobileHeader #nav{
    z-index: 1;
    animation-duration: 0.8s;
    animation-name: slideinHeader;
}

#mobileHeader nav>div{
    margin-bottom: 15px;
    display: flex;
    flex-direction: column;
}

#mobileHeader i{
    vertical-align: top;
}

@keyframes slideinHeader {
    from {
        margin-top: -400px;
    }

    to {
        margin-top: 0px;
    }
}

@keyframes slideoutHeader {
    from {
        margin-top: 0px;
    }

    to {
        margin-top: -400px;
    }
}

/*** FOOTER ***/

footer{
    position: 0;
    bottom: 0;
    margin-top: 10%;
    background-color: #041e37;
    padding: 2%;
    margin-left: 240px;
}

footer>div{
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 2%;
}

footer>div>a{
    display: inline-block;
    margin: auto;
    padding: 0px 2px;
    border-radius: 5px;
    background-color: white;
    color: #0a66c2;
    transition: background-color 0.5s, color 0.5s;
}

footer>div>a:hover{
    background-color: #f4f4f4;
    color: #0b5197;
    cursor: pointer;
}

footer i{
    font-size: 1em;
    border-radius: 5px;
    font-size: 2.5em;
}

footer>p:last-child{
    color: white;
    text-align: center;
    margin: 0;
    font-size: 0.75em;
}

/* RESPONSIVE */

@media screen and (max-width:1700px){

    .carte_container{
        width: 40%;
        margin-bottom: 2%;
    }

}

@media screen and (max-width:1350px){

    .competence > div > div {
        font-size: 1.15em;
    }

    .competence h4, #competence2_container h4 {
        font-size: 1.25em;
    }

    .titre1 {
        font-size: 1.8em;
    }

    .carte_desc{
        font-size: 1em;
    }

}

@media screen and (max-width:1200px){

    p {
        font-size: 1.15em;
    }

    .carte_desc{
        margin: 2px;
    }
    
    /* competences */

    .competence>div{
        width: 100%;
    }

    .competence>div:last-child{
        margin-top: 4%;
    }

}

@media screen and (max-width:1024px){

    #contact_container p{
        font-size: 1em;
    }

    /* Header mobile */

    #header{
        display: none;
    }

    #headerResponsive{
        display: flex;
    }

    .body{
        margin-left: 65px !important;
    }

    .carte_container{
        width: 45%;
        margin-bottom: 2%;
    }

    #meho{
        flex-direction: column;
    }

    #meho>div{
        width: unset;
    }

    #meho>div:first-child{
        margin-bottom: 5%;
    }

    #hobbies_img{
        justify-content: center;
    }

    #competence2 > div {
        width: 95%;
    }

}

@media screen and (max-width:750px){

    #main{
        justify-content: center;
        align-items: center;
    }

    #main>div{
        width: 60%;
	margin: unset;
    }

    #hobbies_img {
        margin-bottom: 5%;
    }

    #contact_container > div > div {
        width: 40%;
    }

    #contact_container > div > div:last-child {
        margin-top: 2%;
    }

}

@media screen and (max-width:600px){

    p{
        font-size: 1em;
    }

    #hobbies_img {
        margin-bottom: 5%;
    }

    #contact_container > div {
        flex-direction: column;
        align-items: center;
    }

    #contact_container > div > div {
        width: 80%;
    }

    #contact_container > div > div:nth-child(2) {
        margin-top: 2%;
    }

    #portfolio_container > div {
        flex-direction: column;
        align-items: center;
    }

    .carte_container {
        width: 90%;
        margin-bottom: 2%;
    }

    #button{
        flex-direction: column;
        align-items: center;
    }

    #button a:last-child{
        margin-top: 2%;
    }

    /* competence */

    .competence > div > div {
        font-size: 1em;
    }

    #competence2 > div {
        font-size: 1em;
    }

}

@media screen and (max-width:450px){

    #mobileHeader{
        display: flex;
    }

    .body{
        margin-left: 0px !important;
    }

    #headerResponsive{
        display: none;
    }

    #meho > div:first-child > div > div {
        flex-direction: column;
        margin-top: 40px;
    }

    #gps_icon {
        margin-right: unset;
    }

    /* competences */

    .competence > div {
        width: 80%;
        margin: auto;
    }

    .comp_bar_container > div:first-child {
        width: unset;
        margin-bottom: 5px;
    }
    
    .comp_bar_container {
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }

    .competence > div > div > div {
        margin-bottom: 5%;
    }

    .comp_bar_container > div:last-child {
        width: 80%;
    }

    #competence2 > div > div {
        margin-bottom: 5%;
    }

    #competence2_container {
        width: 80%;
        margin: auto;
        margin-top: 4%;
      }

}
