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


}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

: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-bottom: 0px;
}

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

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

header {

    h1,
    h2 {
        margin: 30px 20px;
    }

    img {
        margin-top: 20px;
        width: 50%;
        transition: all ease 0.5s;

        &:hover {
            transform: rotate(360deg);
        }
    }
}

header form {
    border-radius: 0%;
    margin: 20px;
}

header nav {
    display: flex;
    justify-content: space-between;
    margin: 20px;
}

header nav ul {
    list-style: none;
    align-items: end;
    display: flex;

    li {
        padding: 15px;
        transition: all ease 0.5s;

        &:hover {
            border-top: 1px solid;
            color: #0065FC;
            cursor: pointer;
            font-size: larger;
        }
    }
}

.search-form {
    display: flex;
    background-color: #f1f1f1;
    border-radius: 5px;
    width: fit-content;
}

.search-form input[type="text"] {
    width: 219px;
    padding: 8px 10px;
    border: 1px solid;
    border-color: #f1f1f1;
}

.search-form button {
    background-color: transparent;
    border: none;
    cursor: pointer;
    padding: 15px;
}

.search-form button i {
    color: #666;
}

.search-button::before {
    content: "Rechercher";
}

.search-form .search-button {

    background-color: #0065FC;
    color: white;
    border-radius: 0px 5px 5px 0px;
}

.filtres {
    display: flex;

    h3 {
        margin-left: 10px;
    }

    ul {
        list-style: none;
        display: flex;
    }

    li {
        margin-left: 10px;
        margin-right: 10px;

        i {
            margin-right: 5px;
        }

        button {
            border: 1px solid rgba(0, 0, 0, 0.1);
            background-color: white;
            padding: 10px;
            border-radius: 50px;
            transition: all ease 0.5s;

            &:hover {
                cursor: crosshair;
                background-color: #f1f1f1;
                padding: 15px;
            }
        }
    }
}

h4 {

    i {
        padding: 7px;
        margin: 10px;
        border: 3px solid #f1f1f1;
        border-radius: 100%;

        &:hover {
            background-color: #f1f1f1;
        }
    }
}

.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));
    Height: hug(207.25px);
    border-radius: 20px;

    &:hover {
        background-color: #f1f1f1;
    }
}

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

.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;
    display: flex;
    flex-wrap: wrap;
}

/****** Hebergements ***********/
.hebergements {
    width: 64%;
    height: 614px;

    .lesHebergements {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        width: 100%;
        gap: 30px;
    }

    a {
        strong {
            transition: all ease 0.5s;

            &:hover {
                font-size: larger;
            }

        }
    }
}

/****** Populaires ***********/
.populaires {
    width: 33%;
}

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

.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;
    border-bottom-right-radius: 0px;
    border-top-right-radius: 0px;
}

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

.activites {
    h2 {
        margin: 20px;
    }

    .lesActivites {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        gap: 30px;

        .prout {
            border: 0px solid rgb(207, 207, 207);
            border-radius: 20px;
            box-shadow: 2px 2px 2px 2px #f1f1f1;

            &:hover {
                background-color: #f1f1f1;
                cursor: pointer;
            }
        }
    }



    h3 {
        margin: 20px;
    }

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

footer {
    margin-top: 30px;
    margin-bottom: 0px;
    display: flex;
    justify-content: space-around;
    background-color: #f1f1f1;

    li {
        list-style: none;

        &:hover {
            cursor: pointer;
            color: blue;
        }
    }
}



/* 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;
        width: 100%;

        card {
            display: grid;
        }

    }

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

    .lesActivites img {
        height: 200px;
    }
}

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

    body {
        overflow-x: hidden;
    }

    .main-container {
        margin-left: 0px;
    }

    header {

        nav {
            display: flex;
            flex-direction: column;
            padding: 0px;
            align-items: flex-end;

            img {
                align-self: center;
                text-align: center;
                width: 30%;
                margin: auto;
                display: flex;
            }

            ul {
                display: flex;
                flex-direction: row;
                margin-top: 20px;
                justify-content: space-around;
                align-items: center;

                li {
                    margin: 0px;
                    padding: 10px;
                }
            }
        }

        h1 {
            font-size: large;
        }

        h2 {
            font-size: medium;
        }

        .search-form {
            #search {
                width: 50vw;
            }


            .search-button::before {
                content: "\f002";
            }

        }
    }

    .filtres {
        display: flex;
        flex-direction: column;

        ul {
            display: grid;
            grid-template-columns: repeat(2, 1fr);
            gap: 5vw;
        }

    }

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

    .populaires {
        margin: 20px;
    }

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

        .card {
            width: 60vw;
            display: flex;
            margin-top: 33px;
        }

        img {
            width: 33%;
            height: 136px;
            border-top-left-radius: 20px;
            border-bottom-left-radius: 20px;
            border-bottom-right-radius: 0px;
            border-top-right-radius: 0px;
        }
    }

    .hebergements-and-populaires .hebergements {
        background-color: white;
        height: auto;

        h2 {
            text-align: center;
        }

        .lesHebergements {
            display: flex;
            flex-direction: column;
            justify-content: space-between;

            .card {
                width: 60vw;
                display: flex;
                margin-top: 13px;
                margin-bottom: 33px;
            }

            img {
                margin-right: 10px;
                width: 33%;
                height: 136px;
                border-top-left-radius: 20px;
                border-bottom-left-radius: 20px;
                border-bottom-right-radius: 0px;
                border-top-right-radius: 0px;
            }
        }
    }

    .activites .lesActivites {
        display: grid;
        grid-template-columns: repeat(1, 1fr);
    }

    footer {
        display: flex;
        flex-direction: column;
    }

}