General approach to quantum-classical hybrid systems and geometric forces