<!DOCTYPE html>
<html lang="fr">
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <title>AKABLA IMMOBILIER Sarl | Site Officiel</title>
    <meta name="description" content="AKABLA IMMOBILIER Sarl: gestion immobilière, achat, location, vente, expertise et intermédiation foncière. Transactions fiables et sécurisées.">
    <link rel="preconnect" href="https://fonts.googleapis.com">
    <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
    <link href="https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700;800&display=swap" rel="stylesheet">
    <style>
        body {
            font-family: 'Montserrat', sans-serif;
        }

    </style>
    @if (file_exists(public_path('build/manifest.json')) || file_exists(public_path('hot')))
    @vite(['resources/css/app.css', 'resources/js/app.js'])
    @else
    <script src="https://cdn.tailwindcss.com"></script>
    @endif
</head>
<body class="bg-slate-50 text-slate-800">
    @php
    $services = [
    ['name' => 'Gestion immobilière', 'icon' => 'M3 10.5l9-7 9 7M5.25 8.75V21h13.5V8.75'],
    ['name' => 'Achat, location et vente de maison', 'icon' => 'M2.25 12l9.75-8.25L21.75 12M4.5 10.5V21h15V10.5'],
    ['name' => 'Achat, location et vente de terrain', 'icon' => 'M3 18l4.5-6 4.5 3 4.5-6 4.5 9M3 18h18'],
    ['name' => 'Expertise immobilière', 'icon' => 'M11.25 4.5h6.75v6.75m-6.75 0l6.75-6.75M6 19.5h12a1.5 1.5 0 001.5-1.5V9'],
    ['name' => 'Intermédiation foncière', 'icon' => 'M7.5 12h9m-4.5-4.5v9M4.5 4.5h15v15h-15z'],
    ['name' => 'Prestation de suivi d ACD', 'icon' => 'M9 11.25l2.25 2.25L15 9.75M4.5 12a7.5 7.5 0 1115 0 7.5 7.5 0 01-15 0z'],
    ['name' => 'Bail de construction', 'icon' => 'M3 21h18M6 21V7.5a1.5 1.5 0 011.5-1.5h9A1.5 1.5 0 0118 7.5V21M9 10.5h6M9 13.5h6'],
    ['name' => 'Bail emphyteotique', 'icon' => 'M12 3v18M3 12h18M5.25 5.25l13.5 13.5'],
    ['name' => 'Contrat d\'achat', 'icon' => 'M7.5 3.75h6l3 3V20.25H7.5V3.75zM10.5 12h3M10.5 15h3'],
    ['name' => 'Contrat de vente', 'icon' => 'M7.5 3.75h6l3 3V20.25H7.5V3.75zM9.75 12.75l1.5 1.5 3-3'],
    ['name' => 'Contrat de caution', 'icon' => 'M12 3l7.5 3v6c0 5.25-3.375 8.625-7.5 9.75C7.875 20.625 4.5 17.25 4.5 12V6L12 3z'],
    ['name' => 'Recouvrement gestion locative', 'icon' => 'M12 6v6l4 2.25M4.5 12a7.5 7.5 0 1115 0 7.5 7.5 0 01-15 0z'],
    ['name' => 'Gestion de syndic', 'icon' => 'M4.5 19.5h15M6.75 19.5V9.75h10.5v9.75M9 13.5h1.5M13.5 13.5H15'],
    ['name' => 'Gestion de syndic de copropriété', 'icon' => 'M3.75 18.75h16.5M6 18.75V9h4.5v9.75M13.5 18.75V6.75H18v12'],
    ];
    @endphp

    <header class="sticky top-0 z-50 bg-white/95 backdrop-blur border-b border-slate-200">
        <div class="mx-auto max-w-7xl px-6 py-4">
            <div class="flex items-center justify-between">
                <a href="#accueil" class="font-bold tracking-[0.15em] text-slate-900">AKABLA IMMOBILIER</a>

                <button type="button" class="md:hidden rounded-md border border-slate-300 px-3 py-1 text-sm" onclick="document.getElementById('mobile-nav').classList.toggle('hidden')">
                    Menu
                </button>

                <nav aria-label="Navigation principale" class="hidden md:flex items-center gap-6 text-sm">
                    <a href="#accueil" class="hover:text-amber-600">Accueil</a>
                    <a href="#apropos" class="hover:text-amber-600">A propos</a>
                    <a href="#services" class="hover:text-amber-600">Nos services</a>
                    <a href="#pourquoi-nous" class="hover:text-amber-600">Pourquoi nous</a>
                    <a href="#contact" class="rounded-full bg-amber-500 px-4 py-2 font-semibold text-white hover:bg-amber-600">Contact</a>
                </nav>
            </div>

            <nav id="mobile-nav" aria-label="Navigation mobile" class="hidden md:hidden mt-4 space-y-2 text-sm">
                <a href="#accueil" class="block rounded-md bg-slate-100 px-3 py-2">Accueil</a>
                <a href="#apropos" class="block rounded-md bg-slate-100 px-3 py-2">A propos</a>
                <a href="#services" class="block rounded-md bg-slate-100 px-3 py-2">Nos services</a>
                <a href="#pourquoi-nous" class="block rounded-md bg-slate-100 px-3 py-2">Pourquoi nous</a>
                <a href="#contact" class="block rounded-md bg-amber-500 px-3 py-2 font-semibold text-white">Contact</a>
            </nav>
        </div>
    </header>

    <main>
        <section id="accueil" class="relative">
            <div id="hero-slider" class="relative h-[70vh] overflow-hidden">
                <article class="hero-slide absolute inset-0 transition-opacity duration-700 opacity-100">
                    <img src="https://images.unsplash.com/photo-1560518883-ce09059eeffa?auto=format&fit=crop&w=1600&q=80" alt="Residence moderne" class="h-full w-full object-cover">
                    <div class="absolute inset-0 bg-slate-900/45"></div>
                    <div class="absolute inset-0 flex items-center">
                        <div class="mx-auto max-w-7xl px-6 text-white">
                            <p class="inline-flex rounded-full bg-white/20 px-3 py-1 text-xs tracking-[0.2em]">IMMOBILIER - GESTION - EXPERTISE</p>
                            <h1 class="mt-5 max-w-3xl text-4xl font-extrabold leading-tight md:text-6xl">
                                Bien plus qu une agence, un partenaire de confiance
                            </h1>
                            <p class="mt-5 max-w-2xl text-slate-100">
                                AKABLA IMMOBILIER Sarl accompagne vos projets immobiliers avec
                                rigueur, transparence et securite juridique.
                            </p>
                            <div class="mt-8 flex flex-wrap gap-3">
                                <a href="#services" class="rounded-full bg-amber-500 px-6 py-3 text-sm font-semibold text-white hover:bg-amber-600">
                                    Voir nos services
                                </a>
                                <a href="#contact" class="rounded-full border border-white/60 px-6 py-3 text-sm font-semibold hover:bg-white/20">
                                    Nous contacter
                                </a>
                            </div>
                        </div>
                    </div>
                </article>

                <article class="hero-slide absolute inset-0 transition-opacity duration-700 opacity-0 pointer-events-none">
                    <img src="https://images.unsplash.com/photo-1560185007-c5ca9d2c014d?auto=format&fit=crop&w=1600&q=80" alt="Immeuble residentiel" class="h-full w-full object-cover">
                    <div class="absolute inset-0 bg-slate-900/45"></div>
                    <div class="absolute inset-0 flex items-center">
                        <div class="mx-auto max-w-7xl px-6 text-white">
                            <p class="inline-flex rounded-full bg-white/20 px-3 py-1 text-xs tracking-[0.2em]">VENTE - LOCATION - ACHAT</p>
                            <h2 class="mt-5 max-w-3xl text-4xl font-extrabold leading-tight md:text-6xl">
                                Des opportunites immobiliere au bon endroit, au bon moment
                            </h2>
                            <p class="mt-5 max-w-2xl text-slate-100">
                                Maison, terrain ou investissement: nous vous orientons vers des decisions sures.
                            </p>
                        </div>
                    </div>
                </article>

                <article class="hero-slide absolute inset-0 transition-opacity duration-700 opacity-0 pointer-events-none">
                    <img src="https://images.unsplash.com/photo-1460317442991-0ec209397118?auto=format&fit=crop&w=1600&q=80" alt="Contrat immobilier" class="h-full w-full object-cover">
                    <div class="absolute inset-0 bg-slate-900/45"></div>
                    <div class="absolute inset-0 flex items-center">
                        <div class="mx-auto max-w-7xl px-6 text-white">
                            <p class="inline-flex rounded-full bg-white/20 px-3 py-1 text-xs tracking-[0.2em]">SECURITE JURIDIQUE</p>
                            <h2 class="mt-5 max-w-3xl text-4xl font-extrabold leading-tight md:text-6xl">
                                Des transactions encadrées et sécurisées à chaque étape
                            </h2>
                            <p class="mt-5 max-w-2xl text-slate-100">
                                Contrats, baux, suivi foncier: votre dossier avance avec un cadre fiable.
                            </p>
                        </div>
                    </div>
                </article>

                <button id="hero-prev" type="button" class="absolute left-4 top-1/2 -translate-y-1/2 rounded-full bg-white/80 px-3 py-2 text-slate-900 hover:bg-white" aria-label="Slide precedente">❮</button>
                <button id="hero-next" type="button" class="absolute right-4 top-1/2 -translate-y-1/2 rounded-full bg-white/80 px-3 py-2 text-slate-900 hover:bg-white" aria-label="Slide suivante">❯</button>

                <div class="absolute bottom-5 left-1/2 flex -translate-x-1/2 gap-2">
                    <button class="hero-dot h-2.5 w-2.5 rounded-full bg-white" type="button" aria-label="Aller au slide 1"></button>
                    <button class="hero-dot h-2.5 w-2.5 rounded-full bg-white/50" type="button" aria-label="Aller au slide 2"></button>
                    <button class="hero-dot h-2.5 w-2.5 rounded-full bg-white/50" type="button" aria-label="Aller au slide 3"></button>
                </div>
            </div>
        </section>

        <section id="apropos" class="mx-auto max-w-7xl px-6 py-16 md:py-20">
            <div class="grid gap-10 md:grid-cols-2 md:items-center">
                <div>
                    <p class="text-sm font-semibold tracking-wide text-amber-600">A PROPOS</p>
                    <h2 class="mt-3 text-3xl font-bold text-slate-900 md:text-4xl">Une expertise immobilière complète</h2>
                    <p class="mt-4 text-slate-600 leading-relaxed">
                        Nous intervenons dans la gestion, la transaction et l accompagnement
                        contractuel. Notre force: allier terrain, stratégie et sécurisation juridique.
                    </p>
                    <ul class="mt-6 space-y-2 text-slate-700">
                        <li>• Accompagnement personnalise selon vos objectifs</li>
                        <li>• Process clair du debut a la signature</li>
                        <li>• Encadrement sous la bienveillance de Notaires et Huissiers</li>
                    </ul>
                </div>
                <img src="https://images.unsplash.com/photo-1560520031-3a4dc4e9de0c?auto=format&fit=crop&w=1200&q=80" alt="Visite immobiliere" class="h-80 w-full rounded-2xl object-cover shadow-lg">
            </div>
        </section>

        <section id="services" class="bg-white border-y border-slate-200">
            <div class="mx-auto max-w-7xl px-6 py-16 md:py-20">
                <div class="mb-10">
                    <p class="text-sm font-semibold tracking-wide text-amber-600">NOS SERVICES</p>
                    <h2 class="mt-3 text-3xl font-bold text-slate-900 md:text-4xl">Des prestations adaptées à chaque besoin</h2>
                </div>

                <div class="grid gap-5 sm:grid-cols-2 lg:grid-cols-3">
                    @foreach ($services as $service)
                    <article class="group relative overflow-hidden rounded-2xl border border-slate-200 bg-white p-6 shadow-sm transition duration-300 hover:-translate-y-1 hover:shadow-xl hover:border-amber-300">
                        <div class="absolute inset-x-0 top-0 h-1 bg-linear-to-r from-amber-400 to-orange-500"></div>
                        <div class="flex items-start justify-between gap-3">
                            <span class="inline-flex h-10 w-10 shrink-0 items-center justify-center rounded-xl bg-amber-100 text-amber-700">
                                <svg viewBox="0 0 24 24" class="h-5 w-5" fill="none" stroke="currentColor" stroke-width="1.8" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true">
                                    <path d="{{ $service['icon'] }}" />
                                </svg>
                            </span>
                            <span class="rounded-full bg-slate-100 px-2.5 py-1 text-xs font-semibold text-slate-500">
                                {{ str_pad((string) ($loop->index + 1), 2, '0', STR_PAD_LEFT) }}
                            </span>
                        </div>
                        <h3 class="mt-4 font-semibold text-slate-900 leading-snug">{{ $service['name'] }}</h3>
                        <p class="mt-2 text-sm leading-relaxed text-slate-600">
                            Intervention professionnelle, suivi rigoureux et solution adaptee a votre contexte.
                        </p>
                        <div class="mt-4 flex items-center text-sm font-medium text-amber-700 opacity-0 transition group-hover:opacity-100">
                            En savoir plus
                            <span class="ml-2">→</span>
                        </div>
                    </article>
                    @endforeach
                </div>
            </div>
        </section>

        <section id="pourquoi-nous" class="mx-auto max-w-7xl px-6 py-16 md:py-20">
            <div class="mb-10">
                <p class="text-sm font-semibold tracking-wide text-amber-600">POURQUOI NOUS</p>
                <h2 class="mt-3 text-3xl font-bold text-slate-900 md:text-4xl">Un parcours client clair, moderne et securise</h2>
            </div>

            <div class="grid gap-6 md:grid-cols-3">
                <article class="group relative overflow-hidden rounded-3xl border border-slate-200 bg-white p-7 shadow-sm transition duration-300 hover:-translate-y-1 hover:shadow-xl hover:border-amber-300">
                    <div class="absolute inset-x-0 top-0 h-1 bg-linear-to-r from-amber-400 to-orange-500"></div>
                    <div class="flex items-center justify-between">
                        <span class="inline-flex h-11 w-11 items-center justify-center rounded-xl bg-amber-100 text-amber-700">
                            <svg viewBox="0 0 24 24" class="h-5 w-5" fill="none" stroke="currentColor" stroke-width="1.8" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true">
                                <path d="M11.25 4.5a6.75 6.75 0 105.118 11.148L21 20.25" />
                            </svg>
                        </span>
                        <span class="rounded-full bg-slate-100 px-2.5 py-1 text-xs font-semibold text-slate-500">01</span>
                    </div>
                    <h3 class="mt-5 text-xl font-bold text-slate-900">Diagnostic precis</h3>
                    <p class="mt-3 text-sm leading-relaxed text-slate-600">
                        Analyse detaillee de votre besoin, de votre contexte et de vos contraintes
                        pour definir la meilleure trajectoire immobiliere.
                    </p>
                    <div class="mt-5 text-sm font-medium text-amber-700 opacity-0 transition group-hover:opacity-100">Etude strategique initiale →</div>
                </article>

                <article class="group relative overflow-hidden rounded-3xl border border-slate-200 bg-white p-7 shadow-sm transition duration-300 hover:-translate-y-1 hover:shadow-xl hover:border-amber-300">
                    <div class="absolute inset-x-0 top-0 h-1 bg-linear-to-r from-amber-400 to-orange-500"></div>
                    <div class="flex items-center justify-between">
                        <span class="inline-flex h-11 w-11 items-center justify-center rounded-xl bg-amber-100 text-amber-700">
                            <svg viewBox="0 0 24 24" class="h-5 w-5" fill="none" stroke="currentColor" stroke-width="1.8" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true">
                                <path d="M3.75 12h16.5M12 3.75v16.5M5.25 5.25l13.5 13.5" />
                            </svg>
                        </span>
                        <span class="rounded-full bg-slate-100 px-2.5 py-1 text-xs font-semibold text-slate-500">02</span>
                    </div>
                    <h3 class="mt-5 text-xl font-bold text-slate-900">Execution maitrisee</h3>
                    <p class="mt-3 text-sm leading-relaxed text-slate-600">
                        Mise en oeuvre terrain, suivi administratif, coordination des acteurs
                        et pilotage continu jusqu a l aboutissement du dossier.
                    </p>
                    <div class="mt-5 text-sm font-medium text-amber-700 opacity-0 transition group-hover:opacity-100">Pilotage operationnel complet →</div>
                </article>

                <article class="group relative overflow-hidden rounded-3xl border border-slate-200 bg-white p-7 shadow-sm transition duration-300 hover:-translate-y-1 hover:shadow-xl hover:border-amber-300">
                    <div class="absolute inset-x-0 top-0 h-1 bg-linear-to-r from-amber-400 to-orange-500"></div>
                    <div class="flex items-center justify-between">
                        <span class="inline-flex h-11 w-11 items-center justify-center rounded-xl bg-amber-100 text-amber-700">
                            <svg viewBox="0 0 24 24" class="h-5 w-5" fill="none" stroke="currentColor" stroke-width="1.8" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true">
                                <path d="M12 3l7.5 3v6c0 5.25-3.375 8.625-7.5 9.75C7.875 20.625 4.5 17.25 4.5 12V6L12 3z" />
                                <path d="M9.75 12.75l1.5 1.5 3-3" />
                            </svg>
                        </span>
                        <span class="rounded-full bg-slate-100 px-2.5 py-1 text-xs font-semibold text-slate-500">03</span>
                    </div>
                    <h3 class="mt-5 text-xl font-bold text-slate-900">Validation securisee</h3>
                    <p class="mt-3 text-sm leading-relaxed text-slate-600">
                        Finalisation dans un cadre juridique fiable, avec controle des engagements
                        et protection de vos interets a chaque etape.
                    </p>
                    <div class="mt-5 text-sm font-medium text-amber-700 opacity-0 transition group-hover:opacity-100">Cloture juridique securisee →</div>
                </article>
            </div>
        </section>

        <section id="contact" class="mx-auto max-w-7xl px-6 pb-16 md:pb-24">
            <div class="grid gap-8 rounded-3xl bg-linear-to-r from-amber-500 to-orange-500 p-8 text-white md:grid-cols-2 md:items-center md:p-12">
                <div>
                    <p class="text-xs font-semibold tracking-[0.2em]">CONTACT</p>
                    <h2 class="mt-3 text-3xl font-extrabold md:text-4xl">Parlons de votre projet immobilier</h2>
                    <p class="mt-4 text-amber-50">
                        AKABLA IMMOBILIER Sarl vous repond rapidement pour lancer votre projet.
                    </p>
                </div>
                <div class="flex flex-wrap gap-3 md:justify-end">
                    <a href="tel:+2250000000000" class="rounded-full bg-white px-6 py-3 text-sm font-semibold text-amber-700 hover:bg-amber-50">
                        Appeler maintenant
                    </a>
                    <a href="mailto:contact@akabla-immobilier.com" class="rounded-full border border-white/70 px-6 py-3 text-sm font-semibold hover:bg-white/10">
                        Envoyer un email
                    </a>
                </div>
            </div>
        </section>
    </main>

    <footer class="border-t border-slate-200 bg-white">
        <div class="mx-auto flex max-w-7xl flex-wrap items-center justify-between gap-3 px-6 py-7 text-sm text-slate-500">
            <p>© {{ date('Y') }} AKABLA IMMOBILIER Sarl. Tous droits reserves.</p>
            <p>Gestion | Transaction | Expertise | Intermediation fonciere</p>
        </div>
    </footer>
    <script>
        (function() {
            const slides = Array.from(document.querySelectorAll('.hero-slide'));
            const dots = Array.from(document.querySelectorAll('.hero-dot'));
            const prev = document.getElementById('hero-prev');
            const next = document.getElementById('hero-next');
            let index = 0;
            let timer;

            function render() {
                slides.forEach((slide, i) => {
                    const active = i === index;
                    slide.classList.toggle('opacity-100', active);
                    slide.classList.toggle('opacity-0', !active);
                    slide.classList.toggle('pointer-events-none', !active);
                });
                dots.forEach((dot, i) => {
                    dot.classList.toggle('bg-white', i === index);
                    dot.classList.toggle('bg-white/50', i !== index);
                });
            }

            function goTo(i) {
                index = (i + slides.length) % slides.length;
                render();
            }

            function startAuto() {
                timer = setInterval(() => goTo(index + 1), 5000);
            }

            function resetAuto() {
                clearInterval(timer);
                startAuto();
            }

            prev.addEventListener('click', () => {
                goTo(index - 1);
                resetAuto();
            });

            next.addEventListener('click', () => {
                goTo(index + 1);
                resetAuto();
            });

            dots.forEach((dot, i) => {
                dot.addEventListener('click', () => {
                    goTo(i);
                    resetAuto();
                });
            });

            render();
            startAuto();
        })();

    </script>
</body>
</html>
