Germany didn’t almost win. They got extremely lucky with the invasion of France. The French thought it was gonna be trench warfare and unprepared, and the soviet invasion began right when the great purge happened. They got really lucky. Then the Yanks came.
Nah. You’re just repeating myths about the French. The French were not idiots and they did not think the war would be fought at the Maginot line. Despite how the myth goes, the Maginot line did exactly what it was supposed to do: funnel the Germans through Belgium and force them into a shitty river crossing at the Dyle River. This was known as the “Dyle plan”. This actually could have worked out if not for the unexpected agility of the Germans and even more importantly: the fact that Belgium had left the allies after losing faith in them after the remilitarization of the reinland.
They didn’t get “lucky”, the Germans exploited fractured alliances and surprised the allies with their extremely effective and, at the time, novel use of the radio. Hell, they almost won the war before France even fell. Read up on the Dunkirk evacuation if you’re interested. I’d wax on about it, but I’ve got surgery on about 20 minutes.