More than 270,000 people have been forced to evacuate across France and Spain because of “apocalyptic” wildfires.