The present invention relates to a cosmetic composition for making up and/or caring for the skin and/or the lips, comprising, in a physiologically acceptable medium, at least one oil, which is preferably non-volatile, at least hydrophobic silica aerogel particles, at least one hydrocarbon-based resin having a number-average molecular weight of less than or equal to 10 000 g/mol, the said composition comprising less than 5% by weight of water relative to the total weight of the composition, and preferably being anhydrous.