Hopf algebras up to homotopy