1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9892],{2170:(e,t,r)=>{"use strict";r.d(t,{BE:()=>p,Uz:()=>o,_s:()=>i,gk:()=>h,zj:()=>u});var n=r(37876),a=r(14232),s=r(28653),l=r(45195);let i=e=>{let{shouldScaleBackground:t=!0,...r}=e;return(0,n.jsx)(s._s.Root,{shouldScaleBackground:t,...r})};i.displayName="Drawer";let o=s._s.Trigger,c=s._s.Portal;s._s.Close;let d=a.forwardRef((e,t)=>{let{className:r,...a}=e;return(0,n.jsx)(s._s.Overlay,{ref:t,className:(0,l.cn)("fixed inset-0 z-50 bg-black/80",r),...a})});d.displayName=s._s.Overlay.displayName;let u=a.forwardRef((e,t)=>{let{className:r,children:a,...i}=e;return(0,n.jsxs)(c,{children:[(0,n.jsx)(d,{}),(0,n.jsxs)(s._s.Content,{ref:t,className:(0,l.cn)("fixed z-50 flex flex-col bg-background border shadow-xl","data-[vaul-drawer-direction=top]:inset-x-0 data-[vaul-drawer-direction=top]:top-0 data-[vaul-drawer-direction=top]:mb-24 data-[vaul-drawer-direction=top]:rounded-b-2xl h-auto","data-[vaul-drawer-direction=bottom]:inset-x-0 data-[vaul-drawer-direction=bottom]:bottom-0 data-[vaul-drawer-direction=bottom]:mt-24 data-[vaul-drawer-direction=bottom]:rounded-t-2xl h-auto","data-[vaul-drawer-direction=right]:inset-y-0 data-[vaul-drawer-direction=right]:right-0 data-[vaul-drawer-direction=right]:w-[85vw] data-[vaul-drawer-direction=right]:sm:w-[600px] data-[vaul-drawer-direction=right]:rounded-l-2xl h-full","data-[vaul-drawer-direction=left]:inset-y-0 data-[vaul-drawer-direction=left]:left-0 data-[vaul-drawer-direction=left]:w-[85vw] data-[vaul-drawer-direction=left]:sm:w-[600px] data-[vaul-drawer-direction=left]:rounded-r-2xl h-full",r),...i,children:[(0,n.jsx)("div",{className:"mx-auto mt-4 h-2 w-[100px] rounded-full bg-muted data-[vaul-drawer-direction=right]:hidden data-[vaul-drawer-direction=left]:hidden"}),a]})]})});u.displayName="DrawerContent";let p=e=>{let{className:t,...r}=e;return(0,n.jsx)("div",{className:(0,l.cn)("grid gap-1.5 p-4 text-center sm:text-left",t),...r})};p.displayName="DrawerHeader";let h=a.forwardRef((e,t)=>{let{className:r,...a}=e;return(0,n.jsx)(s._s.Title,{ref:t,className:(0,l.cn)("text-lg font-semibold leading-none tracking-tight",r),...a})});h.displayName=s._s.Title.displayName,a.forwardRef((e,t)=>{let{className:r,...a}=e;return(0,n.jsx)(s._s.Description,{ref:t,className:(0,l.cn)("text-sm text-muted-foreground",r),...a})}).displayName=s._s.Description.displayName},3937:(e,t,r)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/blog",function(){return r(82984)}])},62417:(e,t,r)=>{"use strict";r.d(t,{He:()=>p,LZ:()=>d,gN:()=>u,nO:()=>h});var n=r(37876),a=r(75961),s=r.n(a),l=r(14232);let i=function(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];return t.filter(Boolean).join(" ")},o=l.useLayoutEffect;function c(e,t){let[r,n]=(0,l.useState)("entrance");return o(()=>{let t=e.current;t&&("function"!=typeof window.matchMedia||!window.matchMedia("(prefers-reduced-motion: reduce)").matches)&&(t.getBoundingClientRect().top<window.innerHeight||n("hidden"))},[]),(0,l.useEffect)(()=>{if("hidden"!==r)return;let a=e.current;if(!a||"function"!=typeof IntersectionObserver)return void n("shown");let s=new IntersectionObserver(e=>{e.some(e=>e.isIntersecting)&&(n("shown"),s.disconnect())},{threshold:t});return s.observe(a),()=>s.disconnect()},[r,t]),r}function d(){let[e,t]=(0,l.useState)(0);return o(()=>t(1),[]),(0,l.useEffect)(()=>{1===e&&t(2)},[e]),e}function u(e){let{children:t,className:r="",delay:a=0,as:s="div"}=e,o=(0,l.useRef)(null),d=c(o,.25);return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(m,{}),(0,n.jsx)(s||"div",{ref:o,className:i("cp-reveal","hidden"===d&&"cp-reveal--hidden","shown"===d&&"cp-reveal--shown",r),style:a?{"--cp-reveal-delay":"".concat(a,"s")}:void 0,children:t})]})}function p(e){let{children:t,className:r=""}=e,a=(0,l.useRef)(null),s=c(a,.15);return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(m,{}),(0,n.jsx)("div",{ref:a,className:i("cp-reveal-group","hidden"===s&&"cp-reveal-group--hidden","shown"===s&&"cp-reveal-group--shown",r),children:t})]})}function h(e){let{children:t,className:r="",as:a="div"}=e;return(0,n.jsx)(a||"div",{className:i("cp-reveal-item",r),children:t})}function m(){return(0,n.jsx)(s(),{id:"66ebe05bf310dc52",children:"@keyframes cp-reveal-in{from{opacity:0;transform:translatey(28px);filter:blur(8px)}to{opacity:1;transform:translatey(0);
1filter:blur(0px)}}.cp-reveal,.cp-reveal-group>.cp-reveal-item{animation:cp-reveal-in.75s cubic-bezier(.16,1,.3,1)backwards;animation-delay:var(--cp-reveal-delay,0s)}.cp-reveal.cp-reveal--hidden,.cp-reveal-group.cp-reveal-group--hidden>.cp-reveal-item{animation:none;opacity:0;transform:translatey(28px);filter:blur(8px)}.cp-reveal.cp-reveal--shown,.cp-reveal-group.cp-reveal-group--shown>.cp-reveal-item{animation:none;transition:opacity.75s cubic-bezier(.16,1,.3,1),transform.75s cubic-bezier(.16,1,.3,1),filter.75s cubic-bezier(.16,1,.3,1);transition-delay:var(--cp-reveal-delay,0s)}.cp-reveal-group>.cp-reveal-item:nth-child(1){--cp-reveal-delay:0.05s}.cp-reveal-group>.cp-reveal-item:nth-child(2){--cp-reveal-delay:0.13s}.cp-reveal-group>.cp-reveal-item:nth-child(3){--cp-reveal-delay:0.21s}.cp-reveal-group>.cp-reveal-item:nth-child(4){--cp-reveal-delay:0.29s}.cp-reveal-group>.cp-reveal-item:nth-child(5){--cp-reveal-delay:0.37s}.cp-reveal-group>.cp-reveal-item:nth-child(6){--cp-reveal-delay:0.45s}.cp-reveal-group>.cp-reveal-item:nth-child(7){--cp-reveal-delay:0.53s}.cp-reveal-group>.cp-reveal-item:nth-child(8){--cp-reveal-delay:0.61s}.cp-reveal-group>.cp-reveal-item:nth-child(9){--cp-reveal-delay:0.69s}.cp-reveal-group>.cp-reveal-item:nth-child(10){--cp-reveal-delay:0.77s}.cp-reveal-group>.cp-reveal-item:nth-child(11){--cp-reveal-delay:0.85s}.cp-reveal-group>.cp-reveal-item:nth-child(n+12){--cp-reveal-delay:0.93s}@media(prefers-reduced-motion:reduce){.cp-reveal,.cp-reveal-item{animation:none!important;transition:none!important;opacity:1!important;transform:none!important;filter:none!important}}"})}},82984:(e,t,r)=>{"use strict";r.r(t),r.d(t,{__N_SSG:()=>Y,default:()=>G});var n=r(37876),a=r(14232),s=r(89099),l=r(48230),i=r.n(l),o=r(2535),c=r(7977),d=r(75972),u=r(55119),p=r(62417),h=r(19019),m=r(45796);function x(e){let{statusText:t,onReset:r,suggestions:a=[]}=e;return(0,n.jsxs)("div",{className:"border border-dashed border-black/15 bg-white/60 py-12 px-6 text-center",children:[(0,n.jsx)("h2",{className:"m-0 font-sans text-[19px] font-bold text-[#1d1d1d]",children:"Aucun guide ne correspond."}),(0,n.jsx)("p",{className:"m-0 mt-2 mb-6 font-sans text-[14px] text-[#656c7c]",children:t}),(0,n.jsx)("button",{type:"button",onClick:r,className:"inline-flex min-h-11 items-center justify-center border border-black/15 px-6 font-sans text-[13px] font-semibold uppercase tracking-[0.08em] text-[#1d1d1d] transition-colors duration-200 hover:border-[#aa484d] hover:text-[#aa484d] focus-visible:bg-black/5 motion-reduce:transition-none",children:"Effacer les filtres"}),a.length>0&&(0,n.jsxs)("div",{className:"mt-10 text-left",children:[(0,n.jsx)("p",{className:"m-0 mb-4 font-sans text-[12px] font-semibold uppercase tracking-[0.14em] text-[#8a8a8a]",children:"Les guides les plus proches"}),(0,n.jsx)("div",{className:"grid grid-cols-1 gap-x-8 lg:grid-cols-2",children:a.map(e=>(0,n.jsx)(m.A,{card:e,layout:"dense"},e.slug))})]})]})}var f=r(45195),v=r(98746),g=r(2170),b=r(17650);let w=new Set(b.mj.map(e=>e.href.replace("/cours-photo/",""))),y="bg-[#aa484d] border-[#aa484d] text-white",j="bg-transparent border-white/15 text-white/70 hover:border-white/30 hover:text-white",N="cursor-pointer min-h-11 rounded-full border px-4 text-xs font-semibold transition-colors duration-300 focus-visible:bg-white/15 focus-visible:text-white motion-reduce:transition-none",k="cursor-pointer min-h-9 rounded-xl border px-3 text-xs font-medium transition-colors duration-300 focus-visible:bg-white/15 focus-visible:text-white motion-reduce:transition-none";function C(){let e=document.getElementById("blog-results");if(!e)return;let t=window.matchMedia("(prefers-reduced-motion: reduce)").matches;e.scrollIntoView({behavior:t?"auto":"smooth",block:"start"})}function E(e){let{visible:t,group:r,isFiltered:s,onClearAll:l}=e,[o,c]=(0,a.useState)(!1),[d,u]=(0,a.useState)(!1),p=function(){let[e,t]=(0,a.useState)("bottom");return(0,a.useEffect)(()=>{let e=window.matchMedia("(min-width: 1024px)"),r=()=>t(e.matches?"right":"bottom");return r(),e.addEventListener("change",r),()=>e.removeEventListener("change",r)},[]),e}();if((0,a.useEffect)(()=>{let e=()=>{u(!!(document.getElementById("floating-assistant-button")||document.querySelector('button[aria-label="Ouvrir l\'assistant Empara"]')))};e();let t=new MutationObserver(()=>{e()});return t.observe(document.body,{childList:!0,subtree:!0}),()=>{t.disconnect()}},[]),!r)return null;let h=r.options.filter(e=>w.has(e.value)&&e.count>0),m=r.options.filter(e=>!w.has(e.value)&&e.count>0),x=r.options.filter(e=>"histoires"!==e.value).reduce((e,t)=>
1e+t.count,0),b=r.options.find(e=>e.value===r.value),E=b?b.label:null,S=e=>{r.onChange(e),c(!1),window.setTimeout(C,320)};return(0,n.jsxs)(g._s,{open:o,onOpenChange:c,direction:p,children:[(0,n.jsx)(g.Uz,{asChild:!0,children:(0,n.jsxs)("button",{type:"button","aria-haspopup":"dialog","aria-expanded":o,"aria-label":E?"Changer de th\xe8me, filtre actuel : ".concat(E):"Filtrer les guides par th\xe8me",className:(0,f.cn)("cursor-pointer fixed z-40 flex h-12 items-center gap-2.5 whitespace-nowrap rounded-full border bg-[#0d0d0d]/95 pl-4 pr-3.5 font-sans text-[13px] font-semibold text-white shadow-[0_12px_30px_rgba(0,0,0,0.45)] backdrop-blur-md transition-all duration-300 motion-reduce:transition-none","bottom-[calc(1rem+env(safe-area-inset-bottom,0px))] left-1/2 -translate-x-1/2",d?"lg:bottom-7 lg:left-auto lg:right-24 lg:translate-x-0":"lg:bottom-8 lg:left-auto lg:right-8 lg:translate-x-0",b?"border-[#aa484d]/60 ring-1 ring-[#aa484d]/30 hover:border-[#aa484d]":"border-white/15 hover:border-white/30",t?"translate-y-0 opacity-100 pointer-events-auto":"pointer-events-none translate-y-3 opacity-0"),children:[(0,n.jsx)(v.A,{className:"h-3.5 w-3.5 text-[#aa484d] shrink-0","aria-hidden":"true"}),(0,n.jsx)("span",{className:"truncate max-w-[200px] sm:max-w-none",children:E?"Filtre : ".concat(E):"Filtrer par th\xe8me"}),(0,n.jsx)("span",{"aria-hidden":"true",className:"text-xs text-white/50",children:"â¾"})]})}),(0,n.jsxs)(g.zj,{className:"border-white/10 bg-[#0d0d0d] text-white",children:[(0,n.jsx)(g.BE,{children:(0,n.jsx)(g.gk,{className:"text-white",children:"Filtrer par th\xe8me"})}),(0,n.jsxs)("div",{className:"flex flex-col gap-6 overflow-y-auto p-4 pb-[calc(1.5rem+env(safe-area-inset-bottom,0px))]",children:[(0,n.jsxs)("div",{role:"group","aria-label":"Univers et rubriques",className:"grid grid-cols-2 gap-2",children:[(0,n.jsxs)("button",{type:"button","aria-pressed":null===r.value,onClick:()=>S(null),className:(0,f.cn)(N,null===r.value?y:j),children:["Tous ",(0,n.jsx)("span",{className:"tabular-nums",children:x})]}),h.map(e=>(0,n.jsxs)("button",{type:"button","aria-pressed":r.value===e.value,onClick:()=>S(e.value),className:(0,f.cn)(N,r.value===e.value?y:j),children:[e.label," ",(0,n.jsx)("span",{className:"tabular-nums",children:e.count})]},e.value)),m.filter(e=>"histoires"!==e.value).map(e=>(0,n.jsx)("button",{type:"button","aria-pressed":r.value===e.value,onClick:()=>S(e.value),className:(0,f.cn)(k,r.value===e.value?y:j),children:e.label},e.value)),(0,n.jsx)(i(),{href:"/histoires",onClick:()=>c(!1),className:(0,f.cn)(k,j,"inline-flex items-center justify-center no-underline text-center"),children:"Histoires d'\xe9l\xe8ves"})]}),s&&(0,n.jsx)("button",{type:"button",onClick:()=>{l(),c(!1)},className:"cursor-pointer self-start font-sans text-xs font-semibold text-white/70 underline-offset-4 hover:text-white hover:underline focus-visible:bg-white/15 focus-visible:text-white motion-reduce:transition-none",children:"Tout effacer"})]})]})]})}let S=new Set(b.mj.map(e=>e.href.replace("/cours-photo/",""))),_=new Map(b.mj.map(e=>[e.href.replace("/cours-photo/",""),e.img])),z="cursor-pointer relative flex h-8 items-center gap-1.5 rounded-full border px-3.5 text-[13px] font-semibold transition-colors duration-300 focus-visible:bg-white/15 focus-visible:text-white motion-reduce:transition-none after:absolute after:inset-x-0 after:-inset-y-1.5 after:content-['']",A="bg-[#aa484d] border-[#aa484d] text-white",I="bg-transparent border-white/15 text-white/70 hover:border-white/30 hover:text-white";function T(e){let{isActive:t,total:r,onClick:a}=e;return(0,n.jsxs)("button",{type:"button","aria-pressed":t,onClick:a,className:(0,f.cn)("cursor-pointer flex h-14 items-center justify-center rounded-full border px-5 sm:px-6 font-sans text-[14px] sm:text-[14.5px] font-semibold transition-colors duration-300 focus-visible:bg-white/10 motion-reduce:transition-none",t?"border-[#aa484d] bg-[#aa484d] text-white":"border-white/15 text-white/75 hover:border-white/30 hover:text-white"),children:["Tous les guides",(0,n.jsx)("span",{"aria-hidden":"true",className:"ml-2 text-[12px] font-normal tabular-nums opacity-70",children:r}),(0,n.jsxs)("span",{className:"sr-only",children:[", ",r," guides"]})]})}function L(e){let{option:t,isActive:r,onClick:a}=e,s=_.get(t.value);return(0,n.jsxs)("button",{type:"button","aria-pressed":r,onClick:a,className:(0,f.cn)("cursor-pointer group flex h-14 items-center gap-2.5 sm:gap-3 rounded-full border py-1 pl-1.5 pr-4 sm:pr-5 text-left transition-colors duration-300 focus-visible:bg-white/10 motion-reduce:transition-none",r?"border-[#aa484d] bg-[#aa484d]/[0.14]":"border-white/15 hover:border-white/30"),children:[(0,n.jsxs)("span",{className:"relative h-11 w-11 shrink-0 overflow-hidden rounded-full",children:[s&&(0,n.jsx)("img",{src:s,alt:"",loading:"lazy",className:"h-full w-full object-cover transition-transform duration-500 group-hover:scale-105"}),r&&(0,n.jsx)("span",{"aria-hidden":"true",className:"absolute inset-0 rounded-full ring-2 ring-[#aa484d]"})]}),(0,n.jsxs)("span",{className:"flex min-w-0 flex-col",children:[(0,n.jsx)("span",{className:(0,f.cn)("truncate font-sans text-[14px] font-semibold leading-tight",r?"text-white":"text-white/85"),children:t.label}),(0,n.jsxs)("span",{className:"font-sans text-[11px] tabular-nums text-white/45",children:[t.count," guides"]})]})]})}function R(e){let{option:t,isActive:r,onClick:a}=e;return(0,n.jsxs)("button",{type:"button","aria-pressed":r,onClick:a,className:(0,f.cn)("cursor-pointer group inline-flex h-[38px] items-center justify-center rounded-xl border px-3.5 sm:px-4 text-center transition-colors duration-200 focus-visible:bg-white/10 motion-reduce:transition-none",r?"border-[#aa484d] bg-[#aa484d]/[0.18] text-white font-semibold":"border-white/15 text-white/75 hover:border-white/30 hover:text-white hover:bg-white/[0.04]"),children:[(0,n.jsx)("span",{className:"font-sans text-[13px] sm:text-[13.5px] leading-none whitespace-nowrap",children:t.label}),(0,n.jsxs)("span",{className:"sr-only",children:[", ",t.count," guides"]})]})}
1function M(e){let{group:t,isFiltered:r,onClearAll:a,statusText:s}=e,l=t.options.filter(e=>"histoires"!==e.value).reduce((e,t)=>e+t.count,0),o=t.options.filter(e=>S.has(e.value)&&e.count>0),c=t.options.filter(e=>!S.has(e.value)&&e.count>0),d="f-".concat(t.id,"-univers");return(0,n.jsxs)("div",{children:[(0,n.jsxs)("div",{role:"group","aria-labelledby":d,className:"flex flex-wrap items-center gap-2 sm:gap-2.5",children:[(0,n.jsx)("span",{id:d,className:"sr-only",children:"Univers"}),(0,n.jsx)(T,{isActive:null===t.value,total:l,onClick:()=>t.onChange(null)}),o.map(e=>(0,n.jsx)(L,{option:e,isActive:t.value===e.value,onClick:()=>t.onChange(e.value)},e.value)),c.map(e=>"histoires"===e.value?null:(0,n.jsx)(R,{option:e,isActive:t.value===e.value,onClick:()=>t.onChange(e.value)},e.value)),(0,n.jsx)(i(),{href:"/histoires",className:"cursor-pointer group inline-flex h-[38px] items-center justify-center rounded-xl border border-white/15 px-3.5 sm:px-4 text-center text-white/75 transition-colors duration-200 hover:border-white/30 hover:text-white hover:bg-white/[0.04] focus-visible:bg-white/10 motion-reduce:transition-none no-underline",children:(0,n.jsx)("span",{className:"font-sans text-[13px] sm:text-[13.5px] leading-none whitespace-nowrap",children:"Histoires d'\xe9l\xe8ves"})})]}),(0,n.jsxs)("div",{className:"mt-5 sm:mt-6 flex items-center justify-between gap-4",children:[(0,n.jsx)("p",{id:"blog-count",role:"status","aria-atomic":"true",className:"m-0 min-h-[16px] font-sans text-[12px] text-white/50",children:s}),(0,n.jsx)("button",{type:"button",onClick:a,className:(0,f.cn)("cursor-pointer shrink-0 whitespace-nowrap font-sans text-xs font-semibold text-white/70 underline-offset-4 hover:text-white hover:underline focus-visible:bg-white/15 focus-visible:text-white motion-reduce:transition-none",!r&&"invisible"),children:"Tout effacer"})]})]})}function q(e){let{group:t,isFiltered:r,onClearAll:a,statusText:s}=e,l="f-".concat(t.id),i=t.options.reduce((e,t)=>e+t.count,0);return(0,n.jsxs)("div",{children:[(0,n.jsxs)("div",{role:"group","aria-labelledby":l,className:"flex flex-wrap items-center gap-2",children:[(0,n.jsx)("span",{id:l,className:"sr-only",children:t.label}),(0,n.jsxs)("button",{type:"button","aria-pressed":null===t.value,onClick:()=>t.onChange(null),className:(0,f.cn)(z,null===t.value?A:I),children:[t.allLabel," ",(0,n.jsx)("span",{"aria-hidden":"true",className:"min-w-[3ch] tabular-nums",children:i}),(0,n.jsxs)("span",{className:"sr-only",children:[", ",i," guides"]})]}),t.options.filter(e=>e.count>0).map(e=>(0,n.jsxs)("button",{type:"button","aria-pressed":t.value===e.value,onClick:()=>t.onChange(e.value),className:(0,f.cn)(z,t.value===e.value?A:I),children:[e.label,(0,n.jsxs)("span",{className:"sr-only",children:[", ",e.count," guides"]})]},e.value))]}),(0,n.jsxs)("div",{className:"mt-5 sm:mt-6 flex items-center justify-between gap-4",children:[(0,n.jsx)("p",{role:"status","aria-atomic":"true",className:"m-0 min-h-[16px] font-sans text-[12px] text-white/50",children:s}),(0,n.jsx)("button",{type:"button",onClick:a,className:(0,f.cn)("cursor-pointer shrink-0 whitespace-nowrap font-sans text-xs font-semibold text-white/70 underline-offset-4 hover:text-white hover:underline motion-reduce:transition-none",!r&&"invisible"),children:"Tout effacer"})]})]})}function F(e){let{groups:t,statusText:r,isFiltered:s,onClearAll:l}=e,i=(0,a.useRef)(null),[o,c]=(0,a.useState)(!0);(0,a.useEffect)(()=>{let e=i.current;if(!e||"undefined"==typeof IntersectionObserver)return;let t=new IntersectionObserver(e=>{let[t]=e;return c(t.isIntersecting)},{threshold:0});return t.observe(e),()=>t.disconnect()},[]);let d=t.find(e=>"univers"===e.id)||null;return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("section",{ref:i,"aria-labelledby":"blog-filtres",className:"relative bg-[#0d0d0d] pb-10 lg:pb-14 hidden lg:block",children:(0,n.jsxs)("div",{className:h.XS,children:[(0,n.jsx)("a",{href:"#blog-results",className:"sr-only focus:not-sr-only focus:absolute focus:z-40 focu
1s:rounded focus:bg-white focus:px-3 focus:py-2 focus:text-[#0d0d0d]",children:"Aller aux r\xe9sultats"}),t.map(e=>"univers"===e.id?(0,n.jsx)(M,{group:e,isFiltered:s,onClearAll:l,statusText:r},e.id):(0,n.jsx)(q,{group:e,isFiltered:s,onClearAll:l,statusText:r},e.id))]})}),(0,n.jsx)("div",{className:"hidden lg:block",children:(0,n.jsx)(E,{visible:!o,group:d,isFiltered:s,onClearAll:l})})]})}var B=r(56597);let D=e=>(e||"").toLowerCase().normalize("NFD").replace(RegExp("\\p{Diacritic}","gu"),"");var O=r(51484),U=r(82737);let P="empara:blog:return";function H(e){return(e||"").toLowerCase().normalize("NFD").replace(RegExp("\\p{Diacritic}","gu"),"")}function X(){return(0,n.jsxs)("div",{className:"relative left-1/2 w-screen -translate-x-1/2 my-16 lg:my-14 bg-[#0d0d0d] py-14 lg:py-14 text-white",children:[(0,n.jsx)(u.A,{"aria-hidden":"true",style:{top:0,bottom:"auto",left:"50%",width:"100%",transform:"translate(-50%, -50%) rotate(180deg)",color:"#0d0d0d",zIndex:5}}),(0,n.jsx)(u.A,{"aria-hidden":"true",style:{bottom:0,top:"auto",left:"50%",width:"100%",transform:"translate(-50%, 50%) rotate(180deg)",color:"#0d0d0d",zIndex:5}}),(0,n.jsxs)("div",{className:(0,f.cn)("relative z-10",h.XS),children:[(0,n.jsx)("p",{className:h.m8,children:"Les cours photo"}),(0,n.jsx)("h2",{className:(0,f.cn)(h.H2,"mt-2.5 text-white"),children:"Les guides sont gratuits. Les cours vont plus loin."}),(0,n.jsxs)(i(),{href:"/cours-photo",prefetch:!1,className:(0,f.cn)(h.sh,"mt-6 sm:mt-7"),children:[(0,n.jsx)("span",{"aria-hidden":"true",className:h.Gp}),(0,n.jsx)("span",{className:h.PB,children:"Voir les cours photo"})]}),(0,n.jsx)("p",{className:"m-0 mt-3.5 font-sans text-[12px] text-white/70",children:"7 jours dâessai \xb7 Sans carte bancaire \xb7 Sans engagement"})]})]})}var Y=!0;function G(e){var t;let{cards:r,featured:l,categories:v,total:g,dateModified:b,derivedCoverCount:w}=e,y=(0,s.useRouter)(),j=()=>y.push("/essai-gratuit"),{univers:N,setUnivers:k,q:C,visible:E,layoutBySlug:S,firstDenseSlug:_,queueCount:z,isFiltered:A,countsByCategory:I,statusText:T,ready:L,clearAll:R}=function(e){let{cards:t,categories:r}=e,n=(0,s.useRouter)(),[l,i]=(0,a.useState)(null),[o,c]=(0,a.useState)(""),d=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:300,[r,n]=(0,a.useState)(e);return(0,a.useEffect)(()=>{let r=setTimeout(()=>{n(e)},t);return()=>{clearTimeout(r)}},[e,t]),r}(o.trim().slice(0,80),150),u=n.isReady,p=(0,a.useRef)(!1),h=(0,a.useRef)(!0),m=(0,a.useRef)(!1),x=(0,a.useCallback)(e=>{m.current=!0,i(e)},[]),f=(0,a.useCallback)(e=>{m.current=!0,c(e)},[]),v=(0,a.useMemo)(()=>new Set(r.map(e=>e.slug)),[r]);(0,a.useEffect)(()=>{if(!u||p.current)return;p.current=!0;let{univers:e,q:t}=n.query;"string"==typeof e&&v.has(e)&&i(e),"string"==typeof t&&c(t.slice(0,80))},[u,n.query,v]),(0,a.useEffect)(()=>{if(!u||!p.current)return;if(h.current){h.current=!1;return}let e={};l&&(e.univers=l),d&&(e.q=d),n.replace({pathname:"/blog",query:e},void 0,{shallow:!0,scroll:!1})},[l,d,u]);let g=(0,a.useMemo)(()=>{let e=new Map;for(let r of t)e.set(r.slug,D("".concat(r.h1," ").concat(r.excerpt," ").concat(r.categoryLabel)));return e},[t]),b=(0,a.useMemo)(()=>D(d),[d]),w=(0,a.useCallback)(e=>!b||g.get(e.slug).includes(b),[g,b]),y=(0,a.useMemo)(()=>{let e=new Map;for(let r of t)w(r)&&e.set(r.category,(e.get(r.category)||0)+1);return e},[t,w]),j=(0,a.useMemo)(()=>{let e=new Set;for(let r of t)(!l||r.category===l)&&w(r)&&e.add(r.slug);return e},[t,l,w]),N=!!l||!!d,{layoutBySlug:k,firstDenseSlug:C,queueCount:E}=(0,a.useMemo)(()=>{let e=new Map,r=j.size,n=-1,a=null,s=0;for(let l of t){if(!j.has(l.slug)){e.set(l.slug,"hidden");continue}n+=1;let t=(0,B.q_)(n,r,{allowFeatured:!0,isFiltered:N});e.set(l.slug,t),"dense"===t&&(s+=1,a||(a=l.slug))}return{layoutBySlug:e,firstDenseSlug:a,queueCount:s}},[t,j,N]),S=(0,a.useMemo)(()=>{let e=j.size,t=[];if(l){let e=r.find(e=>e.slug===l);e&&t.push(e.name)}d&&t.push("\xab ".concat(d," \xbb"));let n=t.length?" â ".concat(t.join(" \xb7 ")):"";return 0===e?"Aucun guide".concat(n):"".concat(e," guide").concat(e>1?"s":"").concat(n)},[j,l,d,r]);(0,a.useEffect)(()=>
1{if(!u||!m.current)return;let e=document.getElementById("blog-filtres"),t=null==e?void 0:e.closest(".sticky"),r=document.getElementById("blog-results");if(!r)return;let n=(null==t?void 0:t.getBoundingClientRect().height)||0,a=r.getBoundingClientRect().top+window.scrollY-n;window.scrollY>a&&window.scrollTo(0,a)},[j,u]),(0,a.useEffect)(()=>{let e=e=>x(e.detail);return window.addEventListener("empara:setUnivers",e),()=>window.removeEventListener("empara:setUnivers",e)},[x]);let _=(0,a.useCallback)(()=>{x(null),f("")},[]);return{univers:l,setUnivers:x,qInput:o,setQInput:f,q:d,visible:j,layoutBySlug:k,firstDenseSlug:C,queueCount:E,isFiltered:N,countsByCategory:y,statusText:S,ready:u,clearAll:_}}({cards:r,categories:v});(0,a.useEffect)(()=>{let e=()=>{try{sessionStorage.setItem(P,JSON.stringify({search:window.location.search,scrollY:window.scrollY,ts:Date.now()}))}catch(e){}};return y.events.on("routeChangeStart",e),()=>y.events.off("routeChangeStart",e)},[y.events]),(0,a.useEffect)(()=>{if(!L)return;let e=null;try{e=sessionStorage.getItem(P),sessionStorage.removeItem(P)}catch(e){return}if(e)try{let{search:t,scrollY:r,ts:n}=JSON.parse(e);if(Date.now()-n>18e5||t!==window.location.search)return;requestAnimationFrame(()=>{requestAnimationFrame(()=>window.scrollTo(0,r))})}catch(e){}},[L]),(0,a.useEffect)(()=>{L&&"histoires"===y.query.univers&&y.replace("/histoires")},[L,y.query.univers,y]);let M=(0,a.useMemo)(()=>[{id:"univers",label:"Univers",allLabel:"Tous",value:N,onChange:k,options:v.map(e=>({value:e.slug,label:e.name,count:I.get(e.slug)||0}))}],[v,N,k,I]),q=(0,a.useMemo)(()=>{if(E.size>0)return[];if(!C)return r.slice(0,3);let e=H(C),t=r.filter(t=>H("".concat(t.h1," ").concat(t.excerpt," ").concat(t.categoryLabel)).includes(e));return(t.length>0?t:r).slice(0,3)},[r,E,C]),Y="Le blog photo Empara : ".concat(g," guides pour progresser"),G="Tous les guides photo d'Empara â technique, lumi\xe8re, portrait, paysage, retouche, mat\xe9riel : ".concat(g," articles gratuits, filtrables par univers."),J=!C&&N?"/cours-photo/".concat(N):"/blog",V=C?"noindex, follow":void 0,W=(0,a.useMemo)(()=>{var e,t;let n="".concat(O.vI,"/blog");return[(0,U.LS)(),(0,U.Dw)(),(0,U.Xt)([{name:"Accueil",url:"".concat(O.vI,"/")},{name:"Le blog photo",url:n}]),(0,U.$I)({name:Y,description:G,url:n,items:r.map(e=>({name:e.h1,url:"".concat(O.vI,"/cours-photo/").concat(e.category,"/").concat(e.slug)}))}),(0,U.bW)({title:Y,description:G,url:n,imageUrl:(null==(e=r[0])?void 0:e.image)||void 0,datePublished:null==(t=r.at(-1))?void 0:t.date_publication,dateModified:b})]},[r,Y,G,b]);return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(o.A,{title:Y,description:G,url:"/blog",canonical:"".concat(O.vI).concat(J),image:(null==(t=r[0])?void 0:t.image)||void 0,robots:V,structuredData:W}),(0,n.jsx)(c.A,{onTrial:j}),(0,n.jsxs)("main",{id:"main",className:"overflow-x-clip bg-white font-sans text-[#1d1d1d] antialiased",children:[(0,n.jsx)("section",{className:"relative bg-[#0d0d0d] pt-[calc(var(--page-top)+64px)] pb-12 lg:pt-[calc(var(--page-top)+76px)] lg:pb-12",children:(0,n.jsxs)(p.gN,{className:h.XS,children:[(0,n.jsx)("h1",{className:"m-0 mt-3 lg:mt-2 font-rama uppercase leading-[0.86] tracking-[0.01em] text-white text-[44px] sm:text-[58px] lg:text-[80px]",children:"Le blog photo"}),(0,n.jsx)("p",{className:"m-0 mt-3 lg:mt-2.5 font-cursive text-[#aa484d] text-[22px] sm:text-[24px] lg:text-[25px] leading-[1.05]",children:"Pour progresser en photo, \xe0 ton rythme. Par o\xf9 commencer ?"})]})}),(0,n.jsx)(F,{groups:M,statusText:T,isFiltered:A,onClearAll:R}),(0,n.jsxs)("section",{id:"blog-results",className:"relative bg-[#f8fafc] pt-20 pb-20 lg:pt-16 lg:pb-24",children:[(0,n.jsx)(u.A,{"aria-hidden":"true",style:{top:0,bottom:"auto",left:"50%",width:"100%",transform:"translate(-50%, -50%) rotate(180deg)",color:"#0d0d0d",zIndex:5}}),(0,n.jsxs)("div",{className:(0,f.cn)("relative z-10",h.XS),children:[(0,n.jsx)("div",{className:"grid grid-cols-1 gap-x-8 lg:grid-cols-3",children:r.map((e,t)=>{let r=S.get(e.slug)||"hidden",s=e.slug===_,i=(0,n.jsx)(m.A,{card:e,layout:r,ssrImage:t<4,extra:0===t?l:void 0,queueHeading:s,queueCount:z,bandA:s&&!A?(0,n.jsx)(X,{}):null});if(0===t)return(0,n.jsx)(p.gN,{delay:.1,as:"div",className:"featured"===r?"lg:col-span-3":"hidden"===r?"hidden":"",children:i},e.slug);return(0,a.cloneElement)(i,{key:e.slug})})}),0===E.size&&(0,n.jsx)(x,{statusText:T,onReset:R,suggestions:q})]})]}),(0,n.jsx)("section",{className:"relative overflow-hidden bg-[#0d0d0d] py-24 lg:py-24",children:(0,n.jsxs)("div",{className:(0,f.cn)("relative z-10",h.XS),children:[(0,n.jsx)("p",{className:h.m8,children:"Passer \xe0 la pratique"}),(0,n.jsx)("h2",{className:(0,f.cn)(h.H2,"mt-2.5 max-w-[820px] text-white"),children:"Un guide, câest bien. Un cours, câest une progression."}),(0,n.jsxs)(i(),{href:"/essai-gratuit",prefetch:!1,className:(0,f.cn)(h.sh,"mt-7"),children:[(0,n.jsx)("span",{"aria-hidden":"true",className:h.Gp}),(0,n.jsx)("span",{className:h.PB,children:"Commencer lâessai gratuit"})]})]})})]}),(0,n.jsx)(d.A,{onTrial:j})]})}},98746:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});let n=(0,r(17963).A)("sliders-horizontal",[["line",{x1:"21",x2:"14",y1:"4",y2:"4",key:"obuewd"}],["line",{x1:"10",x2:"3",y1:"4",y2:"4",key:"1q6298"}],["line",{x1:"21",x2:"12",y1:"12",y2:"12",key:"1iu8h1"}],["line",{x1:"8",x2:"3",y1:"12",y2:"12",key:"ntss68"}],["line",{x1:"21",x2:"16",y1:"20",y2:"20",key:"14d8ph"}],["line",{x1:"12",x2:"3",y1:"20",y2:"20",key:"m0wm8r"}],["line",{x1:"14",x2:"14",y1:"2",y2:"6",key:"14e1ph"}],["line",{x1:"8",x2:"8",y1:"10",y2:"14",key:"1i6ji0"}],["line",{x1:"16",x2:"16",y1:"18",y2:"22",key:"1lctlv"}]])}},e=>{e.O(0,[3560,706,4587,8359,1472,3553,3474,5948,188,2786,5119,2737,5269,5924,705,636,6593,8792],()=>e(e.s=3937)),_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.