The classic tarte au citron is tricky with wine, particularly if it’s home made. And the sharper and more lemony (and delicious) it is, the harder it is to find a good match.
Citrus flavours are difficult to match with wine, as I’ve mentioned before, but a classic lemon tart with its combination of sharpness and sweetness is particularly tricky. The better a tart is the more it will tend to strip the flavour out of any accompanying wine, so much so that it’s almost worth serving a shop-bought one (of which there are some very good examples) if you have a serious dessert wine to show off.
Look up any guide to food and wine matching and you’ll find a list of foods that are regarded as anathema to wine. I’ve done it myself but have come to the conclusion recently that the problems are often overstated.