:root {
    --green: #5AA332;
    --green-light: #7bc152;
    --green-dark: #068D38;
    --yellow: #FFE703;
    --yellow-dark: #e6d002;
    --dark: #121c1c;
    --dark-surface: #1a2626;
    --light: #f4f9f4;
    --white: #ffffff;
    --gray: #e0e0e0;
    --text-muted: #6b7280;

    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -2px rgba(0, 0, 0, 0.04);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --shadow-glow: 0 0 20px rgba(90, 163, 50, 0.3);

    --radius: 16px;
    --radius-sm: 8px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Poppins", sans-serif;
    border: none;
    outline: none;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    background: var(--light);
    color: var(--dark);
    line-height: 1.7;
    overflow-x: hidden;
    background-image:
        radial-gradient(circle at 10% 10%, rgba(90, 163, 50, 0.05) 0%, transparent 40%),
        radial-gradient(circle at 90% 90%, rgba(255, 231, 3, 0.05) 0%, transparent 40%);
}

/* Header */
header {
    background: rgba(255, 255, 255, 0.85);
    padding: 1rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(12px);
    transition: var(--transition);
    border-bottom: 1px solid rgba(255, 255, 255, 0.5);
}

.logo {
    display: flex;
    align-items: center;
    transition: var(--transition);
}

.logo:hover {
    transform: scale(1.02);
}

.logo img {
    height: 80px;
    width: auto;
    object-fit: contain;
}

nav {
    display: flex;
    align-items: center;
    gap: 2.5rem;
}

nav a {
    text-decoration: none;
    color: var(--dark);
    font-weight: 500;
    font-size: 0.95rem;
    position: relative;
    transition: var(--transition);
    padding: 0.5rem 0;
}

nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--green), var(--yellow));
    transition: var(--transition);
    border-radius: 2px;
}

nav a:hover {
    color: var(--green);
}

nav a:hover::after {
    width: 100%;
}

.lang-btn {
    padding: 8px 20px;
    border: 2px solid var(--green);
    color: var(--green);
    background: transparent;
    cursor: pointer;
    border-radius: 50px;
    font-weight: 700;
    transition: var(--transition);
    font-size: 0.9rem;
}

.lang-btn:hover {
    background: var(--green);
    color: var(--white);
    box-shadow: var(--shadow-glow);
    transform: translateY(-2px);
}

/* Hero Section */
.hero {
    position: relative;
    height: 100vh;
    min-height: 700px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.slides {
    width: 100%;
    height: 100%;
    position: relative;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slide.active {
    opacity: 1;
    z-index: 10;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transform: scale(1.05);
    transition: transform 10s ease;
}

/* Dynamic Gradient Overlay */
.slide::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: none;
    z-index: 1;
}

.slide-caption {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -40%);
    text-align: center;
    color: var(--white);
    opacity: 0;
    transition: all 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
    z-index: 20;
    width: 100%;
    padding: 0 2rem;
    max-width: 1000px;
}

.slide.active .slide-caption {
    opacity: 1;
    transform: translate(-50%, -50%);
    transition-delay: 0.2s;
}

.slide-caption h2 {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    text-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    font-weight: 800;
    letter-spacing: -1px;
    line-height: 1.1;
    background: linear-gradient(to right, var(--yellow), var(--yellow-dark));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.read-more-btn {
    display: inline-block;
    margin-top: auto;
    color: var(--green);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    position: relative;
    transition: var(--transition);
}

.read-more-btn::after {
    content: ' →';
    display: inline-block;
    margin-left: 5px;
    transition: transform 0.3s ease;
}

.read-more-btn:hover {
    color: var(--yellow-dark);
}

.read-more-btn:hover::after {
    transform: translateX(5px);
}

.slide-caption p {
    font-size: 1.5rem;
    font-weight: 300;
    text-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    max-width: 700px;
    margin: 0 auto;
    color: rgba(255, 255, 255, 0.9);
}

/* Slider Controls */
.slider-controls button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 30;
    color: var(--white);
    font-size: 1.5rem;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.slider-controls button:hover {
    background: var(--white);
    color: var(--green);
    transform: translateY(-50%) scale(1.1);
}

.prev-btn {
    left: 40px;
}

.next-btn {
    right: 40px;
}

/* Dots */
.slider-dots {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 30;
}

.dot {
    width: 10px;
    height: 10px;
    background: rgba(255, 255, 255, 0.4);
    border-radius: 50%;
    cursor: pointer;
    transition: var(--transition);
}

.dot.active {
    background: var(--green);
    transform: scale(1.4);
    box-shadow: 0 0 10px rgba(90, 163, 50, 0.5);
}

/* Buttons */
.btn {
    background: linear-gradient(135deg, var(--yellow), #ffd700);
    color: var(--dark);
    padding: 16px 36px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(255, 231, 3, 0.3);
    transition: var(--transition);
    display: inline-block;
    text-decoration: none;
    border: none;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #ffd700, var(--yellow));
    z-index: -1;
    transition: var(--transition);
    opacity: 0;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255, 231, 3, 0.4);
}

.btn:hover::before {
    opacity: 1;
}

/* Sections */
.section {
    padding: 7rem 5%;
    position: relative;
}

.section h2 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    text-align: center;
    position: relative;
    font-weight: 800;
    letter-spacing: -0.5px;

    /* Animated Gradient */
    background: linear-gradient(90deg,
            var(--green) 0%,
            var(--yellow) 50%,
            var(--green) 100%);
    background-size: 200% auto;
    color: var(--green);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: textShimmer 3s linear infinite;
}

.section h2::after {
    content: '';
    display: block;
    width: 80px;
    height: 6px;
    background: linear-gradient(90deg, var(--green), var(--yellow));
    margin: 1rem auto 0;
    border-radius: 4px;
}

.section-desc {
    text-align: center;
    max-width: 750px;
    margin: 0 auto 4rem;
    font-size: 1.2rem;
    color: var(--text-muted);
    font-weight: 300;
}

/* About Section Specifics */
#about {
    background: linear-gradient(to bottom, #ffffff 0%, #f9fdf9 100%);
    padding: 4rem 5%;
}

.about-container {
    display: grid;
    grid-template-columns: 1fr auto auto auto;
    gap: 2rem;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
}

.about-text-block {
    padding: 1.5rem;
}

.about-separator {
    width: 4px;
    height: 200px;
    /* Hauteur de la ligne verticale */
    background: var(--yellow);
    border-radius: 2px;
    margin: 0 1rem;
}

.about-text-block h3 {
    font-size: 2.2rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 1.2rem;

    /* Animated Gradient */
    background: linear-gradient(90deg,
            var(--green) 0%,
            var(--yellow) 50%,
            var(--green) 100%);
    background-size: 200% auto;
    color: var(--green);
    /* Fallback */
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: textShimmer 3s linear infinite;
}

@keyframes textShimmer {
    to {
        background-position: 200% center;
    }
}

.about-text-block p {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--dark-surface);
    font-weight: 400;
    text-align: justify;
    hyphens: none;
}

.about-image-center {
    position: relative;
    overflow: hidden;
    border-radius: 50%;
    box-shadow: var(--shadow-lg);
    width: 350px;
    height: 350px;
    flex-shrink: 0;
    border: 8px solid white;
}

.about-image-center.small {
    width: 250px;
    height: 250px;
    border-width: 5px;
}

.about-image-center img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.about-image-center:hover img {
    transform: scale(1.05);
}

/* Decorative element behind image */
.about-image-center::before {
    content: '';
    position: absolute;
    top: -15px;
    right: -15px;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--green), var(--yellow));
    border-radius: 50%;
    z-index: -1;
    opacity: 0.3;
}

/* Responsive for About section */
@media (max-width: 900px) {
    .about-container {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .about-image-center {
        width: 300px;
        height: 300px;
        margin: 0 auto;
    }

    .about-text-block p {
        text-align: left;
    }
}

/* Services */
#services {
    padding: 4rem 5%;
}

#services .section-desc {
    margin-bottom: 2rem;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 3rem;
    perspective: 1000px;
}

#services .services-grid {
    gap: 2rem;
}

#services .card {
    padding: 2rem;
    gap: 1rem;
}

#services .card-icon {
    font-size: 3rem;
    padding: 0.8rem;
}

.card {
    background: var(--white);
    padding: 3rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1.5rem;
    border: 1px solid rgba(0, 0, 0, 0.04);
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, var(--green), var(--yellow));
    transform: scaleX(0);
    transform-origin: left;
    transition: var(--transition);
}

.card:hover {
    transform: translateY(-15px) rotateX(2deg);
    box-shadow: var(--shadow-lg);
    border-color: transparent;
}

.card:hover::before {
    transform: scaleX(1);
}

.card-icon {
    font-size: 3.5rem;
    color: var(--green);
    margin-bottom: 0.5rem;
    background: rgba(90, 163, 50, 0.1);
    padding: 1rem;
    border-radius: 20px;
    transition: var(--transition);
}

.card:hover .card-icon {
    background: var(--yellow);
    color: var(--white);
    transform: rotate(10deg);
}

.card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--dark);
}

.card p {
    color: var(--text-muted);
    font-size: 1.05rem;
    line-height: 1.6;
    text-align: justify;
    hyphens: none;
}

/* Commitment Section */
#commitment {
    background: linear-gradient(rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.2)), url('commitment_bg_v2.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: var(--white);
    border-radius: 0;
    margin: 0;
}

#commitment h2 {
    color: var(--yellow);
}

#commitment .section-desc {
    color: rgba(255, 255, 255, 0.8);
}

#commitment p {
    color: rgba(255, 255, 255, 0.9) !important;
    font-size: 1.25rem;
}

/* Team Section */
#team .card {
    text-align: center;
    align-items: center;
    border-top: none;
}

#team .card p {
    text-align: center;
}

#team .card:hover {
    transform: translateY(-10px);
}

#team .card-icon {
    background: transparent;
    font-size: 4rem;
    margin-bottom: 0;
}

/* References */
#references {
    background: #f9f9f9;
}

/* Contact */
.contact {
    margin: 4rem 5%;
    background: transparent;
}

.contact-container {
    background: linear-gradient(135deg, var(--dark-surface), black);
    border-radius: 30px;
    padding: 5rem 2rem;
    text-align: center;
    box-shadow: var(--shadow-lg);
    position: relative;
    overflow: hidden;
}

.contact-container::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(90, 163, 50, 0.1) 0%, transparent 50%);
    z-index: 1;
    pointer-events: none;
}

.contact h2 {
    color: var(--white);
    margin-bottom: 2rem;
    z-index: 2;
    position: relative;
}

.contact-form {
    max-width: 650px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
    background: rgba(255, 255, 255, 0.05);
    padding: 3rem;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1.2rem;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.1);
    color: var(--white);
    border: 1px solid rgba(255, 255, 255, 0.2);
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.form-group input:focus,
.form-group textarea:focus {
    background: rgba(255, 255, 255, 0.15);
    border-color: var(--green);
    box-shadow: 0 0 15px rgba(90, 163, 50, 0.2);
}

/* Footer */
footer {
    background: var(--dark);
    color: rgba(255, 255, 255, 0.6);
    text-align: center;
    padding: 3rem;
    font-size: 0.95rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* WhatsApp */
.whatsapp {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: #25D366;
    color: white;
    width: 65px;
    height: 65px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 32px;
    box-shadow: 0 10px 25px rgba(37, 211, 102, 0.4);
    transition: var(--transition);
    z-index: 999;
}

.whatsapp:hover {
    transform: scale(1.1) rotate(15deg);
    box-shadow: 0 15px 35px rgba(37, 211, 102, 0.6);
}

/* Scroll Reveal Animations */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 1s cubic-bezier(0.19, 1, 0.22, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive */
@media (max-width: 900px) {
    html {
        font-size: 14px;
    }

    .hero {
        padding-top: 0;
    }

    .hero-content h1 {
        font-size: 3rem;
    }

    .slide-caption h2 {
        font-size: 2.5rem;
    }

    .slide-caption p {
        font-size: 1.1rem;
    }

    header {
        padding: 1rem 5%;
    }

    nav {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: rgba(255, 255, 255, 0.98);
        padding: 2rem;
        box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
        border-top: 1px solid rgba(0, 0, 0, 0.05);
        align-items: center;
        gap: 1.5rem;
    }

    nav.active {
        display: flex;
    }

    nav a {
        font-size: 1.2rem;
        width: 100%;
        text-align: center;
        padding: 0.8rem 0;
    }

    nav .lang-btn {
        margin-top: 1rem;
    }

    .section {
        padding: 5rem 5%;
    }

    .about-container {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .about-images {
        gap: 1.5rem;
    }

    .about-text-block p {
        font-size: 1.1rem;
        text-align: left;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .contact {
        margin: 2rem 1rem;
    }

    .contact-container {
        padding: 3rem 1.5rem;
    }

    .contact-form {
        padding: 1.5rem;
    }

    .card {
        padding: 2rem 1.5rem;
    }

    .about-separator {
        display: none;
    }

    .prev-btn {
        left: 10px;
    }

    .next-btn {
        right: 10px;
    }
}