/****** General ***********/
* {
    font-family: 'Raleway', sans-serif;
    margin: 0;
    padding: 0;
    scroll-behavior: smooth;
}

:root {
    --main-color: #0065FC;
    --main-bg-color: #F2F2F2;
    --filter-bg-color: #DEEBFF;
    --white: #ffffff;
    --grey-tin-2: #D9D9D9;
}

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

body {
    display: flex;
    justify-content: center;
}

.main-container {
    width: 100%;
    max-width: 1440px;
    padding: 0 50px;
    box-sizing: border-box;
}
/* Small devices (phones, less than 768px) */
@media (max-width: 768px) {
    .main-container {
        padding: 0;
    }
}

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

.card img {
    object-fit: cover;
}

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

.euro {
    font-weight: 700;
}

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

/****** HEADER ******/
.header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    padding: 20px 0;
}
.header img {
    width: 61px;
    height: 19px;
}
.navigation {
    transition: all 500ms ease-out;
}
.navigation a {
    margin-left: 68px;
    position: relative;
    transition: all 50ms ease;
}
.navigation a:hover {
    color: var(--main-color);
    border-top: 2px solid var(--main-color);
    padding-top: 10px;
}


/****** Media queries  HEADER *******/
/* Small devices (phones, less than 768px) */
@media (max-width: 768px) {
    .header {
        flex-direction: column;
    }
    .navigation {
        width: 100%;
        display: flex;
        flex-direction: row;
        justify-content: space-evenly;
        padding-bottom:10px;
        margin-top: 30px;
        position: relative;
    }
    .navigation a {
        margin: 0;
        font-size: 1.1rem;
        width: 50%;
        text-align: center;
    }
    .navigation::before {
        content: "";
        position: absolute;
        bottom: -8px;
        width: 100%;
        height: 2px;
        background: var(--main-bg-color);
    }
    .navigation a:hover {
        border-top: none;
        padding-top: 0;
    }
    .navigation a::after {
        content: "";
        position: absolute;
        bottom: -18px;
        left: 0;
        width: 0%;
        height: 2px;
        background: var(--main-color);
        transition:all 250ms ease-out;
    }
    .navigation a:last-child::after { 
        right: 0; 
        left: auto;
    }
    .navigation a:hover::after {
        width:100%;
    }
}

/****** SECTION INFO GROUP ******/
.info_group {
    margin: 30px 0 0px;
    padding: 0;
}
@media (max-width: 768px) {
    .info_group {
        padding: 0 20px;
    }
}

/****** INFO GROUP / headline ******/
.headline h1 {
    font-size: 1.4rem;
    margin-bottom: 10px;
}

/****** INFO GROUP / search bar ******/
.search_bar {
    display: flex;
    align-items: center;
    margin: 35px 0;
    height: 49px;
    width: 380px;
    max-width: 100%;
}
.fa-location-dot {
    color: black;
    background-color: var(--main-bg-color);
    width: 100%;
    max-width: 50px;
    height: 49px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    border-radius: 15px 0 0 15px;
}
.search_bar input {
    border-top: 1px solid var(--main-bg-color);
    border-bottom: 1px solid var(--main-bg-color);
    border-left: none;
    border-right: none;
    height: 47.5px;
    width: 200px;
    font-family: 'Raleway', sans-serif;
}
.search_bar input::placeholder {
    color: black;
    font-size: 18px;
    font-weight: 700;
    text-align: center;
}
.fa-magnifying-glass {
    display: none;
}
.search_bar button {
    border: none;
    width: 130px;
    height: 49px;
    text-align: center;
    border-radius: 0 15PX 15PX 0;
    background-color: var(--main-color);
    color: var(--filter-bg-color);
    font-weight: 700;
    font-size: 1rem;
    transition: all 300ms ease-out;
    cursor: pointer;
}

/****** Media queries  SEARCH BAR *******/
/* Small devices (phones, less than 768px) */
@media (max-width: 768px) {
    .search_bar button span {
        display: none;
    }
    .fa-magnifying-glass {
        display: flex;
        align-items: center;
        justify-content: center;
        color: var(--white);
        font-size: 1.1rem;
    }
    .search_bar button {
        width: 50px;
        border-radius: 15px;
        box-shadow: rgba(0, 0, 0, 0.07) 0px 1px 1px, rgba(0, 0, 0, 0.07) 0px 2px 2px, rgba(0, 0, 0, 0.07) 0px 4px 4px, rgba(0, 0, 0, 0.07) 0px 8px 8px, rgba(0, 0, 0, 0.07) 0px 16px 16px;
        margin-left: -15px;
    }
}


/****** INFO GROUP / filter bar ******/
.filter_bar {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 20px;
}
.filters {
    width: 100%;
    display: flex;
    gap: 20px;
}
.filter_bar span {
    transition: all 300ms ease-out;
    font-size: 1.1rem;
    font-weight: 700;
}
.btn_filter {
    background-color: var(--white);
    font-weight: 700;
    font-size: 1.1rem;
    padding: 12px 15px;
    height: 50px;
    max-width: 170px;
    border: 2px solid var(--grey-tin-2);
    border-radius: 25px;
    transition: all 500ms ease-out;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 13px;
    cursor: pointer;
}
.btn_filter:hover {
    background-color: var(--filter-bg-color);
}
.btn_filter i {
    font-size: 1.2rem;
}

/****** Media queries  FILTER BAR *******/
/* Medium devices (tablets, less/equal than 1024px) */
@media (max-width: 1024px) {
    .filter_bar {
        flex-direction: column;
        align-items: flex-start;
    }
    .btn_filter {
        font-size: 1rem;
    }
}

/* Small devices (phones, less than 768px) */
@media (max-width: 768px) {
    .filters {
        flex-wrap: wrap;
        gap: 12px; 
    }
    .btn_filter {
        overflow: hidden;
        width: 140px;
        gap: 7px;
        font-size: 0.9rem;
    }
}

/****** INFO GROUP / info bar ******/
.info_bar {
    display: flex;
    align-items: center;
    margin: 35px 0;
}
.fa-info {
    border: 1px solid var(--grey-tin-2);
    border-radius: 50px;
    font-size: 0.9rem;
    min-width: 25px;
    height: 25px;
    margin-right: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}
/* Small devices (phones, less than 768px) */
@media (max-width: 768px) {
    
    
}

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

/****** section Hebergements ******/
.hebergements {
    width: 65%;
}

.hebergements-cards {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: flex-start;
    align-content: flex-start;
    justify-content: space-between;
    box-sizing: border-box;
    
}
.hebergements-cards .card{
    width: 100%;
    height: 205px;
    box-sizing: border-box;
}
.hebergements-cards a { 
    width: 30%;
    margin-top: 31px;
}
.hebergements-cards img {
    object-fit: cover;
    width: 100%;
    min-height: 95px;
    aspect-ratio: 2/1;
    border-top-left-radius: 14px;
    border-top-right-radius: 14px;
}
.hebergements-cards .card-content{
    display: flex;
    flex-direction: column;
    gap: 5px;
    margin: 5px 0 0 7px ;
}
.hebergements-cards .card-title {
    line-height: 0.9rem;
}
.hebergements-link {
    font-size: 1.5rem;
    font-weight: 700;
    font-family: 'Raleway', sans-serif;
    padding-top: 30px;
    display: block;
}


/****** section 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: 36%;
    height: 136px;
    border-top-left-radius: 20px;
    border-bottom-left-radius: 20px;
}

.populaires-cards .card-content {
    width: 64%;
    padding: 0 10px 0 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%;
    }
    .hebergements-cards img {
        min-height: 125px;
    }
    .hebergements-cards .card-content{
        display: flex;
        flex-direction: column;
        gap: 6px;
        margin-top: 7px;
    }

    .populaires {
        width: 100%;
        margin-top: 50px;
    }

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

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

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

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

/* Small devices (phones, less than 768px) */
@media (max-width: 768px) {
    .hebergements-and-populaires {
        flex-direction: column-reverse;
    }
    .hebergements-and-populaires section {
        border-radius: 0px;
    }
    .hebergements-and-populaires section.hebergements {
        background-color: var(--white);
    }
    .hebergements-cards{
        flex-direction: column;
    }
    .hebergements-cards img {
        height: 125px;
    }
    .hebergements-cards .card-content{
        display: flex;
        flex-direction: column;
        gap: 5px;
        margin: 7px 0 0 7px ;
    }
    .hebergements-cards a {
        width: 100%;
        margin-top: 15px;
    }
    .hebergements h2,
    .populaires h2 {
        margin-bottom: 15px;
    }
    .populaires {
        margin-top: 0;
    }
    .populaires h2 {
        margin-bottom: 10px;
    }
    .populaires-cards a{
        width: 100%;
        margin-top: -15px;
    }
    .populaires-cards {
        display: flex;
        flex-direction: column;
    }
}

/****** section activate ******/
.activite {
    width: 100%;
    background-color: var(--white);
    padding: 65px 30px;
    box-sizing: border-box;
}
.activate-cards {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: flex-start;
    align-content: flex-start;
    justify-content: space-between;
    gap: 30px;
}
.activate-cards .card{
    width: 100%;
    height: 439px;
    border-radius: 20px;
    padding: 0;
}
.activate-cards a { 
    width: 24%;
    margin: 30px 0 0px; 
}
.activate-cards img {
    object-fit: cover;
    width: 100%;
    height: 380px;
    border-top-left-radius: 20px;
    border-top-right-radius: 20px;
}
.activate-cards .card-title {
    display: flex;
    align-items: center;
    height: 50px;
    padding-left: 19px;
}

/****** Media queries ***********/
/* Medium devices (tablets, less/equal than 1024px) */
@media (max-width: 1024px) {
    .activate-cards .card{
        height: 270px;
    }
    .activate-cards img {
        height: 200px; 
    }
    .activate-cards .card-title {
        display: flex;
        align-items: center;
        height: 60px;
        padding: 0 19px;
        font-size: 0.9rem;
    } 
}

/* Small devices (phones, less than 768px) */
@media (max-width: 768px) {
    .activite h2 {
        margin-bottom: 30px;
    }
    .activate-cards {
        flex-direction: column;
        gap: 15px;
    }
    .activate-cards a { 
        width: 100%;
        margin: 0px; 
    }
    .activate-cards .card-title {
        font-size: 1rem;
    }
}

/****** footer ******/
.footer { 
    width: 100%;
    max-width: 1440px;
    box-sizing: border-box;
}
.footer-container {
    background-color: var(--main-bg-color);
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    gap: 30px;
}
.footer-block {
    width: 33%;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}
.footer-block a {
    transition: all 100ms ease;
}
.footer-block a:hover {
    font-weight: 500;
}

/* Small devices (phones, less than 768px) */
@media (max-width: 768px) {
    .footer-container {
        flex-direction: column;
        padding: 30px;
        gap: 50px;
    }
    .footer-block {
        width: 100%;
        padding: 0;
    }
}