The exact-factorization formalism has been employed in other contexts, even though perhaps not with the same large variety of applications as the electron-nuclear case. Examples are the studies done on purely electronic systems and on photon-electronic or photon-electron-nuclear systems . In the present work, we focus on this last problem, namely the quantum dynamics of the photon-electron-nuclear wavefunction governed by a time-dependent Schrödinger equation.