The pension rights compensation in Switzerland

What is the 3-pillar system in Switzerland? What are the consequences of the divorce?
French matrimonial law

What is the importance of a marriage contract? What are the possible property regimes in France?
Compensation of pension entitlements during the divorce?

Is that also possible with foreign rights?