If it appears that the person brought before it is a minor, the court refers the case to the public prosecutor.
In the case of a minor of at least thirteen years of age, the court shall first rule, after hearing the public prosecutor’s submissions and the observations of the minor and his or her lawyer, on whether the minor should be remanded in custody or kept in custody until he or she appears before either the specialised investigating judge, the juvenile judge or the specialised liberty and custody judge, in accordance with the procedures laid down in articles L. 423-6 or L. 423-9 of the juvenile criminal justice code. Special reasons are given for the decision with regard to the need to ensure that the minor remains at the disposal of the justice system. The minor must appear before the competent judge within twenty-four hours, failing which he or she will be released automatically.
This article also applies before the liberty and custody judge ruling pursuant to article 396 of this code.