alternatehistory.com

In 1640 Catalonia (with french support) and Portugal (with english support) declared independence from Spain.

OTL the catalans where crushed in 1652, and the Portuguese achieved independence in 1668

Is it possible to reverse the situation, with Portugal retained but lossing Catalonia?
Bonus if Catalonia is not ruled (directly) by the french king (Louis XIII or XIV depending on when independence is achieved)

If it's possible to do this, what will be the relations between Spain, Catalonia and France? What role can Catalonia play in the future politics of Europe and Mediterranean?

Thanks
Top