{"version":3,"file":"CircularProgress.DPeXOzAS.mjs","names":["React","useRef"],"sources":["https:/framerusercontent.com/modules/zaShsSXsoDAD1hJJdDYM/OaP15Gj1cDuFbyybjkUC/CircularProgress.js"],"sourcesContent":["import{jsx as _jsx,jsxs as _jsxs}from\"react/jsx-runtime\";import React,{useRef,useEffect}from\"react\";import{motion,useInView,useAnimation}from\"framer-motion\";import{addPropertyControls,ControlType}from\"framer\";/* ----------------- Cercle animé, look épuré + contour néon fin ----------------- */function AnimatedCircularProgress({percentage,size=132,strokeWidth=12,trackColor=\"#E6EAEB\",arcColor=\"#008C8C\",uiVariant=\"minimal\"}){const radius=(size-strokeWidth)/2;const circumference=2*Math.PI*radius;const offset=circumference-percentage/100*circumference;const gradId=React.useId();const blurId=React.useId();// Intensités selon variant\nconst glowOpacity=uiVariant===\"neon\"?.35:uiVariant===\"soft\"?.22:.14;const borderOpacity=uiVariant===\"neon\"?.9:uiVariant===\"soft\"?.6:.45;const blurStdDev=uiVariant===\"neon\"?2.6:uiVariant===\"soft\"?2:1.4;return /*#__PURE__*/_jsxs(\"div\",{className:\"ring\",style:{position:\"relative\",width:size,height:size,// expose la couleur comme variable CSS\n// @ts-ignore\n[\"--accent\"]:arcColor},children:[/*#__PURE__*/_jsx(\"style\",{children:`\n        .ring::after{\n          /* Bordure n\\xe9on fine autour du cercle (pas de carte) */\n          content:\"\";\n          position:absolute; inset:-8px;\n          border-radius:50%;\n          padding:1px;\n          background:linear-gradient(135deg,var(--accent, ${arcColor}) 0%, rgba(255,255,255,.4) 40%, var(--accent, ${arcColor}) 85%);\n          -webkit-mask:linear-gradient(#000 0 0) content-box,linear-gradient(#000 0 0);\n          -webkit-mask-composite:xor; mask-composite:exclude;\n          opacity:${borderOpacity};\n          pointer-events:none;\n          transition:opacity .25s ease, transform .25s ease;\n        }\n        .ring::before{\n          /* Halo tr\\xe8s l\\xe9ger, circulaire */\n          content:\"\";\n          position:absolute; inset:-14px;\n          border-radius:50%;\n          background: radial-gradient(60% 60% at 50% 50%, color-mix(in oklab, var(--accent, ${arcColor}) 65%, white 35%) 0%, transparent 70%);\n          filter: blur(12px);\n          opacity:${glowOpacity};\n          pointer-events:none;\n          transition: opacity .25s ease, filter .25s ease, transform .25s ease;\n        }\n        .ring:hover::after{ opacity:1; transform: scale(1.01); }\n        .ring:hover::before{ opacity:${Math.min(glowOpacity+.08,.45)}; filter: blur(14px); transform: scale(1.01); }\n\n        @media (prefers-reduced-motion: reduce){\n          .ring::before, .ring::after{ transition:none !important; }\n        }\n      `}),/*#__PURE__*/_jsxs(\"svg\",{width:size,height:size,children:[/*#__PURE__*/_jsxs(\"defs\",{children:[/*#__PURE__*/_jsxs(\"linearGradient\",{id:gradId,x1:\"0%\",y1:\"0%\",x2:\"100%\",y2:\"100%\",children:[/*#__PURE__*/_jsx(\"stop\",{offset:\"0%\",stopColor:arcColor,stopOpacity:\"1\"}),/*#__PURE__*/_jsx(\"stop\",{offset:\"70%\",stopColor:arcColor,stopOpacity:\".9\"}),/*#__PURE__*/_jsx(\"stop\",{offset:\"100%\",stopColor:\"#ffffff\",stopOpacity:\".35\"})]}),/*#__PURE__*/_jsxs(\"filter\",{id:blurId,x:\"-50%\",y:\"-50%\",width:\"200%\",height:\"200%\",children:[/*#__PURE__*/_jsx(\"feGaussianBlur\",{in:\"SourceGraphic\",stdDeviation:\"${blurStdDev}\",result:\"b\"}),/*#__PURE__*/_jsxs(\"feMerge\",{children:[/*#__PURE__*/_jsx(\"feMergeNode\",{in:\"b\"}),/*#__PURE__*/_jsx(\"feMergeNode\",{in:\"SourceGraphic\"})]})]})]}),/*#__PURE__*/_jsx(\"circle\",{cx:size/2,cy:size/2,r:radius,fill:\"none\",stroke:trackColor,strokeWidth:strokeWidth,strokeLinecap:\"round\"}),/*#__PURE__*/_jsx(motion.circle,{style:{rotate:-90,originX:\"50%\",originY:\"50%\"},cx:size/2,cy:size/2,r:radius,fill:\"none\",stroke:arcColor,strokeOpacity:uiVariant===\"minimal\"?.25:.32,strokeWidth:strokeWidth+3,strokeDasharray:circumference,strokeDashoffset:circumference,strokeLinecap:\"round\",filter:`url(#${blurId})`,animate:{strokeDashoffset:offset},transition:{duration:1.2,ease:\"easeInOut\"}}),/*#__PURE__*/_jsx(motion.circle,{style:{rotate:-90,originX:\"50%\",originY:\"50%\"},cx:size/2,cy:size/2,r:radius,fill:\"none\",stroke:`url(#${gradId})`,strokeWidth:strokeWidth,strokeDasharray:circumference,strokeDashoffset:circumference,strokeLinecap:\"round\",animate:{strokeDashoffset:offset},transition:{duration:1.2,ease:\"easeInOut\"}})]}),/*#__PURE__*/_jsxs(\"div\",{style:{position:\"absolute\",inset:0,display:\"flex\",alignItems:\"center\",justifyContent:\"center\",fontSize:\"clamp(14px, 2vw, 18px)\",color:arcColor,fontWeight:800,letterSpacing:\".02em\"},children:[percentage,\"%\"]})]});}/* ----------------- Section ----------------- */export function CircularSkillsSection({circles,ctaText,ctaLink,accent=\"#008C8C\",track=\"#E6EAEB\",uiVariant=\"minimal\"}){const ref=useRef(null);const isInView=useInView(ref,{once:true});const controls=useAnimation();useEffect(()=>{if(isInView)controls.start(\"visible\");},[isInView,controls]);const containerVariants={hidden:{opacity:0,y:30},visible:{opacity:1,y:0,transition:{duration:.55,ease:\"easeOut\",staggerChildren:.15}}};const itemVariants={hidden:{opacity:0,scale:.92},visible:{opacity:1,scale:1,transition:{duration:.45,ease:\"easeOut\"}}};return /*#__PURE__*/_jsxs(\"section\",{ref:ref,style:{background:\"transparent\",padding:\"36px 20px 44px\",display:\"flex\",flexDirection:\"column\",alignItems:\"center\",gap:\"28px\",// @ts-ignore\n[\"--accent\"]:accent},children:[/*#__PURE__*/_jsx(motion.div,{variants:containerVariants,initial:\"hidden\",animate:controls,style:{display:\"flex\",flexWrap:\"wrap\",gap:\"48px\",alignItems:\"flex-start\",justifyContent:\"center\",maxWidth:1100,width:\"100%\"},children:circles.map((c,i)=>/*#__PURE__*/_jsxs(motion.div,{variants:itemVariants,style:{display:\"flex\",flexDirection:\"column\",alignItems:\"center\"},children:[/*#__PURE__*/_jsx(AnimatedCircularProgress,{percentage:isInView?c.percentage:0,size:132,strokeWidth:12,trackColor:track,arcColor:accent,uiVariant:uiVariant}),/*#__PURE__*/_jsx(\"div\",{style:{marginTop:10,fontSize:\"clamp(13px, 2vw, 16px)\",color:\"#1d1f20\",fontWeight:700,textAlign:\"center\",textTransform:\"uppercase\",letterSpacing:\".03em\",whiteSpace:\"nowrap\"},children:c.label})]},`${c.label}-${i}`))}),/*#__PURE__*/_jsx(\"a\",{href:ctaLink,style:{display:\"inline-block\",padding:\"12px 22px\",background:accent,color:\"#fff\",borderRadius:12,fontWeight:800,textDecoration:\"none\",boxShadow:\"0 6px 16px rgba(0,0,0,0.12)\",transition:\"transform .2s ease, box-shadow .2s ease\"},onMouseEnter:e=>{e.currentTarget.style.transform=\"translateY(-2px)\";e.currentTarget.style.boxShadow=\"0 10px 22px rgba(0,0,0,0.16)\";},onMouseLeave:e=>{e.currentTarget.style.transform=\"translateY(0)\";e.currentTarget.style.boxShadow=\"0 6px 16px rgba(0,0,0,0.12)\";},children:ctaText})]});}/* ----------------- Defaults + Controls ----------------- */CircularSkillsSection.defaultProps={circles:[{label:\"NETTOYAGE\",percentage:90},{label:\"ENTRETIEN\",percentage:95},{label:\"\\xc9CO-RESPONSABILIT\\xc9\",percentage:80}],ctaText:\"Voir nos R\\xe9alisations\",ctaLink:\"/nos-realisations\",accent:\"#008C8C\",track:\"#E6EAEB\",uiVariant:\"minimal\"};addPropertyControls(CircularSkillsSection,{circles:{type:ControlType.Array,title:\"Cercles\",propertyControl:{type:ControlType.Object,controls:{label:{type:ControlType.String,title:\"Label\"},percentage:{type:ControlType.Number,title:\"Pourcentage\"}}}},ctaText:{type:ControlType.String,title:\"Texte du bouton\"},ctaLink:{type:ControlType.String,title:\"Lien\"},accent:{type:ControlType.Color,title:\"Couleur arc\"},track:{type:ControlType.Color,title:\"Couleur piste\"},uiVariant:{type:ControlType.Enum,title:\"Style\",options:[\"minimal\",\"soft\",\"neon\"],optionTitles:[\"Minimal (propre)\",\"Soft (l\\xe9ger glow)\",\"Neon (plus marqu\\xe9)\"]}});\nexport const __FramerMetadata__ = {\"exports\":{\"CircularSkillsSection\":{\"type\":\"reactComponent\",\"name\":\"CircularSkillsSection\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./CircularProgress.map"],"mappings":"8PAAsS,SAAS,EAAyB,CAAC,aAAW,OAAK,IAAI,cAAY,GAAG,aAAW,UAAU,WAAS,UAAU,YAAU,WAAW,CAAC,IAAM,GAAQ,EAAK,GAAa,EAAQ,EAAc,EAAE,KAAK,GAAG,EAAa,EAAO,EAAc,EAAW,IAAI,EAAoB,EAAOA,EAAM,OAAO,CAAO,EAAOA,EAAM,OAAO,CACxlB,EAAY,IAAY,OAAO,IAAI,IAAY,OAAO,IAAI,IAAU,EAAc,IAAY,OAAO,GAAG,IAAY,OAAO,GAAG,IAAqE,OAAoB,EAAM,MAAM,CAAC,UAAU,OAAO,MAAM,CAAC,SAAS,WAAW,MAAM,EAAK,OAAO,EAEvS,WAAY,EAAS,CAAC,SAAS,CAAc,EAAK,QAAQ,CAAC,SAAS;;;;;;;4DAOT,EAAS,gDAAgD,EAAS;;;oBAG1G,EAAc;;;;;;;;;8FAS4D,EAAS;;oBAEnF,EAAY;;;;;uCAKO,KAAK,IAAI,EAAY,IAAI,IAAI,CAAC;;;;;QAK7D,CAAC,CAAc,EAAM,MAAM,CAAC,MAAM,EAAK,OAAO,EAAK,SAAS,CAAc,EAAM,OAAO,CAAC,SAAS,CAAc,EAAM,iBAAiB,CAAC,GAAG,EAAO,GAAG,KAAK,GAAG,KAAK,GAAG,OAAO,GAAG,OAAO,SAAS,CAAc,EAAK,OAAO,CAAC,OAAO,KAAK,UAAU,EAAS,YAAY,IAAI,CAAC,CAAc,EAAK,OAAO,CAAC,OAAO,MAAM,UAAU,EAAS,YAAY,K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