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

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

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

h1 
{
    font-size: 22px;
}

body 
{
    margin: 0 auto;
}


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

header
{
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
}

header img
{
    width: auto;
    height: 20px;
}

.nav-header nav a
{
    padding: 0 10px;
    font-size: 16px;
}

.nav-header nav a:hover
{
    border-top: 2px var(--main-color) solid;
    padding: 20px 10px 0px 10px;
    color: var(--main-color);
}


/****** Fin Header ***********/


/****** Main section Recherche ***********/

#recherche 
{
    padding: 20px 20px 20px 0;
    width: 100%;
}

.filtre-ville {
    display: flex;
    align-items: center;
    background-color: white;
    border-radius: 20px;
    cursor: pointer;
    font-weight: 600;
    font-size: 18px;
    margin: 30px 0;
    width: fit-content;
}

.filtre-ville .fa-solid.fa-location-dot {
    background-color: #eee6e6;
    padding: 20px 15px;
    border: none;
    border-radius: 20px 0 0 20px;
    color: black;
    cursor: default;
}

.search-button {
    background-color: var(--main-color);
    color: #fff; 
    padding: 20px 15px; 
    border: none;
    border-radius: 0 20px 20px 0;
    cursor: pointer;
    font-weight: 600;
}

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

.form-search 
{
    width: fit-content;
    text-align: center;
    padding: 20px 0;
    border-top: 1px solid var(--main-bg-color);
    border-bottom: 1px solid var(--main-bg-color);
}

#text-form
{
    border: none;
    display: inline-block;
    font-size: 18px; 
    font-weight: 600;
    text-align: center;
}

.filtre-secondaire
{
    font-weight: 600;
    font-size: 18px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
}

.filtre-secondaire h3 
{
    margin-right: 10px;
}

.button-filtre-secondaire
{
    border-radius: 50px;
    background-color: white;
    border: 1px solid rgb(184, 174, 174);
    padding: 15px 15px;
    font-weight: 600;
    font-size: 17px;
    margin: 0 5px;
    text-align: left;
}


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

.info 
{
    display: flex;
    align-items: center;
}

.info-bubble 
{
    padding: 2px 8px;
    border: 1px solid rgb(184, 174, 174);
    border-radius: 50%;
    font-size: 10px;
    margin-right: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--main-color);
    font-weight: 800;
}

.info p 
{

    margin: 0;
}

#recherche p 
{
    font-size: 16px;
}


/****** Fin section Recherche ***********/


/****** Main section Hébergement ***********/


.content-hebergement {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}

.content-hebergement a{
    width: calc(33.33% - 20px);
}

.article-hebergement {
    background-color: white;
    border: none;
    border-radius: 20px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
    padding: 5px;
    margin-top: 33px;
}

.article-hebergement h3, .article-hebergement p   
{
    margin: 10px 0 5px 0;
}

.article-hebergement h3, .article-hebergement p, .article-hebergement .card-rating
{
    padding: 0 10px;
}


.article-hebergement img {
    width: 100%; 
    height: 100px;
    object-fit: cover; 
    border: none;
    border-radius: 20px 20px 0 0; 
}

.cta-button {
    margin-top: 33px;
    border: none;
    background-color: var(--main-bg-color);
    font-weight: 600;
    font-size: 18px;
    cursor: pointer;
}

.cta 
{
    text-align: left;
}

.font-weight
{
    font-weight: 600;
}

/****** Fin section Hébergement ***********/




/****** Début section activité ***********/

.activites-content
{
    display: flex;
    justify-content: center;
    gap: 20px;
}

.activites-content a
{
    width: 25%;
}

.activites-content article img 
{
    width: 100%;
    height: 400px;
    border-radius: 20px 20px 0 0; 
    object-fit: cover; 
}

#activites h2 
{
    margin: 50px 0 40px 0;
}

#activites
{
    margin-bottom: 20px;
    padding-left: 17px;
}

.activites-content article h3 
{
    padding: 0 10px 20px 10px;
}

.activites-content article 
{
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
    border-radius: 20px;
}


/****** Fin section activités ***********/


/****** Début footer  ***********/

footer
{
    display: flex;
    justify-content: flex-start;
    width: 100%;
    max-width: 1440px;
    padding: 0 20px;
    box-sizing: border-box;
    gap: 20%;
    margin: auto;
    background-color: var(--main-bg-color);
}

footer h4
{
    font-size: 18px;
}

.nav-footer
{
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 10px;
    margin-bottom: 10px;
}


/****** Fin footer  ***********/

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

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%;
    box-sizing: border-box;
}

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




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

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

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

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

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

    #hebergements {
        width: 100%;
    }

    #activites
    {
        margin-bottom: unset;
    }

    #activites article img
    {
        height: 175px;
    }

    .activites-content article h3 
    {
        padding-left: 10px;
        padding-bottom: 20px;
        min-height: 60px;
        display: flex;
        align-items: center;
    }

    .filtre-secondaire
    {
        flex-direction: column;
        align-items: flex-start;
    }

    .cta-button 
    {
        background-color: transparent;
    }
}

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

    body 
    {
        margin: 0;
    }

    .main-container 
    {
        padding: 0 0;
    }

    header
    {
        flex-direction: column;
        justify-content: center;
        align-items: center;
        padding: 20px 0;
        width: 100%;
    }

    .nav-header
    {
        width: 100%;   
    }

    .nav-header nav 
    {
        display: flex;
        justify-content: space-around;
    }

    .nav-header nav a
    {
        width: 100%;
        text-align: center;
    }

    .nav-header nav a:hover
    {
        border-bottom: 2px var(--main-color) solid;
        border-top: none;
        padding: 0 0 20px 0;
    }

    header img 
    {
        margin-bottom: 20px;
    }

    .filtre-secondaire-content 
    {
        display: flex;
        flex-wrap: wrap;
        justify-content: space-between;
    }
    
    .button-filtre-secondaire 
    {
        flex-basis: calc(50% - 10px);
        margin: 0 5px;
        margin-bottom: 20px;
        white-space: nowrap;
    }

    .filtre-secondaire-content .fa-solid 
    {
        padding-right: 5px;
    }

    #recherche 
    {
        padding: 20px;
        width: 100%;
    }


    .search-button
    {
        display: none;
    }

    .filtre-ville
    {
        width: 100%;
    }

    .form-search 
    {
        width: 100%;
    }

    #text-form 
    {
        text-align: center;
        width: 100%;
    }


    .search-button-mobile 
    {
        display: inline-block;
        background-color: var(--main-color);
        color: #fff; 
        border: none;
        border-radius: 20px;
        padding: 20px 18px;
        cursor: pointer;
        text-align: center;
        box-shadow: 0 4px 4px rgba(0, 0, 0, 0.3);
    }
    
    .fa-solid.fa-magnifying-glass 
    {
        color: white;
    }

    #hebergements 
    {
        order: 2;
        padding-left: 30px;
    }

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

    .filtre-secondaire-content {
        flex-wrap: wrap;
    }
    
    .button-filtre-secondaire {
        flex: 1 0 25%;
        min-width: 150px;
    }

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

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

    #hebergements
    {
        background-color: white;
    }

    .content-hebergement 
    {
        display: flex;
        flex-direction: column;
        flex-wrap: wrap;
        justify-content: space-between;
    }

    .article-hebergement 
    {
        width: 100%;
    }

    .article-hebergement img 
    {
        width: 100%;

    }

    .cta-button 
    {
        background-color: transparent;
    }

    .activites-content
    {
        flex-direction: column;
    }

    #activites 
    {
        padding: 30px;
        margin-bottom: unset;
    }

    .activites-content a
    {
        width: 100%;
    }

    .content-hebergement a {
        width: 100%;
    }

    .activites-content article img 
    {
        width: 100%;
        height: 200px;
        border-radius: 20px 20px 0 0; 
    }

    footer
    {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
    }
    
}