1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6782],{1275:(e,t,s)=>{"use strict";s.d(t,{A:()=>r});let r=(0,s(30772).A)("external-link",[["path",{d:"M15 3h6v6",key:"1q9fwt"}],["path",{d:"M10 14 21 3",key:"gplh6r"}],["path",{d:"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6",key:"a6xqqp"}]])},23471:(e,t,s)=>{Promise.resolve().then(s.bind(s,95283)),Promise.resolve().then(s.bind(s,97694)),Promise.resolve().then(s.bind(s,68500))},65377:(e,t,s)=>{"use strict";s.d(t,{A:()=>r});let r=(0,s(30772).A)("search",[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]])},95283:(e,t,s)=>{"use strict";s.d(t,{default:()=>w});var r=s(95155),a=s(12115),l=s(16369),n=s(67033),i=s(1275),o=s(65377),c=s(9005),d=s(78780),x=s(76721),m=s(98500),h=s.n(m),u=s(48225);let p=encodeURIComponent("Bonjour, je vous contacte depuis la plateforme SunuMaison.com pour un projet de construction."),b=()=>(0,r.jsx)("svg",{className:"w-5 h-5",viewBox:"0 0 24 24",fill:"currentColor",children:(0,r.jsx)("path",{d:"M17.472 14.382c-.297-.149-1.758-.867-2.03-.967-.273-.099-.471-.148-.67.15-.197.297-.767.966-.94 1.164-.173.199-.347.223-.644.075-.297-.15-1.255-.463-2.39-1.475-.883-.788-1.48-1.761-1.653-2.059-.173-.297-.018-.458.13-.606.134-.133.298-.347.446-.52.149-.174.198-.298.298-.497.099-.198.05-.371-.025-.52-.075-.149-.669-1.612-.916-2.207-.242-.579-.487-.5-.669-.51-.173-.008-.371-.01-.57-.01-.198 0-.52.074-.792.372-.272.297-1.04 1.016-1.04 2.479 0 1.462 1.065 2.875 1.213 3.074.149.198 2.096 3.2 5.077 4.487.709.306 1.262.489 1.694.625.712.227 1.36.195 1.871.118.571-.085 1.758-.719 2.006-1.413.248-.694.248-1.289.173-1.413-.074-.124-.272-.198-.57-.347m-5.421 7.403h-.004a9.87 9.87 0 01-5.031-1.378l-.361-.214-3.741.982.998-3.648-.235-.374a9.86 9.86 0 01-1.51-5.26c.001-5.45 4.436-9.884 9.888-9.884 2.64 0 5.122 1.03 6.988 2.898a9.825 9.825 0 012.893 6.994c-.003 5.45-4.437 9.884-9.885 9.884m8.413-18.297A11.815 11.815 0 0012.05 0C5.495 0 .16 5.335.157 11.892c0 2.096.547 4.142 1.588 5.945L.057 24l6.305-1.654a11.882 11.882 0 005.683 1.448h.005c6.554 0 11.89-5.335 11.893-11.893a11.821 11.821 0 00-3.48-8.413z"})});function g(e,t,s){window.dataLayer?.push({event:"architect_contact",architect_id:e,architect_name:t,contact_type:s})}function f({architect:e}){if(e.contactViaPlatform)return(0,r.jsx)(u.A,{architect:{id:e.id,fullname:e.fullname},children:(0,r.jsx)("button",{type:"button",onClick:()=>g(e.id,e.fullname,"platform"),className:"flex-1 flex items-center justify-center py-2 rounded-lg text-sm font-semibold bg-blue-600 hover:bg-blue-700 text-white transition-colors",children:"Contacter"})});let t=e.phoneMobile||e.phoneFixed,s=e.whatsappAvailable&&e.phoneMobile;return(0,r.jsxs)(r.Fragment,{children:[s&&(0,r.jsxs)("a",{href:`https://wa.me/${e.phoneMobile}?text=${p}`,target:"_blank",rel:"noopener noreferrer",onClick:()=>g(e.id,e.fullname,"whatsapp"),className:"btn-whatsapp flex-1 flex items-center justify-center gap-2 py-2 rounded-lg text-sm font-semibold transition-colors",children:[(0,r.jsx)(b,{}),"WhatsApp"]}),t&&(0,r.jsxs)("a",{href:`tel:${t.startsWith("221")?`+${t}`:`+221${t}`}`,onClick:()=>g(e.id,e.fullname,"phone"),className:"flex-1 flex items-center justify-center gap-2 py-2 rounded-lg text-sm font-semibold bg-blue-600 hover:bg-blue-700 text-white transition-colors",children:[(0,r.jsx)(l.A,{className:"w-4 h-4"}),"Appeler"]})]})}function j({architect:e}){let t=null!==e.bio;return(0,r.jsxs)("div",{className:"bg-white rounded-xl p-4 flex flex-col gap-3 hover:shadow-md transition-shadow border border-gray-200",children:[(0,r.jsxs)("div",{className:"flex-1",children:[(e.featured||e.category)&&(0,r.jsxs)("div",{className:"flex justify-end gap-1 mb-1.5",children:[e.featured&&(0,r.jsx)("span",{className:"text-xs font-semibold bg-blue-600 text-white px-2 py-0.5 rounded-full whitespace-nowrap",children:"Partenaire"}),e.category&&(0,r.jsx)("span",{className:"text-xs font-semibold bg-blue-50 text-blue-700 px-2 py-0.5 rounded-full whitespace-nowrap",children:"Agr\xe9\xe9"})]}),(0,r.jsx)("h3",{className:"font-bold text-gray-900 text-base leading-tight mb-1",children:e.fullname}),e.companyName&&(0,r.jsx)("p",{className:"text-xs text-gray-500 mb-1",children:e.companyName}),(0,r.jsxs)("div",{className:"flex items-start gap-1.5 text-gray-500 text-xs",children:[(0,r.jsx)(n.A,{className:"w-3.5 h-3.5 flex-shrink-0 mt-0.5 text-gray-400"}
1),(0,r.jsxs)("span",{children:[e.region,e.address&&` â ${e.address}`]})]})]}),(0,r.jsxs)("div",{className:"flex gap-2",children:[(0,r.jsx)(f,{architect:e}),t&&(0,r.jsxs)(h(),{href:`/architectes/${e.id}`,className:"flex items-center gap-1.5 px-3 py-2 rounded-lg text-sm font-medium border border-gray-200 text-gray-600 hover:border-blue-300 hover:text-blue-600 transition-colors whitespace-nowrap flex-shrink-0",children:[(0,r.jsx)(i.A,{className:"w-3.5 h-3.5"}),"Fiche"]})]})]})}let y=["Toutes","Dakar","Thi\xe8s","Saint-Louis","Ziguinchor"];function w({architects:e}){let[t,s]=(0,a.useState)(""),[l,n]=(0,a.useState)("Toutes"),[i,m]=(0,a.useState)(1),h=(0,a.useRef)(null),u=(0,a.useMemo)(()=>{let s=t.toLowerCase().trim();return e.filter(e=>("Toutes"===l||e.region===l)&&(!s||e.fullname.toLowerCase().includes(s)||e.companyName?.toLowerCase().includes(s)||e.region?.toLowerCase().includes(s)||e.address?.toLowerCase().includes(s)))},[e,t,l]),p=Math.ceil(u.length/9),g=u.slice((i-1)*9,9*i);function f(e){if(m(e),h.current){let e=h.current.getBoundingClientRect().top+window.scrollY-64;window.scrollTo({top:e,behavior:"smooth"})}}return(0,r.jsxs)("div",{ref:h,children:[(0,r.jsx)("div",{className:"sticky top-16 z-30 bg-gray-50 border-b border-gray-200 py-4",children:(0,r.jsxs)("div",{className:"max-w-5xl mx-auto px-4 sm:px-6 space-y-3",children:[(0,r.jsxs)("div",{className:"relative",children:[(0,r.jsx)(o.A,{className:"absolute left-3 top-1/2 -translate-y-1/2 w-4 h-4 text-gray-400"}),(0,r.jsx)("input",{type:"text",value:t,onChange:e=>{s(e.target.value),m(1)},placeholder:"Rechercher par nom, cabinet, r\xe9gion, adresseâ¦",className:"w-full pl-9 pr-9 py-2.5 border border-gray-300 rounded-xl text-sm focus:outline-none focus:ring-2 focus:ring-blue-500 focus:border-transparent bg-white"}),t&&(0,r.jsx)("button",{onClick:()=>{s(""),m(1)},className:"absolute right-3 top-1/2 -translate-y-1/2 text-gray-400 hover:text-gray-600",children:(0,r.jsx)(c.A,{className:"w-4 h-4"})})]}),(0,r.jsx)("div",{className:"flex gap-2 overflow-x-auto pb-1 scrollbar-hide",children:y.map(e=>(0,r.jsx)("button",{onClick:()=>{n(e),m(1)},className:`flex-shrink-0 px-3 py-1.5 rounded-full text-sm font-medium transition-colors ${l===e?"bg-blue-600 text-white":"bg-white border border-gray-200 text-gray-600 hover:border-blue-300"}`,children:e},e))})]})}),(0,r.jsx)("div",{className:"max-w-5xl mx-auto px-4 sm:px-6 py-4",children:(0,r.jsxs)("p",{className:"text-sm text-gray-500",children:[u.length," architecte",1!==u.length?"s":""," trouv\xe9",1!==u.length?"s":"",p>1&&` â page ${i} / ${p}`]})}),(0,r.jsx)("div",{className:"max-w-5xl mx-auto px-4 sm:px-6 pb-8",children:0===u.length?(0,r.jsxs)("div",{className:"text-center py-16",children:[(0,r.jsx)("p",{className:"text-gray-400 text-lg",children:"Aucun architecte trouv\xe9."}),(0,r.jsx)("button",{onClick:()=>{s(""),n("Toutes"),m(1)},className:"mt-3 text-sm text-blue-600 hover:underline",children:"R\xe9initialiser les filtres"})]}):(0,r.jsx)("div",{className:"grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 gap-4",children:g.map(e=>(0,r.jsx)(j,{architect:e},e.id))})}),p>1&&(0,r.jsxs)("div",{className:"max-w-5xl mx-auto px-4 sm:px-6 pb-10 flex items-center justify-between gap-2",children:[(0,r.jsxs)("button",{onClick:()=>f(i-1),disabled:1===i,className:"flex items-center gap-1 px-3 py-2 rounded-lg border border-gray-200 text-sm text-gray-600 hover:border-blue-300 disabled:opacity-30 disabled:cursor-not-allowed transition-colors flex-shrink-0",children:[(0,r.jsx)(d.A,{className:"w-4 h-4"}),(0,r.jsx)("span",{className:"hidden sm:inline",children:"Pr\xe9c\xe9dent"})]}),(0,r.jsx)("div",{className:"flex items-center gap-0.5 sm:gap-1 justify-center",children:(function(e,t){let s=new Set([1,t,e]);e-1>=1&&s.add(e-1),e+1<=t&&s.add(e+1);let r=Array.from(s).sort((e,t)=>e-t),a=[];for(let e=0;e<r.length;e++)e>0&&r[e]-r[e-1]>1&&a.push("..."),a.push(r[e]);return a})(i,p).map((e,t)=>"..."===e?(0,r.jsx)("span",{className:"w-6 sm:w-9 h-8 sm:h-9 flex items-center justify-center text-gray-400 text-sm",children:"â¦"},`ellipsis-${t}`):(0,r.jsx)("button",{onClick:()=>f(e),className:`w-8 h-8 sm:w-9 sm:h-9 rounded-lg text-sm font-medium transition-colors ${e===i?"bg-blue-600 text-white":"border border-gray-200 text-gray-600 hover:border-blue-300"}`,children:e},e))}),(0,r.jsxs)("button",{onClick:()=>f(i+1),disabled:i===p,className:"flex items-center gap-1 px-3 py-2 rounded-lg border border-gray-200 text-sm text-gray-600 hover:border-blue-300 disabled:opacity-30 disabled:cursor-not-allowed transition-colors flex-shrink-0",children:[(0,r.jsx)("span",{className:"hidden sm:inline",children:"Suivant"}),(0,r.jsx)(x.A,{className:"w-4 h-4"})]})]}),(0,r.jsx)("div",{className:"border-t border-gray-200 bg-white py-10",children:(0,r.jsxs)("div",{className:"max-w-5xl mx-auto px-4 sm:px-6 text-center",children:[(0,r.jsx)("p",{className:"text-gray-700 font-medium mb-1",children:"Vous \xeates architecte agr\xe9\xe9 au S\xe9n\xe9gal ?"}),(0,r.jsx)("p",{className:"text-gray-500 text-sm mb-4",children:"Contactez-nous pour cr\xe9er ou mettre \xe0 j
1our votre profil."}),(0,r.jsxs)("a",{href:`https://wa.me/${"+33605767006".replace(/\D/g,"")}?text=${encodeURIComponent("Bonjour, je suis architecte agr\xe9\xe9 et je souhaite rejoindre l'annuaire SunuMaison.")}`,target:"_blank",rel:"noopener noreferrer",className:"inline-flex items-center gap-2 btn-primary px-5 py-2.5 rounded-lg text-sm font-semibold",children:[(0,r.jsx)(b,{}),"Nous contacter sur WhatsApp"]})]})}),(0,r.jsx)("div",{className:"bg-gray-50 border-t border-gray-100 py-4",children:(0,r.jsx)("div",{className:"max-w-5xl mx-auto px-4 sm:px-6",children:(0,r.jsx)("p",{className:"text-xs text-gray-400 text-center leading-relaxed",children:"Les informations proviennent de sources publiques. SunuMaison agit uniquement comme plateforme de mise en relation et ne garantit pas les prestations des professionnels."})})})]})}}},e=>{e.O(0,[5559,7383,3215,771,2332,8441,3794,7358],()=>e(e.s=23471)),_N_E=e.O()}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.