There is no access to free healthcare and the social system in France unless one is a French resident and contributes to the social system through paying the relevant payments.
Only non -French persons over 65 (and their spouse regardless of age) now get free health care if they retire to France.