.news-carousel-container {
  position: relative;
  width: 100%;
  max-width: none;
  margin: 2rem auto;
  overflow: hidden;
  border-radius: 10px;
  box-shadow: 0px 8px 20px rgba(0, 0, 0, 0.15);
}



.news-slides-wrapper {
  position: relative;
  width: 100%;
  height: auto;
  overflow: hidden;
}



.news-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  max-width: 100%;
  height: auto;
  padding: 2rem;
  box-sizing: border-box;
  background-color: #f5f5f5;
  opacity: 0;
  transition: opacity 0.5s ease-in-out;
  z-index: 1;
  font-family: 'Poppins', sans-serif;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.news-slide.active {
  opacity: 1;
  position: relative;
}

.news-puce img {
  height: 30px;
  margin-bottom: 1rem;
}

.news-titre {
  font-size: 1.5rem;
  font-weight: bold;
  color: #223f7a;
  margin-bottom: 0.5rem;
}

.news-date {
  font-size: 0.9rem;
  color: #666;
  margin-bottom: 1rem;
}

.news-texte {
  font-size: 1rem;
  color: #333;
  line-height: 1.6;
}
.news-texte img {
  max-width: 100%;
  height: auto;
  object-fit: contain;
  display: block;
  margin: 1rem auto;
}


/* Navigation boutons */

.news-carousel-controls {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  display: flex;
  justify-content: space-between;
  transform: translateY(-50%);
  padding: 0 1rem;
  z-index: 2;
}

.news-arrow {
  background: rgba(255,255,255,0.8);
  border: none;
  padding: 0.5rem;
  border-radius: 50%;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  cursor: pointer;
  transition: transform 0.3s ease;
}

.news-arrow:hover {
  transform: scale(1.2);
}


.news-carousel-controls button {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  transition: transform 0.3s ease;
}

.news-carousel-controls button:hover {
  transform: scale(1.2);
}

/* Dots */
.news-dots {
  display: flex;
  justify-content: center;
  margin-top: 1rem;
}

.news-dots div {
  width: 10px;
  height: 10px;
  margin: 0 5px;
  background-color: #ccc;
  border-radius: 50%;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.news-dots .active {
  background-color: #223f7a;
}

@media (max-width: 768px) {
  .news-slide {
    padding: 1rem;
    font-size: 0.95rem;
  }

  .news-slide img {
    width: 100%;
    height: auto;
    object-fit: contain;
    max-height: 220px;
  }

  .news-titre,
  .news-date,
  .news-texte {
    text-align: center;
  }

  .news-puce img {
    height: 24px;
    margin: 0 auto 0.5rem auto;
    display: block;
  }

  .news-carousel-container {
    padding: 0 1rem;
  }
}
