Any leave of absence for health reasons before birth is considered sick leave and not maternity leave. Maternity leave begins at birth.
A pregnant woman can not be fired during her pregnancy and for 16 weeks after birth.
In terms of financial compensation, it would depend on the Sick leave policy of the company and then after birth on the minimum maternity leave required by the cantonal law (Geneva has a decent Materniy leave compensation I believe) and/or the Maternity leave policy of the company.
Hope it works out for you