@import url(reset.css);
@import url(variable.css);
@import url(nav.css);
@import url(footer.css);

@font-face {
  font-family: "space_grotesklight";
  src: url("../assets/fonts/spacegrotesk-variablefont_wght-webfont.woff2")
      format("woff2"),
    url("../assets/fonts/spacegrotesk-variablefont_wght-webfont.woff")
      format("woff");
  font-weight: normal;
  font-style: normal;
}

/* ******************** CSS General *********************** */

html,
body {
  font-size: 16px;
  font-family: var(--font-family);
}

/* .header{
  height: var(--max-height-header);
  background: #000000 url(../Assets/banners/banner-home.jpg);
  background-size: cover;
}

.header__title{
  font-size: var(--font-size-h1);
  text-transform: uppercase;
  font-weight: var(--font-weight-xl);
  color: var(--text-color-primary-white);
  letter-spacing: var(--spacing-xs);
  text-align: center;
}

.header__link__decouvrir{
  font-size: 1.5rem;
  text-decoration: none;
  font-weight: var(--font-weight-xl);
  color: var(--text-color-primary-white);
}

.header__block__title{
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  row-gap: 48px;
  margin-top: calc(var(--max-height-header) / 2);
} */

/* ******************* CSS Header *********************** */

.header {
  height: var(--max-height-header);
  background: black url(../assets/banners/banner-home.jpg);
  background-size: cover;
}

.header__title {
  font-size: var(--font-size-h1);
  text-transform: uppercase;
  font-weight: var(--font-weight-xl);
  color: #fff;
  letter-spacing: var(--spacing-xs);
  text-align: center;
}

.header__link__decouvrir {
  font-size: 1.5rem;
  text-decoration: none;
  font-weight: var(--font-weight-xl);
  color: var(--text-color-primary-white);
}

.header__block__title {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  row-gap: 48px;
  margin-top: calc(var(--max-height-header) / 2);
}

/* ******************* CSS Main *********************** */

.main {
  padding: 64px;
}

.chambres,
.restaurant,
.hotels {
  margin-bottom: 64px;
}

.chambre__title,
.restaurant__title,
.hotel__title,
.balade__title {
  font-size: var(--font-size-h1);
  font-weight: var(--font-weight-xl);
  margin-bottom: var(--spacing-xl);
}

.chambres__content {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  column-gap: var(--spacing-xl);
}

.chambre__picture {
  width: 100%;
  height: 100%;
  border-radius: var(--radius-md);
}

.chambre__card__link {
  text-decoration: none;
  color: var(--text-color-primary-white);
}

.chambre__card {
  position: relative;
  z-index: -1;
}

.chambre__card__title {
  color: var(--text-color-primary-dark);
  font-size: var(--font-size-subtitle);
  font-weight: var(--font-weight-xl);
  margin-bottom: var(--spacing-md);
}

.chambre__card__content {
  position: absolute;
  bottom: 0;
  left: 0;
  padding: var(--spacing-md) 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  background-color: rgba(165, 153, 153, 0.4);
  width: 100%;
}

.btn {
  background: var(--bg-btn);
  color: var(--text-color-primary-white);
  text-decoration: none;
  padding: var(--spacing-xs);
  width: 100px;
  text-align: center;
  border-radius: var(--radius-md);
  font-weight: var(--font-weight-xl);
}

.restaurant,
.hotels,
.balade {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  column-gap: 64px;
}

.restaurant__content,
.hotels__content,
.balades__content {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  row-gap: var(--spacing-md);
}

.restaurant__block__pictures {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-template-rows: 220px auto;
  gap: var(--spacing-xl);
}

.restaurant__picture1 {
  grid-column: 1 / 7;
}

.restaurant__picture2 {
  grid-column: 1 / 3;
}

.restaurant__picture3 {
  grid-column: 3 / 7;
}

.restaurant__picture__item1 {
  object-fit: cover;
  width: 100%;
  height: 100%;
  border-radius: var(--radius-md);
}

.restaurant__picture__item2 {
  object-fit: cover;
  width: 100%;
  height: 180px;
  border-radius: var(--radius-md);
}

.restaurant__picture__item3 {
  object-fit: cover;
  width: 100%;
  height: 300px;
  border-radius: var(--radius-md);
}

.hotel__picture__item,
.balade__picture__item {
  width: 100%;
  height: 500px;
  object-fit: cover;
  border-radius: var(--spacing-md);
}

/* MEDIA QUERIES */

@media screen and (max-width: 1024px) {
  .header__nav {
    padding: 0 1rem;
  }
  .main {
    padding: 64px 0;
  }
  .chambres {
    padding: 0 1rem;
  }

  .chambres__content {
    grid-template-columns: repeat(2, 1fr);
    row-gap: 2rem;
    grid-template-rows: 300px 250px;
  }
  .chambre__card:last-child {
    grid-column: 1 / 3;
  }

  .chambre__picture:last-child {
    object-fit: cover;
  }

  .restaurant,
  .hotels,
  .balade {
    grid-template-columns: 1fr;
    row-gap: 2rem;
    padding: 0 1rem;
  }
  .restaurant__title,
  .hotel__title,
  .balade__title,
  .chambre__title {
    margin-bottom: 0.75rem;
    padding: 0 1rem;
  }
  .hotels {
    background: lightgrey;
    padding: 2rem 1rem;
  }
  .hotels__content {
    order: 1;
  }
  .header__block__pictures {
    order: 2;
  }
  .footer {
    padding: 20px;
  }

  .footer__reseaux,
  .footer__content {
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
    width: 100%;
  }

  @media screen and (max-width: 768px) {
  }
  .header {
    height: 500px;
  }
  .header__nav {
    flex-direction: column;
    padding: 1rem 0;
  }
  .link__logo {
    margin-bottom: 1rem;
    margin: 1rem 0;
  }
  .nav__list {
    flex-direction: column;
    row-gap: 0.5rem;
    text-align: center;
    margin-right: 0;
  }
  .nav__link {
    margin-left: 0;
  }
  .header__block__title {
    margin-top: none;
    row-gap: 8px;
  }

  .header__link__decouvrir {
    margin-bottom: 16px;
  }

  .hotel__picture__item,
  .balade__picture__item {
    height: 300px;
  }

  .restaurant__block__pictures {
    gap: 1rem;
  }

  /* FOOTER */
  .footer {
    flex-direction: column;
    height: 100%;
    padding: 32px 0;
  }

  .footer__content {
    width: 100%;
    align-items: center;
    margin-bottom: 1.5rem;
  }

  .footer__content:last-child {
    margin-bottom: 0;
  }

  .footer__nav {
    align-items: center;
    padding: 6px;
  }

  .footer__phone,
  .footer__email {
    text-align: center;
  }

  .link__logo__footer {
    display: flex;
    justify-content: center;
    margin: 10px 0;
  }

  .footer__reseaux,
  .footer__content {
    display: flex;
    justify-content: center;
    flex-direction: row;
    justify-content: space-evenly;
  }
}
