Article 171-9 of the French Civil Code
As an exception to articles 74 and 165, where the future spouses of the same sex, at least one of whom has French nationality, have their domicile or residence in a country that does not authorise marriage between two persons of the same sex and in which the French diplomatic and consular authorities cannot proceed with its celebration, the marriage is celebrated publicly by the civil registrar of the municipality…