The Los Angeles Rams stayed at the top of the NFC with a vital win over the Detroit Lions on a day that Matt Stafford passed for over 350 yards.