Confined molecules under shear: from a microscopic description to phenomenology.