FR 775 then FR 8631 at Barcelona
Torino → Barcelona → Tangier
Timetable, Barcelona time
20:00FR 775 from Torino at the gate
10:55FR 8631 to Tangier leaves the gate
14 h 55 apart on the timetable, overnight
FR 8631 leaves 14 h 55 after FR 775 arrives on the timetable: more than half a day, so not a connection we count.