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

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

ul {
  list-style: none;
}

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

h2.section-title {
  margin-bottom: 0.5rem;
}

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

a {
  color: inherit;
  text-decoration: none;
}

.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 + Main-container */

.main-container {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  max-width: 1440px;
  margin: auto;
}

header {
  background: white;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  max-width: 1440px;
}

header .main-logo {
  display: flex;
  justify-content: center;
}

header .main-logo img {
  margin-top: 1rem;
  width: 3rem;
  height: 1rem;
}

header nav {
  display: flex;
  flex-direction: row;
}
header nav a {
  padding: 1rem 2rem;
}

header nav a:hover {
  color: #0065fc;
  border-top: 0.1rem solid #0065fc;
}

/* Main: */

/* Filtres */

.filtres {
  flex: auto;
  display: flex;
  flex-direction: column;
  padding-top: 3rem;
}

.filtres-content1 {
  max-width: 1440px;
}

.filtres-content2 {
  padding-top: 2rem;
  padding-bottom: 2rem;
  flex: auto;
  display: flex;
  flex-direction: row;
}

.filtres-content2 i {
  display: flex;
  justify-content: center;
  align-content: center;
  padding: 15px;
  font-weight: 700;
  font-size: 20px;
  border: 1px solid #f2f2f2;
  border-top-left-radius: 20px;
  border-bottom-left-radius: 20px;
  background: #f2f2f2;
  cursor: pointer;
}

.filtres-content2 input {
  border: 1px solid #f2f2f2;
  justify-content: center;
  align-content: center;
  padding: 15px;
  font-size: 18px;
  font-weight: 700;
  cursor: pointer;
}

.btn2 {
  display: inline-block;
  padding: 15px 25px;
  font-weight: 700;
  font-size: 14px;
  color: white;
  border: 1px solid #f2f2f2;
  border-top-right-radius: 20px;
  border-bottom-right-radius: 20px;
  background: #0065fc;
  cursor: pointer;
}

.filtres-content3 {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 1rem;
}

.filtres-content3 a {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-content: center;
  padding: 0px 2px 0px 2px;
  border-radius: 60px;
  font-weight: 700;
  font-size: 13px;
  border: 2px solid #d9d9d9;
  cursor: pointer;
}

.filtres-content3 a:hover {
  background: #deebff;
}

.filtres-content3 a i {
  padding-right: 0.5rem;
  padding-left: 1rem;
  margin: auto;
}

.filtres-content3 a h3 {
  padding-right: 1rem;
}

.filtres-content4 {
  padding-top: 1rem;
  display: flex;
  flex-direction: row;
  align-items: center;
}

.filtres-content4 i {
  height: 23px;
  min-width: 23px;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 50px;
  font-size: 14px;
  border: 1px solid #d9d9d9;
}

.filtres-content4 p {
  padding-left: 1rem;
}

/****** Hebergements And Populaires ***********/
.hebergements-and-populaires {
  display: flex;
  justify-content: space-between;
  padding-bottom: 4rem;
  padding-top: 2rem;
}

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

/****** Hebergements ***********/

.hebergements {
  width: 65%;
}

.hebergements-list {
  display: flex;
  flex-flow: row nowrap;
  justify-content: space-between;
}

.hebergements-elem {
  border: 4px solid white;
  background: white;
  border-radius: 20px;
  margin: 1rem;
  flex: 1;
}
.hebergements-elem-img {
  width: 100%;
  height: 136px;
  object-fit: cover;
  border-top-left-radius: 20px;
  border-top-right-radius: 20px;
}

.hebergements-elem-text .card-content {
  width: 100%;
  padding-left: 15px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-sizing: border-box;
}

.hebergements-elem-text .card-title {
  margin-top: 10px;
  margin-bottom: 4px;
}

.hebergements-elem-text .card-subtitle {
  margin: 0;
}

.hebergements-elem-text .card-rating {
  margin-bottom: 5px;
}

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

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

/* Activités à Marseille */

.activites {
  display: flex;
  flex-direction: column;
  border-radius: 20px;
}

.activites-superelem {
  flex: 1;
}

.activites-list {
  display: flex;
  flex-flow: row nowrap;
  justify-content: space-between;
}

.activites-elem {
  box-shadow: 0px 0px 15px 3px#f2f2f2;
  border-radius: 20px;
  background: white;
  margin: 1rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.activites-elem img {
  width: 100%;
  height: 25rem;
  object-fit: cover;
  border-top-left-radius: 20px;
  border-top-right-radius: 20px;
}

.activites-elem h3 {
  padding-left: 1rem;
}

/* Footer */

footer {
  background: #f2f2f2;
  padding: 0.5rem 0.5rem 0.5rem 0.5rem;
  color: black;
}

.footer-container {
  display: flex;
  flex-flow: row;
  justify-content: stretch;
}

.footer-list {
  display: flex;
  flex-direction: column;
}

.footer-list ul {
  display: flex;
  flex-direction: column;
}

.footer-list ul li {
  padding-bottom: 1rem;
}

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