{"version":3,"file":"PourToiStack.C3fmZ1Es.mjs","names":["useState"],"sources":["https:/framerusercontent.com/modules/nEVgTCQUOnRAaLX98yym/R0KqIgTc1Wyk9BHDAyer/PourToiStack.js"],"sourcesContent":["import{jsx as _jsx,jsxs as _jsxs}from\"react/jsx-runtime\";import{addPropertyControls,ControlType}from\"framer\";import{useState}from\"react\";const SYNE=\"Syne, system-ui, sans-serif\";const DM=\"'DM Sans', system-ui, sans-serif\";const IMG=\"https://framerusercontent.com/images/\";const CARDS=[{title:\"Familles\",desc:\"Les jeunes savent pas trop quoi faire ? On les fait tripper sur l’eau avec nous. Cours adapt\\xe9s d\\xe8s l’\\xe2ge de 7 ans, nos instructeurs sont super passionn\\xe9s et patients.\",img:IMG+\"puY1g17Ii8b3ilGJms3k6Bb0w.webp\"},{title:\"D\\xe9butants\",desc:\"Jamais fait \\xe7a de ta vie ? Cette ann\\xe9e aux \\xceles de la Madeleine, c’est le meilleur moment et le meilleur endroit pour commencer. Nos instructeurs vont te donner la piq\\xfbre. Du fun en partant !\",img:IMG+\"vTx1mRLg4lmU832HiR0XyoPMpkA.webp\"},{title:\"Vacanciers\",desc:\"T’es aux \\xceles pour un court s\\xe9jour et tu ne sais pas trop quoi faire comme activit\\xe9 ? Tu cherches quelque chose \\xe0 faire de diff\\xe9rent ? Les sports de vent comme la planche \\xe0 voile et le wing foil sont accessibles et trippants d\\xe8s le d\\xe9but.\",img:IMG+\"et5k8uAOL8fmcm5IhbJAhqiT00.webp\"},{title:\"Riders\",desc:\"T’as d\\xe9j\\xe0 de l’exp\\xe9rience et tu sais rider ? On offre la location d’\\xe9quipement de planche \\xe0 voile et de wing foil. T’as envie de progresser ? On offre du coaching personnalis\\xe9 et des cours avanc\\xe9s pour d\\xe9bloquer des nouveaux skills.\",img:IMG+\"IhWI12ncMJnxqe6uGSlnu6erEm0.webp\"}];// fan transforms per stack offset (0 = active, in front)\nconst FAN=[{r:-2,x:0,y:0,z:40},{r:5,x:16,y:10,z:30},{r:-6,x:-12,y:16,z:20},{r:9,x:20,y:-8,z:10}];/**\n * Pour Toi — stacked fanned photos, click + auto-cycle on scroll\n *\n * @framerIntrinsicWidth 1100\n * @framerIntrinsicHeight 460\n *\n * @framerSupportedLayoutWidth any-prefer-fixed\n * @framerSupportedLayoutHeight auto\n */export default function PourToiStack(props){const{cards=CARDS,panelColor=\"#62D9D8\",textColor=\"#F0F0EE\",accent=\"#DD70A1\",ctaColor=\"#DD70A1\",ctaTextColor=\"#0A0A0A\",ctaLabel=\"R\\xe9serve ta place\",ctaHref=\"/reserver\",autoSeconds=4,titleSize=48,bodySize=19,bodyMaxCh=42,tabsGap=24,panelGap=44}=props;void autoSeconds;const list=cards&&cards.length?cards:CARDS;const n=list.length;const[active,setActive]=useState(0);function pick(i){setActive(i);}const cur=list[active];const srcOf=img=>typeof img===\"string\"?img:img&&img.src||\"\";const srcSetOf=img=>img&&typeof img===\"object\"&&img.srcSet||undefined;const wrap={...props.style,position:\"relative\",width:props.style?.width===\"100%\"?\"100%\":props.style?.width,display:\"flex\",flexDirection:\"column\",gap:tabsGap,fontFamily:DM};const tabBase={fontFamily:DM,fontWeight:700,fontSize:14,letterSpacing:\"0.04em\",textTransform:\"uppercase\",padding:\"9px 20px\",borderRadius:999,cursor:\"pointer\",border:\"2px solid #0A0A0A\",background:\"transparent\",color:\"#0A0A0A\",transition:\"background .2s, color .2s, transform .2s\"};return /*#__PURE__*/_jsxs(\"section\",{style:{...wrap,containerType:\"inline-size\"},children:[/*#__PURE__*/_jsx(\"style\",{children:`\n/* m\\xeame hover que les boutons canvas du site : lift -2/-2, scale 1.1, ombre dure nuit */\n.wai-pt-cta { transition: transform .35s cubic-bezier(.34,1.56,.64,1), box-shadow .35s cubic-bezier(.34,1.56,.64,1); }\n.wai-pt-cta:hover { transform: translate(-2px, -2px) scale(1.1); box-shadow: 3px 3px 0 0 #0A0A0A; }\n@container (max-width: 700px) {\n  /* max 2 pills par ligne, centr\\xe9es */\n  .wai-pt-tabs { display: grid !important; grid-template-columns: auto auto; justify-content: center; }\n  /* gap !important : le composant pose gap en style inline (panelGap), sinon no-op */\n  .wai-pt-panel { flex-direction: column-reverse; flex-wrap: nowrap; gap: 8px !important; margin-top: 24px; }\n  .wai-pt-photos, .wai-pt-text { flex: none; }\n  .wai-pt-text { width: 100%; align-self: flex-start; text-align: left; }\n  .wai-pt-photos { width: 92%; align-self: center; }\n}\n`}),/*#__PURE__*/_jsx(\"div\",{className:\"wai-pt-tabs\",style:{display:\"flex\",gap:10,flexWrap:\"wrap\"},children:list.map((c,i)=>/*#__PURE__*/_jsx(\"button\",{onClick:()=>pick(i),style:{...tabBase,...i===active?{background:accent,borderColor:accent,color:\"#F4F4F2\"}:{}},children:c.title},i))}),/*#__PURE__*/_jsxs(\"div\",{className:\"wai-pt-panel\",style:{display:\"flex\",gap:panelGap,alignItems:\"center\",flexWrap:\"wrap\",background:panelColor,borderRadius:28,padding:\"clamp(24px, 3vw, 44px)\"},children:[/*#__PURE__*/_jsx(\"div\",{className:\"wai-pt-photos\",style:{position:\"relative\",flex:\"1 1 300px\",minWidth:260,maxWidth:480,aspectRatio:\"1.2\"},children:list.map((c,i)=>{const off=(i-active+n)%n;const f=FAN[Math.min(off,FAN.length-1)];return /*#__PURE__*/_jsx(\"div\",{\"aria-hidden\":off!==0,style:{position:\"absolute\",inset:0,borderRadius:28,border:\"2px solid #0A0A0A\",overflow:\"hidden\",boxShadow:\"0 18px 40px rgba(10,10,10,0.28)\",transform:`translate(${f.x}px, ${f.y}px) rotate(${f.r}deg)`,zIndex:f.z,transition:\"transform .55s cubic-bezier(.34,1.4,.5,1)\"},children:/*#__PURE__*/_jsx(\"img\",{src:srcOf(c.img),srcSet:srcSetOf(c.img),alt:\"\",style:{width:\"100%\",height:\"100%\",objectFit:\"cover\",display:\"block\"}})},i);})}),/*#__PURE__*/_jsxs(\"div\",{className:\"wai-pt-text\",style:{flex:\"1 1 320px\",minWidth:280,display:\"flex\",flexDirection:\"column\",gap:26},children:[/*#__PURE__*/_jsx(\"h3\",{style:{margin:0,fontFamily:SYNE,fontWeight:800,fontSize:titleSize,lineHeight:.86,textTransform:\"uppercase\",color:textColor},children:cur.title}),/*#__PURE__*/_jsx(\"p\",{style:{margin:0,fontFamily:DM,fontWeight:400,fontSize:bodySize,lineHeight:1.32,color:textColor,maxWidth:`${bodyMaxCh}ch`},children:cur.desc}),/*#__PURE__*/_jsx(\"a\",{href:ctaHref||\"/reserver\",className:\"wai-pt-cta\",style:{alignSelf:\"flex-start\",textDecoration:\"none\",fontFamily:SYNE,fontWeight:700,fontSize:15,letterSpacing:\"0.02em\",textTransform:\"uppercase\",background:ctaColor,color:ctaTextColor,padding:\"12px 24px\",borderRadius:12},children:ctaLabel})]})]})]});}addPropertyControls(PourToiStack,{cards:{type:ControlType.Array,title:\"Cartes\",control:{type:ControlType.Object,controls:{title:{type:ControlType.String,defaultValue:\"Titre\"},desc:{type:ControlType.String,displayTextArea:true,defaultValue:\"\"},img:{type:ControlType.ResponsiveImage}}},defaultValue:CARDS},panelColor:{type:ControlType.Color,title:\"Fond panneau\",defaultValue:\"#62D9D8\"},textColor:{type:ControlType.Color,title:\"Texte\",defaultValue:\"#F0F0EE\"},accent:{type:ControlType.Color,title:\"Onglet actif\",defaultValue:\"#DD70A1\"},ctaColor:{type:ControlType.Color,title:\"Bouton\",defaultValue:\"#DD70A1\"},ctaTextColor:{type:ControlType.Color,title:\"Texte bouton\",defaultValue:\"#0A0A0A\"},ctaLabel:{type:ControlType.String,title:\"Label bouton\",defaultValue:\"R\\xe9serve ta place\"},ctaHref:{type:ControlType.String,title:\"URL bouton\",defaultValue:\"/reserver\"},titleSize:{type:ControlType.Number,title:\"Taille titre\",defaultValue:48,min:24,max:96,unit:\"px\"},bodySize:{type:ControlType.Number,title:\"Taille body\",defaultValue:19,min:12,max:28,unit:\"px\"},bodyMaxCh:{type:ControlType.Number,title:\"Largeur body\",defaultValue:42,min:20,max:70,unit:\"ch\"},tabsGap:{type:ControlType.Number,title:\"Gap onglets↔image\",defaultValue:24,min:0,max:120,unit:\"px\"},panelGap:{type:ControlType.Number,title:\"Gap image↔texte\",defaultValue:44,min:0,max:160,unit:\"px\"}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"PourToiStack\",\"slots\":[],\"annotations\":{\"framerSupportedLayoutWidth\":\"any-prefer-fixed\",\"framerIntrinsicHeight\":\"460\",\"framerSupportedLayoutHeight\":\"auto\",\"framerIntrinsicWidth\":\"1100\",\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./PourToiStack.map"],"mappings":"iLASG,SAAwB,EAAa,EAAM,CAAC,GAAK,CAAC,QAAM,EAAM,aAAW,UAAU,YAAU,UAAU,SAAO,UAAU,WAAS,UAAU,eAAa,UAAU,WAAS,mBAAsB,UAAQ,YAAY,cAAY,EAAE,YAAU,GAAG,WAAS,GAAG,YAAU,GAAG,UAAQ,GAAG,WAAS,IAAI,EAA6B,EAAK,GAAO,EAAM,OAAO,EAAM,EAAY,EAAE,EAAK,OAAY,CAAC,EAAO,GAAWA,EAAS,CAAC,EAAE,SAAS,EAAK,EAAE,CAAC,EAAU,CAAC,CAAE,CAAC,IAAM,EAAI,EAAK,GAAc,EAAM,GAAK,OAAO,GAAM,SAAS,EAAI,GAAK,EAAI,KAAK,GAAS,EAAS,GAAK,GAAK,OAAO,GAAM,UAAU,EAAI,QAAQ,IAAA,GAAgB,EAAK,CAAC,GAAG,EAAM,MAAM,SAAS,WAAW,MAAM,EAAM,OAAO,QAAQ,OAAO,OAAO,EAAM,OAAO,MAAM,QAAQ,OAAO,cAAc,SAAS,IAAI,EAAQ,WAAW,CAAE,EAAQ,EAAQ,CAAC,WAAW,EAAG,WAAW,IAAI,SAAS,GAAG,cAAc,SAAS,cAAc,YAAY,QAAQ,WAAW,aAAa,IAAI,OAAO,UAAU,OAAO,oBAAoB,WAAW,cAAc,MAAM,UAAU,WAAW,0CA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