Nuclear deterrence doesn't mean that France would retaliate with nuclear weapons to a conventional attack, but that French nuclear weapons make it unlikely, not worth it, for Russia to use its own weapons first.
That law doesn’t prevent ~200 Russian cities from being evaporated by the French nuclear arsenal, and neither world it prevent France from responding to a nuclear attack with said arsenal.