Extreme heat has gripped countries including France, Greece, Italy, Portugal and Spain, with record temperatures, health alerts and wildfires.