French voters headed to the polls Sunday for the first round of a closely contested presidential election that has turned into a referendum on the future of France’s generous entitlement system and on the nation’s place in the European Union, amid heightened security days after a terror attack in the capital.