Judgment of the Court (Fifth Chamber) of 20 June 2024.#SN and Others v Staatssecretaris van Justitie en Veiligheid.#Reference for a preliminary ruling – Freedom to provide services – Articles 56 and 57 TFEU – Posting of third-country workers by an undertaking of one Member State to carry out works in another Member State – Duration exceeding 90 days in a 180-day period – Obligation for the posted third-country workers to be holders of residence permits in the host Member State in the event that services are provided for more than three months – Limitation of the period of validity of the residence permits issued – Amount of the fees relating to the application for a residence permit – Restriction on the freedom to provide services – Overriding reasons in the public interest – Proportionality.#Case C-540/22.