Facts
The appellant, [X. SA] , a public limited company whose purpose is the investment and management of real and movable property, excluding banking operations, has a share capital of 50'000 CHF. Its sole administrator until 7 June 2011 was [A.] , who also occupies the property owned by the company at [B.] .
The tax returns for 2005 to 2007 reported modest taxable profits (745 CHF, 496 CHF and 872 CHF). After the company failed to respond to a request for information for 2005, the Vaud Office of Legal Entity Taxation (the Tax Office) imposed fines for procedural contravention (600 CHF for DFT and 300 CHF for ICC).
The 2005 accounts, produced in March 2009, showed a receivable of 1'000'000 CHF from the shareholder, corresponding to a loan at 6% granted under a contract dated 18 December 2004, without supporting documentation. The loan was presented as secured by a mortgage note of 2'500'000 CHF in fourth rank encumbering a property of [Y. SA] , as well as by a non-apparent assignment of development works. The company itself had borrowed 1'067'700 CHF from [E.] in Lucerne to finance this loan. A real estate development loan contract dated 11 March 2009, not signed by the parties, renewed the loan for an indefinite term and provided for a partial assignment of a 2'300'000 CHF claim against [Y. SA] .
By final assessment decisions of 25 June 2009 (2005) and then 24 February 2011 (2006 and 2007), the Tax Office classified the loan as a simulated loan, reversed the interest of 60'000 CHF per year, reduced the taxable capital by 1'000'000 CHF by treating it as a fictitious asset, and requalified as a hidden profit distribution the portion of the administrator's fees (96'000 CHF in 2005, 92'000 CHF in 2006, 97'560 CHF in 2007) exceeding 20'000 CHF per year. The Vaud Cantonal Tax Administration (the Cantonal Administration) rejected the objections on 9 July 2015.
By judgment of 22 April 2016, the Vaud Cantonal Court, Administrative and Public Law Division (the Cantonal Court), dismissed the company's appeal. The appellant brought a public law appeal before the Federal Supreme Court, alleging a violation of its right to be heard and seeking, in the alternative, that the loan not be classified as simulated and that the fees be accepted in light of commercial practice. The Cantonal Administration and the Federal Tax Administration request dismissal.
Main question: does the loan of 1'000'000 CHF granted by the company to its shareholder constitute a simulated loan, and may the fees paid to the shareholder be accepted as justified by commercial practice, or do they constitute a hidden profit distribution?
Considerations
As to admissibility, the Federal Supreme Court notes that the Cantonal Court issued a single decision for DFT and ICC, which is admissible (ATF 135 II 260). The two cases (2C_481/2016 and 2C_482/2016) are joined because of the identity of the facts and the connection between the legal questions (art. 71 FSCA and 24 FCPA). The public law appeal is admissible (art. 82 let. a, 86 para. 1 let. d, 89 para. 1, 90, 100 and 42 FSCA, art. 146 DFTA, art. 73 para. 1 DTHA), the matter being harmonised (art. 24 and 29 DTHA).
The complaint of violation of the right to be heard, which refers by reference to the brief filed before the Cantonal Court, is inadmissible: the reasoning of the appeal must be complete and it is not permissible to refer to submissions made before other authorities (judgment 2C_32/2016 consid. 10.2). These grounds are therefore not examined.
As to the administrator's fees, the flat-rate invoicing is not established by supporting documents, in violation of the principle of accounting regularity (art. 957a para. 2 no. 2 CO). No evidence demonstrates the reality of works enhancing the value of the property, whereas the company's sole activity consists of managing the property that serves as the shareholder's residence. The difference between the 20'000 CHF accepted and the amounts recorded constitutes a benefit without counter-performance, which the shareholder should have acknowledged. It is therefore a hidden profit distribution within the meaning of art. 58 para. 1 let. b DFTA, and the add-backs of 76'000 CHF (2005), 72'000 CHF (2006) and 77'560 CHF (2007) are justified.
As to the classification of a simulated loan, it is not disputed that the interest rate was in accordance with commercial practice. However, the company did not have the necessary equity and had to borrow at 6% to finance the loan, which is unusual. The loan represented more than 64% of total assets (1'541'500 CHF as at 31 December 2005) and constituted the largest asset, a non-negligible risk. The alleged market value of the property (6'000'000 CHF) is not demonstrated. The security is also doubtful: the mortgage note was never pledged, its rank is low, the unsigned 2009 contract cannot secure a 2004 claim and reveals that [Y. SA] still holds the mortgage note, and the assignment of works whose reality is not established has no demonstrated asset value. The granting of loans does not appear in the company's corporate purpose, which makes the loan unusual.
As to the solvency of the shareholder, the interest was posted to the debit current account, which suggests that it was…