{"version":3,"file":"GlobalUI.DudThKAi.mjs","names":["_Fragment"],"sources":["https:/framerusercontent.com/modules/mVOyVVaK42sAN7iX7yvk/sBbwkWIyCsR1IhrVtwRa/GlobalUI.js"],"sourcesContent":["import{jsx as _jsx,Fragment as _Fragment}from\"react/jsx-runtime\";import{useEffect}from\"react\";/**\n * Injecteur global (sans rendu) :\n *  - MARBRE BLANC + voile sur le footer, UNIQUEMENT desktop/tablette large\n *    (>810px) — pas sur mobile (où ça révélait un filigrane blanc du template)\n *  - uniformise tous les boutons (Primary + \"Voir plus\") en LIEN TEXTE souligné\n *    orange, texte navy/blanc selon le fond (auto)\n *  - répare les liens \"Nous contacter\" (#contact-us) -> /contact\n *\n * À placer une fois par page (frame Desktop).\n *\n * @framerSupportedLayoutWidth any\n * @framerSupportedLayoutHeight any\n */export function GlobalUI(){useEffect(()=>{const MARBLE=\"https://framerusercontent.com/images/Qxybnjnz7Y7nGyr3UOSqHJ6vmM.webp\";const isOnDark=start=>{let n=start;while(n&&n!==document.documentElement){const cs=getComputedStyle(n);const bg=cs.backgroundColor||\"\";const m=bg.match(/rgba?\\(([^)]+)\\)/);if(m){const p=m[1].split(\",\").map(s=>parseFloat(s));const a=p[3]===undefined?1:p[3];if(a>.5){const lum=.299*p[0]+.587*p[1]+.114*p[2];return lum<128;}}const bi=cs.backgroundImage||\"\";if(bi.includes(\"BTAKD6\"))return true;if(bi.includes(\"Qxybnjnz\"))return false;n=n.parentElement;}return false;};const styleFooter=()=>{// Desktop/tablette large seulement (évite le filigrane blanc du footer mobile)\nif((window.innerWidth||0)<=810)return;let leaf=null;document.querySelectorAll(\"a,p,span,div\").forEach(e=>{if(!leaf&&e.children.length===0&&/mentions légales|tous droits réservés/i.test(e.textContent||\"\"))leaf=e;});if(!leaf)return;let cur=leaf,footer=null;const minW=(window.innerWidth||1e3)*.85;while(cur&&cur!==document.body){const r=cur.getBoundingClientRect();if(r.width>minW&&r.height>200){footer=cur;break;}cur=cur.parentElement;}if(!footer||footer.dataset.tlFooter)return;footer.dataset.tlFooter=\"1\";footer.style.backgroundImage=`linear-gradient(rgba(245,245,245,.62),rgba(245,245,245,.62)), url(${MARBLE})`;footer.style.backgroundSize=\"cover\";footer.style.backgroundPosition=\"right bottom\";footer.style.backgroundRepeat=\"no-repeat\";footer.querySelectorAll(\"*\").forEach(e=>{const bg=getComputedStyle(e).backgroundColor;if(bg===\"rgb(255, 255, 255)\"||bg===\"rgba(255, 255, 255, 1)\")e.style.backgroundColor=\"transparent\";});};const enhance=()=>{styleFooter();document.querySelectorAll('a[href*=\"#contact-us\"], a[href$=\"#contact\"]').forEach(a=>{a.setAttribute(\"href\",\"/contact\");a.removeAttribute(\"target\");});document.querySelectorAll(\"button\").forEach(b=>{const t=(b.textContent||\"\").trim().toLowerCase();if(t===\"voir plus\"||t===\"voir plus d’articles\"){b.classList.add(\"tl-morebtn\");}});document.querySelectorAll('a[data-framer-name=\"Primary\"], button.tl-morebtn').forEach(el=>{el.classList.toggle(\"tl-on-dark\",isOnDark(el));});};enhance();const mo=new MutationObserver(enhance);mo.observe(document.body,{childList:true,subtree:true});return()=>mo.disconnect();},[]);return /*#__PURE__*/_jsx(_Fragment,{children:/*#__PURE__*/_jsx(\"style\",{children:`\n        a[data-framer-name=\"Primary\"]{\n          background:transparent !important;background-color:transparent !important;\n          border:none !important;border-bottom:1px solid rgb(255,115,0) !important;border-radius:0 !important;\n          padding:0 0 5px 0 !important;box-shadow:none !important;\n          width:fit-content !important;height:auto !important;\n        }\n        a[data-framer-name=\"Primary\"] > div{overflow:visible !important;height:auto !important;transform:none !important;}\n        a[data-framer-name=\"Primary\"] > div > div:nth-child(2){display:none !important;}\n        a[data-framer-name=\"Primary\"] p{\n          color:#0d1723 !important;font-family:'Outfit',sans-serif !important;font-weight:400 !important;\n          font-size:13px !important;line-height:1.2 !important;letter-spacing:.09em !important;\n          text-transform:uppercase !important;transition:color .35s ease !important;\n        }\n        a[data-framer-name=\"Primary\"].tl-on-dark p{color:#ffffff !important;}\n        a[data-framer-name=\"Primary\"]:hover p{color:rgb(255,115,0) !important;}\n\n        button.tl-morebtn{\n          background:transparent !important;background-color:transparent !important;\n          border:none !important;border-bottom:1px solid rgb(255,115,0) !important;border-radius:0 !important;\n          padding:0 0 5px 0 !important;box-shadow:none !important;\n          color:#0d1723 !important;font-family:'Outfit',sans-serif !important;font-weight:400 !important;\n          font-size:13px !important;letter-spacing:.09em !important;text-transform:uppercase !important;\n          min-height:0 !important;height:auto !important;width:fit-content !important;\n          cursor:pointer !important;transition:color .35s ease !important;\n        }\n        button.tl-morebtn.tl-on-dark{color:#ffffff !important;}\n        button.tl-morebtn:hover{color:rgb(255,115,0) !important;}\n      `})});}\nexport const __FramerMetadata__ = {\"exports\":{\"GlobalUI\":{\"type\":\"reactComponent\",\"name\":\"GlobalUI\",\"slots\":[],\"annotations\":{\"framerSupportedLayoutHeight\":\"any\",\"framerSupportedLayoutWidth\":\"any\",\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./GlobalUI.map"],"mappings":"6HAYG,SAAgB,GAAU,CACqgD,OADpgD,MAAc,CAAC,IAA0F,EAAS,GAAO,CAAC,IAAI,EAAE,EAAM,KAAM,GAAG,IAAI,SAAS,iBAAgB,CAAC,IAAM,EAAG,iBAAiB,CAAC,EAAwC,GAA7B,EAAG,iBAAiB,GAAA,CAAc,MAAM,kBAAkB,EAAE,GAAG,EAAE,CAAC,IAAM,EAAE,EAAE,EAAE,CAAC,MAAM,GAAG,CAAC,CAAC,IAAI,GAAG,WAAW,CAAC,CAAC,EAAkC,IAAxB,EAAE,KAAK,IAAA,GAAU,EAAE,EAAE,IAAQ,GAA4C,MAA9B,MAAK,EAAE,GAAG,KAAK,EAAE,GAAG,KAAK,EAAE,GAAc,GAAK,CAAC,IAAM,EAAG,EAAG,iBAAiB,GAAG,GAAG,EAAG,SAAS,QAAQ,EAAE,MAAO,GAAK,GAAG,EAAG,SAAS,UAAU,EAAE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