(Reuters) - As the far right and leftist parties gain momentum ahead of France's surprise parliamentary election, pressuring President Emmanuel Macron's centrist administration, investors are starting to contemplate the risk of a budget crisis at the heart of the euro area.

Marine Le Pen's far-right National Rally party (RN) is leading in opinion polls ahead of the ballot called by Macron for June 30 and July 7, albeit unlikely to win an absolute majority.

Although it has not yet announced its detailed programme, the RN has previously favoured lowering the retirement age, tax cuts and boosting spending.

That has exacerbated concerns about fiscal sustainability in the euro zone's second largest economy just weeks after France's high deficit led to a credit rating cut.

A newly formed leftist alliance meanwhile said on Friday it wanted to lower the retirement age and tie salaries to inflation, adding to expectations for higher spending under a new government. An opinion poll on Wednesday showed the leftist parties coming second behind the RN.

Investor reaction was blunt: the risk premium they demand to hold French government bonds over euro zone benchmark Germany rose to the highest since 2017 on Friday at almost 82 basis points, its biggest weekly jump since 2011's euro zone debt crisis.

"Today the focus has shifted back to the scope for some kind of near term crisis," said Gordon Shannon, portfolio manager at TwentyFour Asset Management.

"You're pricing the risk that you have an event similar to the UK's mini budget," he said, referring to then UK Prime Minister Liz Truss' mini-budget of unfunded tax cuts in 2022 that pummeled gilts and forced the Bank of England to step in to stabilise markets.

Finance Minister Bruno Le Maire, urging voters to back Macron's centrist candidates, warned on Friday of the risk of a financial crisis if either the far right or the left wins the election.

The cost of insuring France's debt against default jumped on Friday to its highest level since May 2020, while the spillover of rising borrowing costs has knocked banks.

Shares in the country's biggest three - BNP Paribas, Credit Agricole and Societe Generale - have lost between 12-16% this week, the most since March 2023's banking crisis. All were down at least 4% on Friday.

Demonstrating how market ructions are already hitting funding plans, a French state-backed agency cancelled a bond sale and France's treasury plans to raise a smaller amount than usual at a bond auction next week.

EURO ZONE RECKONING?

Bond investors are often dubbed vigilantes by analysts for demanding higher returns from governments they perceive as fiscally reckless.

    "We've already had a stress test in the UK with the mini budget and we had a bit last summer in the U.S. when Treasury yields rose sharply after the Treasury refunding announcement," said Guillermo Felices, global investment strategist at PGIM Fixed Income.

    "We haven't had this yet in the euro zone."

The Institut Montaigne think tank has looked at the RN's programme for the 2022 parliamentary election, saying it would cost more than 100 billion euros -- suggesting a 3.5 percentage-point increase in France's budget deficit -- if fully enacted. That's much higher than estimates for Truss's tax cuts.

RN President Jordan Bardella said on Friday that the party would detail its platform in the coming days and how it would be financed. It has so far been vague about where it stands on fiscal responsibility other than blaming the outgoing government for straining the public finances.

"In an extreme case, the risks could include a Liz-Truss-style blowout in yield spreads," Holger Schmieding, chief economist at private bank Berenberg, said earlier this week.

Britain's 10-year yield jumped over 100 bps in less than a week during its budget crisis, while France's is just up 6 bps this week.

There were some early signs that concern over France might spread in the euro zone.

Italy's closely-watched risk premium over Germany rose to the highest since February at 159 bps on Friday.

Italy last year posted the highest budget deficit-to-GDP ratio in the European Union, at 7.4% of output. Together with France it is expected to face a European Union excessive deficit procedure requiring it to reduce its structural deficit.

The euro hit a 1-1/2-month low against the dollar on Friday and euro zone bank stocks are down almost 10% this week.

The bloc's financial architecture is seen as much stronger than its debt crisis over a decade ago, with the European Central Bank repeatedly showing it will step in with new tools to stabilise markets at times of crisis.

However Swiss Re's head of macro strategy Patrick Saner noted that the ECB's backstop tool to buy government bonds if warranted requires compliance with EU fiscal rules for eligibility.

"That can create some doubts around ECB support," he said.

Others said it had yet to be seen how a potential government in France that included the RN would act in office. Italy's debt outperformed last year, helped by far right Prime Minister Giorgia Meloni moderating her tone in office.

Iain Stealey, international chief investment officer for fixed income at JPMorgan Asset Management, said the RN's spending plans would be curbed by the EU's deficit rules.

"The market will also be a key force in keeping National Rally in check, with the party likely to take a more prudent fiscal stance ahead of the 2027 presidential election," he added.

(Reporting by Yoruk Bahceli in Amsterdam and Dhara Ranasinghe in London; Additional reporting by Leigh Thomas in Paris and David Milliken in London; Editing by Frances Kerry)

By Yoruk Bahceli and Dhara Ranasinghe