#carouselB {
  height: 200px;
  max-width: 275px;
  /*margin-bottom: 50px;*/
}

#carouselC {
  height: 200px;
  max-width: 275px;
  /*margin-bottom: 50px;*/
}

.slide > img {
  object-fit: contain;
}

.float-title {
  position: absolute;
  color: white;
  font-style: normal;
  font-weight: 700;
  top: 10%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 999;
  background: rgba(0, 0, 0, 0.5);
  padding: 5px 10px;
  border-radius: 6px;
  font-size: 14px;
  text-align: center;
}

[data-carousel] {
  position: relative;
  width: 100%;
  margin: 0 auto;
  overflow: hidden;
}

[data-slides] {
  position: relative;
  height: 100%;
  overflow: hidden;
}

/* Seule la slide active est visible et cliquable */
[data-slides] .slide[data-active] {
  opacity: 1;
  pointer-events: auto;
  /* redevient cliquable */
  z-index: 1;
}

/* Toutes les slides sont empilées, non cliquables et invisibles */
[data-slides] .slide {
  position: absolute;
  inset: 0;
  /* top/right/bottom/left: 0 */
  opacity: 0;
  pointer-events: none;
  /* empêché de capter les clics */
  transition: opacity 0.3s ease;
}

/*.slide::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 90%;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.6), transparent);
}*/

.slide > img {
  display: block;
  width: 100%;
  height: 100%;
  object-position: center;
}

/* Boutons */
button.prev,
button.next {
  color: #ffffff;
  z-index: 2;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.5);
  border: none;
  font-size: 24px;
  padding: 8px 12px;
  cursor: pointer;
  border-radius: 0.25rem;
  transition: background-color 0.3s ease;
}

button.prev {
  left: 19px;
}

button.next {
  right: 19px;
}

button:hover {
  background: #000000cc; /*rgba(0, 0, 0, 0.8);*/
}
