Would have been much better as properly-formatted code, but I can see your issue, despite my limited French.
Your automation is not cycling between the scenes on double tap - it’s trying to apply all 3 at once.
You need to:
- Create an input select helper with each entry representing one of your scenes.
- Create another automation which triggers the respective scene based on what is currently selected in the input select.
- Change the button 2 press action in your automation above to call input_select.select_next on the helper - that way each double press will cycle to the next scene in the list.