The President of France is separate from Parliament, he is not subject to votes of confidence and if he loses the majority in Parliament he does not have to resign.
He’s not quite like an American President because he has to staff his government with Deputies from the National Assembly. So, if he loses the majority he has to replace his ministers with members of the new majority.
Thanks