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

:root {
    --main-color: #0065FC;
    --main-bg-color: #F2F2F2;
    --filter-bg-color: #DEEBFF;
    --bg-card-filtre-font: white;
    --border-filtre-boxshadow-cardAM-bg-footer: #D9D9D9;
}

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

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

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

.card {
    background-color: var(--bg-card-filtre-font);
    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***********************************************************************************************************/
.header{
    display: flex;
    justify-content: space-between;
    height: 120px;
}

.div-logo{
    display: flex;
    align-items: center;
    margin: 0;
}

.logo{
    height: 28px;
    width: 80px;
}

.navigation{
    width: 270px;
    display: flex;
    justify-content: space-between;
    align-content: center;
}

.nav{
    height: 100%;
    text-align: center;
    line-height: 50px;
}

.active{
    box-shadow: inset 0px 3px 0px -1px var(--main-color);    
    color: var(--main-color);
}

.nav:hover{
    box-shadow: inset 0px 3px 0px -1px var(--main-color);    
    color: var(--main-color);
}

/******************************************************************************HEADER MAIN********************************************************************************************************/
.titre-header-main{
    margin-bottom: 5px;
    margin-top: 0px;
}

.sous-titre-header-main{
    margin-top: 4px;
    margin-bottom: 0px;
}

.barre-de-recherche{
    display: flex;
    justify-content: flex-start;
    align-items: center;
    height: 45px;
    margin-bottom: 30px;
    margin-top: 35px;
  
}

.icon-localisation{
    width: 40px;
    height: 42px;
    border-top-left-radius: 15px ;
    border-bottom-left-radius: 15px;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: var(--main-bg-color);
    border: var(--main-bg-color) solid 1px;
    
}

.fa-location-dot{
    color: black;
}

.input-recherche{
    height: 45px;
    width: 160px;
    padding: 20px;
    box-sizing: border-box;
    border-left: none;
    border-right: none;
    border-top: var(--main-bg-color) solid 1px;
    border-bottom:var(--main-bg-color) solid 1px;
}

.input-recherche::placeholder{
    font-size: 15px;
    font-weight: 700;
    color: black;
}

.bouton-rechercher{
    height: 44px;
    width: 130px;
    background-color:var(--main-color);
    border: var(--main-color) solid 1px;
    border-top-right-radius: 15px;
    border-bottom-right-radius: 15px;
}

.bouton-rechercher:hover{
    cursor: pointer;
}

.bouton-wording{
    font-family: 'Raleway', sans-serif;
    font-weight: bolder;
    font-size: 15px;
    color: var(--bg-card-filtre-font);
}

.bouton-rechercher-logo{
    display: none;
}


.filtres{
    width: 100%;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap:16px;
}

.titre-filtre{
    display: flex;
    align-items: center;
    font-weight: bolder;
}

.div-bouton-filtre{
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 16px;
    box-sizing: border-box;
}

.bouton-filtre{
    display: flex;
    flex-direction: row;
    align-items: center;
    border: var(--border-filtre-boxshadow-cardAM-bg-footer) solid 2px;
    border-radius: 30px;
    padding: 4px 19px 4px 19px;
    width: fit-content;
    height: 50px;
    box-sizing: border-box;
    background-color: var(--bg-card-filtre-font);
    gap: 10px;
    font-weight: bold;
}

.logo-filtre{
   font-size: large;
}

.bouton-filtre:hover{
    background-color: var(--filter-bg-color);
    cursor: pointer;
}

.div-info{
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    align-items: center;
    margin-top: 20px;
    margin-bottom: 20px;
}

.fa-info{
    font-size: smaller;
}

.border-radius-logo-info{
    display: flex;
    justify-content: center;
    align-items: center;
    height: 20px;
    width: 20px;
    border: 2px solid var(--main-bg-color);
    border-radius: 60%;
    margin-right: 1%;
}
/******************************************************************HEBERGEMENTSANDPOPULAIRES******************************************************************************************************/
/****** 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%;
    display: flex;
    flex-direction: column;
}

.liste-card-hebergement{
    width: 100%;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-between;
    margin-top: 30px;
    
}

.card-hebergement{
    width: 31%;
    height: 205px;
    margin-bottom: 20px;
    background-color: var(--bg-card-filtre-font);
    border-radius: 20px;
    padding: 5px;
    box-sizing: border-box;
    filter: drop-shadow(0px 3px 15px rgba(0, 0, 0, 0.1));

}

.img-card-hebergement{
    width: 100%;
    height: 110px;
    border-top-left-radius: 20px;
    border-top-right-radius: 20px;
    object-fit: cover;
}

.card-titre{
    margin-left: 5px;
}

.titre-card-hebergement{
    margin-top: 7px;
    margin-bottom: 7px;
    font-size: 15px;
    font-weight: bolder;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.texte-card-hebergement{
   margin-top: 8px;
   margin-bottom: 3px;
}

.bouton-hebergement{
    border: none;

}

.text-bouton-hebergement{
    margin: 0%;
    padding-top: 10px;
    box-sizing: border-box;
    display: flex;
    font-weight: bolder;
    font-size: 18px;
}

/****** Populaires ***********/
.populaires {
    width: 32%;
    height: 100%;
}

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

.populaires-cards .card {
    display: flex;
    margin-top: 30px;
}

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

/*****************************************************************Activié à Marseille*************************************************************************************************************/
.activites-marseille{
    display: flex;
    flex-direction: column;
    width: 100%;
    padding: 30px;
    padding-top: 0;
    padding-bottom: 0;
    box-sizing: border-box;
    margin-top: 60px;
}

.liste-activites-marseille{
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    width: 100%;
    margin-bottom: 30px;
    margin-top: 30px;
}

.card-activites-marseille{
    display: block;
    width: 23%;
    height: 439px;
    display: flex;
    flex-direction: column;
    border-radius: 20px;
    box-shadow: 0px 1px 25px var(--border-filtre-boxshadow-cardAM-bg-footer);    
}

.image-activites-marseille{
    width: 100%;
    height: 85%;
    border-top-left-radius: 20px;
    border-top-right-radius: 20px;
    object-fit: cover;
    overflow: hidden;
}

.titre-activites-marseille{
    width: 90%;
    height: 15%;
    display: flex;
    margin: 0%;
    padding-left: 15px;
    box-sizing: border-box;
    align-items: center;
    font-size: 16px;
    font-weight: bold;
}

/**********************************************************************FOOTER*********************************************************************************************************************/
.footer{
    width: 100%;
    height: 150px;
    padding-left: 20px;
    padding-right: 20px;
    box-sizing: border-box;
    background-color: var(--border-filtre-boxshadow-cardAM-bg-footer);
    display: flex;
    flex-direction: row;
}

.div-footer{
    width: 33%;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.titre-div-footer{
    gap: 5px;
}

.lien-footer{
    margin-bottom: 12px;
    
}

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

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

    .titre-filtre{
        margin: 0;
    }

    .div-bouton-filtre{
        padding-top: 0;
    }
    
    .hebergements-and-populaires {
        flex-direction: column;
    }

    .hebergements {
        width: 100%;
    }

    .img-card-hebergement{
        min-height: 110px;
    }

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

    .card-activites-marseille{
        width: 22%;
        max-height: 255px;
        display: flex;
        flex-direction: column;
        display: block;
        border-radius: 20px;
        overflow: hidden;
    }

    .image-activites-marseille{
        height: 200px;
    }

    .titre-activites-marseille{
        width: 95%;
        flex-wrap: wrap;
        justify-content: flex-start;
        font-size: 15px;
    }
}

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

    .section-title{
        font-size: 1.25em;
        margin-left: 15px;
    }

    .header{
        flex-direction: column;
        width: 100%;
        height: 150px;
    }

    .div-logo{
        justify-content: center;
        width: 100%;
        height: 70%;
    }

    .logo{
        width: 90px;
    }

    .navigation{
        width: 100%;
    }

    .nav{
        padding-left: 16px;
        box-sizing: border-box;
        box-shadow: inset 0px -3px 0px -1px var(--main-bg-color);    
        width: 50%;
        height: 100%;
        text-align: center;
        font-size: 20.8px;
    }

    .active{
        box-shadow: inset 0px -3px 0px -1px var(--main-color);    
        color: var(--main-color);
    }

    .nav:hover{
        box-shadow: inset 0px -3px 0px -1px var(--main-color);    
        color: var(--main-color);
    }

    .header-main{
        padding: 10px 20px 0px 20px;
        box-sizing: border-box;
        width: 100%;
    }

    .titre-header-main{
        font-size: 24px;
    }

    .barre-de-recherche{
       width: 100%;
       margin-bottom: 30px;
    }

    .icon-localisation{
        width: 90px;
    }

    .input-recherche{
        width: 100%;
    }

    .input-recherche::placeholder{
        font-size: 14px;
    }

    .bouton-rechercher .bouton-wording{
        display: none;
    }

    .bouton-rechercher .bouton-rechercher-logo{
        display: block;
        color: var(--bg-card-filtre-font);
        font-size: larger;
        font-weight: bolder;
    }

    .bouton-rechercher{
        height: 45px;
        width: 65px;
        border-radius: 15px;
        box-shadow: 0px 4px 4px #00000040;
        position: relative;
        right: 20px;
    }

    .filtres{
        width: 100%;
        gap: 20px;
    }

    .titre-filtre{
        font-weight: bold;
        font-size: larger;
    }

    .div-bouton-filtre{
        width: 100%;
        display: flex;
        flex-wrap: wrap;
    }

    .bouton-filtre{
        width: 45%;
        height: 50px;
        padding: 15px;
        font-size: 14px;
        justify-content: flex-start;
    }

    .ellipsis-texte-bouton-recherche{
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .logo-filtre{
        font-size: 14.7px;
        width: fit-content;
   
    }

    .div-info{
        gap: 5px;
    }

    .border-radius-logo-info{
        border-radius: 120px;
        width: 25px;
    }

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

    .populaires{
        margin-top: 0px;
    }

    .populaires-title{
        margin-right: 15px;
    }

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

    .populaires-cards {
        flex-direction: column;
        align-items: center;
        justify-self: flex-start;
    }

    .lien-populaire{
        margin-top: 0;
    }

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

    .hebergements-and-populaires > .hebergements {
        background-color: var(--bg-card-filtre-font);
        padding: 30px 20px 30px 20px;
    }

    .hebergements-and-populaires > .populaires {
        border-radius: initial;
        padding: 30px 20px 30px 20px;
    }

    .liste-card-hebergement{
        flex-direction: column;
        align-items: center;
        margin-top: 20px;
    }

    .card-hebergement{
        width: 90%;
        margin-bottom: 15px;
    }

    .text-bouton-hebergement{
        margin-left: 15px;
    }

    .activites-marseille{
        padding: 30px;
        margin-top: 55px;
        box-sizing: border-box;
    }
   
    .liste-activites-marseille{
        flex-direction: column;
        align-items: center;
        height: max-content;
    }

    .card-activites-marseille{
        width: 95%;
        height: 200px;
        margin-bottom: 20px;
    }

    
    .image-activites-marseille{
        height: 150px;
    }

    .footer{
        flex-direction: column;
        padding: 30px;
        box-sizing: border-box;
        width: 100%;
        height: fit-content;
    }

    .div-footer{
        width: 100%;
        align-items: flex-start;
        margin-bottom: 30px;
    }

    .lien-footer{
        text-align: justify;  
    }

}

