{"version":3,"file":"LiquidButton.BlOUxknu.mjs","names":["useState","_Fragment"],"sources":["https:/framerusercontent.com/modules/O9Cgpj8jz4C3wCQMg1Vd/oKbx4xk8L4KAvYDl7feu/Grain.js","https:/framerusercontent.com/modules/nrE9FgywSKqGrJZqNGOR/kiu1hxVGxY656sIl6G6K/LiquidButton.js"],"sourcesContent":["import{jsx as _jsx}from\"react/jsx-runtime\";import{addPropertyControls,ControlType}from\"framer\";/**\n * Grain — couche de texture argentique.\n * Pur SVG (feTurbulence), aucun fichier externe, aucun réseau.\n *\n * @framerIntrinsicWidth 400\n * @framerIntrinsicHeight 400\n *\n * @framerSupportedLayoutWidth any-prefer-fixed\n * @framerSupportedLayoutHeight any-prefer-fixed\n */export default function Grain(props){const{opacity=.16,scale=.8,blend=\"overlay\"}=props;const svg=`<svg xmlns='http://www.w3.org/2000/svg' width='300' height='300'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='${scale}' numOctaves='4' stitchTiles='stitch'/><feColorMatrix type='saturate' values='0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>`;return /*#__PURE__*/_jsx(\"div\",{\"aria-hidden\":\"true\",style:{...props.style,position:\"relative\",pointerEvents:\"none\",backgroundImage:`url(\"data:image/svg+xml,${encodeURIComponent(svg).replace(/%2523/g,\"%23\")}\")`,backgroundRepeat:\"repeat\",backgroundSize:\"300px 300px\",opacity,mixBlendMode:blend}});}addPropertyControls(Grain,{opacity:{type:ControlType.Number,title:\"Intensit\\xe9\",defaultValue:.16,min:0,max:.6,step:.01},scale:{type:ControlType.Number,title:\"Finesse\",defaultValue:.8,min:.2,max:1.6,step:.05},blend:{type:ControlType.Enum,title:\"Fusion\",defaultValue:\"overlay\",options:[\"overlay\",\"soft-light\",\"screen\",\"normal\"],optionTitles:[\"Overlay\",\"Soft light\",\"Screen\",\"Normal\"]}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"Grain\",\"slots\":[],\"annotations\":{\"framerIntrinsicWidth\":\"400\",\"framerIntrinsicHeight\":\"400\",\"framerSupportedLayoutHeight\":\"any-prefer-fixed\",\"framerSupportedLayoutWidth\":\"any-prefer-fixed\",\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./Grain.map","import{jsx as _jsx,jsxs as _jsxs,Fragment as _Fragment}from\"react/jsx-runtime\";import{useState}from\"react\";import{addPropertyControls,ControlType}from\"framer\";/**\n * LiquidButton — bouton \"liquid metal\" (reflet balayant + halo au survol),\n * adapté du langage Vesper aux couleurs PRÉSENCE.\n *\n * @framerIntrinsicWidth 190\n * @framerIntrinsicHeight 48\n *\n * @framerSupportedLayoutWidth auto\n * @framerSupportedLayoutHeight auto\n *//* L'anneau de focus ne peut pas s'exprimer en style inline : il passe par une\n   classe pour que seuls les utilisateurs au clavier le voient. */const FOCUS_CLASS=\"presence-liquid-button\";const FOCUS_CSS=`.${FOCUS_CLASS}:focus-visible{outline:2px solid #F2620F;outline-offset:3px;border-radius:999px;}`;export default function LiquidButton(props){const{label=\"BOUTON\",link=\"#\",variant=\"solid\"}=props;const[hovered,setHovered]=useState(false);const solid=variant===\"solid\";const base={position:\"relative\",overflow:\"hidden\",display:\"inline-flex\",alignItems:\"center\",justifyContent:\"center\",height:48,padding:\"0 28px\",borderRadius:999,fontFamily:\"Inter, sans-serif\",fontWeight:700,fontSize:13,letterSpacing:\"0.08em\",lineHeight:1,whiteSpace:\"nowrap\",cursor:\"pointer\",textDecoration:\"none\",transition:\"background 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease, color 0.35s ease\"};const solidStyle={background:hovered?\"linear-gradient(180deg, #FFFDFA 0%, #FBF3E8 42%, #EFDCC4 100%)\":\"linear-gradient(180deg, #FFFDFA 0%, #F4F0EE 48%, #E3DDD2 100%)\",color:\"#11110F\",border:\"1px solid #FFFDFA\",boxShadow:hovered?\"inset 0 1px 0 #FFFFFF, 0 0 26px rgba(239,179,143,0.45), 0 8px 18px rgba(255,253,250,0.14)\":\"inset 0 1px 0 rgba(255,255,255,0.95)\"};const ghostStyle={background:hovered?\"linear-gradient(135deg, rgba(239,179,143,0.18), rgba(0,0,0,0.35) 48%, rgba(216,74,0,0.16))\":\"linear-gradient(135deg, rgba(255,255,255,0.10), rgba(0,0,0,0.45) 50%, rgba(216,74,0,0.08))\",color:\"#F4F0E8\",border:hovered?\"1px solid rgba(239,220,196,0.8)\":\"1px solid rgba(198,192,180,0.45)\",boxShadow:hovered?\"inset 0 1px 0 rgba(255,255,255,0.22), 0 0 24px rgba(216,74,0,0.28)\":\"inset 0 1px 0 rgba(255,255,255,0.12)\"};const shine={position:\"absolute\",inset:0,pointerEvents:\"none\",background:\"linear-gradient(115deg, transparent 20%, rgba(255,255,255,0.45) 48%, transparent 76%)\",transform:hovered?\"translateX(130%)\":\"translateX(-130%)\",transition:hovered?\"transform 0.65s ease\":\"none\"};return /*#__PURE__*/_jsxs(_Fragment,{children:[/*#__PURE__*/_jsx(\"style\",{children:FOCUS_CSS}),/*#__PURE__*/_jsxs(\"a\",{href:link,className:FOCUS_CLASS,style:{...base,...solid?solidStyle:ghostStyle,...props.style},/* Au doigt, un survol React restait allumé après le relâchement :\n                   on ignore donc les pointeurs tactiles. */onPointerEnter:e=>{if(e.pointerType!==\"touch\")setHovered(true);},onPointerLeave:()=>setHovered(false),onPointerCancel:()=>setHovered(false),onBlur:()=>setHovered(false),children:[/*#__PURE__*/_jsx(\"span\",{style:shine,\"aria-hidden\":\"true\"}),label]})]});}addPropertyControls(LiquidButton,{label:{type:ControlType.String,title:\"Texte\",defaultValue:\"BOUTON\"},link:{type:ControlType.Link,title:\"Lien\"},variant:{type:ControlType.Enum,title:\"Style\",defaultValue:\"solid\",options:[\"solid\",\"ghost\"],optionTitles:[\"Plein (ivoire)\",\"Verre (sombre)\"],displaySegmentedControl:true}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"LiquidButton\",\"slots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