I need to use \phantom for an argument and to deactivate it just sometimes to show only the numbers of enumerates. I spend a lot of time and I tried many things but I can't achieve it. Here is a minimal example (for xelatex) which I know it can't work but it show the quite simple idea :
\documentclass{article}
\usepackage{polyglossia}\setmainlanguage{french}
\begin{document}
\newcommand{\fantome}[1]
{
\begin{phantom}
#1
\end{phantom}
}
\let\itemold\item
\renewcommand{\item}{
\end{phantom}
\itemold
\begin{phantom}
}
Ici les questions.\
\fantome{Ici les réponses.
\begin{enumerate}
\item Réponse 1.
\item Réponse 2.
\end{enumerate}
}
\end{document}
Here is the output I would like to have:
I tried to be concise but I can explain more if needed.

\newcommand{\fantome}[1]{\phantom{#1}}– Mico Aug 21 '20 at 15:05