The eventual champions could well have had their tournament ended in the Round of 16 when they trailed 2-1 to 2014 finalists Argentina.
Despite a lacklustre group stage that nearly saw them eliminated, Messi's men had gone ahead through two goals either side of half-time, erasing an early deficit after France scored on a penalty earned after Kylian Mbappe was taken down in the area.
However, a sublime Benjamin Pavard equaliser set the scene for Mbappe's heroics, as the teenager delivered a brace in France's eventual 4-3 victory.
Tottenham goalkeeper Lloris said surviving the emotional rollercoaster of their first knockout assignment galvanised the group.
"We got the best of Argentina… of Messi's Argentina," Lloris told Omnisport.
"It made us realise we have the potential to go through. Every game was difficult, but we did really well.
"We could feel a very strong team ready for the challenges ahead. We faced challenges after challenges following that game until the final victory.
"Every game was difficult, but we did really well."