Abundance of regular orbits and out-of-equilibrium phase transitions in the thermodynamic limit for long-range systems