BA 349 then AA 107 at Heathrow
Nice → London → New York JFK
Timetable, London time
21:05BA 349 from Nice at the gate
15:35AA 107 to New York JFK leaves the gate
18 h 30 apart on the timetable, overnight
AA 107 leaves 18 h 30 after BA 349 arrives on the timetable: more than half a day, so not a connection we count.