* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Open Sans", system-ui;
}

a{
    text-decoration: none;
}

nav {
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    height: max-content;
    padding: 10px 100px 10px 100px;
    background-color: white;
}

.seconde_nav{
    position: absolute;
    z-index: 25;
    display: none;
}

.logo{
    width: 120px;
    height: auto;
}

.navbar {
    list-style-type: none;
    margin: 0;
    padding: 0;
    overflow: hidden;
    display: flex;
}

.navbar li {
    display: inline;
}

.nav-link {
    display: block;
    color: #484747;
    text-align: center;
    padding: 14px 20px;
    text-decoration: none;
    position: relative;
}

.logo_menuburger{
    position: absolute;
    z-index: 30;
    display: flex;
    align-items: center;
    width: 100%;
    top: 0;
}

.menu_hamberger{
    width: 40px;
    height: 30px;
    display: none;
    position: absolute;
    right: 0;
}

.nav-link:hover,
.nav-link.active {
    text-decoration: none;
}

.nav-link::after {
    content: '';
    display: block;
    width: 0;
    height: 2px;
    background: #e8ceb0;
    transition: width 0.3s;
    position: absolute;
    left: 10%;
    bottom: 0;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 80%;
}

@media(max-width: 1150px){
    nav {
        padding-left: 20px;
        padding-right: 20px;
    }

    .logo{
        margin-left: 30px;
    }

    .menu_hamberger{
        margin-right: 30px;
    }
}

@media(max-width: 900px){

    nav {
        padding-left: 0px;
        padding-right: 0px;
    }
  
    #premiere_nav{
        display: none;
    }

    .seconde_nav{
        display: flex;
        position: absolute;
        flex-direction: column;
        gap: 20px;
        width: 100%;
        background-color: rgb(255, 255, 255);
        border-top: 5px solid #e8ceb0;
        border-bottom: 5px solid #e8ceb0;
        backdrop-filter: blur(5px);
        padding: 70px 0px 70px 0px;
        top: 0;
        margin-top: 80px;
        margin-left: -100%;
        transition: all 0.5s ease;
    }

    .seconde_nav.mobile-menu{
        margin-left: 0;
    }

    .cont_carre_et_lien{
        display: flex;
        align-items: center;
        gap: 10px;
        margin-left: auto;
        margin-right: auto;
        width: 100px;
    }

    .pointcarre{
        width: 8px;
        height: 8px;
        background-color: #e8ceb0;
    }

    li{
        list-style: none;
    }

    .lien_second_nav{
        text-decoration: none;
        color: #484747;
        font-size: 15px;
    }
    
    .navbar{
        flex-direction: column;
        position: absolute;
        width: 100%;
        top: 0;
    }

    .menu_hamberger{
        display: block;
        z-index: 20;
    }
}

/* --------------------Slider---------------------- */
.slider {
    width: 100%;
    height: 400px;
    position: relative;
    overflow: hidden;
}

.slides {
    display: flex;
    position: relative;
    width: 100%;
    height: 100%;
}

.slide {
    width: 100%;
    height: 400px;
    background-size: cover;
    background-position: top;
    background-repeat: no-repeat;
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
    z-index: 0;
}

@media screen and (max-width: 800px){
    .slider {
        height: 250px;
    }

    .slide {
        height: 250px;
    }
}

@media screen and (max-width: 500px){
    .slider {
        height: 180px;
    }

    .slide {
        height: 180px;
    }
}

.slide:nth-child(1) {
    z-index: 1;
}

.overlay {
    background-color: rgba(0, 0, 0, 0);
    color: white;
    width: 100%;
    height: 100%;
    align-items: center;
}

.cont_infos_slider{
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.cont_infos{
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

h1 {
    font-size: 3em;
    font-family: 'Open Sans Condensed', sans-serif;
    font-weight: 700;
    text-align: center;
}

.soulignement-titre{
    height: 3px;
    width: 100px;
    background-color: #e8ceb0;
}

@media(max-width: 800px){
    h1{
        font-size: 2em;
    }
}

@media(max-width: 500px){
    h1{
        font-size: 1.5em;
    }
}

/* --------------------------------------------- */
.chaque_section{
    padding: 5% 10%;
}

.cont-photo-details{
    display: flex;
    justify-content: center;
}

.photo-membre{
    width: 500px;
    height: auto;
}

.photo-tablete{
    display: none;
}

.cont-details{
    width: 500px;
    height: 500px;
    background-color: #e8ceb0;
    padding: 5%;
    display: flex;
    justify-content: center;
    flex-direction: column;
}

.cont-nom-post{
    width: max-content;
    height: max-content;
    margin-bottom: 30px;
}

.nom{
    font-family: 'Open Sans Condensed';
    font-weight: 600;
    color: #ffffff;
    font-size: 35px;
}

.explication-post{
    font-weight: 700;
    font-style: italic;
}

.post{
    color: #484747;
}

.contact-membre{
    margin: 10px 0;
}

span{
    color: #ffffff;
}

.biographie{
    margin-top: 50px;
    color: #484747;
    line-height: 30px;
    text-align: justify;
}

@media(max-width: 1400px){
    .photo-membre{
        width: 400px;
        height: auto;
    }

    .cont-details{
        width: 400px;
        height: 400px;
    }
}

@media(max-width: 1000px){
    .photo-membre{
        width: 300px;
        height: auto;
    }

    .cont-details{
        width: 300px;
        height: 300px;
        padding: 3%;
    }

    .nom{
        font-family: 'Open Sans Condensed';
        font-weight: 600;
        color: #ffffff;
        font-size: 22px;
    }

    .cont-nom-post{
        margin-bottom: 10px;
    }

    .contact-membre{
        margin: 3px 0;
        font-size: 15px;
    }

    .explication-post{
        font-size: 15px;
        margin-bottom: 10px;
    }
}

@media(max-width: 800px){
    .photo-membre{
        display: none;
    }

    .contact-membre{
        display: none;
    }

    .cont-photo-details{
        flex-direction: column;
        align-items: center;
    }

    .cont-details{
        width: 400px;
        height: 200px;
        justify-content: center;
        align-items: center;
        text-align: center;
    }

    .nom{
        font-size: 30px;
    }

    .photo-tablete{
        display: block;
        width: 400px;
        height: 400px;
        background-size: cover;
        background-image: url(/images/joanita.webp);
    }

    #profil_rick{
        background-image: url(/images/rick_warel.webp);
    }

    #profil_anonyme{
        background-image: url(/images/anonyme.webp);
    }
}

@media(max-width: 550px){
    .cont-details{
        width: 300px;
        height: 150px;
    }

    .nom{
        font-size: 25px;
    }

    .post{
        font-size: 13px;
    }

    .photo-tablete{
        width: 300px;
        height: 300px;
    }

    .biographie{
        font-size: 15px;
    }
}

@media(max-width: 350px){
    .cont-details{
        width: 250px;
        height: 150px;
    }

    .nom{
        font-size: 18px;
    }

    .post{
        font-size: 13px;
    }

    .photo-tablete{
        width: 250px;
        height: 250px;
    }
}

.titre-detail{
    color: #484747;
    font-family: 'Open Sans Condensed';
    font-weight: 600;
}

/* -----------------Footer--------------------- */

.cont-chaque-statistique{
    display: flex;
    align-items: center;
    gap: 10px;
}

.pourcentage{
    font-family: 'Open Sans Condensed', sans-serif;
    font-weight: 800;
    font-size: 60px;
    color: #e8ceb0;
}

.barre-separatrice{
    height: 50px;
    width: 3px;
    background-color: #484747;
}

.cont-statistiques{
    display: flex;
    align-items: center;
    gap: 50px;
    justify-content: center;
    justify-content: center;
    width: 100%;
}

.libelet{
    font-size: 15px;
}

@media(max-width: 1270px){
    .pourcentage{
        font-size: 40px;
    }

    .barre-separatrice{
        height: 30px;
        width: 3px;
        background-color: #484747;
    }

    .libelet{
        font-size: 12px;
    }
}


@media(max-width: 900px){
    .pourcentage{
        font-size: 30px;
    }

    .barre-separatrice{
        height: 30px;
        width: 3px;
        background-color: #484747;
    }

    .libelet{
        font-size: 12px;
    }
}

@media(max-width: 750px){
    .cont-statistiques{
        display: grid;
        grid-template-columns: 200px 200px;
        justify-items: center;
    }

    .pourcentage{
        font-size: 50px;
    }
}

@media(max-width: 500px){
    .cont-statistiques{
        display: flex;
        flex-direction: column;
    }

    .pourcentage{
        font-size: 50px;
    }
}

.cont-fond-img {
    min-height: 300px;
    width: 100%;
    background-image: url(/images/fond\ footer.webp);
    background-size: cover;
    background-position: center;
    padding: 50px 10%;
    position: relative;
    margin-top: 50px;
}

.cont-fond-img::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    backdrop-filter: blur(5px);
    background-color: #484747a8;
}

.cont-element-footer{
    position: relative;
    display: flex;
}

.cont-logo-lien{
    display: flex;
    flex-direction: column;
    gap: 50px;
    width: 50%;
}

.logo-footer{
    width: 170px;
    height: auto;
}

.cont-lien-devis{width: max-content;}

.lien-devis{
    width: 320px;
    height: 50px;
    background-color: #ffffff;
    color: #484747;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    gap: 10px;
}

.acroche-liens-rs{
    width: 50%;
}

#liens-petit-ecran{
    display: none;
}

.acroche{
    font-family: 'Open Sans Condensed', sans-serif;
    font-size: 30px;
    font-weight: 700;
    color: white;
    font-style: italic;
    text-align: center;
}

.cont-lien-rs{
    display: flex;
   justify-content: space-between;
   margin-top: 50px;
}

.categorie{
    color: #e8ceb0;
    font-weight: 600;
    margin-bottom: 20px;
}

.chaque-lien{
    text-decoration: none;
    color: #ffffff;
    font-size: 15px;
}

.ligne{
    width: 100%;
    height: 1px;
    background-color: #ffffff25;
    position: relative;
    margin: 30px 0;
}

.copyrigth{
    position: relative;
    font-size: 13px;
    color: #ffffff3f;
}

@media(max-width: 1200px){
    .cont-fond-img {
        padding: 50px 3%;
    }
}

@media(max-width: 900px){
    .logo-footer{
        width: 140px;
        height: auto;
    }
    
    .lien-devis{
        width: 260px;
        height: 50px;
        font-size: 13px;
    }    
}

@media(max-width: 800px){
    #liens-petit-ecran{
        display: flex;
        position: relative;
        justify-content: center;
        gap: 100px;
    }

    #liens-grand-ecran{
        display: none;
    }

    .cont-element-footer{
       flex-direction: column;
    }

    .cont-logo-lien{
        width: 100%;
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: center;
        margin-bottom: 50px;
    }

    .retour-acroche{
        display: none;
    }

    .acroche-liens-rs{
        width: 100%;
    }
}

@media(max-width: 500px){
    #liens-petit-ecran{
        gap: 50px;
    }

    .cont-logo-lien{
        flex-direction: column;
    }
}

@media(max-width: 400px){
    #liens-petit-ecran{
        gap: 30px;
    }

    .acroche{
        font-size: 25px;
    }

    .chaque-lien{
        font-size: 12px;
    }
}