Change of the Fermi surface in CeIn3 : From localized to itinerant