Scotland has blown open the Six Nations title race after an astonishing 50-40 win against France in Edinburgh.