Cote d'Ivoire secured their third Africa Cup of Nations title with a 2-1 comeback win over Nigeria in Abidjan.