France's Prime Minister Gabriel Attal said he would offer his resignation to President Emmanuel Macron on Monday after his party failed to win a majority in parliamentary elections. But he added that, if his resignation is refused, he was ready to remain in office "as long as duty demands", with the Paris Olympics due to begin in three weeks.