/* Contenu CSS extrait depuis ton ancien slider, inchangé pour l’instant (voir plus haut) */
.wave-wrapper,
.ocean,
.waves,
.wave {
  pointer-events: none;
}


/* 🌊 Vagues animées */
.ocean {
  width: 100%;
  top: 100px;
  height: 400px;
  position: relative;
  overflow: hidden;
  pointer-events: none;
  z-index: 11;
}

.ocean.bottom {
  transform: rotate(180deg);

  z-index: 4 !important;
}

.waves {
  position: relative;
  z-index: 12;
}

.wave {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 300px;
  background: url(../Banqueimage/wave3l.webp);
  background-size: 1500px 300px;
}

#wave1, #wave1b {
  bottom: 0;
  opacity: 1;
  z-index: 20;
  animation: vague_mouvante 16s infinite linear;
}
#wave2, #wave2b {
  bottom: 10px;
  opacity: 0.5;
  z-index: 19;
  animation: vague_mouvante_reverse 13s infinite linear;
}
#wave3, #wave3b {
  bottom: 15px;
  opacity: 0.7;
  z-index: 18;
  animation: vague_mouvante 11.2s infinite linear;
}
#wave4, #wave4b {
  bottom: 25px;
  opacity: 0.4;
  z-index: 17;
  animation: vague_mouvante_reverse 10.4s infinite linear;
}
#wave5, #wave5b {
  bottom: 30px;
  opacity: 0.5;
  z-index: 16;
  animation: vague_mouvante 8.2s infinite linear;
}

@keyframes vague_mouvante {
  0% { background-position-x: 0px; transform: translateY(10px); }
  50% { transform: translateY(0px); }
  100% { background-position-x: 1500px; transform: translateY(10px); }
}

@keyframes vague_mouvante_reverse {
  0% { background-position-x: 1500px; transform: translateY(10px); }
  50% { transform: translateY(0px); }
  100% { background-position-x: 0px; transform: translateY(10px); }
}

/* 🔄 Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* 🌊 Vagues */
.wave-wrapper {
  position: relative;
  width: 100%;
  height: 410px;
  overflow: hidden;
  z-index: 10;
  top: -200px;
}
.wave-wrapper.top {
  margin-bottom: -200px;
}
.wave-wrapper.bottom {
  margin-bottom: -300px;
}

/* 🖼️ Slider */
.slider-section {
  position: relative;
  z-index: 0;
  width: 100%;
  overflow: hidden;
  background: transparent;
}

.slider-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  z-index: -3;
  transition: background-image 0.5s ease-in-out, opacity 0.3s;
  filter: brightness(40%);
}

.slider-wrapper {
  position: relative;
  width: 100%;
  z-index: 1;
}

/* 🧩 Swiper */
.swiper-container {
  position: relative;
  width: 100%;
  min-height: 450px;
  height: 20vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
}

.swiper-wrapper {
  position: relative;
  height: 100%;
}

.swiper-slide {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 0;
  text-align: center;
  position: relative; /* ✅ nécessaire pour .slide-overlay */
}


.slide-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;             /* ✅ inférieur à .slide-content */
  pointer-events: none;   /* ✅ permet de cliquer à travers */
}


/* 📄 Slide Content */
.slide-content {
  position: relative; /* ✅ indispensable */
  max-width: 40%;
  padding: 20px;
  color: white;
  border-radius: 10px;
  z-index: 9999;
}

.slide-content.left {
  text-align: right;
  align-items: flex-end;
  margin-left: 20%; /* décale légèrement à gauche */
}

.slide-content.right {
  text-align: left;
  align-items: flex-start;
  margin-right: 20%; /* décale légèrement à droite */
}

.slide-content h2 {
  margin-bottom: 15px; /* ✅ espace entre le titre et le texte */
  font-size: 24px;
  font-family: 'Poppins', sans-serif;
  color: #fff;
  font-weight: 700; /* ✅ Rend la deuxième ligne plus fine */
}

.slide-content p {
  margin-bottom: 15px; /* ✅ espace entre le titre et le texte */
  font-size: 16px;
  font-family: 'Poppins', sans-serif;
  color: #fff;
  font-weight: 200; /* ✅ Rend la deuxième ligne plus fine */
}


.slide-content a {
  font-family: 'Poppins', sans-serif;
  display: inline-block;
  margin-top: 15px;
  padding: 12px 24px;
  background: #28a745;
  color: white;
  font-size: 14px;
  text-decoration: none;
  border-radius: 8px;
  transition: transform 0.2s ease-in-out, background-color 0.3s ease-in-out;
  z-index: 99999;
}

.slide-content a:hover {
  transform: scale(1.1);
  background: #218838;
}

/* ➡️⬅️ Navigation */
.swiper-button-next,
.swiper-button-prev {
  width: 50px;
  height: 50px;
  background-color: rgba(0, 0, 0, 0.4);
  border-radius: 50%;
  color: white;
  z-index: 3;
  top: 50%;
  transform: translateY(-50%);
}

.swiper-button-next::after,
.swiper-button-prev::after {
  font-size: 20px;
}

/* 🟢 Pagination fixée manuellement */
.swiper-pagination {
  position: absolute !important;
  bottom: 50px !important; /* 🔽 ajuste ici */
  left: 0;
  right: 0;
  display: flex !important;
  justify-content: center;
  z-index: 10;
}

.swiper-pagination .swiper-pagination-bullet {
  background: rgba(255, 255, 255, 0.4);
  opacity: 1;
  width: 10px;
  height: 10px;
  margin: 0 5px;
  border-radius: 50%;
}

.swiper-pagination .swiper-pagination-bullet-active {
  background-color: #28a745;
}

/* 📱 Responsive */
@media screen and (max-width: 768px) {
  .swiper-container {
    height: auto;
  }

  .slide-content {
    max-width: 80%;
    text-align: center;
    align-items: center;
  }

  .swiper-button-next,
  .swiper-button-prev {
    width: 40px;
    height: 40px;
  }
}

@media screen and (max-width: 480px) {
  .slide-content {
    max-width: 90%;
  }

  .slide-content h2 {
    font-size: 20px;
  }

  .slide-content p {
    font-size: 14px;
  }

  .slide-content a {
    font-size: 13px;
    padding: 10px 20px;
  }

  .swiper-button-next,
  .swiper-button-prev {
    width: 35px;
    height: 35px;
  }
}
