Facts

The appellant, [X.] , a lawyer, acted as legal aid counsel for [A.] in disability insurance proceedings. By judgment of 6 March 2015, the IIe Cour des assurances sociales of the Tribunal cantonal of the canton of Fribourg (the cantonal court) dismissed [A.] 's appeal against a decision of the Office de l'assurance-invalidité of the canton of Fribourg of 12 August 2013. In paragraph III of the operative part, it awarded the lawyer a fee of CHF 3'780 (VAT included) as legal aid counsel fees.

The lawyer complained that the cantonal court had failed to take into account the fee statement that had reached it on 6 March 2015, and lodged a complaint within the meaning of art. 148 para. 1 CPJA. The President of the IIe Cour des assurances sociales forwarded the appeal to the Federal Supreme Court as falling within its jurisdiction, by letter of 30 April 2015. The cantonal court made no particular observations.

The cantonal court had set the fee ex aequo et bono at CHF 3'500 (plus CHF 280 of VAT at 8%), on the ground that the appellant had not produced a fee statement, having regard to the relative difficulty and importance of the dispute.

The issue in dispute is whether the cantonal court acted arbitrarily (art. 9 Cst.) in applying cantonal law by not taking into account the fee statement filed in good time.

Considerations

On the admissibility of the legal remedy, the Federal Supreme Court recalls that first-instance proceedings in social insurance are subject to the principle of speed (art. 61 let. a GSSLA). According to case law, cantonal law may not provide for several levels of appeal for disputes concerning costs of cantonal proceedings in social insurance matters (ATF 110 V 54). The complaint route under art. 148 para. 1 CPJA is therefore not open, and the cantonal court correctly forwarded the matter to the Federal Supreme Court as falling within its jurisdiction.

On the merits, free legal aid before the cantonal social insurance court is prescribed by federal law (art. 61 let. f GSSLA), but the fixing of the legal aid counsel's fee falls in principle within cantonal law (ATF 141 I 70). An appeal in public law matters cannot be based on a violation of cantonal law as such, except where the incorrect application of cantonal law constitutes a violation of federal law, in particular of the prohibition of arbitrariness (art. 9 Cst.), provided that the complaint is raised and substantiated with precision (art. 95 FSCA, art. 106 para. 2 FSCA; ATF 138 V 67).

Arbitrariness is found where the decision is manifestly untenable, grossly disregards a clear legal norm or principle, or shocks the sense of justice; in respect of costs awards, it may result from a serious and clear violation of cantonal rules or from an untenable exercise of discretion, in particular where the remuneration does not bear a reasonable relationship to the work actually performed and objectively necessary (ATF 134 I 263; ATF 122 I 1; ATF 93 I 116).

Under art. 145a CPJA, the appointed counsel must submit a statement of work performed and, where necessary, the supporting documents for disbursements. The authority invites counsel to file the fee statement; if it does not receive it before the decision is given, it fixes the fee at its own discretion (cf. art. 11 para. 1 of the Fribourg tariff of fees and costs in administrative jurisdiction).

In the present case, the Federal Supreme Court finds that the cantonal court's statement that the appellant had not produced a fee statement is untenable, as it is clearly contradicted by the cantonal file: the statement was duly filed…