According to the IEA [1], 43% of the energy consumption is oil (transportation, heating), 18% is natural gas (mostly heating), and 25% is electricity. Switching to resistive heating would require doubling the electricity production. Using heat pumps is much more efficient.
[1] https://www.iea.org/countries/france/energy-mix