Facts

The parties, [A.] (the appellant, the mother) and [B.] (the respondent, the father), are the unmarried parents of the child [C.] , born on 4 December 2012. Due to disagreements between the parents, the child protection authority had to order several superprovisional and provisional measures to regulate the father's visitation rights. On 22 June 2016, the child was provisionally placed in the foyer [D.] and [E.] , in [U.] .

By provisional measures order of 8 March 2017, notified on 21 March 2017, the Juge de paix of the district of Lausanne (the Juge de paix) ordered, among other things, the continuation of the inquiry into the modification of parental authority and the setting of visitation rights; confirmed the provisional withdrawal of the mother's right to determine the child's place of residence; maintained the Service de protection de la jeunesse (SPJ) as provisional holder of custody; invited the SPJ to submit a report within five months; provisionally set the visitation rights of both parents, in alternation, on one weekend in two and one evening per week within the foyer; and declined to entertain the mother's request to modify visitation rights filed on 9 February 2017.

Ruling on 7 July 2017, the Chambre des curatelles of the Cantonal Court of the canton of Vaud (the Chambre des curatelles) dismissed the mother's appeal against this decision.

By submission of 1 September 2017, the mother filed a civil law appeal with the Federal Supreme Court. Primarily, she seeks annulment of the judgment of the Chambre des curatelles and of paragraphs II to VI of the order, and immediate restitution of her right to determine the child's place of residence. Subsidiarily, she requests remittal of the case to the prior authority. The respondent seeks that the appeal be declared inadmissible, or alternatively dismissed.

The main ground concerns violation of the right to be heard (art. 29 para. 2 Cst. and art. 6 ECHR): the mother argues that the cantonal court based its decision on an SPJ report of 22 June 2017 that had not been communicated to her and that she discovered only upon reading the contested judgment.

Considerations

On admissibility, the Federal Supreme Court holds that the appeal was lodged in time and in the proper form (art. 100 para. 1, 46 para. 2 and 42 FSCA), against a non-pecuniary decision rendered in civil matters (art. 72 para. 1 FSCA) by a superior authority ruling as last cantonal instance (art. 75 FSCA). The decision is not interlocutory within the meaning of art. 93 para. 1 FSCA but final within the meaning of art. 90 FSCA, contrary to the respondent's contention. The appellant, having lost, has a legitimate interest worthy of protection (art. 76 para. 1 FSCA). The appeal is in principle admissible.

Provisional measures within the meaning of art. 98 FSCA may only be challenged for violation of constitutional rights, under the principle of allegation (art. 106 para. 2 FSCA; ATF 142 II 369 consid. 2.1; 141 I 36 consid. 1.3).

The right to be heard, an aspect of the right to a fair trial (art. 29 Cst. and art. 6 ECHR), guarantees in particular that a party has the right to inspect every document in the file and to respond to it, whether or not it contains new elements (ATF 142 III 48 consid. 4.1.1). It is for the parties, and not for the judge, to decide whether a new document calls for observations; any new document must therefore be communicated to them (ATF 139 I 189 consid. 3.2; 138 I 484 consid. 2.1). This is a formal guarantee whose violation in principle results in annulment of the decision, regardless of the prospects of success on the merits. However, the right to be heard is not an end in itself: annulment is not necessary where remittal would risk leading to a futile formality (judgment 5A_699/2014 consid. 3.1.3).

In this case, it appears from the contested…