Disclosed herein is a cosmetic and/or pharmaceutical composition comprising, in a physiologically acceptable medium, at least one (co)polymer comprising a polymer backbone and at least one junction group linked to the polymer backbone and capable of establishing H bonds with at least one partner junction group, each pairing of a junction group involving at least 3H bonds, wherein the at least one (co)polymer comprises at least one ionizable group. Also disclosed herein is a cosmetic treatment process comprising applying the composition to keratin materials.