The mechanism includes at least one elastically deformable elongate element coupled to the first and second pieces so that relative rotation of the first and second pieces about the axis of rotation A causes elastic flexion deformation of the at least one elongate element, the mechanism including an actuator able to position the at least one elongate element in a first state in which the said at l