l'esprit de l'escalier
French term (translation: staircase wit) for when the perfect response, retort, or comeback comes to mind too late.
"His argument left me so speechless that I couldn't clearly think of a response until I reached the bottom of the stairs. Then, l'esprit de l'escalier came to me."