* {
    position: relative;
}

body {
    font-family: 'Roboto', sans-serif;
    position: relative;
    width: 100%;
    margin-left: 0;
    overflow-x: hidden;
}

html {
    scroll-behavior: smooth;
    scrollbar-width: none;
}

/*declaration des variaables*/
:root {
    --text-color: #e8dc86;
    --text-fond: yellow;
    --text-hover: #f8eb8f69;
    --button-hover: #7a6a01;
}

img {
    cursor: pointer;
}

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

nav {
    border: none;
    display: flex;
    align-items: center;
    width: 100%;
    background: black;
    justify-content: space-around;
    transform: translateZ(0);
    position: fixed;
    top: 0;
    left: 0;
    z-index: 100;
}

.logo {
    width: 170px;
    height: 150px;
}

.btm-logo {
    text-align: center;
    display: flex;
    height: 110px;
    width: auto;
}

/*personalisation du logo*/

.navLinks {
    display: flex;
    place-items: center;
    list-style: none;
    gap: 50px;
    color: white;
    font-size: 18px;
}

li {
    transition: all 0.5s ease;
    transform: translateY(0);
    list-style: none;
    cursor: pointer;
}

li:hover {
    transition: all 0.5s ease;
    transform: translateY(-4px);
    color: var(--text-color);
}

.li-primaire {
    color: var(--text-color);
}

.btm-nav-contact {
    font-size: 14px;
    padding: 7px;
    border-radius: 5px;
    border: none;
    background: var(--text-color);
    transition: all 0.5s ease;
    cursor: pointer;
}

.btm-nav-contact:hover {
    transition: all 0.5s ease;
    background: var(--button-hover);
    transform: scale(0.98);
}

.lien-contact {
    color: var(--text-color);
    text-decoration: none;
    transition: all 0.5s ease;
}

.lien-contact:hover {
    color: rgba(175, 175, 5, 0.959);
    transition: all 0.5s ease;
    margin: 0;
    transform: scale(1.04)translateY(-4px);
}

/*personalisation de la navbar sur petit ecran*/

.hamburger {
    display: none;
    cursor: pointer;
    transition: all 0.8s ease;
}

.hamburger:hover {
    transition: all 0.8s ease;
    transform: scale(1.1);
}

.hamburger span {
    display: block;
    width: 24px;
    height: 3px;
    margin: 5px;
    background: var(--text-color);
}

/* HERO */
.service-hero{
    height: 50vh;
    background: url("../images/Barred_exterieurmurmaison.webp") center/cover;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-align: center;
}

.hero-content{
    background: rgba(0,0,0,0.5);
    padding: 30px;
    border-radius: 10px;
}

/* DESCRIPTION */
.service-description{
    padding: 60px 10%;
    text-align: center;
}

.container{
    max-width: 700px;
    margin: auto;
}

/* BENEFITS */
.service-benefits{
    padding: 60px 10%;
    background: #f5f7fa;
    text-align: center;
}

.benefits-container{
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.benefit{
    background: white;
    padding: 20px;
    border-radius: 5px;
}

/* IMAGE */
.service-image{
    text-align: center;
    padding: 40px;
}

.service-image img{
    width: 80%;
    border-radius: 10px;
}

/* CTA */
.service-cta{
    padding: 60px;
    text-align: center;
    background: #111;
    color: white;
}

.btn{
    display: inline-block;
    margin-top: 20px;
    padding: 12px 25px;
    background: var(--text-color);
    text-decoration: none;
    border-radius: 5px;
    border: none;
    cursor: pointer;
    transition: all 0.5s ease;
}

.btn:hover {
    background: var(--button-hover);
    color: white;
}

/*responsive android*/

@media (max-width: 900px) {
    .navLinks {
        flex-direction: column;
        display: none;
        place-items: initial;
        gap: 20px;
        top: 5dvh;
        right: 0;
        height: 100dvh;
        width: 20vh;
        position: fixed;
        background: #2d2b1a;
        border-radius: 15px 0 0 15px;
        padding: 15px;
        transition: all 1s ease;
        transform: translateX(110px);
        opacity: 0;
        z-index: 999;
        border: none;
        border-left: 3px solid var(--text-color);
        border-top: 3px solid var(--text-color);
        box-shadow: -1px -1px 5px var(--text-fond);
    }
    .navLinks.open {
        display: flex;
        opacity: 1;
        transition: all 1s ease;
        transform: translateX(0);
        z-index: 10;
    }
    .hamburger {
        display: block;
    }
    .logo {
        width: 100px;
        height: 90px;
    }
    .btm-logo {
        height: 60px;
    }
/*Description de la navbar*/
}

/*programme d'apparution des elements a l'ecran*/

.haut {
    opacity: 0;
    transform: translateY(-50px);
    transition: all 1s ease;
}
.haut.active {
    opacity: 1;
    transform: translateY(0);
}
.bas {
    opacity: 0;
    transform: translateY(50px);
    transition: all 1s ease;
}
.bas.active {
    opacity: 1;
    transform: translateY(0);
}


