programmation 3 modes