Cosmetic composition including an inorganic material, the inorganic material including particles of three-dimensional ordered macroporous structure including spherical pores, the pores having an average pore diameter ranging from 50 nm to 10 μm, the pore diameter varying by no greater than 20%, the surface of the pores being coated by an absorber agent of the visible wavelength spectrum, the particles having an average largest dimension ranging from 1 to 50 μm, and the particles being coated with at least a hydrophobic component. It further relates to cosmetic methods implementing the cosmetic composition.