CAC40: ends a difficult week on a high note