/* ——————————— CUSTOM FONTS ——————————— */
@font-face {
  font-family: 'NHaasGroteskDSPro-65Md';
  src: url('../fonts/NHaasGroteskDSPro-65Md.otf') format('opentype');
  font-weight: normal;
  font-style: normal;
  letter-spacing: 0.05em;
  font-display: swap;
}
@font-face {
  font-family: 'NHaasGroteskDSPro-55Rg';
  src: url('../fonts/NHaasGroteskDSPro-55Rg.otf') format('opentype');
  font-weight: normal;
  font-style: normal;
  letter-spacing: 0.05em;
  font-display: swap;
}

/* ——————————— RESET / BASE ——————————— */
html, body {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
  z-index: 9999; /* Très au-dessus de tout */
  font-family: 'NHaasGroteskDSPro-55Rg', Helvetica, Arial, sans-serif;
  letter-spacing: 0.05em;
  color: white;
  box-sizing: border-box;
}

/* ——————————— HEADER ——————————— */
  .header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 2rem 3rem;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    z-index: 100;
    color: white;
    mix-blend-mode: difference;
    box-sizing: border-box;
  }
.header a {
  color: inherit;
  text-decoration: none;
  font-size: 1.5rem;
  letter-spacing: 0.05em;
  line-height: 1.4;
}

.header-right a.about-link {
  position: relative;
  z-index: 10001; /* Encore au-dessus de l'overlay */
}
@media (max-width: 768px) {
  .header {
    padding-left: 1rem ;
    gap: 0.5rem;
  }
}

/* ——————————— SCROLL SNAP LAYOUT ——————————— */
.snap-container {
  height: 100vh;
  overflow-y: scroll;
  scroll-snap-type: y mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
}
.snap-section {
  height: 100vh;
  scroll-snap-align: start;
  position: relative;
  width: 100%;
  overflow: hidden;
}

/* ——————————— HERO CAROUSEL ——————————— */
.carousel {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
}
.carousel-wrapper {
  display: flex;
  height: 100vh;
  transition: transform 0.8s ease-in-out;
}
.carousel-slide {
  flex: 0 0 100%;
  height: 100%;
}
.carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Scroll down indicator */
.scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  width: 32px;
  height: 32px;
  background-image: url('../img/cursors/cursor-bottom.svg');
  mix-blend-mode: difference;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  cursor: pointer;
  animation: bounce 1.5s infinite;
}

@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(10px); }
}

/* ——————————— PROJECTS FULLSCREEN SECTIONS ——————————— */
.project-section {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
}
.project-title h1 {
  position: absolute;
  bottom: 1rem;
  left: 3rem;
  font-family: 'NHaasGroteskDSPro-55Rg', Helvetica, Arial, sans-serif;
  font-weight: normal;
  font-size: 1.5rem;
  line-height: 1.4;
  color: white;
  z-index: 10;
  mix-blend-mode: difference;
  cursor: pointer;
}

/* ——————————— MANUAL PROJECT CAROUSEL ——————————— */
.manual-carousel {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.carousel-track {
  display: flex;
  height: 100%;
  transition: transform 0.6s ease;
}

.carousel-slide {
  flex: 0 0 100%;
  height: 100%;
}

.carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.6);
  border: none;
  font-size: 2rem;
  padding: 0.5rem 1rem;
  z-index: 10;
  cursor: pointer;
  border-radius: 4px;
}

.carousel-arrow.left {
  left: 1rem;
}
.carousel-arrow.right {
  right: 1rem;
}
.manual-carousel {
  cursor: none; /* default hidden */
}


.custom-cursor {
  position: fixed;
  top: 0;
  left: 0;
  width: 40px;
  height: 40px;
  pointer-events: none;
  z-index: 9999;
    
  mix-blend-mode: difference;
  background-repeat: no-repeat;
  background-position: center;
  background-size: 24px 24px;
  transition: transform 0.1s linear;
 
}

.manual-carousel.show-cursor .custom-cursor {
  display: block;
}
.custom-cursor.left {
  background-image: url('../img/cursors/cursor-left.svg');
}
.custom-cursor.right {
  background-image: url('../img/cursors/cursor-right.svg');
}

/* ——————————— PROJECT OVERLAY (BOTTOM) ——————————— */
/* ───────────────────────────────
   PROJECT OVERLAY (3 columns)
────────────────────────────────── */
.project-overlay {
  position: fixed;
  bottom: -100%;
  left: 0;
  width: 100%;
  height: fit-content;
  background: white;
  color: black;
  z-index: 300;
  overflow: hidden;
}
.project-section h1 {
  position: absolute;
  bottom: 1rem;
  left: 3rem;
  font-weight: normal;
  font-size: 1.5rem;
  color: white;
  mix-blend-mode: difference;
  z-index: 500; /* assure qu'il est au-dessus de l’overlay */
  cursor: pointer;
}

.project-section h1 .plus {
  margin-left: 0.5rem;
  font-size: 1.5rem;
  line-height: 1;
  display: inline-block;
  transition: transform 0.1s ease, opacity 0.1s;
}

/* Animation lors du passage de + à × */
.project-section h1 .plus.close {
  transform: rotate(0deg) scale(1.2);
  transition: transform 0.9s ease;
  animation: plusToClose 0.9s ease forwards;
}

/* Animation keyframes */
@keyframes plusToClose {
  0% {
    transform: rotate(0deg) scale(1);
  }
 
  100% {
    transform: rotate(0deg) scale(1);
  }
}



.project-overlay.active {
  bottom: 0;
}

.project-overlay-content {
  height: 100%;
  padding: 2rem 3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
}

.overlay-columns {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  align-items: start;
  width: 100%;
  gap: 2rem;

  padding-bottom: 2.5rem;
}

.overlay-columns p {
  font-family: 'NHaasGroteskDSPro-55Rg', sans-serif;
  letter-spacing: 0.05em;
  font-size: 0.95rem;
  line-height: 1.5;
  margin: 0;
}

/* Description column (left) */
.description-column .project-description {
  font-size: 1rem;
  line-height: 1.5;
  color: black;
}

/* Middle info column (author + size) */
.info-column {
  text-align: left;
}

/* Right meta column (year + tag) */
.meta-column {
  text-align: right;
}



@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive overlay on mobile */
@media (max-width: 900px) {
  .project-overlay {
    height: auto;
    padding: 2rem 1.5rem;
  }

  .overlay-columns {
    grid-template-columns: 1fr;
    text-align: left;
    gap: 1.5rem;
  }

  .info-column,
  .meta-column {
    text-align: left;
  }
}



/* ——————————— ABOUT OVERLAY (RIGHT) ——————————— */
/* --- About Overlay --- */
.about-toggle {
  position: fixed;
  top: 2rem;
  right: 2rem;
  z-index: 1000;
  font-size: 1.5rem;
  color: white;
  mix-blend-mode: difference;
  cursor: pointer;
  user-select: none;
}

.about-toggle .plus {
  margin-left: 0.3rem;
}
.about-link {
  position: relative;  /* important */
  z-index: 1001;       /* plus que l'overlay (qui est à 300) */
  color: white;
  font-size: 1.5rem;
  text-decoration: none;
  mix-blend-mode: difference;
  pointer-events: auto;
    border: 2px solid red; /* pour vérifier s’il est visible */

}

.about-link .plus {
  margin-left: 0.25rem;
  font-weight: normal;
}

.about-overlay {
  position: fixed;
  top: 0;
  right: -100%;
  width:20vw;
  height: 100vh;
  background: white;
  color: black;
  z-index: 300; /* bien plus bas que .about-link */
  padding: 4rem 2rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
@media (max-width: 900px) {
  .about-overlay {
  position: fixed;
  top: 0;
  right: -100%;
  width:50vw;
  height: 100vh;
  background: white;
  color: black;
  z-index: 300; /* bien plus bas que .about-link */
  padding: 4rem 2rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
}

.about-overlay.active {
  right: 0;
}

.about-body {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.about-left .subtitle {
   font-family: 'NHaasGroteskDSPro-65Md', Helvetica, Arial, sans-serif;
  letter-spacing: 0.05em;
  font-weight: normal;
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.about-right {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.about-right img {
  width: 22px;
  height: 22px;
}

.about-address {
  font-size: 0.9rem;
  line-height: 1.4;
}

/* Bouton fermeture en bas à droite */
.close-about {
  position: absolute;
  bottom: 2rem;
  right: 2rem;
  width: 32px;
  height: 32px;
  background-image: url('../img/cursors/cursor-right.svg');
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  background-color: transparent;
  border: none;
  cursor: pointer;
  z-index: 999;
}
