EC 7102 then AT 965 at Barcelona
Basel → Barcelona → Casablanca
Timetable, Barcelona time
14:40EC 7102 from Basel at the gate
12:45AT 965 to Casablanca leaves the gate
22 h 05 apart on the timetable, overnight
AT 965 leaves 22 h 05 after EC 7102 arrives on the timetable: more than half a day, so not a connection we count.