The random geometry of equilibrium phases