If you already went through team flare's hideout in lumiose city, head to geosendge town to the northwest. There should be a path that leads you to team flare's secret hideout. Be prepared to fight lots of team flare grunts. You should have seven gym badges by now.