/*********** GENERAL ***********/
* {
    font-family: "Raleway", sans-serif;
    list-style: none;
    text-decoration: none;
    scroll-behavior: smooth;
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    vertical-align: baseline;
}

:root {
    --main-color: #0065fc;
    --main-bg-color: #f2f2f2;
    --filter-bg-color: #deebff;
}

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

body {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: auto;
    max-width: 1440px;
    margin: auto;
    padding: 0px 32px;
    box-sizing: border-box;
}

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

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

.card {
    width: auto;
    background-color: white;
    border-radius: 20px;
    padding: 5px;
    filter: drop-shadow(0px 3px 15px rgba(0, 0, 0, 0.1));
    height: 100%;
}

.card img {
    object-fit: cover;
}

.card-title,
.p {
    font-size: 16px;
}

.euro {
    font-weight: 700;
}

.neutral-star {
    color: var(--main-bg-color);
}

/*********** HEADER ***********/
header {
    width: 100%;
    height: 20%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2%;
}

.logo {
    width: 62px;
    padding-top: 8px;
}

nav {
    height: 100%;
    width: 250px;
}

nav ul {
    display: flex;
    height: 100%;
    justify-content: space-between;
    flex-grow: 1;
}

nav ul li {
    padding-top: 16px;
}

nav ul li a {
    font-size: 16px;
}

nav ul li:hover {
    border-top: 2px solid #0065fc;
    color: #0065fc;
}

/*********** TOP CONTAINER ***********/
.top-container {
    display: flex;
    flex-direction: column;
    margin-top: 30px;
}

.top-container h2 {
    margin-bottom: 8px;
}

/*********** SEARCH BAR ***********/
.search-bar {
    display: flex;
    height: 49px;
    margin: 36px 0px;
}

.search-icon {
    display: flex;
    width: 50px;
    height: 49px;
    background-color: #d9d9d9;
    border-radius: 15px 0px 0px 15px;
    align-items: center;
    justify-content: center;
    border-left: 1px solid #d9d9d9;
}

.search-imput {
    cursor: pointer;
    background-color: transparent;
    text-align: center;
    font-weight: bold;
    color: black;
    font-size: 18px;
    border: 1px solid #d9d9d9;
}

.search-imput::placeholder {
    color: black;
}

.search-button {
    width: auto;
    background-color: #0065fc;
    border-style: none;
    border-radius: 0px 15px 15px 0px;
    color: #fff;
    text-align: center;
    font-weight: bold;
    font-size: 18px;
    padding: 1% 1.8%;
    cursor: pointer;
}

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

/*********** FILTRES ***********/
.filter {
    display: flex;
    align-items: center;
    width: auto;
}

.button-filters {
    display: flex;
    align-items: center;
    width: 66%;
    padding-left: 1%;
    gap: 20px;
    flex-grow: 1;
}

.button-filters i {
    color: #0065fc;
}

.button-filter {
    display: flex;
    border-radius: 50px;
    border: 2px solid #d9d9d9;
    background-color: transparent;
    font-size: medium;
    font-weight: bold;
    justify-content: center;
    align-items: center;
    padding: 10px 16px;
    gap: 7px;
}

.button-filter i {
    font-size: 1.4em;
}

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

.search-icon i {
    color: #000000;
}

/*********** INFORMATIONS ***********/

.informations {
    display: flex;
    align-items: center;
    padding: 32px 0;
}

.informations i {
    border-radius: 50%;
    background-color: #fff;
    border: 1.5px solid #d9d9d9;
    width: 25px;
    height: 25px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #0065fc;
    font-size: 10px;
    font-weight: bold;
    margin-right: 10px;
}

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

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

.hebergements-cards {
    margin-top: 5%;
    display: grid;
    grid-template-columns: repeat(3, 30%);
    grid-gap: 5%;
}

.hebergements-cards img {
    width: 100%;
    height: 124px;
    border-top-left-radius: 20px;
    border-top-right-radius: 20px;
}

.hebergements-cards .card-content {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

#text {
    font-weight: bold;
    cursor: pointer;
}

/*********** POPULAIRES ***********/
.populaires {
    width: 32%;
}

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

.populaires-cards .card {
    display: flex;
    margin-top: 33px;
    height: 150px;
}

.populaires-cards img {
    width: 33%;
    height: auto;
    object-fit: cover;
    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;
}

/*********** ACTIVITES ***********/
.activites {
    margin: 5% 2%;
}

.activites a {
    display: flex;
    justify-content: center;
    align-items: center;
}

.container-activites-cards {
    width: auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-gap: 30px;
    margin: 4% 0%;
}

.card-activites {
    width: 100%;
    height: 100%;
    border-radius: 20px;
    box-shadow: 0px 3px 15px 0px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.card-activites img {
    width: 100%;
    height: 90%;
    object-fit: cover;
}

.card-content {
    padding: 7%;
}

/*********** FOOTER ***********/
footer {
    width: 100%;
    background-color: var(--main-bg-color);
    display: grid;
    grid-template-columns: repeat(3, 1fr);
}

.about,
.hebergement,
.assistance {
    display: flex;
    flex-direction: column;
    margin: 20px;
    gap: 15px;
}

.about ul li,
.hebergement ul li,
.assistance ul li {
    margin: 15px 0px;
}

/*********** MEDIA QUERIES ***********/
/* Medium devices (tablets, less/equal than 1024px) */
@media (max-width: 1024px) {

    /*********** HEADER *** 1024px ***********/
    nav {
        width: 27%;
    }

    nav ul li {
        padding: 16px 0px;
    }

    /*********** TOP CONTAINER *** 1024px ***********/
    .search-bar {
        margin: 36px 0px;
    }

    .search-button {
        padding: 1.5%;
    }

    .filter {
        display: flex;
        flex-direction: column;
        gap: 15px;
        justify-content: flex-start;
        align-items: flex-start;
        width: 100%;
    }

    .button-filters {
        width: 100%;
        height: 45px;
        padding: 0%;
        margin: 0%;
    }

    .informations {
        padding: 32px 0;
    }

    /*********** HEBERGEMENT AND POPULAIRES *** 1024px ***********/
    .hebergements-and-populaires {
        flex-direction: column;
    }

    .hebergements {
        width: auto;
        min-height: 630px;
    }

    .hebergements-cards {
        margin-top: 2%;
    }

    .card-content {
        padding: 7%;
    }


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

    /*********** ACTIVITES *** 1024px ***********/

    .container-activites-cards {
        grid-template-columns: repeat(4, 22%);
        margin: 0%;
    }

    .card-activites {
        width: 100%;
        height: 80%;
        vertical-align: middle;
    }

    .card-activites img {
        width: 100%;
        height: 75%;
        object-fit: cover;
    }

    .card-content {
        width: 100%;
        height: 25%;
        vertical-align: middle;
    }

    footer {
        width: 100%;
    }
}

/* Small devices (phones, less than 768px) */
@media (max-width: 768px) {
    body {
        margin: 0%;
        padding: 0%;
    }

    /*********** HEADER *** 728px ***********/
    header {
        width: 100%;
        display: flex;
        align-items: center;
        justify-content: space-evenly;
        flex-direction: column;
        margin-top: 5%;
    }

    nav {
        width: 100%;
        align-self: center;
        height: 50%;
        padding-top: 10px;
    }

    nav ul {
        width: 100%;
        justify-content: space-around;
    }


    nav ul li {
        width: 100%;
        display: flex;
        justify-content: center;
        padding-bottom: 4%;
        border-bottom: 1px solid #d9d9d9;
    }

    nav ul li:hover {
        border-top: none;
        border-bottom: 1px solid #0065fc;
    }

    /*********** TOP CONTAINER *** 728px ***********/
    .top-container {
        padding: 0% 5%;
        margin-top: 0px;
        display: flex;
    }

    .top-container h1 {
        margin-top: 16px;
    }

    /*********** SEARCH BAR *** 728px ***********/
    .search-bar {
        display: flex;
        justify-content: center;
        margin: 36px 0px 0px 0px;
    }

    .search-imput {
        flex: 1;
    }

    .search-imput::placeholder {
        text-align: left;
        padding-left: 10px;
    }

    .search-button {
        display: none;
    }

    .search-button-mobile {
        display: flex;
        align-items: center;
        background-color: #0065fc;
        border-radius: 15px;
        font-size: 16px;
        border: 1px solid var(--Blue, #0065fc);
        box-shadow: 0px 4px 4px 0px rgba(0, 0, 0, 0.25);
        position: relative;
        right: 4%;
        padding: 15px;
    }

    .search-button-mobile i {
        color: #fff;
    }

    /*********** FILTRES *** 728px ***********/
    .filter {
        margin: 25px 0px;
    }

    .button-filters {
        width: 100%;
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        row-gap: 20%;
    }

    .button-filter {
        height: 45px;
        padding: 0%;
        margin: 0%;
    }

    .button-filter i {
        height: 20px;
    }

    .button-filter p {
        padding: 0%;
    }

    .informations {
        margin-top: 25px;
    }

    /*********** HEBERGEMENT AND POPULAIRES *** 728px ***********/
    .hebergements-and-populaires {
        display: flex;
        flex-direction: column-reverse;
        gap: 30px;
    }

    .hebergements-and-populaires section {
        padding: 4%;
    }

    .hebergements-and-populaires .populaires {
        display: block;
        width: 100%;
        border-radius: 15px;
    }

    .hebergements-and-populaires .hebergements {
        width: auto;
        background-color: #fff;
        display: flex;
        flex-direction: column;
        margin-top: 0%;
    }

    .hebergements-cards {
        width: 100%;
        display: block;
        flex-direction: column;
    }

    .hebergements-cards .card {
        display: flex;
        flex-direction: column;
        width: auto;
        margin: 4% 0%;
        max-width: 100%;
    }

    .hebergements-cards img {
        width: 100%;
        height: 124px;
        border-top-left-radius: 20px;
        border-top-right-radius: 20px;
    }

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

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

    .populaires-cards .card {
        width: auto;
        display: flex;
        height: 146px;
    }

    .populaires-cards img {
        width: 33%;
        border-top-left-radius: 20px;
        border-bottom-left-radius: 20px;
    }

    .populaires-cards .card-content {
        width: 67%;
        height: auto;
        padding: 0% 4%;
        display: flex;
        justify-content: space-between;
    }

    #text {
        padding-top: 2%;
    }

    /*********** ACTIVITES *** 728px ***********/
    .activites {
        margin: 60px 0px;
        padding: 0% 4%;
    }

    .activites-title {
        margin: 20px 0px;
    }

    .container-activites-cards {
        width: auto;
        display: flex;
        flex-direction: column;
        gap: 2vh;
    }

    .card-activites {
        height: 30vh;
        vertical-align: middle;
    }

    .card-activites .card-content {
        display: flex;
        align-items: center;
    }

    /*********** FOOTER *** 728px ***********/
    footer {
        display: flex;
        flex-direction: column;
        height: auto;
    }
}