.pictures-slider {
  position: relative;
}

.pictures-slider__viewport {
  overflow: hidden;
  border-radius: 16px;
  outline: none;

  /* hauteur du slider */
  aspect-ratio: 16 / 9;       /* pratique et responsive */
  background: #f2f2f2;        /* optionnel: fond si l’image ne remplit pas */
}

/* Chaque slide prend toute la hauteur du viewport */
.pictures-slider__slide {
  flex: 0 0 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Image contain */
.pictures-slider__img {
  width: 100%;
  height: 100%;
  object-fit: contain;   /* <-- important */
  display: block;
}


.pictures-slider__track {
  display: flex;
  transition: transform 300ms ease;
  will-change: transform;
}

.pictures-slider__btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;

  border: 0;
  background: rgba(0,0,0,.45);
  color: #fff;

  width: 42px;
  height: 42px;
  border-radius: 999px;
  cursor: pointer;

  display: flex;              /* <-- centre réellement */
  align-items: center;
  justify-content: center;

  font-size: 28px;            /* ajuste */
  line-height: 1;             /* important */
  padding: 0;                 /* important */
}


.pictures-slider__btn[disabled] {
  opacity: .35;
  cursor: not-allowed;
}

.pictures-slider__btn--prev { left: 10px; }
.pictures-slider__btn--next { right: 10px; }

.pictures-slider__dots {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin-top: 12px;
}

.pictures-slider__dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  border: 0;
  opacity: .35;
  cursor: pointer;
}

.pictures-slider__dot.is-active {
  opacity: 1;
}

/* Le slider (bloc) */
section.pictures-slider .container {
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Le composant slider (celui qui contient viewport + boutons) */
section.pictures-slider #pictures-slider,
section.pictures-slider [data-slider] {
  width: 100%;
  max-width: 900px;      /* ajuste: 720 / 900 / 1100... */
  margin-inline: auto;
}

.section-title h2 {
    font-size : clamp(1.5rem, 2.5vw, 2.5rem);
    text-align : center;
}