1)
https://www.ctvnews.ca/business/iran-signs-5b-gas-deal-with-...Now you could say there's some excuse here. The oil in question technically never enters the EU, so it "doesn't have to" follow EU legislation (which prohibits dealing commercially with Iran). I'm sure if necessary something like that will be pointed out. Maybe it's also "not" Total selling the oil, but obviously they get part of the profit. And I'm sure there's some reason "Iran is not involved at all".
Also worth pointing out: the US has in the meantime successfully forced Total, over the LOUD protest of both French and German governments to abandon this deal.
2) https://www.expatica.com/ch/moving/visas/guide-for-eu-efta-c...
You can see the rules about employing Romanian and Bulgarian citizens (which are EU citizens) in Switzerland are very different from employing, say, French or German citizens. Note that this is one of the things the UK now tells Britain is non-negotiable. Somehow in practice another (labour related) trade deal the EU ... has negotiated it.
Of course, there are historical reasons for this, but of course that's true for all trade deals.