German energy politics is an entirely different matter. And actually the main complaint about it is: the switch to renewables wasn't done quickly enough. Nuclear always was the smaller part of energy production in Germany, so even if no power plant had been shut down, the question would still stand: where would 80% of the energy come from. Relying on fossil fuels for that is definitely wrong, even more so, if you tie yourself to one very problematic supplier.
And please look into all the huge problems France currently faces about their energy production before cheering for them! The good side is, the largest part of the energy mix is nuclear, so it is low in carbon production. That is the good news. The bad news is, that the energy crisis in central Europe was basically started by several nuclear power plants in France being taken off the grid at the same time as the need for emergency repairs appeared. Electricity in France currently is quite expensive, often more so than in Germany. Long term France has the problem that the nuclear fleet is aging. A lot of reactors are only operating because their life span has been extended. Currently there are no realistic concepts of replacing them, so France needs to hurry to expand their renewables considerably, which so far they haven't been doing.