*{
    margin:0;
    padding:0;
    box-sizing:border-box;
    font-family:Arial, Helvetica, sans-serif;
}

body{
    background:#f5f5f5;
    overflow-x:hidden;
}

.header{
    width:100%;
}

.hero-content img{
    width:100%;
    height:auto;
    display:block;
}

.navbar{
    width:100%;
    background:#87CEEB;
    padding:15px 20px;
}

.menu{
    display:flex;
    align-items:center;
    justify-content:space-evenly;
    list-style:none;
    gap:20px;
}

.menu li a{
    display:inline-block;
    padding:12px 25px;
    color:white;
    text-decoration:none;
    font-size:1.1rem;
    font-weight:bold;
    border-radius:50px;
    background:rgba(255,255,255,0.2);
    transition:0.3s ease;
}

.menu li a:hover{
    transform:translateY(-3px);
    background:#2E8B57;
}

.main{
    display:flex;
    flex-direction:column;
    gap:80px;
}

.hero{
    width:100%;
    padding:20px 5%;
    background-color: azure;
}

.hero-container{
    display:flex;
    justify-content:flex-start;
    align-items:center;
    gap:20px;
    width:100%;
}

.sliderleft,
.sliderright{
    width:30%;
    min-height:500px;
    background:#2E8B57;
    border-radius:20px;
    overflow:hidden;
    display:flex;
    align-items:center;
    justify-content:center;
}

.hero-overlay{
    width: 80%;
    display: flex;
    flex-direction: column;
    /*align-items: center;*/
    justify-content: flex-start;
    gap: 20px;
    /*background-color: aqua;*/

    height: 100%;
    margin: 0;
    padding-top: 0;
    position: relative;
    top: -200px;
    left: -10px;

    /*overflow: hidden;*/ /* IMPORTANT pour couper les débordements */
}
.hero-overlay img{
    width: 100%;
    max-width: none;
    height: auto;
    object-fit: contain;
    margin-left: 2px;
   
}
/*.hero-overlay img:hover{
    transform: scale(1.03);
}*/

.slider-track{
    display:flex;
    flex-direction:column;
    gap:20px;
}

.slider-track img{
    width:100%;
    height:auto;
    object-fit:cover;
}

.right-content{
    padding:30px;
    text-align:center;
    color:white;
}

.right-content h2{
    font-size:2rem;
    margin-bottom:20px;
}

.right-content p{
    line-height:1.8;
}

.hero-buttons{
    display:flex;
    gap:20px;
    flex-wrap:wrap;
    justify-content:center;
}

.btn-primary,
.btn-secondary{
    padding:15px 25px;
    border:none;
    border-radius:50px;
    cursor:pointer;
    font-size:1rem;
    font-weight:bold;
    margin-bottom: 5px;
    transition:0.3s ease;
}

.btn-primary{
    background:#2E8B57;
    color:white;
}

.btn-secondary{
    background:#2E8B57;
    color:white;
}

.btn-primary:hover,
.btn-secondary:hover{
    transform:translateY(-3px);
}

.section-title{
    text-align:center;
    font-size:clamp(2rem, 5vw, 3rem);
    color:#2E8B57;
    margin-bottom:50px;
}

.services{
    padding:80px 5%;
}

.services-container{
    display:grid;
    grid-template-columns:repeat(auto-fit, minmax(250px, 1fr));
    gap:30px;
}

.service-card{
    background:white;
    border-radius:20px;
    overflow:hidden;
    box-shadow:0 10px 25px rgba(0,0,0,0.1);
    transition:0.3s ease;
}

.service-card:hover{
    transform:translateY(-10px);
}

.service-card img{
    width:100%;
    height:250px;
    object-fit:cover;
}

.service-card h3{
    font-size:2rem;
    color:#2E8B57;
    padding:20px 20px 10px;
}

.service-card p{
    padding:0 20px 30px;
    line-height:1.7;
    color:#444;
}

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

    .menu{
        flex-direction:column;
    }

    .hero-container{
        flex-direction:column;
    }

    .sliderleft,
    .sliderright,
    .hero-overlay{
        width:100%;
        min-height:auto;
    }

    .hero-buttons{
        flex-direction:column;
        width:100%;
    }

    .btn-primary,
    .btn-secondary{
        width:100%;
    }

    .service-card h3{
        font-size:1.5rem;
    }
}
