Cosmetic composition comprising, in a cosmetically acceptable medium, a compound that can be obtained by reaction between: - at least one wax bearing at least one reactive function chosen from OH or COOH, the wax being chosen from candelilla wax, carnauba wax, sugarcane wax, beeswax, montan wax and jojoba wax; - at least one junction group capable of establishing hydrogen bonds with one or more partner junction groups, each pairing of a junction group involving at least 4 hydrogen bonds, said junction group bearing at least one "complementary" reactive function capable of reacting with the reactive function borne by the wax, said junction group comprising at least one unit of formula or: in which: - R1 and R3, which may be identical or different, represent a divalent carbon-based radical chosen from (i) a linear or branched C 1 -C 32 alkyl group, (ii) a C 4 -C 16 cycloalkyl group and (iii) a C 4 -C 16 aryl group; optionally comprising 1 to 8 heteroatoms chosen from O, N, S, F, Si and P; and/or optionally substituted with an ester or amide function or with a C 1 -C 12 alkyl radical; or a mixture of these groups; - R2 represents a hydrogen atom or a linear, branched or cyclic, saturated or unsaturated, optionally aromatic, C 1 -C 32 carbon-based and especially hydrocarbon-based (alkyl) radical, which may comprise one or more heteroatoms chosen from O, N, S, F, Si and P. - at least one wax bearing at least one reactive function chosen from OH or COOH, the wax being chosen from candelilla wax, carnauba wax, sugarcane wax, beeswax, montan wax and jojoba wax; - at least one junction group capable of establishing hydrogen bonds with one or more partner junction groups, each pairing of a junction group involving at least 4 hydrogen bonds, said junction group bearing at least one "complementary" reactive function capable of reacting with the reactive function borne by the wax, said junction group comprising at least one unit of formula or: in which: - R1 and R3, which may be identical or different, represent a divalent carbon-based radical chosen from (i) a linear or branched C 1 -C 32 alkyl group, (ii) a C 4 -C 16 cycloalkyl group and (iii) a C 4 -C 16 aryl group; optionally comprising 1 to 8 heteroatoms chosen from O, N, S, F, Si and P; and/or optionally substituted with an ester or amide function or with a C 1 -C 12 alkyl radical; or a mixture of these groups; - R2 represents a hydrogen atom or a linear, branched or cyclic, saturated or unsaturated, optionally aromatic, C 1 -C 32 carbon-based and especially hydrocarbon-based (alkyl) radical, which may comprise one or more heteroatoms chosen from O, N, S, F, Si and P. - R1 and R3, which may be identical or different, represent a divalent carbon-based radical chosen from (i) a linear or branched C 1 -C 32 alkyl group, (ii) a C 4 -C 16 cycloalkyl group and (iii) a C 4 -C 16 aryl group; optionally comprising 1 to 8 heteroatoms chosen from O, N, S, F, Si and P; and/or optionally substituted with an ester or amide function or with a C 1 -C 12 alkyl radical; or a mixture of these groups; - R2 represents a hydrogen atom or a linear, branched or cyclic, saturated or unsaturated, optionally aromatic, C 1 -C 32 carbon-based and especially hydrocarbon-based (alkyl) radical, which may comprise one or more heteroatoms chosen from O, N, S, F, Si and P.