In the second half of the 1840s the crude birth rate rose again , to 25.5 in 1875 , as the Second Republic and Second Empire were established , which was a time of economic prosperity and the modernization of the country .