Its ramparts , built and rebuilt from the 12th to the 18th centuries , make a bracing walk , with the stretch between the Saint-Philippe bastion and the Tour Bidouane opening up a vista along the whole Emerald Coast .
The ramparts were rebuilt in the 9th century only .