/* Textures de fond */
.texture-dark, .texture-light { position: relative; isolation: isolate; }
.texture-dark::before, .texture-light::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
}
.texture-dark::before { background: url("../img/upload/texture-grain.svg"), url("../img/upload/texture-dark.svg"); }
.texture-light::before { background: url("../img/upload/texture-grain.svg"), url("../img/upload/texture-light.svg"); }
.contact-panel { overflow: hidden; }
footer { background-image: url("../img/upload/texture-dark.svg"); }
main { overflow-x: clip; }

.scroll-progress {
  position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 30; pointer-events: none;
  background: linear-gradient(90deg, var(--orange-light), var(--orange-deep));
  transform: scaleX(var(--scroll, 0)); transform-origin: left;
}
header { transition: box-shadow .3s ease; }
header.is-scrolled { box-shadow: 0 10px 30px rgba(249,128,7,.25); }

/* Bandeau défilant */
.ticker { overflow: hidden; background: linear-gradient(90deg, var(--orange-deep), var(--orange-light), var(--orange-deep)); color: #111; border-top: 3px solid #111; border-bottom: 3px solid #111; }
.ticker-track { display: flex; width: max-content; }
.ticker ul { display: flex; align-items: center; gap: 44px; list-style: none; margin: 0; padding: 12px 22px; font-weight: 800; font-style: italic; text-transform: uppercase; white-space: nowrap; }
.ticker li { display: flex; align-items: center; gap: 10px; }

/* Route de la section zone */
.road { position: absolute; left: 0; right: 0; bottom: 14px; height: 3px; background: repeating-linear-gradient(90deg, rgba(249,128,7,.7) 0 26px, transparent 26px 48px); }
.rider { position: absolute; bottom: 5px; left: 12%; color: var(--orange); font-size: 2rem; }

/* Traits de vitesse de l'accueil */
.speed-lines { position: absolute; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.speed-lines span {
  position: absolute; left: 100%; width: 22%; height: 2px; border-radius: 2px; opacity: 0;
  background: linear-gradient(90deg, var(--orange-light), transparent);
}
.speed-lines span:nth-child(1) { top: 9%; }
.speed-lines span:nth-child(2) { top: 24%; }
.speed-lines span:nth-child(3) { top: 47%; }
.speed-lines span:nth-child(4) { top: 63%; }
.speed-lines span:nth-child(5) { top: 81%; }
.speed-lines span:nth-child(6) { top: 93%; }

@media (prefers-reduced-motion: no-preference) {
  .speed-lines span { animation: speed 3.2s linear infinite; }
  .speed-lines span:nth-child(2) { animation-duration: 4.4s; animation-delay: -1.3s; }
  .speed-lines span:nth-child(3) { animation-duration: 2.7s; animation-delay: -2.1s; }
  .speed-lines span:nth-child(4) { animation-duration: 5s; animation-delay: -.6s; }
  .speed-lines span:nth-child(5) { animation-duration: 3.6s; animation-delay: -2.8s; }
  .speed-lines span:nth-child(6) { animation-duration: 4s; animation-delay: -3.4s; }
  .ticker-track { animation: ticker 32s linear infinite; }
  .ticker:hover .ticker-track { animation-play-state: paused; }

  /* « translate » et « rotate » se cumulent avec les transform de GSAP sans les écraser */
  .hero-visual { animation: float 6s ease-in-out infinite; }
  .pin i { display: inline-block; animation: bounce 2.2s ease-in-out infinite; }
  .area-item:nth-child(2) .pin i { animation-delay: .3s; }
  .area-item:nth-child(3) .pin i { animation-delay: .6s; }
  .service-card:hover .service-icon i { animation: wiggle .6s ease; }
  .visual-services li:hover i { animation: wiggle .6s ease; }

  .btn-orange { position: relative; overflow: hidden; }
  .btn-orange::after {
    content: ""; position: absolute; top: 0; bottom: 0; left: -60%; width: 40%;
    background: linear-gradient(100deg, transparent, rgba(255,255,255,.55), transparent);
    animation: shine 4.5s ease-in-out infinite;
  }

  .floating-wa::before {
    content: ""; position: absolute; inset: 0; border-radius: 50%; border: 3px solid var(--green);
    animation: pulse 2s ease-out infinite;
  }
  .zone-route { animation: route 1.2s linear infinite; }
}

@keyframes speed { 0% { left: 100%; opacity: 0; } 15% { opacity: .7; } 100% { left: -25%; opacity: 0; } }
@keyframes ticker { to { transform: translateX(-50%); } }
@keyframes float { 50% { translate: 0 -10px; } }
@keyframes bounce { 50% { translate: 0 -6px; } }
@keyframes wiggle { 25% { rotate: -14deg; } 50% { rotate: 11deg; } 75% { rotate: -6deg; } }
@keyframes shine { 0%, 60% { left: -60%; } 90%, 100% { left: 130%; } }
@keyframes pulse { from { transform: scale(1); opacity: .9; } to { transform: scale(1.7); opacity: 0; } }
@keyframes route { to { stroke-dashoffset: -16; } }
