Achraf Hakimi scored a last-gasp winner as Paris Saint-Germain maintained their 100 per cent record in dramatic fashion with a 2-1 vitory at Metz.

Hakimi had opened the scoring in the fifth minute, only for PSG to pegged back by Kiki Kouyate's 39th-minute header.

Deprived of Lionel Messi's services because of a knee injury, PSG looked to have run out of ideas, but Dylan Bronn's dismissal for a second yellow card set in motion a thrilling and fractious finish.

Metz coach Frederic Antonetti was sent off for his protestations and moments later Hakimi lashed the winner into the bottom corner in the 95th minute, prompting a furious response from Metz goalkeeper Alexandre Oukidja as PSG made it seven wins from seven.

A long evening appeared to be in store for Metz when PSG broke the deadlock in impressive fashion. Mauro Icardi's delicate chip was cleared off the line by Matthieu Udol, who could not repeat the feat to prevent Hakimi's follow-up from crossing the line.

Yet PSG failed to make the most of their first-half dominance. The visitors enjoyed three-quarters of the possession in the opening period but were pegged back from a set-piece as Kouyate met Lamine Gueye's corner with a powerful header that proved too strong for Keylor Navas.

Gueye could have completed the turnaround on the stroke of half-time, but he failed to find a way past Navas when sent through on goal by Ibrahima Niane.

Neymar fizzed an effort past the near post as PSG sought to regain their lead and the Brazil star was to the fore again when Hakimi blazed high across the face of goal from his clever lofted pass.

Kylian Mbappe almost caught Oukidja off his line with a long-range free-kick, and that should have been Metz's last scare. But there was a twist in the tale as captain Bronn received a second caution for time-wasting having kicked the ball away, with Hakimi cutting in and converting from another superb Neymar pass after Antonetti had seen red.