Statistical Mechanics of Emergent Phenomena: Phase Transitions in Equilibrium and Nonequilibrium Systems IPhT 09/04/2024