Earlier quoted context omitted.
My French contract had 2 months notice and a non compete option for the employer, where they had the option to pay me 75% of the salary for 2 years to enforce the non compete. That kind of non competes I don’t mind.
I would mind it a lot, because when I leave a company I'll be making more than I do now, not 75% of what I do now.
I just had a quick look (I never had one), non-competes without compensation are illegal in France.