François de Vendôme, Vidame de Chartres — French soldier and courtier