<!DOCTYPE html>
{% load static %}
<html lang="fr">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>ECOLUX BTP - Construction au Sénégal | 30+ ans d'excellence</title>
    <meta name="description" content="Expert en construction au Sénégal depuis 30 ans. Villas, immeubles, rénovations. Suivi digital transparent pour la diaspora.">
    
    
    <link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Playfair+Display:wght@400;700&display=swap">
</head>
<body>
    {% include "ecolux_styles.html" %}
    
    {% include "nav.html" %}

    <!-- Hero Section -->
    <section id="home" class="hero" style="background-image: url('{% static 'assets/img/bg3.jpg' %}');background-color:#35230d;background-blend-mode: overlay;">
        <div class="container hero-content">
            <div class="badge">
                <span class="pulse-dot"></span>
                <span>30+ ans d'excellence en construction</span>
            </div>
            <h1 class="hero-title">Bâtissons Votre Rêve au Sénégal</h1>
            <p class="hero-description">
                Suivi digital transparent, expertise locale, accompagnement de la diaspora. 
                Transformez votre vision en réalité avec ECOLUX BTP.
            </p>
            <div class="hero-buttons">
                <a href="#contact" class="btn-primary btn-lg">
                    <svg width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2">
                        <path d="M21 11.5a8.38 8.38 0 0 1-.9 3.8 8.5 8.5 0 0 1-7.6 4.7 8.38 8.38 0 0 1-3.8-.9L3 21l1.9-5.7a8.38 8.38 0 0 1-.9-3.8 8.5 8.5 0 0 1 4.7-7.6 8.38 8.38 0 0 1 3.8-.9h.5a8.48 8.48 0 0 1 8 8v.5z"></path>
                    </svg>
                    Consultation Gratuite
                </a>
                <a href="{% url 'app:simulation' %}" class="btn-outline btn-lg">
                    <svg width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2">
                        <rect x="4" y="2" width="16" height="20" rx="2" ry="2"></rect>
                        <line x1="8" y1="6" x2="16" y2="6"></line>
                        <line x1="8" y1="10" x2="16" y2="10"></line>
                        <line x1="8" y1="14" x2="12" y2="14"></line>
                    </svg>
                    Simuler Mon Projet
                </a>
            </div>
            <div class="hero-stats">
                <div class="stat">
                    <div class="stat-number">6+</div>
                    <div class="stat-label">Années d'expérience</div>
                </div>
                <div class="stat">
                    <div class="stat-number">{{ stats.total_projects|default:"100+" }}</div>
                    <div class="stat-label">Projets réalisés</div>
                </div>
                <div class="stat">
                    <div class="stat-number">90%</div>
                    <div class="stat-label">Clients satisfaits</div>
                </div>
            </div>
        </div>
    </section>
            </div>
        </div>
        <div class="scroll-indicator">
            <div class="scroll-dot"></div>
        </div>
    </section>

    <!-- À Propos Section -->
    <section id="apropos" class="section">
        <div class="container">
            <div class="apropos-content" style="display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center;">
            <div class="apropos-image">
                <img src="{% static 'assets/img/bg3.jpg' %}" alt="ECOLUX BTP - À propos" style="width: 100%; height: 400px; object-fit: cover; border-radius: 12px;">
            </div>
            <div class="apropos-text" style="color: #35230d;">
                <div class="section-badge">
                <svg width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2">
                    <path d="M20 21v-2a4 4 0 0 0-4-4H8a4 4 0 0 0-4 4v2"></path>
                    <circle cx="12" cy="7" r="4"></circle>
                </svg>
                À Propos
                </div>
                <h2 style="color: #35230d;margin-bottom: 13px;">Notre Histoire</h2>

                <p style="color: #35230d;">
                ECOLUX BTP est une entreprise écosociale, technique et humaine, fondée et dirigée par <strong>Mme Marieme Ndiaye</strong>, ingénieure en génie civil et entrepreneure‑manager, forte de près de 10 ans d’expérience dans la conception, la coordination et la réalisation de projets de construction, jusqu’à la remise des clés.
                </p>
                <br>
                <p style="color: #35230d;">
                Depuis 2017, <strong>ECOLUX</strong> est bâtie comme un écosystème complet dédié à la construction durable et transparente, alliant ingénierie, innovation digitale et impact humain.<br> Nous accompagnons particuliers, professionnels et associations à chaque étape: <br> - de l’étude à la livraison <br> - avec une approche structurée, connectée et responsable.
                </p>
                <br>
                <a href="{% url 'app:about' %}" class="btn-primary">
                Découvrir plus
                <svg width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2">
                    <path d="m9 18 6-6-6-6"/>
                </svg>
                </a>
            </div>
            </div>
            <style>
            @media (max-width: 768px) {
                .apropos-content {
                grid-template-columns: 1fr !important;
                gap: 2rem !important;
                }
            }
            </style>
        </div>
    </section>

    <!-- Services Section -->
    <section id="services" class="section">
        <div class="container">
            <div class="section-header" style="background-image: url('{% static 'assets/img/Image20.png' %}');background-size: cover; background-position: center; background-color: rgba(53, 35, 13, 0.7); background-blend-mode: overlay;">
                <div class="section-badge">
                    <svg width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2">
                        <path d="M3 9l9-7 9 7v11a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z"></path>
                    </svg>
                    Nos Services
                </div>
                <h2>Excellence dans Chaque Projet</h2>
                <p>Solutions complètes de construction adaptées à vos besoins</p>
            </div>
            <div class="services-grid" style="display:grid; grid-template-columns: repeat(3, 1fr); gap:1.5rem; align-items:start;">
                <div class="service-card" style="background:#fff;border-radius:12px;overflow:hidden;box-shadow:0 6px 18px rgba(0,0,0,0.08);">
                    <div class="service-image">
                        <img src="{% static 'assets/img/villa.jpeg' %}" alt="Villas Résidentielles" style="width:100%;height:180px;object-fit:cover;display:block;">
                    </div>
                    <div class="service-content" style="padding:1rem;">
                        <h3 style="margin:0 0 .5rem 0;">Villas Résidentielles</h3>
                        <p style="margin:0;color:#555;">Construction de villas modernes et traditionnelles avec finitions haut de gamme.</p>
                    </div>
                </div>

                <div class="service-card" style="background:#fff;border-radius:12px;overflow:hidden;box-shadow:0 6px 18px rgba(0,0,0,0.08);">
                    <div class="service-image">
                        <img src="{% static 'assets/img/imeuble.jpg' %}" alt="Immeubles" style="width:100%;height:180px;object-fit:cover;display:block;">
                    </div>
                    <div class="service-content" style="padding:1rem;">
                        <h3 style="margin:0 0 .5rem 0;">Immeubles</h3>
                        <p style="margin:0;color:#555;">Édifices résidentiels et commerciaux de qualité supérieure.</p>
                    </div>
                </div>

                <div class="service-card" style="background:#fff;border-radius:12px;overflow:hidden;box-shadow:0 6px 18px rgba(0,0,0,0.08);">
                    <div class="service-image">
                        <img src="{% static 'assets/img/renovation.png' %}" alt="Rénovation" style="width:100%;height:180px;object-fit:cover;display:block;">
                    </div>
                    <div class="service-content" style="padding:1rem;">
                        <h3 style="margin:0 0 .5rem 0;">Rénovation</h3>
                        <p style="margin:0;color:#555;">Modernisation et réhabilitation de bâtiments existants. </p><br>
                    </div>
                </div>

                <div class="service-card" style="background:#fff;border-radius:12px;overflow:hidden;box-shadow:0 6px 18px rgba(0,0,0,0.08);">
                    <div class="service-image">
                        <img src="{% static 'assets/img/fondation.jpg' %}" alt="Gros Œuvre" style="width:100%;height:180px;object-fit:cover;display:block;">
                    </div>
                    <div class="service-content" style="padding:1rem;">
                        <h3 style="margin:0 0 .5rem 0;">Gros Œuvre</h3>
                        <p style="margin:0;color:#555;">Fondations, maçonnerie et structure porteuse.</p>
                    </div>
                </div>

                <div class="service-card" style="background:#fff;border-radius:12px;overflow:hidden;box-shadow:0 6px 18px rgba(0,0,0,0.08);">
                    <div class="service-image">
                        <img src="{% static 'assets/img/finition.jpg' %}" alt="Finitions" style="width:100%;height:180px;object-fit:cover;display:block;">
                    </div>
                    <div class="service-content" style="padding:1rem;">
                        <h3 style="margin:0 0 .5rem 0;">Finitions</h3>
                        <p style="margin:0;color:#555;">Peinture, carrelage, plomberie et électricité.</p>
                    </div>
                </div>

                <div class="service-card" style="background:#fff;border-radius:12px;overflow:hidden;box-shadow:0 6px 18px rgba(0,0,0,0.08);">
                    <div class="service-image">
                        <img src="{% static 'assets/img/digital.jpg' %}" alt="Suivi Digital" style="width:100%;height:180px;object-fit:cover;display:block;">
                    </div>
                    <div class="service-content" style="padding:1rem;">
                        <h3 style="margin:0 0 .5rem 0;">Suivi Digital</h3>
                        <p style="margin:0;color:#555;">Plateforme en ligne pour suivre votre projet en temps réel.</p>
                    </div>
                </div>
            </div>

            <style>
                /* 3 colonnes sur desktop, 1 colonne sur mobile */
                .service-image img {
                    border-radius: 8px;
                }
                @media (max-width: 768px) {
                    .services-grid {
                        grid-template-columns: 1fr !important;
                    }
                }
            </style>
        </div>
    </section>

    <!-- Estimation Section -->
    <section id="estimation" class="section bg-muted">
        <div class="container">
            <div class="section-header" style="background-image: url('{% static 'assets/img/bg.jpg' %}');background-color:#35230d;background-blend-mode: overlay; background-size: cover; background-position: center;">
                <div class="section-badge">
                    <svg width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2">
                        <rect x="4" y="2" width="16" height="20" rx="2" ry="2"></rect>
                        <line x1="8" y1="6" x2="16" y2="6"></line>
                    </svg>
                    Estimation Gratuite
                </div>
                <h2>Estimez Votre Projet</h2>
                <p>Obtenez une estimation détaillée et personnalisée en quelques clics</p>
            </div>
            <div class="estimation-card" style="display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 2rem; background: #e6c252; color: #333; border-radius: 12px; box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); width: 100%; margin: 2rem auto;">
                <div class="estimation-icon" style="margin-bottom: 1rem;">
                    <!-- <svg width="64" height="64" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" style="stroke: #333;"></svg>
                        <rect x="4" y="2" width="16" height="20" rx="2" ry="2"></rect>
                        <line x1="8" y1="6" x2="16" y2="6"></line>
                        <line x1="8" y1="10" x2="16" y2="10"></line>
                        <line x1="8" y1="14" x2="12" y2="14"></line>
                    </svg> -->
                </div>
                <h3 style="font-size: 1.8rem; margin-bottom: 1rem;">Calculez le Coût de Votre Projet</h3>
                <p style="font-size: 1.2rem; margin-bottom: 2rem; line-height: 1.6;">Accédez à notre calculateur interactif pour obtenir une estimation précise basée sur vos besoins spécifiques.</p>
                <a href="{% url 'app:simulation' %}" class="btn-primary btn-lg" style="display: inline-flex; align-items: center; justify-content: center; padding: 1rem 2rem; font-size: 1.2rem; color: white; background: #0b6a4a !important; border-radius: 8px; text-decoration: none;  transition: background-color 0.3s;">
                    
                    Accéder au Calculateur
                    <svg width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" style="margin-left: 0.5rem;">
                        <path d="M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6"></path>
                        <polyline points="15 3 21 3 21 9"></polyline>
                        <line x1="10" y1="14" x2="21" y2="3"></line>
                    </svg>
                </a>
                <!-- <p class="estimation-note" style="margin-top: 1rem; font-size: 1rem; color: #555;">Estimation gratuite et sans engagement • Réponse en 24h</p> -->
            </div>
        </div>
    </section>

    <!-- Réalisations Section -->
    <section id="realisations" class="section">
        <div class="container">
            <div class="section-header" style="background-image: url('{% static 'assets/img/Image21.png' %}');background-size: cover; background-position: center; background-color: rgba(53, 35, 13, 0.7); background-blend-mode: overlay;">
                <div class="section-badge">
                    <svg width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2">
                        <rect x="2" y="7" width="20" height="14" rx="2" ry="2"></rect>
                        <path d="M16 21V5a2 2 0 0 0-2-2h-4a2 2 0 0 0-2 2v16"></path>
                    </svg>
                    Nos Réalisations
                </div>
                <h2>Projets Réalisés</h2>
                <p>Découvrez nos réalisations à travers le Sénégal</p>
            </div>
            <div class="realisations-grid">
                {% for project in featured_projects %}
                <div class="realisation-card">
                    <div class="realisation-image">
                        {% if project.main_image %}
                        <img src="{{ project.main_image.url }}" alt="{{ project.title }}" style="width: 100%; height: 243px; object-fit: cover;">
                        {% endif %}
                        {% if project.status %}
                        <!-- <span class="project-status" style="position: absolute; top: 1rem; right: 1rem; background: {% if project.status == 'COMPLETED' %}#10B981{% elif project.status == 'IN_PROGRESS' %}#F59E0B{% else %}#6366F1{% endif %}; color: white; padding: 0.25rem 0.75rem; border-radius: 50px; font-size: 0.8rem;">
                            {{ project.get_status_display }}
                        </span> -->
                        {% endif %}
                    </div>
                    <div class="realisation-content">
                        <h3><a href="{{ project.get_absolute_url }}" style="text-decoration: none; color: inherit;">{{ project.title }}</a></h3>
                        <p>{{ project.short_description }} • {% if project.surface_built %}{{ project.surface_built }}m²{% endif %}</p>
                        <div class="project-meta" style="display: flex; justify-content: space-between; align-items: center; margin-top: 0.5rem;">
                            <span class="tag">{{ project.location }}</span>
                            {% if project.completed_date %}
                            <span class="completion-date" style="font-size: 0.8rem; color: hsl(var(--foreground) / 0.6);">{{ project.completed_date|date:"Y" }}</span>
                            {% endif %}
                        </div>
                    </div>
                </div>
                {% empty %}
                <div class="realisation-card">
                    <div class="realisation-image"></div>
                    <div class="realisation-content">
                        <h3>Villa Moderne - Almadies</h3>
                        <p>Villa 4 chambres avec piscine • 350m²</p>
                        <span class="tag">Complété 2024</span>
                    </div>
                </div>
                <div class="realisation-card">
                    <div class="realisation-image"></div>
                    <div class="realisation-content">
                        <h3>Immeuble R+3 - Plateau</h3>
                        <p>12 appartements luxueux • 1200m²</p>
                        <span class="tag">Complété 2023</span>
                    </div>
                </div>
                <div class="realisation-card">
                    <div class="realisation-image"></div>
                    <div class="realisation-content">
                        <h3>Résidence Diaspora - Saly</h3>
                        <p>Villa 5 chambres vue mer • 400m²</p>
                        <span class="tag">Complété 2024</span>
                    </div>
                </div>
                {% endfor %}
            </div>
            <div class="section-cta" style="text-align: center; margin-top: 3rem;">
                <a href="{% url 'app:projects_list' %}" class="btn-outline">Voir toutes nos réalisations</a>
            </div>
        </div>
    </section>

    <!-- Blog Section -->
    <section id="blog" class="section bg-muted">
        <div class="container">
            <div class="section-header" style=" background-image: url('{% static 'assets/img/bg2.jpg' %}');background-size: cover; background-position: center; background-color: rgba(53, 35, 13, 0.7); background-blend-mode: overlay;">
                <div class="section-badge">
                    <svg width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2">
                        <path d="M14.5 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7.5L14.5 2z"></path>
                    </svg>
                    Notre Blog
                </div>
                <h2>Actualités & Conseils</h2>
                <p>Restez informés des dernières tendances en construction</p>
            </div>

            <div class="blog-grid">
                {% for post in recent_posts %}
                <article class="blog-card">
                    <div class="blog-image">
                        {% if post.featured_image %}
                        <img src="{{ post.featured_image.url }}" alt="{{ post.title }}" style="width: 100%; height: 243px; object-fit: cover;">
                        {% endif %}
                        {% if post.category %}
                        <span class="blog-category" style="position: absolute; top: 1rem; left: 1rem; background: {{ post.category.color }}; color: white; padding: 0.25rem 0.75rem; border-radius: 50px; font-size: 0.8rem;">
                            {{ post.category.name }}
                        </span>
                        {% endif %}
                    </div>
                    <div class="blog-content">
                        <span class="blog-date">{{ post.published_at|date:"d F Y" }}</span>
                        <h3><a href="{{ post.get_absolute_url }}" style="text-decoration: none; color: inherit;">{{ post.title }}</a></h3>
                        <p>{{ post.excerpt }}</p>
                        <a href="{{ post.get_absolute_url }}" class="read-more">Lire la suite →</a>
                    </div>
                </article>
                {% empty %}
                <article class="blog-card">
                    <div class="blog-image"></div>
                    <div class="blog-content">
                        <span class="blog-date">15 Mars 2024</span>
                        <h3>Guide Complet : Construire au Sénégal depuis l'Étranger</h3>
                        <p>Tous les conseils essentiels pour réussir votre projet immobilier depuis la diaspora...</p>
                        <a href="{% url 'app:blog_list' %}" class="read-more">Lire la suite →</a>
                    </div>
                </article>
                <article class="blog-card">
                    <div class="blog-image"></div>
                    <div class="blog-content">
                        <span class="blog-date">10 Mars 2024</span>
                        <h3>Nouvelles Normes de Construction au Sénégal 2024</h3>
                        <p>Découvrez les nouvelles réglementations et normes à respecter...</p>
                        <a href="{% url 'app:blog_list' %}" class="read-more">Lire la suite →</a>
                    </div>
                </article>
                <article class="blog-card">
                    <div class="blog-image"></div>
                    <div class="blog-content">
                        <span class="blog-date">5 Mars 2024</span>
                        <h3>Les 10 Erreurs à Éviter lors de Votre Construction</h3>
                        <p>Évitez les pièges courants grâce à notre expertise de 30 ans...</p>
                        <a href="{% url 'app:blog_list' %}" class="read-more">Lire la suite →</a>
                    </div>
                </article>
                {% endfor %}
            </div>
            <div class="section-cta" style="text-align: center; margin-top: 3rem;">
                <a href="{% url 'app:blog_list' %}" class="btn-outline">Voir tous les articles</a>
            </div>
        </div>
    </section>


    <!-- Section Testimonial -->
    <section id="temoignages" style="background-color: #f9f9f9;" class="section ">
        <div class="container">
            <div class="section-header" style="background-image: url('{% static 'assets/img/testi.jpg' %}');background-size: cover; background-position: center; background-color: rgba(53, 35, 13, 0.7); background-blend-mode: overlay;">
                <div class="section-badge">
                    <svg width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2">
                        <path d="M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z"></path>
                    </svg>
                    Témoignages
                </div>
                <h2>Quelques Témoignages</h2>
                <p>Ils nous ont fait confiance — retour d'expérience de clients satisfaits</p>
            </div>

            <style>
                .testimonials-grid {
                    display: grid;
                    grid-template-columns: repeat(3, 1fr);
                    gap: 1.5rem;
                    margin-top: 1.5rem;
                }
                .testimonial-card {
                    position: relative;
                    padding: 1.25rem;
                    border-radius: 12px;
                    overflow: hidden;
                    box-shadow: 0 10px 30px rgba(53,35,13,0.06);
                    border: 1px solid rgba(53,35,13,0.05);
                    transition: transform .25s ease, box-shadow .25s ease;
                    background: linear-gradient(180deg, #ffffff 0%, #fffaf5 100%);
                }
                .testimonial-card:hover {
                    transform: translateY(-6px);
                    box-shadow: 0 18px 36px rgba(53,35,13,0.12);
                }
                .quote-mark {
                    position: absolute;
                    top: 12px;
                    right: 12px;
                    font-size: 56px;
                    line-height: 1;
                    color: rgba(11,106,74,0.06);
                    pointer-events: none;
                }
                .testimonial-text {
                    color: #2d2d2d;
                    line-height: 1.65;
                    margin: 0 0 1rem 0;
                    font-style: italic;
                }
                .testimonial-author {
                    display: flex;
                    align-items: center;
                    gap: 0.75rem;
                }
                .testimonial-author img {
                    width: 56px;
                    height: 56px;
                    border-radius: 50%;
                    object-fit: cover;
                    border: 3px solid rgba(11,106,74,0.08);
                    background: #fff;
                }
                .author-info .name { font-weight: 700; color: #35230d; }
                .author-info .role { font-size: 0.9rem; color: #6b6b6b; }

                /* subtle alternating accents that respect the page palette */
                .testimonial-card:nth-child(3n+1) {
                    border-left: 6px solid #0b6a4a;
                    background: linear-gradient(180deg, #f3fcf8 0%, #ffffff 100%);
                }
                .testimonial-card:nth-child(3n+2) {
                    border-left: 6px solid #e6c252;
                    background: linear-gradient(180deg, #fffaf0 0%, #ffffff 100%);
                }
                .testimonial-card:nth-child(3n) {
                    border-left: 6px solid #35230d;
                    background: linear-gradient(180deg, #fbf9f7 0%, #ffffff 100%);
                }

                @media (max-width: 992px) {
                    .testimonials-grid { grid-template-columns: repeat(2, 1fr) !important; }
                }
                @media (max-width: 768px) {
                    .testimonials-grid { grid-template-columns: 1fr !important; }
                }
            </style>

            <div class="testimonials-grid" aria-label="Témoignages clients">
                {% for t in testimonials %}
                <div class="testimonial-card">
                    <div class="quote-mark">“</div>
                    <p class="testimonial-text">{{ t.quote }}</p>
                    <div class="testimonial-author">
                        {% if t.photo %}
                        <img src="{{ t.photo.url }}" alt="{{ t.author }}">
                        {% else %}
                        <img src="{% static 'assets/img/avatar.png' %}" alt="{{ t.author }}">
                        {% endif %}
                        <div class="author-info">
                            <div class="name">{{ t.author }}</div>
                            {% if t.role %}
                            <div class="role">{{ t.role }}</div>
                            {% endif %}
                        </div>
                    </div>
                </div>
                {% empty %}
                <div class="testimonial-card">
                    <div class="quote-mark">“</div>
                    <p class="testimonial-text">"ECOLUX a transformé notre projet en réalité — qualité, respect des délais et suivi impeccable."</p>
                    <div class="testimonial-author">
                        <img src="{% static 'assets/img/avatar.png' %}" alt="Mamadou S.">
                        <div class="author-info">
                            <div class="name">Mamadou S.</div>
                            <div class="role">Propriétaire</div>
                        </div>
                    </div>
                </div>

                <div class="testimonial-card">
                    <div class="quote-mark">“</div>
                    <p class="testimonial-text">"Professionnalisme et écoute. Le suivi digital nous a rassurés tout au long du chantier."</p>
                    <div class="testimonial-author">
                        <img src="{% static 'assets/img/avatar.png' %}" alt="Awa D.">
                        <div class="author-info">
                            <div class="name">Awa D.</div>
                            <div class="role">Diaspora</div>
                        </div>
                    </div>
                </div>

                <div class="testimonial-card">
                    <div class="quote-mark">“</div>
                    <p class="testimonial-text">"Rapide, transparent et un rendu impeccable. Je recommande ECOLUX."</p>
                    <div class="testimonial-author">
                        <img src="{% static 'assets/img/avatar.png' %}" alt="Cheikh T.">
                        <div class="author-info">
                            <div class="name">Cheikh T.</div>
                            <div class="role">Investisseur</div>
                        </div>
                    </div>
                </div>
                {% endfor %}
            </div>

            <style>
                @media (max-width: 992px) {
                    .testimonials-grid { grid-template-columns: repeat(2, 1fr) !important; }
                }
                @media (max-width: 768px) {
                    .testimonials-grid { grid-template-columns: 1fr !important; }
                }
            </style>
        </div>
    </section>

    <!-- Contact Section -->
    <section id="contact" class="section">
        <div class="container">
            <div class="section-header" style=" background-image: url('{% static 'assets/img/contact.jpg' %}');background-size: cover; background-position: center; background-color: rgba(53, 35, 13, 0.7); background-blend-mode: overlay;">
                <div class="section-badge">
                    <svg width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2">
                        <path d="M21 11.5a8.38 8.38 0 0 1-.9 3.8 8.5 8.5 0 0 1-7.6 4.7 8.38 8.38 0 0 1-3.8-.9L3 21l1.9-5.7a8.38 8.38 0 0 1-.9-3.8 8.5 8.5 0 0 1 4.7-7.6 8.38 8.38 0 0 1 3.8-.9h.5a8.48 8.48 0 0 1 8 8v.5z"></path>
                    </svg>
                    Contact
                </div>
                <h2>Contactez-Nous</h2>
                <p>Nous sommes là pour répondre à toutes vos questions</p>
            </div>
            <div class="contact-grid">
                <div class="contact-form">
                    <form onsubmit="handleSubmit(event)">
                        <div class="form-group">
                            <label>Nom Complet</label>
                            <input type="text" required>
                        </div>
                        <div class="form-group">
                            <label>Email</label>
                            <input type="email" required>
                        </div>
                        <div class="form-group">
                            <label>Téléphone</label>
                            <input type="tel" required>
                        </div>
                        <div class="form-group">
                            <label>Type de Projet</label>
                            <select required>
                                <option value="">Sélectionnez...</option>
                                <option>Villa</option>
                                <option>Immeuble</option>
                                <option>Rénovation</option>
                                <option>Autre</option>
                            </select>
                        </div>
                        <div class="form-group">
                            <label>Message</label>
                            <textarea rows="4" required></textarea>
                        </div>
                        <button type="submit" class="btn-primary btn-full">Envoyer</button>
                    </form>
                </div>
                <div class="contact-info">
                    <div class="info-card">
                        <h3>📍 Adresse</h3>
                        <p>Ouakam Cité El Hadj Malick SY, Dakar, Sénégal</p>
                    </div>
                    <div class="info-card">
                        <h3>📞 Téléphone</h3>
                        <p>+221 77 996 26 26</p>
                    </div>
                    <div class="info-card">
                        <h3>✉️ Email</h3>
                        <p>info@ecolux-btp.com</p>
                    </div>
                    <div class="info-card">
                        <h3>⏰ Horaires</h3>
                        <p>Lun - Sam: 8h00 - 18h00</p>
                    </div>
                </div>
            </div>
        </div>
    </section>

    <!-- section FAQ -->
    <section id="faq" class="section" style="background-color: #f9f9f9;">
        <div class="container">
            <div class="section-header" style="background-image: url('{% static 'assets/img/faq-bg.jpg' %}');background-size: cover; background-position: center; background-color: rgba(53,35,13,0.7); background-blend-mode: overlay;">
                <div class="section-badge">
                    <svg width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2">
                        <path d="M12 2a10 10 0 1 0 0 20 10 10 0 0 0 0-20z"></path>
                        <path d="M9.09 9a3 3 0 1 1 5.82 1c0 3-4 3.5-4 5.5"></path>
                    </svg>
                    FAQ
                </div>
                <h2>Questions fréquentes</h2>
                <p>Réponses claires pour vous guider pas à pas</p>
            </div>

            <div class="faq-grid" style="margin-top:1.5rem; display:grid; gap:1rem;">
                <style>
                    .faq-item { background:#fff; border-radius:12px; padding:1rem; box-shadow:0 8px 24px rgba(53,35,13,0.06); border:1px solid rgba(53,35,13,0.04); }
                    .faq-q { width:100%; text-align:left; background:transparent; border:0; padding:0; font-weight:700; font-size:1rem; color:#35230d; display:flex; justify-content:space-between; align-items:center; cursor:pointer; }
                    .faq-a { margin-top:.75rem; color:#444; line-height:1.6; display:none; }
                    .faq-q svg { transition: transform .25s ease; }
                    .faq-q[aria-expanded="true"] svg { transform: rotate(45deg); }
                    @media (min-width: 768px) { .faq-grid { grid-template-columns: repeat(2, 1fr); } }
                </style>

                <div class="faq-item">
                    <button class="faq-q" aria-expanded="false" aria-controls="faq3" id="faq3-btn">
                        <span>3️⃣ Comment obtenir une estimation ?</span>
                        <svg width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><path d="M12 5v14M5 12h14"/></svg>
                    </button>
                    <div class="faq-a" id="faq3" role="region" aria-labelledby="faq3-btn">
                        <p>
                            Utilisez notre simulateur gratuit pour obtenir une estimation détaillée.
                            → <a href="{% url 'app:simulation' %}">Simuler mon projet</a>.
                            Les résultats sont fournis par lots (gros œuvre / second œuvre) et selon les niveaux de finition.
                        </p>
                    </div>
                </div>

                <div class="faq-item">
                    <button class="faq-q" aria-expanded="false" aria-controls="faq4" id="faq4-btn">
                        <span>4️⃣ ECOLUX gère-t-elle les autorisations ?</span>
                        <svg width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><path d="M12 5v14M5 12h14"/></svg>
                    </button>
                    <div class="faq-a" id="faq4" role="region" aria-labelledby="faq4-btn">
                        <p>
                            Oui, sur mandat. Nous préparons et déposons les dossiers d’autorisation de construire,
                            d’urbanisme et de conformité en votre nom et assurons le suivi administratif jusqu’à obtention.
                        </p>
                    </div>
                </div>

                <div class="faq-item">
                    <button class="faq-q" aria-expanded="false" aria-controls="faq5" id="faq5-btn">
                        <span>5️⃣ Quels sont vos engagements principaux ?</span>
                        <svg width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><path d="M12 5v14M5 12h14"/></svg>
                    </button>
                    <div class="faq-a" id="faq5" role="region" aria-labelledby="faq5-btn">
                        <p>
                            Nos engagements : Transparence totale • Qualité contrôlée • Matériaux durables •
                            Traçabilité digitale via ECOLUX Connect.
                        </p>
                    </div>
                </div>
            </div>

            <script>
                (function(){
                    const items = document.querySelectorAll('.faq-q');
                    items.forEach(btn => {
                        btn.addEventListener('click', () => {
                            const expanded = btn.getAttribute('aria-expanded') === 'true';
                            // collapse all
                            items.forEach(b => {
                                b.setAttribute('aria-expanded','false');
                                const a = document.getElementById(b.getAttribute('aria-controls'));
                                if (a) a.style.display = 'none';
                            });
                            // toggle clicked
                            if (!expanded) {
                                btn.setAttribute('aria-expanded','true');
                                const panel = document.getElementById(btn.getAttribute('aria-controls'));
                                if (panel) panel.style.display = 'block';
                            }
                        });
                    });
                })();
            </script>
        </div>
    </section></div>

    <!-- Footer -->
    {% include 'partials/footer.html' %}

    <!-- WhatsApp Button -->
    <button class="whatsapp-btn" onclick="window.open(`https://wa.me/221779962626?text=${encodeURIComponent('Bonjour ECOLUX BTP, je souhaite obtenir une consultation gratuite pour mon projet de construction.')}`, '_blank');" title="Contactez-nous sur WhatsApp">
        <svg width="32" height="32" viewBox="0 0 24 24" fill="currentColor">
            <path d="M17.472 14.382c-.297-.149-1.758-.867-2.03-.967-.273-.099-.471-.148-.67.15-.197.297-.767.966-.94 1.164-.173.199-.347.223-.644.075-.297-.15-1.255-.463-2.39-1.475-.883-.788-1.48-1.761-1.653-2.059-.173-.297-.018-.458.13-.606.134-.133.298-.347.446-.52.149-.174.198-.298.298-.497.099-.198.05-.371-.025-.52-.075-.149-.669-1.612-.916-2.207-.242-.579-.487-.5-.669-.51-.173-.008-.371-.01-.57-.01-.198 0-.52.074-.792.372-.272.297-1.04 1.016-1.04 2.479 0 1.462 1.065 2.875 1.213 3.074.149.198 2.096 3.2 5.077 4.487.709.306 1.262.489 1.694.625.712.227 1.36.195 1.871.118.571-.085 1.758-.719 2.006-1.413.248-.694.248-1.289.173-1.413-.074-.124-.272-.198-.57-.347m-5.421 7.403h-.004a9.87 9.87 0 01-5.031-1.378l-.361-.214-3.741.982.998-3.648-.235-.374a9.86 9.86 0 01-1.51-5.26c.001-5.45 4.436-9.884 9.888-9.884 2.64 0 5.122 1.03 6.988 2.898a9.825 9.825 0 012.893 6.994c-.003 5.45-4.437 9.884-9.885 9.884m8.413-18.297A11.815 11.815 0 0012.05 0C5.495 0 .16 5.335.157 11.892c0 2.096.547 4.142 1.588 5.945L.057 24l6.305-1.654a11.882 11.882 0 005.683 1.448h.005c6.554 0 11.89-5.335 11.893-11.893a11.821 11.821 0 00-3.48-8.413Z"/>
        </svg>
    </button>

    {% include "ecolux_scripts.html" %}
</body>
</html>
