{"version":3,"file":"Parcours.BlDFc-eI.mjs","names":["useRef","useState","useEffect","_jsxs","_jsx","__esmMin","init_npm_react_18_3_1","_e","de","p","c","init_jsx_runtime","ce","init_framer_ChujFWHC","addPropertyControls","ControlType","Parcours","props","steps","ref","seen","setSeen","el","io","ff","tag","w","s","i","bg","fg","init_Parcours"],"sources":["https:/framerusercontent.com/modules/8xtjMSoJ58TAOXhVPChh/Uo7MmPFX2uvqst7sggMj/Parcours.js"],"sourcesContent":["import{jsx as _jsx,jsxs as _jsxs}from\"react/jsx-runtime\";import{useEffect,useRef,useState}from\"react\";import{addPropertyControls,ControlType}from\"framer\";/**\n * Parcours en étapes avec \"qui fait quoi\".\n * @framerSupportedLayoutWidth any\n * @framerSupportedLayoutHeight auto\n */export default function Parcours(props){const steps=props.steps||[];const ref=useRef(null);const[seen,setSeen]=useState(false);useEffect(()=>{const el=ref.current;if(!el||typeof IntersectionObserver===\"undefined\"){setSeen(true);return;}const io=new IntersectionObserver(e=>{if(e[0].isIntersecting){setSeen(true);io.disconnect();}},{threshold:.2});io.observe(el);return()=>io.disconnect();},[]);const ff=props.font?.fontFamily||'\"Inter Display\", \"Inter\", sans-serif';const tag=w=>{const s=(w||\"\").toLowerCase();return s.startsWith(\"toi\")?[\"#FF9A62\",\"#0A0B12\"]:s.startsWith(\"ens\")?[\"#0A0B12\",\"#FFF8F1\"]:[\"#FFF8F1\",\"#0A0B12\"];};return /*#__PURE__*/_jsxs(\"div\",{ref:ref,className:\"omgo-pc\",style:{width:\"100%\",fontFamily:ff,color:\"#0A0B12\",display:\"grid\",gridTemplateColumns:`repeat(${Math.max(1,steps.length)}, minmax(0,1fr))`,columnGap:20,position:\"relative\"},children:[/*#__PURE__*/_jsx(\"div\",{\"aria-hidden\":true,className:\"omgo-pc-line\",style:{position:\"absolute\",left:0,right:0,top:21,height:2,background:\"rgba(10,11,18,.12)\"},children:/*#__PURE__*/_jsx(\"div\",{style:{height:\"100%\",background:\"#FF9A62\",width:seen?\"100%\":\"0%\",transition:\"width 1.6s cubic-bezier(.2,.8,.2,1)\"}})}),steps.map((s,i)=>{const[bg,fg]=tag(s.who);return /*#__PURE__*/_jsxs(\"div\",{className:\"omgo-pc-s\",style:{position:\"relative\",display:\"flex\",flexDirection:\"column\",gap:12,opacity:seen?1:0,transform:seen?\"none\":\"translateY(16px)\",transition:`opacity .6s ${.2+i*.18}s, transform .6s ${.2+i*.18}s`},children:[/*#__PURE__*/_jsx(\"div\",{style:{width:44,height:44,borderRadius:44,background:\"#0A0B12\",color:\"#FFF8F1\",display:\"grid\",placeItems:\"center\",fontSize:15,fontWeight:600,boxShadow:\"0 0 0 6px #EDECEB\"},children:String(i+1).padStart(2,\"0\")}),/*#__PURE__*/_jsx(\"span\",{style:{alignSelf:\"flex-start\",fontSize:12,letterSpacing:\"0.08em\",textTransform:\"uppercase\",padding:\"5px 10px\",borderRadius:20,background:bg,color:fg,border:\"1px solid #0A0B12\"},children:s.who}),/*#__PURE__*/_jsx(\"div\",{style:{fontSize:21,lineHeight:1.2,letterSpacing:\"-0.02em\",fontWeight:600},children:s.title}),/*#__PURE__*/_jsx(\"div\",{style:{fontSize:16,lineHeight:1.55,opacity:.75},children:s.text})]},i);}),/*#__PURE__*/_jsx(\"style\",{children:`@media (max-width:809.98px){.omgo-pc{grid-template-columns:1fr!important;row-gap:34px;padding-left:62px}.omgo-pc-line{left:21px!important;right:auto!important;top:0!important;bottom:0;width:2px!important;height:auto!important}.omgo-pc-line>div{width:100%!important;height:${seen?\"100%\":\"0%\"};transition:height 1.6s}.omgo-pc-s>div:first-child{position:absolute;left:-62px;top:0}}\n@media (prefers-reduced-motion:reduce){.omgo-pc *{transition:none!important}}`})]});}addPropertyControls(Parcours,{steps:{type:ControlType.Array,title:\"\\xc9tapes\",control:{type:ControlType.Object,controls:{title:{type:ControlType.String,title:\"Titre\"},text:{type:ControlType.String,title:\"Texte\",displayTextArea:true},who:{type:ControlType.String,title:\"Qui (Toi / Guillome / Ensemble)\"}}}},font:{type:ControlType.Font,title:\"Police\",controls:\"basic\"}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"Parcours\",\"slots\":[],\"annotations\":{\"framerSupportedLayoutHeight\":\"auto\",\"framerSupportedLayoutWidth\":\"any\",\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./Parcours.map"],"mappings":"A,+LAIG,SAAwBgB,EAASC,EAAM,CAAC,IAAMC,EAAMD,EAAM,OAAO,CAAC,EAAQE,EAAInB,EAAO,IAAI,EAAO,CAACoB,EAAKC,GAASpB,EAAS,EAAK,EAAEC,MAAc,CAAC,IAAMoB,EAAGH,EAAI,QAAQ,GAAG,CAACG,GAAI,OAAO,qBAAuB,IAAY,CAACD,EAAQ,EAAI,EAAE,MAAO,CAAC,IAAME,EAAG,IAAI,qBAAqB,GAAG,CAAI,EAAE,EAAE,CAAC,iBAAgBF,EAAQ,EAAI,EAAEE,EAAG,WAAW,EAAG,EAAE,CAAC,UAAU,EAAE,CAAC,EAAiB,OAAfA,EAAG,QAAQD,CAAE,MAAYC,EAAG,WAAW,CAAE,EAAE,CAAC,CAAC,EAAE,IAAMC,EAAGP,EAAM,MAAM,YAAY,uCAA6CQ,EAAIC,GAAG,CAAC,IAAMC,GAAGD,GAAG,GAAA,CAAI,YAAY,EAAE,OAAOC,EAAE,WAAW,KAAK,EAAE,CAAC,UAAU,SAAS,EAAEA,EAAE,WAAW,KAAK,EAAE,CAAC,UAAU,SAAS,EAAE,CAAC,UAAU,SAAS,CAAE,EAAE,MAAoBxB,gBAAM,MAAM,CAAKgB,MAAI,UAAU,UAAU,MAAM,CAAC,MAAM,OAAO,WAAWK,EAAG,MAAM,UAAU,QAAQ,OAAO,oBAAoB,UAAU,KAAK,IAAI,EAAEN,EAAM,MAAM,EAAE,kBAAkB,UAAU,GAAG,SAAS,UAAU,EAAE,SAAS,CAAcd,gBAAK,MAAM,CAAC,cAAc,GAAK,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