Living 2 years in the south of the France, I used to hear many French speakers saying Bonne soirée or Bonsoir to say goodbye in the evening.
But I've rarely heard any of them saying Bonne nuit even if it's very late (e.g. midnight)
I have a doubt of the usage between them.
Is it rude to say goodbye with Bonne nuit (they might think that we want them to go to bed), or from what time in the evening/night we can use it or better/safer always stick with Bonne soirée.