I'm one away, I know I messed up at some point, and I think it's because I didn't understand purple x) I'm gonna let my brain rest, but it's a very interesting puzzle !Spoiler ahaed, even if there is nothing to spoil :
hardest part is getting an odd number of greens
finally got the puzzle done ! It was really tricky (to really understand the rules, and I don't think I got everything) but really clever !