/* ══════════════════════════════════════════════════
   home-app.css — Styles carrousel HomePage
   Externalisé depuis HomePage.tsx — cache CDN 1 an
   ══════════════════════════════════════════════════ */

/* ── Carrousel hero ── */
.hero-slideshow {
  position: absolute;
  inset: 0;
  overflow: hidden;
  z-index: 0;
}
.hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1.4s ease-in-out, transform 8s ease-in-out;
  transform: scale(1.05);
}
.hero-slide.active {
  opacity: 1;
  transform: scale(1);
  z-index: 1;
}
.hero-slide::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(15, 23, 42, 0.82) 0%,
    rgba(30, 49, 99, 0.72) 40%,
    rgba(15, 23, 42, 0.55) 70%,
    rgba(15, 23, 42, 0.35) 100%
  );
}
.hero-content {
  position: relative;
  z-index: 10;
}
.slide-indicators {
  position: absolute;
  bottom: 80px;
  right: 32px;
  z-index: 20;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.slide-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.4);
  cursor: pointer;
  transition: all 0.3s;
  border: none;
  padding: 0;
}
.slide-dot.active {
  background: #f59e0b;
  width: 10px;
  height: 10px;
  transform: scale(1.2);
  box-shadow: 0 0 8px rgba(245,158,11,0.6);
}
.slide-label {
  position: absolute;
  bottom: 80px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 20;
  background: rgba(0,0,0,0.45);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.15);
  color: white;
  padding: 6px 18px;
  border-radius: 30px;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: opacity 0.5s;
}
.slide-prev, .slide-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 20;
  background: rgba(255,255,255,0.12);
  backdrop-filter: blur(4px);
  border: 1px solid rgba(255,255,255,0.2);
  color: white;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
}
.slide-prev { left: 16px; }
.slide-next { right: 16px; }
.slide-prev:hover, .slide-next:hover {
  background: rgba(245,158,11,0.5);
  border-color: #f59e0b;
  transform: translateY(-50%) scale(1.1);
}
@media (max-width: 640px) {
  .slide-label { display: none; }
  .slide-indicators { bottom: 70px; right: 16px; }
  .slide-prev, .slide-next { width:44px; height:44px; }
  .slide-prev { left:8px; }
  .slide-next { right:8px; }
}
/* Carrousel hero — touch swipe support */
.hero-slideshow { touch-action:pan-y; }
/* Hero min-height adaptatif */
@media (max-width:480px){ section.gradient-hero{ min-height:520px; } }
/* Hero texte plus petit sur petit écran */
@media (max-width:380px){
  #heroTitle{ font-size:2rem !important; }
}

/* ── Carrousel ouvriers ── */
.worker-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  transition: transform 0.5s ease;
}
.worker-slide:hover .worker-card-img {
  transform: scale(1.06);
}
.worker-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.55) 0%, rgba(0,0,0,0.05) 60%);
}
