That's exactly why Interrail[1] has existed for many years. I haven't used it in 10+ years and the webpage is a bit confusing, but generally you would just buy one ticket for e.g. a week and then get on/off wherever/whenever you want.
The situation in eastern Europe is more variable, but the reservations aren't generally as prohibitive as in France.