/****** General ***********/
/* police et couleurs variables */

:root {
  --main-color: #0065fc;
  --main-bg-color: #f2f2f2;
  --filter-bg-color: #deebff;
  --background-color: #d9d9d9;
}
* {
  font-family: "Raleway", "Sans serif";
}
a {
  color: black;
  text-decoration: none;
}
h1 {
  font-size: 1.375rem;
  font-style: normal;
  font-weight: 700;
  line-height: normal;
}
h2 {
  font-size: 1.125rem;
  font-style: normal;
  font-weight: 700;
  line-height: normal;
}
h3 {
  font-size: 1rem;
  font-style: normal;
  font-weight: 700;
  line-height: normal;
}

.fa-solid {
  color: var(--main-color);
}

body {
  display: flex;
  justify-content: center;
}

.main-container {
  width: 100%;
  max-width: 1440px;
  padding: 0 50px;
  box-sizing: border-box;
}

.section-title {
  margin: 0;
  font-size: 22px;
}

.card {
  background-color: white;
  border-radius: 20px;
  padding: 5px;
  filter: drop-shadow(0px 3px 15px rgba(0, 0, 0, 0.1));
}

.card img {
  object-fit: cover;
}

.card-title {
  font-size: 16px;
}

.euro {
  font-weight: 700;
}

.neutral-star {
  color: var(--main-bg-color);
}

/* Header for desktop*/
header {
  display: flex;
  justify-content: space-between;
  height: 4.93rem;
}
.header-img {
  padding: 1.875rem 0rem;
  flex-direction: column;
  gap: 0.625rem;
  width: 3.81813rem;
  height: 1.1875rem;
  display: flex;
  justify-content: flex-end;
  align-items: center;
}
.header-nav {
  display: flex;
  padding: 0 1.5625rem;
}
.header-nav-links {
  display: flex;
  flex-direction: row;
  justify-content: center;
  gap: 4.25rem;
}
.header-nav-link {
  font-size: 1rem;
  border-top: 0.125rem solid transparent;
  padding: 0.875rem 0 0 0;
}
.header-nav-link:hover {
  color: var(--main-color);
  border-top: 0.125rem solid var(--main-color);
}
/* Header  tablette */
@media (max-width: 1024px) {
  .header-nav {
    padding: 0 3.125rem;
  }
}
/* Header smartphone */
@media (max-width: 768px) {
  header {
    display: flex;
    flex-direction: column;
    justify-content: center;
    margin-bottom: 1.875rem;
  }
  .header-img {
    padding: 1.875rem;
    margin: auto;
  }
  .header-nav {
    padding: 0;
  }
  .header-nav-links {
    flex-basis: 100%;
    gap: 0;
  }
  .header-nav-link {
    padding: 0;
  }
  .header-nav-link {
    flex-basis: 50%;
    text-align: center;
    border-top: none;
    border-bottom: 0.125rem solid var(--main-bg-color);
    padding: 0 0 0.9375rem 0;
  }
  .header-nav-link:hover {
    border-top: none;
    border-bottom: 0.125rem solid var(--main-color);
  }
}

/* hero header */
/* hero_header desktop */
.hero_header {
  display: flex;
  flex-direction: column;
  gap: 2.1875rem;
}
/* hero_header smartphone */
@media (max-width: 768px) {
  .hero_header {
    padding: 0 1.25rem;
  }
}

/* hero_header-slogans desktop*/
.hero_header-slogans {
  display: flex;
  flex-direction: column;
  align-self: stretch;
  margin: 0;
  gap: 0.2rem;
}
.slogan1 {
  margin: 0;
}
.slogan2 {
  font-size: 1rem;
  margin: 0;
}
/* hero_header formulaire desktop*/
.hero_header-recherche {
  height: 3.0625rem;
  display: flex;
  align-items: center;
  border: 0.0625rem solid var(--main-bg-color);
  border-radius: 0.9375rem;
  margin-right: auto;
}
.formulaire_recherche {
  width: 3.125rem;
  height: 100%;
  display: flex;
  align-items: center;
  background-color: var(--main-bg-color);
  border: 0.0625rem solid var(--main-bg-color);
  border-radius: 0.9375rem 0 0 0.9375rem;
}
.localisation-icon {
  margin: 1.125rem 1.1875rem;
  color: black;
}
.localisation-input {
  width: 12.3125rem;
  height: 100%;
  font-size: 1.125rem;
  font-weight: bold;
  border: 0.0625rem solid var(--main-bg-color);
  box-sizing: border-box;
  padding: 0.9375rem 1.5rem;
  border-right: none;
  outline: none;
}
.localisation-button {
  height: 100%;
  display: flex;
  align-items: center;
  border-radius: 0 0.9375rem 0.9375rem 0;
  background-color: var(--main-color);
  border: 0.0625rem solid transparent;
  border-right: none;
  color: white;
  padding: 0.9375rem 1rem;
  cursor: pointer;
}

::placeholder {
  color: black;
}

.localisation-button-text {
  font-size: 1.125rem;
  font-weight: bold;
}
.localisation-button-icon {
  display: none;
}
/* hero_header formulaire for smartphone */
@media (max-width: 768px) {
  .slogan1 {
    padding-top: 1.88rem;
  }

  .hero_header-recherche {
    width: 100%;
  }
  .localisation-input {
    width: 100%;
    height: 100%;
  }
  .localisation-button {
    width: 3.0625rem;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 0.9375rem;
    border: 0.0625rem solid var(--main-bg-color);
  }
  .localisation-button:hover {
    box-shadow: 0rem 0.25rem 0.25rem 0rem rgba(0, 0, 0, 0.25);
  }
  .localisation-button-icon {
    height: 1.0625rem;
    width: 1.0625rem;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
    color: var(--main-bg-color);
  }
  .localisation-button-text {
    display: none;
  }
}

/* hero_header-filtres  desktop*/
.hero_header-filtres {
  display: flex;
  align-items: center;
  justify-content: flex-start;
}
.filtre-titre {
  margin: 0;
}
.filtre-container {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9375rem;
  padding: 0 0.9375rem;
  margin: 0;
}
.filtre {
  height: 3.125rem;
  display: flex;
  align-items: center;
  border: 0.125rem solid var(--background-color);
  border-radius: 2.5625rem;
  padding: 0.25rem 1rem;
  gap: 0.625rem;
}
.filtre:hover {
  background-color: var(--filter-bg-color);
  cursor: pointer;
}
.filtre-text {
  font-size: 1.0625rem;
  font-weight: bold;
}
.filtre_block-icon {
  width: 1.375rem;
  height: 1.375rem;
  display: flex;
  justify-content: center;
  align-items: center;
}
.icon_filtre {
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}
/* hero_header-filtres tablet */
@media (max-width: 1024px) {
  .hero_header-filtres {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.25rem;
  }
  .filtre-container {
    gap: 0.625rem;
    padding: 0;
    flex-wrap: nowrap;
  }
  .filtre-text {
    font-size: 1rem;
  }
}
/* hero_header-filtres smartphone */
@media (max-width: 768px) {
  .hero_header-filtres {
    display: flex;
    justify-content: center;
    gap: 0.625rem;
  }
  .filtre-container {
    width: 100%;
    grid-template-columns: 1fr 1fr;
    display: grid;
    gap: 1.25rem 1rem;
    padding: 0;
  }
  .filtre {
    width: 85%;
    margin-top: 0.625rem;
    align-items: center;
    justify-content: center;
  }
  .filtre-text {
    font-size: 0.875rem;
  }
}
/* hero_header-informations  desktop/tablette/smartphone*/
.hero_header-information {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  margin-bottom: 2.19rem;
}
.information-icon-border {
  min-height: 1.5rem;
  min-width: 1.5rem;
  border: solid 0.0625rem var(--background-color);
  border-radius: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.information-icon {
  color: var(--main-color);
}
.slogan3 {
  font-size: 1rem;
  margin: 0;
}

/* Main for desktop*/
.main {
  display: flex;
  flex-direction: column;
  padding: 0 3.125rem;
  gap: 2.1875rem;
}
/* Main for smartphone */
@media (max-width: 768px) {
  .main {
    padding: 0;
  }

  body {
    margin: auto;
  }
}

/****** Hebergements And Populaires ***********/
.hebergements-and-populaires {
  display: flex;
  justify-content: space-between;
}

.hebergements-and-populaires section {
  border-radius: 20px;
  padding: 30px;
  box-sizing: border-box;
}

/****** Hebergements ***********/
.hebergements {
  width: 65%;
  width: 66.66%;
  display: flex;
  flex-direction: column;
  background-color: var(--main-bg-color);
  border-radius: 0.9375rem;
  padding: 1.875rem;
  gap: 1.875rem;
}

.contenaire_hebergement {
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 2.5rem;
}

.boxe_titre_hebergement {
  display: flex;
}

.titre_hebergement {
  margin: 0;
}

.contenaire_cards-hebergement {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 1.875rem;
}

.card_hebergement {
  background-color: white;
  box-shadow: 0rem 0.1875rem 0.9375rem 0rem rgba(0, 0, 0, 0.1);
  transition-duration: 0.1s;
  border-radius: 1.25rem;
  cursor: pointer;
}

.lien_card {
  width: 100%;
  display: flex;
  flex-direction: column;
  padding-bottom: 0.9375rem;
  gap: 0.25rem;
}

.hebergement_card-img {
  position: relative;
  height: 7.125rem;
  max-width: 100%;
  object-fit: cover;
  border-radius: 1.25rem 1.25rem 0 0;
  padding: 0.3125rem;
}

.hebergement_card-content {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  margin-left: 0.9375rem;
  gap: 0.5rem;
}

.hebergement_card-titre {
  margin: 0;
}

.hebergement_card-price {
  font-size: 0.875rem;
  margin: 0;
}

.herbergement_card-rating {
  display: flex;
  flex-direction: row;
  align-items: center;
  margin: 0;
  gap: 0rem;
}

.fa-star {
  width: 0.8938rem;
  height: 0.8313rem;
  display: flex;
  align-items: center;
  flex-direction: row;
}

.view-more {
  font-size: 1.125rem;
  font-weight: 700;
}

/****** Populaires ***********/
.populaires {
  width: 32%;
  background-color: var(--main-bg-color);
}

.populaires-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.populaires-cards .card {
  display: flex;
  margin-top: 33px;
}

.populaires-cards img {
  width: 33%;
  height: 136px;
  border-top-left-radius: 20px;
  border-bottom-left-radius: 20px;
}

.populaires-cards .card-content {
  width: 67%;
  padding-left: 15px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-sizing: border-box;
}

.populaires-cards .card-title {
  margin-top: 10px;
  margin-bottom: 4px;
}

.populaires-cards .card-subtitle {
  margin: 0;
}

.populaires-cards .card-rating {
  margin-bottom: 5px;
  display: flex;
}

/* Le code ci-dessous correspond à la version responsive uniquement */

/****** Media queries ***********/
/* Medium devices (tablets, less/equal than 1024px) */
@media (max-width: 1024px) {
  .hebergements-and-populaires {
    flex-direction: column;
  }

  .hebergements {
    width: 100%;
  }

  .populaires {
    width: 100%;
    margin-top: 50px;
  }

  .populaires-cards {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
  }

  .populaires-cards a {
    width: 30%;
  }

  .populaires-cards .card-title {
    font-size: 14px;
  }

  .populaires-cards .card-subtitle {
    font-size: 13px;
  }
}

/* Small devices (phones, less than 768px) */
@media (max-width: 767.98px) {
  .main-container {
    padding: 0;
  }

  .hebergements-and-populaires section {
    border-radius: 0;
  }

  .hebergements-and-populaires {
    flex-direction: column-reverse;
    gap: 0.9375rem;
    background-color: initial;
  }
  .hebergements {
    background-color: initial;
    padding: 1.25rem;
  }
  .populaires {
    padding: 1.875rem 1.25rem;
    background-color: var(--main-bg-color);
  }
  /* hebergement cards */
  .contenaire_cards-hebergement {
    grid-template-columns: 1fr;
    gap: 0.9375rem;
  }
  .card_hebergement {
    width: 100%;
  }
  /* Popular cards */
  .populaires-cards {
    display: initial;
    flex-direction: column;
    gap: 0.9375rem;
  }

  .card {
    width: 100%;
  }

  /* affichage ordre liste herbergement*/

  .ordre1 {
    order: 0;
  }
  .ordre2 {
    order: 5;
  }
  .ordre3 {
    order: 2;
  }
  .ordre4 {
    order: 3;
  }
  .ordre5 {
    order: 1;
  }
  .ordre6 {
    order: 4;
  }
}

/********** Activité à Marseilles ***********/

/* Activités desktop */
.activités {
  display: flex;
  flex-direction: column;
  padding: 1.875rem;
  gap: 1.875rem;
}
.activités-titre {
  margin: 0;
}
.activités-cards {
  width: 100%;
  display: flex;
  flex-direction: row;
  gap: 1.875rem;
}
.activités-card {
  width: 25%;
  display: flex;
  flex-direction: column;
  box-shadow: 0rem 0.1875rem 0.9375rem 0rem rgba(0, 0, 0, 0.1);
  transition-duration: 0.1s;
  border-radius: 1.25rem;
}

.activités-card-content {
  cursor: pointer;
}
.activités-card-img {
  position: relative;
  height: 23.75rem;
  width: 100%;
  object-fit: cover;
  border-radius: 1.25rem 1.25rem 0 0;
}
.activités-card-titre {
  padding: 1.25rem 1.1875rem;
  margin: 0;
}
/* Activités  tablette */
@media (max-width: 1024px) {
  .activités-card-img {
    height: 12.5rem;
  }
}
/* Activités smartphone */
@media (max-width: 768px) {
  .activités-cards {
    flex-direction: column;
    gap: 0.9375rem;
  }
  .activités-card {
    width: 100%;
  }
  .activités-card-img {
    height: 8.8125rem;
  }
}

/* Footer */
/* Footer desktop*/
footer {
  width: 100%;
  display: flex;
  background: var(--main-bg-color);
}
.footer-nav {
  width: 33%;
  display: flex;
  flex-direction: column;
  color: black;
  margin: 1.25rem;
  gap: 0.9375rem;
  padding: 1.25rem;
  flex-direction: column;
  align-items: flex-start;
  flex: 1 0 0;
}
.footer-nav-title {
  margin: 0;
}
.footer-nav-link {
  display: flex;
  font-size: 1rem;
}
/* Footer tablette */
@media (max-width: 1024px) {
  .footer {
    gap: 1.875rem;
  }
}
/* Footer smartphone */
@media (max-width: 768px) {
  footer {
    flex-direction: column;
    padding: 1.875rem;
    gap: 3.125rem;
    width: auto;
  }
  .footer-nav {
    width: auto;
    margin: 0;
  }
}
