FR 7466 then EC 1704 at Madrid
Tangier → Madrid → Nice
Timetable, Madrid time
14:05FR 7466 from Tangier at the gate
13:10EC 1704 to Nice leaves the gate
23 h 05 apart on the timetable, overnight
EC 1704 leaves 23 h 05 after FR 7466 arrives on the timetable: more than half a day, so not a connection we count.