The young suns exoplanet survey: detection of a wide-orbit planetary-mass companion to a solar-type Sco-Cen member