Instead, we walked along a back road and found a hotel and bought a room for the night. Not nearly as cool as sneaking into a hotel room at night, but it was more legal.
The next morning when we left, a random donkey came up from a hill beneath to greet us.
With a few hours to kill before taking us to Montpellier where we could catch the main railway, we went uphill and eventually to the castle. There was a splendid view.