Ligue 1 title contenders Girondins Bordeaux had earlier needed two goals in extra time to beat Lille 2-0.