Facts

The appellant and [C.] are the unmarried parents of [D.] , born in February 2018. The couple separated at the beginning of 2019, after which the parties multiplied proceedings, notably before the Geneva authorities, which approved two settlements on 3 July 2020 and 29 March 2021.

On 16 September 2022, the appellant and her daughter brought an action before the Martigny and St-Maurice District Court for maintenance, parental rights and modification of the settlements. They sought, among other things, a maintenance contribution of CHF 5,000 per month and the exclusive attribution of parental authority and custody to the appellant. As interim relief, they requested a provisio ad litem of CHF 10,000 and a monthly contribution of CHF 5,000 from August 2022.

The district judge instituted an educational guardianship in favour of the child, entrusted to the Office for the Protection of the Child (OPE), ordered a social inquiry and implemented various measures, notably concerning visitation rights. A family psychiatric expert assessment was to be carried out by the CHUV. The appellant filed numerous submissions, challenged almost systematically the acts of the judge, the APEA and the OPE, and lodged four recusal requests, the first on 13 January 2023. She also filed appeals and a request for revision, lodged on 13 March 2023.

On 9 June 2023, the appellant lodged a complaint for denial of justice and unjustified delay against the district judge, on account of the absence of a decision on the provisio ad litem, the provisional maintenance contribution, the expert assessment and other acts. By judgment of 24 May 2024, the Valais Cantonal Court dismissed the complaint insofar as it was not moot. The appellant then brought a civil law appeal before the Federal Supreme Court, subsidiarily a subsidiary constitutional appeal, alleging violation of arts. 8, 9 and 29 para. 1 Cst.

Considerations

The civil law appeal is admissible under arts. 72 para. 1, 74 para. 1 let. b, 75 and 76 FSCA, the amount in dispute exceeding CHF 30,000. The subsidiary constitutional appeal is therefore inadmissible (art. 113 FSCA). The complaint for denial of justice, which alleges an unjustified delay within the meaning of art. 319 let. c CPC, is a preliminary or interlocutory decision capable of causing irreparable harm (art. 93 para. 1 let. a and b FSCA), its admissibility being accepted according to case law (ATF 138 III 190). As the decision concerns interim measures, only the violation of constitutional rights may be invoked (art. 98 FSCA), subject to the principle of substantiation (art. 106 para. 2 FSCA).

The right to have a case decided within a reasonable time (art. 29 para. 1 Cst.) prohibits unjustified delay. The reasonableness of the time limit is assessed according to the complexity of the case, the stakes for the person concerned, its conduct and that of the authorities (ATF 144 II 486). A period of inactivity of several months may constitute an unjustified delay, but periods of intense activity may offset idle periods, the overall assessment prevailing (ATF 130 IV 54). The authority further enjoys a certain discretion as to priorities.

As regards recusal, it in principle produces effects only for the future (arts. 49 and 51 CPC). The recusal request does, however, implicitly contain the request that the magistrate no longer perform acts or that future acts be redone if the request is granted; the magistrate concerned may nevertheless continue to investigate while the request has not been decided, the party being protected by the possibility of requesting the annulment of the acts (judgment 5A_350/2023; judgment 5D_64/2015). The appellant's complaints on this point are unfounded, the cantonal court having correctly exercised its discretion in holding that the appellant's…