/*********************************************************** load screen *********************************************/

#loader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgb(234, 234, 234);
  z-index: 9999;
  display: flex;
  justify-content: center;
  align-items: center;
  animation: arawarero 1s ease forwards;
}

.spinner {
  width: 50px;
  height: 50px;
  border: 5px solid #252357;
  border-top-color: #f39b18;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  z-index: 999999999;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes arawarero {
  0% {
    opacity: 1;
  }

  100% {
    opacity: 0;
  }
}


/*--------------------------------------------------- style page d'accueil --------------------------------------------------------------------*/

.content_1 {
  width: 100%;
  height: auto;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.content_1 .first_title {
  padding-top: 60px;
  font-size: 70px;
}

.home_text {

  width: 60%;
  padding-top: 100px;
  -webkit-text-stroke: 0.5px;
  text-align: left;
  font-size: 1.2rem;
  line-height: 1.6;
  color: #444;
  /* Centré et espacé */
  text-align: justify;
  padding: 0 20px;
}



.imdf {
  width: 10%;
}



/*------------------------------------------------------------------------------------ style page projets -------------------------------------------------------------------------------------------------*/



/* Section des projets */
.projects {
  padding: 20px;
  text-align: center;
}

.projects h1 {
  font-size: 2.5rem;
  margin-bottom: 20px;
}

.projects p {
  font-size: 1.1rem;
  margin-bottom: 30px;
}

/* Liste des projets */
.project-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
  padding: 0;
}

.project-item {
  background-color: white;
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  text-align: left;
  padding: 20px;
  transition: transform 0.3s ease;
}

.project-item:hover {
  transform: scale(1.05);
}

.project-image {
  width: 100%;
  height: 50%;
  border-radius: 8px;
  margin-bottom: 15px;
}

.project-title {
  font-size: 1.6rem;
  color: #333;
  margin-bottom: 10px;
}

.project-description {
  font-size: 1rem;
  color: #555;
  margin-bottom: 15px;
}

.project-link {
  display: inline-block;
  padding: 10px 15px;
  margin-bottom: 20px;
  background-color: #1e1e2f;
  color: white;
  text-decoration: none;
  border-radius: 5px;
  transition: background-color 0.3s ease;
}

.project-link:hover {
  background-color: #1e1e2fcb;
}





/*---------------------------------------------------------------------------- style page a propos ----------------------------------------------------------------------------------*/


.container-perspective-img {
  perspective: 700px;
  /* Donne de la profondeur */
  margin: 40px;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
}

@media (min-width: 1068px) {
  .image-profondeur1 {
    max-width: 45%;
    transform: rotateY(20deg);
    /* Inclinée vers la droite */
    transform-origin: center left;
    /* Le point de rotation est à gauche */
    transition: transform 0.5s ease;
    box-shadow: -10px 20px 15px rgba(0, 0, 0, 0.4);
    /* Ombre pour accentuer l’effet */
    border: 2px solid black;
    border-radius: 10px;
  }


  .image-profondeur2 {
    max-width: 45%;
    transform: rotateY(-20deg);
    /* Inclinée vers la droite */
    transform-origin: center right;
    /* Le point de rotation est à gauche */
    box-shadow: 10px 20px 20px rgba(0, 0, 0, 0.4);
    /* Ombre pour accentuer l’effet */
    transition: transform 0.5s ease;
    border: 2px solid black;
    border-radius: 10px;
  }

  .image-profondeur1:hover {
    transform: rotateY(0deg) scale(1.05);
  }

  .image-profondeur2:hover {
    transform: rotateY(0deg) scale(1.05);
  }
}

.pres_infos {
  margin-right: 30px;
  margin-left: 30px;
  padding-left: 20px;
  padding-right: 20px;
}

.pres_title {
  font-size: 2rem;
  /* Taille adaptée pour des h2 */
  font-weight: 700;
  color: #222;
  margin-bottom: 10px;
  text-align: center;
  letter-spacing: 1px;
  padding-bottom: 10px;
}

.pres_text {
  font-size: 1.3rem;
  line-height: 1.6;
  color: #444;
  max-width: 800px;
  margin: 0 auto 30px auto;
  /* Centré et espacé */
  text-align: justify;
  padding: 0 20px;
}

@media (max-width: 1068px) {
  .container-perspective-img {
    flex-direction: column;
    margin: 20px;
    gap: 20px;
  }

  .image-profondeur1,
  .image-profondeur2 {
    max-width: 90%;
    transform: none;
    box-shadow: none;
    border: 2px solid black;
    border-radius: 10px;
  }
  

  .pres_infos {
    margin: 0 10px;
    padding: 0 10px;
  }

  .pres_title {
    font-size: 1.5rem;
    padding-bottom: 5px;
  }

  .pres_text {
    font-size: 1rem;
    line-height: 1.5;
    margin: 0 auto 20px auto;
    padding: 0 10px;
  }


}

/*------------------------------------------------------------------------------------ footer -------------------------------------------------------------------------------------------------*/

.footer {
  padding: 20px 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #1e1e2f;
  margin-top: 160px;
  color: white;
  text-align: center;
}

/*----------------------------------------------------------------------------------- Responsive ------------------------------------------------------------------------------------------*/

@media (max-width: 1068px) {

  .content_1 {
    flex-direction: column;
    text-align: center;
    display: block;
  }

  .content_1 .first_title {
    font-size: 40px;
    margin-left: auto;
    margin-right: auto;
    padding-top: 40px;
  }

  .home_text {
    width: 90%;
    padding-top: 60px;
    font-size: 1.2rem;
    line-height: 1.5;
    padding: 0 15px;
  }


  .imdf {
    width: 50%;
  }
}



/*******************************************  Navbar Style  ******************************************/
body {
  overflow-x: hidden;
}

.no-scroll {
  position: fixed;
  overflow-y: scroll;
}


/* Bouton burger caché par défaut */
.burger {
  display: none;
  font-size: 2em;
  background: none;
  border: none;
  cursor: pointer;
  margin-left: auto;
}



.side-menu .logo_ico {
  display: none;
}

/* Responsive navbar */
@media (max-width: 1068px) {
  .burger {
    display: block;
    position: fixed;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    color: orange;
    font-size: 24px;
    border: none;
    cursor: pointer;
    z-index: 1002;
    transition: 0.3s ease;
    background-color: #1e1e2f;
    border-radius: 50%;
  }

  .burger:hover {
    background-color: rgb(124, 204, 231);
  }

  .barnav {
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: transform 0.3s ease;
  }

  .barnav.hidden {
    transform: translateY(-100%);
  }

  .side-menu {
    position: fixed;
    top: 0;
    right: +110%;
    width: 100dvw;
    height: 100dvh;
    color: white;
    transition: right 0.4s ease;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 60px;
    overflow-y: hidden;
  }

  .side-menu .logo_ico {
    display: block;
    margin-top: 0px;
    margin-bottom: 20px;
  }

  .side-menu ul {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: left;
  }

  .side-menu {
    display: flex;
    flex-direction: column;
    justify-content: center;
    /* centre verticalement */
    align-items: center;
    /* centre horizontalement */
    height: 100vh;
    padding: 0;
  }

  .side-menu ul {
    display: flex;
    flex-direction: column;
    gap: 20px;
    /* espace entre les liens */
    padding: 0;
    margin: 0;
    list-style: none;
    text-align: center;
  }

  .side-menu li {
    margin: 20px 0;
  }

  .side-menu a {
    color: white;
    font-size: 20px;
    text-decoration: none;
  }

}