The nature of the multi-wavelength emission of 3C 111