Facts
On 10 February 2017, at the request of the Canton of Fribourg (creditor), the Debt Collection and Bankruptcy Office of Gruyère served [A.] (debtor) with a payment order for the sum of CHF 2,736.75, with interest at 5% per annum from 11 February 2017, plus interest due as at 10 February 2017 (CHF 15.20) and summons costs (CHF 41). The claim concerned the debtor's AVS/AI/APG contributions and the related assessment for the period from 1 October 2016 to 31 December 2016.
The debtor filed a full objection. On 5 September 2017, the President of the Civil Court of the District of Gruyère granted the application for definitive lifting of opposition. By judgment of 21 November 2017, the Second Civil Court of Appeal of the Cantonal Court of Fribourg dismissed the debtor's appeal.
By submission of 22 December 2017, the debtor (appellant), represented by counsel, filed a subsidiary constitutional appeal with the Federal Supreme Court, seeking primarily the annulment of the cantonal judgment and referral of the case, and in the alternative the reform of the judgment so that the application for lifting of opposition be dismissed. The respondent, the Canton of Fribourg represented by the Compensation Fund of the Canton of Fribourg, sought dismissal of the appeal. The cantonal authority did not submit observations.
The appellant argued that the cantonal court had violated his right to be heard (Art. 29 para. 2 Cst.) by failing to rule on the existence of a deferral of payment, a argument he had developed before the cantonal instance. He requested referral to the cantonal authority.
Main question: did the cantonal court commit a formal denial of justice by not addressing the argument based on deferral of payment, and can the Federal Supreme Court remedy this violation?
Considerations
Admissibility: the decision lifting opposition is subject to civil appeal (Art. 72 para. 2 let. a FSCA), but the minimum amount in dispute of CHF 30,000 (Art. 74 para. 1 let. b FSCA) is not reached and the appellant does not raise a question of principle (Art. 74 para. 2 let. a FSCA). Only the subsidiary constitutional appeal (Art. 113 et seq. FSCA) is therefore open. For the remainder, the appeal is lodged within the statutory time limit (Art. 100 para. 1 and 117 FSCA) against a final decision (Art. 90 and 117 FSCA) taken by a higher court ruling on appeal (Art. 75 and 114 FSCA), and the appellant, who has been unsuccessful, has a legal interest (Art. 115 FSCA).
Complaints of violation of constitutional rights: the appellant must precisely indicate the right violated and demonstrate with detailed argument in what the violation consists (Art. 106 para. 2 and 117 FSCA).
Right to be heard and reasoning: according to case law, the judge must at least briefly state the grounds for the decision, without any obligation to discuss all facts, arguments and complaints. The reasoning may be implicit. A formal denial of justice exists, however, where the authority fails to rule on relevant complaints or on allegations and arguments important to the decision. The Federal Supreme Court may exceptionally remedy the violation if it has free power of review and no prejudice results to the party concerned.
Application to the present case: the cantonal court held that the amount of CHF 6,000 already paid had to be applied first to the invoice of CHF 9,110.40, so that the payments could extinguish the debt for the disputed period only after full settlement of the 2015 arrears. It therefore ruled on the argument based…