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

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

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

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

/****** 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: 15px;
    border-bottom-left-radius: 15px;
}

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

/*Debut de mon code*/
/*header*/
.logo-booki{
    width: 61px;
}
header{
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 20px;
}
.liste-nav ul{
    display: flex;
    gap: 35%;
    list-style: none;
    margin-left: 50px;
    margin-right: 50px;
}
.liste-nav a:hover{
    color: var(--main-color);
    border-top: 2px solid var(--main-color);
    padding-top: 33px;
}
/*barre de recherche*/
.search-bar{
    display: flex;
    align-items: center;
    margin-top: 35px;
    margin-bottom: 35px;
    width: fit-content;
    border-radius: 12px;
    width: 100%;
}

    
        .map{
            display: flex;
            justify-content: center;
            align-items: center;
            padding: 10px 8px 10px 8px;
            height: 29px;
            width: 39px;
            font-size: 20px;
            background-color: var(--main-bg-color);
            border-radius: 15px 0px 0px 15px;
            color: black;
        }
        .search{
            border: none;
            padding-left: 28px;
            width: 200px;
            height: 49px;
            font-weight: bold;
            font-size: 18px;
            border-top: 1px solid var(--main-bg-color);
            border-bottom: 1px solid var(--main-bg-color);
        }
        .lens-icon{
            background-color: var(--main-color);
            color: white;
            border: none;
            border-radius: 0px 15px 15px 0px;
            font-weight: bold;
            font-size: 18px;
            height: 49px;
            padding: 15px 16px;
            cursor: pointer;
        }
        .icone{
            display: none;
        }
/*Filtres*/
.filters{
    width: 100%;
    display: flex;
    align-items: center;
}
.filters p{
        font-weight: bold;
        font-size: 18px;
    }

.bouton{
    display: flex;
    align-items: center;
    padding: 4px 19px;
    border-radius: 25px;
    font-size: 18px;
    font-weight: bold;
    height: 50px;
    background-color: white;
    border: 2px solid #D9D9D9;
    gap: 10px;
    cursor: pointer;
    margin: 10px;
}
.every-button{
    display: flex;
}
.bouton:hover{
    background-color: var(--filter-bg-color);
}
.infobar{
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 35px;
    margin-top: 35px;
}
/*Cards*/
.hebergements{
    margin-right: 10px;
    width: 65%;
}
.card-hebergement-row1{
    display: flex;
    justify-content: space-around;
    gap: 20px;
    width: 100%;
}
.card-h{
    width: 100%;
    background-color: white;
    border-radius: 20px;
    padding: 5px;
    filter: drop-shadow(0px 3px 15px rgba(0, 0, 0, 0.1));
    margin-bottom: 30px;
    
}
.card:hover{
    filter: drop-shadow(0px 3px 15px rgba(0, 0, 0, 0.3)); 
}

.card-h img{
    display: flex;
    width: 100%;
    height: 124px;
    border-radius: 15px 15px 0px 0px;
    object-fit:cover;
    
}
.card-h-title{
    margin-top: 10px;
    margin-bottom: 4px;
    margin-left: 15px;
    margin-top: 4px;
}
.card-title-a{
    position: relative;
    bottom: 10px;
}
.card-h-subtitle{
    margin:0px;
    margin-top: 8px;
    padding-left: 15px;
}
.card-h:hover{
filter: drop-shadow(0px 3px 15px rgba(0, 0, 0, 0.3));    
}
.card-h-rating{
    margin-left: 15px;
    margin-top: 8px;
}
.hebergements h2{
    padding-bottom: 30px;

}
.card-hebergement-row2{
    display: flex;
    justify-content: space-around;
    gap: 20px;
    width: 100%;
}
.afficher-plus{
    font-weight: bold;
    font-size: 18px;
    padding: 5px;
}

/*Activités*/

.activites h2{
    margin-left: 3.5%;
    margin-top: 65px;
    margin-bottom: 30px;
    font-size: 22px;
}
.card-activites{
    background-color: white;
    height: 439px;
    width: 100%;
    border-radius: 20px;
    filter: drop-shadow(0px 3px 15px rgba(0, 0, 0, 0.1));
    margin-bottom: 65px;
    margin-left: 10px;
    margin-right: 10px;
    cursor: pointer;
}
.card-activites img{
    border-radius: 20px 20px 0px 0px;
    height: 380px;
    width: 100%;
    object-fit: cover;
}
.container-card-activites{
    display: flex;
    justify-content: space-between;
    padding-right: 1.2%;
    padding-left: 2.2%;
}
.a-activites{
    width: 23%;
}
.card-title-a{
    margin-top: 19px;
    margin-left: 19px;
    font-size: 16px;
}
.card-activites:hover{
    filter: drop-shadow(0px 3px 15px rgba(0, 0, 0, 0.3));
}
/*Footer*/
footer{
    display: flex;
    justify-content: space-between;
    background-color: var(--main-bg-color);
    padding: 20px;
}
.menu-footer ul{
    list-style: none;
    padding-left: 0px;
}
.menu-footer li{
    margin-bottom: 15px;
}




    





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

/****** Media queries ***********/
/* Medium devices (tablets, less/equal than 1024px) */
@media (max-width: 1024px) {
    .main-container{
        width: 100%;
    }
    .search-bar{
        width: 100%;
    }
    .filters{
        width: 100%;
        flex-wrap: wrap;
    }
    .hebergements{
        width: 100%;
    }
    .card-hebergement-row1{
        display: flex;
        flex-direction: row;
        justify-content: space-between;
    }
    .card-hebergement-row2{
        width: 100%;
    }
    .card-h{
        width: 100%;
    }
    .container-card-activites{
        gap: 10px;
    }
    .container-card-activites a{
        width: 100%;
    }
    .card-activites{
        width: 100%;
        height: 270px;
    }
    .card-activites img{
        height: 200px;
    }
    
    .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: 16px;
    }

    .populaires-cards .card-subtitle {
        font-size: 14px;
    }
    footer{
        gap: 90px;
    }
}

/* Small devices (phones, less than 768px) */
@media (max-width: 768px) {
    .main-container{
        margin:0;
        padding: 0;
        width: 100%;
        box-sizing: border-box;
    }
    header{
        display: flex;
        justify-content: center;
        flex-direction: column;
        margin: 0;
    }
    .logo-booki{    
        display: flex;
        justify-content: center;
        margin-left: 0px;
        margin-top: 30px;
        margin-bottom: 15px;
        width: 75px;
    }
     .liste-nav ul{
        display: flex;
        justify-content: space-evenly;
        width: 100%;
        padding: 0;
        margin: 0;
        gap: 0;
     }
     .liste-nav a:hover{
        border-top: none;
        padding-top: 0;
     }
    .liste-nav li:hover{
        border-bottom: 2px solid var(--main-color);
    }
    .liste-nav{
        width: 100%;
        
    }
    .liste-nav li{
        width: 100%;
        display: flex;
        justify-content: center;
        box-sizing: border-box;
        border-bottom: 2px solid rgb(238, 238, 238);
        padding-bottom: 15px;
    }
    
    .intro{
        margin-left: 20px;
    }
    .search-bar{
        margin-left: 20px;
        width: 92%;
    }
    
    .search-bar .icone{
        color: white;
        display: inline;
    }
    .text-bouton{
        display: none;
    }
    .infobar{
        margin-left: 20px;
    }
    .filters{
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        
    }
    .filters p{
        margin-bottom: 20px;
        margin: 20px;
    }
    .every-button{
        display: grid; 
        grid-template-columns: 1fr 1fr;
        grid-template-rows: 1fr 1fr;
        row-gap: 10px;
        column-gap: 2%;
        margin-left: 20px;
        margin: 0;
        margin-left: 10px;
        /* place-self: center; */
    }
    .bouton{
        padding: 8px;
    }
    .hebergements-and-populaires section{
        border-radius: 0px;
    }
    .hebergements-and-populaires{
        display: flex;
        flex-direction: column-reverse;
    }
    .populaires{
        margin-bottom: 15px;
    }
    .populaires-cards{
        display: flex;
        flex-direction: column;
    }
    .populaires-cards a{
        width: 100%;
    }
     .hebergements-and-populaires .hebergements{
        background-color: white;
        padding: 25px;
        margin: -5px;
     }
    .card-hebergement-row1{
        display: flex;
        flex-direction: column;
        gap: 0;
    }
    .card-hebergement-row2{
        display: flex;
        flex-direction: column;
        gap: 0;
    }
    .card-h{
        margin-bottom: 15px;
    }
    .activites h2{
        margin-left: 5% ;
    }
    .activites{
        margin: 15px;
    }
    .afficher-plus{
        padding: 0;
    }
    .card-activites{
        width: 95%;
        height: 250px;
        margin-bottom: 15px;
    }
    .container-card-activites{
        flex-direction: column;
        box-sizing: border-box;
        gap: 0;
        align-items: center;
    }
    footer{
        flex-direction: column;
        gap: 50px;
    }
    }