electricity is cool, but its not the only source of energy used in the country: fuel is also a source of energy and needs to be replaced. The amount of electricity consumed in France is about 470 Twh, and the amount of Joules used overall is equivalent to 1500 Twh, per year.
To be clear: you only need to replace the final energy from the fuel, not the primary energy. That’s a big deal, because it reduces the amount you need to replace sharply.
gasoline is 100 time more energy dense than electricity, thus even inefficiencies at 70% for IC engines, gasoline would still be more dense somehow. But there is alot of geopolotics and environement issues involved with fuel. The problem of energy density needs to be resolved for electricity so it would be more convenient to use, even at the industrial scale, which is a major carbon emitter.