* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  width: 100%;
  height: 100%;
  background: black;
  font-family: 'Montserrat', sans-serif;
  scroll-behavior: smooth;
}

.project-link {
  display: block;
  text-decoration: none;
  width: 100%;
  height: 100%;
  position: relative;
}


.horizontal-texts {
  display: flex;
  gap: 2rem; /* espace entre les paragraphes */
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap; /* utile si écran plus petit */
}

.horizontal-texts p {
  margin: 0;
  flex: 1;
}

.info-overlay {
  position: fixed;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  background: transparent;
  z-index: 100;
  display: block;
  transition: opacity 0.6s ease;
  opacity: 1;
}

.info-overlay.hidden {
  display: none;
  opacity: 0;
}


.info-container {
  position: absolute;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  display: flex;
  justify-content: space-between;
  padding: 3vw;
  box-sizing: border-box;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
  z-index: 101;
}


.info-left {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding-right: 2rem;
  color: white;
  font-family: 'Cormorant Garamond', serif;
}

.info-left p {
  font-size: 16px;
}

.info-right {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-end;
  color: white;
  font-family: 'Cormorant Garamond', serif;
}

.info-text-right {
  width: 100%;
  text-align: right;
}

.info-text h1 {
  font-size: 32px;
  margin-bottom: 1rem;
}

.info-image {
  height: 50vh;       /* ✅ moitié inférieure */
  width: 100%;
  overflow: hidden;
  position: relative;
}

.info-image-bottom-right {
  width: 100%;
  height: auto;
}

.info-image-bottom-right img {
  width: 100%;
  height: auto;
  object-fit: contain;
}


.info-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}


.close-info {
  color: white;
  position: absolute;
  top: 1rem;
  right: 3rem;
  font-size: 14px;
  cursor: pointer;
  z-index: 10;
}


.side-text {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  width: 20%;
  color: white;
  line-height: 1.4;
  opacity: 0;
  pointer-events: none;
  z-index: 5;
  transition: opacity 0.4s ease, filter 0.4s ease;
}

.left-text {
  left: 2rem;
  text-align: left;
  font-family: 'Cormorant Garamond', serif;
  font-size: 16px;
}

.right-text {
  right: 2rem;
  text-align: right;
    font-family: 'Montserrat', sans-serif;
    font-weight: 200;
  font-size: 12px;
}


.fixed-bottom {
  position: fixed;
  bottom: 0;
  left: 0;
}

.main-footer {
  width: 100%;
  padding: 0.5rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;  /* 👈 AU LIEU DE center */
  font-size: 16px;
  font-weight: 300;
  color: white;
  font-family: 'Cormorant Garamond', serif;
  position: fixed;
  bottom: 0;
  left: 0;

  animation: fadeInUp 1s ease-out forwards;
  animation-delay: 1s;
}


.footer-left, .footer-right {
    margin-bottom: 0.5rem;
  cursor: pointer;
}

.footer-left:hover,
.footer-right:hover {
  text-decoration: underline;
}

.MONTSERRAT {
  font-family: 'Montserrat', sans-serif; /* ou une autre de ton choix */
  font-weight: 700;
  letter-spacing: 1px;
  font-size: 14px; /* adapte selon besoin */
}

.MONTSERRATLIGHT {
  font-family: 'Montserrat', sans-serif; /* ou une autre de ton choix */
  font-weight: 100;
  letter-spacing: 1px;
  font-size: 13px; /* adapte selon besoin */
}


.main-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 4;
  padding: 1rem 1.5rem;
  display: flex;
  color: white;
  justify-content: space-between;
  align-items: center-start;
  font-size: 16px;
  font-weight: 300;
  transition: opacity 0.5s ease;
  opacity: 0; /* caché au début */
  pointer-events: none;
  font-family: 'Cormorant Garamond', serif;
}

.header-left, .header-right {
  cursor: pointer;
    margin-bottom: 0.5rem;

}

.header-right:visited,
.header-right:link,
.header-right:active,
.header-right:hover {
  color: white;
  text-decoration: none;
}

.header-left {
  cursor: pointer;
  margin-bottom: 0.5rem;
  color: white;
  text-decoration: none;
  font-family: 'Cormorant Garamond', serif;
  font-size: 16px;
  font-weight: 300;
}


.header-right {
  cursor: pointer;
  margin-bottom: 0.5rem;
  color: white;
  text-decoration: none;
  font-family: 'Cormorant Garamond', serif;
  font-size: 16px;
  font-weight: 300;
}


/* Optionnel : animation au survol */
.header-right:hover,
.header-left:hover {
  text-decoration: underline;
}


.logo {
  position: fixed;
  top: 2rem;
  left: 5rem;
  transform: translateX(-50%);
  z-index: 5;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.8s ease;
}

.logo img {
  max-height: 60px;
  width: auto;
}

img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.container,
section,
.img,
img {
  max-width: 100%;
  overflow: hidden;
}

h1 {
  text-transform: uppercase;
  font-size: 2rem;
  font-weight: 600;
  line-height: 1;
  color: white;
}

.preloader,
.split-overlay {
  position: fixed;
  width: 100vw;
  height: 100vh;
  top: 0;
  left: 0;
  background-color: black;
  z-index: 2;
  overflow: hidden;
}

.split-overlay {
  z-index: 1;
}

.preloader {
  z-index: 3;
  pointer-events: all;
  opacity: 1; /* important pour le fade-out fluide */
}

.intro-title,
.outro-title {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  width: 100%;
}

.container {
  display: inline-block;
  width: 100%;
  overflow: visible;
  position: relative;
  min-height: 100vh;
  z-index: 1;
}

.container a {
  display: block;
  position: relative;
  z-index: 1;         /* lien normal */
}

.card.pinned {
  position: relative;
  z-index: 2;         /* plus haut que le lien par défaut */
}

.main-footer, .main-header {
  position: fixed;
  z-index: 2;      /* tout au-dessus */
  pointer-events: auto;
}


.hero-img {
  position: absolute;
  width: 100%;
  height: 100%;
}

.intro-title .char,
.outro-title .char {
  position: relative;
  display: inline-block;
  overflow: hidden;
  margin-top: 0.75rem;
}

.intro-title .char span,
.outro-title .char span {
  position: relative;
  display: inline-block;
  transform: translateY(-100%);
  will-change: transform;
}

.intro-title .first-char {
  transform-origin: top left;
}


section {
  width: 100vw;
  height: 100vh;
}

.img {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  transform: scale(1);
  transition: transform 0.4s ease;
  will-change: transform;
}

body.loaded .img {
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 1000px;
  height: 800px;
  position: relative;
}


.footer {
  width: 100%;
  height: 1vh;
  display: flex;
  justify-content: center;
  align-items: center;
  color: white;
}

.footer h1 {
  font-size: 48px;
  font-weight: 400;
  letter-spacing: -2px;
}

.card.pinned .img {
  transform: scale(1);
  transform-origin: center center;
}



@media (max-width: 1000px) {
  
    .info-image-bottom-right {
    display: none;
  }
  
    .preloader .intro-title h1 {
    font-size: 5vw;
  }
  
      .preloader .outro-title h1 {
    font-size: 5vw;
  }
  
  
  
  .gallery-container {
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  display: grid;
  max-width: 1600px;
  width: 100%;
  }

  .gallery-grid {
  padding: 1rem;
  background-color: black;
  display: flex;
  min-height: 150vh; /* pour forcer le scroll */
  justify-content: center;
  }


.gallery-container img {
  width: 100%;
  height: auto;
  object-fit: cover;
  cursor: pointer;
}

  .side-text {
    opacity: 1; /* initialement visible */
    transition: opacity 0.3s ease;
  }

  

  
  .horizontal-texts {
  display: flex;
  gap: 1rem; /* espace entre les paragraphes */
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap; /* utile si écran plus petit */
}

.horizontal-texts p {
  margin: 0;
  flex: 1;
}

.info-overlay {
  position: fixed;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  background: transparent;
  z-index: 100;
  display: block;
  transition: opacity 0.6s ease;
  opacity: 1;
}

.info-overlay.hidden {
  display: none;
  opacity: 0;
}


.info-container {
  position: absolute;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  display: flex;
  justify-content: space-between;
  padding: 10vw 3em 3em 2em;
  box-sizing: border-box;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
  z-index: 101;
}


.info-left {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding-right: 1rem;
  color: white;
  font-family: 'Cormorant Garamond', serif;
}

.info-left p {
  font-size: 16px;
}

.info-right {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-end;
  color: white;
  font-family: 'Cormorant Garamond', serif;
}

.info-text-right {
  width: 100%;
  text-align: right;
}

.info-text h1 {
  font-size: 32px;
  margin-bottom: 1rem;
}

.info-image {
  height: 50vh;       /* ✅ moitié inférieure */
  width: 100%;
  overflow: hidden;
  position: relative;
}

.info-image-bottom-right {
  width: 100%;
  height: auto;
}

.info-image-bottom-right img {
  width: 100%;
  height: auto;
  object-fit: contain;
}


.info-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}


.close-info {
  color: white;
  position: absolute;
  top: 1rem;
  right: 3rem;
  font-size: 14px;
  cursor: pointer;
  z-index: 10;
}

  
  .logo {
  position: fixed;
  top: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 5;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.8s ease;
}
  
  .container {
  width: 100%;
  overflow: visible;
  padding: 20px;
  position: relative;
  min-height: 100vh;
  z-index: 1;
}
  
  .main-footer, .main-header {
  position: fixed;
  z-index: 2;      /* tout au-dessus */
  pointer-events: auto;
}

  
  h1 {
    font-size: 2.5rem;
  }

  .intro-title .char,
  .outro-title .char {
    margin-top: 0.5rem;
  }
  


  .side-text {
    position: fixed;
    top: 50%;
    line-height: 1.2;
    opacity: 1 !important;
    pointer-events: none;
    white-space: nowrap;
    z-index: 10;
  }

  .left-text {
    left: 0;
    font-size: 14px;
    transform: rotate(-90deg) translateX(300%);
    transform-origin: left top;
  }

  .right-text {
    right: 0;
        font-size: 12px;
    text-align: center;
    transform: rotate(90deg) translateX(250%);
    transform-origin: right top;
  }
  
  .left-text { left: 0.75rem; }
.right-text { right: 0.95rem; }

}


