I ended up doing a factory reset, and it all works now. But that is not really news, factory reset just doing it's job.
The data is lost, I should have had a backup, lessons learned, all that.
What frustrates me is that Samsung is able to remotely unlock the phone with the Samsung account and...