GERARDMER, France -- In a solo breakaway, Blel Kadri gave France its first stage winner at the Tour de France in the entree to the Vosges mountains on Saturday.
Meanwhile, Vincent Nibali extended his lead over his biggest rivals except an important one: two-time champion Alberto Contador, who sped ahead thinking he might win the stage and trying to test the response of the Italian in the yellow jersey.
Contador dueled with Nibali to capture second place at the uphill finish of a rainy 161-kilometer (100-mile) eighth stage from Tomblaine to Gerardmer La Mauselaine ski resort. Contador reduced his 2 1/2 minute deficit by only a few seconds, but the threat was loud and clear.
"I wanted to see a bit how he was doing. It was a surprise for me to see that he stayed hooked onto me until the end," Contador said, adding he felt good about the stage. He finished second in Saturday's stage, more than 2 minutes behind Kadri.
"I wasn't really sure if someone was ahead of me or not for the stage victory, and that's why I burst ahead, I accelerated a little," he said. Then, "I saw there was someone in front of me, and I thought, 'well, I'll get a few seconds"' on Nibali.
Kadri, sensing his looming victory in the last kilometer, clasped hands in joy with a staffer of his AG2R Mondiale team, who was alongside him in a team car. He kissed his fingers to the crowd and smiled broadly at the line.
"Today was my day, and I'm really, really, really happy," he said after his maiden Tour stage win. "We work all year for good performances in this race. ... Today it paid off."
Kadri emerged from a five-man breakaway that chiseled out a lead of as many as 11 minutes. None of the breakaway riders threatened Nibali: The highest-placed among them began the stage nearly 26 1/2 minutes back.
Contador attacked as he and Nibali passed under the red flag marking one kilometer to go. But the Italian couldn't be shaken -- hewing right on the Spaniard's back wheel except for Contador's final surge at the line.
"I'm not explosive, but I held my own," Nibali said. "I tried to respond as best I could to his attack ... he moved a lot, I really wanted to stick close to him ... in the last 100 meters he accelerated a lot."
The ride featured three mid-grade climbs in the first of three days in the mid-sized Vosges range near the German border.
American Andrew Talansky had trouble and lost time in the title chase. In the final ascent, he skidded off the wet road and fumbled -- with help from a fan -- to repair what seemed to be a problem with his bike. A race medical report said he had multiple contusions.
Talansky, the Garmin-Sharp team leader, finished more than two minutes behind Nibali and Contador, and trailed the leader by 4 minutes, 22 seconds in 16th place overall. He started the ride in eighth, 2:05 down.
Overall, Nibali led Astana teammate Jakob Fuglsang of Denmark in second by 1 minute, 44 seconds. Australia's Richie Porte of Team Sky, who finished fourth on Saturday, was 1:58 back in third. Spain's Alejandro Valverde was fifth, 2:27 adrift, and Contador was sixth, 2:34 behind.
The breakaway five chiseled out their maximum lead with about 50 kilometers (30 miles) left, and the pack began to accelerate. With around 25 kilometers left, the lead dwindled to 4 1/2 minutes. France's Sylvain Chavanel pressed the pace among the five in front, then Kadri overtook him, pedaling alone up the final climb.
There were fewer crashes than in recent days. Before the stage, Mathias Frank, the Swiss leader of the IAM Cycling team, withdraw because of a broken left femur in a crash on Friday. Frank, who was runner-up in last month's Tour of Switzerland, underwent surgery in Geneva on Saturday.
The toughest ride in the Vosges will come on Monday when cyclists face seven ascents, including an uphill finish to the storied ski resort La Planche des Belles Filles. The pack faces six ascents on Sunday with a 170-kilometer (106-mile) ride from Gerardmer to Mulhouse.