import{t as e,u as t}from"./link-D6qMr5cH.js";import{n,s as r,t as i}from"./Reveal-B5L63d2i.js";import{i as a}from"./site-DtkC9bu0.js";import{t as o}from"./actualites._slug-Cd4MAR4C.js";import{t as s}from"./arrow-right-C8YMDV_S.js";import{t as c}from"./calendar-days-CQ-2TxVG.js";import{t as l}from"./HeroBanner-D8ssKLQC.js";import{t as u}from"./CTA-Bmbg-OCB.js";var d=r(`arrow-left`,[[`path`,{d:`m12 19-7-7 7-7`,key:`1l729n`}],[`path`,{d:`M19 12H5`,key:`x3x0zl`}]]),f=r(`user`,[[`path`,{d:`M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2`,key:`975kel`}],[`circle`,{cx:`12`,cy:`7`,r:`4`,key:`17ys0d`}]]),p=t();function m({slug:t}){let r=a.find(e=>e.slug===t)??a[0],o=a.filter(e=>e.slug!==r.slug).slice(0,2);return(0,p.jsxs)(n,{children:[(0,p.jsx)(l,{title:r.title,parent:`Actualités`,parentHref:`/`,image:r.image}),(0,p.jsx)(`section`,{className:`hj-section`,children:(0,p.jsx)(`div`,{className:`hj-container max-w-3xl`,children:(0,p.jsxs)(i,{children:[(0,p.jsxs)(`div`,{className:`flex items-center gap-5 text-xs text-muted-foreground mb-6`,children:[(0,p.jsxs)(`span`,{className:`inline-flex items-center gap-2`,children:[(0,p.jsx)(c,{size:14,className:`text-[var(--blue)]`}),` `,r.date]}),(0,p.jsxs)(`span`,{className:`inline-flex items-center gap-2`,children:[(0,p.jsx)(f,{size:14,className:`text-[var(--blue)]`}),` `,r.author]}),(0,p.jsx)(`span`,{className:`px-3 py-1 rounded-full bg-[var(--blue)] text-white uppercase tracking-widest text-[.65rem]`,children:r.tag})]}),(0,p.jsx)(`div`,{className:`hj-card mb-10`,children:(0,p.jsx)(`div`,{className:`hj-card-img aspect-[16/9]`,children:(0,p.jsx)(`img`,{src:r.image,alt:r.title})})}),(0,p.jsx)(`div`,{className:`prose max-w-none space-y-5 text-[15px] leading-relaxed text-foreground/90`,children:r.content.map((e,t)=>(0,p.jsx)(`p`,{children:e},t))}),(0,p.jsx)(`div`,{className:`mt-10`,children:(0,p.jsxs)(e,{to:`/`,className:`hj-btn hj-btn-outline inline-flex items-center gap-2`,children:[(0,p.jsx)(d,{size:16}),` Retour à l'accueil`]})})]})})}),o.length>0&&(0,p.jsx)(`section`,{className:`hj-section bg-[var(--sand)]/30`,children:(0,p.jsxs)(`div`,{className:`hj-container`,children:[(0,p.jsxs)(`div`,{className:`hj-section-title`,children:[(0,p.jsx)(`span`,{className:`eyebrow`,children:`À lire aussi`}),(0,p.jsx)(`h2`,{children:`Autres actualités`}),(0,p.jsx)(`div`,{className:`divider`})]}),(0,p.jsx)(`div`,{className:`grid gap-8 md:grid-cols-2`,children:o.map(t=>(0,p.jsxs)(e,{to:`/actualites/$slug`,params:{slug:t.slug},className:`hj-card group block`,children:[(0,p.jsxs)(`div`,{className:`hj-card-img aspect-[16/9]`,children:[(0,p.jsx)(`img`,{src:t.image,alt:t.title}),(0,p.jsx)(`span`,{className:`absolute top-4 left-4 bg-[var(--blue)] text-white text-[.7rem] uppercase tracking-widest px-3 py-1 rounded-full`,children:t.tag})]}),(0,p.jsxs)(`div`,{className:`hj-card-body`,children:[(0,p.jsxs)(`div`,{className:`text-xs text-muted-foreground mb-2 inline-flex items-center gap-2`,children:[(0,p.jsx)(c,{size:14,className:`text-[var(--blue)]`}),` `,t.date]}),(0,p.jsx)(`h3`,{children:t.title}),(0,p.jsx)(`p`,{className:`text-sm text-muted-foreground mt-2`,children:t.excerpt}),(0,p.jsxs)(`span`,{className:`hj-link-underline text-sm font-semibold text-[var(--blue)] mt-4 inline-flex items-center gap-2`,children:[`Lire l'article `,(0,p.jsx)(s,{size:14})]})]})]},t.slug))})]})}),(0,p.jsx)(u,{})]})}function h(){let{slug:e}=o.useParams();return(0,p.jsx)(m,{slug:e})}export{h as component};