France is counting the cost of one of its strongest days of unrest in years after protests against the cost of living spiraled into nationwide rioting.