1import{C as e,D as t,E as n,O as r,R as i,St as a,T as o,bt as s,k as c,n as l,r as u,s as d,t as f,w as p}from"./proxy-Cs2TD9GA.js";import{t as m}from"./x-De5B7c5t.js";var h=c(`arrow-right`,[[`path`,{d:`M5 12h14`,key:`1ays0h`}],[`path`,{d:`m12 5 7 7-7 7`,key:`xquz4c`}]]),g=c(`menu`,[[`path`,{d:`M4 5h16`,key:`1tepv9`}],[`path`,{d:`M4 12h16`,key:`1lakjw`}],[`path`,{d:`M4 19h16`,key:`1djgab`}]]),_=i(),v=a(s(),1);function y(e,t){if(typeof e==`function`)return e(t);e!=null&&(e.current=t)}function b(...e){return t=>{let n=!1,r=e.map(e=>{let r=y(e,t);return!n&&typeof r==`function`&&(n=!0),r});if(n)return()=>{for(let t=0;t<r.length;t++){let n=r[t];typeof n==`function`?n():y(e[t],null)}}}}function x(...e){return v.useCallback(b(...e),e)}var S=class extends v.Component{getSnapshotBeforeUpdate(e){let t=this.props.childRef.current;if(d(t)&&e.isPresent&&!this.props.isPresent&&this.props.pop!==!1){let e=t.offsetParent,n=d(e)&&e.offsetWidth||0,r=d(e)&&e.offsetHeight||0,i=getComputedStyle(t),a=this.props.sizeRef.current;a.height=parseFloat(i.height),a.width=parseFloat(i.width),a.top=t.offsetTop,a.left=t.offsetLeft,a.right=n-a.width-a.left,a.bottom=r-a.height-a.top,a.direction=i.direction}return null}componentDidUpdate(){}render(){return this.props.children}};function C({children:e,isPresent:t,anchorX:n,anchorY:r,root:i,pop:a}){let o=(0,v.useId)(),s=(0,v.useRef)(null),c=(0,v.useRef)({width:0,height:0,top:0,left:0,right:0,bottom:0,direction:`ltr`}),{nonce:l}=(0,v.useContext)(u),d=x(s,a===!1?void 0:e.props?.ref??e?.ref);return(0,v.useInsertionEffect)(()=>{let{width:e,height:u,top:d,left:f,right:p,bottom:m,direction:h}=c.current;if(t||a===!1||!s.current||!e||!u)return;let g=h===`rtl`,_=n===`left`?g?`right: ${p}`:`left: ${f}`:g?`left: ${f}`:`right: ${p}`,v=r===`bottom`?`bottom: ${m}`:`top: ${d}`;s.current.dataset.motionPopId=o;let y=document.createElement(`style`);l&&(y.nonce=l);let b=i??document.head;return b.appendChild(y),y.sheet&&y.sheet.insertRule(` 2 [data-motion-pop-id="${o}"] { 3 position: absolute !important; 4 width: ${e}px !important; 5 height: ${u}px !important; 6 ${_}px !important; 7 ${v}px !important; 8 } 9 `),()=>{s.current?.removeAttribute(`data-motion-pop-id`),b.contains(y)&&b.removeChild(y)}},[t]),(0,_.jsx)(S,{isPresent:t,childRef:s,sizeRef:c,pop:a,children:a===!1?e:v.cloneElement(e,{ref:d})})}var w=({children:t,initial:n,isPresent:r,onExitComplete:i,custom:a,presenceAffectsLayout:s,mode:c,anchorX:l,anchorY:u,root:d})=>{let f=o(T),m=(0,v.useId)(),h=(0,v.useRef)(r),g=(0,v.useRef)(i);p(()=>{h.current=r,g.current=i});let y=!0,b=(0,v.useMemo)(()=>(y=!1,{id:m,initial:n,isPresent:r,custom:a,onExitComplete:e=>{f.set(e,!0);for(let e of f.values())if(!e)return;i&&i()},register:e=>(f.set(e,!1),()=>{f.delete(e),!h.current&&!f.size&&g.current?.()})}),[r,f,i]);return s&&y&&(b={...b}),(0,v.useMemo)(()=>{f.forEach((e,t)=>f.set(t,!1))},[r]),v.useEffect(()=>{!r&&!f.size&&i&&i()},[r]),t=(0,_.jsx)(C,{pop:c===`popLayout`,isPresent:r,anchorX:l,anchorY:u,root:d,children:t}),(0,_.jsx)(e.Provider,{value:b,children:t})};function T(){return new Map}var E=e=>e.key||``;function D(e){let t=[];return v.Children.forEach(e,e=>{(0,v.isValidElement)(e)&&t.push(e)}),t}var O=({children:e,custom:t,initial:r=!0,onExitComplete:i,presenceAffectsLayout:a=!0,mode:s=`sync`,propagate:c=!1,anchorX:u=`left`,anchorY:d=`top`,root:f})=>{let[m,h]=l(c),g=(0,v.useMemo)(()=>D(e),[e]),y=c&&!m?[]:g.map(E),b=(0,v.useRef)(!0),x=(0,v.useRef)(g),S=o(()=>new Map),C=(0,v.useRef)(new Set),[T,O]=(0,v.useState)(g),[k,A]=(0,v.useState)(g);p(()=>{b.current=!1,x.current=g;for(let e=0;e<k.length;e++){let t=E(k[e]);y.includes(t)?(S.delete(t),C.current.delete(t)):S.get(t)!==!0&&S.set(t,!1)}},[k,y.length,y.join(`-`)]);let j=[];if(g!==T){let e=[...g];for(let t=0;t<k.length;t++){let n=k[t],r=E(n);y.includes(r)||(e.splice(t,0,n),j.push(n))}return s===`wait`&&j.length&&(e=j),A(D(e)),O(g),null}let{forceRender:M}=(0,v.useContext)(n);return(0,_.jsx)(_.Fragment,{children:k.map(e=>{let n=E(e),o=c&&!m?!1:g===k||y.includes(n);return(0,_.jsx)(w,{isPresent:o,initial:!b.current||r?void 0:!1,custom:t,presenceAffectsLayout:a,mode:s,root:f,onExitComplete:o?void 0:()=>
9{if(C.current.has(n))return;if(S.has(n))C.current.add(n),S.set(n,!0);else return;let e=!0;S.forEach(t=>{t||(e=!1)}),e&&(M?.(),A(x.current),c&&h?.(),i&&i())},anchorX:u,anchorY:d,children:e},n)})})},k=()=>{let[e,n]=(0,v.useState)(!1),[i,a]=(0,v.useState)(!1),o=r();(0,v.useEffect)(()=>{let e=()=>{n(window.scrollY>50)};return window.addEventListener(`scroll`,e),()=>window.removeEventListener(`scroll`,e)},[]);let s=[{label:`Contexte`,href:`#contexte`},{label:`Offres`,href:`#offres`},{label:`Expertise`,href:`#expertise`},{label:`FAQ`,href:`#faq`}],c=e=>{if(o.pathname!==`/`){window.location.href=`/`+e;return}let t=document.querySelector(e);t&&t.scrollIntoView({behavior:`smooth`}),a(!1)};return(0,_.jsxs)(_.Fragment,{children:[(0,_.jsx)(f.header,{className:`fixed top-0 left-0 right-0 z-50 transition-all duration-500 ${e?`glass-card py-3`:`py-6`}`,initial:{y:-100},animate:{y:0},transition:{duration:.6,ease:[.25,.46,.45,.94]},children:(0,_.jsxs)(`div`,{className:`container mx-auto px-6 flex items-center justify-between`,children:[(0,_.jsxs)(t,{to:`/`,className:`flex items-center gap-2 group`,children:[(0,_.jsx)(`span`,{className:`font-mono text-sm text-muted-foreground`,children:`[`}),(0,_.jsx)(`span`,{className:`font-bold text-lg tracking-tight`,children:`ChatGPT-ADS`}),(0,_.jsx)(`span`,{className:`font-mono text-accent text-sm`,children:`.AI`}),(0,_.jsx)(`span`,{className:`font-mono text-sm text-muted-foreground`,children:`]`})]}),(0,_.jsxs)(`nav`,{className:`hidden md:flex items-center gap-8`,children:[s.map(e=>(0,_.jsx)(`button`,{onClick:()=>c(e.href),className:`text-sm text-muted-foreground hover:text-foreground transition-colors duration-300 font-medium`,"data-magnetic":`true`,children:e.label},e.label)),(0,_.jsx)(t,{to:`/agence-geo`,className:`text-sm text-muted-foreground hover:text-foreground transition-colors duration-300 font-medium`,"data-magnetic":`true`,children:`GEO`})]}),(0,_.jsx)(`div`,{className:`hidden md:flex items-center gap-4`,children:(0,_.jsx)(t,{to:`/contact`,className:`magnetic-button px-5 py-2.5 bg-foreground text-background text-sm font-medium rounded-full hover:bg-foreground
9/90 transition-colors`,"data-magnetic":`true`,children:`Réserver un audit`})}),(0,_.jsx)(`button`,{onClick:()=>a(!i),className:`md:hidden p-2`,"aria-label":i?`Fermer le menu`:`Ouvrir le menu`,"aria-expanded":i,children:i?(0,_.jsx)(m,{size:24,"aria-hidden":`true`}):(0,_.jsx)(g,{size:24,"aria-hidden":`true`})})]})}),(0,_.jsx)(O,{children:i&&(0,_.jsx)(f.div,{className:`fixed inset-0 z-40 bg-background md:hidden`,initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},children:(0,_.jsxs)(`div`,{className:`flex flex-col items-center justify-center h-full gap-8`,children:[s.map((e,t)=>(0,_.jsx)(f.button,{onClick:()=>c(e.href),className:`text-2xl font-medium`,initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{delay:t*.1},children:e.label},e.label)),(0,_.jsx)(f.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{delay:.4},children:(0,_.jsx)(t,{to:`/contact`,className:`px-8 py-3 bg-foreground text-background text-lg font-medium rounded-full`,onClick:()=>a(!1),children:`Réserver un audit`})})]})})})]})};export{O as n,h as r,k as t};
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.