France pulled off a stunning and nervy 21-19 victory over world champions South Africa in the Nations Championship on Friday.