Contrary to the premise, Spain did not fight France for Florida. The territory transferred through treaty diplomacy:
Under the Treaty of Paris (1763) ending the Seven Years' War, Spain ceded Florida to Britain in exchange for the return of Havana, Cuba, which Britain had captured in 1762.
Florida changed hands via great-power negotiations, not a Franco-Spanish war over the territory.