// MLS Conseil — landing page main app const { useState: useStateA, useEffect: useEffectA } = React; const TWEAK_DEFAULTS = /*EDITMODE-BEGIN*/{ "accent": "#C9A961", "primaryHero": "v1", "showVariants": false, "density": "comfortable" }/*EDITMODE-END*/; // Cal.com — username vit sur cal.eu mais l'API embed reste app.cal.com. // Le widget va chercher les dispos en live à chaque ouverture : aucun créneau // figé côté code, la date du jour est toujours celle du visiteur. const CAL_LINK = "mohamed-loones-aqzxwy/30-min-premier-rdv"; function App() { const [tweaks, setTweak] = useTweaks(TWEAK_DEFAULTS); const accent = tweaks.accent; const openBooking = () => { if (typeof window.Cal === "function") { window.Cal.ns.mls("modal", { calLink: CAL_LINK, config: { layout: "month_view" } }); } else { // Fallback : si le script Cal n'a pas chargé, on ouvre la page directement. window.open(`https://cal.com/${CAL_LINK}`, "_blank", "noopener,noreferrer"); } }; // Pick the primary hero (the first one shown / canonical) const primary = tweaks.primaryHero; return (