You are a child until the age of 18 years. You also become a major with 18 years.
For sepecial purposes, the law increases the age of becoming an adult, i.e. social benefits for students (up to 26 years), youth cards (up to 25 years), legal status for criminal youth (between 16 and 21 years) and assistance or protective measures (up to 21 years).