@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,100..1000;1,9..40,100..1000&family=Raleway:ital,wght@0,100..900;1,100..900&display=swap');

html, body{
    margin: 0;
    padding: 0;
    cursor: none;
    position: relative;
    scroll-snap-type: y mandatory;
    background-color: inherit;
    scrollbar-width: none;
    scroll-behavior: smooth;
}

body {
    color: black;
    font-family: "Aesthetic", sans-serif;
    
}


p{
    font-family: "DM Sans";
    font-weight: 200;
}

a{
    color: white;
    text-decoration: none;
    cursor: none;
}


@font-face {
    font-family: "Aesthetic";
    src: url(../font/AestheticRegular.otf) format("opentype");
    src: url(../font/AestheticRegular.ttf) format("truetype");
}


#curseur {
    position: fixed;
    top: 0;
    left: 0;
    width: 15px;
    height: 15px;
    border-radius: 50%;
    background: white;
    mix-blend-mode: difference;
    pointer-events: none;
    z-index: 999999;
    transition: transform 0.1s ease-out;
}




#menu-sortant-main.active {
  margin-left: 0;
}


#menu-sortant-main{
    margin-left: -100vw;
    position: fixed;
    top: 0;
    left: 0;
    color: white;
    background-color: black;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100vh;
    width: 100vw;
    transition: 0.2s ease-in-out;
    animation-timing-function: cubic-bezier(0.7, 0, 0.3, 1);
}

.main-container{
    display: flex;
    align-items: center;
} 

.main-container .number{
    font-family: "Aesthetic";
    margin-right: 300px;
}

.main-container .text h2 a{
    font-family: "Aesthetic";
    text-decoration: none;
    color: white;
    cursor: none;
}


#nav-menu-sortant{
    display: flex;
    justify-content: space-between;
    align-items: center;
}

#nav-menu-sortant div a{
    color: white;
    text-decoration: none;
    font-family: "DM Sans";
    font-weight: 200;
    margin: 0;
}

.line{
    background-color: white;
    height: 0.5px;
    width: 1200px;
    opacity: 0;
    transform: scaleX(0);
    transition: all 0.6s ease-out;
    transform-origin: left;
}

.line.visible {
    opacity: 1;
    transform: scaleX(1);
  }
  
#points{
    font-size: 75px;
    position: fixed;
    left: 0;
    top: 450px;
    margin-left: 20px;

    mix-blend-mode: difference;
    color: white;
    background-color: white;
    z-index: 1000;
    transition: 0.2s ease-in-out;
    animation-timing-function: cubic-bezier(0.7, 0, 0.3, 1);
}

#points.cache{
    margin-left: -50px;
}

header #divNavLinks a{

    mix-blend-mode: difference;
    text-decoration: none;
    font-family: "DM Sans";
    font-weight: 300;
    transition: 0.5s ease-in-out;
}


#points p.active{
    font-weight: bold;
}

#points p{
    margin-top: -80px;
    margin-bottom: -80px;
    transition: 0.3s ease-in-out;
}


#presentation{

    background-color: #e0dfdb;
    height: 100vh;
    scroll-snap-type: y mandatory;
    display: flex;
    flex-direction: column;
    align-items: center;
}

#presentation article{
    display: flex;
    justify-content: center;
}

#presentation h1{
    font-family: "Aesthetic";
    font-size: 210px;
}

#btn-menu{
    padding-left: 30px;
    height: 35px;
    width: 35px;
    transition: 0.5s ease-in-out;
}

.navlinks{
    z-index: 10000;
    mix-blend-mode:multiply;
    text-decoration: none;
    font-family: "DM Sans";
    font-weight: 300;
    padding-right: 30px;
}


header {
    position: fixed;
    z-index: 10000;
    width: 100%;
    padding-top: 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: inherit;
}
      

  

header.scroll{
    padding-top: 10px;
    background: linear-gradient(rgba(0, 0, 0, 0.237), rgba(255, 255, 255, 0));
}

#titre{
    height: 250px;
    margin-top: 300px;
    max-width: 90%;
width: 100%;

}

#titre h1, #titre p{
    margin: 0;
    font-weight: 300;
}

#prenomdate{
    margin-top: -30px;
    padding: 0 10px 0 10px;
    display: flex;
    align-items: center;
    justify-content: space-between; 
    text-transform: uppercase;
}


#texte-presentation{
    width: 350px;
}

#texte-presentation p{
    color: black;
    text-transform: uppercase;
}


#presentation aside{
    margin-top: 150px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 90%;
width: 100%;

}

#presentation aside #div-btn-explore button{
    
    background-color: inherit;
    text-align: center;
    border: 1px solid black;
    border-radius: 50px;
    padding: 25px 40px;
    transition: 0.5s;
    
}

#presentation aside #div-btn-explore button:hover{
    background-color: black;
    color: white;
    -webkit-box-shadow: 0px 2px 16px -2px rgba(0,0,0,0.5); 
    box-shadow: 0px 2px 16px -2px rgba(0,0,0,0.5);
}

#presentation aside #div-btn-explore button{

    color: black;
    text-decoration: none;
}



#presentation, #section2, #section3{
    scroll-snap-align: start;
}












#section2{
    height: 100vh;
    background-color: rgb(0, 0, 0);
    display: flex;
    align-items: center;
    justify-content: space-evenly;

}


#gauche{
    height: 80vh;
    width: 40%;
}

#gauche div h2{
    font-weight: 100;
    height: 30%;
    font-size: 80px;
    color: white;
}

#projet1{
    width: 100%;
    height: 70%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    color: white;
}



.anim-image{
    opacity: 0;
    overflow: hidden;
    width: 700px;
    height: auto;
    transition: 1s ease-in-out;
    transition-delay: 0.3s;
}

.anim-image.active{
    opacity: 1;
    overflow: hidden;
    width: 700px;
    height: auto;
    transition: 1s ease-in-out;
    transition-delay: 0.3s;

}

.anim-image:hover{
    scale: 1.03;
}

#projet1 div,#projet2 div {
    overflow: hidden;
}








#projet2{
    width: 100%;
    height: 70%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    color: white;
}

.description-projet{
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}










#droit{
    height: 80vh;
    width: 40%;
}

#section2 #droit button{
    margin-top: 155px;
    float: right;
    background-color: inherit;
    text-align: center;
    border: 1px solid white;
    border-radius: 50px;
    padding: 25px 40px;
    transition: 0.5s;
    
}

#section2 #droit button:hover{
    background-color: white;
    color: black;
    -webkit-box-shadow: 0px 2px 16px -2px rgba(0,0,0,0.5); 
    box-shadow: 0px 2px 16px -2px rgba(0,0,0,0.5);
}

#section2 #droit button{
    color: white;
    text-decoration: none;
    
}




#section3{

    /* padding-top: 100px; */
    padding: 0;
    margin: 0;
    height: 100vh;
    /* background-color: #e0dfdb; */
    background-image: url(../images/fondContact.png);
    background-size: cover;
    background-position: center;
}


form{
    padding-top: 150px;
    /* background-color: rgba(255, 0, 0, 0.212); */
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

article{
    width: 70%;
    /* background-color: rgba(255, 0, 0, 0.404); */
    display: flex;
    align-items: center;
    justify-content: space-evenly;
}


form div:first-child{
    height: 300px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-direction: column;
}



textarea{
    height: 200px;
}




input, textarea{
    outline: none;
    border: none;
    background-color: inherit;
    border-bottom: 0.5px solid #adaba4;
    font-family: "DM sans";
    padding: 10px;
    transition: 0.5s ease-in-out;
}


input:focus, textarea:focus{
        outline: none;
        border: 0.5px solid #adaba4;
        border-radius: 10px;

}


#btn-envoyer-msg{
    margin-top: 100px;
    float: right;
    background-color: inherit;
    text-align: center;
    border: 1px solid black;
    border-radius: 50px;
    padding: 20px 40px;
    transition: 0.5s;
    color: black;
    text-decoration: none;
}


#btn-envoyer-msg:hover{
    background-color: black;
    color: white;
    -webkit-box-shadow: 0px 2px 16px -2px rgba(0,0,0,0.5); 
    box-shadow: 0px 2px 16px -2px rgba(0,0,0,0.5);
}

input{
    padding: 10px 30px;
}


#fleche{
    margin: 0;
}


#divfleche{
    display: flex;
    align-items: center;
    justify-content: center;
    position: fixed;
    bottom: 20px;
    right: 30px;
    height: 30px;
    width: 30px;
    border-radius: 50%;
    /* transition: 1s ease-in-out; */
}


#divfleche:hover{
    border: 0.5px solid black;
}


/* === Loader plein écran === */
#loader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: white;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  transition: opacity 0.5s ease, visibility 0.5s ease;
  visibility: visible;
  opacity: 1;
}

/* === Conteneur de la barre === */
.barre-longue {
  width: 600px;
  height: 80px;
  border: 3px solid black;
  background-color: white;
  border-radius: 8px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 20px;
  box-sizing: border-box;
}

/* === Carrés noirs animés === */
.carre {
  width: 30px;
  height: 50px;
  background-color: black;
  opacity: 0;
  transform: scaleY(0.3);
  animation: apparaitre 0.4s forwards ease-out;
}

.carre:nth-child(1) { animation-delay: 0.1s; }
.carre:nth-child(2) { animation-delay: 0.2s; }
.carre:nth-child(3) { animation-delay: 0.3s; }
.carre:nth-child(4) { animation-delay: 0.4s; }
.carre:nth-child(5) { animation-delay: 0.5s; }
.carre:nth-child(6) { animation-delay: 0.6s; }
.carre:nth-child(7) { animation-delay: 0.7s; }
.carre:nth-child(8) { animation-delay: 0.8s; }
.carre:nth-child(9) { animation-delay: 0.9s; }
.carre:nth-child(10) { animation-delay: 1s; }

@keyframes apparaitre {
  to {
    opacity: 1;
    transform: scaleY(1);
  }
}

/* === Disparition du loader === */
#loader.fade-out {
  opacity: 0;
  visibility: hidden;
}
.bloc-chargement {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.texte-chargement {
  font-family: Arial, sans-serif;
  font-size: 18px;
  color: #333;
  letter-spacing: 1px;
}
@media screen and (max-width: 768px) {
  /* HEADER FIXÉ EN HAUT */
  header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 10px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: inherit;
    z-index: 9999;
  }

  /* BOUTON MENU ≡ */
  #div-btn-menu {
    flex-shrink: 0;
  }

  #btn-menu {
    width: 30px;
    height: 30px;
  }

  /* ABOUT & CONTACT + MENU EN LIGNE ET CENTRÉS */
  #divNavLinks {
    display: flex;
    flex-direction: row;
    gap: 20px;
    justify-content: center;
    flex: 1;
  }

  .navlinks {
    font-size: 15px;
    color: black;
    font-weight: 400;
  }

  .navlinks:hover {
    text-decoration: underline;
  }

  /* TITRE + NOM + DATE CENTRÉS */
  #titre {
    width: 100%;
    padding: 0 20px;
    margin-top: 120px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 15px;
  }

  #titre h1 {
    font-size: clamp(50px, 10vw, 100px);
    margin: 0;
  }

#prenomdate {
  display: flex;
  flex-direction: column;
  gap: 5px;
  text-align: center;
  font-size: 14px;
  margin-top: 15px; /* ✅ Ajoute cette marge pour aérer */
}


  /* SECTION PRÉSENTATION */
  #presentation h1 {
    font-size: 60px;
  }

 #presentation aside {
  margin-top: 10px; /* encore plus haut */
  padding: 0 20px;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 30px;
}

#texte-presentation p {
  margin: 0;
  line-height: 1.7;
  letter-spacing: 0.3px;
  word-break: break-word;
  text-align: center;
  list-style: none;
}




  #texte-presentation {
    width: 100%;
    text-align: center;
  }

  #div-btn-explore {
    text-align: center;
  }

  /* SECTIONS PROJETS */
  #section2 {
    flex-direction: column;
    height: auto;
    padding: 50px 20px;
  }

  #gauche, #droit {
    width: 100%;
    height: auto;
  }

  .anim-image {
    width: 100%;
    max-width: 100%;
  }

  .description-projet {
    flex-direction: column;
    gap: 10px;
  }

  /* FORMULAIRE CONTACT */
  form article {
    flex-direction: column;
    width: 100%;
  }

  input, textarea {
    width: 90vw;
  }

  /* CACHER LE BOUTON "HOME" DANS LE MENU SORTANT */
header #divNavLinks a[href="index.html"] {
  display: none;
}


  #section2 {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 60px 20px;
  gap: 40px;
  background-color: black;
  height: auto; /* ✅ Plus de 100vh qui coupe */
}

#gauche, #droit {
  width: 100%;
  height: auto;
}

#gauche div h2 {
  font-size: 40px; /* ✅ Réduction du titre */
  text-align: center;
  margin-bottom: 20px;
}

#projet1, #projet2 {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 0 10px;
}

.anim-image {
  width: 100%;
  height: auto;
  max-width: 100%;
}

.description-projet {
  width: 100%;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 5px;
  color: white;
}

#section2 #droit button {
  align-self: center;
  margin-top: 30px;
  padding: 15px 30px;
  font-size: 14px;
}
#section3 {
  height: auto;
  padding: 60px 20px;
  background-size: cover;
  background-position: center;
}

form {
  padding: 0;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 30px;
}

form article {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: center;
}

form article input,
form article textarea {
  width: 90%;
  padding: 10px 15px;
  border: none;
  border-bottom: 1px solid #aaa;
  background: transparent;
  color: black;
  font-family: "DM Sans";
  font-size: 14px;
}

#btn-envoyer-msg {
  display: block;
  margin: 0 auto 40px auto;
  padding: 15px 40px;
  border: 1px solid black;
  border-radius: 50px;
  font-size: 14px;
  background-color: inherit;
  color: black;
  transition: 0.3s ease;
}

#btn-envoyer-msg:hover {
  background-color: black;
  color: white;
}




#menu-sortant-main {
  margin-left: -100vw;
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  width: 100vw;
  background-color: black;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  z-index: 9999;
  transition: 0.3s ease-in-out;
  overflow-y: auto;
}

#menu-sortant-main.active {
  margin-left: 0;
}

#menu-sortant {
  width: 100%;
  padding: 40px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 30px;
}

.main-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 5px;
}

.main-container .number {
  font-family: "Aesthetic";
  color: white;
  font-size: 16px;
}

.main-container .text h2 {
  font-family: "Aesthetic";
  font-size: 28px;
  color: white;
  margin: 0;
}

.main-container .text p {
  font-family: "DM Sans";
  font-size: 14px;
  color: white;
  margin: 0;
}

.line {
  width: 80%;
  height: 1px;
  background-color: white;
  opacity: 0.3;
}
#nav-menu-sortant {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 30px;
  box-sizing: border-box;
}

#nav-menu-sortant #close p,
#nav-menu-sortant a {
  font-family: "DM Sans";
  color: white;
  font-size: 16px;
  text-decoration: none;
}


}

