body {
    margin: 0;
    background: radial-gradient(circle, rgba(238, 174, 202, 0.459) 0%, rgba(244, 204, 204, 0.481) 37%, rgba(255, 255, 255, 0.459) 100%);
    font-family: "DM Serif Text", serif;
}
p{
    font-family: "Montserrat", sans-serif;

}

body.dark{
    background: none;
    background-color: #000;
    border-color : white;
}

header.dark{
    background-color: #000;
    border-color : white;
}



* {
    text-decoration: none;
    list-style-type: none;
    box-sizing: border-box;
   
}

a{
    color : black;
}

a.dark{
    color : white;
}

section.dark{
    border-color: white;
}

*.dark{
    color : white;
    border-color: white;
}

h2,
h3 {
    text-align: center;

}

section {
    display: flex;
    flex-direction: column;
    align-items: center;
    box-sizing: border-box;
    padding-top: 2vh;
    padding-bottom: 2vh;
    

}

section.border{
    border-top: none;
}

.border{
    border: 0.5px solid black;
}

.border-r{
    border-right: solid 0.5px black;
}
.border-l{
    border-left: solid 0.5px black;
}

.border-t {
    border-top: 0.5px solid black;
}

.border-b {
    border-bottom: 0.5px solid black;
}

.border.dark{
    border-color: white;
}

.border-t.dark{
    border-color: white;
}
.border-r.dark{
    border-color: white;
}
.border-l.dark{
    border-color: white;
}

.border-b.dark{
    border-color: white;
}

.bg-white{
    background-color: #fff;
}

.bg-white.dark{
    background-color: #000;
}


/*---------------------------------------header et navbar------------------------------------------------------------------*/

header {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    z-index: 10;
    top: 0;
    padding: 10px;
    box-sizing: border-box;
}
headera {
    width: 80%;

}

.menuUl{
    list-style-type: none;
    padding: 0;
    margin: 0;
}

.menu {
    
    font-size: 1.5rem;
    position: absolute;
    right: 0;
    width: 70%;
    bottom: 0;
    transform: translateY(100%);
    clip-path: polygon(100% 0, 100% 0, 100% 100%, 100% 100%);
    transition-duration: 100ms;
    visibility: hidden;
    min-height: 100vh;
    transition: linear;
}

.btToggle{
    display : flex;
    
}

.formMode{
    position : absolute;
    bottom : 20vh;
    right : 10%;
}

.btToggle .btn {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 34px;
    line-height : 34px;
    color:#fff;
  }
  
  /* Hide default HTML checkbox */
  .btToggle input {
    opacity: 0;
    width: 0;
    height: 0;
  }
  
  /* The slider */
  .btToggle .slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0; 
    bottom: 0;
     right:0;
    background-color: #000;  
    border-radius: 34px; 
    white-space : nowrap;
  }
  
  .btToggle .slider:before {
    position: absolute;
    content: "";
    height: 26px;
    width: 26px;
    left: 4px;
    bottom: 4px;
    background-color: white; 
    border-radius: 50%;
  }
  
  .btToggle input:checked + .slider {
    background-color: #fff; 
  }
  
  .btToggle input:focus + .slider {
    box-shadow: 0 0 1px #2196F3;
    color:#000;
  }
  
  .btToggle input:checked + .slider:before {
    right:4px;
    left:auto;
    background-color: #000;
  }

  .label{
    width : 34px;
  }

.menu-icon {
    appearance: none;
    border: none;
    background: transparent;
}

.menu-icon img {
    width: 100%;
    height: 100%;
}

.menu-icon .ferme{
    display : none;
}


.imgfleche.fleche-haut {
    width: 50px;
    transform: rotate(180deg);
}

.imgfleche.fleche-bas {
    width: 50px;
    transform: rotate(0);
}

.btnFleche {
    border: none;
    background: transparent;
    width: 26px;
    height : 26px;
    padding : 0;
    padding-inline: 6px;

}

.menu.open {
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0% 100%);
    transition: linear;
    transition-duration: 100ms;
    visibility: visible;
}

.menu-item {
    padding: 20px 5%;
}



.menu-link:hover:focus {
    font-weight: bold;
}

.menu-link.current {
    font-weight: bolder;
}

.navbar {
    width: 20%;
    min-width: 80px;
    max-width: 100px;
}

.has-submenu-titre{
    display: flex;
    align-items: center;
}

.sub-menu {
    clip-path: polygon(0 0, 100% 0, 100% 0, 0 0);
    transition: ease-in 0.1s;
}

.sub-menu > *{
    display : none;
}

.sub-menu.open > *{
    display : initial;
}

.sub-menu.open {
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
    display: flex;
    padding : 20px;
    flex-direction: column;
    gap : 15px;
    transition: ease-in 0.1s;
}

.etoile-ordi{
    display : none;
}

/*-----------------------------------presentation-----------------*/

main {
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;

}

.secPres{
    border-top: none;
}
.pres {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex-wrap: wrap;
    gap: 2vh;
    padding-right: 20px;
    padding-left: 20px;
    

}

.separateurEtoile{
    display : none;
}

.image {
    width: 70%;
    border-radius: 500px;
}

.image::after{
    content : "";
    border: solid black 0.5px;
    border-radius: 500px;
    transform:rotate3d(0,45deg,45deg)
}

.texte {
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
    align-items: center;

}

/*------------------------------- projets-----------------------*/

.gallerie {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex-wrap: wrap;
    gap: 40px;
    padding-left: 0;
    
}

.gallerie-item.show{
    opacity:1;
    transition: opacity 0.5s ease;
}

.gallerie-item {
    position: relative;
    width: 70vw;
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: center;
    padding: 20px;
    z-index: 1;
    box-shadow: 16px 16px 0px 0px rgb(250, 197, 216);
    min-height: 70vw;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.gallerie-item:hover {
    background-color: rgba(255, 255, 255, 0.445);
}

.gallerie-item.dark:hover{
    background-color: white;

}
.gallerie-item.dark:hover a{
    color: #000;
}


.img-projet {
    width: 60vw;
    height : 60vw;
    object-fit: contain;
    background-color: white;

}

.etoile {
    position: absolute;
    top: -30.5px;
    right: -30.5px;
    width: 60px;
    height: 60px;
    overflow: hidden;
}

.etoile img {
    width: 100%;
}

/* Style des titres */
.gallerie-item-titre {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    font-size: larger;

}

.cv {
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
    align-items: center;
    gap: 20px;
    padding: 20px;
    box-sizing: border-box;
}

.video{
    width : 81vw;
    height : calc(9/16*80vw);
}


.btn_cv {
    padding: 10px;
    width: 100%;
    text-align: center;

}

.btn_cv:hover {
    background-color: white;
    color : black;
}

.contact {
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
    gap: 7px;
    align-items: center;
    padding: 20px;
}

.contact-form {
    padding: 20px;
    position: relative;
    max-width: 80%;
}

.contact-form label {
    display: block;
    margin-bottom: 8px;
}

.contact-form input,textarea {
    width: 100%;
    padding: 8px;
    margin-bottom: 16px;
    box-sizing: border-box;
}

.contact-form button {
    padding: 10px 15px;
    cursor: pointer;
    width: 100%;
    background-color: transparent;
}

.contact-form button:hover {
    background-color: white;
    color : black;
}

.rs a{
    width : 20%;
}

.rs{
    display : flex;
    gap : 5px;
    padding : 10px;
    width : 100%;
    justify-content: space-evenly;
}

.rs img{
    width : 100%;
}

.infos-contact{
    display: flex;
    flex-direction: column;
    align-items: center;
}
/*-----------------------page projet---------------*/


.nomPro{
    margin: 0;
    padding: 10px 0 10px 0;
    width : 100%;
}
.projetGal {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 30px;
    margin: 0;
    gap : 35px;

}

.projetGal-item>img {
    width: 100%;
}

.projetGal-item {
    width: 100%;
    position: relative;
    padding: 20px;
}



.description {
    padding: 20px;
}

.log{
    width : 100%;
}

.log ul{
    list-style-type: none;
    display : flex;
    justify-content: space-evenly;
    align-items: end;
    padding: 0;
    width: 100%;
}

.log img{
    height : 50px;
}

.frame-site{
    width : 95vw;
    height : calc(16/9*95vw);
}



@media screen and (min-width: 800px) {

    /*------header------*/
    header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        position: sticky;
        z-index: 10;
        padding: 10px;
        box-sizing: border-box;
    }
    .titre {
        width: 30%;
    }
    main{
        flex-direction: row;
    }
    
    .menu {
        position: initial;
        width: 100%;
        transform: none;
        clip-path: none;
        transition-duration: 100ms;
        visibility: initial;
        min-height: 0;
        display: flex;
        border : none;
        gap : 10px;
        align-items: center;
        justify-content: right;
    }

    .menuUl{
        display: flex;
        gap : 5px;
    }

    .formMode{
        position: initial;
    }
    
    .menu-icon {
        display : none;}
    
    .imgfleche.fleche-haut {
        width : 30px;
        transform: rotate(180deg);
    }
    
    .imgfleche.fleche-bas {
        width: 30px;
        transform: rotate(0);
    }
    
    .menu-item {
        padding: 10px;
    }
    
    .menu-item:not(:first-child) {
        border-top: none;
    }
    
    .navbar {
        width: 70%;
    }
    .has-submenu{
        display : flex;
    }
    .sub-menu {
        display: block;
        clip-path: polygon(0 0, 100% 0, 100% 0, 0 0);
        position : absolute;
        top : 100%;
        right : 0;
        padding : 0;
        display : flex;
        flex-direction : column;
        align-items: center;
        transition: ease-in 0.1s;
    }
    .sub-menu.open {
        clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
        transition: ease-in 0.1s;
        width : 535.34px;
        padding : 0;
        gap:0;

    }

    
    .sub-menu-item{
        padding : 10px;
        width : 100%;
    }

    /*------about me------*/


.pres {
    display : grid;
    grid-template-columns: 1fr 0.1fr 1fr;

}

.separateurEtoile{
    display : block;
    width : 10%;
}

.image{
    width : 70%;
    align-self: center;
    justify-self: center;
}




    /*------gallerie------*/
    .gallerie {
        flex-direction: row;
        gap: 7vw;
        justify-content: start;
        padding: 40px;
    }
    
    .gallerie-item {
        width: 25vw;
        min-height : 35vw;
    }

    .gallerie-item img{
        height: 20vw;
        width : 20vw;
        object-fit: contain;
    }
    
    


    /*------cv----------*/

    .cv{
        width : 50%;
        position : relative;
    }

    .video{
        width : 40vw;
        height : calc(9/16*40vw);
    }

    .etoile-ordi {
        display : block;
        position: absolute;
        top: -30.5px;
        right: -30.5px;
        width: 60px;
        height: 60px;
        overflow: hidden;
    }

    /*-----contact-------*/

    .contact{
        width : 50%;
    }

    .contact.border{
        border-left : none;
    }

    /*----- projets -------*/

    .projetGal {
        display: flex;
        flex-direction: row;
        align-items:normal;
        gap : 35px;
        flex-wrap: wrap;

        
    
    }
    
   
    
    .projetGal-item {
        width: 40%;
        
    }

    .ordi-border-t{
        border-top: solid 0.5px black;
    }

    .ordi-border-l{
        border-left: solid 0.5px black;
    }

    .ordi-border-b{
        border-bottom: solid 0.5px black;
    }

    .ordi-border-t.dark{
        border-color : white;
    }

    .ordi-border-l.dark{
        border-color : white;
    }

    .ordi-border-b.dark{
        border-color : white;
    }



    
    
    
    .description {
        padding: 20px;
        width: 100%;
    }
    
    .frame-site{
        width : 95vw;
        height : calc(9/16*95vw);
    }

    .demo{
        width : 100%;
        display: flex;
        align-items: center;
        flex-direction: column;
        flex-wrap: wrap;
    }


}

@media screen and (min-width: 1000px){
    .gallerie-item{
        min-height: 27vw;
    }
}