1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6280],{7810:(e,t,a)=>{"use strict";a.d(t,{A:()=>s});let s=(0,a(78340).A)("Users",[["path",{d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2",key:"1yyitq"}],["circle",{cx:"9",cy:"7",r:"4",key:"nufk8"}],["path",{d:"M22 21v-2a4 4 0 0 0-3-3.87",key:"kshegd"}],["path",{d:"M16 3.13a4 4 0 0 1 0 7.75",key:"1da9ce"}]])},12032:(e,t,a)=>{"use strict";function s(e,t){if(!e)return"Non renseign\xe9";if("custom"===e&&t)return t;let a={"head-coach":"Entra\xeeneur principal",coach:"Entra\xeeneur","assistant-coach":"Entra\xeeneur adjoint","goalkeeper-coach":"Entra\xeeneur des gardiens","fitness-coach":"Pr\xe9parateur physique","video-analyst":"Analyste vid\xe9o",doctor:"M\xe9decin",physiotherapist:"Kin\xe9sith\xe9rapeute",osteopathe:"Ost\xe9opathe",osteopath:"Ost\xe9opathe",podologue:"Podologue",podologist:"Podologue","team-manager":"Team Manager","team manager":"Team Manager",intendant:"Intendant","sporting-director":"Directeur sportif","general-manager":"Directeur g\xe9n\xe9ral",president:"Pr\xe9sident de la SASP","formation-president":"Pr\xe9sident de l'Association","formation-director":"Directeur de formation",educator:"\xc9ducateur","formation-fitness-coach":"Pr\xe9parateur physique formation","formation-medical":"Staff m\xe9dical formation"};return a[e.toLowerCase()]?a[e.toLowerCase()]:e}function i(e){return e?({direction:"Direction",educator:"\xc9ducateur","fitness-coach":"Pr\xe9parateur physique",medical:"Staff m\xe9dical"})[e.toLowerCase()]||e:"Non renseign\xe9"}function r(e,t){if(!e)return 999;if("custom"===e&&t){let e=t.toLowerCase().trim();return e.includes("pr\xe9sident d\xe9l\xe9gu\xe9")||e.includes("president delegue")?1.5:e.includes("directeur commercial")||e.includes("directeur general")?2:e.includes("responsable administratif")||e.includes("responsable financier")?15:e.includes("responsable billetterie")?25:120}let a=e.toLowerCase().trim(),s={president:1,président:1,"president d\xe9l\xe9gu\xe9":1.5,"pr\xe9sident d\xe9l\xe9gu\xe9":1.5,"president delegue":1.5,"general-manager":2,"directeur g\xe9n\xe9ral":2,"directeur general":2,"directeur commercial":2.5,"sporting-director":3,"directeur sportif":3,"head-coach":10,coach:10,entraîneur:10,entraineur:10,"entra\xeeneur principal":10,"entraineur principal":10,"responsable administratif":15,"responsable administratif et financier":15,"responsable financier":15,"directeur administratif":15,"directeur financier":15,"assistant-coach":20,"entra\xeeneur adjoint":20,"entraineur adjoint":20,"responsable billetterie":25,"responsable commercial":25,"responsable marketing":25,"responsable communication":25,"goalkeeper-coach":30,"entra\xeeneur des gardiens":30,"entraineur des gardiens":30,doctor:40,médecin:40,medecin:40,"fitness-coach":50,"pr\xe9parateur physique":50,"preparateur physique":50,"video-analyst":60,"analyste vid\xe9o":60,"analyste video":60,physiotherapist:70,kinésithérapeute:70,kinesitherapeute:70,kiné:70,kyné:70,kyne:70,osteopathe:80,ostéopathe:80,osteopath:80,podologue:90,podologist:90,"team-manager":100,"team manager":100,intendant:110,"formation-president":.5,"formation-director":200,educator:210,"formation-fitness-coach":220,"formation-medical":230};if(s[a])return s[a];if(t){let e=t.toLowerCase().trim();if(e.includes("pr\xe9sident d\xe9l\xe9gu\xe9")||e.includes("president delegue"))return 1.5;if(e.includes("directeur commercial"))return 2.5;if(e.includes("directeur g\xe9n\xe9ral")||e.includes("directeur general"))return 2;if(e.includes("responsable administratif")||e.includes("responsable financier"))return 15;if(e.includes("responsable billetterie"))return 25}for(let e of Object.keys(s).sort((e,t)=>t.length-e.length))if(a===e||a.includes(e))return s[e];return 999}function n(e){return[...e].sort((e,t)=>{let a=r(e.position,e.customPosition),s=r(t.position,t.customPosition);if(a===s){let a=(e.name||"").toLowerCase(),s=(t.name||"").toLowerCase();return a.localeCompare(s,"fr")}return a-s})}a.d(t,{FT:()=>n,Yp:()=>i,wI:()=>s})},50808:(e,t,a)=>{"use strict";a.r(t),a.d(t,{default:()=>M});var s=a(95155),i=a(12115),r=a(77561),n=a(98500),l=a.n(n),o=a(83391),d=a(73321);let c=(0,a(78340).A)("Shirt",[["path",{d:"M20.38 3.46 16 2a4 4 0 0 1-8 0L3.62 3.46a2 2 0 0 0-1.34 2.23l.58 3.47a1 1 0 0 0 .99.84H6v10c0 1.1.9 2 2 2h8a2 2 0 0 0 2-2V10h2.15a1 1 0 0 0 .99-.84l.58-3.47a2 2 0 0 0-1.34-2.23z",key:"1wgbhj"}]]);var m=a(66088),u=a(80723),x=a(7810),h=a(57420),p=a(33210),g=a(39449),f=a(52388),b=a(2275),j=a(96998),y=a(78974),w=a(87109),v=a(12032);let N=e=>{if(!e)return null;let t=new Date,a=new Date(e),s=t.getFullYear()-a.getFullYear(),i=t.getMonth()-a.getMonth();return(i<0||0===i&&t.getDate()<a.getDate())&&s--,s},k={goalkeeper:"Gardien",defender:"D\xe9fenseur",midfielder:"Milieu",attacker:"Attaquant","center-back":"D\xe9fenseur central","full-back":"D\xe9fenseur lat\xe9ral","defensive-midfielder":"Milieu d\xe9fensif","central-midfielder":"Milieu central","attacking-midfielder":"Milieu offensif",winger:"Ailier",striker:"Attaquant"},C=e=>e?k[e.toLowerCase()]||e:"Non d\xe9fini",A=e=>{if(!e?.trim())return null;let t=e.trim();if(/^https?:\/\//i.test(t))return t;let a=t.replace(/^@/,"").replace(/^instagram\.com\//i,"").replace(/\/$/,"");return a?`https://www.instagram.com/${a}/`:null};function P({className:e="w-6 h-6",gradientId:t}){return(0,s.jsxs)("svg",{viewBox:"0 0 24 24",className:e,"aria-hidden":"true",fill:`url(#${t})`,children:[(0,s.jsx)("defs",{children:(0,s.jsxs)("linearGradient",{id:t,x1:"0%",y1:"100%",x2:"100%",y2:"0%",children:[(0,s.jsx)("stop",{offset:"0%",stopColor:"#f09433"}),(0,s.jsx)("stop",{offset:"25%",stopColor:"#e6683c"}),(0,s.jsx)("stop",{offset:"50%",stopColor:"#dc2743"}),(0,s.jsx)("stop",{offset:"75%",stopColor:"#cc2366"}),(0,s.jsx)("stop",{offset:"100%",stopColor:"#bc1888"})]})}),(0,s.jsx)("path",{d:"M12 0C8.741 0 8.333.014 7.053.072 5.775.132 4.905.333 4.14.63c-.789.306-1.459.717-2.126 1.384S.935 3.35.63 4.14C.333 4.905.131 5.775.072 7.053.014 8.333 0 8.741 0 12c0 3.259.014 3.668.072 4.948.06 1.277.261 2.148.558 2.913.306.788.717 1.459 1.384 2.126.667.666 1.336 1.079 2.126 1.384.766.296 1.636.499 2.913.558C8.333 23.986 8.741 24 12 24c3.259 0 3.668-.014 4.948-.072 1.277-.06 2.148-.262 2.913-.558.788-.306 1.459-.718 2.126-1.384.666-.667 1.079-1.335 1.384-2.126.296-.765.499-1.636.558-2.913.06-1.28.072-1.689.072-4.948 0-3.259-.014-3.667-.072-4.947-.06-1.277-.262-2.149-.558-2.913-.306-.789-.718-1.459-1.384-2.126C21.319 1.347 20.651.935 19.86.63c-.765-.297-1.636-.499-2.913-.558C15.668.014 15.259 0 12 0zm0 2.16c3.203 0 3.585.012 4.85.07 1.17.055 1.805.249 2.227.415.562.217.96.477 1.382.896.419.42.679.819.896 1.381.164.422.36 1.057.413 2.227.06 1.265.072 1.646.072 4.85 0 3.204-.012 3.585-.072 4.85-.055 1.17-.249 1.805-.413 2.227-.217.562-.477.96-.896 1.382-.42.419-.819.679-1.381.896-.422.164-1.057.36-2.227.413-1.265.06-1.646.072-4.85.072-3.204 0-3.585-.012-4.85-.072-1.17-.055-1.805-.249-2.227-.413a3.64 3.64 0 0 1-1.382-.896 3.64 3.64 0 0 1-.896-1.381c-.164-.422-.36-1.057-.413-2.227-.06-1.265-.072-1.646-.072-4.85 0-3.203.012-3.585.072-4.85.055-1.17.249-1.805.413-2.227.217-.562.477-.96.896-1.382.42-.419.819-.679 1.381-.896.422-.164 1.057-.36 2.227-.413 1.265-.06 1.646-.072 4.85-.072z"}),(0,s.jsx)("path",{d:"M12 5.838a6.162 6.162 0 1 0 0 12.324 6.162 6.162 0 0 0 0-12.324zM12 16a4 4 0 1 1 0-8 4 4 0 0 1 0 8zm4.965-10.405a1.44 1.44 0 1 0 0 2.881 1.44 1.44 0 0 0 0-2.881z"})]})}function E({url:e,rawValue:t,className:a="",onClick:r}){let n=i.useId().replace(/:/g,""),l=(e=>{if(!e?.trim())return null;let t=e.trim(),a=t;if(/^https?:\/\//i.test(t)){let e=t.match(/instagram\.com\/([^/?#]+)/i);a=e?.[1]??""}return(a=a.replace(/^@/,"").replace(/^instagram\.com\//i,"").replace(/\/$/,"").split("?")[0])?`@${a}`:null})(t??e);return l?(0,s.jsxs)("a",{href:e,target:"_blank",rel:"noopener noreferrer",onClick:r,className:`flex items-center gap-3 w-full py-2.5 mt-2 border-t border-gray-100 hover:opacity-90 transition-opacity ${a}`,"aria-label":`Instagram ${l} (nouvel onglet)`,children:[(0,s.jsx)(P,{className:"w-7 h-7 shrink-0",gradientId:n}
1),(0,s.jsx)("span",{className:"font-dm-sans text-sm font-medium text-gray-800 tracking-normal",children:l})]}):null}let S=(0,i.memo)(({joueur:e,index:t,onSelect:a})=>{let i=!0===e.isCaptain,n=A(e.socialMedia?.instagram),l=!!e.biography?.trim();return(0,s.jsxs)(r.P.div,{role:"button",tabIndex:0,initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},transition:{duration:.3,delay:.01*t,ease:"easeOut"},viewport:{once:!0,margin:"-150px"},onClick:()=>a(e),onKeyDown:t=>{("Enter"===t.key||" "===t.key)&&(t.preventDefault(),a(e))},className:`w-full text-left bg-white p-6 rounded-lg shadow-lg group hover:shadow-xl transition-shadow duration-300 relative overflow-hidden cursor-pointer focus:outline-none focus-visible:ring-2 focus-visible:ring-amiens-blue focus-visible:ring-offset-2 ${i?"border-2 border-amber-400 shadow-lg shadow-amber-200/50":""}`,"aria-label":`Voir la fiche de ${e.name}`,children:[i&&(0,s.jsx)("div",{className:"absolute inset-0 bg-gradient-to-br from-amber-400/10 via-amber-300/5 to-transparent pointer-events-none z-0"}),(0,s.jsxs)("div",{className:`aspect-square rounded-lg mb-4 overflow-hidden relative bg-gray-100 flex items-center justify-center ${i?"ring-2 ring-amber-400/30":""}`,children:[(0,s.jsx)("img",{src:e.photo?(0,y.dk)(e.photo).width(400).height(400).url():"/images/club/supporters.webp",alt:e.name,className:"w-full h-full object-cover group-hover:scale-105 transition-transform duration-300",onError:e=>{e.currentTarget.style.display="none";let t=e.currentTarget.nextElementSibling;t&&(t.style.display="flex")}}),(0,s.jsx)("div",{className:"absolute inset-0 w-full h-full bg-amiens-blue text-white flex items-center justify-center hidden",children:(0,s.jsx)(c,{className:"w-16 h-16"})}),(0,s.jsx)("div",{className:"absolute top-4 right-4 bg-amiens-blue text-white w-8 h-8 rounded-full flex items-center justify-center font-bold text-sm",children:e.jerseyNumber}),i&&(0,s.jsx)("div",{className:"absolute inset-0 bg-gradient-to-t from-amber-500/20 to-transparent pointer-events-none"})]}),(0,s.jsxs)("div",{className:"space-y-3",children:[(0,s.jsx)("h3",{className:"text-xl font-bold text-amiens-blue group-hover:text-amiens-blue-dark transition-colors",children:e.name}),(0,s.jsxs)("div",{className:"space-y-2 text-gray-600 text-sm",children:[i&&(0,s.jsxs)("div",{className:"flex justify-between",children:[(0,s.jsx)("span",{children:"R\xf4le:"}),(0,s.jsx)("span",{className:"font-medium text-amber-600",children:"Capitaine"})]}),(0,s.jsxs)("div",{className:"flex justify-between",children:[(0,s.jsx)("span",{children:"Poste:"}),(0,s.jsx)("span",{className:"font-medium",children:C(e.position)})]}),(0,s.jsxs)("div",{className:"flex justify-between",children:[(0,s.jsx)("span",{children:"\xc2ge:"}),(0,s.jsxs)("span",{className:"font-medium",children:[N(e.dateOfBirth??"")||"N/A"," ans"]})]}),(0,s.jsxs)("div",{className:"flex justify-between",children:[(0,s.jsx)("span",{children:"Nationalit\xe9:"}),(0,s.jsx)("span",{className:"font-medium",children:e.nationality})]})]}),n&&(0,s.jsx)(E,{url:n,rawValue:e.socialMedia?.instagram,onClick:e=>e.stopPropagation()}),l&&(0,s.jsxs)("button",{type:"button",onClick:t=>{t.stopPropagation(),a(e)},className:"flex items-center justify-center gap-1.5 w-full pt-2.5 mt-2 border-t border-gray-100 text-amiens-blue hover:text-amiens-blue-dark transition-colors group/desc","aria-label":`Lire la description de ${e.name}`,children:[(0,s.jsx)("span",{className:"text-sm font-dm-sans font-medium",children:"Description"}),(0,s.jsx)(m.A,{className:"w-4 h-4 transition-transform group-hover/desc:translate-y-0.5","aria-hidden":"true"})]})]})]})});function q(){(0,w.p)();let e=(0,d.useSearchParams)(),[t,a]=(0,i.useState)("Tous"),[n,c]=(0,i.useState)({}),[k,P]=(0,i.useState)(null),{players:q,loading:M,error:D}=(0,j.pd)(),{staff:L,loading:I,error:T}=(0,j.XI)(),$=i.useMemo(()=>{let e=L.filter(e=>e.displaySections?.equipe===!0);return(0,v.FT)(e)},[L]);(0,i.useEffect)(()=>{let t=e.get("poste");t&&["Tous","Gardien","D\xe9fenseur","Milieu","Attaquant"].includes(t)&&(a(t),setTimeout(()=>{let e=document.getElementById("effectif");e&&e.scrollIntoView({behavior:"smooth",block:"start"})},300))},[e]),(0,i.useEffect)(()=>
1{if(!k)return;let e=e=>{"Escape"===e.key&&P(null)};return document.addEventListener("keydown",e),document.body.style.overflow="hidden",()=>{document.removeEventListener("keydown",e),document.body.style.overflow=""}},[k]);let _="Tous"===t?q:q.filter(e=>(e=>{if(!e)return"Autre";let t=e.toLowerCase();return"goalkeeper"===t?"Gardien":"defender"===t||"center-back"===t||"full-back"===t?"D\xe9fenseur":"midfielder"===t||"defensive-midfielder"===t||"central-midfielder"===t||"attacking-midfielder"===t?"Milieu":"attacker"===t||"winger"===t||"striker"===t?"Attaquant":"Autre"})(e.position)===t),z=[{label:"Joueurs",valeur:q.length.toString(),unite:""},{label:"\xc2ge moyen",valeur:q.length>0?Math.round(q.reduce((e,t)=>e+(N(t.dateOfBirth)||0),0)/q.length).toString():"0",unite:"ans"},{label:"Nationalit\xe9s",valeur:[...new Set(q.map(e=>e.nationality))].length.toString(),unite:""}],O=k?A(k.socialMedia?.instagram):null;return(0,s.jsxs)("div",{className:"min-h-screen bg-black w-full overflow-x-hidden",children:[(0,s.jsx)(f.A,{}),(0,s.jsxs)("section",{className:"relative py-10 sm:py-14 md:py-20 bg-gradient-to-br from-amiens-blue to-amiens-blue-dark overflow-hidden",children:[(0,s.jsx)("div",{className:"absolute inset-0",children:(0,s.jsx)(o.default,{src:"/images/\xc9QUIPE.webp",alt:"\xc9quipe Amiens SC",fill:!0,className:"object-cover opacity-25",priority:!0})}),(0,s.jsx)("div",{className:"absolute inset-0 bg-gradient-to-br from-amiens-blue/70 via-amiens-blue/50 to-amiens-blue-dark/70"}),(0,s.jsx)("div",{className:"absolute inset-0 bg-black/20"}),(0,s.jsx)("div",{className:"relative z-10 max-w-7xl mx-auto px-4 sm:px-6 lg:px-8",children:(0,s.jsxs)("div",{className:"text-center",children:[(0,s.jsxs)(l(),{href:"/",className:"flex items-center justify-center space-x-2 text-white/80 hover:text-white transition-colors mb-4 sm:mb-6 group",children:[(0,s.jsx)(u.A,{className:"w-4 h-4 group-hover:-translate-x-1 transition-transform"}),(0,s.jsx)("span",{children:"Retour \xe0 l'accueil"})]}),(0,s.jsx)("h1",{className:"hero-title-main hero-title-snow inline-block px-6 md:px-10 text-3xl sm:text-4xl md:text-7xl font-semibold text-white mb-3 sm:mb-5 md:mb-6 tracking-optima",children:"L'\xc9QUIPE"}),(0,s.jsx)("p",{className:"text-base sm:text-lg md:text-2xl text-white/90 max-w-3xl mx-auto font-light leading-relaxed",children:"D\xe9couvrez les joueurs et le staff de l'Amiens SC"})]})})]}),(0,s.jsx)("section",{className:"py-4 bg-white border-b border-gray-200 shadow-sm",children:(0,s.jsx)("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8",children:(0,s.jsxs)("div",{className:"space-y-3",children:[(0,s.jsx)("div",{className:"text-center",children:(0,s.jsx)("h2",{className:"text-lg font-bold text-gray-900 mb-1",children:"Filtrer par poste"})}),(0,s.jsx)("div",{className:"flex flex-wrap justify-center gap-2",children:["Tous","Gardien","D\xe9fenseur","Milieu","Attaquant"].map((e,i)=>{let n=t===e;return(0,s.jsx)(r.P.button,{onClick:()=>a(e),whileHover:{scale:1.05},whileTap:{scale:.95},className:`cta-snow px-6 py-3 rounded-xl font-semibold text-sm transition-all duration-300 shadow-md ${n?"cta-primary bg-amiens-blue text-white shadow-lg shadow-amiens-blue/30":"cta-secondary bg-white text-amiens-blue hover:bg-amiens-blue hover:text-white border-2 border-gray-200 hover:border-amiens-blue"}`,children:e},i)})})]})})}),(0,s.jsx)("section",{id:"effectif",className:"pt-8 pb-16 bg-white",children:(0,s.jsxs)("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8",children:[(0,s.jsxs)("div",{className:"text-center mb-16",children:[(0,s.jsx)("h2",{className:"text-4xl md:text-5xl font-bold text-amiens-blue mb-6",children:"Les Joueurs"}),(0,s.jsx)("p",{className:"text-xl text-gray-600 max-w-3xl mx-auto",children:"Rencontrez les talents qui composent l'effectif de l'Amiens SC"})]}),M?(0,s.jsx)("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-8",children:[1,2,3,4,5,6].map(e=>(0,s.jsxs)("div",{className:"bg-white p-6 rounded-lg shadow-lg animate-pulse",children:[(0,s.jsx)("div",{className:"aspect-square rounded-lg mb-4 bg-gray-200"}),(0,s.jsxs)("div",{className:"space-y-3",children:[(0,s.jsx)("div",{className:"h-6 bg-gray-200 rounded w-3/4"}),(0,s.jsxs)("div",{className:"space-y-2",children:[(0,s.jsx)("div",{className:"h-4 bg-gray-200 rounded"}),(0,s.jsx)("div",{className:"h-4 bg-gray-200 rounded w-1/2"}),(0,s.jsx)("div",{className:"h-4 bg-gray-200 rounded w-2/3"}),(0,s.jsx)("div",{className:"h-4 bg-gray-200 rounded w-1/3"})]})]})]},e))}):D?(0,s.jsxs)("div",{className:"text-center py-12",children:[(0,s.jsx)("p",{className:"text-red-600 mb-4",children:"Erreur lors du chargement des joueurs"}),(0,s.jsx)("p",{className:"text-gray-500",children:D})]}):(0,s.jsx)("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-8",children:_.map((e,t)=>(0,s.jsx)(S,{joueur:e,index:t,onSelect:P},e._id))})]})}),(0,s.jsx)("section",{id:"statistiques",className:"py-20 bg-gradient-to-br from-gray-50 to-white border-b border-gray-200",children:(0,s.jsxs)("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8",children:[(0,s.jsxs)("div",{className:"text-center mb-12",children:[(0,s.jsx)("h2",{className:"text-3xl md:text-4xl font-semibold text-black mb-4 tracking-optima",children:"L'\xc9QUIPE EN CHIFFRES"}),(0,s.jsx)("div",{className:"w-24 h-1 bg-amiens-blue mx-auto"})]}),(0,s.jsx)(r.P.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},transition:{duration:.2},viewport:{once:!0,margin:"-50px"},className:"grid grid-cols-2 md:grid-cols-3 gap-6",children:z.map((e,t)=>(0,s.jsx)(r.P.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},transition:{duration:.2,delay:.01*t},viewport:{once:!0,margin:"-30px"},whileHover:{scale:1.05,y:-5},className:"text-center group",children:(0,s.jsxs)("div",{className:"bg-white p-8 rounded-2xl shadow-lg hover:shadow-2xl hover:bg-black hover:text-white transition-all duration-300 border border-gray-200 hover:border-amiens-blue",children:[(0,s.jsxs)("div",{className:"text-4xl md:text-5xl font-black text-amiens-blue mb-3 group-hover:text-white transition-colors duration-300",children:[e.valeur,e.unite&&(0,s.jsxs)("span",{className:"text-2xl",children:[" ",e.unite]})]}),(0,s.jsx)("div",{className:"text-gray-600 font-semibold group-hover:text-gray-200 transition-colors duration-300",children:e.label})]})},t))})]})}),(0,s.jsx)("section",{id:"staff",className:"py-16 bg-white",children:(0,s.jsxs)("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8",children:[(0,s.jsxs)("div",{className:"text-center mb-16",children:[(0,s.jsx)("h2",{className:"text-4xl md:text-5xl font-bold text-amiens-blue mb-6",children:"Le Staff Technique"}),(0,s.jsx)("p",{className:"text-xl text-gray-600 max-w-3xl mx-auto",children:"L'\xe9quipe qui accompagne les joueurs au quotidien"})]}),I?(0,s.jsx)("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-8 max-w-7xl mx-auto",children:[1,2].map(e=>(0,s.jsxs)("div",{className:"bg-white p-6 rounded-lg shadow-lg text-center animate-pulse",children:[(0,s.jsx)("div",{className:"w-24 h-24 mx-auto mb-4 bg-gray-200 rounded-full"}),(0,s.jsx)("div",{className:"h-6 bg-gray-200 rounded w-3/4 mx-auto mb-2"}),(0,s.jsx)("div",{className:"h-4 bg-gray-200 rounded w-1/2 mx-auto mb-2"}),(0,s.jsx)("div",{className:"h-4 bg-gray-200 rounded w-1/3 mx-auto"})]},e))}):T?(0,s.jsxs)("div",{className:"text-center py-12",children:[(0,s.jsx)("p",{className:"text-red-600 mb-4",children:"Erreur lors du chargement du staff"}),(0,s.jsx)("p",{className:"text-gray-500",children:T})]}):0===$.length?(0,s.jsx)("div",{className:"text-center py-12 text-gray-500",children:"Aucun membre du staff \xe0 afficher pour cette section."}):(0,s.jsx)(r.P.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},transition:{duration:.2},viewport:{once:!0,margin:"-30px"},className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-8 max-w-7xl mx-auto",children:$.map((e,t)=>{let a=e.motStaff;return(0,s.jsxs)(r.P.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},transition:{duration:.2,delay:.01*t},viewport:{once:!0,margin:"-20px"},className:"bg-white p-6 rounded-lg shadow-lg text-center group hover:shadow-xl transition-shadow duration-300",children:[(0,s.jsx)("div",{className:"w-24 h-24 mx-auto mb-4 relative",children:(0,s.jsxs)("div",{className:"w-full h-full rounded-full overflow-hidden border-4 border-amiens-blue/20 group-hover:border-amiens-blue/40 transition-colors duration-300 bg-gray-100 flex items-center justify-center",children:[(0,s.jsx)("img",{src:e.photo?(0,y.dk)(e.photo).width(200).height(200).url():"/images/sh
1ared/staff/bernard-joannin.webp",alt:e.name,className:"w-full h-full object-cover group-hover:scale-105 transition-transform duration-300",onError:e=>{e.currentTarget.style.display="none";let t=e.currentTarget.nextElementSibling;t&&(t.style.display="flex")}}),(0,s.jsx)("div",{className:"absolute inset-0 w-full h-full bg-amiens-blue text-white rounded-full flex items-center justify-center hidden",children:(0,s.jsx)(x.A,{className:"w-12 h-12"})})]})}),(0,s.jsx)("h3",{className:"text-xl font-bold text-amiens-blue group-hover:text-amiens-blue-dark transition-colors mb-2",children:e.name}),(0,s.jsx)("p",{className:"text-gray-600 font-medium mb-2",children:(0,v.wI)(e.position,e.customPosition)}),(0,s.jsx)("p",{className:"text-gray-500 text-sm mb-4",children:e.startDate?`Depuis ${new Date(e.startDate).toLocaleDateString("fr-FR",{year:"numeric",month:"long"})}`:"N/A"}),a&&(0,s.jsxs)("div",{className:"mt-4 pt-4 border-t border-gray-200",children:[(0,s.jsxs)("button",{onClick:()=>{var t;return t=e._id,void c(e=>({...e,[t]:!e[t]}))},className:"flex items-center justify-center space-x-2 text-amiens-blue hover:text-amiens-blue-dark transition-colors group w-full","aria-expanded":n[e._id],"aria-controls":`staff-accordion-content-${e._id}`,children:[(0,s.jsx)(m.A,{className:`w-5 h-5 transition-transform duration-300 ${n[e._id]?"rotate-180":""}`}),(0,s.jsx)("span",{className:"text-sm font-medium",children:"Mot du staff"})]}),(0,s.jsx)(g.N,{children:n[e._id]&&(0,s.jsx)(r.P.div,{id:`staff-accordion-content-${e._id}`,initial:{height:0,opacity:0},animate:{height:"auto",opacity:1},exit:{height:0,opacity:0},transition:{duration:.3,ease:"easeInOut"},className:"overflow-hidden",children:(0,s.jsx)("div",{className:"pt-3 pb-2",children:(0,s.jsx)("div",{className:"text-gray-600 leading-relaxed text-sm text-left whitespace-pre-line",children:a})})})})]})]},e._id)})})]})}),(0,s.jsx)("section",{className:"py-16 bg-white",children:(0,s.jsx)("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8",children:(0,s.jsxs)("div",{className:"grid grid-cols-1 lg:grid-cols-2 gap-16 items-center",children:[(0,s.jsxs)(r.P.div,{initial:{opacity:0,x:-50},whileInView:{opacity:1,x:0},transition:{duration:.4},viewport:{once:!0},className:"space-y-8",children:[(0,s.jsx)("h2",{className:"text-4xl md:text-5xl font-bold text-amiens-blue",children:"Centre de Formation"}),(0,s.jsx)("div",{className:"w-24 h-1 bg-amiens-blue"}),(0,s.jsxs)("div",{className:"space-y-6 text-lg text-gray-600",children:[(0,s.jsx)("p",{children:"Le centre de formation de l'Amiens SC forme les talents de demain avec une approche p\xe9dagogique moderne et des installations de qualit\xe9."}),(0,s.jsx)("p",{children:"Nos jeunes joueurs \xe9voluent dans un environnement propice \xe0 leur d\xe9veloppement sportif et personnel, encadr\xe9s par des \xe9ducateurs exp\xe9riment\xe9s."})]}),(0,s.jsx)(r.P.div,{whileHover:{scale:1.05},whileTap:{scale:.95},children:(0,s.jsxs)(l(),{href:"/formation",className:"inline-flex items-center space-x-3 text-amiens-blue hover:text-amiens-blue-dark font-dm-sans font-semibold transition-colors group uppercase border border-amiens-blue rounded-full px-4 py-2",children:[(0,s.jsx)("span",{className:"uppercase",children:"En savoir plus sur la formation ami\xe8noise"}),(0,s.jsx)(h.A,{className:"w-5 h-5 group-hover:translate-x-1 transition-transform"})]})})]}),(0,s.jsx)(r.P.div,{initial:{opacity:0,x:50},whileInView:{opacity:1,x:0},transition:{duration:.4},viewport:{once:!0},className:"relative",children:(0,s.jsx)("div",{className:"bg-gray-50 p-8 rounded-lg",children:(0,s.jsx)("div",{className:"aspect-video rounded-lg overflow-hidden bg-gray-100 flex items-center justify-center",children:(0,s.jsx)(o.default,{src:"/images/equipe/centre-formation.webp",alt:"Centre de Formation Amiens SC",width:400,height:225,className:"w-full h-full object-cover"})})})})]})})}),(0,s.jsx)(g.N,{children:k&&(0,s.jsx)(r.P.div,{initial:{opacity:0}
1,animate:{opacity:1},exit:{opacity:0},className:"fixed inset-0 z-50 flex items-center justify-center bg-black/80 p-4",onClick:()=>P(null),role:"dialog","aria-modal":"true","aria-labelledby":"joueur-modal-title",children:(0,s.jsxs)(r.P.div,{initial:{scale:.95,opacity:0},animate:{scale:1,opacity:1},exit:{scale:.95,opacity:0},transition:{duration:.2},className:"relative bg-white rounded-2xl shadow-2xl max-w-2xl w-full max-h-[90vh] overflow-y-auto",onClick:e=>e.stopPropagation(),children:[(0,s.jsx)("button",{type:"button",onClick:()=>P(null),className:"absolute top-4 right-4 text-gray-500 hover:text-amiens-blue transition-colors z-10","aria-label":"Fermer la fiche joueur",children:(0,s.jsx)(p.A,{className:"w-6 h-6"})}),(0,s.jsxs)("div",{className:"md:flex",children:[(0,s.jsx)("div",{className:"md:w-2/5 shrink-0",children:(0,s.jsxs)("div",{className:"aspect-square relative bg-gray-100",children:[(0,s.jsx)("img",{src:k.photo?(0,y.dk)(k.photo).width(600).height(600).url():"/images/club/supporters.webp",alt:k.name,className:"w-full h-full object-cover"}),null!=k.jerseyNumber&&(0,s.jsx)("div",{className:"absolute top-4 right-4 bg-amiens-blue text-white w-10 h-10 rounded-full flex items-center justify-center font-bold text-sm",children:k.jerseyNumber})]})}),(0,s.jsxs)("div",{className:"p-6 md:p-8 md:w-3/5 space-y-5",children:[(0,s.jsxs)("div",{children:[(0,s.jsx)("h3",{id:"joueur-modal-title",className:"text-2xl font-bold text-amiens-blue pr-8",children:k.name}),k.isCaptain&&(0,s.jsx)("p",{className:"text-sm font-medium text-amber-600 mt-1",children:"Capitaine"})]}),(0,s.jsxs)("dl",{className:"space-y-2 text-sm text-gray-600",children:[(0,s.jsxs)("div",{className:"flex justify-between gap-4",children:[(0,s.jsx)("dt",{children:"Poste"}),(0,s.jsx)("dd",{className:"font-medium text-gray-900",children:C(k.position)})]}),(0,s.jsxs)("div",{className:"flex justify-between gap-4",children:[(0,s.jsx)("dt",{children:"\xc2ge"}),(0,s.jsx)("dd",{className:"font-medium text-gray-900",children:N(k.dateOfBirth??"")?`${N(k.dateOfBirth??"")} ans`:"N/A"})]}),k.nationality&&(0,s.jsxs)("div",{className:"flex justify-between gap-4",children:[(0,s.jsx)("dt",{children:"Nationalit\xe9"}),(0,s.jsx)("dd",{className:"font-medium text-gray-900",children:k.nationality})]}),null!=k.height&&(0,s.jsxs)("div",{className:"flex justify-between gap-4",children:[(0,s.jsx)("dt",{children:"Taille"}),(0,s.jsxs)("dd",{className:"font-medium text-gray-900",children:[k.height," cm"]})]}),null!=k.weight&&(0,s.jsxs)("div",{className:"flex justify-between gap-4",children:[(0,s.jsx)("dt",{children:"Poids"}),(0,s.jsxs)("dd",{className:"font-medium text-gray-900",children:[k.weight," kg"]})]})]}),O&&(0,s.jsx)(E,{url:O,rawValue:k.socialMedia?.instagram,className:"border-gray-200"}),k.biography?.trim()?(0,s.jsxs)("div",{className:"pt-4 border-t border-gray-200",children:[(0,s.jsx)("h4",{className:"text-sm font-semibold text-amiens-blue uppercase tracking-wide mb-2",children:"Description"}),(0,s.jsx)("p",{className:"text-gray-600 leading-relaxed whitespace-pre-line text-sm",children:k.biography.trim()})]}):null]})]})]})})}),(0,s.jsx)(b.A,{})]})}function M(){return(0,s.jsx)(i.Suspense,{fallback:(0,s.jsx)("div",{className:"min-h-screen bg-black w-full overflow-x-hidden flex items-center justify-center",children:(0,s.jsx)("div",{className:"text-white text-xl",children:"Chargement..."})}),children:(0,s.jsx)(q,{})})}S.displayName="JoueurCard"},63746:(e,t,a)=>{Promise.resolve().then(a.bind(a,50808))},66088:(e,t,a)=>{"use strict";a.d(t,{A:()=>s});let s=(0,a(78340).A)("ChevronDown",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]])},80723:(e,t,a)=>{"use strict";a.d(t,{A:()=>s});let s=(0,a(78340).A)("ArrowLeft",[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]])},87109:(e,t,a)=>{"use strict";a.d(t,{p:()=>r});var s=a(12115),i=a(73321);function r(){let e=(0,i.usePathname)();(0,s.useEffect)(()=>{let e=null,t=()=>{let t=window.location.hash;t?(e&&clearTimeout(e),e=setTimeout(()=>{let e=document.querySelector(t);if(e){let t=e.getBoundingClientRect().top+window.pageYOffset-100;window.scrollTo({top:t,behavior:"smooth"})}},300)):window.scrollTo({top:0,behavior:"smooth"})};t();let a=()=>{t()};return window.addEventListener("hashchange",a),()=>{e&&clearTimeout(e),window.removeEventListener("hashchange",a)}},[e])}}},e=>{e.O(0,[9743,7561,2274,5772,9783,6998,2198,8441,8928,7358],()=>e(e.s=63746)),_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.