import{r,j as e}from"./vendor-react-Ci7aBfa0.js";import{a as ae,d as le,e as re,b as G,u as E}from"./index-Bc-jHh02.js";import{s as ne}from"./prerender-CvGl2zE9.js";import{b as ie,S as ce}from"./SEO-DMWyZzYz.js";import{T as oe,a as de,b as q,c as M}from"./tabs-DhZb_SJa.js";import{L as A}from"./vendor-Clsy4qE9.js";import{z as V,A as me,X as Q,D as xe,E as N,s as ue,n as he,W as ge,M as be}from"./vendor-icons-4GGNjGXS.js";import"./vendor-helmet-X7vXU3pT.js";import"./vendor-ui-X4tvFhT0.js";const pe={auto:"Automobile",moto:"Moto",camion:"Camion & Poids lourd",machine:"Machine & Engin",animaux:"Animaux & Bétails",conteneurs:"Conteneurs",portable:"Portable"},fe={securite:"Sécurité",surveillance:"Surveillance",connectivite:"Connectivité",confort:"Confort"},je=["Sinotrack","Concox","Teltonika","Micodus"];function Ne({product:t,categoryLabel:m}){const{addItem:i}=E(),u=m??t.category,l=typeof t.stock=="number"?t.stock:10,d=l<=0,c=l>0&&l<=(t.stockAlert??3);return e.jsxs("div",{className:"group bg-white border border-gray-100 rounded-xl overflow-hidden hover:shadow-xl hover:-translate-y-1 transition-all duration-300",children:[e.jsxs(A,{to:`/produit/${t.id}`,className:"block relative","aria-label":t.name,children:[e.jsx("div",{className:"aspect-square bg-[#F2F2F2] overflow-hidden",children:e.jsx("img",{src:t.image,alt:`${t.name} à Abidjan`,className:"w-full h-full object-cover group-hover:scale-105 transition-transform duration-500",loading:"lazy"})}),t.badge&&e.jsx("span",{className:"absolute top-3 left-3 px-3 py-1 bg-[#D45A00] text-white text-xs font-bold rounded-full",children:t.badge}),t.installationRequired===!1&&e.jsxs("span",{className:"absolute top-3 right-3 px-3 py-1 bg-green-500 text-white text-xs font-bold rounded-full flex items-center gap-1",children:[e.jsx(N,{className:"w-3 h-3"})," Sans installation"]})]}),e.jsxs("div",{className:"p-4",children:[e.jsxs("div",{className:"flex items-center gap-2 mb-1 flex-wrap",children:[t.brand&&e.jsx("span",{className:"text-[10px] px-2 py-0.5 bg-blue-50 text-blue-600 rounded-full font-medium",children:t.brand}),e.jsx("span",{className:"text-[10px] uppercase tracking-wider px-2 py-0.5 bg-[#F2F2F2] rounded-full text-gray-500 font-medium",children:u})]}),e.jsx(A,{to:`/produit/${t.id}`,children:e.jsx("h3",{className:"font-semibold text-[#333333] mb-1 group-hover:text-[#D45A00] transition-colors",children:t.name})}),e.jsx("p",{className:"text-xs text-gray-500 mb-3 line-clamp-2",children:t.description}),e.jsx("div",{className:"flex flex-col gap-0.5 mb-3",children:t.salePrice?e.jsxs(e.Fragment,{children:[e.jsx("p",{className:"text-xs text-green-600 font-medium",children:"Prix promo"}),e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsxs("p",{className:"text-lg font-bold text-[#D45A00]",children:[t.salePrice.toLocaleString()," FCFA"]}),e.jsxs("p",{className:"text-sm text-gray-400 line-through","aria-label":"Ancien prix",children:[t.price.toLocaleString()," FCFA"]})]})]}):e.jsxs("p",{className:"text-lg font-bold text-[#D45A00]",children:[t.price.toLocaleString()," FCFA"]})}),e.jsx("div",{className:"mb-3",children:d?e.jsx("span",{className:"text-xs font-medium text-red-600",children:"Rupture de stock"}):c?e.jsxs("span",{className:"text-xs font-medium text-amber-600",children:["Stock limité (",l,")"]}):e.jsx("span",{className:"text-xs font-medium text-green-600",children:"En stock"})}),e.jsxs("button",{onClick:()=>i({productId:t.id,name:t.name,price:t.salePrice||t.price,quantity:1,image:t.image,type:"product"}),disabled:d,className:"w-full py-2.5 bg-[#D45A00] text-white rounded-lg font-medium hover:bg-[#E55A00] transition-colors flex items-center justify-center gap-2 disabled:opacity-60 disabled:cursor-not-allowed",children:[e.jsx(ue,{className:"w-4 h-4"})," ",d?"Indisponible":"Ajouter au panier"]})]})]})}function ve({accessory:t,categoryLabel:m}){const{addItem:i}=E(),u=m??t.category;return e.jsxs("div",{className:"group bg-white border border-gray-100 rounded-xl overflow-hidden hover:shadow-xl hover:-translate-y-1 transition-all duration-300",children:[e.jsxs(A,{to:`/accessoire/${t.id}`,className:"block relative","aria-label":t.name,children:[e.jsx("div",{className:"aspect-square bg-[#F2F2F2] overflow-hidden",children:e.jsx("img",{src:t.image,alt:`${t.name} à Abidjan`,className:"w-full h-full object-cover group-hover:scale-105 transition-transform duration-500",loading:"lazy"})}),t.badge&&e.jsx("span",{className:"absolute top-3 left-3 px-3 py-1 bg-[#D45A00] text-white text-xs font-bold rounded-full",children:t.badge})]}),e.jsxs("div",{className:"p-4",children:[e.jsx("span",{className:"text-[10px] uppercase tracking-wider px-2 py-0.5 bg-[#F2F2F2] rounded-full text-gray-500 font-medium",children:u}),e.jsx(A,{to:`/accessoire/${t.id}`,children:e.jsx("h3",{className:"font-semibold text-[#333333] mt-1 mb-1 group-hover:text-[#D45A00] transition-colors",children:t.name})}),e.jsx("p",{className:"text-xs text-gray-500 mb-3 line-clamp-2",children:t.description}),e.jsxs("p",{className:"text-lg font-bold text-[#D45A00] mb-3",children:[t.price.toLocaleString()," FCFA"]}),e.jsxs("button",{onClick:()=>i({productId:t.id,name:t.name,price:t.price,quantity:1,image:t.image,type:"accessory"}),className:"w-full py-2.5 bg-[#D45A00] text-white rounded-lg font-medium hover:bg-[#E55A00] transition-colors flex items-center justify-center gap-2",children:[e.jsx(he,{className:"w-4 h-4"})," Ajouter au panier"]})]})]})}function ye({service:t}){const{addItem:m}=E(),i=t.type==="INSTALLATION"?ge:be;return e.jsxs("div",{className:"bg-white border border-gray-100 rounded-xl p-6 hover:shadow-lg transition-all duration-300",children:[e.jsx("div",{className:"w-14 h-14 rounded-full bg-[#D45A00]/10 flex items-center justify-center mb-4",children:e.jsx(i,{className:"w-7 h-7 text-[#D45A00]"})}),e.jsx("h3",{className:"font-semibold text-[#333333] text-lg mb-2",children:t.name}),e.jsx("p",{className:"text-gray-500 text-sm mb-4",children:t.description}),e.jsx("p",{className:"text-xl font-bold text-[#D45A00] mb-4",children:t.price>0?`${t.price.toLocaleString()} FCFA${t.priceUnit?` ${t.priceUnit}`:""}`:t.priceUnit||"Sur devis"}),t.price>0?e.jsx("button",{onClick:()=>m({productId:t.id,name:t.name,price:t.price,quantity:1,image:"",type:"service"}),className:"w-full py-2.5 border border-[#D45A00] text-[#D45A00] rounded-lg font-medium hover:bg-[#D45A00] hover:text-white transition-colors",children:"Ajouter au panier"}):e.jsx(A,{to:"/contact",className:"block w-full py-2.5 text-center border border-[#333333] text-[#333333] rounded-lg font-medium hover:bg-[#333333] hover:text-white transition-colors",children:"Demander un devis"})]})}function U({isOpen:t,onClose:m,isMobile:i,categories:u,catFilter:l,setCatFilter:d,installFilter:c,setInstallFilter:f,brandFilter:n,setBrandFilter:b,priceRange:h,setPriceRange:k,resultCount:v}){const S=()=>{d("all"),f("all"),b("all"),k("all")},F=l!=="all"||c!=="all"||n!=="all"||h!=="all",y=e.jsxs("div",{className:"h-full flex flex-col",children:[e.jsxs("div",{className:"flex items-center justify-between p-4 border-b",children:[e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx(V,{className:"w-5 h-5 text-[#D45A00]"}),e.jsx("h3",{className:"font-bold text-[#333333]",children:"Filtres"})]}),e.jsxs("div",{className:"flex items-center gap-2",children:[F&&e.jsx("button",{onClick:S,className:"text-sm text-[#D45A00] hover:underline",children:"Réinitialiser"}),i&&e.jsx("button",{onClick:m,className:"p-1.5 hover:bg-[#F2F2F2] rounded-lg",children:e.jsx(Q,{className:"w-5 h-5"})})]})]}),e.jsxs("div",{className:"flex-1 overflow-y-auto p-4 space-y-6",children:[e.jsxs("div",{children:[e.jsx("h4",{className:"font-semibold text-sm text-[#333333] mb-3 uppercase tracking-wider",children:"Catégories"}),e.jsxs("div",{className:"space-y-2",children:[e.jsxs("label",{className:`flex items-center gap-3 p-2 rounded-lg cursor-pointer transition-colors ${l==="all"?"bg-[#D45A00]/10":"hover:bg-[#F2F2F2]"}`,children:[e.jsx("div",{className:`w-4 h-4 rounded border-2 flex items-center justify-center ${l==="all"?"bg-[#D45A00] border-[#D45A00]":"border-gray-300"}`,children:l==="all"&&e.jsx(N,{className:"w-3 h-3 text-white"})}),e.jsx("input",{type:"radio",name:"cat",className:"sr-only",checked:l==="all",onChange:()=>d("all")}),e.jsx("span",{className:"text-sm",children:"Toutes"})]}),u.map(({key:a,label:L})=>e.jsxs("label",{className:`flex items-center gap-3 p-2 rounded-lg cursor-pointer transition-colors ${l===a?"bg-[#D45A00]/10":"hover:bg-[#F2F2F2]"}`,children:[e.jsx("div",{className:`w-4 h-4 rounded border-2 flex items-center justify-center ${l===a?"bg-[#D45A00] border-[#D45A00]":"border-gray-300"}`,children:l===a&&e.jsx(N,{className:"w-3 h-3 text-white"})}),e.jsx("input",{type:"radio",name:"cat",className:"sr-only",checked:l===a,onChange:()=>d(a)}),e.jsx("span",{className:"text-sm",children:L})]},a))]})]}),e.jsxs("div",{children:[e.jsx("h4",{className:"font-semibold text-sm text-[#333333] mb-3 uppercase tracking-wider",children:"Installation"}),e.jsx("div",{className:"space-y-2",children:[{key:"all",label:"Tous"},{key:"required",label:"Avec installation"},{key:"free",label:"Sans installation"}].map(a=>e.jsxs("label",{className:`flex items-center gap-3 p-2 rounded-lg cursor-pointer transition-colors ${c===a.key?"bg-[#D45A00]/10":"hover:bg-[#F2F2F2]"}`,children:[e.jsx("div",{className:`w-4 h-4 rounded border-2 flex items-center justify-center ${c===a.key?"bg-[#D45A00] border-[#D45A00]":"border-gray-300"}`,children:c===a.key&&e.jsx(N,{className:"w-3 h-3 text-white"})}),e.jsx("input",{type:"radio",name:"install",className:"sr-only",checked:c===a.key,onChange:()=>f(a.key)}),e.jsx("span",{className:"text-sm",children:a.label})]},a.key))})]}),e.jsxs("div",{children:[e.jsx("h4",{className:"font-semibold text-sm text-[#333333] mb-3 uppercase tracking-wider",children:"Marques"}),e.jsxs("div",{className:"space-y-2",children:[e.jsxs("label",{className:`flex items-center gap-3 p-2 rounded-lg cursor-pointer transition-colors ${n==="all"?"bg-[#D45A00]/10":"hover:bg-[#F2F2F2]"}`,children:[e.jsx("div",{className:`w-4 h-4 rounded border-2 flex items-center justify-center ${n==="all"?"bg-[#D45A00] border-[#D45A00]":"border-gray-300"}`,children:n==="all"&&e.jsx(N,{className:"w-3 h-3 text-white"})}),e.jsx("input",{type:"radio",name:"brand",className:"sr-only",checked:n==="all",onChange:()=>b("all")}),e.jsx("span",{className:"text-sm",children:"Toutes"})]}),je.map(a=>e.jsxs("label",{className:`flex items-center gap-3 p-2 rounded-lg cursor-pointer transition-colors ${n===a?"bg-[#D45A00]/10":"hover:bg-[#F2F2F2]"}`,children:[e.jsx("div",{className:`w-4 h-4 rounded border-2 flex items-center justify-center ${n===a?"bg-[#D45A00] border-[#D45A00]":"border-gray-300"}`,children:n===a&&e.jsx(N,{className:"w-3 h-3 text-white"})}),e.jsx("input",{type:"radio",name:"brand",className:"sr-only",checked:n===a,onChange:()=>b(a)}),e.jsx("span",{className:"text-sm",children:a})]},a))]})]}),e.jsxs("div",{children:[e.jsx("h4",{className:"font-semibold text-sm text-[#333333] mb-3 uppercase tracking-wider",children:"Prix"}),e.jsx("div",{className:"space-y-2",children:[{key:"all",label:"Tous les prix"},{key:"0-50000",label:"Moins de 50 000 FCFA"},{key:"50000-100000",label:"50 000 - 100 000 FCFA"},{key:"100000+",label:"Plus de 100 000 FCFA"}].map(a=>e.jsxs("label",{className:`flex items-center gap-3 p-2 rounded-lg cursor-pointer transition-colors ${h===a.key?"bg-[#D45A00]/10":"hover:bg-[#F2F2F2]"}`,children:[e.jsx("div",{className:`w-4 h-4 rounded border-2 flex items-center justify-center ${h===a.key?"bg-[#D45A00] border-[#D45A00]":"border-gray-300"}`,children:h===a.key&&e.jsx(N,{className:"w-3 h-3 text-white"})}),e.jsx("input",{type:"radio",name:"price",className:"sr-only",checked:h===a.key,onChange:()=>k(a.key)}),e.jsx("span",{className:"text-sm",children:a.label})]},a.key))})]})]}),i&&e.jsx("div",{className:"p-4 border-t",children:e.jsxs("button",{onClick:m,className:"w-full py-3 bg-[#D45A00] text-white rounded-lg font-bold hover:bg-[#E55A00]",children:["Voir ",v," résultat",v>1?"s":""]})})]});return i?e.jsxs(e.Fragment,{children:[t&&e.jsx("div",{className:"fixed inset-0 bg-black/50 z-40",onClick:m}),e.jsx("div",{className:`fixed inset-y-0 left-0 w-80 max-w-[85vw] bg-white z-50 shadow-2xl transform transition-transform duration-300 ${t?"translate-x-0":"-translate-x-full"}`,children:y})]}):e.jsx("aside",{className:"hidden lg:block w-64 shrink-0",children:e.jsx("div",{className:"sticky top-24 bg-white rounded-xl border shadow-sm overflow-hidden",children:y})})}function Pe(){const[t,m]=r.useState("traceurs"),[i,u]=r.useState("all"),[l,d]=r.useState("all"),[c,f]=r.useState("all"),[n,b]=r.useState("all"),[h,k]=r.useState("all"),[v,S]=r.useState("all"),[F,y]=r.useState(!1),[a,L]=r.useState([]),[W,H]=r.useState([]),[J,X]=r.useState([]),[$,O]=r.useState(""),[P,I]=r.useState(!0),[T,K]=r.useState(Object.entries(pe).map(([s,o])=>({key:s,label:o}))),[z,Y]=r.useState(Object.entries(fe).map(([s,o])=>({key:s,label:o})));r.useEffect(()=>{window.scrollTo(0,0),Z()},[]),r.useEffect(()=>{P||ne()},[P]);async function Z(){try{I(!0);const[s,o,j,C,p]=await Promise.all([ae(),le(),re(),G("product").catch(()=>[]),G("accessory").catch(()=>[])]);L(s),H(o),X(j),C&&C.length>0&&K(C.map(g=>({key:g.key,label:g.label}))),p&&p.length>0&&Y(p.map(g=>({key:g.key,label:g.label})))}catch(s){console.error("Erreur chargement boutique:",s)}finally{I(!1)}}const _=Object.fromEntries(T.map(s=>[s.key,s.label])),ee=Object.fromEntries(z.map(s=>[s.key,s.label])),x=$.toLowerCase().trim(),w=a.filter(s=>{const o=i==="all"||s.category===i,j=l==="all"||l==="required"&&s.installationRequired||l==="free"&&!s.installationRequired,C=c==="all"||s.brand===c;let p=!0;const g=s.salePrice||s.price;n==="0-50000"?p=g<5e4:n==="50000-100000"?p=g>=5e4&&g<=1e5:n==="100000+"&&(p=g>1e5);const te=!x||s.name?.toLowerCase().includes(x)||s.description?.toLowerCase().includes(x)||s.category?.toLowerCase().includes(x)||s.brand?.toLowerCase().includes(x);return o&&j&&C&&p&&te}),R=W.filter(s=>{const o=h==="all"||s.category===h,j=!x||s.name?.toLowerCase().includes(x)||s.description?.toLowerCase().includes(x);return o&&j}),B=J.filter(s=>{const o=v==="all"||(v==="installation"?s.type==="INSTALLATION":s.type==="ABONNEMENT"),j=!x||s.name?.toLowerCase().includes(x)||s.description?.toLowerCase().includes(x);return o&&j}),D=[i,l,c,n].filter(s=>s!=="all").length,se=ie([{name:"Accueil",url:"/"},{name:"Boutique",url:"/boutique"}]);return e.jsxs("main",{className:"min-h-screen pt-20 md:pt-24 pb-16 bg-white",children:[e.jsx(ce,{title:"Boutique traceurs GPS — Voiture, moto, camion | AbidjanGPS",description:"Comparez nos traceurs GPS pour voiture, moto, camion, engin, conteneur et usage portable. Prix en FCFA, livraison et installation à Abidjan.",url:"/boutique",jsonLd:se}),e.jsxs("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 mb-6",children:[e.jsxs("nav",{className:"text-sm text-gray-500 mb-4",children:[e.jsx(A,{to:"/",className:"hover:text-[#D45A00]",children:"Accueil"}),e.jsx("span",{className:"mx-2",children:"/"}),e.jsx("span",{className:"text-[#333333] font-medium",children:"Boutique"})]}),e.jsxs("div",{className:"flex flex-col sm:flex-row items-start sm:items-center justify-between gap-4",children:[e.jsx("h1",{className:"text-3xl md:text-4xl font-bold text-[#333333]",children:"Notre boutique"}),e.jsxs("button",{onClick:()=>y(!0),className:"lg:hidden flex items-center gap-2 px-4 py-2.5 border rounded-lg font-medium hover:bg-[#F2F2F2] transition-colors",children:[e.jsx(V,{className:"w-4 h-4"}),"Filtres",D>0&&e.jsx("span",{className:"w-5 h-5 bg-[#D45A00] text-white text-xs rounded-full flex items-center justify-center font-bold",children:D})]})]}),e.jsx("div",{className:"mt-4 max-w-xl",children:e.jsxs("div",{className:"relative",children:[e.jsx(me,{className:"absolute left-3 top-1/2 -translate-y-1/2 w-5 h-5 text-gray-400"}),e.jsx("input",{type:"text",value:$,onChange:s=>O(s.target.value),placeholder:"Rechercher un traceur, accessoire, service...",className:"w-full pl-11 pr-4 py-3 border rounded-xl focus:ring-2 focus:ring-[#D45A00] outline-none bg-[#F2F2F2] border-transparent focus:bg-white transition-all"}),$&&e.jsx("button",{onClick:()=>O(""),className:"absolute right-3 top-1/2 -translate-y-1/2 p-1 hover:bg-gray-200 rounded-full transition-colors",children:e.jsx(Q,{className:"w-4 h-4 text-gray-400"})})]})})]}),P?e.jsx("div",{className:"flex items-center justify-center py-20",children:e.jsx("div",{className:"w-8 h-8 border-4 border-[#D45A00] border-t-transparent rounded-full animate-spin"})}):e.jsx("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8",children:e.jsxs(oe,{value:t,onValueChange:m,className:"w-full",children:[e.jsxs(de,{className:"w-full max-w-lg mx-auto mb-8 grid grid-cols-3 bg-[#F2F2F2] p-1 rounded-lg",children:[e.jsx(q,{value:"traceurs",className:"rounded-md data-[state=active]:bg-[#D45A00] data-[state=active]:text-white font-medium transition-all",children:"Traceurs GPS"}),e.jsx(q,{value:"accessoires",className:"rounded-md data-[state=active]:bg-[#D45A00] data-[state=active]:text-white font-medium transition-all",children:"Accessoires"}),e.jsx(q,{value:"services",className:"rounded-md data-[state=active]:bg-[#D45A00] data-[state=active]:text-white font-medium transition-all",children:"Services"})]}),e.jsx(M,{value:"traceurs",className:"animate-in fade-in duration-300",children:e.jsxs("div",{className:"flex gap-8",children:[e.jsx(U,{isOpen:F,onClose:()=>y(!1),isMobile:!1,categories:T,catFilter:i,setCatFilter:u,installFilter:l,setInstallFilter:d,brandFilter:c,setBrandFilter:f,priceRange:n,setPriceRange:b,resultCount:w.length}),e.jsx(U,{isOpen:F,onClose:()=>y(!1),isMobile:!0,categories:T,catFilter:i,setCatFilter:u,installFilter:l,setInstallFilter:d,brandFilter:c,setBrandFilter:f,priceRange:n,setPriceRange:b,resultCount:w.length}),e.jsxs("div",{className:"flex-1 min-w-0",children:[D>0&&e.jsxs("div",{className:"flex items-center gap-2 mb-4 text-sm text-gray-500",children:[e.jsx(xe,{className:"w-4 h-4"}),e.jsxs("span",{children:[w.length," résultat",w.length>1?"s":""]}),D>0&&e.jsx("button",{onClick:()=>{u("all"),d("all"),f("all"),b("all")},className:"text-[#D45A00] hover:underline ml-2",children:"Effacer"})]}),e.jsx("div",{className:"grid grid-cols-1 sm:grid-cols-2 xl:grid-cols-3 gap-6",children:w.map(s=>e.jsx(Ne,{product:s,categoryLabel:_[s.category]??s.category},s.id))}),w.length===0&&e.jsxs("div",{className:"text-center py-12 text-gray-500",children:[e.jsx("p",{className:"mb-2",children:"Aucun produit ne correspond aux filtres."}),e.jsx("button",{onClick:()=>{u("all"),d("all"),f("all"),b("all")},className:"text-[#D45A00] hover:underline",children:"Réinitialiser les filtres"})]})]})]})}),e.jsxs(M,{value:"accessoires",className:"animate-in fade-in duration-300",children:[e.jsxs("div",{className:"flex flex-wrap items-center gap-2 mb-6",children:[z.map(({key:s,label:o})=>e.jsx("button",{onClick:()=>k(s),className:`px-4 py-2 rounded-full text-sm font-medium transition-colors ${h===s?"bg-[#D45A00] text-white":"bg-[#F2F2F2] text-gray-600 hover:bg-[#D45A00]/10"}`,children:o},s)),e.jsx("button",{onClick:()=>k("all"),className:`px-4 py-2 rounded-full text-sm font-medium transition-colors ${h==="all"?"bg-[#D45A00] text-white":"bg-[#F2F2F2] text-gray-600 hover:bg-[#D45A00]/10"}`,children:"Tous"})]}),e.jsx("div",{className:"grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 xl:grid-cols-4 gap-6",children:R.map(s=>e.jsx(ve,{accessory:s,categoryLabel:ee[s.category]??s.category},s.id))}),R.length===0&&e.jsx("div",{className:"text-center py-12 text-gray-500",children:"Aucun accessoire trouvé."})]}),e.jsxs(M,{value:"services",className:"animate-in fade-in duration-300",children:[e.jsx("div",{className:"flex flex-wrap items-center gap-2 mb-6",children:["all","installation","abonnement"].map(s=>e.jsx("button",{onClick:()=>S(s),className:`px-4 py-2 rounded-full text-sm font-medium transition-colors ${v===s?"bg-[#D45A00] text-white":"bg-[#F2F2F2] text-gray-600 hover:bg-[#D45A00]/10"}`,children:s==="all"?"Tous":s.charAt(0).toUpperCase()+s.slice(1)},s))}),e.jsx("div",{className:"grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 gap-6",children:B.map(s=>e.jsx(ye,{service:s},s.id))}),B.length===0&&e.jsx("div",{className:"text-center py-12 text-gray-500",children:"Aucun service trouvé."})]})]})})]})}export{Pe as default};