The present disclosure relates to a cosmetic composition for treating keratin fibers, for instance human keratin fibers such as the hair, comprising at least one liquid organic solvent, at least one electrophilic monomer and at least one organofluorine compound comprising at least 4 carbon atoms, with the exception of polytetrafluoroethylene, and pigments coated with fluoro compounds.