/****** General ***********/
* {
  font-family: "Raleway", sans-serif;
}

:root {
  --main-color: #0065fc;
  --main-bg-color: #f2f2f2;
  --filter-bg-color: #deebff;
}

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

body {
  display: flex;
  justify-content: center;
  margin-bottom: 0;
  margin-left: 50px;
  margin-right: 50px;
}

.main-container {
  width: 100%;
  max-width: 1440px;
  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: 15px;
}

h1,
h2 {
  font-size: 22px;
}

.euro {
  font-weight: 700;
}

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

/*mes modifications*/

/*liens*/
a {
  font-size: 16px;
  color: #000000;
  text-decoration: none;
}

/*liens hébergements et activités*/
nav {
  display: flex;
  align-items: center;
  justify-content: end;
  margin-top: -46px;
}

/*Hébergement et Activités*/
nav a {
  padding: 35px;
  color: black;
  text-decoration: none;
}

/*Survol*/
nav a:hover {
  border-top: 2px solid #0065fc;
  color: #0065fc;
}

#logo {
  margin-top: 15px;
  margin-right: auto;
  width: 61px;
}

/* Titre h1 */
.section-content h1 {
  margin-bottom: 8px;
  font-size: 22px;
}

/*barre de recherche*/
.searchbar {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  margin-top: 35px;
  margin-bottom: 35px;
}

/*icone localisation*/
.fa-location-dot {
  background-color: #f2f2f2;
  border-radius: 10px 0px 0px 10px;
  padding: 18px;
  color: black;
}

/*icone loupe pour mobile*/
.fa-magnifying-glass {
  display: none;
}

input {
  border: #f2f2f2 1px solid;
  padding: 15px;
  font-weight: bold;
  text-align: center;
  font-size: 18px;
  font-weight: 700;
  margin-left: -0px;
}

.search-button-blue {
  border-radius: 0px 10px 10px 0px;
  background-color: #0065fc;
  border: #0065fc 1px solid;
  padding: 16.5px 16px;
  font-size: 15px;
  color: white; /*couleur du texte "Rechercher"*/
}

/*filtres*/
.filter-list {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 35px;
  margin-bottom: 15px;
}

/*bordure autour des icones*/
.filter-list a {
  border: #f2f2f2 2px solid;
  border-radius: 25px;
  padding: 4px 19px;
}

/*icones*/
.fa-solid.fa-money-bill-wave,
.fa-sharp.fa-person,
.fa-solid.fa-heart,
.fa-solid.fa-fire {
  color: #0065fc;
  padding: 10px;
  border-radius: 50%;
}

/*textes des filtres*/
#economique,
#famille,
#romantique,
#pepites {
  color: black;
  font-weight: bold;
  font-size: 17px;
}

/*couleur bleu claire au survol*/
.filter-list a:hover {
  background-color: #deebff;
}
/*icone d'information*/
.fa-solid.fa-info {
  display: flex;
  justify-content: center;
  border: 1px solid #deebff;
  width: 0.1em;
  height: 0.1em;
  padding: 0.7em;
  border-radius: 50%;
  margin-top: 10px;
}

.information,
.fa-solid.fa-info {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 15px;
}

/******  SECTION HEBERGEMENT ***********/

/*Titre Hébergements à Marseille*/
.hebergements-title h2 {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 0px;
}

/*toutes les cards*/
.hebergements-cards .card {
  width: calc(33.33% - 30px);
  max-height: 268px;
  display: flex;
  padding-bottom: 0px;
  flex-direction: column;
}

.hebergements-cards {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 30px;
}

/*images*/
.hebergements-cards img {
  width: 100%;
  height: 124px;
  align-self: stretch;
  border-radius: 20px 20px 0px 0px;
}

/*contenu des cards*/
.hebergements-cards .card-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  align-self: stretch;
  margin-left: 15px;
}

.hebergements-cards .card-title {
  margin-bottom: 10px;
  align-self: stretch;
  margin-top: 4px;
}

.hebergements-cards .card-subtitle {
  /*paragraphe cards*/
  align-self: stretch;
  margin-top: -4px;
}

.hebergements-cards .card-rating {
  margin-bottom: 15px; /*étoiles*/
  margin-top: -12px;
}

.lien-afficher-plus {
  font-size: 18px;
  color: black;
  font-weight: bold;
  margin-top: 30px;
}

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

/*4eme étoiles grise*/
.fa-solid.neutral-star {
  color: #f2f2f2;
}

.hebergements-and-populaires section {
  background-color: var(--main-bg-color);
  border-radius: 20px;
  padding: 30px;
  box-sizing: border-box;
  margin-bottom: 35px;
}

/****** Hebergements ***********/
.hebergements {
  width: 67%;
}

/****** Populaires ***********/
.populaires {
  width: 50%;
}

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

.populaires-cards .card {
  display: flex;
  margin: 20px;
  margin-left: 0px;
  margin-right: 0px;
}

.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;
}

/****** Activités ***********/

/*Titre Activités à Marseille*/
.activités-title {
  height: 30px;
  margin: 30px;
  margin-bottom: 0px;
}

#activités {
  margin-bottom: 35px;
  display: flex;
  gap: 30px;
  justify-content: space-between;
  padding-left: 30px;
  padding-right: 30px;
}

.activités-cards {
  width: 100%;
}

/*cards*/
.activités-cards .card {
  display: flex;
  flex-direction: column;
  flex-wrap: wrap;
  align-items: stretch;
  justify-content: space-between;
  padding: 0px;
  margin-top: 30px;
  margin-bottom: 30px;
}

/*images*/
.activités-cards img {
  width: 100%;
  height: 380px;
  border-radius: 20px 20px 0px 0px;
}
/*contenu des cards*/
.activités-cards .card-content {
  padding-bottom: 20px;
  padding-left: 19px;
}

.activités-cards .card-title {
  margin-top: 20px;
  margin-bottom: 4px;
}

/****** FOOTER ***********/
footer {
  background-color: #f2f2f2;
}

ul {
  list-style: none;
  display: flex;
  padding-left: 0;
}

li {
  display: flex;
  padding: 20px;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  flex: 1 0 0; /*Permet aux éléments de s'étirer autant que nécessaire pour remplir tout l'espace disponible*/
  align-self: stretch;
}
footer p {
  font-size: 18px;
  font-weight: bold;
  margin: 0px;
  font-weight: 700;
}

footer a {
  font-size: 16px;
  color: black;
  font-weight: 400;
}

/* 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: -30px;
  }

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

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

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

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

  .activités-cards img{
    height: 200px;
  }

  .activités-cards .card-content {
    display: flex;
    height: 0px;
    padding: 20px 19px;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    gap: 10px;
    align-self: stretch;
    margin-bottom: 20px;
  }
}

/* Styles pour les appareils mobiles (écran de 768 pixels ou moins) */
@media (max-width: 768px) {
  body {
    display: flex;
    justify-content: center;
    margin: 0px;
  }

  .main-container {
    width: 100%;
    max-width: 767.98px;
    box-sizing: border-box;
  }

  .hebergements-and-populaires section {
    margin-bottom: -30px;
  }

  #logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    margin-top: 30px;
    padding-bottom: 30px;
    margin-right: auto;
    margin-left: auto;
  }

  nav {
    display: flex;
    width: 100%;
  }

  nav a {
    padding-bottom: 25px;
    border-bottom: 3px solid #f2f2f2;
    width: 50%;
    text-align: center;
  }

  nav a:hover {
    border-bottom: 2px solid;
    border-top: none;
  }

  .section-content {
    margin: 0 20px;
  }

  .information {
    margin: 25px 20px;
    margin-bottom: 15px;
  }

  .searchbar {
    width: 320px;
    height: 35px;
    display: flex;
    margin-top: 35px;
    margin-bottom: 35px;
  }

  .fa-location-dot {
    margin-left: 20px;
  }

  /* Affiche la loupe uniquement sur les appareils mobiles */
  .fa-magnifying-glass {
    display: inline-block;
    border-radius: 10px 10px 10px 10px;
    box-shadow: 0px 15px 20px rgba(115, 113, 113, 0.5);
    background-color: #0065fc;
    border: #0065fc 1px solid;
    padding: 17px;
    color: white;
    position: relative;
    left: -19px;
  }

  .search-button-blue {
    display: none;
  }

  input {
    border: #f2f2f2 1px solid;
    padding: 14px;
    width: 187px;
    padding-left: 0px;
  }

  /*FILTRES*/

  .filter-list {
    display: grid;
    align-items: start; /* Aligner les éléments en haut de leur espace */
    margin: 0 20px;
    flex-wrap: wrap;
    width: 90%;
  }

  .filter-list h2 {
    align-self: start; /* Aligner le titre en haut de sa cellule */
    margin-bottom: 20px;
    grid-column: span 2; /* Faire en sorte que le titre occupe les deux colonnes */
  }

  .filter-list a {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
  }

  #economique,
  #famille,
  #romantique,
  #pepites {
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
    font-size: 13px;
    padding-left: 0px;
  }

  /*POPULAIRES*/

  .hebergements-and-populaires {
    flex-direction: column-reverse;
  }

  section.populaires {
    border-radius: 0; /*bordure section populaire à vérifier*/
  }

  .populaires {
    width: 100%;
    margin-top: 0;
  }
  .populaires-cards {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .populaires-cards .card {
    width: 100%;
  }

  /*HEBERGEMENTS*/

  .hebergements-and-populaires #hebergements {
    background-color: transparent;
  }

  .hebergements {
    width: 100%;
  }

  /*toutes les cards*/
  .hebergements-cards {
    flex-direction: column;
    align-items: center;
    gap: 15px;
    background-color: transparent;
  }

  /*une cards*/
  .hebergements-cards .card {
    width: 100%;
    height: 207px;
    display: flex;
    padding-bottom: 0px;
    flex-direction: column;
    gap: 4px;
    align-self: stretch;
  }

  /*images des cards*/
  .hebergements-cards img {
    height: 126px;
    align-self: stretch;
    object-fit: cover;
  }

  .hebergements .card-content {
    display: flex;
    padding: 0px 15px;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    align-self: stretch;
  }

  /*ordre des cards d'hébergements*/
  .card-1 {
    order: 1;
  }

  .card-2 {
    order: 6;
  }

  .card-3 {
    order: 3;
  }

  .card-4 {
    order: 4;
  }

  .card-5 {
    order: 2;
  }

  .card-6 {
    order: 5;
  }

  /*ACTIVITÉS*/

  #activités {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
    gap: 15px;
    margin-bottom: 65px;
  }

  .activités-title {
    margin-bottom: 30px;
  }

  /*une cards*/
  .activités-cards .card {
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
    margin: 0px;
  }

  /*images des cards*/
  .activités-cards img {
    width: 100%;
    height: 145px;
  }

  .activités-cards .card-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    gap: 10px;
    align-self: stretch;
  }

  .activités-cards .card-title {
    margin-top: 20px;
    margin-bottom: 4px;
    margin-left: -8px;
  }

  /*FOOTER*/

  .footer ul {
    display: flex;
    padding: 20px;
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
    flex: 1 0 0;
    align-self: stretch;
  }

  footer {
    margin-bottom: -30px;
  }
}
