/* src/components/animations.css */
/* Cinematic effects · animations "vidéo" légères sans dépendance externe. */

@keyframes kenBurns {
  0%   { transform: scale(1.05) translate3d(-1%, -1%, 0); }
  100% { transform: scale(1.18) translate3d(1.5%, 1%, 0); }
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translate3d(0, 24px, 0); }
  to   { opacity: 1; transform: translate3d(0, 0, 0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* Ken Burns effect on hero image */
.hero-bg-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  animation: kenBurns 24s ease-in-out infinite alternate;
  will-change: transform;
}

/* Dark overlay for hero readability */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(28, 0, 0, 0.35) 0%, rgba(28, 0, 0, 0.65) 100%);
  pointer-events: none;
}

.hero-content { z-index: 2; }

/* Hero content entrance */
.hero-eyebrow  { animation: fadeInUp 0.9s ease 0.25s both; }
.hero-title    { animation: fadeInUp 0.9s ease 0.45s both; }
.hero-subtitle { animation: fadeInUp 0.9s ease 0.65s both; }
.hero-cta      { animation: fadeInUp 0.9s ease 0.85s both; }

/* Scroll reveal (activated by src/scripts/reveal.js) */
.reveal {
  opacity: 0;
  transform: translate3d(0, 28px, 0);
  transition: opacity 0.8s ease, transform 0.8s ease;
  will-change: opacity, transform;
}
.reveal.is-in-view {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

/* Reduced motion — disable all cinematic animations */
@media (prefers-reduced-motion: reduce) {
  .hero-bg-image { animation: none; }
  .hero-eyebrow, .hero-title, .hero-subtitle, .hero-cta { animation: none; opacity: 1; }
  .reveal { opacity: 1; transform: none; transition: none; }
}
