@font-face {
    font-family: russo;
    src: url('./fonts/RussoOne-Regular.ttf');
}
@font-face {
    font-family: fira;
    src: url('./fonts/FiraSans-Light.ttf');
}



html, body { 
    max-width: 100% !important; 
    overflow-x: hidden !important; 
    scroll-behavior: smooth;
} 
body{
    margin: 0;
    z-index: -3;
}

header{
    display: flex;
    flex-wrap: wrap;
    position: relative;
    height: 1000px;
    background-color: #ece8c9;
}
.engrenage{
    position: absolute;
    width: 20%;
    left: 40%;
    top: 25% ;
    z-index: 3;
}
.bloque{
    z-index: 2;
    padding: 0;
    margin: 0;
    height: 100vh;
    width: 50%;
    background-color: #433842;
    border: 1px solid #433842;
    box-sizing: border-box;
    transition: all 1s;
}

#bloque_gauche{
    position: absolute;
    left: 0px;

}
#bloque_droit{
    position: absolute;
    right: 0px;

}

nav{
    display: flex;
    width: 100%;
    align-items: center;
    justify-content: space-around;
    height: 100px;
    background-color: #433842;
    font-family: russo,Arial, Helvetica, sans-serif ;
}



nav div a{
    text-decoration: none;
    color: #ece8c9;
    padding: 20px;
    transition: all 0.3s ease-out;
}

.bouton_nav:hover a{
    transform: translateX(-10px);
    text-decoration: none;
    color: #ece8c9;
}

.barre_nav{
    height: 3px;
    transition: all 0.3s ease-out;
    margin-top: -15px;
}

.bouton_nav:hover .barre_nav{
    transform: translateX(10px);
    width: 60px;
    background-color: #F45832;
}

.bouton_nav:active .barre_nav{
    transform: translateX(-10px);
    width: 60px;
    background-color: #F45832;
}


nav h4{
    color: #ece8c9;
    font-size: 2rem;
    letter-spacing: 4px;
    font-weight: 400;
}

.bouton_nav{
    display: flex;
    flex-direction: column;
    height: 100%;
    width: 120px;
    align-items: center;
}

#nav{
    display: flex;
    justify-content: space-between;
    width: 600px;
}

.burger{
    width: 40px;
    display: none;
}

.ligne{
    height: 2px;
    width: 0;
    background-color: #F45832;
    transition: 0.5s;
}

.main_header{
    margin-bottom: 50px;
    display: flex;
    align-items: center;
    width: 100%;
    height: 620px;
}
.left_header{
    width: 50%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding-left: 100px;
    justify-content: space-around;


}

h3{

    font-family: russo,Arial, Helvetica, sans-serif  ;
    color: #443842;
    font-size: 10rem;
    letter-spacing: 5pt;
    text-align: left;
    margin: 0;
    padding: 0;
   
}

header h3{
    transform: translateX(-900px);
    animation: text_slide 1s ease-out;
    animation-delay: 2500ms;
    animation-fill-mode: forwards;   
}



header h2{
    transform: translateX(-900px);
    width: 797.61px;
    font-family: russo,Arial, Helvetica, sans-serif ;
    color: #e6502b;
    text-align: left;
    letter-spacing: 5pt;
    line-height: 110pt;
    font-size: 10rem;
    margin: 0;
    padding: 0;
    animation: text_slide 1s ease-out;
    animation-delay: 3000ms;
    animation-fill-mode: forwards;
}

h1{
    transform: translateX(-900px);
    width: 797.61px;
    font-family: fira,Arial, Helvetica, sans-serif ;
    text-align: left;
    color: #443842;
    font-size: 2.08rem;
    margin: 0;
    padding: 0;
    animation: text_slide 1s ease-out;
    animation-delay: 3500ms;
    animation-fill-mode: forwards;
}

@keyframes text_slide{
    0%{
        transform: translatex(-900px)
    }
    60%{
        transform: translatex(15px)
    }
    100%{
        transform: translatex(0px)
    }
}

.right_header{
    width: 50%;
    height: 100%;
    position: relative;
}

.cube_principale{
    position: absolute;
    left: 1200px;
    top: 150px;
    height: 350px;
    width: 350px;
    background-color: #443842;
    border-radius: 20px;
    rotate: 21deg;
    animation: levitation 6s ease-in-out infinite;
    animation-delay: 3500ms;
}

.cube_1{
    height: 150px;
    width: 150px;
    background-color: #F45832;
    position: absolute;
    border-radius: 20px;
    rotate: -15deg;
    left: 1200px;
    top: 320px;
    animation: levitation 6s ease-in-out infinite;
    animation-delay: 3800ms;

}

.cube_2{
    z-index: 0;
    height: 100px;
    width: 100px;
    background-color: #F45832;
    position: absolute;
    border-radius: 20px;
    rotate: 42deg;
    left: 1200px;
    top: 300px;
    animation: levitation 6s ease-in-out infinite;
    animation-delay: 3250ms;

}

.ellipse{
    position: absolute;
    left: 150px;
    top: -1000px;
    width: 570px;
    height: 192px;
    background-image: url("img/Ellipse.png");
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
    animation: levitation 6s ease-in-out infinite;
    animation-delay: 4200ms;
}

@keyframes levitation {
    0% {
		transform: translatey(0px);
	}
	50% {
		transform: translatey(30px);
	}
	100% {
		transform: translatey(0px);
	}
}


main{
    
    position: relative;

}

.transition_orange_top{
    top: -95.5px;
    right: -55px;
    position: absolute;
}
.transition_orange_bot_1{
    bottom: -95.5px;
    right: -55px;
    position: absolute;
}
.transition_orange_bot_2{
    top: -95.5px;
    right: -55px;
    position: absolute;
}

#a_propos{
    background-color: #433842;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 120px;
    position: relative;
}

#a_propos h2{
    text-align: center;
    margin: 0;
    margin-bottom: 120px;
    font-family: russo,Arial, Helvetica, sans-serif ;
    color: #EDE8CA;
    letter-spacing: 5pt;
    font-size: 5rem;
    transition: transform 1s cubic-bezier(0.175, 0.885, 0.32, 1.1) ;
    transform: translateX(-1350px)
    
}

.a_propos{
    display: flex;
    flex-wrap: wrap;
    width: 100vw;
    justify-content: space-evenly;
}


.description{
    width: 815px;
    height: 565px;
    background-color: #EDE8CA;
    border-radius: 20px;
    margin: 20px;
}

.description p{
    margin: 20px;
    font-family: russo,Arial, Helvetica, sans-serif ;
    font-size: 2rem;
    color: #443842;
}

.skills{
    width: 615px;
    height: 565px;
    margin: 20px;
    background-color: #EDE8CA;
    border-radius: 20px;
    display: flex;
    flex-wrap: wrap;
    flex-direction: row;
    justify-content: center;
    align-items: flex-start;
}

.skills h3{
    text-align: center;
    font-family: russo,Arial, Helvetica, sans-serif ;
    letter-spacing: 3pt;
    font-size: 40pt;
    margin-top: 15px;
}

.skills figure{
    width: 50%;
    height: 0px;
    margin: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.skills figure img{
    width: 90px;
    height: 90px;
    padding: 15px;
}

#projets{
    background-color: #F45832;
    display: flex;
    padding-top: 120px;
    justify-content: flex-start;
    flex-direction: column;
    align-items: center;
}

#projets h2{
    text-align: center;
    margin: 0;
    margin-bottom: 150px;
    font-family: russo,Arial, Helvetica, sans-serif ;
    color: #fff5bf  ;
    letter-spacing: 5pt;
    font-size: 5rem;
    transition: transform 1s cubic-bezier(0.175, 0.885, 0.32, 1.1) ;
    transform: translateX(1350px);
}

.carousel {
    max-width: 800px;
    overflow: hidden;
    border-radius: 10px;
}

.carousel_track {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.slide {
    flex: 0 0 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: ease-out 0.5s;
}

.slide:hover, .slide:focus{
    scale: 0.95;
}

.slide:active{
    scale: 1;
}

.slide img {
    width: auto;
    height: 100%;
    max-height: 600px;
    object-fit: contain;
    display: block;
    border-radius: 20px;
}
.carousel,
.slide {
    height: 600px;
}

#slide-title{
    margin-top: 50px;
    min-height: 5rem;
    font-size: 1.5rem;
    letter-spacing: 2pt;
    font-family: fira,Arial, Helvetica, sans-serif ;
    color: #F4F4E7;
}



.decoration{
    position: relative;
}

.cube1{
    position: absolute;
    height: 160px;
    width: 160px;
    background-color: #443842;
    border-radius: 20px;
    rotate: 40deg;
    top: 110px;
    right: -1200px;
    animation: levitation_2 6s ease-in-out infinite;
    animation-delay: 500ms;
}
.cube2{
    position: absolute;
    height: 120px;
    width: 120px;
    background-color: #443842;
    border-radius: 20px;
    rotate: -30deg;
    top: 190px;
    right: -1500px;
    animation: levitation_2 6s ease-in-out infinite;
    animation-delay: 1000ms;
}
.cube3{
    position: absolute;
    height: 85px;
    width: 85px;
    background-color: #443842;
    border-radius: 20px;
    rotate: 10deg;
    top: 90px;
    left: 1220px;
    animation: levitation_2 6s ease-in-out infinite;
}
.cube4{
    position: absolute;
    height: 50px;
    width: 50px;
    background-color: #443842;
    border-radius: 20px;
    rotate: -28deg;
    top: 210px;
    left: 1200px;
    animation: levitation_2 6s ease-in-out infinite;
    animation-delay: 1300ms;
}

@keyframes levitation_2{
    0% {
		transform: translatey(0px);
	}
	50% {
		transform: translatey(15px);
	}
	100% {
		transform: translatey(0px);
	}
}

.video{
    height: 140vh;
    width: 100vw;
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    background-color: rgba(68, 56, 66, 0.6);
    z-index: 2;
    top: -120px;
    display: none;
}

.video video{
    width: 80%;
}

.galerie{
    margin-top: 400px;
    margin-bottom: 150px;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-around;
    position: relative;
}

.wes_web{
    margin-bottom: 65px;
}
figure{
    border-radius: 20px 20px 0 0 ;
    width: 400px;
    height: 350px;
    margin-top: 80px;
    padding: 0;
    background-color: #EDE8CA;
}

a{
    text-decoration: none;

}

figure img{
    border-radius: 20px 20px 0 0 ;
    height: 100%;
    width: 100%;
    margin: 0;
    display: block;
}

figure:hover figcaption{
    background-color: #EDE8CA;
    color: #443842;
}

figcaption{
    margin: 0;
    background-color: #443842;
    display: block;
    padding: 15px;
    transition: all 0.2s;
    text-align: center;
    margin: 0;
    color: #EDE8CA;
    text-decoration: none;
    font-family: fira,Arial, Helvetica, sans-serif ;
    font-size: 12pt;
    font-weight: 800;

    
}

#contact{
    height: 1100px;
    background-color: #EDE8CA;
    padding-top: 120px;
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-start;
    position: relative;
}

#contact h2{
    text-align: center;
    margin: 0;
    margin-bottom: 110px;
    font-family: russo,Arial, Helvetica, sans-serif ;
    color: #433842;
    letter-spacing: 5pt;
    font-size: 5rem;
    transition: transform 1s cubic-bezier(0.175, 0.885, 0.32, 1.1) ;
    transform: translateX(-1350px);
}

form{
    background-color: #433842;
    height: 700px;
    width: 700px;
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

input{
    font-size: 1rem;
    color: #443842;
    margin-left: 120px;
    margin-right: 120px;
    margin-top: 40px;
    width: 400px;
    height: 30px;
    background-color: #EDE8CA;
    border: none;
    border-radius: 5px;
}

.ok{
    font-family: fira,Arial, Helvetica, sans-serif;
    font-weight: 900;
    font-size: 1rem;
    height: 50px;
    background-color: #d13f1a;
    color: #fffbe4  ;
    border-radius: 5px;
    transition: 0.5s;
}

.ok:hover{
    scale: 1.05;
    
}

label{
    color: #EDE8CA;
    font-family: fira,Arial, Helvetica, sans-serif;
    font-size: 1rem;
    margin-bottom: -30px;
    margin-top: 30px;
}

textarea{
    font-size: 13pt;
    font-family: fira,Arial, Helvetica, sans-serif;
    color: #443842;
    margin-top: 40px;
    width: 400px;
    height: 200px;
    background-color: #ece8c9;
}

footer{
    display: flex;
    justify-content: center;
    align-items: center;
    height: 250px;
    line-height: 250px;
    background-color: #433842;
}

footer a{
    text-decoration: none;
    font-weight: 400;
    margin: 0;
    font-family: russo,Arial, Helvetica, sans-serif ;
    font-size: 1.5rem;
    text-align: center;
    color: #EDE8CA;
}

footer a:hover,footer a:focus{
    color: #d13f1a;
}

footer a:active{
    color: #ece8c9;
}

@media screen and (max-width: 1650px){
    h3{
        font-size: 8rem;
    }
    header h2{
        font-size: 8rem;
    }
    .left_header{
        width: 40%;
    }
}

@media screen and (max-width: 1400px){
    .main_header{
    flex-direction: column;
    height: 1550px;
    margin-top: 50px;
    }
    header{
        height: 1550px;
    }
    .left_header{
        height: 40%;
        align-items: flex-start;
        width: 100%;
        padding-left: 40%;
    }
    #nav{
        width: 400px;
    }

    .cube_principale{
        left: 10px;
        top: 250px;
    }
    
    .cube_1{
        left: -60px;
        top: 420px;
    }
    
    .cube_2{
        left: 330px;
        top: 390px;
    }
    
    .ellipse{
        left: -90px;
        top: 160px;
    }
    .img_temp{
    height: 500px;
    width: 500px;
    }

}

@media screen and (max-width: 1000px){
    .left_header{
        padding-left: 10%;
    }
    .img_temp{
    height: 400px;
    width: 400px;
    }
    .video{
    top: 800px;
}
}

@media screen and (max-width: 800px){
    
    #projets h2,#a_propos h2,#contact h2{
    font-size: 4rem;
    }
    header h3{
        font-size: 6.5rem;  
    }
    header h2{
        font-size: 6.5rem;
        line-height: 80pt;
    }

    .cube_principale{
    scale: 0.8;
    }

    .cube_1{
        scale: 0.8;
    }

    .cube_2{
    scale: 0.8;
    }

    .ellipse{
        scale: 0.8;
    }
    nav p{
        margin-left: 10px;
    }
    nav{
        position: relative;
    }
    #nav{
        top: 0;
        position: absolute;
        height: 50vh;
        background-color: #433842;
        flex-direction: column;
        z-index: 50;
        width: 100%;
        display: none;
    }
    .bouton_nav{
        width: 100%;
        height: 40%;
    }
    .burger{
    display: block;
    }
    nav p {
    font-size: 1.5rem;
    }
    form{
        width: 80%;
        height: 600px ;
    }
    input{
        width: 80%;
    }
    textarea{
        width: 80%;
    }
    .slide img {
      max-height: 400px;
    }
    .carousel,
    .slide {
      height: 400px;
    }
    footer a{
        font-size: 1rem ;
    }
}

@media screen and (max-width: 600px){
    
    #projets h2,#a_propos h2,#contact h2{
        font-size: 2.5rem;
    }
    .left_header {
        margin-left: 5px;
        height: 300px;
    }
    header h3{
        font-size: 4.5rem;  
    }
    header h2{
        font-size: 4.5rem;
        line-height: 50pt;
    }
    header h1{
        font-size: 2rem;
        line-height: 30pt;
    }
    .cube_principale{
    scale: 0.6;
    left: -50px;
    top: 50px;
    }

    .cube_1{
        scale: 0.6;
        left: -60px;
        top: 200px;
    }

    .cube_2{
    scale: 0.6;
    left: 200px;
    top: 190px;
    }

    .ellipse{
        scale: 0.6;
        left: -160px;
        top: 35px;
    }
    header{
        height: 1000px;
    }
    .main_header{
        height: 1000px;
    }
    .right_header{
        height: 30%;
    }
    .img_temp{
    height: 300px;
    width: 300px;
    }
    .description p{
    font-size: 1.6rem;
}
   

}

@media screen and (max-width: 420px){
    
    #projets h2,#a_propos h2,#contact h2{
        font-size: 2.5rem;
    }
    .left_header {
        margin-left: 5px;
        height: 300px;
    }
    header h3{
        font-size: 3rem;  
    }
    header h2{
        font-size: 3rem;
        line-height: 35pt;
    }
    header h1{
        font-size: 1.5rem;
        line-height: 20pt;
    }
    .cube_principale{
   scale: 0.4;
   left: -90px;
    }

    .cube_1{
        scale: 0.4;
        left: -60px;
    }

    .cube_2{
    scale: 0.4;
    left: 110px;
    }

    .ellipse{
        scale: 0.4;
        left: -200px;
        top: 45px;
    }
    figure{
    width: 300px;
    height: 250px;
    }
    footer p{
        line-height: 50px;
        padding-top: 90px;
    }
       .description p{
    font-size: 1.2rem;
    }
    .slide img {
      max-height: 300px;
    }
    .carousel,
    .slide {
      height: 300px;
    }
    footer a{
        font-size: 0.8rem ;
    }
}