/*General*/

:root {
    --bleu: #0065fc;
    --bleu-clair: #DEEBFF;
    --bg-gris: #F2F2F2;     
}

* {
    box-sizing: border-box;
}
 
body {
    font-family: "Raleway", sans-serif;
    margin: 0 auto;
    padding: 0;
}

a {
    color: inherit;
    text-decoration: none;
}

#bloc-total {
    margin-right: 1rem;
    margin-left: 1rem;
}


/* Header */

    /*Navbar*/

.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap; 
}

.header-image {
    margin-right: auto;
}

.header-nav {
    display: flex;
    align-items: center;  
}

.header-nav-lien {
    padding: 2rem;
    font-weight: 500;
    color: black;
    text-align: center;
    transition-duration: 0.1s;
    border-top: 3px transparent solid;
    display: flex;
    justify-content: center;
}

.header-nav-sinscrire {
    display: flex;
    align-items: center;
    padding: 2rem;
    transition-duration: 0.1s;
    border-top: 3px transparent solid;
    color: var(--bleu);
    font-weight: 600;
}

.header-nav-lien:hover {
    border-top: 3px solid var(--bleu);
    color: var(--bleu);
}

.header-nav-sinscrire:hover {
    border-top: 3px solid var(--bleu);
}



@media screen and (max-width: 380px) {

    .header-nav-lien {
        padding: 1rem;
    }
}

@media screen and (max-width: 600px) {
    .header-nav {
        order: 1;
        flex-basis: 100%;
        text-align: center;
        border-top: solid 3px transparent;
    }
    .header-nav-lien  {
        border-top: 3px transparent solid;
        flex-basis: 50%;
        border-bottom: 3px solid var(--bg-gris);
    }
    .header-nav-lien:hover {
        border-top-color: transparent;
        border-bottom-color: var(--bleu);
    }
}


    

 /*Recherche*/


.recherche-header-titre {
    margin-bottom: 0.5rem;   
}
.recherche-header-soustitre {
    margin-top: 0;
    opacity: 0.7;
}

#recherche {
   width: 100%;
}

.recherche-formulaire {
    display: inline-flex;
    max-width: 100%;
    overflow: auto;
}

.recherche-formulaire-icone {
    background-color: var(--bg-gris);
    border-radius: 1rem 0 0 1rem;
    text-align: center;
    padding: 1rem 1.25rem;  
}

.recherche-formulaire-input {
    width: 15rem;
    font-size: 1rem;
    font-weight: bolder;
    font-family: "Raleway", "Sans serif";
    padding: 0 1.3rem;
    border-right: none;
    border-left: none;
    border-top: 1px solid var(--bg-gris);
    border-bottom: 1px solid var(--bg-gris);
    box-sizing: border-box;    
}

.recherche-formulaire-boutton {
    background-color: var(--bleu);
    color: white;
    font-weight: bold;
    font-family: "Raleway", "Sans serif";
    font-size: 1rem;
    border: none;
    border-radius: 0 1rem 1rem 0;
    padding: 0 1.5rem;
    cursor: pointer;
}

.recherche-formulaire-boutton-texte-icone {
    display: none;
}


 /*filtres*/

.filtres {
    display: flex;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.filtres-titre {
    margin: 0 1.5rem 1rem 0;
    display: flex;
    align-items: center;
}

.varieté-filtres {
    display: flex;
    align-items: center;
    margin-right: 2rem;
    border: 2px solid #d9d9d9;
    border-radius: 2rem;
    margin-bottom: 1rem;
    cursor: pointer;
    transition-duration: 0.1s;
    font-weight: bold;  
}

.varieté-filtres-icone {
    background-color: var(--bleu-clair);
    border-radius: 100%;
    height: 3rem;
    width: 3rem;
    min-height: 3.5rem;
    min-width: 3.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: -2px;
}

.varieté-filtres-icone i {
    color: var(--bleu);
}

.varieté-filtres-titre {
    margin: 0 1rem;
}

/*animation au survol des filtres*/

.varieté-filtres-titre:hover {
    color: var(--bleu);
    transform: scale(1.05);
    cursor: pointer;
}

/*info*/

.info {
    display: flex;
    align-items: center;
    margin: 1rem 0 2rem 0;
}
   
.info-icone {
  height: 2rem;
  width: 2rem;
  min-height: 2rem;
  min-width: 2rem;
  border: solid 1px #d9d9d9;
  border-radius: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 1rem;
}

.info-icone i {
    color: var(--bleu);
}

.information-texte {
    margin: 0;
}



@media screen and (max-width: 380px) {
    .recherche-header-titre {
        font-size: 1.2rem; 
    }
    .recherche-header-soustitre {
        font-size: 0.9rem;
    }
    .recherche-formulaire-input {
        font-size: 0.8rem;
    }
}

@media screen and (max-width: 460px) {
    .recherche-header-titre {
        margin: 2rem 0.5rem 0.5rem 2rem;   
    }
    .recherche-header-soustitre {
        margin-left: 2rem;
    }
    .filtres {
        margin-left: 2rem;
    }
    .filtres-titre{
        margin: 1rem 11rem 1rem 0;
    }
    .recherche-formulaire {
        display: inline-flex;
        margin-left: 1.5rem; 
    }
    .recherche-formulaire-boutton-texte {
        display: none;
    }
    .recherche-formulaire-input {
        width: 100%;
    }
    .recherche-formulaire-boutton-texte-icone {
        padding: 0.9rem;
        display: block;
    }
    .recherche-formulaire-boutton {
        border-radius: 1rem;
        padding: 0 0.5rem;
    }
    .varieté-filtres {
        margin-right: 0.5rem;
    }
    .filtres-titre {
        font-size: 20px;   
    }
    .info  {
        margin-left: 2rem;
    } 
}

@media screen and (max-width: 800px) {
    .filtres-titre {
        width: 100%;
    }
}


/*Main*/

.main {
    max-width: 100%;
    margin: 0 auto;
    box-sizing: border-box;
}


/*Section : Hébergements*/

.liste-hebergements {
    display: flex;  
}

.hebergements {
    flex-basis: 66%;
    height: 580px;
    border: solid 1px var(--bleu-clair);
    background-color: var(--bg-gris);
    margin-right: 2rem;
    padding: 1rem;
    border-radius: 1rem;  
}

.liste-appartements {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    align-items: center;
    margin: 0.5rem;    
}


/*Hébergements : Carte des appartements*/

.carte-appartement {
    background-color:white;
    border: solid 1px var(--bg-gris);
    height: 200px;
    width: 31%;
    min-width: 210px;
    line-height: 0.9rem;  
    padding: 0.275rem;
    margin: 10px 0px;
    border-radius: 1.25rem;
    box-shadow: 0 0 16px #0000002e;
    cursor: pointer;  
}

.carte-appartement img {
    height: 110px;
    width: 100%;
    object-fit: cover;
    border-radius: 1rem 1rem 0 0;     
}

.carte-appartement h3 {
    margin: 0.6rem;
    margin-top: 10px;
    font-size: 1rem;
}

.carte-appartement p {
    font-size: 0.9rem;
    margin: 0.6rem;
    margin-top: 10px;
}

.hebergement-suite-lien {
    margin: 15px 30px 15px 20px;
    font-weight: bold;
}

/*animation au survol des cartes*/

.carte-appartement:hover {
    transform: scale(1.05);
}

/*couleur des étoiles*/

 .etoile {
    display: flex;
    margin-left: 0.6rem;
    margin-top: 10px;
    color:var(--bleu) ;
}

.gris {
    color: #b3b9c4;
}


/*Section : Populaires*/

.populaires {
    flex-basis: 33%;
    height: 580px;
    border: solid 1px var(--bleu-clair);
    background-color: var(--bg-gris);
    padding: 1rem;
    border-radius: 1rem;
}

.populaire-titre {
    display: flex;
    justify-content: space-between;
}

.populaires h2, .hebergements h2 {
    margin-top: 0.5rem;
    margin-right: 0.5rem;
}

.liste-populaire-appartement {
    display: flex;
    flex-direction: column;   
} 


/*Populaires : Cartes des appartements*/

.carte-appartement-populaire {
    background-color:white;
    border: solid 1px var(--bg-gris);
    height: 140px;
    line-height: 0.9rem; 
    margin: 0rem 0.5rem 1.5rem 0.5rem;
    padding: 0.25rem;
    border-radius: 1rem;
    box-shadow: 0 0 16px #0000002e;
    cursor: pointer;
}

.carte-appartement-populaire img {
    height: 130px;
    width: 40%;
    min-width: 40%;
    border-radius: 1rem 0 0 1rem;
    margin-right: 0.5rem;
    object-fit: cover;
}

.carte-populaire-photo {
    display: flex;  
}

.carte-populaire-description {
    display: flex;
    flex-direction: column;
    justify-content: space-between; 
}

.carte-populaire-description h3 {
    font-size: 1rem;
    margin-left: 0.5rem;
}

.carte-populaire-description p {
    font-size: 0.9rem;
    margin-top: 0px;
    margin-left: 0.5rem;
}

.carte-populaire-description .etoile {
    margin-top: auto;
    margin-left: 0.5rem;
    margin-bottom: 0.5rem;
}

/*animation au survol des cartes*/

.carte-appartement-populaire:hover {
    transform: scale(1.05);
}


@media screen and (max-width: 550px) {
    .liste-appartements {
        display: flex;
        flex-direction: column;
    }  
    .populaires {
        border-radius: 0;
    }
    .hebergements {
        margin-top: 1rem;
    }
    .carte-appartement {
        width: 100%;  
    }
    .hebergement-suite-lien {
        margin-top: 2rem;
        margin-left: 0.5rem;
    }
    .hebergement-titre {
        margin-left: 0;
    }

}

@media screen and (max-width: 950px) {
    .liste-hebergements {
        flex-direction: column;
    }
    .populaires {
        order: -1;   
    }
    .liste-populaire-appartement {
        flex-direction: column;
    }
    .hebergements {
        background-color: white;
        border: 0;
        margin-right: 0;
    }
    .liste-appartements {
        margin: 0 auto;
    }
}


@media screen and (min-width: 950px) and (max-width: 1150px) {
    .liste-hebergements {
        flex-direction: column;
    }
    .populaires {
        order: -1;   
    }
    .liste-populaire-appartement {
        flex-direction: row;
    }
    .carte-appartement-populaire {
        width: 100%;
    }
    .hebergements {
        background-color: transparent;
        border: 0;
        margin-right: 0;
    }
    .liste-appartements {
        margin: 0 auto;
    }
}


/*Section : Activités*/

    /*Activités : Cartes des activités*/
    
.activites {
    margin-top: 3rem;
    margin-bottom: 3rem;   
}

.activites-marseille {
    height: 500px;
    width: 100%;
    display: flex; 
    justify-content: space-between; 
}

.activites-titre {
    margin-top: 0.5rem;
    margin-right: 0.5rem;
}

.activites-marseille-grand {
    height: 500px;
    width: 23%;
}

.activites-marseille-grand img {
    height: 445px;
    width: 100%;
}

.activites-marseille-petit {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 23%;
}

.activites-marseille-petit img {
    height: 170px;
    width: 100%;
}

.activites-marseille-petit h3 {
    margin: 0.5rem;
    padding: 0.5rem;   
}

.carte-activite {
    background-color:white;
    border-radius: 1rem;
    box-shadow: 0 0 16px #0000002e; 
}

.carte-activite img {
    border-radius: 1rem 1rem 0 0;
    object-fit: cover
}

.carte-activite h3 {
    margin: 0.5rem;
    padding: 0.5rem;  
}

/*animation au survol des cartes*/

.carte-activite:hover {
    transform: scale(1.05);
}


@media screen and (max-width: 750px) {
    .activites-marseille {
        display: flex;
        flex-direction: column;
        height: 1300px;
    }
    .activites-marseille-grand {
        width: 100%;
    }
    .activites-marseille-petit {
        display: block;
        width: 100%;
    }
    .activites-marseille img {
        width: 100%; 
        height: 150px; 
    }
    .activites-titre {
         margin-left: 0.5rem;
    }
}



/*footer*/

.footer {
        background-color: var(--bg-gris);
        width: 100%;
        margin-top: 4rem;
        height: auto;
}

.footer-conteneur {
        display: flex;
        max-width: 100%;
        margin-left: 1rem;
        box-sizing: border-box;
}

.footer-conteneur-colonne {
    width: 30%;
    padding: 0.3rem;
}

.footer-conteneur-colonne-liens {
    display: block;
    margin: 1rem 0;
}

.footer-conteneur-colonne-liens:hover {
    color: var(--bleu);
}



@media screen and (max-width: 650px) {
    .footer-conteneur {
        flex-direction: column;
    }
    .footer-conteneur-colonne {
        width: 100%;
        padding: 0;
        margin: 1rem 0;
    }
    .footer-conteneur-colonne-titre {
        margin: 0;
    }
    .footer-conteneur-colonne:last-child {
        margin-bottom: 0;
    }
}


