/*
 * Repeater Slider - Bandeau de réassurance horizontal (marquee)
 * Adapté pour PrestaShop (les sélecteurs html.index / html.collection de Shopify
 * sont remplacés par la classe .is-home gérée par le module).
 */

.horizontal-repeater-slider-section {
  position: relative;
  padding: 24px 0;
  overflow: visible;
}

/* Variante page d'accueil (anciennement html.index) */
.horizontal-repeater-slider-section.is-home {
  /* margin-top: -75px; */
  z-index: 11;
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
}

.horizontal-repeater-slider-section:before {
  position: absolute;
  content: "";
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-top: 1px solid rgba(255, 255, 255, .14);
  z-index: 1;
}

.horizontal-repeater-slider-section:after {
  position: absolute;
  content: "";
  top: -388px;
  left: 0;
  width: 100%;
  height: 463px;
  background: transparent linear-gradient(181deg, #1110 30%, #111) 0% 0% no-repeat padding-box;
  display: none;
}

.horizontal-slider {
  position: relative;
}

.horizontal-slider > .repeater-slider__clip {
  overflow: hidden;
  position: relative;
  width: 100%;
}

.horizontal-repeater-slider-section .horizontal-slider-track {
  position: relative;
  z-index: 3;
  display: flex;
  flex-flow: row nowrap;
  align-items: center;
  width: max-content;
  max-width: none;
  min-height: 1.5rem;
  will-change: transform;
}

.horizontal-repeater-slider-section .horizontal-slide {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  text-align: center;
}

.horizontal-repeater-slider-section .horizontal-slide .saprator-line {
  width: 45px;
  height: 1px;
  border: 1px solid #ffffff;
  opacity: .14;
  display: block;
  margin: 0 55px;
}

.horizontal-repeater-slider-section .horizontal-slide .titre-text {
  padding: 0 0 0 16px;
  font-size: .875rem;
  font-weight: 500;
  line-height: 18px;
  text-transform: uppercase;
  letter-spacing: .84px;
  color: #fff;
}

.horizontal-repeater-slider-section .horizontal-slide img {
  width: auto;
  height: auto;
  max-height: 28px;
}

/* ----------------------------------------------------------------
 * Variantes de style
 * ---------------------------------------------------------------- */
.bottom-black-reassurance-slider {
  background-color: #111;
  border-top: 1px solid rgba(255, 255, 255, .15);
}

.bottom-black-reassurance-slider:before,
.bottom-black-reassurance-slider:after,
.bg-white-text-black-reassurance-slider:before,
.bg-white-text-black-reassurance-slider:after {
  display: none !important;
}

.bg-white-text-black-reassurance-slider {
  background-color: #fff !important;
  border-top: 1px solid rgba(17, 17, 17, .14) !important;
  border-bottom: 1px solid rgba(17, 17, 17, .14) !important;
}

.bg-white-text-black-reassurance-slider .titre-text {
  color: #111 !important;
}

.bg-white-text-black-reassurance-slider .horizontal-slide .saprator-line {
  border: 1px solid #111111 !important;
}

/* ----------------------------------------------------------------
 * Responsive
 * ---------------------------------------------------------------- */
@media screen and (max-width: 767px) {
  .horizontal-repeater-slider-section {
    padding: 12px 0;
    background-color: #111;
  }

  .horizontal-repeater-slider-section:before {
    display: none;
  }

  .horizontal-repeater-slider-section.is-home {
    margin-top: -51px;
  }
}

/* Accessibilité : pas d'animation si l'utilisateur le demande */
@media (prefers-reduced-motion: reduce) {
  .horizontal-repeater-slider-section .horizontal-slider-track {
    transform: none !important;
  }
}
