// Klyvio — Onboarding (dark theme Klyvio) // v4 : ajout du champ email (requis pour l'accès client au rapport) function Onboarding({ onContinue, onBack, company, setCompany }) { const [step, setStep] = useState(0); const update = (patch) => setCompany({ ...company, ...patch }); const emailValid = company.email && /^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(company.email); const canNext = step === 0 ? company.name && company.name.length > 1 && company.person && company.person.length > 1 && emailValid : step === 1 ? !!company.role : true; const totalSteps = 2; const roles = [ { id: "ceo", label: "Dirigeant·e / fondateur·rice" }, { id: "cfo", label: "Direction financière / administrative" }, { id: "coo", label: "Direction opérationnelle" }, { id: "cto", label: "Responsable IT / numérique" }, { id: "rh", label: "Direction RH" }, { id: "other", label: "Autre rôle" }, ]; return (
Trois informations rapides — le reste est dans l'audit. Comptez environ 35 minutes au total.
Cela nous permet d'adapter le ton et le niveau de détail des recommandations.