{"version":3,"file":"ProcessTimeline_3.CSfKpot7.mjs","names":["useRef"],"sources":["https:/framerusercontent.com/modules/dTYhtezdwzoMak6cEQZy/dPLIbRm3WoXOVqsJI4Vx/ProcessTimeline_3.js"],"sourcesContent":["import{jsx as _jsx,jsxs as _jsxs}from\"react/jsx-runtime\";import{motion,useScroll,useSpring,useInView}from\"framer-motion\";import{useRef}from\"react\";import{addPropertyControls,ControlType}from\"framer\";/**\n * @framerSupportedLayoutWidth fixed\n * @framerSupportedLayoutHeight auto\n */export default function ProcessTimeline(props){const{steps,lineColor,activeLineColor,textColor,backgroundColor,titleFont,descriptionFont,numberFont,dotSize,lineWidth,spacing}=props;const containerRef=useRef(null);const{scrollYProgress}=useScroll({target:containerRef,offset:[\"start center\",\"end center\"]});const scaleY=useSpring(scrollYProgress,{stiffness:100,damping:30,restDelta:.001});return /*#__PURE__*/_jsxs(\"div\",{ref:containerRef,style:{width:\"100%\",position:\"relative\",backgroundColor:backgroundColor,padding:\"40px 20px\",display:\"flex\",flexDirection:\"column\",gap:spacing,overflow:\"hidden\"},children:[/*#__PURE__*/_jsx(\"div\",{style:{position:\"absolute\",left:40,top:60,bottom:60,width:lineWidth,backgroundColor:lineColor,borderRadius:lineWidth,transform:\"translateX(-50%)\"}}),/*#__PURE__*/_jsx(motion.div,{style:{position:\"absolute\",left:40,top:60,bottom:60,width:lineWidth,backgroundColor:activeLineColor,borderRadius:lineWidth,transformOrigin:\"top\",scaleY:scaleY,translateX:\"-50%\",zIndex:1}}),steps.map((step,index)=>/*#__PURE__*/_jsx(TimelineItem,{index:index,step:step,textColor:textColor,activeLineColor:activeLineColor,lineColor:lineColor,titleFont:titleFont,descriptionFont:descriptionFont,numberFont:numberFont,dotSize:dotSize,backgroundColor:backgroundColor},index))]});}function TimelineItem({index,step,textColor,activeLineColor,lineColor,titleFont,descriptionFont,numberFont,dotSize,backgroundColor}){const ref=useRef(null);const isInView=useInView(ref,{margin:\"-50% 0px -50% 0px\",once:false});return /*#__PURE__*/_jsxs(motion.div,{ref:ref,initial:{opacity:.2,x:20},whileInView:{opacity:1,x:0},viewport:{margin:\"-20% 0px -20% 0px\",once:false},transition:{duration:.5,ease:\"easeOut\"},style:{display:\"flex\",alignItems:\"flex-start\",position:\"relative\",zIndex:2,paddingLeft:80},children:[/*#__PURE__*/_jsx(motion.div,{animate:{backgroundColor:isInView?activeLineColor:backgroundColor,borderColor:isInView?activeLineColor:lineColor,scale:isInView?1.2:1},style:{position:\"absolute\",left:40,top:0,width:dotSize,height:dotSize,borderRadius:\"50%\",border:`2px solid ${lineColor}`,transform:\"translate(-50%, 0%)\",backgroundColor:backgroundColor,zIndex:2,marginTop:6}}),/*#__PURE__*/_jsxs(\"div\",{style:{display:\"flex\",flexDirection:\"column\",gap:8},children:[/*#__PURE__*/_jsxs(\"div\",{style:{display:\"flex\",alignItems:\"baseline\",gap:12,...titleFont,color:textColor},children:[/*#__PURE__*/_jsx(\"span\",{style:{...numberFont,color:activeLineColor,opacity:.8},children:index+1<10?`0${index+1}`:index+1}),/*#__PURE__*/_jsx(\"span\",{children:step.title})]}),/*#__PURE__*/_jsx(\"p\",{style:{margin:0,...descriptionFont,color:textColor,opacity:.8,maxWidth:600},children:step.description})]})]});}const defaultSteps=[{title:\"\\xc9tude compl\\xe8te du projet\",description:\"Nous analysons votre habitation et vos besoins afin d’identifier les solutions techniques les plus adapt\\xe9es.\"},{title:\"Sc\\xe9narios de transformation\",description:\"Nous explorons diff\\xe9rentes options d’am\\xe9nagement en tenant compte de vos souhaits, du confort et des performances \\xe9nerg\\xe9tiques du b\\xe2timent.\"},{title:\"Chiffrage et devis\",description:\"Nous \\xe9tablissons un devis poste par poste pour vous donner une vision r\\xe9aliste du budget et des travaux \\xe0 r\\xe9aliser.\"},{title:\"Visualisation du projet\",description:\"Gr\\xe2ce \\xe0 la mod\\xe9lisation 3D et \\xe0 la projection en taille r\\xe9elle, vous pouvez valider les choix d’am\\xe9nagement avant le lancement du chantier.\"},{title:\"Lancement du chantier\",description:\"Nous planifions les diff\\xe9rentes interventions et coordonnons les \\xe9quipes pour assurer le bon d\\xe9roulement du chantier.\"},{title:\"Suivi et dossier complet\",description:\"Nous assurons le suivi du chantier et constituons un dossier complet regroupant les informations techniques et les diff\\xe9rentes \\xe9tapes des travaux.\"},{title:\"Profitez de votre nouvel espace\",description:\"Une fois les travaux termin\\xe9s, vous profitez d’un espace transform\\xe9, con\\xe7u pour votre confort et adapt\\xe9 \\xe0 votre mode de vie.\"}];addPropertyControls(ProcessTimeline,{steps:{type:ControlType.Array,title:\"Steps\",control:{type:ControlType.Object,controls:{title:{type:ControlType.String,defaultValue:\"Title\"},description:{type:ControlType.String,defaultValue:\"Description\",displayTextArea:true}}},defaultValue:defaultSteps},backgroundColor:{type:ControlType.Color,title:\"Background\",defaultValue:\"#FFFFFF\"},textColor:{type:ControlType.Color,title:\"Text\",defaultValue:\"#0B1C3E\"},lineColor:{type:ControlType.Color,title:\"Line Base\",defaultValue:\"#E5E5E5\"},activeLineColor:{type:ControlType.Color,title:\"Accent\",defaultValue:\"#FF6B00\"},spacing:{type:ControlType.Number,title:\"Spacing\",defaultValue:60,min:20,max:200},lineWidth:{type:ControlType.Number,title:\"Line Width\",defaultValue:2,min:1,max:10},dotSize:{type:ControlType.Number,title:\"Dot Size\",defaultValue:12,min:4,max:40},titleFont:{type:ControlType.Font,title:\"Title Font\",controls:\"extended\",defaultFontType:\"sans-serif\",defaultValue:{fontSize:24,lineHeight:1.2,variant:\"Bold\"}},descriptionFont:{type:ControlType.Font,title:\"Desc Font\",controls:\"extended\",defaultFontType:\"sans-serif\",defaultValue:{fontSize:16,lineHeight:1.5,variant:\"Regular\"}},numberFont:{type:ControlType.Font,title:\"Number Font\",controls:\"extended\",defaultFontType:\"sans-serif\",defaultValue:{fontSize:14,lineHeight:1,variant:\"Bold\",letterSpacing:\"0.05em\"}}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"ProcessTimeline\",\"slots\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