Clermont slumped to a 16-13 defeat at Castres on Friday as the Top 14 leaders failed to end their 36-year wait for a win at their opponents' Stade Pierre Antoine fortress.
Clermont had looked on course to break that miserable record when they led 13-6 early in the second half, but Castres battled back and snatched victory with five minutes left with a penalty from replacement full-back Romain Tuelet.
The league leaders were 6-3 up at the interval thanks to a 40-metre penalty from Australian fly-half Brock James and another three-pointer from scrum-half Ludovic Radosavljevic.
The Clermont scrum-half had already missed an optimistic drop-goal attempt before taking over the kicking duties from James who was sin-binned later in the first period for a dangerous tackle on Castres' Kiwi centre Daniel Kirkpatrick.
South African scrum-half Rory Kockott kicked Castres' only reply, a small consolation after the former Sharks star had missed four attempts at goal.
The 26-year-old Kockott was on target early in the second half to bring the scores level at 6-6 before Clermont grabbed the opening try of the game after 50 minutes.
But it came in controversial circumstances.
Castres, who were pushing for a score of their own, were furious that James wasn't punished for another high tackle, this time on winger Marc Andreu.
South African lock Jan Bornman then clumsily lost possession to Clermont full-back Jean Marcelin Buttin who sprinted 80 metres to score a fine breakaway try.
James added the extras for a 13-6 lead.
Kockott then missed his fifth penalty of the night before the South African made up for his misfiring boot by scoring the try which brought his team back into the match on 63 minutes.
Replacement flanker Antonie Claassen created the try by bursting through the line to set-up Kockott who burrowed over from close range.
Tuelet added the conversion to level the scores at 13-13.
With five minutes left, Castres nipped ahead for the first time with a Teulet penalty awarded after Clermont replacement centre Wesley Fofana was punished for a deliberate knock-on as the home side ratcheted up the pressure.
Teulet then missed a last-minute penalty, but it didn't matter as his team preserved their undefeated home record this season.
Pens: Kockott 2, Teulet
Pens: James 2
Castres: 15 Brice Dulin, 14 Romain Martial, 13 Romain Cabannes, 12 Daniel Kirkpatrick, 11 Marc Andreu, 10 Remi Tales, 9 Rory Kockott, 8 Iosefa Tekori, 7 Yannick Caballero, 6 Jan de bruin Bornman, 5 Rodrigo Capo ortega, 4 Christophe Samson, 3 Michael Coetzee, 2 Brice Mach, 1 Yannick Forestier.
Replacements: 16 Mathieu Bonello, 17 Mihaita Lazar, 18 Matthias Rolland, 19 Antonie Claassen, 20 Romain Teulet, 21 Seremaia Bai, 22 Max Evans, 23 Anton Peikrishvili.
Clermont: 15 Jean Marcellin Buttin, 14 Noa seru Nakaitaci, 13 Regan King, 12 Benson Stanley, 11 Naipolioni Nalaga, 10 Brock James, 9 Ludovic Radosavljevic, 8 Elvis Vermeulen, 7 Julien Bardy, 6 Gerhard Vosloo, 5 Nathan Hines, 4 Loic Jacquet, 3 Davit Zirakashvili, 2 Benjamin Kayser, 1 Raphael Chaume,
Replacements: 16 Ti'i Paulo, 17 Thomas Domingo, 18 Julien Pierre, 19 Alexandre Lapandry , 20 Kevin Senio, 21 Wesley Fofana, 22 Anthony Floch, 23 Daniel Kotze.
Referee: John Paul Doyle