/* ============================================================
   NEKTAR — Section 02 · Le lieu
   Slideshow plein-largeur, flèches + clavier + swipe
   ============================================================ */

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; overflow: hidden; height: 100%; }
body { background: var(--nektar-nuit); color: var(--nektar-nuit); }
main, section { height: 100%; margin: 0; padding: 0; }

/* ============================================================
   SECTION HEADER
   ============================================================ */
.lieu-header {
  padding: clamp(72px, 11vh, 112px) var(--gutter) clamp(28px, 4vh, 48px) var(--gutter);
  max-width: var(--max-content);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.lieu-eyebrow {
  font-family: var(--font-body); font-weight: 400;
  font-size: var(--t-eyebrow); letter-spacing: var(--track-eyebrow);
  text-transform: uppercase; color: var(--nektar-or);
}

.lieu-title {
  font-family: var(--font-display); font-weight: 300;
  font-size: clamp(34px, 4.5vw, 64px);
  line-height: 1.0; letter-spacing: -0.022em;
  margin: 0; color: var(--nektar-nuit);
}
.lieu-title em { font-style: italic; font-weight: 500; }

/* ============================================================
   LABEL "GALERIE" — superposé, centré sur la photo
   ============================================================ */
.gallery__label {
  position: absolute; top: 28px; left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  font-family: var(--font-display); font-weight: 300; font-style: italic;
  font-size: clamp(20px, 2.5vw, 32px);
  letter-spacing: 0.04em;
  color: var(--nektar-or);
  pointer-events: none;
  text-align: center;
  white-space: nowrap;
}

/* ============================================================
   GALLERY
   ============================================================ */
.gallery {
  position: relative;
  width: 100%;
  height: 100svh;
  background: var(--nektar-nuit);
  overflow: hidden;
  user-select: none;
}

/* Slides — superposés, crossfade */
.gallery__slide {
  position: absolute; inset: 0;
  opacity: 0;
  transition: opacity 700ms cubic-bezier(0.2, 0.7, 0.2, 1);
  pointer-events: none;
}
.gallery__slide.is-active {
  opacity: 1;
  pointer-events: auto;
}
.gallery__slide img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center center;
  display: block;
}

/* ============================================================
   ARROWS
   ============================================================ */
.gallery__arrow {
  position: absolute; top: 50%; z-index: 10;
  transform: translateY(-50%);
  background: transparent; border: 0;
  padding: 16px clamp(12px, 3vw, 32px);
  cursor: pointer;
  color: var(--nektar-or);
  opacity: 0.65;
  transition: opacity var(--dur) var(--ease);
  line-height: 0;
}
.gallery__arrow:hover { opacity: 1; }
.gallery__arrow--prev { left: 0; }
.gallery__arrow--next { right: 0; }

/* ============================================================
   DOTS — pagination centrée en bas
   ============================================================ */
.gallery__dots {
  position: absolute; bottom: 22px; left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: flex; align-items: center; gap: 8px;
}
.gallery__dot {
  width: 6px; height: 6px;
  border-radius: 999px;
  background: transparent;
  border: 1px solid var(--nektar-or);
  opacity: 0.5;
  transition: background var(--dur) var(--ease), opacity var(--dur) var(--ease);
  cursor: pointer;
  padding: 0;
}
.gallery__dot.is-active {
  background: var(--nektar-or);
  opacity: 1;
}

/* ============================================================
   PROGRESS BAR
   ============================================================ */
.gallery__progress {
  position: absolute; bottom: 0; left: 0;
  height: 2px;
  background: var(--nektar-or);
  width: 0%;
  animation: galleryProgress 3s linear forwards;
  animation-play-state: paused;
  transform-origin: left;
}
.gallery__progress.is-running {
  animation-play-state: running;
}
@keyframes galleryProgress {
  from { width: 0%; }
  to   { width: 100%; }
}

/* ============================================================
   EDITORIAL CAROUSEL — paires de photos décalées sur crème
   ============================================================ */
.editorial-wrap {
  position: relative;
  background: var(--nektar-creme);
  padding: clamp(40px, 6vh, 64px) clamp(56px, 7vw, 100px) clamp(64px, 11vh, 104px);
  /* padding horizontal généreux pour loger les flèches */
}

.editorial-pair {
  display: flex;
  gap: clamp(16px, 2.5vw, 40px);
  align-items: flex-start;
  animation: edFadeIn 600ms cubic-bezier(0.2, 0.7, 0.2, 1) forwards;
}
@keyframes edFadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.editorial-col {
  flex: 1;
  min-width: 0;
}

/* Colonne droite — décalée vers le bas */
.editorial-col--right {
  margin-top: clamp(100px, 17vh, 170px);
}

.editorial-photo img {
  width: 100%;
  height: clamp(260px, 46vh, 480px);
  object-fit: cover;
  display: block;
  transition: opacity var(--dur) var(--ease);
}
.editorial-photo:hover img { opacity: 0.92; }

/* Flèches — positionnées sur les côtés du wrap */
.ed-arrow {
  position: absolute; top: 45%;
  transform: translateY(-50%);
  background: transparent; border: 0;
  padding: 12px; cursor: pointer;
  color: var(--nektar-or); opacity: 0.7;
  transition: opacity var(--dur) var(--ease);
  line-height: 0; z-index: 10;
}
.ed-arrow:hover { opacity: 1; }
.ed-arrow--prev { left: clamp(12px, 2vw, 28px); }
.ed-arrow--next { right: clamp(12px, 2vw, 28px); }

/* Barre de progression — or, en bas */
.ed-progress {
  position: absolute; bottom: 0; left: 0;
  height: 2px; background: var(--nektar-or);
  width: 0%;
  animation: galleryProgress 3s linear forwards;
  animation-play-state: paused;
}
.ed-progress.is-running { animation-play-state: running; }

/* ============================================================
   SHOW/HIDE DESKTOP/MOBILE
   ============================================================ */
.show-desktop-only { display: block; }
.show-mobile-only  { display: none; }

@media (max-width: 900px) {
  .show-desktop-only { display: none; }
  .show-mobile-only  { display: block; }
}


/* ============================================================
   MOBILE
   ============================================================ */
@media (max-width: 760px) {
  .gallery {
    height: 100svh;
  }
  .gallery__arrow {
    padding: 12px 14px;
    opacity: 0.8;
  }
  .gallery__dots {
    bottom: 20px;
    gap: 6px;
  }
  .gallery__dot {
    width: 5px; height: 5px;
  }
  .gallery__label {
    font-size: clamp(18px, 6vw, 26px);
    top: 20px;
  }
}
