@font-face{
    font-family: "Roboto";
    src: url("Polices/roboto/Roboto-Regular.ttf");
    font-family: "RobotoMedium";
    src: url("Polices/roboto/Roboto-Medium.ttf");
}

@font-face{
    font-family:"RobotoLight";
    src: url("Polices/roboto/Roboto-Light.ttf");
}

body{
    background-color: black;
    margin-bottom: 100px;
}

html {
    scroll-behavior: smooth;
}

.contenu{
    padding: 0px 200px;
}

/* menu */

nav{
    position: fixed;
    z-index: 1;
    overflow: auto;
    right: 0;
    margin: 20px;
    margin-top: 30px;
}

.header-toogle{
    display: none;
}

#main-header{
    display: none;
}

.header-menu a{
    text-decoration: none;
    margin: 10px;
    font-family: "Roboto";
    font-size: 30px;
    color: #914152;
}

.header-menu a:hover{
    text-shadow: white 0.1em 0.1em 0.2em;
}

@media screen and (max-width:993px){
    .header-toogle{
        display: block;
        top: 25px;
        right: 10px;
        position: absolute;
    }
    
    .header-toogle-close{
        display: none;
    }
    
    .header-menu a{
        border: 1px solid black;
    }
    
    .header-menu{
        margin-top: 10%;
        display: flex;
        flex-direction: column;
        max-height:0;
        overflow: hidden;
    }
    
    #main-header:target .header-toogle-close{
        display:inline;
    }
    
    #main-header:target .header-toogle-open{
        display:none;
    }
    
    #main-header:target .header-menu{
        max-height: 300px;
    }
    
    .banniere svg{
        width: 100%!important;
        padding-bottom: 60px;
    }
}


/*banniere*/

.banniere{
    background-image: url(Images_illustration/Photo_shoot.jpg);
    background-size: cover;
    min-height: 800px;
    background-attachment: fixed;
    background-position: center;
    margin-top: -10px;
    position: relative;
    height: 100vh;
}

.banniere svg{
    width: 40%;
    position: absolute;
}

#domaines{
    bottom: 0;
    right: 0;
}

.derouler{
    position: absolute;
    bottom: 0;
    left: 40%;
    margin-bottom: 60px;
}

.derouler a{
  color: black;
  padding: 0.7em calc(0.7em * 1.2);
  display: inline-block;
  border: 3px solid transparent;
  position: relative;
  font-size: 1.5em;
  cursor: pointer;
  letter-spacing: 0.07em;
}

#button{
    border: 0;
    background-color: transparent;
    color: white;
}

.derouler a #button {
    font-family: "RobotoMedium";
    font-size: 40px;
    transform: translate3d(0, 0.7em, 0);
    display: block;
    transition: transform 0.4s cubic-bezier(0.2, 0, 0, 1) 0.4s;
}
.derouler a:after {
    position: absolute;
    content: '';
    bottom: -3px;
    left: calc(0.7em * 1.2);
    right: calc(0.7em * 1.2);
    height: 3px;
    background-color: #914152;
    transition: transform 0.8s cubic-bezier(1, 0, 0.37, 1) 0.2s, right 0.2s cubic-bezier(0.04, 0.48, 0, 1) 0.6s, left 0.4s cubic-bezier(0.04, 0.48, 0, 1) 0.6s;
    transform-origin: left;
}

.derouler .line {
    position: absolute;
    background-color: #914152;
}

.derouler .line.-right, .derouler .line.-left {
    width: 3px;
    bottom: -3px;
    top: -3px;
    transform: scale3d(1, 0, 1);
}

.derouler .line.-top, .derouler .line.-bottom {
    height: 3px;
    left: -3px;
    right: -3px;
    transform: scale3d(0, 1, 1);
}

.derouler .line.-right {
    right: -3px;
    transition: transform 0.1s cubic-bezier(1, 0, 0.65, 1.01) 0.23s;
    transform-origin: top;
}

.derouler .line.-top {
    top: -3px;
    transition: transform 0.08s linear 0.43s;
    transform-origin: left;
}

.derouler .line.-left {
    left: -3px;
    transition: transform 0.08s linear 0.51s;
    transform-origin: bottom;
}

.derouler .line.-bottom {
    bottom: -3px;
    transition: transform 0.3s cubic-bezier(1, 0, 0.65, 1.01);
    transform-origin: right;
}

.derouler a:hover #button,
.derouler a:active #button {
    transform: translate3d(0, 0, 0);
    transition: transform 0.6s cubic-bezier(0.2, 0, 0, 1) 0.4s;
}

.derouler a:hover:after,
.derouler a:active:after {
    transform: scale3d(0, 1, 1);
    right: -3px;
    left: -3px;
    transform-origin: right;
    transition: transform 0.2s cubic-bezier(1, 0, 0.65, 1.01) 0.17s, right 0.2s cubic-bezier(1, 0, 0.65, 1.01), left 0s 0.3s;
}

.derouler a:hover .line,
.derouler a:active .line {
    transform: scale3d(1, 1, 1);
}

.derouler a:hover .line.-right,
.derouler a:active .line.-right {
    transition: transform 0.1s cubic-bezier(1, 0, 0.65, 1.01) 0.2s;
    transform-origin: bottom;
}

.derouler a:hover .line.-top,
.derouler a:active .line.-top {
    transition: transform 0.08s linear 0.4s;
    transform-origin: right;
}

.derouler a:hover .line.-left,
.derouler a:active .line.-left {
    transition: transform 0.08s linear 0.48s;
    transform-origin: top;
}

.derouler a:hover .line.-bottom,
.derouler a:active .line.-bottom {
    transition: transform 0.5s cubic-bezier(0, 0.53, 0.29, 1) 0.56s;
    transform-origin: left;
}

@media screen and (max-width:993px){
    .derouler{
        margin-bottom: 50px;
        left: 35%;
    }
    .derouler a{
        font-size: 2em;
    }
}


/* à propos de moi */

.about{
    margin-top: 100px;
}

.about p, .about h2, .about h4{
    color: white;
}

.about h2{
    text-align: center;
    font-family: "RobotoMedium";
    font-size: 50px;
}

.about p{
    font-family: "RobotoLight";
    font-size: 20px;
}

.about > p{
    text-align: center;
}

.about h4{
    margin-top: 0;
    font-family: "Roboto";
    font-size: 35px;
    text-align: center;
}

.description1 {
    display: flex;
    flex-direction: row;
    margin-top: 120px;
}

.description_droite{
    margin-left: 80px;
}

.about .liste{
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    grid-gap: 40px;
}

.icone_compt{
    width: 20%;
}

.about .liste .frise{
    width: 50%;
}

.liste > div{
    text-align: center;
}

.liste p{
    font-size: 20px;
}

.exp{
    display: flex;
    flex-direction: column;
}

.about .description_milieu{
    margin-top: 70px;
}

.description_milieu .liste_hobbies{
    display: flex;
    justify-content: center;
    
}

.description_milieu .element_hobbies{
    margin-left: 50px;
    margin-right: 50px;
}

.description_milieu .element_hobbies img{
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.exp_date{
    color: #914152;
}

@media screen and (max-width:993px){
    .contenu{
        padding: 0px 100px;
    }
    
    .description1{
        display: block;
    }
    
    .description1 div{
        margin-bottom: 100px;
    }
    
    .icone_compt{
        width: 30%;
    }
    
    .about .liste{
        grid-template-columns: 1fr 1fr;
        grid-template-areas: 
            "pp ii"
            "jp hc"
            "gi gi";
    }
    
    #comp3{
        width: 50%;
        display: inline-block;
    }
    
    #comp3 p{
        font-size: 50px;
        margin-bottom: 20px;
        margin-top: 20px;
    }
    
    .about .liste .frise{
        width: 70%;
    }
    
    .description_droite{
        margin-left: 0;
    }
    
    .exp{
        display: block;
    }
    
    .description_milieu .element_hobbies{
        margin-left: 0;
        margin-right: 0;
    }
    
    .description_milieu .liste_hobbies{
        display: block;
        text-align: center;
    }
    
    .description_milieu .element_hobbies img{
        width: 15%;
    }
}


/* mes projets */

.projects{
    margin-top: 120px;
}

.projects h2{
    text-align: center;
    font-family: "RobotoMedium";
    font-size: 50px;
}

.projects h2, .projects h3{
    color: white;
}

.projects > div{
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    z-index: 2;
    overflow: hidden;
}

.projects > div > div{
    flex-basis: 31%;
    text-align: center;
    margin-bottom: 20px;
    padding: 10px;
}

.projects > div > div > a{
    display: block;
    text-decoration: none;
    width: 700px;
    height: 370px;
}

.projects-img{
    position: relative;
}

.projects-img img{
    width: 700px;
    height: 500px;
    object-fit: cover;
    margin-top: 5px;
    
}

.projects-over > span{
    top: 100%;
    width: 100%;
    left: 0;
    position: absolute;
    overflow: hidden;
    transform: translateY(-50%);
    transition: top 600ms ease-in-out;
}

.projects a:hover .projects-over{
    opacity: 0.7;
}

.projects a:hover .projects-over > span{
    top: 40%;
}

.projects-over{
    position: absolute;
    background: rgba(0,0,0,0.7);
    opacity: 0;
    top: 0.1px;
    right: 0.1px;
    left: 0.1px;
    bottom: 0.1px;
    transition: opacity 300ms ease-in-out;
}

.projects-over .title{
    color: white;
    font-size: 30px;
    font-family: "Roboto";
}

@media screen and (max-width:993px){
    .projects-over{
        opacity: 0.7;
        transition: none;
    }
    
    .projects-over > span{
        top: 40%;
        transition: none;
    }
    
    .projects-over .title{
        font-size: 50px;
    }
}

/* me contacter */

.contact{
    margin-top: 120px;
    text-align: center;
}

.contact h2{
    color: white;
    text-align: center;
    font-family: "RobotoMedium";
    font-size: 50px;
}

.contact p{
    color: white;
    font-size: 20px;
    font-family: "RobotoLight";
}

.contact a{
    text-decoration: none;
    color: #914152;
    font-size: 20px;
    font-family: "RobotoLight";
}

.contact #cv:hover{
    text-decoration: line-through;
}

.contact > div{
    display: flex;
    justify-content: center;
}

.contact2{
    margin-left: 70px;
    margin-right: 70px;
}

.img_hover1, .img_hover2, .img_hover3{
    display: none;
}

.contact1:hover .img_hover1{
    display: inline-block;
}

.contact1:hover .img1{
    display: none;
}

.contact1:hover p{
    color: #914152;
}

.contact2:hover .img_hover2{
    display: inline-block;
}

.contact2:hover .img2{
    display: none;
}

.contact2:hover p{
    color: #914152;
}

.contact3:hover .img_hover3{
    display: inline-block;
}

.contact3:hover .img3{
    display: none;
}

.contact3:hover p{
    color: #914152;
}

.maj{
    margin-top: 50px;
    color: white;
    text-align: right;
    font-family: "RobotoLight";
}

@media screen and (max-width:993px){
    .contact1 img{
        width: 60%;
    }
    
    .contact2{
        padding-top: 20px;
    }
    
    .contact2 img{
        width: 100%;
    }
    
    .contact3 img{
        width: 80%;
    }
    
    .contact1 p, .contact2 p, .contact3 p{
        font-size: 30px;
    }
    
    .contact .cv_pdf{
        display: none;
    }

    .maj{
        margin-top: 70px;
        font-size: 9px;
    }
    
    a#cRetour{
        display: none;
    }
}


a#cRetour{
    border-radius: 3px;
    padding: 10px;
    font-size: 15px;
    text-align: center;
    color: black;
    background: white;
    position: fixed;
    right: 20px;
    opacity: 1;
    z-index: 99;
    transition: all ease-in 0.2s;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    text-decoration: none;
}

a#cRetour:before{ 
    content: "\25b2"; 
}

a#cRetour:hover{
    background: black;
    color: white;
    transition:all ease-in 0.2s;
}

a#cRetour.cInvisible{
    bottom:-35px;
    opacity:0;
    transition:all ease-in 0.5s;
}

a#cRetour.cVisible{
    bottom:20px;
    opacity:1;
}