The age of consent for same-sex sexual activity was altered more than once before being equalised in 1982 under President François Mitterrand. After granting same-sex couples domestic partnership benefits known as the civil solidarity pact, France became the thirteenth country in the world to legalise same-sex marriage in 2013. Laws prohibiting discrimination on the basis of sexual orientation and gender identity were enacted in 1985 and 2012, respectively. In 2010, France became the first country in the world to declassify gender dysphoria as a mental illness. Additionally, since 2017, transgender people have been allowed to change their legal gender without undergoing surgery or receiving any medical diagnosis.