To sleep in or near Lourdes during the World Cup, think about the differents campsites :

And more accomodations here : http://www.lourdesvtt.com/en/uci-world-cup-en/accommodation/

and on the Tourist office : www.lourdes-infotourisme.com