How populations adapt to their environment is a fundamental question in biology. Yet, we know surprisingly little about this process, especially for endangered species, such as nonhuman great apes. Chimpanzees, our closest living relatives, are particularly notable because they inhabit diverse habit...