The Verdict: Not eligible
Naturalisation is closed while you are in France without a valid residence status. The first step is to regularise your stay, with specialist advice.
Article 21-27 of the Civil Code makes an application inadmissible while the applicant's stay is irregular. Current guidance to prefectures goes further: any past irregular stay should normally lead to refusal.
There are limited routes for people already in France, depending on family ties, length of presence and work. Once you hold a valid permit, the years from then on count, but expect the earlier period to be weighed against you.