/* Par défaut, on cache l'image */
.img-cas2 {
  display: none;
}
.img-cas2 img {
  width: 100%;
  border-radius: 12px;
}
/* Carousel visible uniquement sur PC */
@media (max-width: 768px) {
  .carousel {
    display: none;
  }
}

@media (max-width: 768px) {
  .img-cas2 {
    display: flex;
    width: 90%;
    max-width: 400px;
    height: auto;
    margin: 1.5rem auto;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    object-fit: cover;
    transition: transform 0.3s ease;
  }
  .img-cas2:hover{
    transform: scale(1.02);
  }
}



.carousel {
  position: relative;
  width: 70vw;
  max-width: 500px;
  margin: 2rem auto;
  overflow: hidden;
  border-radius:12px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

.carousel-track {
  display: flex;
  transition: transform 0.5s ease-in-out;
}

.carousel-track img {
  width: 100%;
  flex-shrink: 0;
  height: auto;
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.7);
  border: none;
  font-size: 2rem;
  padding: 0.5rem 1rem;
  cursor: pointer;
  z-index: 10;
  border-radius: 4px;
}

.carousel-btn.prev { left: 10px; }
.carousel-btn.next { right: 10px; }

.carousel-btn:hover {
  background: rgba(255,255,255,0.9);
}

/*TITRE LE L'IMAGE*/
.carousel-caption {
  text-align: center;
  font-family: 'Cormorant Infant', serif;
  font-size: 1.4rem;
  font-weight: 500;
  margin-top: 1rem;
  color: #2b2b2b;
  background: rgba(255, 255, 255, 0.8);
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  width: fit-content;
  max-width: 80%;
  margin-left: auto;
  margin-right: auto;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

h2 {
  font-family: 'Sofia', cursive;
  font-size: 5rem;
  font-weight: 600;
  color: #4b2e2e;
  text-align: center;
  margin: 2rem auto 1.5rem;
  text-shadow: 1px 1px 0 #fff4e8, 2px 2px 4px rgba(0, 0, 0, 0.15);
  letter-spacing: 1px;
  margin-left: 2%;
  margin-right:2%;
}

/* ACTUALITE */
.actualite{
  padding-top:2rem;
  padding-bottom: 2rem;
  
}
.article-actu {
  flex-shrink: 0;
  margin : auto;
  text-align: center;
}

.article-actu img {
  border-radius: 15px;
  max-height: 750px;
  box-shadow: 1;
  transition: transform .5s;
  filter: drop-shadow(30px 10px 4px #848485);
  background: -webkit-linear-gradient( bottom , #F5F5F5, rgba(255,255,255,0));
  background: linear-gradient(to top, #F5F5F5, rgba(255,255,255,0));
  
}
.article-actu img:hover {
  -ms-transform: scale(1.1); /* IE 9 */
  -webkit-transform: scale(1.1); /* Safari 3-8 */
  transform: scale(1.1);
}