The Macron/Nogues families are not 'old rich families'.
The Macron grandfather was a railway worker, and the Nogues grandparents were teachers.
There is a good degree of social mobility in France.
Young people from any background can take a state exam leading to entry to prestigious educational establishments.
Many of my French friends who have 'done all right for themselves' in life have parents - not even grandparents - who worked in trades or semi-skilled jobs.
Macron's parents both benefitted from the educational system to get good jobs - the father became a doctor and then Professor of Neurology, the mother a doctor - but they didn't have to be 'old money' to do so, they just had to be academically successful.
Macron's father the Professor specialises in epilepsy and sleep disturbance; I don't know what kind of doctor his mother is, and if it is in any way related to gender - not that knowing the facts would stop the fantasies!🙄