Facts

By decision of 9 March 2017, the Child and Adult Protection Authority of the Monthey district (APEA) notably confirmed a protective measure within the meaning of art. 307 para. 3 CC concerning the parties' child, placed at the Institut E. from 19 March 2017.

By judgment of 5 September 2019 (cause C_1), the Sole Judge of the Civil Court II of the Cantonal Court of the canton of Valais dismissed C.'s appeal. Court costs of CHF 900 were charged to him, and he was ordered to pay [B.] a costs award of CHF 2,000. In the considerations, the judge held that B.'s request for legal aid was moot because costs had been awarded. The operative part did not rule on this request.

By request of 3 May 2023, B.'s lawyer requested the setting of an amount for a court-appointed lawyer's fees for proceedings C_1, including the costs incurred in unsuccessfully attempting to recover the costs awarded. By decision of 25 July 2023, the Sole Judge of the Civil Court II dismissed this request, on the ground that the decision of 5 September 2019 had become res judicata and that the first condition of art. 122 para. 2 CPC was not met.

[B.] and his lawyer filed a civil appeal with the Federal Supreme Court. The main complaint concerns the violation of art. 29 para. 3 Cst., as well as arts. 122 para. 2 CPC, 6 ECHR, the principles of proportionality and good faith, and arbitrariness (art. 9 Cst.). The Federal Supreme Court upheld the appeal.

Considerations

The conditions for free legal aid under arts. 117 et seq. CPC correspond to the minimum guarantee of art. 29 para. 3 Cst., which the Federal Supreme Court reviews freely. A request for legal aid may not be rejected solely on the ground that costs have been awarded against the opposing party, unless that party's solvency is not in doubt. The constitutional mechanism thus ensures that the lawyer of a party benefiting from legal aid is compensated by the State where the opposing party cannot pay the costs.

The judge may rule on legal aid together with the merits by making the lawyer's compensation subject to later proof that the costs are irrecoverable, by directly fixing the amount if insolvency is established, or by suspending the question. Where the decision on the merits does not mention the fate of the request, the situation must be treated as a suspension of the legal aid proceedings.

Where the claim for costs appears recoverable, the judge may declare the request for legal aid moot, but the successful party must be able to renew it later by demonstrating its inability to recover the costs. A decision on legal aid has only formal, not substantive, res judicata effect; a new request based on a genuine novum (irrecoverability of costs) is admissible at any time. The proceedings take place between the requesting party and the State, so it is the party itself (where applicable, represented) and not the lawyer in his own name who must renew the request.

In this case, the operative part of the…