.custom-slider {
  width: 100vw;
  overflow: hidden;
  position: relative;
}

.custom-slider .slide {
  display: none;
  position: relative;
  width: 100%;
  opacity: 0;
  transition: opacity 1s ease-in-out;
}

.custom-slider .slide.active {
  display: block;
  opacity: 1;
}

.custom-slider img {
  width: 100vw;
  height: auto;
  display: block;
  object-fit: contain;
}

/* Texte par-dessus l'image */
.slide-caption {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 2;
  width: 100%;
  height: 100%;
  box-sizing: border-box;
}

/* H1 positionné en haut à droite */
.slide-caption h1 {
  position: absolute;
  top: 2rem;
  right: 2rem;
  color: white;
  font-size: clamp(1.5rem, 4vw, 3rem);
  font-family: 'Playfair Display', serif;
  text-shadow: 0 2px 5px rgba(0, 0, 0, 0.6);
  margin: 0;
  text-align: right;
  z-index: 3;
}

/* Bouton centré horizontalement en bas */
.slide-button {
  position: absolute;
  bottom: 70px;
  left: 50%;
  transform: translateX(-50%);
  padding: 0.75rem 1.5rem;
  background-color: #ffffff;
  color: #000000;
  text-decoration: none !important;
  font-weight: bold;
  border-radius: 30px;
  transition: background-color 0.3s, color 0.3s;
  z-index: 3;
}

.slide-button:hover {
  background-color: #000000;
  color: #ffffff;
}

/* Points de navigation */
.slider-dots {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 10;
}

.slider-dots .dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: background 0.3s ease;
}

.slider-dots .dot.active {
  background: rgba(255, 255, 255, 1);
}
