FR 3830 then FR 3430 at Madrid
Bologna → Madrid → Agadir
Timetable, Madrid time
20:25FR 3830 from Bologna at the gate
09:55FR 3430 to Agadir leaves the gate
13 h 30 apart on the timetable, overnight
FR 3430 leaves 13 h 30 after FR 3830 arrives on the timetable: more than half a day, so not a connection we count.