La Ferté-Bernard is a commune in the Sarthe department in the Pays de la Loire region in north-western France.