Traditional "legitimacy" is based on the old rules that existed in the Ancien Régime of the Kingdom of France; civil marriages were then non-existent.
According to the Orleanist faction of French royalists, the current heir to the French throne, if restored, is Henri d'Orléans, Count of Paris.