/* --- Styles globaux --- */
body {
  font-family: "Space Grotesk", sans-serif;
  font-weight: lighter;
  width: auto;
  margin-left: 210px;
  margin-right: 10px;
  background-color: white;
  text-align: left;
  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;
  max-width: 350px;
}

.subtitle {
  max-width: 350px;
  font-size: 20px;
  font-family: "Space Grotesk", sans-serif;
  font-weight: lighter;
}

.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: 100px;
}

.text {
  flex: 1;
  max-width: 350px;
  font-weight: lighter;
}

.text_en {
  flex: 1;
  max-width: 250px;
  font-weight: lighter;
  font-size: 12px;
  text-align: left;
  color: grey;
  margin-left: 100px;
}

/* --- 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%;
}

/* --- Conteneur galerie --- */
.galerie-wrapper {
  width: 100%;
  padding: 10px;
  height: auto;
  justify-content: center;
  box-sizing: border-box;
  overflow: hidden;
  position: relative;
  z-index: 1001; /* Au-dessus de la nav */
}

.galerie {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 50px;
  padding: 50px;
  box-sizing: border-box;
}

/* --- Conteneur image individuel --- */
.image-container {
  flex: 0 0 auto;
  width: 150px; /* ou 160px si tu préfères une taille fixe */
  height: auto; /* ou fixe selon ton design */
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.image-container img {
  width: 100%;
  height: auto;
  object-fit: contain;
  display: block;
  transition: opacity 0.5s ease, filter 0.5s ease, transform 0.5s ease;
}

/* --- Effet hover sur images dans galerie --- */
.galerie:hover img {
  /* Toutes les images seront floues + opacité réduite sauf celle survolée */
  /* On applique la classe 'blurred' via JS, donc pas ici */
}

.galerie img:hover {
  transform: scale(1.2);
  filter: none;
  opacity: 1;
}

/* --- Classe pour images floues et pâles --- */
.galerie img.blurred {
  opacity: 0.2;
  filter: blur(5px);
}

/* index */
th, td {
  padding: 20px;
  white-space: nowrap; /* empêche le retour à la ligne automatique */
  vertical-align: top;
}

/* CV */
.layout_cv {
  z-index: 1002; /* Plus haut que galerie et nav */
  min-height: auto;
  padding-top: 25px;
  padding-bottom: 50px;
  height: auto;
  display: flex;
  flex-wrap: wrap;
  flex-direction: row;
  justify-content: space-evenly;
  align-content: center; /* corrige 'top' */
  align-items: flex-start; /* corrige 'top' */
  gap: 10px;
}

.infos_cv {
  width: 29vw;
  min-width: 200px;
}

.title_cv {
  font-size: 26px;
  font-family: "Space Grotesk", sans-serif;
  font-weight: lighter;
}

.subtitle_cv {
  font-size: 20px;
  font-family: "Space Grotesk", sans-serif;
  font-weight: lighter;
}

.subtitle_en_cv {
  flex: 1;
  font-size: 16px;
  color: grey;
  font-family: "Space Grotesk", sans-serif;
  font-weight: lighter;
  text-align: left;
  margin-left: 100px;
}

.text_cv {
  flex: 1;
  font-weight: lighter;
}

.text_en_cv {
  flex: 1;
  font-weight: lighter;
  font-size: 12px;
  text-align: left;
  color: grey;
  margin-left: 100px;
}

.table_cv th,
.table_cv td {
  padding: 10px;
  word-wrap: break-word;
  white-space: normal;
}

a {
  text-decoration: underline;
  color: black;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

/* Pour le changement de couleur des liens dans #cv_en */
#cv_en a:hover,
#cv_en a:visited,
#cv_en a:active, 
#cv_en a{
  color: grey;
}

.image_ch {
  width: 160px;
}

.layout_index {
  z-index: 1002;
  width: auto;
  min-height: auto;
  padding-top: 25px;
  padding-bottom: 50px;
  height: auto;
  display: flex;
  flex-wrap: wrap;
  flex-direction: column;
  justify-content: space-evenly;
  align-content: center;
  align-items: flex-start; 
  gap: 20px;
}

.infos_index {
  width: auto;
}

.tooltip-info {
  position: absolute; /* anciennement fixed */
  max-width: 280px;
  z-index: 2000;
  padding: 10px 14px;
  opacity: 0;
  transition: opacity 0.5s ease;
  white-space: normal;
  font-family: "Space Grotesk", sans-serif;
  pointer-events: none;
}

.tooltip-info.visible {
  opacity: 1;
}

.text_copyright {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 20px;
  font-size: 8px;
  color: gray;
}