"use client";

import { ThemeProvider } from "@/providers/themeProvider/ThemeProvider";
import ReactLenis from "lenis/react";
import AboutMetric from '@/components/sections/about/AboutMetric';
import ContactSplitForm from '@/components/sections/contact/ContactSplitForm';
import FaqSplitText from '@/components/sections/faq/FaqSplitText';
import FeatureCardTen from '@/components/sections/feature/FeatureCardTen';
import FooterMedia from '@/components/sections/footer/FooterMedia';
import HeroBillboardCarousel from '@/components/sections/hero/HeroBillboardCarousel';
import MetricCardTwo from '@/components/sections/metrics/MetricCardTwo';
import NavbarStyleCentered from '@/components/navbar/NavbarStyleCentered/NavbarStyleCentered';
import ProductCardOne from '@/components/sections/product/ProductCardOne';
import TestimonialCardSix from '@/components/sections/testimonial/TestimonialCardSix';
import { Award, CheckCircle, Shield, Zap, Cpu, Wrench, Gauge, Disc } from "lucide-react";

export default function LandingPage() {
  return (
    <ThemeProvider
        defaultButtonVariant="elastic-effect"
        defaultTextAnimation="background-highlight"
        borderRadius="rounded"
        contentWidth="compact"
        sizing="mediumLargeSizeLargeTitles"
        background="blurBottom"
        cardStyle="gradient-radial"
        primaryButtonStyle="flat"
        secondaryButtonStyle="radial-glow"
        headingFontWeight="light"
    >
      <ReactLenis root>
  <div id="nav" data-section="nav">
      <NavbarStyleCentered
      navItems={[
        { name: "Accueil", id: "hero" },
        { name: "Services", id: "features" },
        { name: "Catalogue", id: "products" },
        { name: "Contact", id: "contact" },
      ]}
      brandName="Auto Meriadeck"
    />
  </div>

  <div id="hero" data-section="hero">
      <HeroBillboardCarousel
      background={{ variant: "gradient-bars" }}
      title="Excellence mécanique au cœur de Bordeaux"
      description="Auto Meriadeck vous propose une expertise automobile haut de gamme pour des performances optimales et une sécurité totale sur la route."
      buttons={[{ text: "Prendre RDV", href: "#contact" }]}
      mediaItems={[
        { imageSrc: "http://img.b2bpic.net/free-photo/mechanic-examining-car_107420-95949.jpg", imageAlt: "luxury garage interior" },
        { imageSrc: "http://img.b2bpic.net/free-photo/female-mechanic-servicing-car_1170-1233.jpg", imageAlt: "car engine repair focus" },
        { imageSrc: "http://img.b2bpic.net/free-photo/rim-black-metal-grunge-close-up-3d-rendering_1379-899.jpg", imageAlt: "modern car alloy rim" },
        { imageSrc: "http://img.b2bpic.net/free-photo/woman-looking-car-car-showroom_1303-15196.jpg", imageAlt: "modern architecture auto garage" },
        { imageSrc: "http://img.b2bpic.net/free-photo/mechanic-using-laptop_1170-1320.jpg", imageAlt: "mechanic diagnostic tool car" },
        { imageSrc: "http://img.b2bpic.net/free-photo/high-angle-hard-drive-components-still-life_23-2149417051.jpg", imageAlt: "automotive machine parts macro" },
      ]}
    />
  </div>

  <div id="about" data-section="about">
      <AboutMetric
      useInvertedBackground={false}
      title="Notre Engagement Qualité"
      metrics={[
        { icon: Award, label: "Années d'expérience", value: "15+" },
        { icon: CheckCircle, label: "Véhicules révisés", value: "5000+" },
        { icon: Shield, label: "Garantie constructeur", value: "100%" },
      ]}
      metricsContainerClassName="text-white"
      metricsAnimation="blur-reveal"
    />
  </div>

  <div id="features" data-section="features">
      <FeatureCardTen
      animationType="slide-up"
      textboxLayout="split"
      useInvertedBackground={true}
      features={[
        {
          title: "Diagnostic Électronique",          description: "Analyse complète des calculateurs et systèmes électroniques de bord.",          media: { imageSrc: "http://img.b2bpic.net/free-photo/medium-shot-man-woman-talking_23-2150171290.jpg", imageAlt: "mechanics working together shop" },
          items: [{ icon: Zap, text: "Analyse rapide" }, { icon: Cpu, text: "Précision constructeur" }],
          reverse: false
        },
        {
          title: "Entretien Moteur",          description: "Vidanges, filtres et courroies avec des lubrifiants haute performance.",          media: { imageSrc: "http://img.b2bpic.net/free-photo/portrait-happy-customers-car-showroom-browsing-automobiles-catalog_482257-124583.jpg", imageAlt: "mechanics working together shop" },
          items: [{ icon: Wrench, text: "Pièces d'origine" }, { icon: Gauge, text: "Optimisation" }],
          reverse: true
        },
        {
          title: "Freinage & Sécurité",          description: "Vérification et remplacement de vos systèmes de freinage complets.",          media: { imageSrc: "http://img.b2bpic.net/free-photo/businessman-businesswoman-looking-each-other-front-young-woman-using-laptop_23-2147923433.jpg", imageAlt: "mechanics working together shop" },
          items: [{ icon: Shield, text: "Sécurité garantie" }, { icon: Disc, text: "Qualité premium" }],
          reverse: false
        },
      ]}
      title="Nos Services Spécialisés"
      description="Nous couvrons l'entretien complet de votre véhicule avec des technologies de pointe et des pièces d'origine certifiées."
      featureDescriptionClassName="text-white"
    />
  </div>

  <div id="products" data-section="products">
      <ProductCardOne
      animationType="blur-reveal"
      textboxLayout="default"
      gridVariant="bento-grid"
      useInvertedBackground={false}
      products={[
        { id: "p1", name: "Disques de frein", price: "149€", imageSrc: "http://img.b2bpic.net/free-photo/car-accessories-with-copy-space_23-2149030396.jpg" },
        { id: "p2", name: "Huile synthétique", price: "89€", imageSrc: "http://img.b2bpic.net/free-photo/liquid-marbling-paint-texture-background-fluid-painting-abstract-texture-intensive-color-mix-wallpaper_1258-103292.jpg" },
        { id: "p3", name: "Bougies haute perf", price: "45€", imageSrc: "http://img.b2bpic.net/free-photo/different-car-accessories-assortment_23-2149030428.jpg" },
        { id: "p4", name: "Filtre à air sport", price: "65€", imageSrc: "http://img.b2bpic.net/free-photo/different-car-accessories-assortment_23-2149030429.jpg" },
        { id: "p5", name: "Manomètre digital", price: "35€", imageSrc: "http://img.b2bpic.net/free-photo/crop-hands-with-measuring-device_23-2147785064.jpg" },
        { id: "p6", name: "Scanner OBD2", price: "120€", imageSrc: "http://img.b2bpic.net/free-photo/young-female-being-uber-driver_23-2149184217.jpg" },
      ]}
      title="Pièces & Accessoires Premium"
      cardPriceClassName="text-white"
      description="Retrouvez les meilleurs composants pour prolonger la durée de vie de votre véhicule."
    />
  </div>

  <div id="metrics" data-section="metrics">
      <MetricCardTwo
      animationType="depth-3d"
      textboxLayout="default"
      gridVariant="uniform-all-items-equal"
      useInvertedBackground={true}
      metrics={[
        { id: "m1", value: "24h", description: "Délai moyen de prise en charge" },
        { id: "m2", value: "98%", description: "Taux de satisfaction client" },
        { id: "m3", value: "120", description: "Véhicules traités par mois" },
      ]}
      title="Impact en chiffres"
      description="La confiance de nos clients se traduit par des résultats concrets sur le terrain."
      valueClassName="text-white"
      metricDescriptionClassName="text-white"
    />
  </div>

  <div id="testimonials" data-section="testimonials">
      <TestimonialCardSix
      animationType="blur-reveal"
      textboxLayout="default"
      useInvertedBackground={false}
      testimonials={[
        { id: "t1", name: "Jean Dupont", handle: "@jeandupont", testimonial: "Excellent service, très professionnel.", imageSrc: "http://img.b2bpic.net/free-photo/handsome-man-hugging-car-showroom_1303-13593.jpg" },
        { id: "t2", name: "Marie Curie", handle: "@mariecurie", testimonial: "Un accueil chaleureux et une expertise rare.", imageSrc: "http://img.b2bpic.net/free-photo/woman-charging-electro-car-electric-gas-station_1303-14836.jpg" },
        { id: "t3", name: "Thomas Pesquet", handle: "@thompesq", testimonial: "Fiabilité absolue, je recommande vivement.", imageSrc: "http://img.b2bpic.net/free-photo/female-mechanic-holding-dipstick_1170-1515.jpg" },
        { id: "t4", name: "Sophie Martin", handle: "@sophiem", testimonial: "Rapide, propre, et efficace. Bravo !", imageSrc: "http://img.b2bpic.net/free-photo/man-looking-car-car-showroom_1303-14566.jpg" },
        { id: "t5", name: "Lucas Petit", handle: "@lucasp", testimonial: "Super travail sur mon système de freinage.", imageSrc: "http://img.b2bpic.net/free-photo/business-man-choosing-car-car-showroom_1303-24063.jpg" },
      ]}
      title="Avis de nos clients"
      description="Ils nous confient leurs véhicules en toute sérénité."
    />
  </div>

  <div id="faq" data-section="faq">
      <FaqSplitText
      useInvertedBackground={true}
      faqs={[
        { id: "f1", title: "Puis-je laisser mon véhicule ?", content: "Oui, nous disposons d'un espace sécurisé pour les dépôts." },
        { id: "f2", title: "Proposez-vous un véhicule de prêt ?", content: "Sous réserve de disponibilité lors de la prise de rendez-vous." },
        { id: "f3", title: "Quelles marques réparez-vous ?", content: "Toutes les marques et modèles, sans exception." },
      ]}
      sideTitle="Questions fréquentes"
      sideDescription="Besoin d'informations sur nos prestations ?"
      faqsAnimation="blur-reveal"
    />
  </div>

  <div id="contact" data-section="contact">
      <ContactSplitForm
      useInvertedBackground={false}
      title="Contactez-nous"
      description="Prenez rendez-vous directement en remplissant ce formulaire."
      inputs={[
        { name: "nom", type: "text", placeholder: "Nom complet" },
        { name: "email", type: "email", placeholder: "Email" },
        { name: "tel", type: "tel", placeholder: "Téléphone" },
      ]}
      textarea={{ name: "msg", placeholder: "Votre demande", rows: 4 }}
      imageSrc="http://img.b2bpic.net/free-photo/hardworking-man-doing-his-job-woodshop_23-2148970815.jpg"
    />
  </div>

  <div id="footer" data-section="footer">
      <FooterMedia
      imageSrc="http://img.b2bpic.net/free-photo/motion-speed-effect-with-city-night_1112-2015.jpg"
      logoText="Auto Meriadeck"
      columns={[
        { title: "Service", items: [{ label: "Entretien", href: "#features" }, { label: "Contact", href: "#contact" }] },
        { title: "Légal", items: [{ label: "Mentions légales", href: "#" }, { label: "Confidentialité", href: "#" }] },
      ]}
    />
  </div>
      </ReactLenis>
    </ThemeProvider>
  );
}