AT 554 then AT 794 at Casablanca
Lagos → Casablanca → Montpellier
Timetable, Casablanca time
10:30AT 554 from Lagos at the gate
08:35AT 794 to Montpellier leaves the gate
22 h 05 apart on the timetable, overnight
AT 794 leaves 22 h 05 after AT 554 arrives on the timetable: more than half a day, so not a connection we count.