/****** 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: 0;
}

.main-container {
    width: 100%;
    max-width: 1440px;
    padding: 0 50px;
    box-sizing: border-box;
}

main {
    padding: 0 50px;
}

/****** Header ***********/

header {
    display: flex;
    justify-content: space-between;
    height: 79px;
}

a {
    text-decoration: none;
    color: black;
}

ul {
    list-style-type: none;
    display: flex;
}

.logo-booki {
    width: 61px;
    height: 19px;
    margin: 30px 0 60px 50px;
}

.hebergements-nav {
    font-size: 16px;
    font-style: normal;
    font-weight: 400;
    margin-right: 69px;
    padding-top: 14px;
    width: 112px;
    border-top: 2px solid transparent;
}

.hebergements-nav:hover,
.activites-nav:hover {
    color: #0065FC;
    border-top: 2px solid #0065FC;
}

.activites-nav {
    font-size: 16px;
    line-height: 19px;
    font-style: normal;
    margin-right: 50px;
    padding-top: 14px;
    width: 63px;
    border-top: 2px solid transparent;
    font-weight: 400;
}

/****** barre de recherche ***********/

.formulaire-recherche {
    display: flex;
    margin-top: 35px;
}

button {
    padding: 15px 16px;
    border: 1px solid #0065FC;
    border-radius: 0 15px 15px 0;
    background-color: #0065FC;
    height: 49px;
    color: white;
    font-weight: 700;
    font-size: 16px;
}

.icone-recherche {

    background-color: #F2F2F2;
    color: black;
    font-size: medium;
    border-radius: 15px 0px 0px 15px;
    width: 50px;
    height: 49px;
    display: flex;
    justify-content: center;
    align-items: center;

}

input[type="search"] {
    font-weight: 900;
    border: 2px solid #F2F2F2;
    color: black;
    font-size: 15px;
    text-align: center;
}

::placeholder {
    font-weight: 900;
    font-size: 15px;
    text-align: center;
    color: black;
}

/****** filtres ***********/

.filtres {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-top: 35px;
    margin-bottom: 20px;
}

.filtres-nav {
    display: flex;
    border: 2px solid #d9d9d9;
    border-radius: 30px;
    height: 49px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    padding-left: 15px;
    padding-right: 15px;
}

.filtres-nav:hover {
    background-color: #DEEBFF;
}

/* zone-info */

.align-info {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 35px;
}

.cercle-info {
    width: 24px;
    height: 24px;
    border: 1px solid #d9d9d9;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.icone-info {
    font-size: small;
}

/* cards */

.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;
}

.card-subtitle {
    font-size: 14px;
    font-weight: 400;
}

.euro {
    font-weight: 700;
}

.neutral-star {
    color: var(--main-bg-color);
}

/****** Hebergements And Populaires ***********/

.hebergements-and-populaires {
    display: flex;
    justify-content: space-between;
}

.hebergements-and-populaires section {
    background-color: var(--main-bg-color);
    border-radius: 20px;
    padding: 30px;
    box-sizing: border-box;
}

/****** Hebergements ***********/

.hebergements {
    width: 65%;
}

.hebergements-cards {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    margin-top: 33px;
}

.hebergements-cards .card {
    display: flex;
    flex-direction: column;
    width: 29%;
    margin-bottom: 30px;
}

.hebergements-cards img {
    width: 100%;
    height: 120px;
    border-radius: 20px 20px 0 0;

}

.hebergements-cards .card-content {
    width: 100%;
    padding-left: 15px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-sizing: border-box;
}

.hebergements-cards .card-title {
    margin-top: 10px;
    margin-bottom: 4px;
}

.hebergements-cards .card-subtitle {
    margin: 0;
}

.bouton-afficherplus {
    font-weight: 700;
    font-size: 18px;
}


/****** 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: 134px;
    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 */

.section-title-activites {
    font-size: 22px;
    margin: 65px 40px 30px 30px;
}

.activites-row {
    display: flex;
    justify-content: space-evenly;
}

.activites-cards {
    width: 22%;
    height: 439px;
}

.card-activites {
    background-color: white;
    border-radius: 20px;
    filter: drop-shadow(0px 3px 15px rgba(0, 0, 0, 0.1));
}

.subtitle-activites {
    margin: 0;
    font-size: 12.5px;
    font-weight: 700;
    padding: 20px 1px 20px 10px;
}

.card-activites img {
    border-radius: 20px 20px 0 0;
    width: 100%;
    object-fit: cover;
    height: 380px;
    max-width: 300px;
}


/* Footer */

.background-footer {
    background-color: #F2F2F2;
    width: 92%;
    margin: auto;
    height: 163px;
    margin-top: 65px;

}

.footer-row {
    display: flex;
    padding-top: 20px;
    padding-left: 30px;
}

.footer-row ul {
    display: flex;
    flex-direction: column;
    margin: 0;
    padding: 0;
}

.footer-row h3 {
    font-weight: 700;
    font-size: 16px;
    margin: 0;
    line-height: 25px;
}

.footer-row li a {
    font-size: 14px;
    font-weight: 400;
    line-height: 25px;
    list-style: none;
    color: inherit;
    text-decoration: none;
}

.footer-box {
    min-width: 30%;
    margin-right: 45px;
}

/* 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;
        width: 100%;
    }

    .populaires-cards .card {
        max-width: 225px;
        display: flex;
        justify-content: space-between;

    }

    .populaires-cards .card-title {
        font-size: 14px;
    }

    .populaires-cards .card-subtitle {
        font-size: 13px;
    }

}