import{r as n,j as e}from"./vendor-react-Ci7aBfa0.js";import{b as ie,d as ce,e as oe,c as Q,f as de}from"./index-DseDRO2X.js";import{s as me}from"./prerender-CvGl2zE9.js";import{b as xe,S as ue}from"./SEO-_JstgKNN.js";import{T as he,a as ge,b as q,c as E}from"./tabs-C59uwZuL.js";import{c as be,L as w}from"./vendor-Dk4E_gAD.js";import{N as H,p as pe,X as J,Q as fe,R as v,y as V,n as je,W as Ne,M as ye}from"./vendor-icons-D7yCv6uo.js";import"./vendor-helmet-nH3Guqws.js";import"./vendor-ui-BPcTRgsV.js";import"./utils-BhlM5UoR.js";const ve={auto:"Automobile",moto:"Moto",camion:"Camion & Poids lourd",machine:"Machine & Engin",animaux:"Animaux & Bétails",conteneurs:"Conteneurs",portable:"Portable"},we={securite:"Sécurité",surveillance:"Surveillance",connectivite:"Connectivité",confort:"Confort"};function Ae({product:t,categoryLabel:x}){const u=x??t.category,d=(t.categories||[]).map(r=>r.label).filter(r=>r&&r!==u),m=typeof t.stock=="number"?t.stock:10,l=m<=0,h=m>0&&m<=(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(w,{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(v,{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}),d.map(r=>e.jsx("span",{className:"text-[10px] uppercase tracking-wider px-2 py-0.5 bg-blue-50 text-blue-700 rounded-full font-medium",children:r},r))]}),e.jsx(w,{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:l?e.jsx("span",{className:"text-xs font-medium text-red-600",children:"Rupture de stock"}):h?e.jsxs("span",{className:"text-xs font-medium text-amber-600",children:["Stock limité (",m,")"]}):e.jsx("span",{className:"text-xs font-medium text-green-600",children:"En stock"})}),l?e.jsxs("span",{className:"w-full py-2.5 bg-gray-200 text-gray-500 rounded-lg font-medium flex items-center justify-center gap-2 cursor-not-allowed",children:[e.jsx(V,{className:"w-4 h-4"})," Indisponible"]}):e.jsxs(w,{to:`/produit/${t.id}`,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(V,{className:"w-4 h-4"})," Configurer et ajouter"]})]})]})}function ke({accessory:t,categoryLabel:x}){const{addItem:u}=de(),d=x??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(w,{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:d}),e.jsx(w,{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:()=>u({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(je,{className:"w-4 h-4"})," Ajouter au panier"]})]})]})}function Ce({service:t}){const x=t.type==="INSTALLATION"?Ne:ye;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(x,{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-xs text-gray-500 -mt-2 mb-4",children:"À sélectionner avec le traceur adapté."}),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"}),e.jsx(w,{to:"/boutique",className:"block w-full py-2.5 text-center border border-[#D45A00] text-[#D45A00] rounded-lg font-medium hover:bg-[#D45A00] hover:text-white transition-colors",children:"Choisir et configurer un traceur"})]})}function W({isOpen:t,onClose:x,isMobile:u,categories:d,brands:m,catFilter:l,setCatFilter:h,installFilter:r,setInstallFilter:j,brandFilter:i,setBrandFilter:p,priceRange:g,setPriceRange:C,resultCount:A}){const L=()=>{h("all"),j("all"),p("all"),C("all")},D=l!=="all"||r!=="all"||i!=="all"||g!=="all",k=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(H,{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:[D&&e.jsx("button",{onClick:L,className:"text-sm text-[#D45A00] hover:underline",children:"Réinitialiser"}),u&&e.jsx("button",{onClick:x,className:"p-1.5 hover:bg-[#F2F2F2] rounded-lg",children:e.jsx(J,{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(v,{className:"w-3 h-3 text-white"})}),e.jsx("input",{type:"radio",name:"cat",className:"sr-only",checked:l==="all",onChange:()=>h("all")}),e.jsx("span",{className:"text-sm",children:"Toutes"})]}),d.map(({key:a,label:P})=>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(v,{className:"w-3 h-3 text-white"})}),e.jsx("input",{type:"radio",name:"cat",className:"sr-only",checked:l===a,onChange:()=>h(a)}),e.jsx("span",{className:"text-sm",children:P})]},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:"recommended",label:"Installation recommandée"},{key:"self",label:"Utilisable sans installation"}].map(a=>e.jsxs("label",{className:`flex items-center gap-3 p-2 rounded-lg cursor-pointer transition-colors ${r===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 ${r===a.key?"bg-[#D45A00] border-[#D45A00]":"border-gray-300"}`,children:r===a.key&&e.jsx(v,{className:"w-3 h-3 text-white"})}),e.jsx("input",{type:"radio",name:"install",className:"sr-only",checked:r===a.key,onChange:()=>j(a.key)}),e.jsx("span",{className:"text-sm",children:a.label})]},a.key))})]}),m.length>0&&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 ${i==="all"?"bg-[#D45A00]/10":"hover:bg-[#F2F2F2]"}`,children:[e.jsx("div",{className:`w-4 h-4 rounded border-2 flex items-center justify-center ${i==="all"?"bg-[#D45A00] border-[#D45A00]":"border-gray-300"}`,children:i==="all"&&e.jsx(v,{className:"w-3 h-3 text-white"})}),e.jsx("input",{type:"radio",name:"brand",className:"sr-only",checked:i==="all",onChange:()=>p("all")}),e.jsx("span",{className:"text-sm",children:"Toutes"})]}),m.map(a=>e.jsxs("label",{className:`flex items-center gap-3 p-2 rounded-lg cursor-pointer transition-colors ${i===a?"bg-[#D45A00]/10":"hover:bg-[#F2F2F2]"}`,children:[e.jsx("div",{className:`w-4 h-4 rounded border-2 flex items-center justify-center ${i===a?"bg-[#D45A00] border-[#D45A00]":"border-gray-300"}`,children:i===a&&e.jsx(v,{className:"w-3 h-3 text-white"})}),e.jsx("input",{type:"radio",name:"brand",className:"sr-only",checked:i===a,onChange:()=>p(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 ${g===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 ${g===a.key?"bg-[#D45A00] border-[#D45A00]":"border-gray-300"}`,children:g===a.key&&e.jsx(v,{className:"w-3 h-3 text-white"})}),e.jsx("input",{type:"radio",name:"price",className:"sr-only",checked:g===a.key,onChange:()=>C(a.key)}),e.jsx("span",{className:"text-sm",children:a.label})]},a.key))})]})]}),u&&e.jsx("div",{className:"p-4 border-t",children:e.jsxs("button",{onClick:x,className:"w-full py-3 bg-[#D45A00] text-white rounded-lg font-bold hover:bg-[#E55A00]",children:["Voir ",A," résultat",A>1?"s":""]})})]});return u?e.jsxs(e.Fragment,{children:[t&&e.jsx("div",{className:"fixed inset-0 bg-black/50 z-40",onClick:x}),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:k})]}):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:k})})}function Oe(){const[t]=be(),[x,u]=n.useState("traceurs"),[d,m]=n.useState(()=>t.get("category")||"all"),[l,h]=n.useState(()=>t.get("install")||"all"),[r,j]=n.useState("all"),[i,p]=n.useState("all"),[g,C]=n.useState("all"),[A,L]=n.useState("all"),[D,k]=n.useState(!1),[a,P]=n.useState([]),[K,X]=n.useState([]),[Y,Z]=n.useState([]),[$,O]=n.useState(()=>t.get("search")||""),[T,I]=n.useState(!0),[M,_]=n.useState(Object.entries(ve).map(([s,c])=>({key:s,label:c}))),[B,ee]=n.useState(Object.entries(we).map(([s,c])=>({key:s,label:c})));n.useEffect(()=>{window.scrollTo(0,0),se()},[]),n.useEffect(()=>{T||me()},[T]);async function se(){try{I(!0);const[s,c,y,F,f]=await Promise.all([ie(),ce(),oe(),Q("product").catch(()=>[]),Q("accessory").catch(()=>[])]);P(s),X(c),Z(y),F&&F.length>0&&_(F.map(b=>({key:b.key,label:b.label}))),f&&f.length>0&&ee(f.map(b=>({key:b.key,label:b.label})))}catch(s){console.error("Erreur chargement boutique:",s)}finally{I(!1)}}const te=Object.fromEntries(M.map(s=>[s.key,s.label])),ae=Object.fromEntries(B.map(s=>[s.key,s.label])),R=Array.from(new Set(a.map(s=>s.brand).filter(Boolean))).sort(),o=$.toLowerCase().trim(),N=a.filter(s=>{const c=d==="all"||s.category===d||s.categoryKeys?.includes(d),y=l==="all"||l==="recommended"&&s.installationRequired||l==="self"&&!s.installationRequired,F=r==="all"||s.brand===r;let f=!0;const b=s.salePrice||s.price;i==="0-50000"?f=b<5e4:i==="50000-100000"?f=b>=5e4&&b<=1e5:i==="100000+"&&(f=b>1e5);const ne=!o||s.name?.toLowerCase().includes(o)||s.description?.toLowerCase().includes(o)||s.category?.toLowerCase().includes(o)||s.categories?.some(U=>U.label?.toLowerCase().includes(o)||U.key?.toLowerCase().includes(o))||s.brand?.toLowerCase().includes(o);return c&&y&&F&&f&&ne}),z=K.filter(s=>{const c=g==="all"||s.category===g,y=!o||s.name?.toLowerCase().includes(o)||s.description?.toLowerCase().includes(o);return c&&y}),G=Y.filter(s=>{const c=A==="all"||(A==="installation"?s.type==="INSTALLATION":s.type==="ABONNEMENT"),y=!o||s.name?.toLowerCase().includes(o)||s.description?.toLowerCase().includes(o);return c&&y}),S=[d,l,r,i].filter(s=>s!=="all").length,le=xe([{name:"Accueil",url:"/"},{name:"Boutique",url:"/boutique"}]),re={"@context":"https://schema.org","@type":"ItemList",name:"Traceurs GPS AbidjanGPS",itemListElement:N.map((s,c)=>({"@type":"ListItem",position:c+1,name:s.name,url:`https://abidjangps.com/produit/${s.id}`}))};return e.jsxs("main",{className:"min-h-screen pt-20 md:pt-24 pb-16 bg-white",children:[e.jsx(ue,{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:[le,re]}),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(w,{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:()=>k(!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(H,{className:"w-4 h-4"}),"Filtres",S>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:S})]})]}),e.jsx("div",{className:"mt-4 max-w-xl",children:e.jsxs("div",{className:"relative",children:[e.jsx(pe,{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(J,{className:"w-4 h-4 text-gray-400"})})]})})]}),T?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(he,{value:x,onValueChange:u,className:"w-full",children:[e.jsxs(ge,{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(E,{value:"traceurs",className:"animate-in fade-in duration-300",children:e.jsxs("div",{className:"flex gap-8",children:[e.jsx(W,{isOpen:D,onClose:()=>k(!1),isMobile:!1,categories:M,brands:R,catFilter:d,setCatFilter:m,installFilter:l,setInstallFilter:h,brandFilter:r,setBrandFilter:j,priceRange:i,setPriceRange:p,resultCount:N.length}),e.jsx(W,{isOpen:D,onClose:()=>k(!1),isMobile:!0,categories:M,brands:R,catFilter:d,setCatFilter:m,installFilter:l,setInstallFilter:h,brandFilter:r,setBrandFilter:j,priceRange:i,setPriceRange:p,resultCount:N.length}),e.jsxs("div",{className:"flex-1 min-w-0",children:[S>0&&e.jsxs("div",{className:"flex items-center gap-2 mb-4 text-sm text-gray-500",children:[e.jsx(fe,{className:"w-4 h-4"}),e.jsxs("span",{children:[N.length," résultat",N.length>1?"s":""]}),S>0&&e.jsx("button",{onClick:()=>{m("all"),h("all"),j("all"),p("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:N.map(s=>e.jsx(Ae,{product:s,categoryLabel:te[s.category]??s.category},s.id))}),N.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:()=>{m("all"),h("all"),j("all"),p("all")},className:"text-[#D45A00] hover:underline",children:"Réinitialiser les filtres"})]})]})]})}),e.jsxs(E,{value:"accessoires",className:"animate-in fade-in duration-300",children:[e.jsxs("div",{className:"flex flex-wrap items-center gap-2 mb-6",children:[B.map(({key:s,label:c})=>e.jsx("button",{onClick:()=>C(s),className:`px-4 py-2 rounded-full text-sm font-medium transition-colors ${g===s?"bg-[#D45A00] text-white":"bg-[#F2F2F2] text-gray-600 hover:bg-[#D45A00]/10"}`,children:c},s)),e.jsx("button",{onClick:()=>C("all"),className:`px-4 py-2 rounded-full text-sm font-medium transition-colors ${g==="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:z.map(s=>e.jsx(ke,{accessory:s,categoryLabel:ae[s.category]??s.category},s.id))}),z.length===0&&e.jsx("div",{className:"text-center py-12 text-gray-500",children:"Aucun accessoire trouvé."})]}),e.jsxs(E,{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:()=>L(s),className:`px-4 py-2 rounded-full text-sm font-medium transition-colors ${A===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:G.map(s=>e.jsx(Ce,{service:s},s.id))}),G.length===0&&e.jsx("div",{className:"text-center py-12 text-gray-500",children:"Aucun service trouvé."})]})]})})]})}export{Oe as default};