* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f9f9f9;
}

header {
    background: linear-gradient(135deg, #2d5016 0%, #77dd34 100%);;
    color: white;
    padding: 1rem;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

/* Styles pour l'image du logo */
.imglogo {
    max-height: 50px;
    width: auto;
    margin-right: 10px;
}

/* Styles pour le conteneur du logo et du texte (garantit l'alignement côte à côte) */
.logo {
    font-size: 1.5rem;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: white;
    text-decoration: none;
}

.logo::before {
    font-size: 1.8rem;
}

/* --- STYLES DU BOUTON BURGER CORRIGÉS (GLOBAL) --- */

.burger-menu {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.burger-icon {
    display: block;
    width: 25px;
    height: 3px;
    background: white;
    border-radius: 3px;
    position: relative;
    transition: background 0.3s;
}

.burger-icon::before,
.burger-icon::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 3px;
    background: white;
    border-radius: 3px;
    transition: transform 0.3s, top 0.3s;
}

.burger-icon::before {
    top: -8px; 
}

.burger-icon::after {
    top: 8px;
}

.burger-menu.open .burger-icon {
    background: transparent;
}

.burger-menu.open .burger-icon::before {
    top: 0;
    transform: rotate(45deg);
}

.burger-menu.open .burger-icon::after {
    top: 0;
    transform: rotate(-45deg);
}
/* --- FIN STYLES DU BOUTON BURGER CORRIGÉS --- */


.header-actions {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.language-switch {
    background: rgba(255,255,255,0.2);
    border: 1px solid rgba(255,255,255,0.3);
    color: white;
    padding: 0.5rem 0.8rem;
    border-radius: 4px;
    font-size: 0.85rem;
    cursor: pointer;
    text-decoration: none;
}

.language-switch:hover {
    background: rgba(255,255,255,0.3);
}

.phone-btn {
    background: #ff6b35;
    color: white;
    padding: 0.75rem 1rem;
    border: none;
    border-radius: 5px;
    font-size: 0.9rem;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.3s;
}

.phone-btn:hover {
    background: #e55a25;
}

nav {
    width: auto;
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: flex-start;
    margin-top: 0;
}

nav a {
    color: white;
    text-decoration: none;
    font-size: 0.9rem;
    transition: opacity 0.3s;
}

nav a:hover {
    opacity: 0.8;
}

/* --- DÉBUT MODIFICATION SECTION .HERO (IMAGE EN FOND) --- */
.hero {
    /* Suppression du background color/gradient pour laisser place à l'image */
    /* background: linear-gradient(135deg, #2d5016 0%, #3d6b1f 100%); */
    
    color: white;
    padding: 2rem 1rem;
    text-align: center;
    min-height: 400px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;

    /* Clé 1 : Positionnement relatif pour que les enfants absolus s'y référencent */
    position: relative;
    overflow: hidden; 
}

/* Styles pour l'image <img> incluse dans le HTML */
.hero img {
    /* Clé 2 : Positionnement absolu pour le fond */
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover; /* Assure que l'image couvre entièrement la zone */
    z-index: 1; /* Place l'image en arrière-plan */
}

/* Overlay pour améliorer la lisibilité */
.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.45); /* Overlay sombre (45% d'opacité) */
    z-index: 2; /* Place l'overlay au-dessus de l'image (z-index: 1) */
}

/* Le contenu du hero (texte, boutons) doit être au-dessus de l'overlay */
.hero .container {
    position: relative;
    z-index: 3; /* Place le contenu au-dessus de l'overlay (z-index: 2) */
    /* Ajustement de la hauteur pour garantir que le texte soit au milieu */
    height: 100%; 
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.hero h1 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: white; /* Assure que le titre est blanc */
    text-shadow: 2px 2px 4px rgba(0,0,0,0.7); /* Contraste accru */
}

.hero p {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    opacity: 1;
    color: white;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.7);
}

.hero .btn-secondary {
    background: rgba(255, 255, 255, 0.2); 
    border-color: white;
    color: white;
}
.hero .btn-secondary:hover {
    background: rgba(255, 255, 255, 0.4);
    color: white;
}
/* --- FIN MODIFICATION SECTION .HERO --- */


.cta-buttons {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    align-items: center;
}

.btn {
    padding: 1rem 2rem;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s;
    display: inline-block;
}

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

.btn-primary:hover {
    background: #e55a25;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255,107,53,0.3);
}

.btn-secondary {
    background: white;
    color: #2d5016;
    border: 2px solid white;
}

.btn-secondary:hover {
    background: transparent;
    color: white;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.section {
    padding: 3rem 1rem;
}

.section h2 {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    text-align: center;
    color: #2d5016;
}

.services {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.service-card {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
}

.service-card h3 {
    color: #2d5016;
    margin-bottom: 0.8rem;
    font-size: 1.2rem;
}

.service-card p {
    color: #666;
}

.service-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.about-content {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    line-height: 1.8;
    color: #555;
}

.about-content p {
    margin-bottom: 1rem;
}

.coverage {
    background: #f0f5eb;
    padding: 1.5rem;
    border-radius: 8px;
    margin-top: 1rem;
}

.coverage h3 {
    color: #2d5016;
    margin-bottom: 0.8rem;
}

.coverage-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 0.5rem;
    color: #555;
}

.coverage-item {
    padding: 0.5rem;
    background: white;
    border-radius: 4px;
    text-align: center;
    font-size: 0.9rem;
}

footer {
    background: #2d5016;
    color: white;
    padding: 2rem 1rem;
    text-align: center;
    margin-top: 2rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-section {
    margin-bottom: 1rem;
}

.footer-section h3 {
    margin-bottom: 0.5rem;
    font-size: 1rem;
}

.footer-section a {
    color: #ff6b35;
    text-decoration: none;
}

.footer-section a:hover {
    text-decoration: underline;
}

.contact-info {
    background: linear-gradient(135deg, #2d5016 0%, #3d6b1f 100%);
    color: white;
    padding: 2rem 1rem;
    text-align: center;
}

.contact-box {
    background: rgba(255,255,255,0.1);
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    backdrop-filter: blur(10px);
}

.contact-box a {
    color: #ff6b35;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1rem;
}

.testimonials {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

.testimonial {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    border-top: 3px solid #ff6b35;
}

.stars {
    color: #ff6b35;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.testimonial p {
    color: #666;
    margin-bottom: 0.5rem;
    font-style: italic;
}

.testimonial-author {
    color: #2d5016;
    font-weight: bold;
    font-size: 0.9rem;
}

.schema {
    display: none;
}

/* --- MEDIA QUERIES (DESKTOP ET TABLETTE) --- */
@media (min-width: 768px) {
    .hero h1 {
        font-size: 2.8rem;
    }

    .hero p {
        font-size: 1.3rem;
    }

    .services {
        grid-template-columns: repeat(2, 1fr);
    }

    .cta-buttons {
        flex-direction: row;
        gap: 1rem;
    }

    .btn {
        padding: 1rem 2.5rem;
    }

    .section h2 {
        font-size: 2.2rem;
    }

    .testimonials {
        grid-template-columns: repeat(2, 1fr);
    }

    .coverage-list {
        grid-template-columns: repeat(3, 1fr);
    }

    nav {
        margin-top: 0;
        justify-content: flex-start;
        width: auto;
    }
}


/* --- MEDIA QUERY POUR MOBILE (Max 767px) --- */
@media (max-width: 767px) {
    
    .imglogo {
        max-height: 40px; /* Rend le logo légèrement plus petit sur mobile */
        margin-right: 8px;
    }

    .header-content {
        position: relative;
        justify-content: space-between;
        flex-wrap: nowrap;
        padding-right: 1rem; 
    }

    .burger-menu {
        display: block;
    }
    
    .header-actions {
        display: none; 
    }

    .logo {
        display: flex; 
        align-items: center; 
        justify-content: flex-start;
        margin-bottom: 0;
    }

    /* Styles pour la navigation (le menu burger) sur mobile */
    nav {
        display: none; 
        flex-direction: column;
        width: 100%;
        position: absolute;
        top: 100%; 
        left: 0;
        background: #2d5016; 
        box-shadow: 0 5px 10px rgba(0,0,0,0.2);
        padding: 1rem 0;
        z-index: 99;
    }

    nav.open {
        display: flex;
    }
    
    nav a {
        padding: 0.75rem 1.5rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        text-align: left;
    }
    
    nav a:last-child {
        border-bottom: none;
    }
}
/* --- FIN MEDIA QUERY POUR MOBILE --- */


@media (min-width: 1024px) {
    .services {
        grid-template-columns: repeat(3, 1fr);
    }

    .testimonials {
        grid-template-columns: repeat(3, 1fr);
    }

    .hero {
        min-height: 500px;
    }
}

.serviceimg {
    width: 100%;
    border-radius: 8px;
}

        .service-detail {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 2rem;
            align-items: center;
            margin-bottom: 3rem;
            padding: 2rem;
            background: white;
            border-radius: 8px;
            border-left: 4px solid #2c5f2d;
        }

        .service-detail:nth-child(even) {
            grid-template-columns: 1fr 1fr;
            direction: rtl;
        }

        .service-detail:nth-child(even) > * {
            direction: ltr;
        }

        .service-detail h3 {
            color: #2c5f2d;
            font-size: 1.5rem;
            margin-bottom: 1rem;
        }

        .service-detail ul {
            list-style: none;
            padding: 0;
            margin: 1rem 0;
        }

        .service-detail ul li {
            padding-left: 1.5rem;
            margin-bottom: 0.5rem;
            position: relative;
        }

        .service-detail ul li:before {
            content: "✓";
            position: absolute;
            left: 0;
            color: #2c5f2d;
            font-weight: bold;
        }

        .process-steps {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
            gap: 2rem;
            margin-top: 2rem;
        }

        .step {
            text-align: center;
            padding: 2rem;
            background: white;
            border-radius: 8px;
        }

        .step-number {
            width: 50px;
            height: 50px;
            background: #2c5f2d;
            color: white;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 1.5rem;
            font-weight: bold;
            margin: 0 auto 1rem;
        }

        @media (max-width: 768px) {
            .service-detail {
                grid-template-columns: 1fr;
            }

            .service-detail:nth-child(even) {
                grid-template-columns: 1fr;
                direction: ltr;
            }
        }

                .contact-info-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
            gap: 2rem;
            margin-top: 2rem;
            margin-bottom: 2rem;
        }

        .contact-info-card {
            background: white;
            padding: 2rem;
            border-radius: 8px;
            border-top: 4px solid #2c5f2d;
            text-align: center;
            box-shadow: 0 2px 10px rgba(0,0,0,0.1);
        }

        .contact-info-card:hover {
            box-shadow: 0 4px 20px rgba(0,0,0,0.15);
            transform: translateY(-2px);
            transition: all 0.3s ease;
        }

        .info-icon {
            font-size: 2.5rem;
            margin-bottom: 1rem;
        }

        .contact-info-card h3 {
            color: #2c5f2d;
            margin-bottom: 1rem;
        }

        .faq-item {
            background: white;
            padding: 1.5rem;
            margin-bottom: 1.5rem;
            border-left: 4px solid #2c5f2d;
            border-radius: 4px;
        }

        .faq-item h3 {
            color: #2c5f2d;
            margin-bottom: 1rem;
            font-size: 1.1rem;
        }

        .faq-item p {
            color: #666;
            line-height: 1.6;
        }

        .benefits-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
            gap: 2rem;
            margin-top: 2rem;
        }

        .benefit-card {
            background: white;
            padding: 2rem;
            border-radius: 8px;
            text-align: center;
            box-shadow: 0 2px 10px rgba(0,0,0,0.1);
        }

        .benefit-card:hover {
            transform: translateY(-5px);
            box-shadow: 0 8px 25px rgba(0,0,0,0.15);
            transition: all 0.3s ease;
        }

        .benefit-icon {
            font-size: 2rem;
            margin-bottom: 1rem;
        }

        .benefit-card h3 {
            color: #2c5f2d;
            margin-bottom: 0.5rem;
        }

        .benefit-card p {
            color: #666;
            font-size: 0.95rem;
        }

        .cta-buttons {
            display: flex;
            gap: 1rem;
            justify-content: center;
            flex-wrap: wrap;
        }

        .btn {
            padding: 0.75rem 1.5rem;
            border: none;
            border-radius: 4px;
            text-decoration: none;
            font-weight: 600;
            transition: all 0.3s ease;
            cursor: pointer;
            display: inline-block;
        }

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

        .btn-primary:hover {
            background: #1a3a1b;
            transform: scale(1.05);
        }

        .btn-secondary {
            background: white;
            color: #2c5f2d;
            border: 2px solid white;
        }

        .btn-secondary:hover {
            background: rgba(255,255,255,0.1);
        }

        @media (max-width: 768px) {
            .form-container {
                padding: 1.5rem;
            }

            .cta-buttons {
                flex-direction: column;
            }

            .cta-buttons .btn {
                width: 100%;
            }
        }