3O 391 then EC 4390 at Madrid
Tangier → Madrid → Lyon
Timetable, Madrid time
20:003O 391 from Tangier at the gate
17:40EC 4390 to Lyon leaves the gate
21 h 40 apart on the timetable, overnight
EC 4390 leaves 21 h 40 after 3O 391 arrives on the timetable: more than half a day, so not a connection we count.