.reels-slider-container {
  width: 100%;
  margin: 0 auto;
  position: relative;
  padding: 2% 1%;
  max-width: 1550px;
}
.reels-slider-container .section-title {
  font-size: 2.2rem;
  font-weight: bold;
  margin-bottom: 25px;
  position: relative;
  padding-left: 15px;
  text-transform: uppercase;
  display: flex;
  align-items: center;
}
.reels-slider-container .section-title::before {
  content: "";
  display: inline-block;
  width: 5px;
  height: 85%;
  background-color: #e65f0d;
  position: absolute;
  left: -5px;
  top: 0;
}
.reelsSwiper {
  width: 100%;
  height: auto;
}

.swiper-slide {
  text-align: center;
  display: flex;
  justify-content: center;
  align-items: center;
  height: auto;
}

.video-container {
  position: relative;
  width: 100%;
  height: 0;
  padding-bottom: 177.78%; /* Pour un ratio 9:16 */
  overflow: hidden;
}

.video-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 15px;
}

.video-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.3);
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.video-container:hover .video-overlay {
  opacity: 1;
}

.play-pause-btn {
  background: none;
  border: none;
  color: white;
  font-size: 2rem;
  cursor: pointer;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  justify-content: center;
  align-items: center;
  transition: transform 0.2s ease;
}

.play-pause-btn:hover {
  transform: scale(1.1);
}

.swiper-pagination {
  right: 10px !important;
  left: auto !important;
  width: auto !important;
}

.swiper-pagination-bullet {
  width: 8px;
  height: 8px;
  background: white;
  opacity: 0.5;
}

.swiper-pagination-bullet-active {
  background: white;
  opacity: 1;
}

.youtube-link {
  position: absolute;
  bottom: 20px;
  right: 20px;
  color: white;
  font-size: 2rem;
  text-decoration: none;
  transition: transform 0.2s ease;
}

.youtube-link:hover {
  transform: scale(1.1);
  color: red;
}

@media (max-width: 768px) {
  .reelsSwiper {
    width: 100%;
    height: auto;
  }

  .swiper-slide {
    width: 50%;
    height: auto;
  }

  .video-container {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 177.78%;
  }

  .video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 15px;
  }

  .play-pause-btn {
    width: 40px;
    height: 40px;
    font-size: 1.5rem;
  }

  .youtube-link {
    font-size: 1.5rem;
    bottom: 10px;
    right: 10px;
  }
  .reels-slider-container .section-title {
    font-size: 1.5em;
  }
}
/* Styles pour l'overlay vidéo en plein écran */
.video-fullscreen-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background-color: #000;
  z-index: 9999;
  display: none;
}

.video-fullscreen-overlay.active {
  display: block;
}

.fullscreen-video-container {
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

#fullscreen-video-player {
  width: 100%;
  height: 100%;
}

#fullscreen-video-player iframe {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.close-fullscreen-btn {
  position: absolute;
  top: 15px;
  right: 15px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  color: white;
  border: none;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 20px;
  cursor: pointer;
  z-index: 10;
}

/* Ajustement pour rendre les vidéos plus cliquables sur mobile */
@media (max-width: 768px) {
  .reels-slider-container .section-title {
    margin-bottom: 8px;
    margin-top: 10px;
  }
  .video-overlay {
    opacity: 1;
    background: rgba(0, 0, 0, 0.1);
  }

  .play-pause-btn {
    width: 50px;
    height: 50px;
    background: rgba(0, 0, 0, 0.4);
  }
}
