Statistical mechanics of quantum-classical systems