Preheat the oven to 375°F (190°C).
In a 21 cm (9-inch) heavy, oven-safe skillet, sprinkle the sugar evenly. Add the butter cubes on top. Place over medium heat and cook without stirring until the sugar has mostly melted. Swirl the pan gently until the mixture turns a deep golden amber.
Add the salt and lemon juice, swirl again, and remove from the heat.
Arrange the apple wedges tightly in the caramel, core side facing up, starting from the outside and working toward the center. Pack them as tightly as possible; they will shrink as they cook.
Return the skillet to medium-low heat and cook the apples for 12–15 minutes, gently simmering. The apples should soften slightly, release their juices, and the liquid should reduce and thicken.
While the apples cook, roll out the pastry into a thin circle slightly larger than the skillet. Keep it chilled until needed.
Remove the pan from the heat. Lay the pastry over the apples, tucking the edges down along the inside of the pan so it wraps the apples like a blanket. Prick the pastry a few times with the tip of a knife to let steam escape.
Bake for 25–35 minutes, until the pastry is deep golden brown and caramel is bubbling around the edges.
Remove from the oven and let rest for 3–5 minutes. Place a large serving plate over the skillet and, using oven gloves, flip the tart in one confident motion. Carefully lift off the skillet and scrape any remaining caramel from the pan onto the apples.
Serve warm, plain or with softly whipped cream or ice cream.