/* Bannières défilantes accueil - INDIGO FRANCE */

/* Espacement de la rangée (entre les blocs "Univers" et la réassurance) */
.ihb-wrap {
  margin: 0 auto 48px auto;
}

.ihb-slider {
  position: relative;
  overflow: hidden;
  border-radius: 14px; /* même arrondi que les cartes "Univers" */
}

/* --- Effet glissement --- */
.ihb-track {
  display: flex;
  transition: transform 0.6s ease;
  will-change: transform;
}

.ihb-slide {
  flex: 0 0 100%;
  min-width: 100%;
}

.ihb-slide a,
.ihb-slide picture {
  display: block;
}

.ihb-slide img {
  display: block;
  width: 100%;
  height: auto;
}

/* --- Effet fondu : slides superposées --- */
.ihb-slider--fade .ihb-track {
  display: grid;
  transform: none !important;
}

.ihb-slider--fade .ihb-slide {
  grid-area: 1 / 1;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}

.ihb-slider--fade .ihb-slide.is-active {
  opacity: 1;
  visibility: visible;
  z-index: 1;
}

/* --- Flèches --- */
.ihb-arrow {
  position: absolute;
  top: 50%;
  z-index: 2;
  width: 40px;
  height: 40px;
  margin-top: -20px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.85);
  color: #1a3f1e;
  font-size: 28px;
  line-height: 38px;
  text-align: center;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.2s ease, background 0.2s ease;
}

.ihb-slider:hover .ihb-arrow,
.ihb-arrow:focus-visible {
  opacity: 1;
}

.ihb-arrow:hover {
  background: #fff;
}

.ihb-prev { left: 12px; }
.ihb-next { right: 12px; }

/* Écrans tactiles : flèches toujours visibles */
@media (hover: none) {
  .ihb-arrow { opacity: 1; }
}

/* --- Puces --- */
.ihb-dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 12px;
  z-index: 2;
  display: flex;
  justify-content: center;
  gap: 8px;
}

.ihb-dot {
  width: 12px;
  height: 12px;
  padding: 0;
  border: 2px solid #fff;
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
  box-shadow: 0 0 3px rgba(0, 0, 0, 0.3);
}

.ihb-dot.is-active {
  background: #f39200; /* orange du site */
  border-color: #f39200;
}

@media (max-width: 767px) {
  .ihb-wrap { margin-bottom: 32px; }
  .ihb-slider { border-radius: 10px; }
  .ihb-arrow { width: 32px; height: 32px; margin-top: -16px; font-size: 22px; line-height: 30px; }
}

@media (prefers-reduced-motion: reduce) {
  .ihb-track,
  .ihb-slide { transition: none; }
}
