/****** General ***********/
* {
    font-family: 'Raleway', sans-serif;
    margin: 0;
    padding: 0 ;
    max-width: 1440px;

}


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

body {
    margin: auto;
}

html {
    margin: auto;
}

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

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 {
    display: flex;
    justify-content: space-between;
}

nav div{
    display: flex;
    padding-left: 50px;
    padding-right: 50px;
}

nav div a {
    margin-left:34px ;
    margin-right: 34px;
    padding-top: 13.5px;
}

nav div a:hover{
    border-top: 2px solid;
    padding-top: 11.5px;
    color: #0065FC;
}

.Logo-booki {
    width: 61.09px;
    height: 19px;
    padding-top:30px;
    padding-bottom: 30px;
    padding-left: 50px;
    padding-right: 50px;
}

header {
    height: 79px;
    width: 100%;
    margin: auto;
}

.head-form-recherche {
    margin-bottom: 30px;
}
 

form {
    margin-top : 35px
}

.searchbar {
    color: black;
    border: none;
    border-top: solid 1px #F2F2F2;
    border-bottom: solid 1px #F2F2F2;
    font-size: 18px;
}

.searchbar::placeholder {
    color: black;
    font-size: 18px;
    font-weight: 700;
    text-align: center;
}

.icone-location {
    width: 50px;
    background-color:#F2F2F2;
    border-radius: 15px 0 0 15px;
    height: 49px;
    display: flex;
    justify-content: center;
    align-items: center;
}
.search {
    display: flex;
    flex-direction: row;
}

.form-recherche {
   padding-right: 60px;
    padding-left: 60px; 
    margin-top: 50px;
    margin: auto;
}

.search button {
    background-color:#0065FC;
    color: #FFFFFF;
    border: #FFFFFF 1px;
    border-top-right-radius: 15px;
    border-bottom-right-radius: 15px;
    padding: 10px;
}

.button-loupe {
    display: none;
}

form button p {
    font-weight: 700;
    font-size: 16px;
}

h1 {
    font-size: 22px;
}

.filtre {
    margin-top: 35px;
}

.filtre-title-outside {
    display: none;
}

.filtre-grid {
    display: flex;
    flex-direction: row;
    align-items: center;
}

.filtre button{
    margin: 10px;
    height: 50px;
    border-radius: 25px;
    border: solid #D9D9D9 2px;
    padding-left: 19px;
    padding-right: 19px;
    padding-top: 4px;
    padding-bottom: 4px;
    background-color: #FFFFFF;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}
    

.filtre button img {
    height: 22px;
    width: 22px;
    margin-right: 10px;
}

.filtre button:hover{
    background-color: #DEEBFF;
}

.info {
    display: flex;
    flex-direction: row;
    margin-top: 30px;
    font-weight: 400;
    margin-bottom: 30px;
}

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

.hebergements-and-populaires section {
    border-radius: 20px;
    padding: 30px;
    box-sizing: border-box;
    margin-bottom: 30px;
}

.bluestar i {
    color: #0065FC;
}
.card-rating {
    display: flex;
    flex-direction: row
}
.whitestar i {
    color: #F2F2F2;
}

/****** Hebergements ***********/
.hebergements {
    margin-right: 30px;
    width: 65.5%;
    height: 614px;
    gap: 30px;
    padding: 30px;
    background-color: var(--main-bg-color);
}

.hebergements-card {
    display:grid; 
    grid-template-columns: repeat(3,1fr);
    gap: 15px;
}

.hebergements a {
    margin-top: 30px;

}

.hebergements .card{
    height: auto;
    box-shadow: 0px 3px 15px 0px #0000001A;
    gap: 4px;
}

.hebergements-card .card-content {
    padding-right: 15px;
    padding-left: 15px;
    gap: 8px;
}

.hebergements-card img{
    width: 100%;
    height: 124px;
    border-top-right-radius: 20px;
    border-top-left-radius: 20px;
    border: 5px;
}

.afficher {
    margin-top: 30px;
}

/****** Populaires ***********/
.populaires {
    width: 29.8%;
    height: 614px;
    background-color: var(--main-bg-color);
}

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

.populaires-title i {
    color: #0065FC;
 }

.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 *********/

.Activités {
    width: 100%;
    padding: 30px;
}

.Activités-tittle {
    margin-bottom: 30px;
}

.Activités-grid {
    display: flex;
    flex-direction: row;
    gap: 30px;
}

.Activités a {
    width: 21%;
}

.Activités-card {
    display: flex;
    flex-direction: column;
    width: 100%;
    border-bottom-left-radius: 20px;
    border-bottom-right-radius: 20px;
    box-shadow: 0px 3px 15px 0px #0000001a;
    border-top-left-radius: 20px;
    border-top-right-radius: 20px;
    height: 439px;
}

.Activités-card img { 
    height: 380px;
    width: 100%;
    object-fit: cover;
    border-top-left-radius: 20px;
    border-top-right-radius: 20px;
}

.activite-txt {
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 59px;
}

.Activités-card p {
    font-size: 16px;
    font-weight: 700;
    line-height: 19px;
    padding-left: 10px;
}

/********* Footer *********/

footer {
    display: flex;
    flex-direction: row;
    width: 100%;
    background-color: #F2F2F2;
    justify-content: space-evenly;
}

.footer-card {
    padding: 20px;
    text-align: left;
    width: 446.67px;
}

h4 {
    font-weight: 700;
    font-size: 18px;
    line-height: 21.13px;
    padding-left: 10px;
    padding-bottom: 5px;
}

.footer-card p {
    font-weight: 400;
    font-size: 16px;
    line-height: 18.78px;
    padding: 10px;
}

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

/****** Media queries ***********/
/* Medium devices (tablets, less/equal than 1024px) */
@media (max-width: 1024px) {

    header {
        width: 100%;
    }

    .form-recherche {
        width: 100%;
        padding-left: 50px;
        padding-right: 50px;
    }

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

    .hebergements {
        width: 100%;
        padding : 30px; 
        gap:30px;
    }

    .populaires {
        width: 100%;
        margin-top: 50px;
        height: auto;
    }

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

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

    .populaires-cards .card {
        margin-top: 20px;
    }

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

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

    .Activités {
        width: 100%;
    }

    .Activités-grid a {
        width: 21.3%;
    }

    .Activités-card {
        width: 100%;
        height: 100%;
    }

    .Activités-card img {
        max-height: 200px;
    }
    
    footer {
        width: 100%;
    }

}

/* Small devices (phones, less than 768px) */
@media (max-width: 767.98px) {


    header {
        width: 100%;
        flex-direction: column;
        margin-bottom: 50px;
        height: auto;
    }
    
    .position-logo{
        display: flex;
        width: 100%;
        justify-content: center;
    }

    .Logo-booki {
        width: 61.09px;
        height: 19px;
        padding: 30px;
    }

    .menu {
        width: 100%;
        padding: 0%;
    }
    
    nav div{
        display: flex;
        justify-content:space-evenly
  
    }
    nav div a{
        padding-bottom: 13.5px;
        border-bottom: 2px solid #f2f2f2;
        margin: 0px;
        width: 100%;
        text-align: center;
    }

    .activite-button {
        justify-content: center;
    }

    nav div a:hover{
        border-bottom: 2px solid;
        border-top: 0px;
        padding-bottom: 11.5px;
        color: #0065FC;
    }

    .form-recherche{
        width: 90%;
        padding: 5%;
        max-width: 400px;
    }
    
    .search {
        justify-content: center;
        width: 100%;
        margin-top: 20px;
    }

    .icone-location {
        width: 13%;
    }

    .searchbar {
        width: 74%;
    }

    .button-loupe {
        display: block;
        text-decoration: white;
        border-radius: 15px;
        width: 13%;
        margin-left: -5px;
        box-shadow: 0px 4px 4px 0px #00000040;
    }

    .button-txt {
        display: none;
    }

    .filtre-grid {
        display: grid;
        grid-template-columns: 1fr 1fr;
        grid-template-rows: 2fr;
    }

    .filtre-title-outside {
        display: block;
        font-weight: 700;
     }
    .filtre-title-inside {
        display: none;
    }
    
    .info {
        display: flex;
        flex-direction: row;
        justify-content: center;
        font-size: 16px;
    }

    .info img {
        width: 24px;
        height: 24px;
    }

    .hebergements-and-populaires {
        display: flex;
        flex-direction: column-reverse;
        max-width: 500px;
        margin: auto;
    }

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

    }

    .main-container {
        width: 100%;
        padding: 0;
    }

    .populaires {
        width: 100%;
    }

    .populaires-cards {
        flex-direction: column;
    }

    .populaires-cards a {
        width: 100%;
        margin-top : 10px
    }

    .populaires-cards .card {
        width: 98%;
        margin-top: 0px;
    }

    .hebergements {
        background-color: #FFFFFF;
        height:auto;
        padding: 0;
        width: 100%;
    }

    .hebergements-card{
        display: flex;
        flex-direction: column;
        width: 100%;
    }

    .card {
        max-width: 100%;
    }

    .Activités {
        padding: 5%;
        width: 90%;
        max-width: 500px;
        margin: auto;
    }
    
    .Activités-grid {
        flex-direction: column;
    }

    .Activités-card {
        width: 100%;
    }

    .Activités-card img {
        max-height: 141px
    }

    .Activités a {
        width: 100%;
    }

    footer {
        flex-direction: column;
        justify-content: center;
        width: 90%;
        margin-top: 15px;
        padding: 5%;
        max-width: 500px;
        margin: auto;
    }

    .footer-card {
        width: 100%;
        padding: 0%;
        margin-top: 15px;
    }
}

