Facts
The heirs of [L.] own two adjacent parcels (nos. 278 and 279) located in the territory of the Commune of Begnins, classified as residential zone I under the general land-use plan and the regulations of the general land-use plan and building police (RPGAPC). They entered into a promise of sale with [A. AG] (hereinafter: the builder).
On 30 November 2015, the builder, acting on behalf of the owners, applied for a building permit for six similar residential buildings with an underground car park, following the merger of the two parcels and the demolition of an existing house. The project is located on sloping terrain. Each building comprises a ground floor, a first floor and an attic topped by a flat roof. On the downhill façade, the attic is set back; on the uphill façade, it is aligned with the first floor, the latter and the attic being the only visible elements at the rear due to the slope. The plans illustrate, in red dashed lines, a hypothetical asymmetric double-pitched roof intended to demonstrate that the attic fits within the regulatory envelope of a pitched roof with habitable attic space (arts. 3.7, 3.10 and 12.38 RPGAPC).
Put to public inquiry from 18 December 2015 to 18 January 2016, the project was subject to objections from neighbouring owners ([B.B.] and [C.B.] , [D.] , [E.] , [F.] , [H.H.] and [I.H.] , [J.J.] and [K.J.] , as well as [G.] ). By decisions of 26 October 2016, the Municipality of Begnins (hereinafter: the commune) dismissed the objections and granted the building permit (dated 20 October 2016). The objectors appealed to the Court of Administrative and Public Law of the Vaud Cantonal Court.
By judgment of 21 August 2017, the Cantonal Court upheld the appeal and annulled the permit. It held that the third level (attic) exceeded, on the uphill side (north façade), the heights permitted under the RPGAPC. The other grievances were left undecided.
The commune and the builder each lodged a public law appeal with the Federal Supreme Court, seeking confirmation of the decision of 26 October 2016 and, in the alternative, remittal of the case. The Cantonal Court referred to its considerations. The respondents seek dismissal of the appeals. The commune and the builder have mutually joined in each other's appeals.
Considerations
The Federal Supreme Court joins the two proceedings (1C_499/2017 and 1C_500/2017) in the interests of procedural economy (art. 24 FCPA and 71 FSCA). It examines admissibility: the cantonal judgment is a final decision rendered as the last cantonal instance in the field of public building law (arts. 90, 86 para. 1 let. d, 82 let. a FSCA). The commune has standing under art. 89 para. 2 let. c FSCA, invoking its municipal autonomy (art. 50 para. 1 Cst.), the question of the scope of that autonomy being a matter of substance. The builder, a party to the cantonal proceedings and directly affected by the annulment of its permit, has standing to appeal (art. 89 para. 1 FSCA). The appeals are admissible.
On the merits, the appellants allege arbitrary application of arts. 3.7, 3.9 and 12.18 RPGAPC and a violation of municipal autonomy. The Federal Supreme Court recalls that municipal autonomy is guaranteed in areas that cantonal law does not regulate exhaustively (art. 50 para. 1 Cst.). Under Vaud law, municipalities are autonomous in defining the use of their territory through plans and in applying building law (art. 139 para. 1 let. d Cst-VD; arts. 2 para. 2 and 86 LATC). Cantonal law fixes neither the height nor the number of permissible levels, nor the form of roofs; aesthetics fall solely within municipal law.
Where the commune interprets its regulations and assesses local circumstances when granting a permit, it enjoys a particular freedom of assessment, which the appellate authority reviews with restraint. The appellate body must respect a municipal decision based on a tenable and duly reasoned assessment, and may replace it with its own assessment only if it is objectively untenable or contravenes superior law. The Federal Supreme Court freely examines whether the cantonal authority has respected this latitude of judgment.
On height, the Cantonal Court set the lower reference point of the uphill façade at the same level as that of the downhill façade (ground floor), which leads to a height exceeding 8 m. The Federal Supreme Court notes, however, that art. 12.18 RPGAPC measures height to the eaves or ridge only on the downhill façade, with no mention of the uphill façade or of a reference point for it. Throughout the regulations (arts. 3.5 and 3.8 RPGAPC), measurement on the downhill façade alone suffices to determine the maximum envelope; the commune's literal interpretation is therefore tenable, indeed preferable.
The Federal Supreme Court accepts that the attic does not strictly fit within a habitable-roof envelope in the sense…