France is the same team that failed to qualify for the 1990 and 1994 editions of the FIFA World Cup. Their recent success has a lot to do with the migrant origin players. France has a very large immigrant population (10-15 million) and that gives them a bigger advantage when compared to other European teams like Spain and Germany. Also, Ligue 1 has emerged as one of the top European leagues, partly due to huge amounts of money being spent by teams like Paris Saint-Germain and Olympique de Marseille, which has allowed them to recruit top players from all around the world.
France is one of the strongest teams in the world and they won the world cup two times in 1998 when Brazil had an amazing performance and in 2018 but the last time when they face Argentina they failed to win the game and even with a player like Mbappe who is one of the strongest players and young talent they failed.
This time in 2026 I guess France can have a better chance because of having more experience.
I am not completely sure that saying that a team is going to do better next time because an increase in experience is a valid point in this context. Because in the end all the teams who participated in Qatar and did not win the cup have ended managed to earn experience, that does not mean they will do better next time.
Experience is nothing if we do not learn from it.
If someone asked me,.the biggest experience earning a team recently had was Brazil during the infamous 7-1 match against Germany. They learn about humbleness and that to be champions they cannot just depend on home advantage and their previous record, this is an sport which demands constant improvement.
In the two last World Cups France had amazing results and they were champions in Russia in 2018 while next time in 2022 they couldn't win the final match and this can show us France is on good days for years in the world cup and if we see then winning the World Cup or being in the final match in 2026 it's not surprising at all.
Here you can see the performance of France in the World Cups:
https://olympics.com/en/news/how-many-fifa-world-cup-titles-france-football-team-win#:~:text=So%20far%2C%20France%20have%20won,the%20penalties%20on%20both%20occasions.