A day's visit to this splendid fortress-castle offers a fascinating trip through the history of the Middle Ages.