You have no right to work, and they have no right to employ you
But they still have to pay you for the work you did.
You broke the law and there are consequences that flow from that: fines, possibly being denied a visa, deportation etc. However, these are matters between you and the government of Portugal. Similarly, they broke the law and etc.
However, just ...
Immigration is up to the individual EU member states. A work visa is only valid in that country. While you might have been able to work for a Portuguese employer remotely from France, your French visa did not authorize you to take up work in Portugal.
The EU/EEA does have a concept of “freedom of movement”, meaning that an EU citizen has the right to work in ...
France invented the civil law system and adopted it in connection with the French Revolution. Napoleon commissioned it in 1804.
The summary of the story is here. As Wikipedia explains:
Before the Napoleonic Code, France did not have a single set of laws;
law consisted mainly of local customs, which had sometimes been
officially compiled in "...
Unfortunately you don't name the articles your referring to.
A quick look list the following articals where carcan is used:
ARTICLE 8. (Page 91 of PDF) 1811 edition
The infamous [Entehrende, dishonour] penalties are,
1 ° The stock [carcan, Der Pranger] ;
2 ° Banishment;
3 ° Civic degradation.
§7 afflicting and infamous ...
If he is indeed a Lebanese citizen he cannot be deported from Lebanon. The essence of citizenship is that it is a place from which you cannot be deported. He might be punished for violating Lebanese law regarding identity documents, but the remedy of deportation or expulsion would not be available.