{"version":3,"file":"MethodSteps.9hxF4jVI.mjs","names":["useState","useRef"],"sources":["https:/framerusercontent.com/modules/MjpJGkJFMtAqcO8ECGTJ/e0S3i0jfyt5aF1rqeiNm/MethodSteps.js"],"sourcesContent":["import{jsx as _jsx,jsxs as _jsxs}from\"react/jsx-runtime\";import{useState,useRef,useEffect}from\"react\";import{addPropertyControls,ControlType}from\"framer\";import{motion}from\"framer-motion\";/**\n * @framerIntrinsicWidth 1440\n * @framerIntrinsicHeight 700\n * @framerSupportedLayoutWidth any-prefer-fixed\n * @framerSupportedLayoutHeight any-prefer-fixed\n */export default function MethodSteps(props){const{tag,tagColor,heading,headingColor,steps,numberDefaultColor,numberHoverColor,titleColor,descriptionColor,backgroundColor,titleFont,descriptionFont,numberFont,tagFont,headingFont}=props;const[hoveredIndex,setHoveredIndex]=useState(null);const[width,setWidth]=useState(1440);const ref=useRef(null);useEffect(()=>{if(!ref.current)return;const observer=new ResizeObserver(entries=>{for(const entry of entries){setWidth(entry.contentRect.width);}});observer.observe(ref.current);return()=>observer.disconnect();},[]);const isMobile=width<810;const isTablet=width>=810&&width<1200;const columns=isMobile?1:isTablet?2:4;const headingSize=isMobile?\"32px\":isTablet?\"52px\":\"72px\";const numberSize=isMobile?\"64px\":isTablet?\"96px\":\"120px\";const titleSize=isMobile?\"18px\":\"20px\";const descSize=isMobile?\"14px\":\"15px\";const tagSize=isMobile?\"11px\":\"13px\";const padding=isMobile?\"60px 24px\":isTablet?\"80px 40px\":\"120px 80px\";const sectionGap=isMobile?32:60;return /*#__PURE__*/_jsxs(\"div\",{ref:ref,style:{width:\"100%\",height:\"100%\",backgroundColor,padding,display:\"flex\",flexDirection:\"column\",alignItems:\"center\",gap:sectionGap,boxSizing:\"border-box\",...props.style},children:[/*#__PURE__*/_jsx(\"div\",{style:{...tagFont,color:tagColor,textTransform:\"uppercase\",fontSize:tagSize},children:tag}),/*#__PURE__*/_jsx(\"h2\",{style:{...headingFont,color:headingColor,margin:0,textAlign:\"center\",maxWidth:\"1100px\",fontSize:headingSize,lineHeight:1.05},children:heading}),/*#__PURE__*/_jsx(\"div\",{style:{display:\"grid\",gridTemplateColumns:`repeat(${columns}, 1fr)`,gap:\"40px\",width:\"100%\",maxWidth:\"1400px\",marginTop:isMobile?0:40},children:steps.map((step,index)=>/*#__PURE__*/_jsxs(\"div\",{onMouseEnter:()=>!isMobile&&setHoveredIndex(index),onMouseLeave:()=>!isMobile&&setHoveredIndex(null),style:{display:\"flex\",flexDirection:\"column\",gap:\"16px\",cursor:\"default\"},children:[/*#__PURE__*/_jsx(motion.div,{style:{...numberFont,fontSize:numberSize,lineHeight:1},animate:{color:isMobile?numberHoverColor:hoveredIndex===index?numberHoverColor:numberDefaultColor},transition:{duration:.3,ease:\"easeOut\"},children:step.number}),/*#__PURE__*/_jsx(\"div\",{style:{...titleFont,color:titleColor,fontSize:titleSize},children:step.title}),/*#__PURE__*/_jsx(\"div\",{style:{...descriptionFont,color:descriptionColor,fontSize:descSize},children:step.description})]},index))})]});}addPropertyControls(MethodSteps,{tag:{type:ControlType.String,title:\"Tag\",defaultValue:\"M\\xc9THODE\"},tagColor:{type:ControlType.Color,title:\"Tag Color\",defaultValue:\"#FF5A01\"},heading:{type:ControlType.String,title:\"Heading\",defaultValue:\"Comment se d\\xe9roule un chantier avec nous.\",displayTextArea:true},headingColor:{type:ControlType.Color,title:\"Heading Color\",defaultValue:\"#0A0A0A\"},steps:{type:ControlType.Array,title:\"Steps\",control:{type:ControlType.Object,controls:{number:{type:ControlType.String,title:\"Number\",defaultValue:\"01\"},title:{type:ControlType.String,title:\"Title\",defaultValue:\"Step\"},description:{type:ControlType.String,title:\"Description\",defaultValue:\"Description.\",displayTextArea:true}}},defaultValue:[{number:\"01\",title:\"Visite et chiffrage\",description:\"Bastien se d\\xe9place sur site. Il prend les mesures, identifie les contraintes et conseille — gratuitement.\"},{number:\"02\",title:\"Devis sous 48h\",description:\"Vous recevez un devis poste par poste. Pas de ligne fourre-tout. Vous savez exactement ce que vous payez.\"},{number:\"03\",title:\"Pr\\xe9paration\",description:\"Nous mobilisons les machines et les \\xe9quipes n\\xe9cessaires. Nous adaptons \\xe0 votre chantier, pas l'inverse.\"},{number:\"04\",title:\"Livraison\",description:\"Vous suivez l'avancement. Nous livrons dans le d\\xe9lai annonc\\xe9. PV de r\\xe9ception sign\\xe9. D\\xe9cennale activ\\xe9e.\"}],maxCount:8},numberDefaultColor:{type:ControlType.Color,title:\"Number Default\",defaultValue:\"#E5E5E5\"},numberHoverColor:{type:ControlType.Color,title:\"Number Hover\",defaultValue:\"#FF5A01\"},titleColor:{type:ControlType.Color,title:\"Title Color\",defaultValue:\"#0A0A0A\"},descriptionColor:{type:ControlType.Color,title:\"Description Color\",defaultValue:\"#666666\"},backgroundColor:{type:ControlType.Color,title:\"Background\",defaultValue:\"#FAFAFA\"},tagFont:{type:ControlType.Font,title:\"Tag Font\",controls:\"extended\",defaultFontType:\"sans-serif\",defaultValue:{fontSize:\"13px\",variant:\"Semibold\",letterSpacing:\"0.1em\",lineHeight:\"1em\"}},headingFont:{type:ControlType.Font,title:\"Heading Font\",controls:\"extended\",defaultFontType:\"sans-serif\",defaultValue:{fontSize:\"72px\",variant:\"Bold\",letterSpacing:\"-0.03em\",lineHeight:\"1.05em\"}},titleFont:{type:ControlType.Font,title:\"Title Font\",controls:\"extended\",defaultFontType:\"sans-serif\",defaultValue:{fontSize:\"20px\",variant:\"Semibold\",letterSpacing:\"-0.01em\",lineHeight:\"1.3em\"}},descriptionFont:{type:ControlType.Font,title:\"Description Font\",controls:\"extended\",defaultFontType:\"sans-serif\",defaultValue:{fontSize:\"15px\",variant:\"Regular\",letterSpacing:\"0em\",lineHeight:\"1.6em\"}},numberFont:{type:ControlType.Font,title:\"Number Font\",controls:\"extended\",defaultFontType:\"sans-serif\",defaultValue:{fontSize:\"120px\",variant:\"Bold\",letterSpacing:\"-0.04em\",lineHeight:\"1em\"}}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"MethodSteps\",\"slots\":[],\"annotations\":{\"framerIntrinsicWidth\":\"1440\",\"framerIntrinsicHeight\":\"700\",\"framerSupportedLayoutWidth\":\"any-prefer-fixed\",\"framerSupportedLayoutHeight\":\"any-prefer-fixed\",\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./MethodSteps.map"],"mappings":"gPAKG,SAAwB,EAAY,EAAM,CAAC,GAAK,CAAC,MAAI,WAAS,UAAQ,eAAa,QAAM,qBAAmB,mBAAiB,aAAW,mBAAiB,kBAAgB,YAAU,kBAAgB,aAAW,UAAQ,eAAa,EAAW,CAAC,EAAa,GAAiBA,EAAS,IAAI,EAAO,CAAC,EAAM,GAAUA,EAAS,IAAI,EAAQ,EAAIC,EAAO,IAAI,EAAE,MAAc,CAAC,GAAG,CAAC,EAAI,QAAQ,OAAO,IAAM,EAAS,IAAI,eAAe,GAAS,CAAC,IAAI,IAAM,KAAS,EAAS,EAAS,EAAM,YAAY,KAAK,CAAG,CAAC,EAAgC,OAA9B,EAAS,QAAQ,EAAI,OAAO,MAAY,EAAS,WAAW,CAAE,EAAE,CAAC,CAAC,EAAE,IAAM,EAAS,EAAM,IAAU,EAAS,GAAO,KAAK,EAAM,KAAW,EAAQ,EAAS,EAAE,EAAS,EAAE,EAAQ,EAAY,EAAS,OAAO,EAAS,OAAO,OAAa,EAAW,EAAS,OAAO,EAAS,OAAO,QAAc,EAAU,EAAS,OAAO,OAAa,EAAS,EAAS,OAAO,OAAa,EAAQ,EAAS,OAAO,OAA4G,OAAoB,EAAM,MAAM,CAAK,MAAI,MAAM,CAAC,MAAM,OAAO,OAAO,OAAO,kBAAgB,QAAlL,EAAS,YAAY,EAAS,YAAY,aAAgJ,QAAQ,OAAO,cAAc,SAAS,WAAW,SAAS,IAA5K,EAAS,GAAG,GAA+K,UAAU,aAAa,GAAG,EAAM,KAAK,EAAE,SAAS,CAAc,EAAK,MAAM,CAAC,MAAM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