import{r as t,j as e}from"./vendor-react-Ci7aBfa0.js";import{S as D,o as C}from"./SEO-DMWyZzYz.js";import{y as S,z as F,g as P,x as k}from"./index-Bc-jHh02.js";import{A as E,a as M,b as z,c as q}from"./accordion-V_Dp__k7.js";import{t as p}from"./vendor-ui-X4tvFhT0.js";import{s as I}from"./prerender-CvGl2zE9.js";import{a7 as G,h as b,d as g,M as T,g as L,c as f,a6 as V,$ as W}from"./vendor-icons-4GGNjGXS.js";import"./vendor-helmet-X7vXU3pT.js";import"./vendor-Clsy4qE9.js";function U(){const[a,r]=t.useState({name:"",email:"",phone:"",subject:"general",message:""}),[j,i]=t.useState([]),[v,c]=t.useState([]),[N,y]=t.useState([]),[n,d]=t.useState(!0),[m,x]=t.useState(!1);t.useEffect(()=>{window.scrollTo(0,0),w()},[]),t.useEffect(()=>{n||I()},[n]);async function w(){try{d(!0);const[s,l,o]=await Promise.all([S(),F(),P()]);i(s),c(l),y(o)}catch{i([{type:"whatsapp",label:"WhatsApp",value:"+225 01 70 09 09 32",href:"https://wa.me/2250170090932",color:"#25D366"},{type:"phone",label:"Telephone",value:"+225 01 70 09 09 32",href:"tel:+2250170090932",color:"#D45A00"},{type:"email",label:"Email",value:"info@abidjangps.com",href:"mailto:info@abidjangps.com",color:"#333333"},{type:"address",label:"Adresse",value:"Cocody Faya, Abidjan",href:"#",color:"#D45A00"}]),c([{label:"Bureau",schedule:"Lun - Ven : 8h - 17h",icon:"Clock"},{label:"Samedi",schedule:"9h - 14h",icon:"Calendar"},{label:"En ligne",schedule:"7j / 7",icon:"Globe"}])}finally{d(!1)}}const A=async s=>{s.preventDefault(),x(!0);try{await k({type:"contact",name:a.name,email:a.email||void 0,phone:a.phone||void 0,subject:a.subject,message:a.message}),p.success("Message envoyé ! Nous vous répondrons sous 24h."),r({name:"",email:"",phone:"",subject:"general",message:""})}catch(l){p.error(l.message||"Erreur lors de l'envoi du message.")}finally{x(!1)}},u={Phone:f,Mail:L,MapPin:T,MessageCircle:g,Clock:b,Globe:G};return e.jsxs(e.Fragment,{children:[e.jsx(D,{title:"Contact — AbidjanGPS | Traceur GPS Abidjan",description:"Contactez AbidjanGPS pour vos traceurs GPS à Abidjan. Téléphone, WhatsApp, email. Disponible Lun-Ven 8h-17h, Sam 9h-14h.",url:"/contact",jsonLd:C()}),e.jsxs("main",{className:"min-h-screen pb-16 bg-white",children:[e.jsxs("section",{className:"relative py-16 md:py-24 bg-[#333333] mb-12",children:[e.jsx("div",{className:"absolute inset-0 opacity-30",children:e.jsx("img",{src:"/images/installation.jpg",alt:"Installation traceur GPS Abidjan",className:"w-full h-full object-cover"})}),e.jsxs("div",{className:"relative z-10 max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 text-center",children:[e.jsx("span",{className:"inline-block px-4 py-1.5 bg-[#D45A00]/20 border border-[#D45A00]/40 text-[#D45A00] rounded-full text-sm font-medium mb-4",children:"À votre écoute"}),e.jsx("h1",{className:"text-4xl md:text-5xl font-extrabold text-white mb-4",children:"Contactez-nous"}),e.jsx("p",{className:"text-lg text-white/80 max-w-2xl mx-auto",children:"Notre équipe vous répond sous 24h par téléphone, WhatsApp, email ou via le formulaire ci-dessous."})]})]}),e.jsxs("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8",children:[e.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-2 gap-10 lg:gap-16",children:[e.jsxs("div",{children:[e.jsx("h2",{className:"text-xl font-bold text-[#333333] mb-6",children:"Nos coordonnees"}),n?e.jsx("div",{className:"flex justify-center py-8",children:e.jsx("div",{className:"w-8 h-8 border-4 border-[#D45A00] border-t-transparent rounded-full animate-spin"})}):e.jsx("div",{className:"space-y-4 mb-8",children:j.map((s,l)=>{const o=u[s.type==="whatsapp"?"MessageCircle":s.type==="phone"?"Phone":s.type==="email"?"Mail":"MapPin"]||f,h=!s.href||/^(https?|mailto|tel|\/|#)/i.test(s.href)?s.href:"#";return e.jsxs("a",{href:h,target:h?.startsWith("http")?"_blank":void 0,rel:"noopener noreferrer",className:"flex items-center gap-4 p-4 bg-[#F2F2F2] rounded-xl hover:bg-[#D45A00]/5 transition-colors group",children:[e.jsx("div",{className:"w-12 h-12 rounded-full flex items-center justify-center shrink-0",style:{backgroundColor:`${s.color}15`},children:e.jsx(o,{className:"w-5 h-5",style:{color:s.color}})}),e.jsxs("div",{children:[e.jsx("p",{className:"text-xs text-gray-500",children:s.label}),e.jsx("p",{className:"font-medium text-[#333333] group-hover:text-[#D45A00] transition-colors",children:s.value})]})]},l)})}),e.jsx("h2",{className:"text-xl font-bold text-[#333333] mb-4",children:"Nos horaires"}),n?e.jsx("div",{className:"flex justify-center py-4",children:e.jsx("div",{className:"w-6 h-6 border-4 border-[#D45A00] border-t-transparent rounded-full animate-spin"})}):e.jsx("div",{className:"bg-[#F2F2F2] rounded-xl p-5 space-y-3 mb-8",children:v.map((s,l)=>{const o=u[s.icon]||b;return e.jsxs("div",{className:"flex items-center gap-3",children:[e.jsx("div",{className:"w-10 h-10 rounded-full bg-[#D45A00]/10 flex items-center justify-center shrink-0",children:e.jsx(o,{className:"w-4 h-4 text-[#D45A00]"})}),e.jsxs("div",{className:"flex-1",children:[e.jsx("p",{className:"font-medium text-[#333333] text-sm",children:s.label}),e.jsx("p",{className:"text-gray-500 text-sm",children:s.schedule})]})]},l)})}),e.jsx("div",{className:"aspect-video bg-[#F2F2F2] rounded-xl overflow-hidden relative",children:e.jsx("iframe",{src:"https://www.google.com/maps/embed?pb=!1m18!1m12!1m3!1d3972.1!2d-3.9667!3d5.3667!2m3!1f0!2f0!3f0!3m2!1i1024!2i768!4f13.1!3m3!1m2!1s0x0%3A0x0!2zNcKwMjInMDAuMCJOIDPCsDU4JzAwLjAiVw!5e0!3m2!1sfr!2sci!4v1",width:"100%",height:"100%",style:{border:0},allowFullScreen:!0,loading:"lazy",referrerPolicy:"no-referrer-when-downgrade",title:"Localisation AbidjanGPS"})})]}),e.jsxs("div",{children:[e.jsx("h2",{className:"text-xl font-bold text-[#333333] mb-6",children:"Envoyez-nous un message"}),e.jsxs("form",{onSubmit:A,className:"bg-[#F2F2F2] rounded-xl p-6 space-y-4",children:[e.jsxs("div",{children:[e.jsx("label",{className:"block text-sm font-medium text-[#333333] mb-1",children:"Nom *"}),e.jsx("input",{type:"text",required:!0,value:a.name,onChange:s=>r({...a,name:s.target.value}),className:"w-full px-4 py-2.5 border rounded-lg focus:ring-2 focus:ring-[#D45A00] outline-none bg-white text-base",placeholder:"Votre nom"})]}),e.jsxs("div",{className:"grid grid-cols-1 sm:grid-cols-2 gap-4",children:[e.jsxs("div",{children:[e.jsx("label",{className:"block text-sm font-medium text-[#333333] mb-1",children:"Email"}),e.jsx("input",{type:"email",value:a.email,onChange:s=>r({...a,email:s.target.value}),className:"w-full px-4 py-2.5 border rounded-lg focus:ring-2 focus:ring-[#D45A00] outline-none bg-white text-base",placeholder:"votre@email.ci"})]}),e.jsxs("div",{children:[e.jsx("label",{className:"block text-sm font-medium text-[#333333] mb-1",children:"Telephone"}),e.jsx("input",{type:"tel",value:a.phone,onChange:s=>r({...a,phone:s.target.value}),className:"w-full px-4 py-2.5 border rounded-lg focus:ring-2 focus:ring-[#D45A00] outline-none bg-white text-base",placeholder:"07 08 12 34 56"})]})]}),e.jsxs("div",{children:[e.jsx("label",{className:"block text-sm font-medium text-[#333333] mb-1",children:"Sujet"}),e.jsxs("select",{value:a.subject,onChange:s=>r({...a,subject:s.target.value}),className:"w-full px-4 py-2.5 border rounded-lg focus:ring-2 focus:ring-[#D45A00] outline-none bg-white text-base",children:[e.jsx("option",{value:"general",children:"Question generale"}),e.jsx("option",{value:"order",children:"Suivi de commande"}),e.jsx("option",{value:"install",children:"Demande d'installation"}),e.jsx("option",{value:"fleet",children:"Solution entreprise"}),e.jsx("option",{value:"partnership",children:"Partenariat"})]})]}),e.jsxs("div",{children:[e.jsx("label",{className:"block text-sm font-medium text-[#333333] mb-1",children:"Message *"}),e.jsx("textarea",{required:!0,rows:5,value:a.message,onChange:s=>r({...a,message:s.target.value}),className:"w-full px-4 py-2.5 border rounded-lg focus:ring-2 focus:ring-[#D45A00] outline-none bg-white resize-none text-base",placeholder:"Votre message..."})]}),e.jsxs("button",{type:"submit",disabled:m,className:"w-full py-3 bg-[#D45A00] text-white rounded-lg font-bold hover:bg-[#E55A00] transition-colors flex items-center justify-center gap-2 disabled:opacity-60 disabled:cursor-not-allowed",children:[e.jsx(V,{className:"w-5 h-5"})," ",m?"Envoi...":"Envoyer le message"]})]})]})]}),e.jsx("div",{id:"faq",className:"mt-20 pt-8 border-t",children:e.jsxs("div",{className:"max-w-3xl mx-auto",children:[e.jsxs("div",{className:"text-center mb-10",children:[e.jsxs("div",{className:"inline-flex items-center gap-2 px-4 py-1.5 bg-[#D45A00]/10 rounded-full text-sm text-[#D45A00] font-medium mb-4",children:[e.jsx(W,{className:"w-4 h-4"})," Centre d'aide"]}),e.jsx("h2",{className:"text-3xl md:text-4xl font-bold text-[#333333] mb-3",children:"Toutes les questions"}),e.jsx("p",{className:"text-gray-500",children:"Trouvez les reponses a toutes vos questions sur nos produits et services"})]}),n?e.jsx("div",{className:"flex justify-center py-8",children:e.jsx("div",{className:"w-8 h-8 border-4 border-[#D45A00] border-t-transparent rounded-full animate-spin"})}):e.jsx(E,{type:"single",collapsible:!0,className:"space-y-3",children:N.map(s=>e.jsxs(M,{value:s.id,className:"bg-[#F2F2F2] rounded-lg border-none px-6",children:[e.jsx(z,{className:"text-left font-semibold text-[#333333] hover:text-[#D45A00] hover:no-underline py-4",children:s.question}),e.jsx(q,{className:"text-gray-600 pb-4 leading-relaxed",children:s.answer})]},s.id))}),e.jsxs("div",{className:"text-center mt-8",children:[e.jsx("p",{className:"text-gray-500 mb-4",children:"Vous ne trouvez pas votre reponse ?"}),e.jsxs("a",{href:"https://wa.me/2250170090932",target:"_blank",rel:"noopener noreferrer",className:"inline-flex items-center gap-2 px-6 py-3 bg-[#25D366] text-white rounded-lg font-semibold hover:bg-[#128C7E] transition-colors",children:[e.jsx(g,{className:"w-5 h-5"})," Posez votre question sur WhatsApp"]})]})]})})]})]})]})}export{U as default};