Nonlinear dynamics (pattern formation, envelope equations, weak turbulence) and applications to hydrodynamics, optics and biology