Police in France have arrested more than 1,800 people after a day of nationwide demonstrations that began as a student movement and ended in