In France, a nail-biting election as Macron’s rival surges