/* ════════════════════════════════════════════════════════════════════
   33 LAB — INTERACTIVITY
   Scroll progress, marquee hover, enhanced cards, stats halo.
   Charger après components.css.
   ════════════════════════════════════════════════════════════════════ */

/* ─── 1. SCROLL PROGRESS BAR ────────────────────────────────────── */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  z-index: 200;
  background: transparent;
  pointer-events: none;
}
.scroll-progress::before {
  content: '';
  display: block;
  height: 100%;
  width: var(--scroll-progress, 0%);
  background: linear-gradient(90deg, var(--amber) 0%, var(--gold) 100%);
  box-shadow: 0 0 12px rgba(196, 129, 61, 0.6);
  transition: width 0.08s linear;
}

/* ─── 2. MARQUEE PAUSE-ON-HOVER ─────────────────────────────────── */
.marquee:hover .marquee-track,
.marquee:focus-within .marquee-track {
  animation-play-state: paused;
}
.marquee {
  cursor: pointer;
}

/* ─── 3. ENHANCED CARD HOVER ────────────────────────────────────── */
.card,
.pillar,
.service-card,
.location-card,
.diff-item,
.team-card,
.value-card,
.process-step {
  position: relative;
  transition: transform var(--duration-base) var(--ease-out),
              border-color var(--duration-base) var(--ease-out),
              background var(--duration-base) var(--ease-out),
              box-shadow var(--duration-base) var(--ease-out);
}

.card:hover,
.pillar:hover,
.service-card:hover,
.location-card:hover,
.diff-item:hover,
.team-card:hover,
.value-card:hover,
.process-step:hover {
  transform: translateY(-4px);
  border-color: var(--amber-on-dark);
  box-shadow:
    0 12px 32px rgba(0, 0, 0, 0.45),
    0 0 0 1px rgba(196, 129, 61, 0.15),
    0 8px 24px rgba(196, 129, 61, 0.12);
}

/* Subtle amber glow on the top edge of cards */
.pillar::after,
.service-card::after,
.location-card::after,
.diff-item::after {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, var(--amber-on-dark) 50%, transparent 100%);
  transition: width var(--duration-base) var(--ease-out);
  pointer-events: none;
}
.pillar:hover::after,
.service-card:hover::after,
.location-card:hover::after,
.diff-item:hover::after {
  width: 80%;
}

/* ─── 4. STATS HALO ─────────────────────────────────────────────── */
.stat-num {
  transition: filter 0.6s var(--ease-out), text-shadow 0.6s var(--ease-out);
}
.stat-num.counted {
  text-shadow:
    0 0 16px rgba(196, 129, 61, 0.5),
    0 0 32px rgba(196, 129, 61, 0.25);
  animation: statPulse 1.6s var(--ease-out);
}
@keyframes statPulse {
  0%   { filter: brightness(1); }
  35%  { filter: brightness(1.35); }
  100% { filter: brightness(1); }
}

/* ─── 5. NAV LINK UNDERLINE ANIMATION ───────────────────────────── */
.nav-links a:not(.nav-cta) {
  position: relative;
  padding-block: var(--space-2);
}
.nav-links a:not(.nav-cta)::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 1.5px;
  background: var(--amber-on-dark);
  transition: width var(--duration-base) var(--ease-out);
}
.nav-links a:not(.nav-cta):hover::after,
.nav-links a:not(.nav-cta):focus-visible::after,
.nav-links a:not(.nav-cta).active::after,
.nav-links a:not(.nav-cta)[aria-current="page"]::after {
  width: 100%;
}

/* ─── 6. AMBIENT GRADIENT ON SECTIONS ───────────────────────────── */
.section,
.cta-section {
  position: relative;
}
.section::before,
.cta-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--gradient-ambient);
  pointer-events: none;
  z-index: 0;
  opacity: 0.7;
}
.section > *,
.cta-section > * {
  position: relative;
  z-index: 1;
}

/* ─── REDUCED MOTION ────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  .scroll-progress::before { transition: none; }
  .marquee-track { animation: none !important; }
  .stat-num.counted { animation: none; text-shadow: none; }
  .card:hover,
  .pillar:hover,
  .service-card:hover,
  .location-card:hover,
  .diff-item:hover,
  .team-card:hover,
  .value-card:hover,
  .process-step:hover {
    transform: none;
  }
}
