Eyeing green vote, Macron vows to exit oil, coal and gas