{"version":3,"file":"w07nY6ajY.CCIJAMo7.mjs","names":["useState","useRef"],"sources":["https:/framerusercontent.com/modules/mpCufUyRKAGUMTlPRdCw/DgeQQ4fgYeGOYFim40Wa/ResponsiveNavbar.js","https:/framerusercontent.com/modules/z5pqJB9DiwGH6nNHmHMb/N3Ql8Y1O6cCTTcR476Lp/w07nY6ajY.js"],"sourcesContent":["import{jsx as _jsx,jsxs as _jsxs}from\"react/jsx-runtime\";import{useState,useEffect,useRef}from\"react\";import{addPropertyControls,ControlType}from\"framer\";const NAVY=\"#1a3d84\";const ORANGE=\"#fb8005\";const LOGO_URL=\"https://framerusercontent.com/images/zG2nKecb2HYZm49LBvpw0AeujcU.svg\";const NAV_LINKS=[{label:\"ACCUEIL\",href:\"/\"},{label:\"LES BILANS\",href:\"/nosbilans\"},{label:\"NOS CERTIFICATIONS\",href:\"/noscertifications\"},{label:\"LES PRATICIENS\",href:\"/les-praticiens\"},{label:\"NOUS CONTACTER\",href:\"/contact\"}];const CTA={label:\"BILAN OFFERT\",href:\"https://calendly.com/a-pitkanitsos/reunion-de-60-minutes\"};const BREAKPOINT=900;export default function ResponsiveNavbar({activePath=\"/nosbilans\"}){const[open,setOpen]=useState(false);const[containerWidth,setContainerWidth]=useState(1440);const[mounted,setMounted]=useState(false);const rootRef=useRef(null);useEffect(()=>{setMounted(true);const update=()=>{// Measure THIS instance's own parent, never another instance on the page\n// (a page can render several breakpoint copies of this component at once)\nconst el=rootRef.current;if(el&&el.parentElement){setContainerWidth(el.parentElement.getBoundingClientRect().width);}else{setContainerWidth(window.innerWidth);}};update();window.addEventListener(\"resize\",update);const ro=new ResizeObserver(update);if(rootRef.current&&rootRef.current.parentElement){ro.observe(rootRef.current.parentElement);}return()=>{window.removeEventListener(\"resize\",update);ro.disconnect();};},[]);useEffect(()=>{if(open){const prev=document.body.style.overflow;document.body.style.overflow=\"hidden\";return()=>{document.body.style.overflow=prev;};}},[open]);const isMobile=mounted&&containerWidth<=BREAKPOINT;const isSmall=mounted&&containerWidth<=480;const drawerOpen=isMobile&&open;// Wrapper is the sticky, positioned element. It is the containing block for\n// the drawer below, so the drawer never depends on the viewport (position:\n// fixed breaks inside Framer's transformed canvas wrapper and gets clipped\n// by the page's overflow:clip — anchoring to this wrapper avoids both).\nconst wrapperStyle={position:\"sticky\",top:0,zIndex:100,width:\"100%\",boxSizing:\"border-box\"};const rowStyle={width:\"100%\",height:isSmall?72:isMobile?80:92,background:\"#fff\",padding:isSmall?\"10px 16px\":isMobile?\"12px 24px\":\"16px 24px\",display:\"flex\",justifyContent:\"space-between\",alignItems:\"center\",boxSizing:\"border-box\",boxShadow:\"0 1px 0 rgba(0,0,0,0.04)\"};const logoStyle={width:isSmall?200:isMobile?240:327,height:isSmall?44:isMobile?50:60,objectFit:\"contain\",flexShrink:0};const navStyle={display:isMobile?\"none\":\"flex\",alignItems:\"center\",gap:32};const linkStyle=active=>({fontFamily:\"'Open Sans', sans-serif\",fontWeight:700,fontSize:14,textTransform:\"uppercase\",color:active?ORANGE:NAVY,textDecoration:\"none\",letterSpacing:\"0.02em\"});const ctaStyle={background:NAVY,color:\"#fff\",padding:\"10px 24px\",borderRadius:\"200px 0 200px 200px\",fontFamily:\"'Open Sans', sans-serif\",fontWeight:700,fontSize:14,textDecoration:\"none\",textTransform:\"uppercase\",letterSpacing:\"0.02em\",whiteSpace:\"nowrap\"};const burgerStyle={display:isMobile?\"flex\":\"none\",flexDirection:\"column\",justifyContent:\"center\",gap:6,background:\"none\",border:\"none\",cursor:\"pointer\",padding:8,width:44,height:44,boxSizing:\"border-box\"};const barStyle=idx=>({display:\"block\",width:28,height:3,background:NAVY,borderRadius:2,transition:\"all 0.3s ease\",transformOrigin:\"center\",...open&&idx===0?{transform:\"translateY(9px) rotate(45deg)\"}:open&&idx===1?{opacity:0}:open&&idx===2?{transform:\"translateY(-9px) rotate(-45deg)\"}:{}});const drawerStyle={display:\"flex\",position:\"absolute\",top:\"100%\",left:0,right:0,background:\"#fff\",flexDirection:\"column\",padding:\"32px 24px\",gap:24,zIndex:10,boxShadow:\"0 8px 24px rgba(0,0,0,0.08)\",alignItems:\"center\",maxHeight:\"80vh\",overflowY:\"auto\"};const drawerLinkStyle=active=>({...linkStyle(active),fontSize:18,padding:\"12px 0\"});const drawerCtaStyle={...ctaStyle,marginTop:12,fontSize:16,padding:\"14px 32px\"};return /*#__PURE__*/_jsxs(\"div\",{ref:rootRef,className:\"rnav-root\",style:wrapperStyle,children:[/*#__PURE__*/_jsxs(\"div\",{style:rowStyle,children:[/*#__PURE__*/_jsx(\"a\",{href:\"/\",\"aria-label\":\"Accueil\",children:/*#__PURE__*/_jsx(\"img\",{style:logoStyle,src:LOGO_URL,alt:\"logo\"})}),/*#__PURE__*/_jsxs(\"nav\",{style:navStyle,children:[NAV_LINKS.map(l=>/*#__PURE__*/_jsx(\"a\",{href:l.href,style:linkStyle(activePath===l.href),children:l.label},l.href)),/*#__PURE__*/_jsx(\"a\",{style:ctaStyle,href:CTA.href,target:\"_blank\",rel:\"noopener noreferrer\",children:CTA.label})]}),/*#__PURE__*/_jsxs(\"button\",{style:burgerStyle,onClick:()=>setOpen(!open),\"aria-label\":open?\"Fermer le menu\":\"Ouvrir le menu\",\"aria-expanded\":open,children:[/*#__PURE__*/_jsx(\"span\",{style:barStyle(0)}),/*#__PURE__*/_jsx(\"span\",{style:barStyle(1)}),/*#__PURE__*/_jsx(\"span\",{style:barStyle(2)})]})]}),drawerOpen&&/*#__PURE__*/_jsxs(\"div\",{style:drawerStyle,role:\"dialog\",\"aria-modal\":\"true\",children:[NAV_LINKS.map(l=>/*#__PURE__*/_jsx(\"a\",{href:l.href,onClick:()=>setOpen(false),style:drawerLinkStyle(activePath===l.href),children:l.label},l.href)),/*#__PURE__*/_jsx(\"a\",{style:drawerCtaStyle,href:CTA.href,target:\"_blank\",rel:\"noopener noreferrer\",onClick:()=>setOpen(false),children:CTA.label})]})]});}addPropertyControls(ResponsiveNavbar,{activePath:{type:ControlType.String,title:\"Active Path\",defaultValue:\"/nosbilans\"}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"ResponsiveNavbar\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./ResponsiveNavbar.map","// Generated by Framer (841fdc4)\nimport{fontStore}from\"framer\";fontStore.loadFonts([\"FS;Poppins-bold\",\"FS;Poppins-bold\",\"FS;Poppins-bold italic\",\"FS;Poppins-italic\"]);export const fonts=[{explicitInter:true,fonts:[{cssFamilyName:\"Poppins\",source:\"fontshare\",style:\"normal\",uiFamilyName:\"Poppins\",url:\"https://framerusercontent.com/third-party-assets/fontshare/wf/EOHGWBZYYKO6R4PWP4S2B3FFWHHBEZN6/UWQLMF4AFWLXCJQCFV3WRVYC77KZXPRB/FYG6OCH7XOLUUSZTIZE65ATBZWF623O4.woff2\",weight:\"700\"},{cssFamilyName:\"Poppins\",source:\"fontshare\",style:\"italic\",uiFamilyName:\"Poppins\",url:\"https://framerusercontent.com/third-party-assets/fontshare/wf/JQL34MORONR7D7BXOVTX3KBGJGEJQ5BJ/CKUZVY5SFANCFAT7FS3MP6ZL4BMEWCJE/NOLRWF3JBJ434MILPG5RB6R2B4HGRSZB.woff2\",weight:\"700\"},{cssFamilyName:\"Poppins\",source:\"fontshare\",style:\"italic\",uiFamilyName:\"Poppins\",url:\"https://framerusercontent.com/third-party-assets/fontshare/wf/7LLTLAW3NRWOADG4II2JGKZC6OSEMBQC/EYFXWX77PEMPU645EAWOTG22E375GULW/SSNNTU67MMJH4CSWT443B4KJ7OB4WFHF.woff2\",weight:\"400\"}]}];export const css=['.framer-88LQR .framer-styles-preset-1suatqt:not(.rich-text-wrapper), .framer-88LQR .framer-styles-preset-1suatqt.rich-text-wrapper h1 { --framer-font-family: \"Poppins\", \"Poppins Placeholder\", sans-serif; --framer-font-family-bold: \"Poppins\", \"Poppins Placeholder\", sans-serif; --framer-font-family-bold-italic: \"Poppins\", \"Poppins Placeholder\", sans-serif; --framer-font-family-italic: \"Poppins\", \"Poppins Placeholder\", sans-serif; --framer-font-open-type-features: \\'blwf\\' on, \\'cv03\\' on, \\'cv04\\' on, \\'cv09\\' on, \\'cv11\\' on; --framer-font-size: 37px; --framer-font-style: normal; --framer-font-style-bold: normal; --framer-font-style-bold-italic: italic; --framer-font-style-italic: italic; --framer-font-variation-axes: normal; --framer-font-weight: 700; --framer-font-weight-bold: 700; --framer-font-weight-bold-italic: 700; --framer-font-weight-italic: 400; --framer-letter-spacing: 0em; --framer-line-height: 1.2em; --framer-paragraph-spacing: 0px; --framer-text-alignment: left; --framer-text-color: #1a3d84; --framer-text-decoration: none; --framer-text-stroke-color: initial; --framer-text-stroke-width: initial; --framer-text-transform: none; }'];export const className=\"framer-88LQR\";\nexport const __FramerMetadata__ = {\"exports\":{\"fonts\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"css\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"className\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}"],"mappings":"oNAAsnB,SAAwB,EAAiB,CAAC,aAAW,cAAc,CAAC,GAAK,CAAC,EAAK,GAASA,EAAS,EAAK,EAAO,CAAC,EAAe,GAAmBA,EAAS,IAAI,EAAO,CAAC,EAAQ,GAAYA,EAAS,EAAK,EAAQ,EAAQC,EAAO,IAAI,EAAE,MAAc,CAAC,EAAW,EAAI,EAAE,IAAM,MAAW,CAE34B,IAAM,EAAG,EAAQ,QAAW,GAAI,EAAG,cAAe,EAAkB,EAAG,cAAc,sBAAsB,CAAC,CAAC,KAAK,EAAQ,EAAkB,EAAO,UAAU,CAAG,EAAE,EAAO,EAAE,EAAO,iBAAiB,SAAS,CAAM,EAAE,IAAM,EAAG,IAAI,eAAe,CAAM,EAAgG,OAA3F,EAAQ,SAAS,EAAQ,QAAQ,eAAe,EAAG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