/* Carrousel de pub HappyScore (voir js/hs-carousel.js). Variantes : --mobile (bandeau bas des pages matchs), --tv (pied d'écran TV). */
.hs-carousel {
  overflow: hidden;
  margin: 0;
  padding: 0;
  line-height: 0;
  background: transparent;
}

.hs-carousel__track {
  display: flex;
  align-items: stretch;
  width: max-content;
  height: 100%;
  margin: 0;
  padding: 0;
  will-change: transform;
  transform: translate3d(0, 0, 0);
}

.hs-carousel__slide,
.hs-carousel__link {
  flex: 0 0 auto;
  display: flex;
  align-items: stretch;
  height: 100%;
}

.hs-carousel__link {
  color: inherit;
  text-decoration: none;
  cursor: pointer;
  touch-action: manipulation;
}

.hs-carousel__link:focus-visible {
  outline: 3px solid #ffd719;
  outline-offset: -3px;
}

.hs-carousel__slide img {
  display: block;
  flex: 0 0 auto;
  width: auto;
  max-width: none;
  height: 100%;
  object-fit: contain;
}

/* Mobile : bandeau fixe en bas d'écran, masqué sur grand écran sauf variante --always. */
:root {
  --pub-h: 17vh;
}

@supports (height: 1dvh) {
  :root {
    --pub-h: 17dvh;
  }
}

.hs-carousel--mobile {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1000;
  height: var(--pub-h) !important;
  max-height: var(--pub-h) !important;
  min-height: 0;
  background: transparent;
}

/* Les anciennes règles .pub (flex centré) décaleraient la piste : elle part toujours du bord gauche. */
.hs-carousel.pub {
  display: block;
  padding: 0;
}

@media (min-width: 800px) {
  .hs-carousel--mobile:not(.hs-carousel--always) {
    display: none !important;
  }

  /* Tablettes et grands écrans (/mobile du TMC) : prime sur les anciennes règles .pub { display: none !important }. */
  .hs-carousel.hs-carousel--always {
    display: block !important;
  }
}

/* TV : remplit le bloc parent (pied de la scène TV), toujours visible. */
.hs-carousel--tv {
  width: 100%;
  height: 100%;
}

@media (prefers-reduced-motion: reduce) {
  .hs-carousel__track {
    transform: none !important;
  }
}
