Direct in-depth determination of a complex magnetic configuration in an exchange-coupled bilayer with perpendicular and in-plane anisotropy