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

:root {
    --main-color: #0065FC;
    --main-bg-color: #F2F2F2;
    --filter-bg-color: #DEEBFF;
}

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

/*** Menu entête ***/
.header-navigation {
    width: 100%;
    height: 79px;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
}

.logoreservia {
    display:flex;
    height: 79px;
    align-items: center;
}

.logoreservia img {
    width: 61.09px;
    height: 19px;
}

.menu-navigation ul {
 list-style: none;
 display: flex;
 padding: 0 0 0 50px;
 gap: 68px;
 margin-top: 0;
}

.nav-menu {
    border-top: solid 2px white;
    padding-top: 16px;
}

.nav-menu:hover {
    color: #0065FC;
    border-top: solid 2px #0065FC;
    padding-top: 16px;
}

/******* Partie sur la recherche *******/
.trouvez-herbergements {
    width: auto;
    height: 100%;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    flex-direction: column;
    margin-bottom: 35px;
}

.trouvez-votre-hebergement, .search-bar, .filtres {
    margin-bottom: 15px;
}

.search-bar {
    display: flex;
    width: auto;
    height: 50px;
}

.bulle-location {
    width: 50px;
    height: 100%;
    display: flex;
    align-items: center;
    border-radius: 15px 0 0 15px;
    background-color: #f2f2f2 ;
}

.fa-location-dot {
    width: 50px;
    text-align: center;
    color: black;
}

.search-bar input {
    height: 100%;
    background-color: white;
    border: solid 1px #F2F2F2;
    font-weight: bold;
}

.button-search {
    height: 100%;
    font-size: 18px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    background-color: #0065FC;
    border: 1px #0065FC;
    border-radius: 0 15px 15px 0;
}

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



/* Recherche/Filtres */
.filtres, .partie-boutons-filtres, .titre-filtre {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    align-content: space-between;
}

.titre-filtre, .liens-filtres {
    margin: 0 10px 10px 0;
    font-size: 17px;
    font-weight: bold;
}

.fa-filtres {
margin-right: 10px;
}

.liens-filtres {
    display: flex;
    width: auto;
    height: 46px;
    padding: 0px 19px 0px 19px;
    border: solid 2px #D9D9D9;
    border-radius: 25px;
    background-color: white;
    align-items: center;
}
.liens-filtres:hover {
    border: solid 2px #D9D9D9;
    background-color: #DEEBFF;
}

.nom-filtre {
    white-space: nowrap;
}

 /* Recherche/Infos logements */
 .infos-recherche {
    display: flex;
    align-items: center;
    justify-content: center;
}

 .bulle-info {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 24px;
    height: 24px;
    border: solid 1px #D9D9D9;
    border-radius: 50%; 
}

.fa-info {
    font-size: 12px;
}

.infos-nb-logements {
    width: 100%;
    height: 100%;
    display: flex;
    margin-left: 10px;
    align-items: center; 
}

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

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

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

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

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

}

/****** Hebergements ***********/
.hebergements {
    width: 65%;
    margin: 0;
}

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

.resultats-recherche {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    column-gap: 30px;
}

.herbergements-cards .card {
    width: 100%;
    display: flex;
    flex-direction: column;
    margin-top: 33px;
}

.herbergements-cards img {
    width: 100%;
    height: 124px;
    border-radius: 20px 20px 0 0;
}

.resultats-recherche .card-content {
    padding: 10px;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.resultats-recherche .card-title, .resultats-recherche .card-subtitle, .resultats-recherche .card-rating, .afficher-plus {
    margin: 0;
}



/****** 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 */
.activites {
    margin: 30px;
}

.activites-title {
    padding-top: 30px;
    padding-bottom: 30px;
}

.resultats-activites {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    column-gap: 20px;
}

.activites-cards .card {
    display: flex;
    height: 100%;
    flex-direction: column;
    padding: 0;
}

.activites-cards img {
    width: 100%;
    height: 380px;
    border-top-right-radius: 20px;
    border-top-left-radius: 20px;
}

.activites-cards .card-content {
    padding: 0 20px 0 20px;
}


/* Pied de page */
footer {
    margin-top: 30px;
    width: 100%;
    height: auto;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    background-color: #F2F2F2;
}

.menu-footer {
    display: flex;
    flex-direction: column;
    padding: 30px;
}

.contenu-footer {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.menu-footer .title {
    margin: 0;
}
.contenu-footer ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.contenu-footer li {
    margin-top: 10px;
}

/* 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;
        padding-bottom: 33px;
    }

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

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

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

    .activites-cards .card {
        width: 100%;
        border-radius: 20px;
        padding: 0;
    }

    .activites-cards img {
        height: 190px;
        border-radius: 20px 20px 0 0;
    }
    
}

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

    .main-container {
        max-width: 767.98px;
        padding: 0 ;
    }

    header {
        display: flex;
    }
    .header-navigation {
        width: 100%;
        height: 100%;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }

    .logoreservia img{ 
        display: flex;
        justify-content: center;
        align-items: center;
        margin: 0;
        padding: 0;
    }

    .menu-navigation {
        width: 100%;
    }

    .menu-navigation ul {
        display: grid;
        grid-template-columns: 1fr 1fr;
        padding: 0;
        gap: 0;
    }

    .menu-navigation li {
        text-align: center;
    }

    .nav-menu {
        border-top: 0px;
        border-bottom: solid 2px white;
        padding-bottom: 16px;
    }
    .nav-menu:hover {
        border-top: 0px;
        border-bottom: solid 2px #0065FC;
        padding-bottom: 16px;
    }

    .search-bar {
        justify-content: center;
    }
    .partie-boutons-filtres {
        display: grid;
        grid-template-columns: 1fr 1fr;
    }
    .liens-filtres {
     
    }
    .button-search {
        display: none;
    }
    
    .button-search-loupe {
        height: 100%;
        width: 50px;
        font-size: 18px;
        display: flex;
        justify-content: center;
        align-items: center;
        color: white;
        background-color: #0065FC;
        border: 1px #0065FC;
        border-radius: 0 15px 15px 0;
    }
    .fa-magnifying-glass {
        color: white;
        width: 50px;
    }

    .hebergements-and-populaires {
        width: 100%;
        display: flex;
        flex-direction: column-reverse;
    }

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


    .hebergements-and-populaires .hebergements {
        background-color: white;
    }

    .trouvez-herbergements {
        margin-right: 20px;
        margin-left: 20px;
    }

    .trouvez-herbergements input {
        width: 100%;
    }

    .resultats-recherche, .populaires-cards, footer{
        display: flex;
        flex-direction: column;
    }

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

    .populaires-cards img {
        width: 33%;
        height: 146px;
    }

    .populaires-cards .card-content {
        width: 67%;
        height: auto;
    }

    .resultats-activites {
        display: flex;
        flex-direction: column;
    }

    .activites-cards .card {
        margin-bottom: 20px;
    }
}
