MUSEQuBES: a study of gas and metals around low-redshift galaxies