For my Ph.D thesis I worked on two different topics. The first concerns variational methods applied to the N-body problem, from both a teorethical and a numerical point of view. The second topic is about Hamiltonian perturbation theory applied to the restricted N-body problem with orbit crossing singularities.