/* Style complet pour le carousel avec images à 100% de hauteur */
.widget .events-carousel {
  position: relative;
  overflow: hidden; /* Essentiel pour contenir les images */
  width: 100%;
  
  padding-bottom: 30px; /* Espace pour les dots */
}

/* Style des éléments du carousel */
.carousel-item {
  padding: 8px;
  outline: none;
  display: none;
  width: 100%;
  box-sizing: border-box;
}

.carousel-item:first-child {
  display: block;
}

/* Conteneur des éléments du carousel */
.widget .events-carousel .blog-grid {
  width: 100%;
  overflow: hidden; /* Contient les éléments enfants */
  margin-bottom: 10px;
}

/* Conteneur des images */
.widget .events-carousel .blog-grid figure {
  width: 100%;
   max-width: 420px;
  max-height: 600px;
  margin: 0;
  padding: 0;
  overflow: hidden;
  height: 100%; /* Hauteur fixe pour le conteneur de l'image */
  border-radius: 8px; /* Coins arrondis optionnels */
}

/* Style des images */
.widget .events-carousel .blog-grid figure img {
  width: 100%;
  height: 100% !important; /* Image à 100% de la hauteur du conteneur */
  max-width: 420px;
  max-height: 600px;
  object-fit: cover; /* Assure que l'image couvre l'espace sans déformer */
  display: block;
}

/* Positionnement des contrôles de navigation */
.carousel-control {
  position: absolute;
  z-index: 10;
  top: 30%; /* Position verticale ajustée */
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.7);
  border: none;
  border-radius: 50%;
  width: 30px;
  height: 30px;
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
  color: #ff70bb; /* Couleur rose souhaitée */
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  padding: 0;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.carousel-control.prev {
  left: 10px;
}

.carousel-control.next {
  right: 10px;
}

.carousel-control:hover {
  background: #ff70bb;
  color: white;
}

/* Style des indicateurs (dots) */
.carousel-dots {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  padding: 10px 0;
  margin: 0;
  list-style: none;
  background: rgba(255, 255, 255, 0.5);
}

.carousel-dot {
  width: 10px;
  height: 10px;
  margin: 0 5px;
  border-radius: 50%;
  background: #ccc;
  border: none;
  padding: 0;
  cursor: pointer;
}

.carousel-dot.active {
  background: #ff70bb;
}

.carousel-dot:hover {
  background: #ff70bb;
  opacity: 0.7;
}

/* Style pour le titre de l'article et boutons */
.widget .events-carousel .blog-head {
  margin-top: 10px;
  width: 100%;
  margin-bottom: 15px;
  padding: 0 5px;
}

/* Bouton rose */
.button-rose {
  background-color: #ff70bb !important;
  color: white !important;
}