/* =====================================================
   EASY BIO SANTÉ – HERO CAROUSEL
   Images 100 % visibles, hauteur auto, effet dezoom
   ===================================================== */

/* ---- Conteneur ---- */
.hero {
  position: relative;
  width: 100%;
  overflow: hidden;
  background: #111;
  line-height: 0; /* supprime l'espace fantôme sous les images inline */
}

/* ---- Track ---- */
.hero-track {
  display: flex;
  align-items: flex-start;       /* hauteur portée par les images */
  transition: transform 0.85s cubic-bezier(0.77, 0, 0.175, 1);
  will-change: transform;
}

/* ---- Slide ---- */
.hero-slide {
  flex: 0 0 100%;
  width: 100%;
  overflow: hidden;              /* contient le léger débord du dezoom */
  line-height: 0;
}

/* ---- Wrapper <picture> ---- */
.hero-slide picture {
  display: block;
  width: 100%;
  line-height: 0;
}

/* ---- Image plein largeur ---- */
.hero-img {
  display: block;
  width: 100%;
  height: auto;                  /* hauteur proportionnelle : aucun recadrage */
  transform-origin: center center;

  /* Toutes les images (inactives) : légèrement assombries, scale normal */
  transform: scale(1.0);
  filter: brightness(0.65);
  transition: filter 0.5s ease;
}

/* ---- Dezoom sur le slide actif ---- */
.hero-slide.is-active .hero-img {
  filter: brightness(1);
  animation: dezoom var(--autoplay-duration, 6000ms) ease-out both;
}

@keyframes dezoom {
  from { transform: scale(1.06); }  /* léger zoom initial (6 %) */
  to   { transform: scale(1.00); }  /* retour plein cadre — image entière visible */
}

/* =====================================================
   FLÈCHES
   ===================================================== */
.hero-btn-prev,
.hero-btn-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 20;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.55);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
  transition: background 0.25s ease, border-color 0.25s ease,
              transform 0.25s ease, box-shadow 0.25s ease;
}

.hero-btn-prev { left: 28px; }
.hero-btn-next { right: 28px; }

.hero-btn-prev:hover,
.hero-btn-next:hover {
  background: rgba(0, 0, 0, 0.55);
  border-color: rgba(255, 255, 255, 0.9);
  box-shadow: 0 6px 28px rgba(0, 0, 0, 0.4);
  transform: translateY(-50%) scale(1.08);
}

.hero-btn-prev svg,
.hero-btn-next svg {
  width: 22px;
  height: 22px;
  stroke: #fff;
  fill: none;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* =====================================================
   DOTS
   ===================================================== */
.hero-dots {
  position: absolute;
  bottom: 22px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 20;
  display: flex;
  gap: 10px;
  align-items: center;
}

.hero-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.75);
  background: transparent;
  cursor: pointer;
  padding: 0;
  transition: width 0.35s ease, border-radius 0.35s ease,
              background 0.35s ease, border-color 0.35s ease;
}

.hero-dot.is-active {
  width: 30px;
  border-radius: 5px;
  background: #fff;
  border-color: #fff;
}

/* =====================================================
   BARRE DE PROGRESSION
   ===================================================== */
.hero-progress {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 3px;
  width: 0%;
  background: rgba(42, 180, 154, 0.85);
  z-index: 20;
  transition: none;
}

.hero-progress.is-running {
  transition: width var(--autoplay-duration, 6000ms) linear;
  width: 100%;
}

/* =====================================================
   COMPTEUR
   ===================================================== */
.hero-counter {
  position: absolute;
  bottom: 18px;
  right: 28px;
  z-index: 20;
  font-size: 0.78rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.7);
  letter-spacing: 0.1em;
  font-family: 'Segoe UI', system-ui, sans-serif;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
}

/* =====================================================
   RESPONSIVE
   Les images se redimensionnent naturellement.
   On ajuste seulement les contrôles.
   ===================================================== */

@media (max-width: 767px) {
  /* Sur mobile les images sont portrait — les contrôles restent visibles */
  .hero-btn-prev,
  .hero-btn-next {
    width: 38px;
    height: 38px;
    border-width: 1.5px;
    background: rgba(0,0,0,0.22);
  }
  .hero-btn-prev { left: 10px; }
  .hero-btn-next { right: 10px; }

  .hero-btn-prev svg,
  .hero-btn-next svg {
    width: 16px;
    height: 16px;
    stroke-width: 2.5;
  }

  .hero-dots { bottom: 14px; gap: 8px; }
  .hero-dot { width: 7px; height: 7px; }
  .hero-dot.is-active { width: 22px; }
  .hero-counter { display: none; }
  .hero-progress { height: 2px; }
}
