@import url('https://fonts.googleapis.com/css2?family=Inter:wght@100..900&display=swap');

header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: 0.6s;
    z-index: 10000;
    font-weight: 400;
    padding: 20px 0px;

}

header a {
    text-decoration: none;
}

/*Code pour bien arranger le logo suivi du texte Chez Vous Immobilier*/
.logo-texte {
    position: relative;
    display: flex;
    align-items: center;
    transition: 0.6s;
    text-decoration: none;
}

/* Style pour le logo */
header .logo img {
    position: relative;
    margin-left: 30px;
    width: 50%;
    transition: 0.6s;
}

/*Style pour le texte Chez Vous Immobilier*/
header .TexteLogo a h4 {
    position: relative;
    font-size: 35px;
    color: #dfb246;
    font-weight: 700;
    transition: 0.6s;
    font-family: "Inter", sans-serif;
}

header .TexteLogo a h4::after {
    content: '';
    position: absolute;
    background-color: #dfb246;
    left: 0;
    width: 0;
    bottom: -10px;
    height: 3px;
    box-sizing: border-box;
    transition: 0.5s ease;
    text-decoration: underline;
}

header .TexteLogo a h4:focus::after,
header .TexteLogo a h4:hover::after {
    width: 100%;
}


/* Style pour la navigation */
header nav ul {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

header nav ul li {
    position: relative;
}

header nav ul li:first-child {
    margin-left: 0;
}

header nav ul li a {
    position: relative;
    margin: 0 15px;
    text-decoration: none;
    color: #0d0d0d;
    letter-spacing: 1px;
    font-weight: 500;
    font-family: "Inter", sans-serif;
    transition: 0.6s ease;
}

header nav ul li a:not(.boutonContact):after {
    content: '';
    position: absolute;
    background-color: #dfb246;
    left: 0;
    width: 0;
    bottom: -10px;
    height: 3px;
    box-sizing: border-box;
    transition: 0.5s ease;
}

header nav ul li a:not(.boutonContact):focus::after,
header nav ul li a:not(.boutonContact):hover::after {
    width: 100%;
}

/*Code pour le petit bouton Service doré*/
.boutonContact {
    position: relative;
    background: none;
    color: #dfb246;
    border: 2px solid #dfb246;
    border-radius: 3px;
    padding: 9px 18px;
    cursor: pointer;
    transition: 0.3s ease;
    margin-right: 40px;
    letter-spacing: 1px;
    font-weight: bold;
}

.boutonContact:focus,
.boutonContact:hover {
    background-color: #dfb246;
    color: #fff;
    border-color: #dfb246;
    transition: 0.5s ease;
}

/*Fin du code pour le bouton Service doré*/


/*Code qui concerne tout le header.sticky (cad le header quand on scroll)*/
header.sticky {
    background: #0d0d0d;
    padding: 0px 0px;
}

header.sticky .logo-texte {
    display: flex;
    align-items: center;
    transition: 0.6s;
    text-decoration: none;
}

header.sticky .logo {
    position: relative;
    transition: 0.6s;
}

header.sticky .TexteLogo h4 {
    position: relative;
    transition: 0.6s;
}

header.sticky ul li a:not(.boutonContact) {
    transition: 0.6s ease;
    color: #fff;
}

header.sticky .boutonContact {
    background: none;
    transition: 0.6s;
}

header.sticky .boutonContact:focus,
header.sticky .boutonContact:hover {
    background-color: #dfb246;
    border-color: #dfb246;
    color: #0d0d0d;
    transition: 0.6s;
}

@media (max-width: 1430px) {
    .TexteLogo {
        display: none;
    }
}

/*Fin du header.sticky*/

.open-menu,
.close-menu {
    position: absolute;
    font-size: 1.5rem;
    cursor: pointer;
    color: #fff;
    display: none;
}

.open-menu {
    top: 50%;
    transform: translateY(-50%);
    right: 10px;
}

.close-menu {
    top: 8%;
    transform: translateY(-100%);
    right: 10px;
}

#check {
    display: none;
}


@media screen and (max-width: 1080px) {
    header .TexteLogo h4 {
        display: none;
    }

    header nav ul li a {
        color: #fff;
    }

    .menu:not(.close-menu) {
        flex-direction: column;
        align-items: center;
        width: 40%;
        height: 100vh;
        position: fixed;
        top: 0;
        right: -100%;
        z-index: 100;
        border-left: 4px solid #fff;
        background-color: #0d0d0d;
        transition: all 0.4s ease-in-out;
    }

    .menu li,
    .menu a {
        margin-top: 40px;
    }

    .menu a {
        padding: 10px;
    }

    .menu .boutonContact {
        margin: 0;
    }

    header .open-menu,
    header .close-menu {
        display: block;
    }

    #check:checked~.menu {
        right: 0;
    }

}

@media (max-width: 1080px) {
    header {
        background-color: #0d0d0d;
    }

    header nav ul li {
        color: #fff;
    }
}

@media screen and (max-width: 548px){
    .menu:not(.close-menu) {
    width: 60%;
    }
}

@media screen and (max-width: 383px){
    .menu:not(.close-menu){
        width: 100%;
    }
}
    }
}