Ne pas savoir sur quel pied danser, “not to know on which feet to dance”, means that one doesn’t know how to react or what to do. The English idiom is “to not know where you stand”. It appeared at the end of the 15th century and is based on a metaphor easy to understand.
