Facts
The appellant [A.] is the owner of parcel no. xxx, plan no. yyy, of the municipality of [U.] (VS). The respondent [B. SA] , a contracting company, obtained on 11 June 2013, by superprovisional measures issued by judge III of the district of Sierre, the provisional registration of a statutory lien of craftsmen and contractors for CHF 40'818.90 with interest at 5% from 6 May 2013.
By letter of 17 July 2013, communicated to the parties' lawyers on 18 July 2013, the notary informed the judge that the parcel had been converted into condominium ownership and that the provisional lien had been transferred, without apportionment of the pledge, to all unit nos. aaa to fff. By decision of 17 September 2013, the provisional annotation was confirmed and a deadline of 13 January 2014 was set for the claimant to bring an action on the merits.
On 6 December 2013, the respondent filed a claim with the District Court of Sierre seeking the definitive registration of the lien on the base parcel only. By judgment of 13 September 2018, judge II of the district of Sierre ordered the definitive registration, apportioned among the condominium units pro rata to their millièmes (PPE aaa to fff). By judgment of 30 June 2021, the Civil Court II of the Cantonal Court of Valais dismissed the defendant's appeal and fully upheld the first-instance decision, holding that the transfer to the units, carried out without the respondent's consent, was void, but that the judge could nevertheless apportion the pledge pursuant to art. 56 CPC.
The appellant lodges a civil law appeal with the Federal Supreme Court, seeking dismissal of the claim and deletion of the provisional liens, or in the alternative remittal of the case. The respondent seeks dismissal of the appeal.
Considerations
The Federal Supreme Court recalls that the civil law appeal is admissible (art. 90, 72 para. 1, 74 para. 1 let. b, 76 para. 1 FSCA), that the appeal is subject to the principle of allegation (art. 106 para. 2 FSCA) and that the facts are in principle those established by the prior authority (art. 105 para. 1 FSCA).
The appellant alleges a violation of arts. 56 and 58 para. 1 CPC. Under art. 58 para. 1 CPC, which enshrines the maxim of disposition, the court may not award more or anything other than what is requested, nor less than what is acknowledged. The court is bound by the parties' submissions.
The cantonal court held that the transfer of the lien to the condominium units was void for lack of the respondent's consent, but considered that the district judge could apportion the pledge ex officio, or at the very least had to call upon the respondent under art. 56 CPC to amend its submissions, even though it was represented by a lawyer.
The Federal Supreme Court finds that the complaint is well-founded. According to case law (ATF 126 III 462 consid. 2b and 2c/bb; judgment 5A_299/2014 published in RNRF 2016 p. 136), a judge seized of a claim for registration of a statutory lien on the base property, where the condominium units are already encumbered, may not apportion the pledge ex officio among the units; it must dismiss the contractor's claim. The encumbered property must be the same for the provisional and the definitive registration. The respondent therefore could not, upon being called upon, amend its…