FR 3877 then IB 1217 at Madrid
Tangier → Madrid → Nice
Timetable, Madrid time
22:35FR 3877 from Tangier at the gate
22:00IB 1217 to Nice leaves the gatealso LA 1727, VY 5534, QR 6577
23 h 25 apart on the timetable, overnight
IB 1217 leaves 23 h 25 after FR 3877 arrives on the timetable: more than half a day, so not a connection we count.