The invention relates to a supramolecular polymer obtained from the reaction of (i) an amine bearing a nitrogen-containing heterocyclic group: imidazolidone, trimethyleneurea or triazine, which is capable of associating by means of hydrogen bonds and (ii) at least one fatty acid monomer comprising at least one reactive function, a dimer of identical or different fatty acids and/or a trimer of identical or different fatty acids, or a derivative of said fatty acid(s) which is selected from a fatty acid ester, and a fatty acid chloride.