.carrousel-container {
  position: relative;

  margin: auto;
  overflow: hidden;
  background-color: #fff;
  z-index: -1;

  /* background-color: var(--color-green-very-light); */
  background: url(img/icone-maison.png) center center no-repeat;
}

.title-container {
  position: absolute;
  top: 0;
  left: 50%;
  translate: -50%;

  width: min(75%, fit-content);
  width: 100%;
  max-width: 560px;

  padding: 1rem 2rem;
  background: rgba(0, 0, 0, 0.3);
  z-index: 1;
  border: solid 1px rgba(255, 255, 255, 0.4);
  border-radius: 0.5rem;
  translate: -50% 80vh;
  opacity: 0;

  transition: 1s ease-in-out;
  animation: slideUp 5s 1s forwards;

  z-index: 2;
}
@keyframes slideUp {
  from {
    translate: -50% 80vh;
    opacity: 0;
  }
  to {
    translate: -50% 35vh;
    opacity: 1;
  }
}
.title-container h2,
.title-container p {
  color: white;
  text-align: center;
}
.title-container h2 {
  font-size: clamp(1.4rem, 1.2667rem + 0.5333vw, 1.6rem);
  line-height: 1.8;
}
.title-container p {
  font-size: 1.5rem;
  line-height: 2;
}
.carrousel {
  display: block;

  width: 100%;
  height: 95vh;

  position: relative;
  background-size: cover;
  background-position: center;
  background-color: transparent;
  z-index: 1;
}
/* .carrousel::after {
  content: " ";
  position: absolute;
  width: 100%;
  height: 100%;
  background: url(img/icone-maison.png) center center no-repeat;
} */
.slide {
  display: block;
  width: 100%;
  height: 95vh;
  margin: 0;
  position: absolute;
  opacity: 0;
}

.slide img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
}
@media (max-width: 768px) {
  /* pour mobile */
  .carrousel {
    height: 75vh;
  }
  .slide {
    height: 75vh;
  }
}
.slide a img:hover {
  filter: brightness(0.5);
}
.slide figcaption {
  position: absolute;
  bottom: 0;
  right: 0;
  z-index: 1;
  padding: 0.5rem 1rem;
  color: white;
  background: rgba(0, 0, 0, 0.3);
  transition: 0.2s ease-in-out;
}
.button-prev,
.button-next {
  font-size: 4rem;
  font-family: "Gotham Thin", sans-serif;
  cursor: pointer;
  position: absolute;
  top: 50%;
  left: 2rem;
  background-color: transparent;
  color: white;
  border: none;
  opacity: 0.5;
}

.button-prev:hover,
.button-next:hover {
  opacity: 0.9;
  text-shadow: 0px 1px 6px rgba(0, 0, 0, 0.9);
}

.button-next {
  right: 2rem;
  left: auto;
}
