He didn't sacrifice *love* because Ilsa didn't love him. She was willing to sacrifice the love of whats-his-name. I agree that his behavior served a greater purpose, but I don't follow your meaning about the IDEAL and complaint, etc.
Rick discovers a larger context for his love by giving this woman a better life with a more fulfilling purpose beside a man who makes a real difference in a world choked by Fascism. The IDEAL is the better love, the better purpose and the better world free of Hitler's ethos which those who opposed him could only achieve with real leadership.
Rick had lost his way until then. By seeing the Big Picture instead merely satisfying either his petty revenge or indulging his personal passion he was able to offer LOVE on a scale that mattered most. He had the letters of transit. He weighed his options and acted with idealism. In the movie he is called "sentimental". Blaine always says, "I don't stick my neck out for nobody." And he doesn't. He offers something for somebody; a positive act with far-reaching repercussions of benefit for all concerned. Yes, even himself. He now has a reason for self-esteem having exchanged bitterness for a demonstration of genuine concern for others. The perfect transaction as a businessman, a patriot and a lover.