body {
    font-family: Verdana, Geneva, Tahoma, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #fff;
    text-align: center;
}

header {
    background: #068d1c;
    color: white;
    position: fixed;
    padding: 10px;
    top: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    /* display: flex; */
    /* justify-content: space-between; */
    align-items: center;
    /* flex-wrap: wrap; */
}
.menu-toggle {
    display: none;
    font-size: 3em;
    cursor: pointer;
    color: white;
    margin-right:20px;
}

nav ul {
    list-style: none;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    margin: 0;
}

nav ul li {
    margin: 0 10px;
}

nav ul li a {
    color: white;
    text-decoration: none;
    position: relative;
    padding: 0.5rem;
    transition: color 0.3s;
}

nav ul li a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -4px;
    left: 0;
    background-color: #0c4e17;
    transition: width 0.3s ease;
}

nav ul li a:hover::after {
    width: 100%;
}

nav ul li a:hover {
    color: #0c4e17;
}

#hero {
    min-height: 60vh;
    color: black;
    padding: 100px 20px 50px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

#hero #hero-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-evenly;
    gap: 20px;
    width: 100%;
}

#logo img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
}

.btn {
    background:#1f8f08;
    color: white;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 5px;
    transition: background 0.3s ease-in-out;
    margin-top: 20px;
}

.btn:hover {
    background: #0c4e17;
}

#services, #about, #contact, #hero {
    padding: 20px;
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
    opacity: 1;
    transform: translateY(0);
}

#services {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}
.article{
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}
.article-img{
    width: 10rem;
    height: 10rem;
    border-radius: 10;
    margin-bottom: 0.5rem;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
}

.article-card{
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    width: 300px;
    text-align:center;
    align-items: center;
    justify-content: center;
}
.service-icon {
    font-size: 2rem;
    color: #1f8f08;
    margin-bottom: 0.5rem;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
  }

.service-card {
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    width: 300px;
    text-align: center;
}
.service-icon {
    font-size: 2rem;
    color: #1f8f08;
    margin-bottom: 0.5rem;
  
    display: flex;
    justify-content: center;
    align-items: center;
  }

form input, form textarea, form button {
    display: block;
    width: 100%;
    max-width: 400px;
    margin: 10px auto;
    padding: 10px;
}
.service-texte{
    text-align: justify;
}
form button{
    background: #1f8f08;
    color: white;
    border: none;
    cursor: pointer;
    height: 45px;
    transition: background 0.3s ease-in-out;
}
form button:hover{
    background: #1f8f08;
    color: white;
    border: none;
    cursor: pointer;
    transition: background 0.3s ease-in-out;
}

footer {
    background: #1f8f08;
    color: white;
    width: 100%;
    padding: 10px;
    margin-top: 20px;
}

#contact {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-evenly;
    align-items: flex-start;
    gap: 20px;
    padding: 20px;
}

#contact-content {
    flex: 1 1 300px;
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

/* Animation d'apparition */
.show-section {
    opacity: 1 !important;
    transform: translateY(0) !important;
} 
  .carousel-container {
    position: relative;
    width: 90%;
    max-width: 600px;
    margin: 40px auto;
    overflow: hidden;
    border-radius: 20px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    background: white;
  }
  
  .carousel {
    position: relative; /* ✅ essentiel */
    width: 100%;
    height: 300px;
  }
  
  .carousel img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
    border-radius: 20px;
  }
  
  .carousel img.active {
    opacity: 1;
    z-index: 2;
  }
  
  .carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(255, 255, 255, 0.8);
    border: none;
    font-size: 24px;
    padding: 8px 12px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 3;
    transition: background 0.3s;
  }
  
  .carousel-btn:hover {
    background-color: white;
  }
  
  .carousel-btn.prev {
    left: 15px;
  }
  
  .carousel-btn.next {
    right: 15px;
  }
  .nav-link.active {
    color: #133b92;
    font-weight: bold;
    border-bottom: 2px solid #133b92;
  }
  

/* Media queries */
@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }
    header {
        display: flex;
        flex-wrap: wrap;
        justify-content: space-between;
        gap: 20px;
        box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    }
   
    nav ul {
        display: none;
        flex-direction: column;
        background-color: #00124c;
        position: absolute;
        width: 50%;
        top: 100px;
        right: 10px;
        padding: 1rem;
        border-radius: 5px;
        box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    }
    nav ul li {
        margin: 10px 0;
    }
    nav ul {
        flex-direction: column;
    }

    nav ul li {
        margin: 10px 0;
    }

    #hero-content {
        flex-direction: column;
        align-items: center;
    }

    #contact {
        flex-direction: column;
        align-items: center;
    }

    #contact-content {
        width: 100%;
    }
    nav ul.active {
        display: flex;
    }
}
