The present invention relates to a cosmetic composition for making up and/or caring for keratin materials, in the form of an oil-in-water solid emulsion, comprising, in a physiologically acceptable medium: -from 4.0% to 8.0% by weight, relative to the total weight of the composition, of at least one fatty alcohol, -from 1.0% to 3.0% by weight, relative to the total weight of the composition, of at least one solid linear ester, -from 2.5% to 6.0% by weight, relative to the total weight of the composition, of at least one non-ethoxylated glyceryl stearate, and -from 0.25% to 0.50% by weight, relative to the total weight of the composition, of sodium polyacrylate.