Composition containing, in a cosmetically acceptable medium, two or more volatile linear alkanes, and one or more nonprotein cationic polymers, with a volatile linear alkanes/polymer(s) ratio by weight of greater than or equal to 1.2. Use in the treatment of keratinous substances, preferably keratinous fibres, such as the hair.