/*AJOUT VMR*/

.slider-wrapper-gray {
  background-color: #E0E0E0;
  padding: 30px 0 0;
}

.homeslider-container {
  margin: 0 auto;
  position: relative;
  width: 100%;
  max-width: 1140px;
  overflow: hidden;
  border-radius: 16px;
  float: none;
}

#carousel .carousel-item .caption {
  position: absolute;
  bottom: 28px;
  left: 90px;
  max-width: 340px;
}

#carousel .carousel-item .caption .h2-carousel {
  font-size: 2rem;
}

#carousel .carousel-item .caption .description-carousel {
  color: #fff;
}

@media (max-width: 991px) {
  #carousel .carousel-item {
    position: relative;
  }
  #carousel .carousel-item figure {
    position: relative;
    width: 100%;
    height: auto;
    overflow: hidden;
    display: flex;
    justify-content: center;
    flex-direction: column;
    align-items: center;
  }
  #carousel .carousel-item figure img {
    width: 150%;
    object-fit: cover;
    clip-path: inset(0 0 0 53%); /* Masquer 53% à gauche */
    margin-left: -80%;
    border-radius: 0;
    display: block;
    height: auto;
    z-index: 0;
  }
  /*#carousel .carousel-item .caption {
    position: relative;
    left: 0;
    right: 0;
    bottom: 0;
    top: 0;
    color: #232323;
    text-align: center;
    padding-top: 0;
  }*/
  #carousel .carousel-item .caption {
    position: relative;
    text-align: center;
    margin: 0 auto;
    width: 100%;
    max-width: 90%;
    box-sizing: border-box;
    color: #232323;
    left: 0;
    top: 0;
    padding: 0 15px;
  }
  #carousel .carousel-item .description-carousel span {
    color: #232323 !important;
  }
  /*.carousel-item .caption::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1;
  }*/
}

/*FIN AJOUT VMR*/

.homeslider {
  position: relative;
  list-style: none;
  overflow: hidden;
  width: 100%;
  padding: 0;
  margin: 0;
}

.homeslider li {
  position: absolute;
  width: 100%;
  left: 0;
  top: 0;
}

.homeslider img {
  display: block;
  position: relative;
  z-index: 1;
  height: auto;
  width: 100%;
  border: 0;
}

.homeslider .caption {
  display: block;
  position: absolute;
  z-index: 2;
  font-size: 1em;
  text-shadow: none;
  color: #fff;
  /*background: rgba(0, 0, 0, 0.5);*/
  left: 0;
  bottom: 0;
  padding: 1.5rem;
  text-align: left;
  width: 100%;
  box-sizing: border-box;
}

.homeslider .caption h2 {
  font-size: 1.5rem;
  margin: 0 0 0.5rem 0;
  font-weight: 700;
}

.homeslider .caption div {
  font-size: 1rem;
  line-height: 1.4;
}

.homeslider_nav {
  position: absolute;
  -webkit-tap-highlight-color: rgba(0,0,0,0);
  top: 50%;
  left: 0;
  opacity: 0.7;
  z-index: 3;
  text-indent: -9999px;
  overflow: hidden;
  text-decoration: none;
  height: 61px;
  width: 38px;
  background: transparent url("../homeslider.gif") no-repeat left top;
  margin-top: -30px;
  cursor: pointer;
}

.homeslider_nav:active {
  opacity: 1.0;
}

.homeslider_nav.next {
  left: auto;
  right: 0;
  background-position: right top;
}
