Polymorphic mimicry, microhabitat use, and sex-specific behaviour