As France picks its next president on Sunday, National Front nominee Marine Le Pen, 48, enjoys significant support among an unlikely population: gay voters.

According to a survey released Wednesday by Hornet, a gay social network, 36.5 percent back Le Pen, while 63.5 percent favor former Socialist Party member and reputed centrist Emmanuel Macron, 39. Among Hornet’s younger subscribers, 43.5 percent of 18-to-29-year-olds want Le Pen — and fully 49 percent of those age 25.

While Le Pen surely would appreciate even higher numbers, pundits are surprised that the so-called far-Right candidate does this well with typically Left-leaning voters. Why? Le Pen’s previously hostile party now welcomes gays, and militant-Islamic attacks inside and outside of France have ushered gays into Le Pen’s largely open arms.

Le Pen has “un-demonized” the National Front by distancing herself from the party’s founder (her anti-Semitic father), appealing to Jewish voters, avoiding mass protests against gay marriage (although her party’s platform promises to scrap it), and choosing gay men Florian Philippot as her chief deputy and Sébastien Chenu as her leading adviser.

These efforts have boosted the party among gay voters. In April 2012’s presidential election, 26 percent of gay Parisians picked Le Pen. She scored just 16 percent of the straight vote. A third of gays who married after same-sex nuptials were legalized in 2013 reportedly voted for her party in 2015’s regional contests.

Many of these “homonationalists,” as they’ve been dubbed, applaud Le Pen’s straight talk about Islamic fundamentalism’s existential challenge to French lives and lifestyles.

In light of the November 2015 ISIS terror attacks that killed 130 in Paris, Tunisian immigrant Mohamed Lahouaiej-Bouhlel’s truck rampage that murdered 86 pedestrians in Nice last July and other acts of extremist bloodshed, Le Pen said, “Islamism is a monstrous totalitarian ideology that has declared war on our nation, on reason, on civilization.” She also wants to renew border checks and eject foreigners who are on France’s terror-watch list.

Violent Muslim-extremist homophobia has battered France for years:

Then-Mayor Bertrand Delanoë of Paris was stabbed in the stomach by Azedine Berkane, a devout Muslim and son of Algerian immigrants, at City Hall in October 2002. Delanoë survived after two weeks in the hospital. According to justice officials, Berkane “explained his strong religious views made him reject homosexuality as unnatural.”

“Up until 2005, Bordeaux was a very gay-friendly city,” Patrick McCarthy told Britain’s The Spectator. “Same-sex couples could openly walk down the street holding hands without any problems,” the Bordeaux resident continued. “However, in the space of two months, five gay men were murdered in the city. The blame was put on Bordeaux’s Muslim community, since some of these hate crimes were carried out by people of Arabic origins.”

In April 2013, Dutch librarian Wilfred de Bruijn and his boyfriend, Olivier Couderc, strolled arm in arm after dinner in a highly Muslim district in Paris. “Hey, look. They’re gays,” Couderc recalled hearing before attackers pounced. They kicked de Bruijn in the face, delivered five cranial fractures, knocked out a tooth, and left both men unconscious. Three men of North African heritage paid for this carnage in June 2014. K. Taieb and M. Abdel Malik, both 19, earned 2½-year prison terms. T. Kide, 21, received six months’ probation for not stopping this brutality.

When the ISIS-tied Karim Cheurfi fired his Kalashnikov on Paris’ Champs-Élyseés on April 20, he killed Xavier Jugelé, 37, an openly gay cop. Cheurfi most likely knew nothing about Jugelé’s sexuality, but he nonetheless made Jugelé yet another gay victim of France’s Islamic-extremist mayhem.

Marine Le Pen remains Sunday’s underdog. If she manages a Trump-like upset, it may be thanks to voters like Kelvin Hopper, 25, a gay artist and Le Pen supporter in Paris. Hopper told the AP: “Faced with the current threats, particularly from radical Islam, gays have realized they’ll be the first victims of these barbarians, and only Marine is proposing radical solutions.”

Deroy Murdock is a Fox News contributor and a contributing editor with National Review Online.