
/****** General ***********/
* {
    font-family: 'Raleway', sans-serif;
    margin: 0px;
}

:root {
    --main-color: #0065FC;
    --main-bg-color: #F2F2F2;
    --filter-bg-color: #DEEBFF;
}

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

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

.card img {
    object-fit: cover;
}

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

.euro {
    font-weight: 700;
}

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

/****** Header ***********/
.logotop {
    height: 20px;
    width: auto;
    margin: 0px;
    margin-top: 20px;
}

.boxtoplien {
    display: flex;
    margin-top: 0px;
    gap: 0.5rem 2rem;
}

header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 30px;
    
    
}

.bordertop:hover {
    border-top: 2px solid #0065fc;
    color: #0065FC;
    padding-top: 10px;
    
}

.bordertop {
    padding: 12px;
}

/****** Barre de recherche ***********/
.fa-location-dot {
    display: flex;
    border: 1px solid #f2f2f2;
    width: 50px;
    height: 49px;
    border-radius: 15px 0px 0px 15px ; 
    background-color: #F2F2F2;
    justify-content: center;
    align-items: center;
    color: black;
    
       
}

.search-location {
    display: flex;
    flex-direction: row;    
}

input {
    display: flex;
    font-size: 18.5px;
    margin-bottom: 50px;
    border: 1px solid #F2F2F2;
    border-left: none;
    border-right: none;
    text-align: center;
    background-color: white;
    font-weight: bold;
    width: 210px;
    height: 47px;
    margin-bottom: 25px;
        
}

.search::placeholder {
    color: black;
    opacity: 1;
}
 

input:focus {
    outline: none;
    box-shadow: none;
}

.button-search  {
    border: 1px solid #0065FC;
    background-color: #0065FC;
    color: white;
    border-radius: 0px 20px 20px 0px;
    font-family: 'Raleway','sans-serif';
    width: 143px;
    height: auto;
    cursor: pointer;
}

.filters{
    display: flex;
    align-items: center;
    margin: 10px;
    gap: 20px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.filtersbar{
    display: flex;
    align-items: center;
    color: black;
    gap: 10px;
    border: 2px solid #F2F2F2;
    font-weight: bold;
    font-size: 18px;
    padding: 15px;
    border-radius: 25px;
    cursor: default;
}

.filtersbar:hover {
    background-color: #DEEBFF;
}

.fa-magnifying-glass {
    display: none;
}

/****** Title header ***********/
.tvhpdvdr{
    margin: 0;
    font-size: 22px;
    
}
.epcvopn {
    font-size: 19px;
    margin: 2px 0 0 0;
    margin-bottom: 30px;
}

/****** Info bar ***********/
.fa-info {
    display: flex;
    border: 1px solid #DEEBFF;
    border-radius: 40px;
    height: 25px;
    width: 25px;
    align-items: center;
    justify-content: center;
    font-size: 14px;
}

.infobar {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 30px;
}

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

.hebergements .hebergements-card{
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    
    
}
.hebergements .card{
    display: flex;
    width: 240px;
    height: 200px;
    padding: 5px;
    background-color: white ;
    flex-direction: column;
    justify-content: space-around;
    flex-wrap: nowrap;
    margin-bottom: 30px;
    
    
}

.hebergements img {
    width: 100%;
    height: 60%;
    border-top-left-radius: 16px;
    border-top-right-radius: 16px;
    object-fit: cover;
    margin-bottom: 8px;
    
}

.hebergements .card-hebergement-txt {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 0px 8px 8px 8px;

}

.hebergements .card-rating-herbegement {
    margin-left: 10px;
}

.hebergements h3 {
    margin: 0;
}

.hebergements h2 {
    margin: 0 0 30px 0;
}

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

/****** Activités ***********/
.h2-title {
    margin: 60px 0 30px 20px ;
    
}

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

.activities img {
    object-fit: cover;
    width: 100%;
    border-top-left-radius: 20px;
    border-top-right-radius: 20px;
    aspect-ratio: 400 / 534;
}

.activities h3 {
    display: flex;
    padding: 20px 19px 20px 19px;
    height: 19px;
    flex-wrap: nowrap;
    width: auto;
    line-height: 100%;
    align-items: center;
    font-weight: 700;
} 

.activities .card-activities-row {
    display: flex;
    justify-content: space-between;
    gap: 30px;
    flex-wrap: nowrap;
    margin-left: 30px;
    margin-right: 30px;  
}



/****** Footer ***********/

.footer {
    background-color: #F2F2F2;
    font-size: 14px;
    line-height: 1.6;
}

.footer_div {
    width: 100%;
    margin: 0 auto;
    padding: 24px 16px;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-start;
    gap: 48px;
}

.footer_col {
    flex: 1 1 0;
    min-width: 240px;
    max-width: 360px;
}

.footer_col h3 {
    margin: 0 0 8px 0;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.25;
    white-space: nowrap;
}

.footer_col ul {
    list-style: none;
    margin: 0;
    padding: 0;
    
}


/* Le code ci-dessous correspond à la version responsive uniquement */
/****** Media queries ***********/
/* Medium devices (tablets, less/equal than 1024px) */
@media (min-width: 769px) and (max-width: 1024px) {
    .filters {
        display: flex;
        flex-wrap: wrap;
        gap: 20px;
        justify-content: flex-start;
    }

    .titlefilters {
        flex: 0 0 100%;
        margin-bottom: 8px;
        order: -1;
    }
    
    .hebergements-and-populaires {
        flex-direction: column;
    }

    .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;
    }
    .activities .card-activities-row {
            display: flex;
            justify-content: flex-start;
            align-items: stretch;
            gap: 24px;
            flex-wrap: nowrap;
            
        
        }

    .activities .card-activities {
        display: flex;
        flex-direction: column;
        background-color: white;
        border-radius: 20px;
        filter: drop-shadow(0px 3px 15px rgba(0, 0, 0, 0.1));
        width: 100%;
        overflow: hidden;
    
    
    }

    .activities img {
        display: block;
        object-fit: cover;
        height: auto;
        aspect-ratio: 4 / 5;
        width: 100%;
        border-top-left-radius: 20px;
        border-top-right-radius: 20px;
        
    }

    .activities h3 {
        display: flex;
        height: 19px;
        letter-spacing: 0;
        line-height: 100%;
        font-weight: 700;

    } 

    

    .footer_div {
        gap: 32px;
    }
}



/* Small devices (phones, less than 768px) */
@media (min-width: 320px) and (max-width: 768px) {
    
    .main-container  {
        padding: 0;
        
    }

    /*Header*/
    header {
            flex-direction: column;
            align-items: center;
        }

        .logotop {
            margin-bottom: 15px;
            height: 25px;
        }

        .boxtoplien {
        position: relative;
        display: flex;
        justify-content: space-around;
        width: 100%;
        border-bottom: 1px solid var(--main-bg-color);
    }

    .boxtoplien a {
            position: relative;
            display: inline-block;
            padding: 12px 0 14px;
            
    }

    .boxtoplien a::after {
        content: "";
        position: absolute;
        bottom: 0;
        left: 50%;                 
        transform: translateX(-50%) scaleX(0); 
        width: 50vw;               
        height: 2px;
        background-color: var(--main-color);
            
    }

    .boxtoplien a:hover::after {        
        transform: translateX(-50%) scaleX(1); 
    }

    .boxtoplien a:hover {
        border-top: transparent;
        
    }

    /* bouton de recherche */
    .fa-magnifying-glass {
        display: flex;
        border: 1px solid #0065FC;
        color: white;
        background-color: #0065FC;
        align-items: center;
        height: 49px;
        width: 50px;
        justify-content: center;
        border-radius: 15px;
        flex: 0 0 50px;
    }
    .button-search {
        display: none;

    }
    
    .search-location { 
        display: flex;
        flex: 1;
        flex-direction: row;
        align-items: stretch;
        max-width: 100%;  
        gap: 0;
        margin: 0 16px;
        box-sizing: border-box;
    }

    .search-location .search {
        flex: 1 1 auto;
        width: auto;
        padding: 0 12px;
        text-align: left;
    }

    .search-location .fa-location-dot {
        flex: 0 0 50px;
    }
    
    /* texte sous le header*/
    .epcvopn {
        margin-top: 10px;
        margin-left: 20px;
    }

    .tvhpdvdr {
        gap: 8px;
        padding: 0px 20px 0px 20px 
    }

    /*Filtres*/

    .filters {
        display: flex;
        flex-wrap: wrap;
        align-items: stretch;
        column-gap: 10px;
        row-gap: 20px;
        justify-content: center;
        
        
    }
     .filters h3.titlefilters{
        
        flex: 0 0 100%;
        margin: 0 0 8px 25px;
     }
    .filters .filtersbar {
        flex: 0 0 calc(50% - 16px);
        max-width: 50%;
        box-sizing: border-box;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 12px;
        font-size: 16px;
    }

    


    /*Info bar*/
    .infobar  .fa-info{
        margin-left: 20px;
        aspect-ratio: 1 / 1;
    }
    
    /*Hebregement and popualaires*/
    .hebergements-and-populaires {
        display: flex;
        flex-direction: column-reverse;
        width: 100%;
    }

    /*Hebergement*/
    .hebergements-card  {
        display: flex;
        flex-direction: column;
        gap: 16px;
                 
    }

    .hebergements .card {
        width: 100% !important;
        margin: 0;
        
    }

    .hebergements {
        width: 100% !important;
        background-color: transparent !important;
        border-radius: 0 !important;
        padding: 15px!important;
    }
    
    /*Populaires*/
    .populaires  {
        border-radius: 0 !important;
        width: 100%;
    }

    /*Activité*/
    .activities .card-activities-row {
        display: flex;
        flex-direction: column;
        padding: 30px;
        margin: 0;
        gap: 15px;

    }

    .activities .card-activities {
        display: flex;
        flex-direction: column;
        width: 100%; 
        margin: 0 auto ;   
        box-sizing: border-box;

    }

    .activities .card-activities img {
        width: 100%;
        height: 141px;
        object-fit: cover;
        flex-shrink: 0;
    }

    .activities .card-activities h3 {
        margin: 0;
        font-weight: 600;
        font-size: 16px;
    }

    .activities .card-activities div {
        gap: 10px;
        display: flex;
        align-items: center;
        
    }

    .activities .h2-title {
        padding: 0;
        margin: 60px 0 0 25px;
    }
    
    /*Footer*/
    .footer_div {
        gap: 0 !important;
        padding: 0 !important;
    }

    .footer .footer_col {
        display: flex;
        flex-direction: column;
        padding: 30px;
        
    }

    .footer {
        font-size: 16px;
    }

    .footer_col li {
        margin-top: 10px;
    }

  
    
    
}    