/* ========================================================================
   FULLSCREEN-GALLERY.CSS — Galerie Fullscreen avec Menu Navigation
   ========================================================================
   
   Purpose: Galerie fullscreen avec images taille écran, titres/sous-titres
            et menu de navigation latéral avec détection de position au scroll.
   
   Structure:
   - .fullscreen-gallery: Conteneur principal
   - .fullscreen-gallery__slides: Wrapper des slides
   - .fullscreen-gallery__slide: Slide individuelle (fullscreen)
   - .fullscreen-gallery__image: Image fullscreen
   - .fullscreen-gallery__caption: Titre et sous-titre en bas à gauche
   - .fullscreen-gallery__nav: Menu de navigation en haut à droite
   - .fullscreen-gallery__nav-item: Élément du menu avec point indicateur
   
   JavaScript: Gère le scroll detection et l'activation du point
   ========================================================================== */

.fullscreen-gallery {
  position: relative;
  width: 100%;
  background: var(--color-dark-alt);
  overflow: hidden;
}

.fullscreen-gallery__slides {
  position: relative;
  width: 100%;
}

.fullscreen-gallery__slide {
  position: relative;
  width: 100%;
  height: 100vh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}

.fullscreen-gallery__image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
  opacity: 0.85;
}

.fullscreen-gallery__caption {
  position: absolute;
  bottom: 0;
  left: 0;
  padding: clamp(24px, 6vw, 48px);
  z-index: 10;
  width: 100%;
  max-width: 600px;
}

.fullscreen-gallery__title {
  font-size: clamp(36px, 8vw, 64px);
  font-weight: 200;
  color: #fff;
  margin: 0 0 8px 0;
  line-height: 1.1;
}

.fullscreen-gallery__subtitle {
  font-size: clamp(18px, 3vw, 28px);
  font-weight: 200;
  color: #fff;
  margin: 0;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* Navigation menu */
.fullscreen-gallery__nav {
  position: fixed;
  top: clamp(24px, 4vw, 48px);
  right: clamp(24px, 4vw, 48px);
  z-index: 20;
  display: flex;
  flex-direction: column;
  gap: clamp(16px, 2vw, 24px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px);
  padding: clamp(16px, 2vw, 24px);
  border-radius: 12px;
}

.fullscreen-gallery__nav-item {
  font-size: clamp(13px, 1.2vw, 16px);
  color: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition:
    color 0.4s ease,
    opacity 0.4s ease;
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
  letter-spacing: 0.05em;
  position: relative;
  white-space: nowrap;
  opacity: 0.7;
}

.fullscreen-gallery__nav-item::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  transition: all 0.4s ease;
  flex-shrink: 0;
}

.fullscreen-gallery__nav-item:hover {
  color: rgba(255, 255, 255, 0.9);
  opacity: 1;
}

.fullscreen-gallery__nav-item:hover::before {
  background: var(--color-accent-gold);
  transform: scale(1.3);
}

.fullscreen-gallery__nav-item.active {
  color: #fff;
  opacity: 1;
}

.fullscreen-gallery__nav-item.active::before {
  background: var(--color-accent-gold);
  width: 8px;
  height: 8px;
  box-shadow: 0 0 12px rgba(201, 162, 74, 0.6);
}

/* Responsive */
@media (max-width: 768px) {
  .fullscreen-gallery {
    background: var(--color-dark-alt);
  }

  .fullscreen-gallery__slides {
    display: block;
  }

  .fullscreen-gallery__slide {
    height: auto;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background: var(--color-dark-alt);
  }

  .fullscreen-gallery__image {
    position: relative;
    width: 100%;
    height: auto;
    max-height: none;
    object-fit: contain;
    opacity: 1;
  }

  .fullscreen-gallery__caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    max-width: 100%;
    padding: clamp(20px, 5vw, 40px);
    background: linear-gradient(
      to top,
      rgba(0, 0, 0, 0.85) 0%,
      rgba(0, 0, 0, 0.5) 60%,
      transparent 100%
    );
    padding-bottom: clamp(40px, 8vw, 60px);
  }

  .fullscreen-gallery__title {
    font-size: clamp(28px, 6vw, 40px);
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
  }

  .fullscreen-gallery__subtitle {
    font-size: clamp(14px, 2.5vw, 18px);
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
  }

  /* Cacher la navigation sur mobile */
  .fullscreen-gallery__nav {
    display: none !important;
    opacity: 0 !important;
    pointer-events: none !important;
  }
}

@media (max-width: 600px) {
  .fullscreen-gallery__image {
    width: 100%;
    height: auto;
  }

  .fullscreen-gallery__caption {
    padding: clamp(16px, 4vw, 32px);
    padding-bottom: clamp(32px, 6vw, 48px);
  }

  .fullscreen-gallery__title {
    font-size: clamp(24px, 5vw, 32px);
    margin-bottom: 6px;
  }

  .fullscreen-gallery__subtitle {
    font-size: clamp(12px, 2vw, 16px);
    letter-spacing: 0.08em;
  }
}
