You could incorporate an irish company since it has a corporate tax of 12,5% with a virtual office forwarding the mail to your residential address in France. Then, i would pay "impôt sur le revenu" on the dividends just like you would receive dividends from a French company. Then, you take out a Private national insurance for your health like the April one. That's it. The french Tax authorities will ask you to fill out the form number 2047, i think and since there is a tax treaty in place between Ireland and France it is totally legit.
I didn't calculate how much they would take. I do this with a UK company because UK legislation protects me more. I pay a flat 30% on internet income for 30,000 euros revenue. This would be less with an Irish company.