Flaubert, Madame Bovary, l'Éducation sentimentale et la liquidation du romantisme