Earthquakes: from chemical alteration to mechanical rupture