What just happened in France’s shock election?

Nobody expected the left to win, let alone for the far right to come in third place.