@import url('https://fonts.googleapis.com/css2?family=Raleway:wght@400;500;700&display=swap');

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    font-size: 16px;
    font-family: 'Raleway', sans-serif;
}

body {
    color: black;
    margin: 0;
    background-color: white;
}

h1,h2,h3,h4,p {
    margin: 0;
}

a {
    text-decoration: none;
    transition: color .3s;
    color: black;
}

img {
    width: 100%;
    height: auto;
    object-fit: cover;
}

#main {
    max-width: 1440px;
    margin: 0 auto;
    padding-top: 44px;
    padding-left: 55px;
    padding-right: 77px;
}

.stars {
    font-size: 0.7rem;
}

.blue {
    color: #0065FC;
}

.grey {
    color: #F2F2F2;
}

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

.logo {
    width: 61.09px;
    height: 19px;
}

.header-main-nav-item a {
    margin-left: 67px;
    color: black;
}

.header-main-nav-item a:hover {
    font-weight: 500;
    color: #0065FC;
    position: relative;
}

.header-main-nav-item a:hover::before {
    content: '';
    display: inline-block;
    position: absolute;
    height: 2px;
    background: #0065FC;
    top: -44px;
    bottom: 0;
    right: -24.5px;
    width: calc(100% + 49px);
}

.hebergement {
    margin-top: 63px;
}

.hebergement-search h1 {
    font-size: 1.375rem;
    font-weight: 700;
}

.hebergement-search span {
    display: block;
    margin-top: 8px;
    line-height: 19px;
}

.hebergement-search form {
    margin-top: 20px;
    display: flex;
}

#form-location {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 50px;
    height: 49px;
    background: #F2F2F2;
    border: 1px solid #F2F2F2;
    border-radius: 15px 0px 0px 15px;
}

#form-city {
    left: 50px;
    width: 236px;
    height: 49px;
    background: #FFFFFF;
    border: 1px solid #F2F2F2;
    font-size: 1.125rem;
    font-weight: 700;
    padding-left: 10px;
}

#form-button-search {
    background: #0065FC;
    border: 1px solid #0065FC;
    border-radius: 0px 15px 15px 0px;
    width: 132px;
    height: 49px;
    text-align: center;
    font-size: 1.125rem;
    font-weight: 700;
    color: white;
    left: 286px;
}

.form-div-search {
    justify-content: center;
    align-items: center;
    width: 50px;
    height: 49px;
    background: #0065FC;
    border: 1px solid #0065FC;
    border-radius: 0px 15px 15px 0px;
    display: none;
}

.form-div-search i {
    color: white;
}

.hebergement-filters {
    margin-top: 33px;
    display: flex;
    align-items: baseline;
}

.hebergement-filters-items i {
    font-size: 1.2rem;
    color: #0065FC;
    flex-shrink: 0;
}

.hebergement-filters-title {
    font-size: 1.125rem;
    font-weight: 700;
    margin-right: 15px;
}

.hebergement-filters-parent-elements {
    display: flex;
    flex-wrap: wrap;
    row-gap: 15px;
}

.hebergement-filters-items {
    display: flex;
    align-items: center;
    margin-left: 30px;
    border: 2px solid #D9D9D9;
    border-radius: 25px;
    padding: 14px 20px;
} 

.hebergement-filters-items:hover {
    background: #DEEBFF;
}

.hebergement-filters-items p {
    font-size: 1.0625rem;
    font-weight: 700;
    margin-left: 10px;
}

.information {
    margin-top: 37px;
    display: flex;
    align-items: center;
}

.information-circle {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 24px;
    height: 24px;
    border: 1px solid #D9D9D9;
    border-radius: 100%;
}

.information-circle i {
    font-size: 0.6rem;
    color: #0065FC;
}


.information p {
    margin-left: 11px;
}

.hebergement-city {
    margin-top: 39px;
    display: flex;
}

.card-hebergement-city {
    background: #F2F2F2;
    border-radius: 20px;
    padding: 42px 40px;
    width: 880px;
}

.hebergement-city-title {
    font-weight: 700;
    font-size: 1.375rem;
}

.card-hebergement-city-show-more {
    display: inline-block;
    padding-top: 40px;
    font-weight: 700;
    font-size: 1.125rem;
    line-height: 21px;
}

.card-hebergement-city-show-more:hover {
    text-decoration: underline;
}

.card-hebergement-city-parent-items {
    margin-top: 23px;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    row-gap: 30px;
}

.card-hebergement-city-items {
    width: 30%;
    background: #FFFFFF;
    box-shadow: 0px 3px 15px rgba(0, 0, 0, 0.1);
    border-radius: 20px;
    position: relative;
}

.card-hebergement-city-items .stars {
    position: absolute;
    bottom: 5px;
}

.card-hebergement-city-items img {
    height: 124px;
    border: 5px solid #FFFFFF;
    border-radius: 20px 20px 0px 0px;
}

.card-hebergement-items-informations {
    display: flex;
    flex-direction: column;
    padding: 0px 26px 10px 16px;
}

.card-hebergement-items-informations-title {
    font-weight: 700;
    line-height: 19px;
}

.card-hebergement-items-informations-price {
    font-size: 0.875rem;
    line-height: 16px;
    margin: 5px 0 15px 0;
}

.card-hebergement-items-informations-price span {
    font-weight: 700;
}

.card-hebergement-city-popular {
    width: 420px;
    background: #F2F2F2;
    border-radius: 20px;
    padding: 41px 40px 34px 37px;
    margin-left: 44px;
}

.card-hebergement-city-popular-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.card-hebergement-city-popular-header i{
    color: #0065FC;
}

.card-hebergement-city-popular-items img {
    width: 137px;
    height: 144px;
    border: 5px solid #FFFFFF;
    border-radius: 20px 0px 0px 20px;
}

.card-hebergement-city-popular-parent-items {
    display: flex;
    flex-direction: column;
}

.card-hebergement-city-popular-items {
    margin-top: 26px;
    background: #FFFFFF;
    box-shadow: 0px 3px 15px rgba(0, 0, 0, 0.1);
    border-radius: 20px;
}

.card-hebergement-city-popular-items a {
    display: flex;
}

.card-hebergement-city-popular-items .card-hebergement-items-informations-price {
    margin-top: 7px;
}

.card-hebergement-city-popular-items .card-hebergement-items-informations {
    width: 206px;
    height: 144px;
    display: flex;
    flex-direction: column;
    padding: 16px 22px 0px 15px;
}

.card-hebergement-city-popular-items .card-hebergement-items-informations .stars {
    margin-top: auto;
    margin-bottom: 10px;
}

.section-activity {
    margin-top: 60px;
}

.section-activity-title {
    font-weight: 700;
    font-size: 1.375rem;
    line-height: 26px;
}

.card-activity-parent-items {
    margin-top: 18.47px;
    display: flex;
    column-gap: 43px;
}

.card-activity-items {
    display: flex;
    flex-direction: column;
    width: 302px;
    height: 445px;
}

.card-activity-items-img {
    height: 389px;
    border-radius: 20px 20px 0px 0px;
}

.card-activity-items-city {
    box-shadow: -5px 5px 5px rgba(0, 0, 0, 0.1);
    border-radius: 0px 0px 20px 20px;
    height: 52px;
    position: relative;
}

.card-activity-items-city p {
    font-weight: 700;
    line-height: 19px;
    position: absolute;
    top: 50%;
    left: 20px;
    transform: translate(0, -50%);
}

@media only screen and (max-width: 1024px) {
    .hebergement-city {
        flex-direction: column;
    }
    .card-hebergement-city {
        width: auto;
        height: auto;
    }
    .card-hebergement-city-popular-parent-items {
        flex-direction: row;
        flex-wrap: wrap;
    }
    .card-hebergement-city-popular {
        width: auto;
        height: auto;
        padding: 34px 41px 48px 40px;
        margin-left: 0px;
        margin-top: 53px;
    }
    .card-hebergement-city-popular-items img {
        height: auto;
        width: 40.5%;
    }
    .card-hebergement-city-popular-items {
        margin-right: auto;
        width: 30%;
        position: relative;
    }
    .card-hebergement-city-popular-items a {
        height: 100%;
    }
    .card-hebergement-city-popular-items .card-hebergement-items-informations .stars {
        position: absolute;
        bottom: 5px;
        margin-bottom: 0;
    }

    .card-hebergement-city-popular-items .card-hebergement-items-informations {
        padding: 12px 5px 12px 10px;
        height: auto;
        width: 60%;
    }

    .card-activity-parent-items {
        column-gap: 50px;
        row-gap: 50px;
        display: flex;
    }
    .card-activity-items {
        height: 267px;
    }
    .card-activity-items-img {
        height: 211px;
    }
    .card-activity-items-city {
        height: 56px;
    }
    .card-hebergement-items-informations-price {
        margin-top: 5px;
    }
}

.main-footer {
    margin-top: 61px;
    width: 100%;
    height: 225px;
    background: #F2F2F2;
    padding-top: 45px;
    padding-left: 70px;
    display: flex;
    justify-content: space-around;
}

.main-footer-items {
    display: flex;
    flex-direction: column;
    margin-right: auto;
}

.main-footer-items-title {
    font-weight: 700;
    font-size: 1.125rem;
    line-height: 21px;
}

.main-footer-items-links {
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    row-gap: 12px;
}

.main-footer-items-links a {
    font-weight: 400;
    line-height: 19px;
}

.main-footer-items-links a:hover {
    text-decoration: underline;
}

@media only screen and (max-width: 768px) {
    #main {
        padding: 0;
    }
    .header-main {
        position: relative;
    }
    .header-main-nav {
        display: block;
    }
    .logo {
        position: absolute;
        top: 50%;
        left: calc(50% + 15.27px);
        transform: translate(-50%, -50%);
    }
    .header-main-nav-item {
        display: flex;
        justify-content: space-around;
        align-items: center;
    }
    .header-main-nav-item a {
        margin-left: 0;
        margin-top: 89px;
    }
    .header-main-nav-item a:hover {
        position: initial;
    }
    .header-main-nav-item a:hover::before {
        top: 129px;
        right: 0;
        left: 0;
        width: 50vw;
    }
    .header-main-nav-item a:nth-child(2):hover::before {
        left: auto;
    }
    .hebergement {
        margin-top: 31px;
    }
    .hebergement-search span {
        display: block;
        margin-top: 13px;
    }
    .hebergement-search {
        padding-left: 20px;
        padding-right: 22px;
    }
    #form-button-search {
        display: none;
    }
    .form-div-search {
        display: flex;
    }
    #form-city {
        width: 100%;
    }
    .hebergement-filters {
        margin-top: 34px;
        display: block;
        padding-left: 20px;
        padding-right: 20px;
    }
    .hebergement-filters-parent-elements {
        margin-top: 15px;
        column-gap: 15px;
    }
    .hebergement-filters-items {
        margin-left: 0px;
        height: 50px;
        width: calc(50% - 7.5px);
        padding: 13px 17px;
    }
    .hebergement-filters-items p {
        font-size: 11px;
        margin-left: 5px;
    }
    .information {
        padding-left: 20px;
        margin-top: 43px;
    }
    .hebergement-city {
        margin-top: 17px;
        flex-direction: column-reverse;
    }
    .card-hebergement-city-popular {
        margin-top: 0;
        padding: 28px 21px 47px 20px;
        border-radius: 0;
        width: 100vw;
    }
    .card-hebergement-city-popular-items {
        width: 100%;
        height: 144px;
    }
    .card-hebergement-city-popular-items img {
        width: 40%;
        height: 144px;
    }
    .card-hebergement-city {
        background-color: white;
        padding: 28px 21px 47px 20px;
    }
    .card-hebergement-city-items {
        width: 100%;
        height: 199px;
    }
    .section-activity {
        padding-left: 20px;
        padding-right: 20px;
    }
    .card-activity-items {
        width: 100%;
        height: 190px;
    }
    .card-activity-items-img {
        width: 100%;
        height: 134px;
    }
    .main-footer {
        flex-direction: column;
        height: auto;
        padding: 45px 154px 61px 30px;
        row-gap: 40px;
    }
    .card-activity-parent-items {
        flex-wrap: wrap;
    }
    .card-activity-items-city p {
        font-size: 16px;
    }
}










