@albertcardona @villavelius you have to access sites of different companies (sncf, renfe, eurostar) and can book many of the lines. Of course it is costly, but you can get there in 2 days. Personal experience: everything booked but the Eurostar/Thalys, because these tickets where only available 3 months in advance. Or the night train from Hamburg to Stockholm, only 6 weeks before departure, while regional trains in Sweden were already fully booked by that time...
@berndandeweg @albertcardona In the end, only the trains in Morocco were easy, and reasonably priced. So we booked the train from Tangier to Casablanca, and from there to El Jedida.