/* ------------------ */
/* RÉGLAGES GÉNÉRAUX  */
/* ------------------ */

body {
  font-family: 'Inter', sans-serif;
  margin: 0;
  padding: 0;
  background: white;
  color: black;
}

.page-content {
  padding: 0 0cm; /* Ajuste ici selon la marge actuelle du menu */
}

/* Animation fade-in */
@keyframes fadeIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in {
  opacity: 0;
  transform: translateY(0px);
  transition: opacity 1.5s ease-out, transform 0s ease-out;
}

.fade-in.show {
  opacity: 1;
  transform: translateY(0);
}


/* ------------------ */
/* MENU PRINCIPAL     */
/* ------------------ */

.top-menu {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  width: 100%;
  padding: 2rem 4cm;
  box-sizing: border-box;
}

.logo a {
  display: inline-block;
}

.signature-image {
  height: 2em;
  width: auto;
}

.menu-links {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  align-items: flex-end;
}

.menu-links a {
  font-weight: 300;
  font-size: 0.9rem;
  color: black;
  text-decoration: none;
  white-space: nowrap;
  position: relative;
}

.menu-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  height: 1px;
  width: 100%;
  background-color: black;
  transform: scaleX(0);
  transform-origin: bottom right;
  transition: transform 0.6s ease;
}

.menu-links a:hover::after {
  transform: scaleX(1);
  transform-origin: bottom left;
}


/* ------------------ */
/* PAGE D’ACCUEIL     */
/* ------------------ */



.index-page .index-hero {
  padding: 0 0.5cm;
  box-sizing: border-box;
  max-width: 100%;
}

.index-page .index-hero img {
  width: 100%;
  height: auto;
  display: block;
  max-width: 100%;
  margin-bottom: 2rem;
}

.index-page .page-content {
  padding: 0; /* pas de padding latéral hérité */
}


.about-page .hero-image img {
  margin-bottom: 2rem;
}

.bio-text {
  text-align: justify;
  margin-top: 1.5rem; /* facultatif : espace entre l'e-mail et le texte */
  font-weight: 300;
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 3rem;
}
/* ------------------ */
/* PAGE WORKS         */
/* ------------------ */

.works-gallery {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 1rem;
}

.work-item {
  width: calc((100% - 2rem) / 3);
  max-width: 100%;
  display: flex;
  flex-direction: column;
  opacity: 0;
  animation: fadeIn 1.5s ease forwards;
  box-sizing: border-box;
}

.work-item img {
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: 0;
  cursor: pointer;
}

.hover-image-wrapper {
  position: relative;
  width: 100%;
  height: 7cm;
  overflow: hidden;
  box-sizing: border-box;
}

.hover-image-wrapper img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.5s ease;
  box-sizing: border-box;
}

.image-normal {
  opacity: 1;
}

.image-hover {
  opacity: 0;
}

.hover-image-wrapper:hover .image-normal {
  opacity: 0;
}

.hover-image-wrapper:hover .image-hover {
  opacity: 1;
}

.work-title {
  position: relative;
  font-family: 'Inter', sans-serif;
  font-weight: 300;
  font-size: 0.9rem;
  margin-top: 0.3rem;
  text-align: left;
  color: black;
  display: inline-block; /* Important : limite le ::after à la largeur du mot */
  text-decoration: none; /* Supprime le soulignement par défaut si hérité d’un lien */
}

.work-title::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  height: 1px;
  width: 100%;
  background-color: black;
  transform: scaleX(0);
  transform-origin: bottom right;
  transition: transform 0.6s ease;
}

.work-title:hover::after {
  transform: scaleX(1);
  transform-origin: bottom left;
}




/* ------------------ */
/* PAGES D’ŒUVRES     */
/* ------------------ */

.hero-image {
  padding: 0 4cm;
  box-sizing: border-box;
  max-width: 100%;
  overflow-x: hidden;
}

.hero-image img {
  width: 100%;
  height: auto;
  display: block;
  max-width: 100%;
}

.caption {
  font-weight: 500;
  font-size: 0.9rem;
  line-height: 1.4;
  color: black;
  text-align: left;
  white-space: pre-line;
}

/* Galerie de zooms */
.details-gallery {
  padding: 0 4cm;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 2rem;
  max-width: 100%;
}

.image-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.image-row img {
  width: calc(50% - 0.5rem);
  height: auto;
  object-fit: cover;
}

.image-row img:only-child {
  width: 100%;
}

.image-row:has(img:only-child) {
  justify-content: flex-end;
}

.zoom-row {
  display: flex;
  gap: 1rem;
}

.zoom-row img {
  width: calc(50% - 0.5rem);
  height: auto;
  object-fit: cover;
}

.zoom-row img:only-child {
  width: 100%;
}

.zoom-row:has(img:only-child) {
  justify-content: flex-end;
}


/* ----------------------------- */
/* NAVIGATION ENTRE LES PROJETS */
/* ----------------------------- */

.project-navigation {
  display: flex;
  justify-content: space-between;
  margin-top: 2rem;
  margin-bottom: 4rem;
  padding: 0 4cm;
  box-sizing: border-box;
}

.project-navigation a {
  color: black;
  text-decoration: none;
  font-weight: 300;
  font-size: 0.9rem;
  position: relative;
  white-space: nowrap;
}

.project-navigation a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  height: 1px;
  width: 100%;
  background-color: black;
  transform: scaleX(0);
  transform-origin: bottom right;
  transition: transform 0.6s ease;
}

.project-navigation a:hover::after {
  transform: scaleX(1);
  transform-origin: bottom left;
}


/* ------------------ */
/* PLEIN ÉCRAN        */
/* ------------------ */

.fullscreen-content {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  margin: 0;
  padding: 0;
  overflow: hidden;
}

.fullscreen-image img {
  max-width: 100%;
  max-height: 100vh;
  display: block;
}

.back-link {
  position: absolute;
  top: 20px;
  left: 20px;
  z-index: 1000;
}

.back-link a {
  color: black;
  text-decoration: none;
  font-family: 'Inter', sans-serif;
  font-weight: 300;
  font-size: 1rem;
  position: relative;
  display: inline-block;
}

.back-link a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  height: 1px;
  width: 0;
  background-color: black;
  transition: width 0.4s ease;
}

.back-link a:hover::after {
  width: 100%;
}


/* ------------------ */
/* RESPONSIVE DESIGN  */
/* ------------------ */


@media (max-width: 768px) {
  .top-menu {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 1rem;
  }

  .logo a {
    display: block;
  }

    .menu-links {
    flex-direction: row;
    align-items: center;
    gap: 1rem;
    margin-top: 0; /* supprime l'espacement inutile */
  }

    .menu-links a {
    font-size: 0.9rem;
  }
  .page-content,
  .works-gallery,
  .details-gallery,
  .hero-image {
    padding: 0.5rem;
  }
  @media (max-width: 768px) {
  /* ... autres styles responsive ... */

  .project-navigation {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding: 0 1rem;
    margin-top: 2rem;
    margin-bottom: 2rem;
    gap: 1rem;
  }

  .project-navigation {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding: 0 1rem;
    margin-top: 2rem;
    margin-bottom: 5rem; /* ⬅️ plus d'espace sous la navigation */
    gap: 1rem;
  }


  .project-navigation a:first-child {
    text-align: left;
  }

  .project-navigation a:last-child {
    text-align: right;
  }
}

  .works-gallery {
    flex-direction: column;
  }

  .work-item {
    width: 100%;
  }

  .hover-image-wrapper {
    height: auto;
  }

  .hover-image-wrapper img {
    position: static;
    opacity: 1;
    transition: none;
  }

  .hover-image-wrapper .image-hover {
    display: none;
  }

  .hover-image-wrapper:hover .image-normal {
    opacity: 1;
  }

  .image-row img,
  .zoom-row img {
    width: 100%;
  }

  .image-row,
  .zoom-row {
    flex-direction: column;
  }
}

