sur un coup de tête
Meanings
Adverb
1. on a whim, rashly, impulsively, on impulse, on the spur of the moment (informal)