Mr Mélenchon has proved the exception, leading a vigorous campaign since he came a close third in the presidential election. He has built an alliance called Nupes, made up of left-wing and green parties, with the improbable slogan “Mélenchon prime minister”.