Longvilliers (; until 1997 Longvillers) is a commune in the Pas-de-Calais department in the Hauts-de-France region of France 5 miles (9 km) north of Montreuil-sur-Mer in the Dordonne river valley.