I am married and we are going to divorce. We get along perfectly well and have reached an agreement between ourselves. Is a lawyer still mandatory?

Yes. To safeguard your respective interests, each of you must be assisted by a lawyer even if you agree on all the consequences of your divorce (French Civil Code, Art. 229-1).