{"version":3,"file":"eahECTO47.B3EXjpfb.mjs","names":[],"sources":["https:/framerusercontent.com/modules/U2YUEgFEQBSa2zy9gF9A/VzROiGE26f9j24LjkI8S/Ancres_H2_ft_Callout.js","https:/framerusercontent.com/modules/hku6Nn7P3IvHkisFyDtE/JI1lJGdIZo7JnUMMxOmm/eahECTO47.js"],"sourcesContent":["import{jsx as _jsx}from\"react/jsx-runtime\";import{useEffect}from\"react\";export function withAncres(Component){return function(props){useEffect(()=>{const slugify=text=>text.toLowerCase().normalize(\"NFD\").replace(/[\\u0300-\\u036f]/g,\"\").replace(/[^a-z0-9]+/g,\"-\").replace(/(^-|-$)/g,\"\");// ── Ancres H2 ──────────────────────────────────────────\ndocument.querySelectorAll(\"h2\").forEach(h2=>{if(!h2.id){h2.id=slugify(h2.textContent||\"\");}});// ── Blockquotes → Callout (vert par défaut, bleu ou jaune selon émoji) ──\ndocument.querySelectorAll(\"blockquote\").forEach(bq=>{const text=bq.innerText||\"\";let bg=\"#EAF4F0\";let border=\"#1D9E75\";let icon=\"✅\";let iconColor=\"#0F6E56\";if(text.trimStart().startsWith(\"📌\")){bg=\"#E6F1FB\";border=\"#185FA5\";icon=\"📌\";iconColor=\"#0C447C\";}else if(text.trimStart().startsWith(\"⚠️\")||text.trimStart().startsWith(\"⚠\")){bg=\"#FAEEDA\";border=\"#BA7517\";icon=\"⚠️\";iconColor=\"#633806\";}bq.style.background=bg;bq.style.borderLeft=\"4px solid \"+border;bq.style.borderRadius=\"0 12px 12px 0\";bq.style.padding=\"16px 20px\";bq.style.margin=\"24px 0\";bq.style.fontStyle=\"normal\";bq.querySelectorAll(\"p, li, span\").forEach(el=>{el.style.color=\"#1a1a1a\";el.style.fontSize=\"15px\";el.style.lineHeight=\"1.7\";el.style.fontStyle=\"normal\";});const firstP=bq.querySelector(\"p, span\");if(firstP&&icon===\"✅\"){const firstText=firstP.innerText||\"\";if(!firstText.startsWith(\"✅\")){const iconEl=document.createElement(\"span\");iconEl.textContent=\"✅ \";iconEl.style.fontWeight=\"700\";iconEl.style.color=iconColor;iconEl.style.fontSize=\"14px\";firstP.prepend(iconEl);}}});// ── Tables ─────────────────────────────────────────────\ndocument.querySelectorAll(\"table\").forEach(table=>{// Check ALL rows — if any row has more than 1 col, it's a real table\nconst allRows=table.querySelectorAll(\"tr\");const maxCols=Math.max(...Array.from(allRows).map(row=>row.querySelectorAll(\"td, th\").length));const isRealTable=maxCols>1;if(isRealTable){// Vrai tableau multi-colonnes — Option A\nconst wrapper=table.parentElement;if(wrapper){wrapper.style.overflowX=\"auto\";wrapper.style.margin=\"24px 0\";wrapper.style.borderRadius=\"12px\";wrapper.style.border=\"1px solid #D0E4ED\";wrapper.style.display=\"block\";wrapper.style.background=\"transparent\";}table.style.width=\"100%\";table.style.borderCollapse=\"collapse\";table.style.fontSize=\"14px\";table.style.fontFamily=\"'Nunito Sans', sans-serif\";table.querySelectorAll(\"tr\").forEach((row,rowIndex)=>{row.querySelectorAll(\"td, th\").forEach(cell=>{cell.style.padding=\"12px 16px\";cell.style.borderBottom=\"1px solid #D0E4ED\";cell.style.textAlign=\"left\";cell.style.lineHeight=\"1.6\";cell.style.verticalAlign=\"top\";if(rowIndex===0){// Header — bleu ciel clair\ncell.style.background=\"#E6F3F8\";cell.style.color=\"#164D68\";cell.style.fontWeight=\"700\";cell.style.fontSize=\"13px\";cell.style.borderBottom=\"2px solid #D0E4ED\";}else if(rowIndex%2===0){cell.style.background=\"#F5F8FA\";cell.style.color=\"#2C2C2A\";}else{cell.style.background=\"#FFFFFF\";cell.style.color=\"#2C2C2A\";}});});}else{// Toutes colonnes fusionnées → callout selon émoji\nconst text=table.innerText||\"\";let bg=\"#E6F1FB\";let border=\"#185FA5\";if(text.trimStart().startsWith(\"✅\")||text.includes(\"Bon \\xe0 savoir\")){bg=\"#EAF4F0\";border=\"#1D9E75\";}else if(text.trimStart().startsWith(\"⚠️\")||text.trimStart().startsWith(\"⚠\")||text.includes(\"Attention\")||text.includes(\"Important\")){bg=\"#FAEEDA\";border=\"#BA7517\";}const wrapper=table.parentElement;if(wrapper){wrapper.style.background=bg;wrapper.style.borderLeft=\"4px solid \"+border;wrapper.style.borderRadius=\"0 12px 12px 0\";wrapper.style.padding=\"16px 20px\";wrapper.style.margin=\"24px 0\";wrapper.style.display=\"block\";}table.style.width=\"100%\";table.style.borderCollapse=\"collapse\";table.querySelectorAll(\"td, th\").forEach(cell=>{cell.style.border=\"none\";cell.style.padding=\"0\";cell.style.background=\"transparent\";cell.style.fontSize=\"15px\";cell.style.lineHeight=\"1.7\";cell.style.color=\"#1a1a1a\";});}});},[]);return /*#__PURE__*/_jsx(Component,{...props});};}\nexport const __FramerMetadata__ = {\"exports\":{\"withAncres\":{\"type\":\"reactHoc\",\"name\":\"withAncres\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./Ancres_H2_ft_Callout.map","// Generated by Framer (569fd08)\nimport{fontStore}from\"framer\";fontStore.loadFonts([\"GF;Nunito Sans-regular\",\"GF;Nunito Sans-700\",\"GF;Nunito Sans-700italic\",\"GF;Nunito Sans-italic\"]);export const fonts=[{explicitInter:true,fonts:[{cssFamilyName:\"Nunito Sans\",openType:true,source:\"google\",style:\"normal\",uiFamilyName:\"Nunito Sans\",url:\"https://fonts.gstatic.com/s/nunitosans/v19/pe1mMImSLYBIv1o4X1M8ce2xCx3yop4tQpF_MeTm0lfGWVpNn64CL7U8upHZIbMV51Q42ptCp5F5bxqqtQ1yiU4G1ilnsV8kA_Ykqw.woff2\",weight:\"400\"},{cssFamilyName:\"Nunito Sans\",openType:true,source:\"google\",style:\"normal\",uiFamilyName:\"Nunito Sans\",url:\"https://fonts.gstatic.com/s/nunitosans/v19/pe1mMImSLYBIv1o4X1M8ce2xCx3yop4tQpF_MeTm0lfGWVpNn64CL7U8upHZIbMV51Q42ptCp5F5bxqqtQ1yiU4GMS5nsV8kA_Ykqw.woff2\",weight:\"700\"},{cssFamilyName:\"Nunito Sans\",openType:true,source:\"google\",style:\"italic\",uiFamilyName:\"Nunito Sans\",url:\"https://fonts.gstatic.com/s/nunitosans/v19/pe1kMImSLYBIv1o4X1M8cce4OdVisMz5nZRqy6cmmmU3t2FQWEAEOvV9wNvrwlNstMKW3Y6K5WMwXeVy3GboJ0kTHmpo8FUlIfM0qxVd.woff2\",weight:\"700\"},{cssFamilyName:\"Nunito Sans\",openType:true,source:\"google\",style:\"italic\",uiFamilyName:\"Nunito Sans\",url:\"https://fonts.gstatic.com/s/nunitosans/v19/pe1kMImSLYBIv1o4X1M8cce4OdVisMz5nZRqy6cmmmU3t2FQWEAEOvV9wNvrwlNstMKW3Y6K5WMwXeVy3GboJ0kTHmqP91UlIfM0qxVd.woff2\",weight:\"400\"}]}];export const css=['.framer-RZCoB .framer-styles-preset-ynzhby:not(.rich-text-wrapper), .framer-RZCoB .framer-styles-preset-ynzhby.rich-text-wrapper p { --framer-font-family: \"Nunito Sans\", \"Nunito Sans Placeholder\", sans-serif; --framer-font-family-bold: \"Nunito Sans\", \"Nunito Sans Placeholder\", sans-serif; --framer-font-family-bold-italic: \"Nunito Sans\", \"Nunito Sans Placeholder\", sans-serif; --framer-font-family-italic: \"Nunito Sans\", \"Nunito Sans Placeholder\", sans-serif; --framer-font-open-type-features: \\'blwf\\' on, \\'cv09\\' on, \\'cv03\\' on, \\'cv04\\' on, \\'cv11\\' on; --framer-font-size: 18px; --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: 400; --framer-font-weight-bold: 700; --framer-font-weight-bold-italic: 700; --framer-font-weight-italic: 400; --framer-letter-spacing: -0.02em; --framer-line-height: 1.2em; --framer-paragraph-spacing: 20px; --framer-text-alignment: start; --framer-text-color: var(--token-209167f5-39ee-4139-a7ea-8eb65b0ec095, #f8f7f5); --framer-text-decoration: none; --framer-text-stroke-color: initial; --framer-text-stroke-width: initial; --framer-text-transform: none; }'];export const className=\"framer-RZCoB\";\nexport const __FramerMetadata__ = {\"exports\":{\"fonts\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"className\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"css\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}"],"mappings":"mKAAwE,SAAgB,EAAW,EAAU,CAAC,OAAO,SAAS,EAAM,CAO8uB,OAP7uB,MAAc,CAAC,IAAM,EAAQ,GAAM,EAAK,YAAY,CAAC,CAAC,UAAU,KAAK,CAAC,CAAC,QAAQ,mBAAmB,EAAE,CAAC,CAAC,QAAQ,cAAc,GAAG,CAAC,CAAC,QAAQ,WAAW,EAAE,EAC3R,SAAS,iBAAiB,IAAI,CAAC,CAAC,QAAQ,GAAI,CAAC,AAAW,EAAG,KAAG,EAAQ,EAAG,aAAa,EAAE,CAAG,CAAC,EAC5F,SAAS,iBAAiB,YAAY,CAAC,CAAC,QAAQ,GAAI,CAAC,IAAM,EAAK,EAAG,WAAW,GAAO,EAAG,UAAc,EAAO,UAAc,EAAK,IAAQ,EAAU,UAAa,EAAK,UAAU,CAAC,CAAC,WAAW,IAAI,GAAG,EAAG,UAAU,EAAO,UAAU,EAAK,KAAK,EAAU,YAAmB,EAAK,UAAU,CAAC,CAAC,WAAW,IAAI,GAAG,EAAK,UAAU,CAAC,CAAC,WAAW,GAAG,KAAG,EAAG,UAAU,EAAO,UAAU,EAAK,KAAK,EAAU,WAAW,EAAG,MAAM,WAAW,EAAG,EAAG,MAAM,WAAW,aAAa,EAAO,EAAG,MAAM,aAAa,gBAAgB,EAAG,MAAM,QAAQ,YAAY,EAAG,MAAM,OAAO,SAAS,EAAG,MAAM,UAAU,SAAS,EAAG,iBAAiB,aAAa,CAAC,CAAC,QAAQ,GAAI,CAAC,EAAG,MAAM,MAAM,UAAU,EAAG,MAAM,SAAS,OAAO,EAAG,MAAM,WAAW,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