.mid-section {
  background-color: transparent;
  overflow: hidden;
  position: relative;
  width: 100%;
  height: 100%;
}

.properties {
  display: flex;
  flex-shrink: 1;
  justify-content: space-around;
  margin: 100px 15px;
}

.property {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 445px;
  background: white;
  border-radius: 6px;
  box-shadow: 0px 0px 7px rgb(163, 162, 162);
}

.property p {
    display: -webkit-box;
    -webkit-line-clamp: 9;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.slider {
  border-radius: 6px;
  width: 316.55px;
  height: 211px;
  margin-top: 15px;
  margin-left: 1.112vw;
  margin-right: 1.112vw;
  overflow: hidden;
  flex-shrink: 0;
}

.slider figure {
  position: relative;
  top: 0;
  margin: 0;
  height: 100%;
  width: 1266.2px;
  animation: 15s slider infinite;
}

.property-img {
  width: 316.55px;
  height: 100%;
  float: left;
  object-fit: cover;
}

@keyframes slider {
  0% {
    left: 0;
  }

  15% {
    left: 0%;
  }

  30% {
    left: -100%;
  }

  45% {
    left: -100%;
  }

  60% {
    left: -200%;
  }

  75% {
    left: -200%;
  }

  100% {
    left: -300%;
  }
}

.property-title {
  text-align: center;
  margin: 8px 0;
  max-width: 316px;
  font-size: 30px;
  color: rgb(12, 57, 141);
}

.property-desc {
  text-align: center;
  line-height: 22px;
  width: 316.55px;
  font-size: 16px;
  margin-bottom: 1vw;
}

.voir-plus {
  position: absolute;
  font-size: 17px;
  background-color: rgba(255, 255, 255, 0.7);
  border: none;
  border-bottom-left-radius: 6px;
  border-bottom-right-radius: 6px;
  box-shadow: 0px 0px 2px rgb(199, 199, 199);
  bottom: 0;
  left: 0;
  right: 0;
  height: 45px;
  width: 100%;
  cursor: pointer;
}

.voir-plus:hover {
  background-color: rgba(233, 233, 233, 0.747);
}

.voir-moin {
  display: none;
  position: absolute;
  font-size: 17px;
  background-color: rgba(255, 255, 255, 0.7);
  border: none;
  border-bottom-left-radius: 6px;
  border-bottom-right-radius: 6px;
  box-shadow: 0px 0px 2px rgb(199, 199, 199);
  bottom: 0;
  left: 0;
  right: 0;
  height: 45px;
  width: 100%;
  cursor: pointer;
}

.voir-moin:hover {
  background-color: rgba(233, 233, 233, 0.747);
}

@media only screen and (max-width: 1000px) {
  .mid-section {
    height: 100%;
  }

  .properties {
    flex-direction: column;
    align-items: center;
    justify-content: space-around;
    height: 1900px;
    margin-top: 50px;
  }

  .slider {
    width: 250px;
  }

  .slider figure {
    width: 1000px;
  }

  .property-img {
    width: 250px;
  }

  .property {
    width: 270px;
    margin-bottom: 15px;
  }

  .property-title {
    font-size: 28px;
  }

  .property-desc {
    font-size: 12px;
    width: 250px;
  }

  .voir-plus {
    height: 35px;
    font-size: 14px;
  }

  .voir-moin {
    height: 35px;
    font-size: 14px;
  }
}