Mass-losing pulsating stars and their circumstellar matter : observations and theory