Nucleic acids' physical properties have been investigated by theoretical methods based both on fully atomistic representations and on coarse-grained models, e.g., the worm-like-chain, taken from polymer physics. In this review article, I discuss an intermediate (mesoscopic) approach and show how to build a three-dimensional Hamiltonian model which accounts for the main interactions responsible for the stability of the helical molecules. While the 3D mesoscopic model yields a sufficiently detailed description of the helix at the level of the base pair, it also allows one to predict the thermodynamical and structural properties of molecules in solution. Relying on the idea that the base pair fluctuations can be conceived as trajectories, I have built over the past years a computational method based on the time-dependent path integral formalism to derive the partition function. While the main features of the method are presented, I focus here in particular on a newly developed statistical method to set the maximum amplitude of the base pair fluctuations, a key parameter of the theory. Some applications to the calculation of DNA flexibility properties are discussed together with the available experimental data.