I need Help creating links between TEAs and PS

I am finding it difficult to hide program stages based on the value selected from an attribute and a DE, so I am seeking a solution or guidance on which path I should follow to set the logic.

Below the image and description of my case:

  1. From the image, if a user selects reinforcement from the option set attribute, only A program stage should be displayed (B and C program stages must be hidden from the user)

  2. if a user selects Suivi from the option set attribute, only B program stage should be displayed (A and C program stages must be hidden from the user)

  3. if a user selects Appui from the option set attribute, only C program stage should be displayed (A and B program stages must be hidden from the user)

  4. if A_DE from A program stage is yes, open D program stage

  5. if B_DE from B program stage is yes, open E program stage

  6. if C_DE from B program stage is yes, open E program stage

I have tried to build the program rules but none of them works. What happens is that the user sees all (five) program stages no matter whether the kind of enrollment selected from the attribute is reinforcement or suivi or appui.

I will be very very grateful for your help, even possible app restructuring