{"version":3,"file":"SectionFrame.BcVweTC0.mjs","names":[],"sources":["https:/framerusercontent.com/modules/vsL7KNByEwHtD7RSO7rN/2pbjVJzVSykg4AupBwuk/SectionFrame.js"],"sourcesContent":["// Infinite background pattern that fills ANY frame size — pure CSS, no runtime JS.\n// Patterns: dots, grid, horizontal/vertical lines (solid & dashed), hatch, cross-hatch, hatched grid.\nimport{jsx as _jsx}from\"react/jsx-runtime\";import{addPropertyControls,ControlType}from\"framer\";function svgDash(cell,t,color,vertical){const d=Math.max(2,Math.round(cell/3));const line=vertical?`<line x1='0.5' y1='0' x2='0.5' y2='${cell}' stroke='${color}' stroke-width='${t}' stroke-dasharray='${d} ${d}'/>`:`<line x1='0' y1='0.5' x2='${cell}' y2='0.5' stroke='${color}' stroke-width='${t}' stroke-dasharray='${d} ${d}'/>`;const svg=`<svg xmlns='http://www.w3.org/2000/svg' width='${cell}' height='${cell}'>${line}</svg>`;return`url(\"data:image/svg+xml,${encodeURIComponent(svg)}\")`;}function buildPattern(pattern,cell,t,color,hatchDir,majorEvery,majorColor){const hLine=(c,w)=>`linear-gradient(${c} ${w}px, transparent ${w}px)`;const vLine=(c,w)=>`linear-gradient(90deg, ${c} ${w}px, transparent ${w}px)`;const diag=angle=>`repeating-linear-gradient(${angle}deg, ${color} 0, ${color} ${t}px, transparent ${t}px, transparent ${cell}px)`;const size=`${cell}px ${cell}px`;const images=[];const sizes=[];const supportsMajor=majorEvery>1&&(pattern===\"grid\"||pattern===\"hatchedGrid\");if(supportsMajor){const m=`${cell*majorEvery}px ${cell*majorEvery}px`;images.push(vLine(majorColor,t+.5),hLine(majorColor,t+.5));sizes.push(m,m);}switch(pattern){case\"dots\":images.push(`radial-gradient(${color} ${t}px, transparent ${t}px)`);sizes.push(size);break;case\"hLines\":images.push(hLine(color,t));sizes.push(`100% ${cell}px`);break;case\"vLines\":images.push(vLine(color,t));sizes.push(`${cell}px 100%`);break;case\"hDashed\":images.push(svgDash(cell,t,color,false));sizes.push(size);break;case\"vDashed\":images.push(svgDash(cell,t,color,true));sizes.push(size);break;case\"hatch\":images.push(diag(hatchDir===\"up\"?-45:45));sizes.push(\"auto\");break;case\"cross\":images.push(diag(45),diag(-45));sizes.push(\"auto\",\"auto\");break;case\"hatchedGrid\":images.push(vLine(color,t),hLine(color,t),diag(hatchDir===\"up\"?-45:45));sizes.push(size,size,\"auto\");break;case\"grid\":default:images.push(vLine(color,t),hLine(color,t));sizes.push(size,size);break;}return{backgroundImage:images.join(\", \"),backgroundSize:sizes.join(\", \")};}function buildFade(fade,strength){const s=Math.max(0,Math.min(100,strength));switch(fade){case\"top\":return`linear-gradient(to bottom, transparent 0%, black ${s}%)`;case\"bottom\":return`linear-gradient(to top, transparent 0%, black ${s}%)`;case\"vertical\":return`linear-gradient(to bottom, transparent 0%, black ${s}%, black ${100-s}%, transparent 100%)`;case\"radial\":return`radial-gradient(circle at center, black ${100-s}%, transparent 100%)`;default:return undefined;}}/**\n * Pattern\n *\n * @framerIntrinsicWidth 400\n * @framerIntrinsicHeight 400\n *\n * @framerSupportedLayoutWidth any\n * @framerSupportedLayoutHeight any\n */export default function Pattern(props){const{pattern=\"grid\",cell=20,thickness=1,lineColor=\"#E4E7EC\",background=\"rgba(0,0,0,0)\",hatchDir=\"down\",majorEvery=0,majorColor=\"#CDD2DC\",fade=\"none\",fadeStrength=50,style}=props;const{backgroundImage,backgroundSize}=buildPattern(pattern,cell,thickness,lineColor,hatchDir,majorEvery,majorColor);const mask=buildFade(fade,fadeStrength);return /*#__PURE__*/_jsx(\"div\",{style:{position:\"relative\",width:\"100%\",height:\"100%\",background,backgroundImage,backgroundSize,backgroundPosition:\"0 0\",maskImage:mask,WebkitMaskImage:mask,...style}});}addPropertyControls(Pattern,{pattern:{type:ControlType.Enum,title:\"Pattern\",options:[\"dots\",\"grid\",\"hLines\",\"vLines\",\"hDashed\",\"vDashed\",\"hatch\",\"cross\",\"hatchedGrid\"],optionTitles:[\"Points\",\"Carreaux\",\"Lignes H\",\"Lignes V\",\"Lignes H pointill\\xe9es\",\"Lignes V pointill\\xe9es\",\"Hachures\",\"Hachures crois\\xe9es\",\"Carreaux hach\\xe9s\"],defaultValue:\"grid\"},cell:{type:ControlType.Number,title:\"Taille\",defaultValue:20,min:4,max:200,unit:\"px\"},thickness:{type:ControlType.Number,title:\"\\xc9paisseur\",defaultValue:1,min:.5,max:6,step:.5,unit:\"px\"},hatchDir:{type:ControlType.Enum,title:\"Sens hachures\",options:[\"down\",\"up\"],optionTitles:[\"Vers le bas ↘\",\"Vers le haut ↗\"],defaultValue:\"down\",hidden:props=>props.pattern!==\"hatch\"&&props.pattern!==\"hatchedGrid\"},lineColor:{type:ControlType.Color,title:\"Couleur\",defaultValue:\"#E4E7EC\"},background:{type:ControlType.Color,title:\"Fond\",defaultValue:\"rgba(0,0,0,0)\"},majorEvery:{type:ControlType.Number,title:\"Lignes majeures\",defaultValue:0,min:0,max:12,step:1,description:\"0 = off \\xb7 sinon une ligne plus marqu\\xe9e tous les N carreaux\",hidden:props=>props.pattern!==\"grid\"&&props.pattern!==\"hatchedGrid\"},majorColor:{type:ControlType.Color,title:\"Couleur majeure\",defaultValue:\"#CDD2DC\",hidden:props=>props.pattern!==\"grid\"&&props.pattern!==\"hatchedGrid\"||!(props.majorEvery>1)},fade:{type:ControlType.Enum,title:\"Fade\",options:[\"none\",\"top\",\"bottom\",\"vertical\",\"radial\"],optionTitles:[\"Aucun\",\"Haut\",\"Bas\",\"Vertical\",\"Radial\"],defaultValue:\"none\"},fadeStrength:{type:ControlType.Number,title:\"Intensit\\xe9 fade\",defaultValue:50,min:0,max:100,unit:\"%\",hidden:props=>props.fade===\"none\"}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"Pattern\",\"slots\":[],\"annotations\":{\"framerIntrinsicHeight\":\"400\",\"framerSupportedLayoutHeight\":\"any\",\"framerContractVersion\":\"1\",\"framerSupportedLayoutWidth\":\"any\",\"framerIntrinsicWidth\":\"400\"}},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