\documentclass[french]{article}
\usepackage{babel}
\usepackage[T1]{fontenc}
\usepackage{lmodern,microtype}
\usepackage[left=2cm,right=2cm,top=2cm,bottom=2cm]{geometry}
\usepackage{pas-math}
\usepackage{multicol}
\usepackage{varwidth}
\usepackage{lastpage}
\usepackage{numprint}
\usepackage[colorlinks=true,linkcolor=black]{hyperref}
\usepackage{fancyhdr}
	\fancyfoot[C]{\fcolorbox{black}{gray!20}{\thepage~/~\pageref{LastPage}}}
	\renewcommand{\headrulewidth}{0pt}
	\renewcommand{\footrulewidth}{0pt}
	\fancyfoot[R,L]{\url{https://mathweb.fr}}
\usepackage{tcolorbox}
\tcbuselibrary{skins}

\tcbset{titre/.style={
	enhanced,
	hbox,
	tikznode,
	left=8mm,
	right=8mm,
	boxrule=0.4pt,
  	colframe=gray,
  	drop lifted shadow=black!50!gray,
  	before=\par\vspace*{5mm},
  	after=\par\bigskip,
  	interior style={
		draw=gray!25,
		top color=gray!10,
		bottom color=white}
	},	
	info/.style = { 
	colframe = white,
	colback=gray!10}
}

\newtcolorbox{consigne}[2][]{
	enhanced,%
	skin = enhancedlast jigsaw,
	attach boxed title to top left = {xshift=-4mm,yshift=-0.5mm},
	fonttitle = \bfseries\sffamily,
	varwidth boxed title = 0.7\linewidth,
	colbacktitle = gray!40,
	colframe = black,
	interior style={top color=gray!30,bottom color=gray!10},
	boxed title style={empty,arc=0pt,outer arc=0pt,boxrule=0pt},
	underlay boxed title={
	\fill[gray] (title.north west) -- (title.north east)
-- +(\tcboxedtitleheight-1mm,-\tcboxedtitleheight+1mm)
-- ([xshift=4mm,yshift=0.5mm]frame.north east) -- +(0mm,-1mm)
-- (title.south west) -- cycle;
\fill[gray!50!black] ([yshift=-0.5mm]frame.north west)
-- +(-0.4,0) -- +(0,-0.3) -- cycle;
\fill[gray!50!black] ([yshift=-0.5mm]frame.north east)
-- +(0,-0.3) -- +(0.4,0) -- cycle; },
title={#2},#1}



\usepackage{enumitem}
	\setlist[enumerate,1]{label=\fcolorbox{black}{gray!50}{\bfseries\arabic*}}

\setlength{\parindent}{0pt}


%%% redéfinition du titre

\makeatletter
\def\@maketitle{%
  \newpage
  \null
  \begin{center}
  \begin{tcolorbox}[titre]
  	\begin{minipage}{0.75\linewidth}
  		\begin{center}%
    	{\fontfamily{lmss}\bfseries\selectfont\LARGE \@title \par}%
    	\vskip .5em%
    	{\large
      	\lineskip .5em%
        \fontfamily{lmss}\selectfont\@author
      	\par}%
    	\vskip 1em%
    	{\fontfamily{lmss}\itshape\selectfont \@date}
  		\end{center}%
  		\par
 		 \vskip 1.5em
    \end{minipage}
    \end{tcolorbox}
    \end{center}}
    
\newsavebox{\tmp@casebox}
\sbox{\tmp@casebox}{$\square$}
\newlength\tmpwidth
\newcommand{\checkbox}[1]{%
	\settowidth{\tmpwidth}{\usebox{\tmp@casebox}}
	$\square$\kern-\tmpwidth\scalebox{1.2}{\color{#1}$\checkmark$\kern-4pt}
}

\makeatother


%%%
\begin{document}
\title{Intervalles}
\author{Seconde générale}
\date{\today}
\maketitle
\thispagestyle{fancy}
\begin{consigne}{Réponses}
Vous trouverez ci-dessous les réponses correctes.
\end{consigne}
\begin{enumerate}
\item \bgroup\bfseries\boldmath Si $-3 \leqslant x < 2$ alors $x$ appartient à l'intervalle:\egroup
\begin{enumerate}
\begin{multicols}{4}
\item[$\square$] \intervFF{-3}{2}
\item[\checkbox{red}] \intervFO{-3}{2}
\item[$\square$] \intervOF{-3}{2}
\item[$\square$] \intervOO{-3}{2}
\end{multicols}
\end{enumerate} % fin des propositions de la question 1

\bigskip

\item \bgroup\bfseries\boldmath Si $7 < x < 9$ alors $x$ appartient à l'intervalle:\egroup
\begin{enumerate}
\begin{multicols}{4}
\item[$\square$] \intervFF{7}{9}
\item[$\square$] \intervFO{7}{9}
\item[$\square$] \intervOF{7}{9}
\item[\checkbox{red}] \intervOO{7}{9}
\end{multicols}
\end{enumerate} % fin des propositions de la question 2

\bigskip

\item \bgroup\bfseries\boldmath Si $-8 < x \leqslant -4$ alors $x$ appartient à l'intervalle:\egroup
\begin{enumerate}
\begin{multicols}{4}
\item[$\square$] \intervFF{-8}{-4}
\item[$\square$] \intervFO{-8}{-4}
\item[\checkbox{red}] \intervOF{-8}{-4}
\item[$\square$] \intervOO{-8}{-4}
\end{multicols}
\end{enumerate} % fin des propositions de la question 3

\bigskip

\item \bgroup\bfseries\boldmath Si $-1 \leqslant x \leqslant 1$ alors $x$ appartient à l'intervalle:\egroup
\begin{enumerate}
\begin{multicols}{4}
\item[\checkbox{red}] \intervFF{-1}{1}
\item[$\square$] \intervFO{-1}{1}
\item[$\square$] \intervOF{-1}{1}
\item[$\square$] \intervOO{-1}{1}
\end{multicols}
\end{enumerate} % fin des propositions de la question 4

\bigskip

\item \bgroup\bfseries\boldmath Si $x>6$ alors $x$ appartient à l'intervalle:\egroup
\begin{enumerate}
\begin{multicols}{4}
\item[$\square$] \intervOO{-\infty}{6}
\item[$\square$] \intervOF{-\infty}{6}
\item[\checkbox{red}] \intervOO{6}{+\infty}
\item[$\square$] \intervFO{6}{+\infty}
\end{multicols}
\end{enumerate} % fin des propositions de la question 5

\bigskip

\item \bgroup\bfseries\boldmath Quel est l'intervalle $I$ représenté ci-dessous:\enlargethispage*{10mm}\begin{center}\begin{tikzpicture}\draw[->,>=latex] (-7,0) -- (7,0);\foreach\x in {-6,-5,-4,-3,-2,-1,0,1,2,3,4,5,6} { \draw (\x,0.1) -- (\x,-.1) node[below] {$\x$}; }\draw[thick,blue!70!green] (-2,0) -- (5,0);\draw[thick,blue!70!green] (-2.1,0.2)--(-2,0.2)--(-2,-0.2)--(-2.1,-0.2);\draw[thick,blue!70!green] (4.9,0.2)--(5,0.2)--(5,-0.2)--(4.9,-0.2);\end{tikzpicture}\end{center}\egroup
\begin{enumerate}
\begin{multicols}{4}
\item[$\square$] \intervFF{-2}{5}
\item[$\square$] \intervFO{-2}{5}
\item[\checkbox{red}] \intervOF{-2}{5}
\item[$\square$] \intervOO{-2}{5}
\end{multicols}
\end{enumerate} % fin des propositions de la question 6

\bigskip

\item \bgroup\bfseries\boldmath Quel est l'intervalle $J$ représenté ci-dessous:\begin{center}\begin{tikzpicture}\draw[->,>=latex] (-7,0) -- (7,0);\foreach\x in {-6,-5,-4,-3,-2,-1,0,1,2,3,4,5,6} { \draw (\x,0.1) -- (\x,-.1) node[below] {$\x$}; }\draw[thick,blue!30!green] (-4,0) -- (2,0);\draw[thick,blue!30!green] (-3.9,0.2)--(-4,0.2)--(-4,-0.2)--(-3.9,-0.2);\draw[thick,blue!30!green] (2.1,0.2)--(2,0.2)--(2,-0.2)--(2.1,-0.2);\end{tikzpicture}\end{center}\egroup
\begin{enumerate}
\begin{multicols}{4}
\item[$\square$] \intervFF{-4}{2}
\item[\checkbox{red}] \intervFO{-4}{2}
\item[$\square$] \intervOF{-4}{2}
\item[$\square$] \intervOO{-4}{2}
\end{multicols}
\end{enumerate} % fin des propositions de la question 7


\newpage
\thispagestyle{fancy}

\item \bgroup\bfseries\boldmath En reprenant les intervalles $I$ et $J$ des deux questions précédentes, quel est l'ensemble $I \cap J$ ?\egroup
\begin{enumerate}
\begin{multicols}{4}
\item[$\square$] \intervFF{-4}{5}
\item[$\square$] \intervOF{-2}{2}
\item[\checkbox{red}] \intervOO{-2}{2}
\item[$\square$] \intervFO{-2}{2}
\end{multicols}
\end{enumerate} % fin des propositions de la question 8

\bigskip

\item \bgroup\bfseries\boldmath En reprenant ces mêmes intervalles $I$ et $J$, quel est l'ensemble $I \cup J$ ?\egroup
\begin{enumerate}
\begin{multicols}{4}
\item[\checkbox{red}] \intervFF{-4}{5}
\item[$\square$] \intervOF{-2}{2}
\item[$\square$] \intervOO{-2}{2}
\item[$\square$] \intervFO{-2}{2}
\end{multicols}
\end{enumerate} % fin des propositions de la question 9

\bigskip

\item \bgroup\bfseries\boldmath Quel est l'ensembe correspondant à $\intervFF{-3}{1} \cap \intervOO{1}{5} $ ?\egroup
\begin{enumerate}
\begin{multicols}{4}
\item[$\square$] \intervFO{-3}{5}
\item[$\square$] \intervOF{-3}{5}
\item[$\square$] $\{1\}$
\item[\checkbox{red}] $\varnothing$
\end{multicols}
\end{enumerate} % fin des propositions de la question 10

\bigskip

\item \bgroup\bfseries\boldmath Quel est l'ensembe correspondant à $\intervFF{-3}{1} \cup \intervOO{1}{5} $ ?\egroup
\begin{enumerate}
\begin{multicols}{4}
\item[\checkbox{red}] \intervFO{-3}{5}
\item[$\square$] $\intervFO{-3}{5}\setminus\{1\}$
\item[$\square$] ${1}$
\item[$\square$] $\varnothing$
\end{multicols}
\end{enumerate} % fin des propositions de la question 11

\bigskip

\item \bgroup\bfseries\boldmath $I=\intervOO{-1}{2}$ et $J=\intervOO{1}{+\infty}$. Alors, $I \cap J = \ldots$:\egroup
\begin{enumerate}
\begin{multicols}{4}
\item[\checkbox{red}] \intervFO{1}{2}
\item[$\square$] \intervFF{1}{2}
\item[$\square$] \intervOO{-1}{1}
\item[$\square$] \intervOO{-1}{+\infty}
\end{multicols}
\end{enumerate} % fin des propositions de la question 12

\bigskip

\item \bgroup\bfseries\boldmath $I=\intervOO{-1}{2}$ et $J=\intervOO{1}{+\infty}$. Alors, $I \cup J = \ldots$:\egroup
\begin{enumerate}
\begin{multicols}{4}
\item[$\square$] \intervFO{1}{2}
\item[$\square$] \intervFF{1}{2}
\item[$\square$] \intervOO{-1}{1}
\item[\checkbox{red}] \intervOO{-1}{+\infty}
\end{multicols}
\end{enumerate} % fin de la question 13
\end{enumerate} % fin du qcm
\end{document}