Failover route out of PCC check

I’m using succesfully a 2 wan PCC outgoing connection
I have some rules, before PCC ones, to force traffic toward specific addresses or ports to use WAN1

Now, for failover purpose, I need these last connections to use WAN2 IF WAN1 is not available.
All this, however, has to be kept out of PCC mechanism.

How can I accomplish this ???

Would simply distance in main routing table be enough ??

And , what if WAN1 has globally higher priority than WAN2 but WAN1 has to be used as second choice when WAN2 fails for specific applications ??

Thank you