Lyon will take a two-goal advantage into the second leg of their Champions League quarter-final with Bordeaux after they came out on top in a thoroughly entertaining clash at Stade Gerland.
Lisandro Lopez had given the home side an early lead before Marouane Chamakh nodded home a leveller. But Michel Bastos' fierce shot and Lisandro's late penalty saw Lyon secure a two-goal advantage to take Stade Chaban Delmas.
It was the visitors who made the more settled start to proceedings, with Yoann Gourcuff and Jaroslav Plasil looking comfortable in midfield.
But they were dealt a blow as the home side took the lead against the run of play in the 10th minute.
Striker Lisandro's free-kick hit the wall, but Claude Puel's side showed patience to keep control of the ball and when Mathieu Bodmer found space down the right his ball into the box was turned in from close range by Lisandro.
The lead lasted only four minutes as Chamakh grabbed an equaliser.
Lyon were caught short on the break after giving away possession and Chamakh headed home from Gourcuff's pinpoint cross.
Then Miralem Pjanic's cross was not cleared by Bordeaux and Michel Bastos cut back onto his left foot to rifle into the far corner of the net for his fifth goal in five games.
The tie swung in Lyon's favour when they were awarded a 77th minute penalty after Mathieu Chalme was harshly adjudged to have handled in the area. Lisandro made no mistake from the spot.