{"version":3,"file":"BackButton.CM0BV2yK.mjs","names":[],"sources":["https:/framerusercontent.com/modules/2Z8zteV9JashVlYSzAUC/ldcyzXgVpMRD6vhuVr0k/BackButton.js"],"sourcesContent":["// Bouton flèche pour retourner à la page précédente\nimport{jsx as _jsx,jsxs as _jsxs}from\"react/jsx-runtime\";import{addPropertyControls,ControlType}from\"framer\";/**\n * @framerSupportedLayoutWidth fixed\n * @framerSupportedLayoutHeight fixed\n */export default function BackButton(props){const{backgroundColor,iconColor,size,borderRadius,shadow,hoverEffect}=props;const handleClick=()=>{if(typeof window!==\"undefined\"){window.history.back();}};return /*#__PURE__*/_jsx(\"button\",{onClick:handleClick,style:{width:size,height:size,backgroundColor,border:\"none\",borderRadius,cursor:\"pointer\",display:\"flex\",alignItems:\"center\",justifyContent:\"center\",boxShadow:shadow?\"0 2px 8px rgba(0, 0, 0, 0.15)\":\"none\",transition:hoverEffect?\"all 0.2s ease\":\"none\",outline:\"none\",position:\"relative\"},onMouseEnter:e=>{if(hoverEffect){e.currentTarget.style.transform=\"scale(1.05)\";e.currentTarget.style.boxShadow=shadow?\"0 4px 12px rgba(0, 0, 0, 0.2)\":\"0 2px 8px rgba(0, 0, 0, 0.1)\";}},onMouseLeave:e=>{if(hoverEffect){e.currentTarget.style.transform=\"scale(1)\";e.currentTarget.style.boxShadow=shadow?\"0 2px 8px rgba(0, 0, 0, 0.15)\":\"none\";}},\"aria-label\":\"Retourner \\xe0 la page pr\\xe9c\\xe9dente\",children:/*#__PURE__*/_jsxs(\"svg\",{width:size*.5,height:size*.5,viewBox:\"0 0 24 24\",fill:\"none\",stroke:iconColor,strokeWidth:\"2\",strokeLinecap:\"round\",strokeLinejoin:\"round\",children:[/*#__PURE__*/_jsx(\"path\",{d:\"M19 12H5\"}),/*#__PURE__*/_jsx(\"path\",{d:\"M12 19l-7-7 7-7\"})]})});}addPropertyControls(BackButton,{backgroundColor:{type:ControlType.Color,title:\"Couleur de fond\",defaultValue:\"#FFFFFF\"},iconColor:{type:ControlType.Color,title:\"Couleur de l'ic\\xf4ne\",defaultValue:\"#000000\"},size:{type:ControlType.Number,title:\"Taille\",defaultValue:48,min:24,max:80,step:4,unit:\"px\"},borderRadius:{type:ControlType.Number,title:\"Rayon des coins\",defaultValue:8,min:0,max:24,step:1,unit:\"px\"},shadow:{type:ControlType.Boolean,title:\"Ombre\",defaultValue:true,enabledTitle:\"Activ\\xe9e\",disabledTitle:\"D\\xe9sactiv\\xe9e\"},hoverEffect:{type:ControlType.Boolean,title:\"Effet au survol\",defaultValue:true,enabledTitle:\"Activ\\xe9\",disabledTitle:\"D\\xe9sactiv\\xe9\"}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"BackButton\",\"slots\":[],\"annotations\":{\"framerSupportedLayoutHeight\":\"fixed\",\"framerSupportedLayoutWidth\":\"fixed\",\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./BackButton.map"],"mappings":"iLAIG,SAAwB,EAAW,EAAM,CAAC,GAAK,CAAC,kBAAgB,YAAU,OAAK,eAAa,SAAO,eAAa,EAAsF,OAAoB,EAAK,SAAS,CAAC,YAA7F,CAAW,IAAS,QAAa,EAAO,QAAQ,MAAM,EAA2D,MAAM,CAAC,MAAM,EAAK,OAAO,EAAK,kBAAgB,OAAO,OAAO,eAAa,OAAO,UAAU,QAAQ,OAAO,WAAW,SAAS,eAAe,SAAS,UAAU,EAAO,gCAAgC,OAAO,WAAW,EAAY,gBAAgB,OAAO,QAAQ,OAAO,SAAS,WAAW,CAAC,aAAa,GAAG,CAAI,IAAa,EAAE,cAAc,MAAM,UAAU,cAAc,EAAE,cAAc,MAAM,UAAU,EAAO,gCAAgC,iCAAkC,aAAa,GAAG,CAAI,IAAa,EAAE,cAAc,MAAM,UAAU,WAAW,EAAE,cAAc,MAAM,UAAU,EAAO,gCAAgC,SAAU,aAAa,iCAA0C,SAAsB,EAAM,MAAM,CAAC,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