FOR THE DOUGH
1 1/4 cups flour plus more for rolling
1/2 teaspoon sugar
1/2 teaspoon salt
1/2 cup (1 stick) cold unsalted butter or margarine, cut into pieces
2 to 4 tablespoons ice water
FOR THE FILLING
1/2 cup almonds
1/2 cup sugar
2 large eggs
4 tablespoons (1/2 stick) unsalted butter or margarine, room temperature
2 teaspoons flour
1/4 teaspoon vanilla extract
1/8 teaspoon salt
1 pound ripe fresh figs (about 16), stemmed and thinly sliced
1 tablespoon fresh lemon juice