The vote has taken place under heavy security
Paris (AFP) - Centrist Emmanuel Macron and far-right leader Marine Le Pen will contest the second round of the French presidential election, initial projections suggested Sunday, after a nailbiting vote seen as vital for the future of the EU.
Macron was projected to win between 23 and 24 percent in Sunday's first round, slightly ahead of National Front leader Le Pen with between 21.6 and 23 percent, according to estimates on public television.
The outcome capped an extraordinary few months for a deeply divided France, which saw a campaign full of twists and turns and a movement away from traditional parties.
The French vote was being closely watched as a bellwether for populist sentiment following the election of Donald Trump as US President and Britain's vote to leave the EU.
Le Pen and Macron were the pre-vote favourites to progress to the run-off on May 7 but late gains by conservative Francois Fillon and radical leftist Jean-Luc Melenchon had blown the race wide open.
The vote took place under heavy security after the killing on Thursday of a policeman on Paris's Champs Elysees avenue claimed by the Islamic State group.
With France still under the state of emergency imposed after the Paris attacks of November 2015, around 50,000 police and 7,000 soldiers were deployed to guard voters.
Thursday's shooting on the most famous street in Paris was the latest in a bloody series of terror attacks that have cost more than 230 lives since 2015.
Nearly 47 million people were eligible to vote in the eurozone's second biggest economy.
Voting was brisk on a bright spring day, defying forecasts of a low turnout after a campaign dominated by scandals and disillusionment with the mainstream parties of the left and right that have alternated in power for the past half century.
Riding the wave of disaffection with globalisation that carried Trump to the White House and led Britain to vote for Brexit, Le Pen vowed to abandon the euro, hold a referendum on withdrawing from the EU and adopt a French-first policy on jobs and housing.
Analysts had said a Le Pen victory could nonetheless be a devastating blow for the EU, already weakened by Britain's shock vote to leave.
Macron, a 39-year-old pro-EU reformer, is seeking to become France's youngest ever president despite never having held elected office.
Tapping into anger with established parties, the former banker and economy minister formed his own movement, "En Marche" (On the Move), that he says is "neither to the left nor to the right."
Le Pen cast her ballot in Henin-Beaumont, a former coal mining town in the party's northern heartland.
Macron voted in the chic northern seaside resort of Le Touquet with wife Brigitte, his former high school teacher who is 25 years his senior. Fillon and Melenchon both voted in Paris.
Many voters had spent weeks agonising over their choices, with many opting for the contender they considered likeliest to beat Le Pen in a run-off.
- 'Can't trust politicians' -
Guy Belkechout, a 79-year-old pensioner who was voting in the working-class Parisian suburb of Trappes, said security was one of his main concerns.
"Candidates who want fewer security measures, who want to reduce the police's powers, have not got my vote," he told AFP.
But Hajar Erhamani, a 39-year-old teaching assistant from the well-heeled Paris suburb of Sevres, said she was more worried about the economy and allegations about lawmakers lining their pockets with public money.
"You can't trust politicians these days. On the left and the right, they're stealing from us," she complained.
- Fake jobs scandal -
Closely watched around the world, the French campaign has been full of twists and turns.
A race that began with the low-key Fillon trumping ex-president Nicolas Sarkozy for the right-wing nomination shifted into higher gear when unpopular Socialist President Francois Hollande decided not to seek re-election.
Hollande's five years in office have been dogged by a sluggish economy and the constant terror threat.
With voters hungry for change Fillon had been seen as a shoo-in but in January he was knocked off course by allegations that he gave his British-born wife a fictitious job as his parliamentary assistant for which she was paid nearly 700,000 euros ($750,000).
The Socialist nominee Benoit Hamon also struggled, haemorrhaging support to the fiery Melenchon.
A total of 11 candidates took part in the election.