/* Espaces communs */

.espaces-communs {
  display: flex;
  background-color: #161616;
}

.espaces-communs > div:nth-child(1) {
  width: 50%;
}

.espaces-communs > div:nth-child(2) > p {
  width: 50%;
  padding-top: 25px;
}

.espaces-communs > div:nth-child(2) {
  text-align: center;
  width: 50%;
  padding-top: 6em;
  padding-bottom: 6em;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

/* Caroussel */

.caroussel-cote {
  background-color: #0a0a0a;
  padding-bottom: 4em;
  overflow-x: hidden;
}

.caroussel-cote > .caroussel-nav-element {
  display: flex;
  justify-content: center;
  align-items: center;
}

.caroussel-cour-jardin {
  height: 800px;
}

.caroussel-item {
  border-radius: 20px;
  overflow: hidden;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  display: inline-block;
  height: 500px;
  width: 400px;
  transition: 0.2s ease;
  cursor: pointer;
}

.caroussel-item:nth-child(1) {
  top: 50%;
  right: 50%;
  transform: translate(-1175px, -50%);
}

.caroussel-item:nth-child(2) {
  top: 50%;
  right: 50%;
  transform: translate(-725px, -50%);
}

.caroussel-item:nth-child(3) {
  top: 50%;
  right: 50%;
  transform: translate(-275px, -50%);
}

.caroussel-item:nth-child(4) {
  top: 50%;
  right: 50%;
  transform: translate(225px, -50%);
  height: 600px;
  width: 450px;
}

.caroussel-item:nth-child(5) {
  top: 50%;
  right: 50%;
  transform: translate(675px, -50%);
}

.caroussel-item:nth-child(6) {
  top: 50%;
  right: 50%;
  transform: translate(1125px, -50%);
}

.caroussel-item:nth-child(7) {
  top: 50%;
  right: 50%;
  transform: translate(1575px, -50%);
}

.caroussel-item:nth-child(n + 7) {
  opacity: 0;
  position: absolute;
  right: -800px;
}

.slide-caroussel {
  position: relative;
  top: 50%;
}

/*Chambres*/

.chambres {
  padding-top: 6em;
  padding-bottom: 6em;
  background-color: #161616;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.chambre {
  background-color: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(20px);
  border: solid 2px rgba(255, 255, 255, 1);
  border-radius: 15px;
  width: auto;
  cursor: pointer;
}

.chambre > div:nth-child(1) {
  border-radius: 15px 15px 0px 0px;
  display: inline-block;
  overflow: hidden;
}

.chambre > div:nth-child(2) {
  padding: 25px;
  text-align: center;
}

.chambres-grid {
  padding-top: 4em;
  padding-bottom: 4em;
  width: 80%;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-gap: 100px;
}

/* Médias Queries */

@media (max-width: 1250px) {
  .chambres-grid {
    grid-gap: 50px;
  }
}

@media (max-width: 1100px) {
  .chambres-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-gap: 50px;
  }
}

@media (max-width: 900px) {
  .haut-de-page > div:nth-child(1) {
    width: 100%;
  }

  .haut-de-page > div:nth-child(1) > p {
    width: 60%;
  }

  .espaces-communs {
    display: block;
  }

  .espaces-communs > div:nth-child(1) {
    width: 100%;
  }

  .espaces-communs > div:nth-child(2) {
    width: 100%;
  }
}

@media (max-width: 600px) {
  .haut-de-page > div:nth-child(1) > p {
    width: 80%;
  }

  .caroussel-item {
    height: 330px;
    width: 264px;
  }

  .caroussel-item:nth-child(1) {
    top: 50%;
    right: 50%;
    transform: translate(-364.5px, -50%);
  }

  .caroussel-item:nth-child(2) {
    top: 50%;
    right: 50%;
    transform: translate(-661.5px, -50%);
  }

  .caroussel-item:nth-child(3) {
    top: 50%;
    right: 50%;
    transform: translate(-183px, -50%);
  }

  .caroussel-item:nth-child(4) {
    top: 50%;
    right: 50%;
    transform: translate(150px, -50%);
    height: 400px;
    width: 300px;
  }

  .caroussel-item:nth-child(5) {
    top: 50%;
    right: 50%;
    transform: translate(447px, -50%);
  }

  .caroussel-item:nth-child(6) {
    top: 50%;
    right: 50%;
    transform: translate(744px, -50%);
  }

  .caroussel-item:nth-child(7) {
    top: 50%;
    right: 50%;
    transform: translate(1041px, -50%);
  }

  .caroussel-item:nth-child(n + 7) {
    opacity: 0;
    position: absolute;
    right: -800px;
  }

  .caroussel-cour-jardin {
    height: 500px;
  }

  .espaces-communs > div:nth-child(2) > p {
    width: 80%;
  }
}

@media (max-width: 800px) {
  .chambres-grid {
    grid-template-columns: repeat(1, 1fr);
    grid-gap: 50px;
    width: 80%;
  }
}
