FR 3877 then FR 1206 at Madrid
Tangier → Madrid → Venezia
Timetable, Madrid time
16:35FR 3877 from Tangier at the gate
10:20FR 1206 to Venezia leaves the gate
17 h 45 apart on the timetable, overnight
FR 1206 leaves 17 h 45 after FR 3877 arrives on the timetable: more than half a day, so not a connection we count.