How Côte d’Ivoire’s president used an old autocrat’s playbook to turn his country around