Cosmetic product dispensing device comprising a base and a tubular cartridge configured to be detachably coupled to the base, the cartridge comprising: - an outer tube comprising at least one helical groove, - a control sleeve comprising at least one longitudinal guide slot, - a receptacle for cosmetic product, engaging with the helical groove of the outer tube and the longitudinal guide slot of the control sleeve, - a bottom element, integral in rotation with the control sleeve, the base comprising an operating member comprising a three-dimensional coded pattern (6B, 67) and the bottom element comprising an operating counterpart comprising a counterpart three-dimensional coded pattern such that the operating member is able to be coupled with the operating counterpart so that a relative rotation of the base in relation to the cartridge causes a movement of the receptacle for cosmetic product along a longitudinal axis of the cartridge, the base comprising a permanent magnet (9, MB), the bottom element comprising a ring of ferromagnetic material or a magnet configured to contribute to providing a retention force between the cartridge and the base when the cartridge is coupled to the base, the base comprising a seat element which cooperates with the operating member to fix by snapping the permanent magnet (9, MB), and characterized in that the bottom element is outwardly radially covered by the outer tube and the seat element comprises an annular groove which opens upwards and is designed to receive snap-fitting tabs projecting downwards from the coupling element, the snap-fitting tabs comprising a bead and an annular groove, the bead being received in a complementary annular groove of the seat element. - an outer tube comprising at least one helical groove, - a control sleeve comprising at least one longitudinal guide slot, - a receptacle for cosmetic product, engaging with the helical groove of the outer tube and the longitudinal guide slot of the control sleeve, - a bottom element, integral in rotation with the control sleeve, the base comprising an operating member comprising a three-dimensional coded pattern (6B, 67) and the bottom element comprising an operating counterpart comprising a counterpart three-dimensional coded pattern such that the operating member is able to be coupled with the operating counterpart so that a relative rotation of the base in relation to the cartridge causes a movement of the receptacle for cosmetic product along a longitudinal axis of the cartridge, the base comprising a permanent magnet (9, MB), the bottom element comprising a ring of ferromagnetic material or a magnet configured to contribute to providing a retention force between the cartridge and the base when the cartridge is coupled to the base, the base comprising a seat element which cooperates with the operating member to fix by snapping the permanent magnet (9, MB), and characterized in that the bottom element is outwardly radially covered by the outer tube and the seat element comprises an annular groove which opens upwards and is designed to receive snap-fitting tabs projecting downwards from the coupling element, the snap-fitting tabs comprising a bead and an annular groove, the bead being received in a complementary annular groove of the seat element.