FR 3040 then AT 961 at Barcelona
Prague → Barcelona → Casablanca
Timetable, Barcelona time
21:15FR 3040 from Prague at the gate
19:10AT 961 to Casablanca leaves the gate
21 h 55 apart on the timetable, overnight
AT 961 leaves 21 h 55 after FR 3040 arrives on the timetable: more than half a day, so not a connection we count.