France is enduring a widespread heatwave, with temperatures nearing 40C in parts of the country and forcing tourists and residents to change their routines.