Facts
The dispute opposes [X. GmbH] , defendant and appellant, to [Z.] , plaintiff and respondent. The plaintiff, who had been dismissed, was represented before the Tribunal civil de Neuchâtel (special court for employment contract matters, sitting with a single judge under art. 15 and 17a OJN) by an employee of the trade union, holder of an advocate's diploma, who signed the statement of claim of 25 November 2014 seeking 12'798 fr. and 62'044 fr.
The defendant contested the capacity to act as counsel of this employee and requested that the worker sign the claim himself or designate a new representative. By decision of 31 March 2015, the Tribunal civil dismissed this request and ordered the defendant to bear the costs and fees.
The defendant filed an appeal with the Cour d'appel civile and a recours stricto sensu with the Autorité de recours en matière civile. By judgment of 27 July 2015, the Cour d'appel civile declared the appeal inadmissible, on the ground that the decision was not subject to appeal (art. 308 al. 1 CPC). By judgment of 31 August 2015, the Autorité de recours declared the recourse inadmissible for lack of a legal prejudice difficult to repair (art. 319 let. b no. 2 CPC), and subsidiarily held that under Neuchâtel law a trade union employee could represent a worker, the Tribunal civil constituting a special court within the meaning of art. 68 al. 2 let. d CPC.
By recours en matière civile of 7 September 2015, the defendant seeks a finding that the claim is inadmissible for lack of capacity to act as counsel, subject to ratification or designation of a new representative. The respondent principally seeks dismissal of the appeal as inadmissible. The Federal Supreme Court examines the admissibility of the appeal against an interlocutory decision (art. 93 FSCA) and the question of functional competence (art. 92 FSCA).
Considerations
Under art. 93 al. 1 FSCA, an interlocutory decision that concerns neither jurisdiction nor recusal may be the subject of an immediate appeal only if it may cause an irreparable prejudice (let. a) or if the admission of the appeal may immediately lead to a final decision avoiding lengthy and costly evidentiary proceedings (let. b). A decision recognizing the valid representation of a party falls within this category.
As regards irreparable prejudice, this presupposes a legal disadvantage that cannot be remedied by a favourable final decision; economic loss is not relevant. It is assessed by reference to the first-instance decision and not to the cantonal decision of inadmissibility of the appeal. The question may be reviewed in the context of an appeal against the final decision (art. 93 al. 3 FSCA), so that no irreparable prejudice exists. Furthermore, case law holds that art. 68 al. 2 CPC, concerning professional representation, primarily protects the represented party (ATF 140 III 555 consid. 2.3), and the question of costs may be the subject of a later appeal (ATF 135 III 329 consid. 1.2.2). The condition of let. a is therefore not met.
As to let. b, it requires that the final decision can be rendered immediately and that it avoids lengthy and costly evidentiary proceedings; the appellant must demonstrate this in detail if it is not obvious (ATF 133 III 629 consid. 2.4). A supplementary taking of evidence is not sufficient;…