France secured a narrow 21-19 victory over South Africa on Friday, marking their first win against the visitors at the Stade de France since 2005.