01 - Preheat oven to 350°F. Grease a 9-inch tart pan with a removable bottom.
02 - Combine flour, cocoa powder, powdered sugar, and salt in a bowl. Cut in cold butter until mixture resembles coarse crumbs. Add egg yolk and 2 tablespoons ice water, mixing until dough just forms, adding extra water if necessary.
03 - Press dough evenly across bottom and sides of tart pan. Prick base with fork and freeze for 10 minutes.
04 - Bake crust for 15 minutes until set. Remove and cool completely.
05 - Heat heavy cream, milk, and butter in a saucepan over medium heat just until simmering. Remove from heat, add chopped chocolate, and let stand for 2 minutes. Stir until smooth.
06 - Whisk in sugar, vanilla, salt, and eggs until fully combined and glossy.
07 - Pour filling into cooled crust and bake at 350°F for 15 to 18 minutes until edges are set and center is slightly wobbly.
08 - Cool tart on wire rack, then refrigerate for at least one hour to firm.
09 - Garnish with fresh raspberries and dust with powdered sugar, if desired.