QR 3686 then FR 8631 at Barcelona
Lyon → Barcelona → Tangier
Timetable, Barcelona time
18:05QR 3686 from Lyon at the gate
15:45FR 8631 to Tangier leaves the gate
21 h 40 apart on the timetable, overnight
FR 8631 leaves 21 h 40 after QR 3686 arrives on the timetable: more than half a day, so not a connection we count.