QR 3774 then FR 8631 at Barcelona
Torino → Barcelona → Tangier
Timetable, Barcelona time
16:25QR 3774 from Torino at the gatealso IB 5811, LL 5811, VY 6129
15:45FR 8631 to Tangier leaves the gate
23 h 20 apart on the timetable, overnight
FR 8631 leaves 23 h 20 after QR 3774 arrives on the timetable: more than half a day, so not a connection we count.