The VIMOS VLT deep survey. The ultraviolet galaxy luminosity function and luminosity density at 3 ≤ z ≤ 4