A cosmetic composition comprising, in a cosmetically acceptable medium,
- at least one amphiphilic polymer chosen from branched block copolymers comprising
- (a) at least one nonionic unit derived from at least one monomer chosen from C1-C20 alkyl (meth)acrylates, N-mono-(C2-C12 alkyl)-(meth)acrylamides and N,N-di-(C2-C12 alkyl)-(meth)acrylamides,
- (b) at least one anionic unit derived from at least one monomer chosen from acrylic acid and methacrylic acid, and
- (c) at least one polyfunctional unit derived from at least one monomer comprising at least two polymerizable unsaturated functional groups,
- at least one cationic polymer, and
- at least 3% by weight, relative to the total weight of the composition, of at least one anionic surfactant.