Phase transition and phase coexistence in simple and complex fluids