The invention relates to a composition comprising a visually distinct and superimposed aqueous phase and an oily phase, an amphoteric surfactant and a fatty acid salt. It also relates to a non-aerosol device comprising a bottle equipped with a mechanical pumping system and comprising said composition and a dispensing system for delivering the composition in the form of foam. Application to the cosmetic treatment of keratinous materials by applying the composition in the form of a mousse to keratin materials. L'invention concerne une composition comprenant une phase aqueuse et une phase huileuse visuellement distinctes et superposées, un tensioactif amphotère et un sel d'acide gras. Elle concerne également un dispositif non aérosol comprenant un flacon équipé d'un système mécanique de pompage et comprenant ladite composition et un système de distribution permettant de délivrer la composition sous forme de mousse. Application au traitement cosmétique des matières kératiniques en application la composition sous forme de mousse sur les matières kératiniques.