Nicolas Pepe inspired Lille to come back from two goals down and beat Nantes 3-2 at the Stade de la Beaujoire.