/****** 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;
    display: flex;
    flex-direction: column;
    gap: 35px;
}

main{
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 35px;
}

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

.section-title {
    margin: 0;
    font-size: 22px;
}

.subtitle{
    font-size: 18px;
    margin: 0;
    font-weight: 700;
}

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

.shadow-card{
    box-shadow: 0px 3px 15px 0px rgba(0, 0, 0, 0.10);
}

/****** Header *******/

header{
    display: flex;
    justify-content: space-between;
    height: 79px;
}

.logo-container{
    padding: 30px 0;
}

.logo-container img{
    width: 61px;
    height: 19px;
}

.nav-menu{
    display: flex;
    justify-content: space-between;
    gap: 68px;
    margin: 0;
}

nav ul{
    padding: 0;
}

.nav-menu li{
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: center;
    border-top: 2px solid transparent;
    font-size: 16px;
    padding-top: 16px;
}

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

/****** Info group *******/

.info-group{
    display: flex;
    flex-direction: column;
    gap: 35px;

}

.headline{
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.headline h1{
    margin: 0;
}

.headline p{
    margin:  0;
}

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

.information-container{
    display: flex;
    align-items: center;
    gap: 10px;
}

/****** Research Bar *******/

.research-container{
    display: flex;
    align-items: center;
    
}

.fa-location-dot{
    background-color: #F2F2F2;
    color: black;
    width: 50px;
    min-width: 50px;
    height: 49px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 15px 0 0 15px;
    box-sizing: border-box;
}

#research-input{
    height: 49px;
    border-top: 1px solid #F2F2F2;
    border-bottom: 1px solid #F2F2F2;
    border-left: none;
    border-right: none;
    box-sizing: border-box;
    padding: 0 24px 0 24px;
    font-size: 18px;
    font-weight: 700;
}

#research-input:hover{
    cursor: pointer;
}

#research-input::placeholder{
    color: black;
    font-weight: 700;
}

#research-submit{
    height: 49px;
    padding: 15px;
    color: white;
    background-color: #0065FC;
    border: none;
    border-radius: 0px 15px 15px 0px;
    text-align: center;
    font-size: 18px;
    font-weight: 700;
    box-sizing: border-box;
    cursor: pointer;
}

#research-submit-mini{
    display: none;
}

/****** Filters *******/
.superior-filter-container{
    display: flex;
    align-items: center;
    gap: 15px;
}

.filter-container{
    width: 100%;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
    padding: 0;
}

.filter-button{
    display: flex;
    gap: 10px;
    align-items: center;
    justify-content: center;
    height: 50px;
    border-radius: 25px;
    padding: 4px 19px;
    font-size: 17px;
    font-weight: 700;
    color: black;
    border: 2px solid #D9D9D9;
    background-color: white;
    box-sizing: border-box;
}

.filter-button:hover{
    background-color: #DEEBFF;
    cursor: pointer;
}

.bluecolor{
    color: #0065fc;
}

.whitecolor{
    color: #ffffff;
}

/****** 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%;
    height: auto;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.herbergements-cards{
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
}

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


.herbergements-cards a{
    flex : 1 1 0;
    min-width: 250px;
}

.herbergements-cards .card-title{
    margin : 4px 0 8px 0;
}

.herbergements-cards .card-subtitle{
    margin: 0;
}

.herbergements-cards .card-content{
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 0 15px 15px 15px;
}

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

/****** Activity ***********/

.activity{
    padding: 30px;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.activity-frame{
    display: flex;
    gap: 30px;
    max-width: 100%;
}

.activity-frame a{
    flex : 1 1 0;
}

.activity-card{
    display: flex;
    flex-direction: column;
    height: 439px;
    border-radius: 20px;
}

.activity-card img{
    height: 380px;
    max-height: 380px;
    width: 100%;
    object-fit: cover;
    border-radius: 20px 20px 0 0;
}

.activity-card h3{
    padding: 20px 20px;
    margin: 0;
}

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

footer{
    display: flex;
    background-color: #F2F2F2;
}

.footer-container{
    display: flex;
    flex-direction: column;
    padding: 20px;
    gap: 15px;
    flex: 1 1 0; /* Modifier suite conseil de Pascal pour améliorer le Responsive */
}

.footer-container a{
    font-size: 16px;
}


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

/****** Media queries ***********/

/* Medium devices (tablets, less/equal than 1024px) */
@media (max-width: 1024px) {
    .superior-filter-container{
        flex-direction: column;
        justify-content: flex-start;
        align-items: start;
    }

    .filter-button{
        font-size: 16px;
    }

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

    .activity-card{
        height: 270px;
    }

    .activity-card img{
        height: 200px;
        max-height: 200px;
    }
    
}

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

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

    nav{
        width: 100%;
    }

    .nav-menu{
        justify-content: flex-start;
        width: 100%;
        gap: 0;
    }

    .nav-menu li{
        padding :   0 0 16px 0;
        width: 100%;
        flex: 1 0 0;
        border-bottom: 2px solid #F2F2F2;  
    }

    .nav-menu li:hover{
        color: #0065FC ;
        border-top: 2px solid transparent;
        border-bottom: 2px solid #0065FC;
    }

    .info-group{
        padding: 0 20px;
    }

    #research-input{
        min-width: 180px;
        flex: 1;
        padding-right: 6px;
    }

    .research-container{
        justify-content: stretch;
        width: 100%;
    }

    .superior-filter-container{
        flex-direction: column;
        justify-content: flex-start;
    }

    .filter-container{
        gap: 10px;
    }

    .filter-button{ 
        flex: 1 1 0;
        min-width: 48%;
    }

    .filter-button span{
        font-size: 14px;
    }

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

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

    #hebergements{
        background-color: #ffffff;
    }

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

    .populaires-cards{
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }

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


    .activity-frame{
        flex-direction: column;
    }

    footer{
        flex-direction: column;
        gap: 50px;
        padding: 30px;
    }

    #research-submit{
        width: 49px;
        border-radius: 15px;
    }

    #research-submit-mini{
        display: inline;
        height: 49px;
        color: white;
        background-color: #0065FC;
        border: none;
        border-radius: 15px;
    }

     .research-text{
        display: none;
    }
}
