Lille's Jonathan David struck late to secure a 2-1 home victory against Stade de Reims as they kept up with Ligue 1 leaders Paris St Germain on Sunday.