The French president’s last roll of the electoral dice didn’t end well for him.