body {
  font-family: "Space Grotesk", sans-serif;
  font-weight: lighter;
  opacity: 1;
  transition: opacity 0.6s ease;
}

body.fade-out {
  opacity: 0;
}

body.fade-in {
  opacity: 0;
  animation: fadeInAnim 0.6s forwards;
}

@keyframes fadeInAnim {
  to {
    opacity: 1;
  }
}

.title {
  font-size: 26px;
  font-family: "Space Grotesk", sans-serif;
  font-weight: lighter;
  margin: 0px;
  max-width: 350px;
  margin-left: 200px;

}

.subtitle {
  max-width: 350px;
  font-size: 20px;
  font-family: "Space Grotesk", sans-serif;
  font-weight: lighter;
  margin: 0px;
  margin-left: 200px;

}

.subtitle_en {
  flex: 1;
  max-width: 300px;
  font-size: 16px;
  color: grey;
  font-family: "Space Grotesk", sans-serif;
  font-weight: lighter;
  text-align: left;
  margin-left: 200px;
}

.text {
  max-width: 350px;
  margin-left: 200px;
  font-weight: lighter;
  text-align: left;
 }


.text_en {
  max-width: 325px;
  font-weight: lighter;
  font-size: 12px;
  text-align: left;
  color: grey;
  margin-left: 225px;
 }

 .infos__projet {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 15px;
}

/* --- Navigation --- */

/* --- Navigation --- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-start;
  box-sizing: border-box;
  overflow: hidden;

  pointer-events: none; /* Désactive clic sur toute la nav sauf ses liens */
  z-index: 1000;
}

.nav a {
  position: relative;
  display: inline-block;
  font-size: 26px;
  font-weight: lighter;
  color: black;
  text-decoration: none;

  pointer-events: auto; /* Réactive clic uniquement sur les liens */
}

nav a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  height: 1.2px;
  width: 0;
  background-color: black;
  transition: width 0.3s ease;
}

nav a:hover::after {
  width: 100%;
}
/* contenants */

.layout__banner {
  margin: 20vh 0px;
  min-height: auto;
  max-width: 100%;
  height: auto;
  display: flex;
  flex-wrap: wrap;
  flex-direction: row;
  justify-content: space-evenly;
  align-content: center;
  justify-items: flex-start;
  align-items: flex-start;
  gap: 50px;
 }

.layout__index {
  margin: 20vh 0px;
  min-height: auto;
  max-width: 100%;
  height: auto;
  display: flex;
  flex-wrap: wrap;
  flex-direction: row;
  justify-content: space-evenly;
  align-content: center;
  justify-items: center;
  align-items: top;
  gap : 20px;
 }

 .layout {
 margin: 20vh 0px;
 min-height: auto;
 max-width: 100%;
 height: auto;
 display: flex;
 flex-wrap: wrap;
 flex-direction: row;
 justify-content: space-evenly;
 align-content: center;
 justify-items: center;
 align-items: center;
 gap : 50px;
}

 .layout_cv {
 margin: 0vh 0px;
 min-height: auto;
 max-width: 100%;
 height: auto;
 display: flex;
 flex-wrap: wrap;
 flex-direction: row;
 justify-content: space-evenly;
 align-content: top;
 justify-items: center;
 align-items: top;
 gap : 50px;
}

.spacer {
  flex: 0.2;
 }

.image_banner {
  max-height: 60vh;
  max-width: 60vw;
  padding: 0px;
  object-fit: scale-down;
  transition: transform 0.4s ease;
}

.image_xs {
  max-height: auto;
  max-width: 20vw;
  padding: 0px;
  object-fit: scale-down;
  transition: transform 0.4s ease;
}

.image_s {
  max-height: auto;
  max-width: 30vw;
  padding: 0px;
  object-fit: scale-down;
  transition: transform 0.4s ease;
}

.image_m {
  max-height: auto;
  max-width: 40vw;
  padding: 0px;
  object-fit: scale-down;
  transition: transform 0.4s ease;
}

.image_l {
  max-height: 90vh;
  max-width: 70vw;
  padding: 0px;
  object-fit: scale-down;
  transition: transform 0.4s ease;
}

.image_xl {
  max-height: auto;
  max-width: 100vw;
  padding: 0px;
  object-fit: scale-down;
  transition: transform 0.4s ease;
}

.image_xs:hover,
.image_s:hover,
.image_m:hover,
.image_l:hover,
.image_xl:hover,
.image_banner:hover {
transform: scale(1.05);
filter: none;
transition: 0.4s ease;
opacity: 1.0;
} 


@media (max-width: 800px) {
  body {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
  }

  .layout__banner,
  .layout {
    flex-direction: column;
    align-items: center;
    padding: 0 10px;
  }

  .image_banner,
  .image_xl,
  .image_l,
  .image_m {
    width: 100%;
    height: auto;
    max-width: 100%;
  }

  .image_s,
  .image_xs {
    width: 70%;
    height: auto;
    max-width: 70%;
  }  

  .infos__projet {
    max-width: 100%;
    padding: 0 10px;
    box-sizing: border-box;
  }

  nav.nav {
    padding: 10px 20px;
  }
}

/* index */

table {
  z-index: 1001;
  width: 100%;
  margin-top: 50px;
  border-collapse: collapse;
}

th, td {
  padding-left: 50px;
  padding-right: 50px;
  padding-bottom: 10px;
  padding-top: 10px;
}

.table_cv {
    max-width: 600px;
  }

.table_cv th, 
.table_cv td {
  padding: 10px;
  word-wrap: break-word;
  white-space: normal;
}


.table_cv td:nth-child(1), 
.table_cv th:nth-child(1) {
    max-width: 35px;
  }

.table_cv td:nth-child(2), 
.table_cv th:nth-child(2) {
    max-width: 100px;
  }


a {
  text-decoration: underline;
  color: black;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

#hover-image {
  display: none;
  opacity: 0;
  position: fixed;
  pointer-events: none;
  z-index: 10000;
  width: 300px;
  height: auto;
  transition: opacity 0.2s ease, transform 0.2s ease;
  transform: scale(0.4);
}

#hover-image.visible {
  opacity: 1;
  transform: scale(0.7);
}

#hover-overlay {
  position: fixed;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(255, 255, 255, 0.5);
  z-index: 9999;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s ease;
  display: none;
}

body {
  opacity: 1;
  transition: opacity 0.5s ease;
}

body.fade-out {
  opacity: 0;
}

