The scale and the police's apparent inability to contain the turmoil has shocked France, inflaming tensions ahead of presidential elections next year.