Well France did move to electric everything (cooking, hot water, heating) in the past thanks to ample nuclear electricity production (and possibly not too harsh winters). Unfortunately they let their nuclear programme decay and are struggling now (EU grid integration does not help)...
I think a big part of the push to install heat pumps now is that it is understood that electricity production is in dire straights, taking into account that the transition to EV requires a lot of electricity.
Part of the struggle is that renewables have state aid exceptions, enabling massive taxpayer funded subsidisation of the """industry"""
> hot water, heating
Not really. Urban flats frequently got resistive heating (rather than heat pumps) but when France finally phased out furnace oil it phased in gas heating (again instead of heat pumps).
And EU grid integration was mostly a boon, at least to EDF, with the country able to export its large stable supply and arbitrage between its neighbours.
It largely missed its opportunity and should have ramped up electric use way more aggressively in the 90s. And built up research labs and industrial and practical knowledge in heat pumps and batteries tech.