France claimed the inaugural Nations Championship title in dramatic fashion, edging out South Africa 40-34 thanks to a stunning last-minute try by Theo Attissogbe in London.