/**
 * ============================================================
 *  GROUPE MOHA COM — Animations & Transitions
 *  Fichier : animations.css
 *  Version : 1.0.0
 *  Date    : 2026-03-19
 *
 *  Keyframes CSS + classes GSAP + scroll-reveal.
 *  Respecte prefers-reduced-motion.
 *  Dépend de : design-tokens.css
 * ============================================================
 */


/* ============================================================
   1. RESPECT DES PRÉFÉRENCES UTILISATEUR
      (prefers-reduced-motion)
   ============================================================ */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  /* Arrêter le défilement des partenaires */
  .partners-track {
    animation: none !important;
  }

  /* Désactiver les états initiaux GSAP */
  .gsap-fade-up,
  .gsap-fade-left,
  .gsap-fade-right,
  .gsap-scale-in {
    opacity: 1 !important;
    transform: none !important;
  }

  /* Désactiver les reveals scroll */
  .reveal,
  .reveal-left,
  .reveal-right {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }

  /* Désactiver les animations hero */
  .hero-content > * {
    opacity: 1 !important;
    animation: none !important;
  }

  /* Désactiver le pulse */
  .pulse-cta {
    animation: none !important;
  }
}


/* ============================================================
   2. KEYFRAMES
   ============================================================ */

/* ---- Apparition ---- */
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

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

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* ---- Zoom ---- */
@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.85);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes scaleInBounce {
  0%   { opacity: 0; transform: scale(0.7); }
  70%  { transform: scale(1.05); }
  100% { opacity: 1; transform: scale(1); }
}

/* ---- Glissement ---- */
@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

/* ---- Pulsation ---- */
@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50%       { transform: scale(1.05); }
}

@keyframes pulseGlow {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(204, 34, 41, 0.4);
  }
  50% {
    box-shadow: 0 0 0 12px rgba(204, 34, 41, 0);
  }
}

/* ---- Skeleton loading ---- */
@keyframes shimmer {
  from { background-position: -200% 0; }
  to   { background-position:  200% 0; }
}

/* ---- Rotation ---- */
@keyframes spin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

/* ---- Rebond ---- */
@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  40%       { transform: translateY(-12px); }
  60%       { transform: translateY(-6px); }
}

/* ---- Flottement ---- */
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-8px); }
}

/* ---- Soulignement animé ---- */
@keyframes underlineGrow {
  from { transform: scaleX(0); }
  to   { transform: scaleX(1); }
}

/* ---- Barre de progression ---- */
@keyframes progressFill {
  from { width: 0; }
}

/* ---- Compteur (pour l'illusion de chargement) ---- */
@keyframes countUp {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ---- Fond défilant (hero gradient) ---- */
@keyframes gradientShift {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* ---- Marquee partenaires ---- */
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}


/* ============================================================
   3. CLASSES D'ANIMATION CSS-ONLY (sans JS)
   ============================================================ */

.animate-fade-in    { animation: fadeIn      0.6s ease-out both; }
.animate-fade-up    { animation: fadeInUp    0.7s ease-out both; }
.animate-fade-down  { animation: fadeInDown  0.7s ease-out both; }
.animate-fade-left  { animation: fadeInLeft  0.7s ease-out both; }
.animate-fade-right { animation: fadeInRight 0.7s ease-out both; }
.animate-scale-in   { animation: scaleIn     0.5s ease-out both; }
.animate-slide-down { animation: slideDown   0.5s ease-out both; }

/* ---- Délais staggers ---- */
.animate-delay-1 { animation-delay: 0.1s; }
.animate-delay-2 { animation-delay: 0.2s; }
.animate-delay-3 { animation-delay: 0.3s; }
.animate-delay-4 { animation-delay: 0.4s; }
.animate-delay-5 { animation-delay: 0.5s; }
.animate-delay-6 { animation-delay: 0.6s; }
.animate-delay-7 { animation-delay: 0.7s; }
.animate-delay-8 { animation-delay: 0.8s; }


/* ============================================================
   4. ANIMATION HERO (entrée automatique)
   ============================================================ */

/* Chaque enfant direct de .hero-content s'anime en séquence */
.hero-content > * {
  opacity: 0;
  animation: fadeInUp 0.8s ease-out forwards;
}

.hero-content h1           { animation-delay: 0.1s; }
.hero-content .hero-subtitle { animation-delay: 0.25s; }
.hero-content .hero-cta-group { animation-delay: 0.4s; }
.hero-content .badge       { animation-delay: 0.05s; }

/* Hero court (pages intérieures) — animation plus rapide */
.hero-short .hero-content > * {
  animation-duration: 0.5s;
}


/* ============================================================
   5. CLASSES GSAP — ÉTATS INITIAUX
      (GSAP remet opacity:1 et transform:none via .to())
   ============================================================ */

.gsap-fade-up    { opacity: 0; transform: translateY(40px); }
.gsap-fade-left  { opacity: 0; transform: translateX(-40px); }
.gsap-fade-right { opacity: 0; transform: translateX(40px); }
.gsap-scale-in   { opacity: 0; transform: scale(0.85); }
.gsap-fade-in    { opacity: 0; }

/* Marqueur de stagger pour GSAP (data-stagger) */
/* Note: l'état initial opacity:0 est appliqué par JS (gsap.set) — pas en CSS
   pour éviter du texte invisible si GSAP ne charge pas (ex: hors-ligne) */
[data-stagger].gsap-ready > * {
  opacity: 0;
  transform: translateY(20px);
}


/* ============================================================
   6. SCROLL-REVEAL (IntersectionObserver + JS)
      JS ajoute .revealed quand l'élément entre dans le viewport
   ============================================================ */

.reveal {
  opacity: 0;
  transform: translateY(25px);
  transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out);
}

.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

.reveal-left {
  opacity: 0;
  transform: translateX(-25px);
  transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out);
}

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

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

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

.reveal-scale {
  opacity: 0;
  transform: scale(0.92);
  transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-spring);
}

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

/* ---- Délais de stagger pour reveals ---- */
.reveal[data-delay="1"],
.reveal-left[data-delay="1"],
.reveal-right[data-delay="1"] { transition-delay: 0.1s; }

.reveal[data-delay="2"],
.reveal-left[data-delay="2"],
.reveal-right[data-delay="2"] { transition-delay: 0.2s; }

.reveal[data-delay="3"],
.reveal-left[data-delay="3"],
.reveal-right[data-delay="3"] { transition-delay: 0.3s; }

.reveal[data-delay="4"],
.reveal-left[data-delay="4"],
.reveal-right[data-delay="4"] { transition-delay: 0.4s; }

.reveal[data-delay="5"],
.reveal-left[data-delay="5"],
.reveal-right[data-delay="5"] { transition-delay: 0.5s; }

.reveal[data-delay="6"],
.reveal-left[data-delay="6"],
.reveal-right[data-delay="6"] { transition-delay: 0.6s; }


/* ============================================================
   7. TRANSITIONS NAVIGATION
   ============================================================ */

/* Hamburger → X */
.nav-hamburger.open span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.nav-hamburger.open span:nth-child(2) {
  opacity: 0;
  transform: translateX(-10px);
}

.nav-hamburger.open span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* Transition de page */
.page-enter {
  animation: fadeInUp 0.4s ease-out;
}

.page-leave {
  animation: fadeIn 0.2s ease-out reverse both;
}


/* ============================================================
   8. SOULIGNEMENT ANIMÉ (.highlight-line)
   ============================================================ */

.highlight-line {
  position: relative;
  display: inline-block;
}

.highlight-line::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--color-signal-red);
  border-radius: var(--radius-full);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s var(--ease-out);
}

.highlight-line:hover::after {
  transform: scaleX(1);
}

/* Variante toujours visible (pour les éléments actifs) */
.highlight-line.active::after {
  transform: scaleX(1);
}


/* ============================================================
   9. BARRE DE PROGRESSION
   ============================================================ */

.progress-bar {
  height: 4px;
  background: var(--color-light-gray);
  border-radius: 2px;
  overflow: hidden;
}

.progress-bar-fill {
  height: 100%;
  background: var(--color-royal-blue);
  border-radius: 2px;
  transition: width 0.6s var(--ease-out);
  animation: progressFill 1s var(--ease-out) both;
}

/* Variante rouge (signal) */
.progress-bar-fill.fill-red {
  background: var(--color-signal-red);
}

/* Variante verte */
.progress-bar-fill.fill-green {
  background: var(--color-safety-green);
}


/* ============================================================
   10. SKELETON LOADING
   ============================================================ */

.skeleton {
  background: linear-gradient(
    90deg,
    var(--color-light-gray) 25%,
    var(--color-silver)     50%,
    var(--color-light-gray) 75%
  );
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: 4px;
}

.skeleton-text {
  height: 1em;
  margin-bottom: 0.5em;
  border-radius: 4px;
}

.skeleton-text.w-75 { width: 75%; }
.skeleton-text.w-50 { width: 50%; }
.skeleton-text.w-90 { width: 90%; }

.skeleton-img {
  aspect-ratio: 16 / 9;
  width: 100%;
  border-radius: var(--radius-lg);
}

.skeleton-circle {
  width: 52px;
  height: 52px;
  border-radius: 50%;
}


/* ============================================================
   11. BOUTON CTA PULSANT
   ============================================================ */

.pulse-cta {
  animation: pulse 2s var(--ease-in-out) infinite;
}

.pulse-cta-glow {
  animation: pulseGlow 2s var(--ease-in-out) infinite;
}


/* ============================================================
   12. HERO SLIDER — CROSSFADE
   ============================================================ */

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1s ease;
  pointer-events: none;
}

.hero-slide.active {
  opacity: 1;
  pointer-events: auto;
}

.hero-slide.exiting {
  opacity: 0;
  z-index: 1;
}

.hero-slide.active {
  z-index: 2;
}


/* ============================================================
   13. LOADER / SPINNER
   ============================================================ */

.spinner {
  display: inline-block;
  width: 1.5rem;
  height: 1.5rem;
  border: 3px solid var(--color-silver);
  border-top-color: var(--color-royal-blue);
  border-radius: 50%;
  animation: spin 0.75s linear infinite;
}

.spinner-sm {
  width: 1rem;
  height: 1rem;
  border-width: 2px;
}

.spinner-lg {
  width: 3rem;
  height: 3rem;
  border-width: 4px;
}

/* Overlay de chargement de page */
.page-loader {
  position: fixed;
  inset: 0;
  background: var(--color-navy);
  z-index: 9998;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 1rem;
  transition: opacity 0.4s, visibility 0.4s;
}

.page-loader.hidden {
  opacity: 0;
  visibility: hidden;
}

.page-loader .spinner {
  width: 48px;
  height: 48px;
  border-color: rgba(255, 255, 255, 0.2);
  border-top-color: var(--color-white);
  border-width: 4px;
}


/* ============================================================
   14. ÉLÉMENT FLOTTANT (illustrations)
   ============================================================ */

.float {
  animation: float 4s ease-in-out infinite;
}

.float-slow {
  animation: float 6s ease-in-out infinite;
}

.float-fast {
  animation: float 2.5s ease-in-out infinite;
}

/* Délais pour animer plusieurs éléments en décalé */
.float-delay-1 { animation-delay: 0.5s; }
.float-delay-2 { animation-delay: 1s; }
.float-delay-3 { animation-delay: 1.5s; }


/* ============================================================
   15. GRADIENT ANIMÉ (arrière-plan vivant)
   ============================================================ */

.gradient-animated {
  background: linear-gradient(
    135deg,
    var(--color-navy),
    #1e3a6e,
    var(--color-royal-blue),
    #1B2A4A
  );
  background-size: 300% 300%;
  animation: gradientShift 10s ease infinite;
}


/* ============================================================
   16. NOUVEAUX KEYFRAMES — REFONTE VISUELLE
   ============================================================ */

/* Ken Burns — zoom lent cinématique pour slides hero */
@keyframes kenBurns {
  from { transform: scale(1.0) translate(0, 0); }
  to   { transform: scale(1.10) translate(-2%, -1%); }
}

@keyframes kenBurnsAlt {
  from { transform: scale(1.0) translate(0, 0); }
  to   { transform: scale(1.08) translate(2%, 1%); }
}

/* Clip-path reveal (texte et images) */
@keyframes clipRevealLeft {
  from { clip-path: inset(0 100% 0 0); }
  to   { clip-path: inset(0 0% 0 0); }
}

@keyframes clipRevealRight {
  from { clip-path: inset(0 0 0 100%); }
  to   { clip-path: inset(0 0 0 0%); }
}

/* Reveal de ligne — chaque ligne de texte monte de sous le masque */
@keyframes lineRevealUp {
  from { transform: translateY(110%); opacity: 0; }
  to   { transform: translateY(0);    opacity: 1; }
}

/* Entrée de carte 3D (révèle avec léger tilt et blur) */
@keyframes cardEntrance {
  from {
    opacity: 0;
    transform: translateY(40px) rotateX(8deg);
    filter: blur(3px);
  }
  to {
    opacity: 1;
    transform: translateY(0) rotateX(0deg);
    filter: blur(0);
  }
}

/* Indicateur de progression (barre de slide hero) */
@keyframes fillBar {
  from { transform: scaleX(0); transform-origin: left; }
  to   { transform: scaleX(1); transform-origin: left; }
}

/* Float orbit — éléments décoratifs géométriques */
@keyframes floatOrbit {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  25%       { transform: translate(8px, -12px) rotate(90deg); }
  50%       { transform: translate(-4px, -20px) rotate(180deg); }
  75%       { transform: translate(-12px, -8px) rotate(270deg); }
}

/* Croissance de ligne décorative (section headings) */
@keyframes lineGrow {
  from { transform: scaleX(0); opacity: 0; }
  to   { transform: scaleX(1); opacity: 1; }
}

/* Gradient ambiant (backgrounds vivants) */
@keyframes ambientGradient {
  0%   { background-position: 0% 0%; }
  50%  { background-position: 100% 100%; }
  100% { background-position: 0% 0%; }
}

/* Scroll indicator bounce */
@keyframes scrollBounce {
  0%, 100% { transform: translateY(0); opacity: 1; }
  50%       { transform: translateY(6px); opacity: 0.6; }
}

/* Reveal de fond (div qui s'ouvre depuis le centre) */
@keyframes bgReveal {
  from { clip-path: inset(0 50%); }
  to   { clip-path: inset(0 0%); }
}

/* Pulsation lumineuse subtile pour CTA bands */
@keyframes pulseGlowSubtle {
  0%, 100% { box-shadow: 0 0 0 0 rgba(204, 34, 41, 0.2); }
  50%       { box-shadow: 0 0 0 16px rgba(204, 34, 41, 0); }
}

/* Draw SVG line (stroke-dashoffset technique) */
@keyframes drawLine {
  from { stroke-dashoffset: var(--line-length, 1000); }
  to   { stroke-dashoffset: 0; }
}


/* ============================================================
   17. BARRE DE PROGRESSION DE SCROLL
   ============================================================ */

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--scroll-progress-height, 3px);
  background: var(--scroll-progress-color, var(--color-signal-red));
  transform: scaleX(0);
  transform-origin: left;
  z-index: var(--scroll-progress-z, 9999);
  pointer-events: none;
  will-change: transform;
}


/* ============================================================
   18. CLASSES D'ANIMATION AVANCÉES (GSAP initial states)
   ============================================================ */

/* Split words/lignes — chaque span animé par GSAP */
.split-word,
.split-line {
  display: inline-block;
  will-change: transform, opacity;
}

.split-line-wrap {
  display: block;
  overflow: hidden;
}

/* État initial pour text reveal (masque vertical) */
.gsap-text-reveal {
  clip-path: inset(0 0 100% 0);
  will-change: clip-path, opacity;
  opacity: 0;
}

/* État initial pour clip-path reveals */
.gsap-clip-reveal {
  clip-path: inset(0 100% 0 0);
  will-change: clip-path;
}

/* État initial pour scale reveal */
.gsap-scale-reveal {
  opacity: 0;
  transform: scale(0.85);
  will-change: transform, opacity;
}

/* État initial pour parallax */
.gsap-parallax {
  will-change: transform;
}

/* État initial pour pin section */
.gsap-pin-section {
  will-change: transform;
}

/* État initial pour rotate-in */
.gsap-rotate-in {
  opacity: 0;
  transform: rotate(-5deg) translateY(20px);
  will-change: transform, opacity;
}

/* Stagger batch (utilisé avec ScrollTrigger.batch) */
.gsap-batch-item {
  opacity: 0;
  transform: translateY(30px);
  will-change: transform, opacity;
}


/* ============================================================
   19. FORMES GÉOMÉTRIQUES HERO (éléments décoratifs SVG/CSS)
   ============================================================ */

.hero-shape {
  position: absolute;
  pointer-events: none;
  z-index: 1;
}

.hero-shape-circle {
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.08);
  animation: floatOrbit 12s ease-in-out infinite;
}

.hero-shape-circle--lg {
  width: 300px;
  height: 300px;
  top: -80px;
  right: 10%;
  animation-duration: 16s;
}

.hero-shape-circle--md {
  width: 160px;
  height: 160px;
  bottom: 20%;
  right: 30%;
  animation-duration: 10s;
  animation-delay: -4s;
}

.hero-shape-circle--sm {
  width: 80px;
  height: 80px;
  top: 30%;
  left: 5%;
  animation-duration: 8s;
  animation-delay: -2s;
}

.hero-shape-line {
  width: 200px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
  transform: rotate(-30deg);
  top: 60%;
  right: 15%;
  animation: float 8s ease-in-out infinite;
  animation-delay: -3s;
}

.hero-shapes {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 1;
}


/* ============================================================
   20. INDICATEUR DE SCROLL HERO
   ============================================================ */

.hero-scroll-indicator {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  opacity: 0.7;
  pointer-events: none;
}

.hero-scroll-indicator span {
  display: block;
  width: 1.5rem;
  height: 2.5rem;
  border: 2px solid rgba(255, 255, 255, 0.6);
  border-radius: 12px;
  position: relative;
}

.hero-scroll-indicator span::after {
  content: '';
  position: absolute;
  top: 5px;
  left: 50%;
  transform: translateX(-50%);
  width: 3px;
  height: 6px;
  background: white;
  border-radius: 2px;
  animation: scrollBounce 2s ease-in-out infinite;
}

.hero-scroll-indicator p {
  font-family: var(--font-accent);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
}

/* Masquer sur mobile small */
@media (max-width: 480px) {
  .hero-scroll-indicator { display: none; }
  .hero-shape-circle--lg { display: none; }
}


/* ============================================================
   21. HERO SLIDER — INDICATEURS EN BARRES
   ============================================================ */

.hero-bar-indicators {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.5rem;
  z-index: 3;
}

.hero-bar-indicator {
  width: 32px;
  height: 3px;
  background: rgba(255, 255, 255, 0.35);
  border-radius: 2px;
  border: none;
  cursor: pointer;
  padding: 0;
  position: relative;
  overflow: hidden;
  transition: width 0.3s;
}

.hero-bar-indicator::after {
  content: '';
  position: absolute;
  inset: 0;
  background: white;
  transform: scaleX(0);
  transform-origin: left;
}

.hero-bar-indicator.active {
  width: 48px;
}

.hero-bar-indicator.active::after {
  animation: fillBar 5s linear forwards;
}


/* ============================================================
   22. SÉPARATEURS DE SECTION (Wave / Diagonal)
   ============================================================ */

.section-wave {
  position: relative;
  overflow: visible;
}

.section-wave::after {
  content: '';
  position: absolute;
  bottom: -30px;
  left: 0;
  right: 0;
  height: 60px;
  background: inherit;
  clip-path: polygon(0 0, 100% 0, 100% 40%, 75% 70%, 50% 40%, 25% 70%, 0 40%);
  z-index: 1;
}

.section-diagonal-bottom {
  clip-path: polygon(0 0, 100% 0, 100% 88%, 0 100%);
  padding-bottom: calc(var(--padding-section-y) + 3rem);
}

.section-diagonal-top {
  clip-path: polygon(0 12%, 100% 0, 100% 100%, 0 100%);
  margin-top: -3rem;
  padding-top: calc(var(--padding-section-y) + 3rem);
}


/* ============================================================
   23. NAV GLASS + SCROLL PROGRESS AMÉLIORÉS
   ============================================================ */

/* Ken Burns sur images hero */
.hero-ken-burns {
  animation: kenBurns var(--duration-ken-burns, 8s) ease-out forwards;
}

.hero-ken-burns-alt {
  animation: kenBurnsAlt var(--duration-ken-burns, 8s) ease-out forwards;
}

/* Barre de progression des slides hero (remplacement des dots) */
.hero-slide-timer {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 3px;
  width: 100%;
  background: rgba(255,255,255,0.15);
  z-index: 4;
}

.hero-slide-timer::after {
  content: '';
  display: block;
  height: 100%;
  background: white;
  transform: scaleX(0);
  transform-origin: left;
}

.hero-slide.active .hero-slide-timer::after {
  animation: fillBar 5s linear forwards;
}


/* ============================================================
   24. PREFERS-REDUCED-MOTION — Extension pour nouveaux éléments
   ============================================================ */

@media (prefers-reduced-motion: reduce) {
  /* Ken Burns off */
  .hero-ken-burns,
  .hero-ken-burns-alt {
    animation: none !important;
    transform: none !important;
  }

  /* Formes géométriques immobiles */
  .hero-shape-circle,
  .hero-shape-line {
    animation: none !important;
  }

  /* Scroll indicator immobile */
  .hero-scroll-indicator span::after {
    animation: none !important;
  }

  /* Fill bar immédiat */
  .hero-bar-indicator.active::after {
    animation: none !important;
    transform: scaleX(1) !important;
  }

  /* Nouveaux états GSAP — tout visible d'emblée */
  .gsap-clip-reveal {
    clip-path: none !important;
    opacity: 1 !important;
  }

  .gsap-scale-reveal,
  .gsap-rotate-in,
  .gsap-batch-item {
    opacity: 1 !important;
    transform: none !important;
  }

  .scroll-progress {
    display: none !important;
  }

  /* Désactiver les nouveaux keyframes */
  .gradient-animated {
    animation: none !important;
    background-position: 0 0 !important;
  }

  /* V2 — Logo reveal */
  .logo-reveal-anim {
    animation: none !important;
    opacity: 1 !important;
    filter: none !important;
    transform: none !important;
  }

  /* V2 — Card 3D entrance */
  .card-entrance-3d {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
  }

  /* V2 — CTA band ambient gradient */
  .cta-band {
    animation: none !important;
    background-size: 100% 100% !important;
  }
}

/* ---- Custom cursor dot (desktop only, injected by main.js) ---- */
.cursor-dot {
  position: fixed;
  top: 0;
  left: 0;
  width: 10px;
  height: 10px;
  background: var(--color-signal-red, #cc2229);
  border-radius: 50%;
  pointer-events: none;
  z-index: 99999;
  opacity: 0.75;
  transition: width 0.2s, height 0.2s, opacity 0.2s, background 0.2s;
  will-change: transform;
  transform: translate(-100px, -100px);
}

.cursor-dot.is-hover {
  width: 22px;
  height: 22px;
  opacity: 0.45;
  background: var(--color-royal-blue, #2456a4);
  margin-left: -6px;
  margin-top: -6px;
}

@media (hover: none), (pointer: coarse) {
  .cursor-dot { display: none; }
}

/* ============================================================
   PAGE TRANSITION OVERLAY
   Fade-in à l'arrivée, fade-out avant navigation.
   Respecte prefers-reduced-motion (désactivé si préférence).
   ============================================================ */
.page-transition-overlay {
  position: fixed;
  inset: 0;
  background: #fff;
  z-index: var(--z-top, 900);
  pointer-events: none;
  opacity: 0;
}

/* ---- @keyframes reveal-up — sophisticated avec scale subtil ---- */
@keyframes reveal-up {
  0%   { opacity: 0; transform: translateY(36px) scale(0.96); }
  60%  { opacity: 1; }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}

.reveal-up {
  animation: reveal-up 0.7s var(--ease-smooth, cubic-bezier(0.22, 1, 0.36, 1)) both;
}

/* ============================================================
   LOGO REVEAL — Animation d'entrée logos V2
   ============================================================ */
@keyframes logoReveal {
  from {
    opacity: 0;
    transform: scale(0.75) translateY(12px);
    filter: blur(4px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
    filter: blur(0);
  }
}

.logo-reveal-anim {
  animation: logoReveal 0.7s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

/* ============================================================
   CARD ENTRANCE 3D — activation du keyframe cardEntrance existant
   ============================================================ */
.card-entrance-3d {
  animation: cardEntrance 0.65s var(--ease-spring, cubic-bezier(0.34, 1.56, 0.64, 1)) both;
}

/* ============================================================
   CTA BAND AMBIENT — animation de gradient continu
   ============================================================ */
.cta-band {
  background-size: 200% 200%;
  animation: ambientGradient 8s ease infinite;
}

@media (prefers-reduced-motion: reduce) {
  .cta-band { animation: none; }
  .logo-reveal-anim { animation: none; opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  .page-transition-overlay {
    display: none !important;
  }
}
