/****** General ***********/
* {
    font-family: 'Raleway', sans-serif;
}  
:root {
    --main-color: #0065FC;
    --main-bg-color: #F2F2F2;
    --filter-bg-color: #DEEBFF;
}
html {
    scroll-behavior: smooth;
}
.fa-solid {
    color: var(--main-color);
}

body {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin:0;
}
.main-container {
    width: 100%;
    max-width: 1440px;
    padding: 0 50px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    gap: 35px;
}
a {
    color: inherit;
    text-decoration: none;
}
.section-title {
    margin: 0;
    font-size: 22px;
}
main {
    display: flex;
    flex-direction: column;
    gap: 35px;
}
.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;
}

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




/**** Header *****/
header {
    display: flex;
    justify-content: space-between;
}
.logo-booki {
    width: 61.09px;
    height: 19px;
    margin-top: 30px;
}
.nav-anchors {
    display: flex;
    gap: 68px;
    
}
.anchor-link{
    padding-top: 16px; 
    font-size: 16px;
}
.anchor-link:hover{
    padding-top: 14px;
    border-top: solid 2px var(--main-color);
    color: var(--main-color);

}




/**** section filtre ****/
h1 {
    font-size: 22px;
    margin:0;
}
.h1-subtitle {
    font-weight:400;
    font-size:16px;
    margin-top:8px;
}
.form-recherche {
    display: flex;
    height: 49px;
    margin-top: 35px;
}
.i-location {
    width: 50px;
    background-color: var(--main-bg-color);
    border-top-left-radius: 15px;
    border-bottom-left-radius: 15px;
}
.input-recherche {
    border-top: solid 1px var(--main-bg-color);
    border-bottom: solid 1px var(--main-bg-color);
    border-right: none;
    border-left: none;
    width: 195px;
    font-size: 18px;
    font-weight: 700;
    color:black;
    outline: none;
}
.input-recherche[type="text"] {
    text-align: center;
}
.fa-search {
    display:none;
}
.form-btn {
    background-color:var(--main-color);
    color: white;
    font-weight: 700;
    font-size: 18px;
    border-top-right-radius: 15px;
    border-bottom-right-radius: 15px;
    border: none;
    padding: 15px 16px 15px 16px;
    cursor: pointer;
}
i {
    font-size: 20px;
}
.fa-location-dot {
    color:black;
    position: relative;
    top: 15px;
    left: 18px;
}
.container-filtre-btns {
    display:flex;
    gap: 15px;
    margin-top: 35px;
    height: 50px;
}
.filtre-txt {
    font-size: 18px;
    font-weight: 700;
    margin-top: 15px;
}
.filtre-btns-axes {
    display: grid;
    grid-template-columns: 2fr 1fr 2fr 2fr;
    gap: 15px;
    max-width: 700px;
}
.filtre-btns {
    background-color:white;
    border-radius: 25px;
    border: solid 2px #D9D9D9;
    padding: 4px 19px 4px 19px;
    font-size: 17px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}
.filtre-btns:hover {
    background-color: var(--filter-bg-color);
}
.info-txt {
    margin-top: 35px;
    margin-bottom: 0;
    display: grid;
    grid-template-columns: 25px 1fr;
    align-items: center;
    gap: 10px;
}
.fa-info {
    width: 25px;
    height: 25px;
    border-radius: 50%;
    border: solid 1px #D9D9D9;
    text-align: center;
    line-height: 23px;
    margin-right: 10px

}





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




/****** Hebergements ***********/
.hebergements {
    width: 65%;
    scroll-margin-top: 79px;
    display: flex;
    flex-direction: column;
    gap: 35px;
}
.container-card-hebergements{
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}
.flex-hebergement-card{
    display: flex;
    flex-direction: column;
}
.hebergement-card {
    background-color: white;
    filter: drop-shadow(0px 3px 15px rgba(0, 0, 0, 0.1));
    border-radius: 20px;
    padding: 5px 5px 15px 5px;
    height: 100%;
    display: grid;
    grid-template-rows: 124px 1fr;

}
.hebergement-img{
    width: 100%;
    border-top-right-radius: 20px;
    border-top-left-radius: 20px;
    object-fit: cover;
    height: 124px;
}
.hebergement-card-content{
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 8px;
    padding-right: 15px;
    padding-left: 15px;
    padding-top: 4px;
    height: 100%;
}
.hebergement-card-content .card-title{
    margin: 0;
}
.hebergement-card-content .card-subtitle{
    margin: 0;
    font-size: 14px;
}
.link-extend{
    font-weight: 700;
}




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





/***** activites *****/
.section-activites{
    display: flex;
    flex-direction: column;
    padding: 30px;
    gap: 20px;
}
.container-cards-activites{
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;

}
.card-activite{
    padding: 0;
    margin: 0;
    height: 439px;
    border-radius: 20px;
    box-shadow: 0px 3px 15px 0px #0000001A;
    display: grid;
    grid-template-rows: 380px 1fr;
}
.img-activite{
    width: 100%;
    object-fit: cover;
    height: 380px;
    border-top-right-radius: 20px;
    border-top-left-radius: 20px;
}
.card-activite-txt{
    padding: 0px 19px 0px 19px;
    font-size: 16px;
    font-weight: 700;
    border-bottom-right-radius: 20px;
    border-bottom-left-radius: 20px;
    display: flex;
    align-items: center;
}





/****** footer *******/
footer{
    display: grid;
    background-color: var(--main-bg-color);
    grid-template-columns: repeat(3, 1fr);
}
.footer-title{
    margin: 0;
    font-weight: 700;
}
.footer-links{
    padding: 20px 20px 15px 20px;
    line-height: 2;
    max-width: 100%;

}
.footer-list{
    list-style-type: none;
    margin: 0;
    padding: 0;  
}

/* Le code ci-dessous correspond à la version responsive uniquement */

/****** Media queries ***********/
/* Medium devices (tablets, less/equal than 1024px) */
@media (max-width: 1024px) {
    /*** section filtre tablets ***/
    .container-filtre-btns {
        gap: 20px;
        margin-top: 35px;
        flex-direction: column;
        height: auto;
    }
    .filtre-txt {
        margin-bottom: 0;
    }  
    .filtre-btns {
        height: 50px;
    }




    /*** hebergements and populaires tablets ***/
    .hebergements-and-populaires {
        flex-direction: column;
    }




    /*** hebergements tablets ***/
    .hebergements {
        width: 100%;
    }




    /*** populaires tablets ***/
    .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 tablets ****/
    .card-activite {
        height: 280px;
        grid-template-rows: 200px 1fr;
    }
    .img-activite {
        height: 200px;
    }
}





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

    /*** main div mobile ***/
    .main-container {
        min-width: 320px;
        padding: 0;
        gap: 30px;
    }




    /*** header mobile ***/
    header {
        flex-direction: column;
        align-items: center;
    }
    .nav-anchors {
        gap:0;
        width: 100%;
        display: grid;
        grid-template-columns: repeat(2, 1fr);

    }
    .anchor-link {
        text-align: center;
        padding-bottom: 13px;
        padding-top: 30px;
        border-bottom: solid 2px var(--main-bg-color);
    }
    .anchor-link:hover{
        border-bottom: solid 2px var(--main-color);
        border-top: none;
        color: var(--main-color);
        padding-bottom: 13px;
        padding-top: 30px;
         
    
    }




    /**** section filtre mobile ****/
    .section-filtres {
        padding: 0 20px 0 20px;
    }
    .fa-search {
        display: block;
    }
    .form-btn {
        box-shadow: 0px 4px 4px 0px #00000040;
        border-radius: 15px;
    }
    .search-txt {
        display: none;
    }
    .filtre-txt {
        margin-top: 0;
    }
    .filtre-btns-axes {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    .filtre-btns {
        font-size: 14px;
    }
    .form-recherche {
        display: grid;
        grid-template-columns: 50px 1fr 49px;
    }
    .input-recherche {
        width: 100%;
    }




    /*** hébergements and populaires mobile ***/
    .hebergements-and-populaires {
        display: flex;
        flex-direction: column-reverse;
        background-color:var(--main-bg-color);
        gap: 35px;
    }
    .hebergements-and-populaires section {
        padding:0 20px 0 20px;
    }




    /**** populaires mobile ****/
    .populaires {
        padding: 0 20px 0 20px;
    }
    .populaires-cards {
        flex-direction: column;
    }
    .populaires-cards .card {
        margin-top: 15px;
    }
    .populaires-cards a {
        width: 100%;
    }




    /**** hebergements mobile ****/
    #hebergements {
        background-color: white;
        border-radius: 0;
        padding-top: 35px;
    }
    .container-card-hebergements {
        display: flex;
        flex-direction: column;
        gap: 15px;
    }
    .container-cards-activites {
        display: flex;
        flex-direction: column;
    }
    .card-activite {
        height: 200px;
        grid-template-rows: 141px 1fr;
    }
    .img-activite {
        height: 141px;
    }




    /**** footer mobile ****/
    footer {
        grid-template-columns: 1fr;
        grid-template-rows: 1fr 0.5fr 1fr;
    }
}
@keyframes toAndFro {
        from { transform: translateX(calc(-1 * 5px)); }
        to   { transform: translateX(5px); }
    }
.figma-banner{
    height: auto;
    background-color:beige;
    width: 100%;
    display: flex;
    text-align: center;
    justify-content: center;
    align-items: center;
    padding: 25px;
    box-sizing: border-box;
    flex-direction: column;
}
.figma-banner div {
    width: 100%;
    text-align: start;
}

.figma-banner div a{
    color: black;
    margin-right: 5px;
    display: inline-block; 
    animation: toAndFro 1s ease-in-out infinite alternate;
    will-change: transform;
    text-decoration: underline;
}
.figma-link{
    color: blue;
    text-decoration: underline;
}