France’s population is on course for rapid decline and aging that will further weigh on an economy already struggling with slowing growth and a rising debt mountain.