How was France able to sell Louisiana to America despite having lost all possessions in North America in 1763?

by doeslikecheesecake
Shalaiyn

The Louisiana territory was ceded to Spain after the Seven Years War, however, in 1803 Spain returned the territory to Bonapartist France at the conclusion of the French Revolutionary Wars after which it was sold to the USA.