/******** Général *********/
* {
    font-family: "Raleway", Verdana;
}

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

.main-contenu {
    width: 100%;
    max-width: 1440px;
    padding: 0 50px;
    box-sizing: border-box;
}

h1 {
    font-weight: 700;
    font-size: 22px;
    margin-bottom: 0;
}

h2 {
    font-weight: 700;
    font-size: 22px;
}

h3 {
    font-weight: 700;
    font-size: 18px;
}

h4 {
    font-weight: 700;
    font-size: 16px;
}

h5 {
    font-weight:500;
    font-size: 14px;
}

/******** Header ********/
nav{
    display: flex;
    justify-content: space-between;
    margin-bottom: 30px;
    
}

nav img {
    width: 61.09px;
    height: 19px;
    padding-top: 30px;
    padding-bottom: 30px;
}

.liens {
    display: flex;
    align-items: baseline;
}

nav a {
    margin-left: 80px;
    text-decoration: none;
    font-size: 16px;
}

.lien1,
.lien2 {
    padding-top: 20px;
    color: #000000;
}

.lien1:hover, 
.lien2:hover {
    color: #0065FC;
    border-top: 2px solid #0065FC;
    padding-top: 18px;
}

/******** Main ********/

/******** Présentation ********/

.présentation p {
    margin-top: 5px;
}

/******** Barre de recherche ********/
.recherche {
    display: flex;
    align-items: center;
    margin-top: 30px;
    margin-bottom: 30px;
}

.fa-location-dot {
    color: #000000;
}

.recherche .fa-location-dot {
    padding: 19px;
    color: #000000;
    background-color: #F2F2F2;
    border-top-left-radius: 20px;
    border-bottom-left-radius: 20px;
}

.recherche textarea {
    font-weight: 500;
    font-size: 16px;
    resize: none;
    border-top: 1px solid #F2F2F2;
    border-bottom: 1px solid #F2F2F2;
    border-left: none;
    border-right: none;
    padding: 16px;
    overflow-y: hidden;
}

::placeholder {
    font-weight: 700;
    color: #000000;
    font-size: 18px;
}

.recherche p {
    font-weight: 700;
    background-color: #0065FC;
    color: white;
    border-top-right-radius: 20px;
    border-bottom-right-radius: 20px;
    padding: 17px 18px;
    margin: 0;
}

.recherche .fa-magnifying-glass {
    display: none;
    background-color: #0065FC;
    color: white;
    border-radius: 15px;
    box-shadow: 0 4px 4px 0 rgba(0, 0, 0, 25%);
    padding: 19px 18px;
    margin: 0;
}

/******** Filtre ********/
.boutons {
    display: flex;
    align-items: center;
    padding: 0;
}

.boutons i {
    color: #0065FC;
    padding-right: 10px;
    font-size: 17px;
}

.boutons .titre {
    margin-right: 20px;
}

.boutons-logo ul {
    display: flex;
    margin: 0;
}

.boutons li {
    border: 2px solid #F2F2F2;
    border-radius: 25px;
    padding: 15px 20px;
    margin-right: 20px;
    font-weight: 700;
    list-style-type: none;
}

.boutons li:hover {
    background-color: #DEEBFF;
    cursor: pointer;
}

/******** Logo information ********/
.fa-info {
    color: #0065FC;
    border: 1px solid  #F2F2F2;
    border-radius: 50%;
    padding: 10px 8px;
    margin-right: 15px;
}

.information {
    display: flex;
    align-items: baseline;
    margin-top: 25px;
    margin-bottom: 20px;
}


/******** Hébergements et populaires ********/
.hébergements-et-populaires {
    display: flex;
    justify-content: space-between;
}

.hébergements-et-populaires h2 {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 0;
}

.hébergements-et-populaires section {
    /* background-color: #F2F2F2; */
    border-radius: 20px;
    padding: 30px;
    box-sizing: border-box;
}

.carte {
    background-color: white;
    border-radius: 20px;
    padding: 5px;
    filter: drop-shadow(0px 3px 15px rgba(0, 0, 0, 0.1));
}

.carte img {
    object-fit: cover;
}

.fa-star {
    color: #0065FC;
}

.neutral-star {
    color: #F2F2F2;
}

/********* Hébérgements ********/
.hébergements {
    width: 65%;
    background-color: #F2F2F2;
}

.hébergements-cartes {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}

.hébergements-cartes .carte {
    margin-top: 30px;
    height: 207px;
    width: 30%;
}

.hébergements-cartes img {
    width: 100%;
    height: 59%;
    border-top-left-radius: 20px;
    border-top-right-radius: 20px;
}

.hébergements-cartes .carte-contenu {
    height: 40%;
    padding-left: 15px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-sizing: border-box;
}

.hébergements-cartes h4 {
    margin-top: 10px;
    margin-bottom: 0;
}

.hébergements-cartes h5 {
    margin-top: 4px;
    margin-bottom: 0;
}

.hébergements-cartes .carte-étoile {
    display: flex;
    margin-bottom: 10px;
}

.hébergements-cartes .fa-star {
    margin-right: 2px;
}

.hébergements h3 {
    margin-top: 30px;
    margin-bottom: 0;
}

/******** Populaires ********/
.populaires {
    width: 32%;
    background-color: #F2F2F2;
}

.populaires-cartes .carte{
    display: flex;
    margin-top: 33px;
}

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

.populaires-cartes .carte-contenu {
    width: 67%;
    padding-left: 15px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-sizing: border-box;
}

.populaires-cartes h4 {
    margin-top: 10px;
    margin-bottom: 4px;
}

.populaires-cartes h5 {
    margin: 0;
}

.populaires-cartes .carte-étoile {
    margin-bottom: 5px;
}

.fa-chart-line {
    color: #0065FC;
}

.populaires-cartes .carte-étoile {
    display: flex;
    margin-bottom: 8px;
}

.populaires-cartes .fa-star {
    margin-right: 2px;
}

/******** Activités ********/
.activités h2 {
    margin-left: 30px;
    margin-top: 60px;
    margin-bottom: 30px;
}

.carte2 {
    background-color: white;
    border-radius: 20px;
    filter: drop-shadow(0px 3px 15px rgba(0, 0, 0, 0.1));
    width: 22%;
}

.carte2 img {
    object-fit: cover;
    height: 380px;
    width: 100%;
    border-top-left-radius: 20px;
    border-top-right-radius: 20px;
}

.carte2 h4 {
    display: flex;
    margin: 0;
    padding-left: 15px;
    height: 59px;
    align-items: center;
} 

.activités-cartes {
    display: flex;
    justify-content: space-evenly;
}

/******** Footer ********/
footer {
    background-color: #F2F2F2;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-top: 60px;
}

footer div {
    flex: 1; /* Partage l'espace disponible équitablement entre les colonnes */
    margin-left: 20px;
}

footer ul {
    padding: 0;
    margin-bottom: 0;
}

footer li {
    padding-bottom: 20px;
    list-style-type: none;
    font-size: 16px;
}

/******** Ecran tablette ********/
@media (max-width: 1024px) {

    /* Main */

    /* Filtre */

    .boutons {
        flex-direction: column;
        align-items: flex-start;
    }

    .boutons h3 {
        margin-top: 0;
    }

    .boutons ul {
        padding: 0;
    }

    .boutons li {
        font-size: 16px;
        padding: 15px 14px;
    }

    /* Hébergements et populaires */
    
    .hébergements-et-populaires {
        flex-direction: column;
    }

    /* Hébergements */

    .hébergements {
        width: 100%;
    }

    /* Populaires */

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

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

    .populaires-cartes .carte {
        width: 30%;
    }

    .populaires-cartes .carte h5 {
        font-size: 14px;
    }

    /* Activités */

    .carte2 img {
        height: 200px;
    }

    .carte2 h4 {
        height: 70px;
    }
}

/******** Ecran téléphone ********/
@media (max-width: 768px) {
    .main-contenu {
        padding: 0;
    }

    /* Header */

    nav {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    nav a {
       margin-left: 40px;
       margin-right: 40px;
    }

    nav img {
        padding-bottom: 20px;
    }

    .liens {
        width: 100%;
    }

    .lien1,
    .lien2 {
        width: 50%;
        border-bottom: 2px solid #F2F2F2;
        padding-bottom: 15px;
        margin: 0;
        text-align: center;
    }

    .lien1:hover,
    .lien2:hover {
        border-bottom: 2px solid #0065FC;
        padding-bottom: 15px;
        border-top: none;
    }

    /* Main */

    .présentation1 {
        margin-left: 20px;
        margin-right: 20px;
    }

    /* Barre de recherche */

    .recherche {
        justify-content: center;
        margin-left: 20px;
        margin-right: 20px;
    }

    .recherche p {
        display: none;
    }

    .recherche textarea {
        width: 70%;
        margin-right: -15px;
        padding : 16px 12px;
    }

    .recherche .fa-magnifying-glass {
        display: block;
    }

    /* Filtre */

    .boutons .titre {
        margin-left: 20px;
    }

    .boutons-logo {
        width: 100%;
        display: flex;
        justify-content: center;
    }

    .boutons-logo ul {
        flex-wrap: wrap;
        justify-content: space-around;
    }

    .boutons-logo li {
        font-size: 14px;
        margin-bottom: 20px;
        width: 35%;
        margin-right: 0px;
    }

    .boutons i {
        padding-right: 3%;
    }

    /* Logo information */

    .information {
        display: flex;
        margin-left: 20px;
        margin-right: 20px;
    }

    /* Hébergements et populaires */

    .hébergements-et-populaires {
        flex-direction: column-reverse;
    }

    .hébergements-et-populaires section {
        border-radius: 0;
        /* background: none; */
    }

    /* Populaires */

    .populaires {
        background-color:#F2F2F2;
        margin-top: 0;
    }

    .populaires-cartes {
        flex-direction: column;
    }

    .populaires-cartes .carte {
        width: auto;
        margin-top: 15px;
    }

    /* Hébergements */

    .hébergements {
        background-color: white;
    }

    .hébergements-cartes {
        flex-direction: column;
    }

    .hébergements-cartes .carte {
        width: auto;
        margin-top: 15px;
    }

    /* Activités */

    .activités-cartes {
        flex-direction: column;
        align-items: center;
    }

    .carte2 {
        width: 84%;
        margin-bottom: 15px;
    }

    .carte2 img {
        height: 141px;
    }

    .carte2 h4 {
        height: 59px;
    }

    /* Footer */

    footer {
        flex-direction: column;
    }

    footer div {
        margin-top: 15px;
        margin-bottom: 5px;
    }
}