France needs to and is decarbonising. Electricity is perhaps the most important (because of electrification) but it's not the only sector. Plus France's electricity has always had the last 20% to deal with.
In Europe only Sweden and Norway have lower carbon emissions from electricity generation than France.