More than 300,000 flee wildfires in France, Spain