L’esprit de escalier

yearslater:

The feeling you get after leaving a (usually emotional) conversation and you think of all the things you should have said. Translated literally to mean the spirit of the staircase.