Tracers of stellar mass-loss. I. Optical and near-IR colours and surface brightness fluctuations