.ca-slider{
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  position: relative;
  height: var(--ca-slider-height, 60vh);
  overflow: hidden;
}

.ca-slider__viewport{
  height: 100%;
  width: 100%;
  overflow: hidden;
}

.ca-slider__track{
  height: 100%;
  display: flex;
  transition: transform 450ms ease;
  will-change: transform;
}

/* ✅ IMPORTANT : Divi wrap chaque enfant dans un conteneur.
   On force donc les enfants directs du track à être des "slides" 100% */
.ca-slider__track > *{
  flex: 0 0 100%;
  min-width: 100%;
  height: 100%;
  margin: 0 !important;
  padding: 0 !important;
}

/* Si ton rendu contient encore un .ca-slider__slide à l'intérieur */
.ca-slider__slide{
  width: 100%;
  height: 100%;
  display: flex;
}

.ca-slider__img,
.ca-slider__video{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.ca-slider__embed{
  width: 100%;
  height: 100%;
}

.ca-slider__embed iframe{
  width: 100%;
  height: 100%;
  display: block;
}

.ca-slider__arrow{
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
  border: 0;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  cursor: pointer;
  background: rgba(0,0,0,.45);
  color: #fff;
  font-size: 28px;
  line-height: 44px;
  text-align: center;
}

.ca-slider__arrow--prev{ left: 14px; }
.ca-slider__arrow--next{ right: 14px; }

.ca-slider__dots{
  position: absolute;
  left: 0;
  right: 0;
  bottom: 14px;
  display: flex;
  justify-content: center;
  gap: 8px;
  z-index: 5;
}

.ca-slider__dot{
  width: 10px;
  height: 10px;
  border-radius: 999px;
  border: 0;
  cursor: pointer;
  background: rgba(255,255,255,.55);
}

.ca-slider__dot.is-active{
  background: rgba(255,255,255,.95);
}

.ca-slider__empty{
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  background: #f2f2f2;
  color: #666;
  font-size: 16px;
}
