Thieves in France used a stolen bank card to buy a winning lottery ticket worth 500,000 euros (£414,000).