/* =========================================================================
   ANIMATIONS — Scroll reveals et micro-interactions
   ========================================================================= */

/* ============== REVEAL AU SCROLL ============== */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 1s var(--ease-out),
              transform 1s var(--ease-out);
  will-change: opacity, transform;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Variantes */
.reveal-left {
  opacity: 0;
  transform: translateX(-40px);
  transition: opacity 1s var(--ease-out),
              transform 1s var(--ease-out);
}

.reveal-left.is-visible {
  opacity: 1;
  transform: translateX(0);
}

.reveal-right {
  opacity: 0;
  transform: translateX(40px);
  transition: opacity 1s var(--ease-out),
              transform 1s var(--ease-out);
}

.reveal-right.is-visible {
  opacity: 1;
  transform: translateX(0);
}

.reveal-scale {
  opacity: 0;
  transform: scale(0.95);
  transition: opacity 1s var(--ease-out),
              transform 1s var(--ease-out);
}

.reveal-scale.is-visible {
  opacity: 1;
  transform: scale(1);
}

/* Délais en cascade */
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }
.reveal-delay-5 { transition-delay: 0.5s; }


/* ============== ANIMATION D'ENTRÉE HERO ============== */
.hero-content .reveal {
  opacity: 0;
  transform: translateY(30px);
  animation: hero-fade-up 1.4s var(--ease-out) forwards;
}

.hero-content .eyebrow {
  animation-delay: 0.3s;
}

.hero-title {
  animation-delay: 0.55s;
}

.hero-description {
  animation-delay: 0.85s;
}

.hero-actions {
  animation-delay: 1.1s;
}

@keyframes hero-fade-up {
  0% {
    opacity: 0;
    transform: translateY(30px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}


/* ============== EFFETS DÉCORATIFS ============== */

/* Soulignement progressif (utilisé sur les titres au reveal) */
.section-title::after {
  content: "";
  display: block;
  width: 40px;
  height: 1px;
  background: var(--color-or);
  margin: var(--space-6) auto 0;
  transform: scaleX(0);
  transition: transform 0.9s var(--ease-out) 0.3s;
  transform-origin: center;
}

.section-title.is-visible::after,
.reveal.is-visible.section-title::after {
  transform: scaleX(1);
}


/* ============== HOVERS PREMIUM ============== */

/* Lien doré avec barre */
.gold-link {
  position: relative;
  color: var(--color-or);
  padding-bottom: 2px;
}

.gold-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background: var(--color-or);
  transform: scaleX(1);
  transform-origin: right;
  transition: transform var(--duration-normal) var(--ease-out);
}

.gold-link:hover::after {
  transform: scaleX(0);
  transform-origin: right;
}


/* ============== MICRO-INTERACTIONS ============== */

/* Pulse subtil pour le CTA sticky */
@keyframes pulse-gold {
  0%, 100% {
    box-shadow: var(--shadow-md), 0 0 0 1px var(--color-or-clair);
  }
  50% {
    box-shadow: var(--shadow-md), 0 0 0 1px var(--color-or-clair), 0 0 0 8px rgba(201, 169, 97, 0.1);
  }
}

.sticky-cta.is-visible {
  animation: pulse-gold 3s var(--ease-in-out) infinite;
}


/* Curseur custom sur images cliquables (desktop) */
@media (hover: hover) and (pointer: fine) {
  .galerie-item,
  .experience-card {
    cursor: zoom-in;
  }
}


/* ============== LIGHTBOX GALERIE ============== */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(10, 10, 10, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: var(--z-modal);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--duration-normal) var(--ease-smooth);
  padding: var(--space-6);
}

.lightbox.is-open {
  opacity: 1;
  pointer-events: auto;
}

.lightbox-img {
  max-width: 92vw;
  max-height: 88vh;
  object-fit: contain;
  box-shadow: var(--shadow-lg);
  transform: scale(0.95);
  transition: transform var(--duration-slow) var(--ease-out);
}

.lightbox.is-open .lightbox-img {
  transform: scale(1);
}

.lightbox-close {
  position: absolute;
  top: var(--space-6);
  right: var(--space-6);
  width: 44px;
  height: 44px;
  border: 1px solid var(--color-or);
  border-radius: 50%;
  color: var(--color-or);
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-default);
}

.lightbox-close:hover {
  background: var(--color-or);
  color: var(--color-noir);
  transform: rotate(90deg);
}

.lightbox-prev,
.lightbox-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 50px;
  height: 50px;
  border: 1px solid var(--color-gris);
  color: var(--color-blanc);
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(10, 10, 10, 0.5);
  transition: var(--transition-default);
}

.lightbox-prev { left: var(--space-6); }
.lightbox-next { right: var(--space-6); }

.lightbox-prev:hover,
.lightbox-next:hover {
  border-color: var(--color-or);
  color: var(--color-or);
  background: rgba(10, 10, 10, 0.8);
}


/* ============== PARALLAX SUBTIL ============== */
.hero-bg.parallax-active {
  will-change: transform;
}


/* ============== TRANSITIONS DE PAGE ============== */
body {
  animation: page-enter 0.6s var(--ease-out);
}

@keyframes page-enter {
  from { opacity: 0; }
  to { opacity: 1; }
}
