jeu d'esprit (n.)

"a witticism," 1712, from French, from jeu "play, game," from Latin jocum "jest, joke, play, sport" (see joke (n.)).