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

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

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

.neutral-star {
    color: #F2F2F2;
}

a {
    text-decoration: none;
    color: #000;
}

h1 {
    font-size: 22px;
}

.h1-subtitle {
    margin-bottom: 30px;
}

body {
    margin-top: 0px;
    margin-bottom: 0px;
}

/****** Header / Nav ***********/

header {
    display: flex;
    justify-content: space-between;
    height: 60px;
    width: 100%;
    max-width: 1440px;
    padding: 0 50px;
    box-sizing: border-box;
    margin: 0px auto 20px auto;
}

#logo {
    display: flex;
    align-items: center;
}


#logo img {
    width: 61px;
    height: 19px;
}

.menu {
    display: flex; 
    margin-top: 0px; 
}

.menu li {
    padding-top: 16px;
}

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

.nav-links {
    margin: 0 0 0 20px;
    padding-top: 10px;
    list-style-type: none;
}
.main-container {
    width: 100%;
    max-width: 1440px;
    padding: 0 50px;
    box-sizing: border-box;
    margin: 0 auto 0 auto;
}

/****** Search bar ***********/

.search-bar {
    border: solid 1px #F2F2F2;
    display: flex;
    justify-content: space-between;
    width: 377px;
    height: 49px;
    border-radius: 15px; 
    margin-bottom: 20px;   
}

.search-bar i {
    width: 50px;
    background-color: #F2F2F2;
    color: black;
    border-radius: 15px 0 0 15px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.search-form {
    display: flex;
    justify-content: space-between;
}

.search-town {
    display: flex;
    justify-content: center;
    align-items: center;
}

.search-submit {
    padding: 10px;
    background-color: #0065FC;
    border-radius: 0 15px 15px 0;
    display: flex;
    justify-content: center;
    align-items: center;
}

.search-submit i {
    display: none;
}

input[type="text"]{
    border: 0;
    font-weight: bold;
    font-size: 18px;
    text-align: center;
}

input[type="submit"] {
    margin: 0;
    padding: 0;
    line-height: 100%;
    border: 0;
    background: #0065FC;
    color: white;
    text-decoration: none;
    font-weight: bold;
    cursor: pointer;
    font-size: 18px;
}

.filters-nav {
    display: flex;
    align-items: center;
    text-align: center;
    font-weight: bold;
}

.facet-list {
    display: flex;
    list-style-type: none;
    padding-left: 0px;
}

.facet-icon {
    margin-right: 10px;
}

.facet-details {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-left: 20px;
    padding: 0 20px 0 20px;
    border: 2px solid #D9D9D9;
    border-radius: 25px;
    height: 40px;
}

.facet-details:hover {
    background-color: #DEEBFF;
}

.accommodation-info {
    display: flex;
    margin-bottom: 30px;
}

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

.neutralStar {
    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: 20px;
    box-sizing: border-box;
    margin-bottom: 20px;
}

/****** Hebergements ***********/

.hebergements {
    width: 65%;
}

.accomodation-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(2, 1fr);
    grid-column-gap: 30px;
    grid-row-gap: 30px;
    margin-top: 33px;
    margin-bottom: 30px;
}

.accomodation-cards .card {
    display: flex;
    flex-direction: column;
}

.accomodation-cards img {
    object-fit: cover;
    width: 100%;
    height: 120px;
    border-top-left-radius: 20px;
    border-top-right-radius: 20px;
}

.accomodation-cards .card-content {
    width: 100%;
    padding-left: 15px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-sizing: border-box;
}

.accomodation-cards .card-title {
    margin-top: 10px;
    margin-bottom: 4px;
}

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

.accomodation-cards .card-rating {
    margin-bottom: 5px;
}

.hebergements a {
    font-weight: bold;
}

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

/****** Activities ***********/

.activities-block {
    padding-top: 30px;
    margin-bottom: 20px;

}

.activities-block section {
    padding: 30px;
    box-sizing: border-box;
}

.activities-cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(1, 1fr);
    grid-column-gap: 30px;
    grid-row-gap: 30px;
    margin-top: 33px;
}

.activities-cards .card {
    width: auto;
}

.activities-cards img {
    width: 100%;
    height: 330px;
    border-top-left-radius: 20px;
    border-top-right-radius: 20px;

}

.activities-cards .card-title {
    margin-top: 10px;
    margin-bottom: 10px;
    padding-left: 15px;
}

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

footer {
    background-color: var(--main-bg-color);
    padding: 30px 30px 20px 30px;
    margin-top: 50px;
    box-sizing: border-box;
    display: flex;
    justify-content: flex-start;
    margin: 50px 50px 0 50px;
}

footer li {
    list-style-type: none;
    padding-bottom: 10px;
    
}

.footer-title {
    font-size: 16px;
    font-weight: bold;
}

.footer-column {
    min-width: 220px;
    margin-right: auto;

}

footer ul {
    padding-left: 0px;
    margin-bottom: 0px;
}
/* Le code ci-dessous correspond à la version responsive uniquement */

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

    .facet-list {
        flex-wrap: wrap;
    }

    .facet-details {
        margin-bottom: 10px;
    }

    .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 .card {
        width: 30%;
    }

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

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

    .activities-cards img {
        height: 200px;
    }
}

/* Small devices (phones, less than 768px) */
@media (max-width: 768px) {
    header {
        flex-direction: column;
        height: auto;
        padding: 0px;
    }

    #logo {
        justify-content: center;
        padding: 30px;
    }

    .nav ul {
        padding-left: 0px;
    }

    .menu li {
        width: 50%;
        text-align: center;
        padding-left: 0px;
        padding-top: 15px;
        padding-bottom: 17px;
        margin-left: 0px;
    }

    .menu li:hover {
        border-top: none;
        border-bottom: solid 2px #0065FC;
        padding-top: 15px;
        padding-bottom: 15px;
    }

    .menu li a:hover {
        color: #0065FC;
    }

    .main-container {
        padding: 0px;
    }

    h1{
        padding: 0 30px;
    }

    .h1-subtitle{
        padding: 0 30px;
    }

    .search-bar {
        justify-content: space-between;
        margin: 0 30px 30px 30px;
        width: auto;
    }

    .search-form {
        width: 100%;
    }
    .search-submit {
        padding: 0;
        background-color: #0065FC;
        border-radius: 15px;
    }
    .search-submit i {
        display: flex;
        background-color: #0065FC;
        color: white;
    }

    .search-submit input {
        display: none;
    }

    .filters-nav {
        flex-wrap: wrap;
        padding: 0 30px;
    }

    .facet-details {
        margin-left: 0;
        margin-right: 20px;
    }

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

    .hebergements-and-populaires section {
        background-color: var(--main-bg-color);
        border-radius: 0px;
        padding: 30px ;
        margin-bottom: 0px;
    }
    .populaires {
        margin-top: 0px;
    }

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

    .populaires-cards .card {
        width: auto;
    }

    .populaires-cards img {
        width: 25%;
    }

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

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

    .accommodation-info {
        padding: 0 30px;
    }

    .accomodation-cards {
        grid-template-columns: repeat(1, 1fr);
        grid-template-rows: repeat(6, 1fr);
    }

    .accomodation-cards img {
        height: 150px;
    }

    .card-title {
        font-size: 18px;
    }

    .card-subtitle {
        font-size: 17px;
    }

    .hebergements {
        background-color: white !important;;
    }

    .activities-block {
        padding: 0 30px;
        margin-bottom: 0px;
    }
    .activities-cards {
        display: grid;
        grid-template-columns: repeat(1, 1fr);
        grid-template-rows: repeat(4, 1fr);
    }

    footer {
        flex-direction: column;
        padding-bottom: 0;
        padding-left: 50px;
        margin: 50px 0px 0 0px;
    }

    .footer-column {
        margin-bottom: 20px;
    }
}