Sieve the flour into a bowl. Add 1 tsp salt, butter in flakes and 4-5 tbsp ice-cold water and knead until smooth. Chill for about 30 minutes.
Clean, wash and drain the spinach. Peel and chop onions and garlic. Heat the oil in a wide saucepan. Brown the onions and garlic in it. Add the spinach and let it collapse. Salt and pepper.
Let drip off, squeeze.
Grate parmesan. Wash and chop parsley and thyme. Mix crème fraîche, egg yolk, 50 g parmesan and herbs. Season to taste.
Roll out the dough on a floured surface 2 mm thin and place on a baking tray lined with baking paper. Pre-bake in a hot oven (electric cooker: 200 °C/ convection oven: 175 °C/gas: level 3) for 20 minutes.
Take it out. Spread spinach, ricotta and herb cream on top. Sprinkle with the rest of the parmesan. Bake for another 20 minutes.