Is it possible to get my habilitation in France while being in industry?
Yes, you may obtain an habilitation as a non-academic, but in fact you may not need one, see below.

An habilitation is a diploma. You would need to register in the doctoral school of a University, so the right person to ask is the director of the doctoral school. I know at least one person who obtained an HDR while working for a company.

However, it is not a simple matter.
For example, the HDR procedure in Mathematics-Computer Science in Bordeaux has five steps before the defense:


File an application. Note that there are prerequisites, such as mandatory training in directing thesis work.
Evaluation of the application by the doctoral school.
Evaluation of the application by the University Academic Council
Formal response. If the response is positive, the candidate must complete their HDR within two years.
Registration as an HDR candidate and constitution of an examining committee.


Once awarded, and HDR confers the right to be sole advisor of a doctoral candidate. It is a sufficient but not necessary condition for applying for a professorship: formally, the prerequisite is a qualification aux fonctions which may be accorded to non-academics (Appendix 11).

Note that a scientist working in industry may co-direct a doctoral student, if at least one of the other director(s) (there may be two others) has an HDR. I don't have my draft of the décret on hand, but if I recall correctly it is not necessary that the scientist have an HDR.