For long-distance trains including all TGV, Intercités & Intercités de Nuit overnight trains, reservation is compulsory, but there are usually seats available even on the day of travel and you can buy a ticket immediately before the train departs. But there are much cheaper fares if you pre-book.