@import "./normalize.css"; /* fichier css de configuration */
@import url("https://fonts.googleapis.com/css2?family=Raleway:wght@500&display=swap");

/* ========================================================= GLOBAL FORMAT ========================================================= */
/* Variables */
:root {
  --color-primary: #0065fc;
  --color-secondary: #deebff;
  --color-bg: #f2f2f2;
  --font-fam: "Raleway";
}

*,
::before,
::after {
  box-sizing: border-box;
  font-family: var(--font-fam);
}

body {
  overflow-x: hidden;
  background-color: #fff;
}

h2 {
  font-size: 26px;
}

h3 {
  font-size: 18px;
}

.zoom-card {
  /* effet de zoom sur les cards */
  transition: transform 0.2s ease-in-out;
}

.zoom-card:hover {
  /* effet de zoom sur les cards */
  transform: scale(1.05);
  background: var(--color-primary) !important;
}

/* ========================================================= DESKTOP FORMAT ========================================================= */
/* ========================================== HEADER =========================================== */
.header {
  max-width: 100vw;
  min-height: 300px;
  margin: 0px 60px;
}

/* ================== (HEADER) Partie navigation ================= */
.header-nav {
  display: flex;
  justify-content: space-between;
}

.header-nav .logo {
  padding-top: 20px;
  padding-bottom: 20px;
  margin-left: 40px;
}

.header-nav .logo img {
  width: 150px;
}

.header-nav ul {
  display: flex;
  margin: 0px 40px;
  list-style: none;
}

.header-nav ul li {
  margin-right: 40px;
}

.header-nav ul li a {
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  color: #000;
  font-size: 20px;
}

.header-nav ul li a:hover {
  border-top: 3px solid var(--color-primary);
  color: var(--color-primary);
  transition: color 0.5s ease-in-out;
}

.header-nav ul li .active {
  border-top: 3px solid var(--color-primary);
  color: var(--color-primary);
}

/* ======================= (HEADER) Partie recherche ======================= */
.header-search {
  display: flex;
  flex-direction: column;
}

.header-search h1 {
  font-size: 1.8rem;
  margin-bottom: 0;
}

.header-search form {
  margin-top: 20px;
}

.header-search form .wrap-form {
  display: flex;
}

.header-search form .location-icon {
  background: rgb(230, 230, 230);
  min-width: 40px;
  border-radius: 15px 0px 0px 15px;
}

.header-search form .location-icon .wrap-i {
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.header-search form input {
  margin: 0;
  padding: 15px;
  border: none;
  background-color: #fff;
  border: 0.5px solid rgba(201, 201, 201, 0.452);
}

.header-search form button {
  color: #ffffff;
  background: var(--color-primary);
  padding: 10px;
  border: none;
  border-radius: 0px 15px 15px 0px;
  cursor: pointer;
}

.header-search form button .search-icon {
  display: none;
}

.header-search h1 {
  font-size: 28px;
}

/* ================== (HEADER) Partie filtres ================= */
.header-search .filter-search {
  margin: 20px 0px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
}

.header-search .filter-search ul {
  display: flex;
  flex-wrap: wrap;
}

.header-search .filter-search ul li {
  display: flex;
  margin: 15px 15px;
}

.header-search .filter-search ul li a {
  position: relative;
  padding: 15px;
  padding-left: 55px;
  border-radius: 25px;
  border: 2px solid rgba(185, 185, 185, 0.603);
  color: #000;
  font-weight: bold;
}

.header-search .filter-search ul li a:hover {
  background: var(--color-primary);
  color: #fff;
}

.header-search .filter-search ul li .wrap-icon-filter {
  position: absolute;
  display: flex;
  justify-content: center;
  align-items: center;
  left: -10px;
  top: -3px;
  height: 100%;
  width: 20%;
  padding: 28px;
  border-radius: 50%;
  background-color: var(--color-secondary);
  color: var(--color-primary);
}

/* ========================================== MAIN =========================================== */
.main-container {
  margin: 0 40px;
}

.main-container .wrap-filter-info {
  display: flex;
  align-items: center;
}

.main-container .wrap-icon-info {
  display: flex;
  justify-content: center;
  align-items: center;
  background: rgb(255, 255, 255);
  color: var(--color-primary);
  border: 2px solid rgba(185, 185, 185, 0.479);
  border-radius: 50%;
  min-width: 30px;
  height: 30px;
}

.main-container .wrap-filter-info p {
  margin-left: 20px;
}

/* (MAIN) container section hebergements & populaires */
.main-container .section-container {
  display: flex;
  flex-direction: row-reverse;
  column-gap: 20px;
}

/* ================== (MAIN) SECTION MOST POPULAR ================= */
.main-container .most-populars {
  position: relative;
  background: var(--color-bg);
  border-radius: 15px;
  width: 100%;
  height: 100%;
  margin-left: 20px;
  padding: 30px 0px;
  padding-bottom: 40px;
  flex: 1;
}

.main-container .most-populars h2 {
  margin-left: 40px;
  display: flex;
  width: 100%;
  margin-right: 5px;
  font-size: 1.5vmax;
}

.main-container .most-populars span {
  display: flex;
  position: absolute;
  right: 5%;
  justify-content: end;
  margin-right: 20px;
}

/* (MAIN) (SECTION MOST POPULAR) item card */
.most-populars .card {
  background: #fff;
  display: flex;
  max-width: 90%;
  transition: all 0.4s ease-in-out;
  height: 190px;
  border-radius: 25px;
  box-shadow: 3px 3px 3px 3px rgba(161, 161, 161, 0.034);
  margin: 20px auto;
}

.most-populars .card a {
  display: flex; /* permet le positionnement overlay et image inline */
  padding: 7px;
  width: 100%;
}

.most-populars .card .img-container {
  min-width: 40%;
  height: 100%;
}

.most-populars .card .img-container img {
  object-fit: cover;
  width: 100%;
  height: 100%;
  border-radius: 20px 0px 0 20px;
}

.most-populars .card .overlay {
  background: rgb(255, 255, 255);
  border-radius: 20px;
  transition: all 0.4s ease-in-out;
  min-width: 50%;
  display: flex;
  margin: 25px;
  margin-top: 0;
  color: #000;
}

.most-populars .card:hover .overlay {
  background: var(--color-primary);
  color: #fff;
}

.most-populars .card .overlay .wrap-overlay {
  display: flex;
  flex-direction: column;
  margin-bottom: -20px;
  justify-content: end;
}

.most-populars .card .overlay .wrap-overlay h3 {
  font-size: 1.3vmax;
}

.most-populars .card .overlay .wrap-overlay p {
  margin-top: -10px;
}

.most-populars .card .overlay .wrap-overlay div {
  color: rgb(172, 169, 169);
  margin-top: 25%;
}

.most-populars .card .overlay .wrap-overlay .fill-stars {
  color: var(--color-primary);
}

.most-populars .card:hover .overlay .wrap-overlay .fill-stars {
  color: #fff;
}

/* ================== (MAIN) SECTION HEBERGEMENTS ================= */
.main-container .section-accommodation {
  background: var(--color-bg);
  border-radius: 15px;
  max-width: 72%;
  padding: 20px 30px;
  padding-bottom: 0;
  padding-right: 0;
  flex: 2.2;
}

/* (MAIN) (SECTION HEBERGEMENTS) container des card */
.main-container .section-accommodation .cards {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-evenly;
  margin-top: -30px;
}

.main-container .section-accommodation .cards .wrap-show-more {
  display: flex;
  width: 100%;
}

.main-container .section-accommodation .cards .wrap-show-more .show-more {
  color: #000;
  font-weight: bold;
  margin: 40px 20px;
}

/* (MAIN) (SECTION HEBERGEMENTS) item card */
.main-container .section-accommodation .cards .card {
  max-width: 29%;
  min-width: 230px;
  width: 100%;
  height: 260px;
  margin-right: 35px;
  margin-top: 40px;
  background-color: #fff;
  transition: all 0.4s ease-in-out;
  box-shadow: 3px 25px 20px rgba(160, 158, 158, 0.658);
  border-radius: 20px;
  display: flex;
  flex-direction: column;
  position: relative;
}

.main-container .section-accommodation .cards .card a {
  padding: 7px;
  height: 100%;
}

.main-container .section-accommodation .cards .card img {
  width: 100%;
  height: 170px;
  border-radius: 15px;
  object-fit: cover;
  object-position: 0px -30px;
}

.main-container .section-accommodation .cards .card .object-pos {
  object-position: 0px -80px;
}

.main-container .section-accommodation .cards .card .overlay {
  margin-top: -40px;
  position: absolute;
  left: 0;
  right: 0;
  transition: all 0.4s ease-in-out;
  transform: translate(0%, 0%);
  border-radius: 0px 0px 15px 15px;
  background: rgb(255, 255, 255);
}

.main-container .section-accommodation .cards .card:hover .overlay {
  background: var(--color-primary);
}

.main-container .section-accommodation .cards .card .overlay .wrap-overlay {
  margin-left: 20px;
  color: #000;
}

.main-container
  .section-accommodation
  .cards
  .card:hover
  .overlay
  .wrap-overlay {
  margin-left: 20px;
  color: #fff;
}

.section-accommodation .cards .card .overlay .wrap-overlay div {
  /* icones etoiles */
  color: rgb(172, 169, 169);
  margin-top: 10px;
}

.section-accommodation .cards .card .overlay .wrap-overlay .fill-stars {
  color: var(--color-primary);
}

.section-accommodation .cards .card:hover .overlay .wrap-overlay .fill-stars {
  color: #fff;
}

/* ================== (MAIN) SECTION ACTIVITES ================= */
.section-activities {
  margin: 40px 0;
}

.section-activities h2 {
  margin-bottom: -10px;
}

/* (MAIN) (SECTION ACTIVITES) container des card */
.section-activities .cards {
  display: flex;
  column-gap: 40px;
  margin-top: 10px;
  flex-wrap: wrap;
  justify-content: center;
}

/* (MAIN) (SECTION ACTIVITES) div left et right en meme temps */
.section-activities .cards .left-and-right {
  display: flex;
  column-gap: 40px;
  margin-top: 40px;
  width: 48%;
}

/* (MAIN) (SECTION ACTIVITES) tous les item card */
.section-activities .cards .left-and-right .card-large-medium-small {
  display: flex;
  flex-direction: column;
  transition: all 0.4s ease-in-out;
  background-color: #fff;
  border-radius: 20px;
  box-shadow: 5px 5px 5px rgb(168, 168, 168);
}

.section-activities .cards .left-and-right .card-large-medium-small:hover h3 {
  color: #fff;
}

.section-activities .cards .left-and-right .card-large-medium-small h3 {
  margin-left: 20px;
  color: #000;
}

.section-activities .cards .left-and-right .wrap-item-left,
.section-activities .cards .left-and-right .wrap-item-right {
  display: flex;
  flex-direction: column;
  width: 100%;
}

.section-activities
  .cards
  .left-and-right
  .wrap-item-right
  .wrap-item-right-content {
  display: flex;
  flex-direction: column;
  height: 100%;
  justify-content: space-between;
  row-gap: 40px;
}

.section-activities .cards .left-and-right .wrap-item-left .card-large {
  min-height: 100%;
}

.section-activities .cards .card-large .wrap-img {
  border-radius: 20px;
  width: 100%;
  height: 100%;
}

.section-activities .cards .card-large .wrap-img img {
  object-fit: cover;
  min-width: 100%;
  height: 100%;
}

.section-activities .cards .card-large .wrap-img img {
  border-radius: 20px 20px 0 0;
  width: 100%;
}

.section-activities
  .cards
  .left-and-right
  .wrap-item-right
  .wrap-item-right-content
  .card-medium
  .wrap-img {
  height: 230px;
}

.section-activities
  .cards
  .left-and-right
  .wrap-item-right
  .wrap-item-right-content
  .card-medium
  .wrap-img
  img {
  height: 230px;
}

.section-activities
  .cards
  .left-and-right
  .wrap-item-right
  .wrap-item-right-content
  .card-small
  img {
  height: 130px;
}

.section-activities
  .cards
  .left-and-right
  .wrap-item-right
  .wrap-item-right-content
  img {
  width: 100%;
  border-radius: 20px 20px 0 0;
  object-fit: cover;
  object-position: center;
}

/* FOOTER */
footer {
  background: var(--color-bg);
  min-height: 150px;
  margin-top: 80px;
}

footer nav {
  width: 80%;
  display: flex;
  column-gap: 100px;
}

footer nav ul {
  margin: 20px;
}

footer nav ul li {
  margin-top: 10px;
}

footer nav ul .first-link {
  font-weight: bold;
  margin-bottom: 20px;
}

footer nav li a {
  color: #000;
  font-weight: normal;
}

@media screen and (max-width: 1375px) {
  .section-activities .cards .right {
    flex-direction: row-reverse;
  }

  .section-activities .cards .left-and-right {
    width: 80%;
  }
}

/* FIN SECTION ACTIVITES */

/* TABLET FORMAT */
@media screen and (max-width: 992px) {
  /* HEADER */
  .header-search h1 {
    font-size: 22px;
  }

  /* MAIN, CONTAINER SECTION  */
  .main-container .section-container {
    flex-wrap: wrap;
    justify-content: center;
    flex-direction: column;
  }

  /* MOST POPULAR */
  .main-container .most-populars {
    margin: 20px 0;
  }

  .main-container .most-populars h2 {
    font-size: 22px;
  }

  .most-populars .card .overlay .wrap-overlay {
    margin: 0;
  }

  .most-populars .card .overlay .wrap-overlay h3 {
    font-size: unset;
  }

  /* HEBERGEMENT */
  .main-container .section-accommodation {
    max-width: 100%;
  }

  .main-container .section-accommodation .cards .card {
    max-width: 0;
  }
}

/* MOBILE FORMAT */
@media screen and (max-width: 768px) {
  /* HEADER */
  .header {
    margin: 0;
  }

  /* HEADER NAVIGATION */
  .header-nav {
    flex-direction: column;
    align-items: center;
  }

  .header-nav .logo {
    margin: 0;
  }

  .header-nav ul {
    width: 100%;
    justify-content: center;
    padding: 0;
  }

  .header-nav ul li {
    display: flex;
    justify-content: center;
    margin: 0;
    width: 100%;
  }

  .header-nav ul li a {
    width: 100%;
    padding: 10px 0px;
    border-bottom: 3px solid rgba(0, 0, 0, 0.096);
    font-size: 1rem;
  }

  .header-nav ul li a:hover {
    border: none;
    border-bottom: 3px solid var(--color-primary);
  }

  .header-nav ul li .active {
    border: none;
    border-bottom: 3px solid var(--color-primary);
  }

  /* HEADER RECHERCHE */
  .header-search {
    padding: 20px 0;
    margin: 0px 10px;
  }

  .header-search h1 {
    font-size: 18px;
  }

  .header-search form .wrap-form {
    justify-content: center;
  }

  .header-search form button {
    color: #ffffff;
    padding: 15px;
    border-radius: 15px 15px 15px 15px;
    cursor: pointer;
    margin-left: -10px;
  }

  .header-search form input {
    width: 100%;
  }

  .header-search form button .search-text {
    display: none;
  }

  .header-search form button .search-icon {
    display: block;
  }

  /* MAIN */
  .main-container {
    margin: 0 0px;
  }

  .main-container .wrap-filter-info {
    margin: 0 20px;
  }

  /* MOST POPULAR */
  .main-container .most-populars {
    border-radius: 0;
  }

  /* HEBERGEMENTS */
  .main-container .section-accommodation {
    background-color: #fff;
  }

  .main-container .section-accommodation .cards .card {
    max-width: 82%;
    min-width: 230px;
    width: 100%;
  }

  .main-container .section-accommodation .cards .card img {
    object-position: 0px -0px;
  }

  .main-container .section-accommodation .cards .card .object-pos {
    object-position: 0 -0px;
  }

  /* Activites */
  .section-activities {
    margin: 0 40px;
  }

  .section-activities .cards {
    display: flex;
    width: 100%;
  }

  .section-activities .cards .left-and-right {
    width: 100%;
    height: 100%;
  }

  .section-activities .cards .left-and-right .wrap-img {
    width: 100%;
  }

  .section-activities .cards .left-and-right .wrap-img img {
    height: 195px !important;
  }

  .section-activities .cards .left-and-right {
    flex-direction: column;
    column-gap: 20px;
    row-gap: 40px;
  }

  .section-activities .cards .left-and-right .card-large-medium-small {
    background: rgb(255, 255, 255);
    width: 80vw;
    height: 250px;
    margin: 0 auto;
  }

  .section-activities .cards .left-and-right .wrap-card-medium {
    height: 100%;
  }

  /* footer */
  footer nav {
    flex-direction: column;
  }
}
