// 3 hero variants for MLS Conseil
const { useState: useStateH, useEffect: useEffectH, useRef: useRefH } = React;
// ---- Shared mock dashboard pieces --------------------------------------
function TresorerieChart({ accent = '#C9A961', height = 180, width = 360 }) {
// Sample treasury values (€k) over months
const values = [12, 15, 13, 18, 16, 22, 20, 26, 24, 30, 28, 34];
const months = ['J', 'F', 'M', 'A', 'M', 'J', 'J', 'A', 'S', 'O', 'N', 'D'];
const { d, pts } = buildPath(values, width, height, 16, 18);
// area
const last = pts[pts.length - 1],first = pts[0];
const areaD = `${d} L ${last[0]} ${height - 8} L ${first[0]} ${height - 8} Z`;
return (
);
}
function DashboardCard({ accent = '#C9A961', float = true }) {
return (
{/* header */}
Plan de trésorerie · 2026
Solde projeté + 84 600 €
{['12M', '6M', '3M'].map((t, i) =>
{t}
)}
{/* legend rows */}
Encaissements
+ 142 300 €
);
}
function EcheanceCard({ accent = '#C9A961' }) {
const items = [
{ label: 'TVA · 3ᵉ trimestre', date: '24 oct.', tag: 'À régler', warn: true, amount: '1 280 €' },
{ label: 'URSSAF · micro-BIC', date: '31 oct.', tag: 'Préparé', warn: false, amount: '612 €' },
{ label: 'Acompte IS', date: '15 déc.', tag: 'À planifier', warn: false, amount: '2 400 €' }];
return (
{items.map((it, i) =>
{it.warn ? '!' : '✓'}
{it.label}
{it.date} · {it.tag}
{it.amount}
)}
);
}
// ---- NAV ---------------------------------------------------------------
function Nav({ onCTA }) {
const [scrolled, setScrolled] = useStateH(false);
useEffectH(() => {
const onScroll = () => setScrolled(window.scrollY > 40);
window.addEventListener('scroll', onScroll);
return () => window.removeEventListener('scroll', onScroll);
}, []);
return (
Prendre RDV
);
}
// ============================================================
// VARIANT 1 — "Sereinement" (référence finance, dashboard flottant)
// ============================================================
function HeroV1({ accent = '#C9A961', onCTA }) {
return (
{/* Decorative numerals */}
2026
Conseils et accompagnement
Gérez{' '}
sereinement
votre entreprise.
Accompagnement administratif, plan de trésorerie, conformité.
MLS Conseil simplifie le quotidien des dirigeants, indépendants et TPE.
Prendre RDV gratuit
Être rappelé sous 24h
{/* trust strip */}
20+
dirigeants accompagnés
2 ans
d'expérience cabinet
{/* Right: floating dashboard stack */}
{/* badge */}
Conformité 2026
Facturation électronique anticipée
);
}
// ============================================================
// VARIANT 2 — "Contrôle" (centré éditorial, cartes sous le titre)
// ============================================================
function HeroV2({ accent = '#C9A961', onCTA }) {
return (
Spécialiste micro-entreprises & TPE
Reprenez le{' '}
contrôle
{' '}de votre gestion.
De l'organisation administrative à la trésorerie prévisionnelle, un cabinet de proximité qui vous parle clairement.
Prendre RDV gratuit
Être rappelé sous 24h
{/* Mini dashboard row */}
{[
{ kpi: '+ 84 600 €', label: 'Solde de trésorerie projeté · 12 mois', tag: 'TRÉSORERIE', tone: accent, chart: true },
{ kpi: '24 oct.', label: 'Prochaine échéance TVA suivie', tag: 'CONFORMITÉ', tone: '#14223D', chart: false },
{ kpi: '8 / 12', label: 'Documents administratifs structurés', tag: 'ADMINISTRATIF', tone: '#2F6B4F', chart: 'progress' }].
map((c, i) =>
{c.tag}
{c.kpi}
{c.label}
{c.chart === true &&
}
{c.chart === 'progress' &&
}
{c.chart === false &&
{[0, 1, 2, 3, 4, 5, 6].map((d) =>
)}
}
)}
);
}
// ============================================================
// VARIANT 3 — "Clarté" (asymétrique, photo placeholder + stat overlay)
// ============================================================
function HeroV3({ accent = '#C9A961', onCTA }) {
return (
{/* Soft glow */}
}>Pour dirigeants & indépendants
Pilotez avec{' '}
clarté.
Agissez avec confiance.
Un binôme de gestion qui maîtrise l'administratif, anticipe la trésorerie et sécurise votre conformité
Prendre RDV gratuit
Être rappelé sous 24h
{/* meta row */}
{['Sans engagement', 'Premier RDV offert'].map((t) =>
)}
{/* Right: portrait placeholder + floating stat card */}
{/* Abstract figure placeholder */}
{/* Stat overlay — small dashboard */}
TRÉSORERIE · CA TRIMESTRE
+ 24 380 €
↑ vs T-1
{/* Top-right pill quote */}
{[0, 1, 2, 3, 4].map((i) =>
)}
« Enfin une vraie visibilité sur la trésorerie. »
Camille L. · Architecte indépendante
);
}
Object.assign(window, { HeroV1, HeroV2, HeroV3, Nav, DashboardCard, EcheanceCard, TresorerieChart });