Be cool like the adults!
Because of course big tobacco would do that. They were often sold in packs looking just like real cigarette packs, except with the word “Candy” on it. Some appeared to be fictional brands, and others were sold under the branding of real cigarette companies.

A 1990 study found that sixth graders who ate candy cigarettes were twice as likely to smoke cigarettes as those who did not eat candy cigarettes.
And,
Some products contain powdered sugar hidden in the wrapper, allowing the user to blow into the cigarette and produce a cloud of sugar that imitates smoke, which comes out of the other end.
They are still available in the US and Canada, although with some restrictions.


In France too. Maybe even the beginning of the 00s, but I’m not sure.
Looks like the wiki table doesn’t list France. Poland, though, still available today, according to that chart.
You can technically get them still in the US and Canada - well most of, but there are several states & provs who ban them outright. But they can’t be sold as branded cigarettes, so they are sold instead as “candy sticks” or similar. I found a photo of what those look like. Same product, cig branding out, superhero branding in. I’m not sure that’s much better.