\documentclass[a4paper,french]{article}
\usepackage{babel}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}

%package maths
\usepackage{amsmath,amssymb,amsfonts,mathtools,amsthm, pgfmath, mathabx ,amssymb,amscd}
\usepackage{xlop} %package pour poser une addition
\usepackage{fp,xfp}%calcul sur variable


\usepackage[dvipsnames,table]{xcolor}

%\usepackage{transparent}

%package physique
\usepackage{pst-all,pst-circ,pst-labo,pst-osci}%affichage de schéma de physique
\usepackage[version=4]{mhchem}%formule chimique

\usepackage{multicol}
\usepackage{makecell}
\usepackage{tabularx}
\usepackage{tikz}%
\usepackage{pstricks-add}%apporte des améliorations et charge pstricks et multido
%\usepackage{needspace}%permet de vérifier l'espace restant avant d'aficher le texte sinon saut de page
%\usepackage{numprint}%permet de vérifier l'espace restant avant d'aficher le texte sinon saut de page
\usepackage{xstring}%manipulation de chaine de caractere
\usepackage{listofitems}
\usepackage{pgfkeys}

\usepackage{boxedminipage2e}%% pour encadrer la zone de réponse

\usetikzlibrary{arrows,patterns}
\usepackage{wrapfig}
\usepackage{numprint}
\usepackage{etoolbox}

\usepackage{pifont}%symboles

%\usepackage[francais,chiffres,insidebox]{automultiplechoice}
\usepackage[francais,chiffres,insidebox,correcindiv]{automultiplechoice}
\usepackage{cleveref}
%\usepackage{calc} % pour soustraire des dimensions
\usepackage{frcursive}%police lettres attachées
\usepackage{ulem}% pour souligner avec \uline{}  \uuline{textesouligne2fois} \sout{texte barré} \xout{texte hachuré}\uwave{textesouligneparvague}
%\usepackage{textcomp}%pour resoudre bug entre siunit et babel
\usepackage[left,modulo]{lineno}%pour numeroter les lignes
%\geometry{hmargin=1cm,top=2.5cm,bottom=1.5cm}% si mode normal
\geometry{hmargin=1cm,top=3.5cm,bottom=1.5cm}% autre mode anonyme
\usepackage[scientific-notation=true]{siunitx}	% Pour commande \formatscientifique
%\usepackage{etoolbox}
\usepackage{needspace}

\usepackage{csvsimple}%pour préremplir les copies avec un fichier csv


\newcommand\hole[1]{\texttt{\_}}
\newcommand{\blanc}{\textcolor{white}}



\usetikzlibrary{positioning}

\tikzset{basic/.style = {draw,text width=2cm, rectangle,align=center}}
\tikzset{trait/.style = {line width=2pt,gray}}
\tikzset{fleche/.style = {trait,>=stealth,->}}

	%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
	%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
	%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
	%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%


 
	%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%   
	%   																					 %
	%   																					 %
    %								AFFICHAGE CORRECTION									 %
 	%   																					 %
	%   																					 %
	%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

	%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%NE FONCTIONNE PAS
	%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%NE FONCTIONNE PAS
	%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%NE FONCTIONNE PAS


	%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
	%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
	%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

\makeatletter
\renewcommand{\explain}[1]{ %
    \ifAMC@correc%
    \AMCif@env{question}{\par\noindent{\AMC@loc@explain #1}}{\AMC@error@explain}\vspace{1ex}%
    \else%
    \AMCif@env{question}{}{\AMC@error@explain}%
    \fi%
}
\makeatother

%%pour afficher ailleurs que dans une question
%explain ne fonctionne que dans les environnement question ou questionmult.
%une commande qui fonctionne.
\makeatletter
\newcommand{\AffichageSiCorrige}{\ifAMC@correc \color{black}  \else \color{white}\fi}
\makeatother

	%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
	%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%


	%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
	%
	%						CONFIGURATION DE AMC
 	%
	%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

%%%%BAREME

			%e: incohérence (plusieurs cases cochées)	p: note plancher
			%b: bonne	%m: mauvaise	%v: aucune réponse
	%%%bareme question multiple
	\baremeDefautM{v=0, p=0,formula=(NBC-NMC)}%

	%%% bareme question simple
	\baremeDefautS{b=1, m=0, e=0, v=0, MAX=1}%

%%%CONFIG AFFICHAGE

	\mathcode`\.="013B %separateur décimal pour math

	%pour effacer le numéro de la question
	\def\EffNumQ{%
		\def\AMCbeginQuestion##1##2{}\AMCquestionNumberfalse}%

	%modifie le titre de la question et le positionnement de la reponse par rapport aux réponses
	\renewcommand{\AMCbeginQuestion}[2]{%
		\noindent%
		\cornersize{9}{\setlength{\fboxsep}{.6mm}%
		\Ovalbox{\bf Q.#1}#2}}%\thesection.
	%\def\AMCbeginQuestion#1#2{\par\noindent{\bf Question \thesection.#1} #2\hspace*{1em}}

	%Position de la note
	\AMCsetScoreZone{width=1.5em,height=1.5ex,depth=.0ex,position=question}

	%enlève les lettres dans les cases quand insidebox est actif
	\def\AMCchoiceLabel#1{}

	%inserer un numéro de page
	\AMCsetFoot{| Devoir de Sciences Physiques | Sujet \AMCStudentNumber ~~%
		|~ Page : \thepage ~/ \AMCpageref{dernierepage}~|}%

	%%position du code +1/1/59
	\AMCidsPosition{pos=none,width=0cm,height=3ex}
	
	%Change Explication en réponse |et reservé
	\AMCtext{explain}{Réponse}%
	\def\AMCotextReserved{\emph{Réservé}}

	%Pour configurer les questions ouvertes
	\AMCopenOpts{width=\linewidth, lineheight=0.2cm, framerulecol=white,%
	boxframerulecol=white, hspace=.3cm, dots=true,boxmargin=0.6ex}%
	
	%%%Options des cases à cocher
	\AMCboxStyle{shape=oval,size=2ex,down=.1ex,rule=.1pt}

	%Options de AMCnumeriqchoice
	\AMCnumericOpts{vertical=false,borderwidth=1mm,bordercol=gray,hspace=1ex,%
		vspace=-1pt,backgroundcol=white,Tpoint=$\mathbf{\prime}$\vspace*{-.1em}}

	\AMCinterBquest=1ex%modifie l'espace entre deux questions si l'option bloc est choisie
	\AMCinterIquest=1ex%modifie l'espace entre les questions si l'option bloc n'est pas choisie
	\AMCinterBrep=-.1ex%modifie l'espace entre les réponses si l'option bloc est  choisie 
	\AMCinterIrep=-.1ex%modifie l'espace entre les réponses si l'option bloc n'est pas choisie

	\AMCcodeHspace=.4em%configuration espacement du codage nom
	\AMCcodeVspace=-.6em%configuration espacement du codage nom

	%Changer la police par défaut en police sans sérif (sans empatements) pour adapter
	%le document aux élèves dyslexiques ... :
	\renewcommand{\familydefault}{\sfdefault}

	%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
	%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%


	%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
	%
	%
    %							ENTETE AUTOMATIQUE
 	%
	%
	%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\newcommand{\entete}{% mode prérempli
	\vspace*{-1.3cm}
	\hspace{.33\linewidth}
	\begin{minipage}{.7\linewidth}
	\champnom{\fbox{    
		\begin{minipage}{.5\linewidth}
        	\bf\classe{}~\nom{}
        	\newline
        	\prenom{}%
		\end{minipage}
	}}
	\begin{minipage}{.6\linewidth}
		\vspace*{-2cm}	\hspace*{7.5cm}
		\texteHautDroite
				\end{minipage}
				\end{minipage}
\vspace*{.1cm}
}

\newcommand{\AMCenTeteNomPrenom}[1][student]{\noindent% mode codage num étudiant
	\hspace{.36\linewidth}
	\begin{minipage}{.35\linewidth}%\vspace{-.3cm}
			\vspace*{-1.cm}
\champnom{\fbox{    
    		\begin{minipage}{1\linewidth}
				\begin{center}
	      			Nom, prénom et classe : 
	      		\end{center}
	      		\dotfill	
	      		
      			\hfill \small Numéro étudiant $\Longrightarrow$
   			\end{minipage}
		}}
	\end{minipage}
	\begin{minipage}{.01\linewidth}
		~
	\end{minipage}
	\begin{minipage}{.36\linewidth}
		\vspace*{-2cm}
		\texteHautDroite
		\AMCcodeH{#1}{4}
	\end{minipage}
	\vspace*{-.1cm}
}

\newcommand{\AMCenTeteAnonymat}[1][student]{\noindent% mode anonyme
	
	\vspace*{-3.5cm}
	\large Numéro d'étudiant .............~~~|~~~
	Nom .............................~~~|~~~
	Prénom ..........................
	\textbf{Sujet \AMCStudentNumber ~~}\normalsize{}

	\noindent
	\begin{tikzpicture}[thick,dash pattern=on 2mm off 1mm]
		\draw[dash phase=0mm] (0,0pt) -- (\linewidth,0pt) node[near start]{\includegraphics[scale=.012]{Images/Ciseaux}}
													  	  node[midway]{\includegraphics[scale=.012]{Images/Ciseaux}}
													      node[near end]{\includegraphics[scale=.012]{Images/Ciseaux}};
	\end{tikzpicture}
	\vspace*{-.3cm}

	\begin{minipage}{.58\linewidth}
		~
	\end{minipage}		
	\begin{minipage}{.1\linewidth}
		\AMCcodeH{#1}{4}%
	\end{minipage}
	\begin{minipage}{.26\linewidth}
\texteHautDroite	
\end{minipage}
	\vspace*{.2cm}
}	
	
	%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
	%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

	%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
	%
    %				COMMANDE AFFICHAGE CONSIGNES
 	%   
	%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

\newcommand{\DureeConsignes}[3]{%
			% #1 Durée
			% #2 1 2 ou 3 (trois formats de consignes différentes)
			% #3 texte à ajouter possible
			%
			\vspace{1mm}
	
	\ifthenelse{\equal{#2}{1}}%afficahge durée sans consigne  #2 = 1
		{\fbox{ Durée : #1 minutes.~~~~\hfill #3}}
		{\ifthenelse{\equal{#2}{2}}%affichage consigne simplifiée  #2 = 2
			{\noindent\fbox{\noindent\begin{minipage}[c]{.99\linewidth}%
			\begin{itemize}%
				\begin{minipage}{12.7cm}%
			    	\item Vous devez colorier ENTIEREMENT les cases au %
			    		\textbf{stylo bleu ou noir} pour répondre aux questions. %
			    		En cas d'erreur, effacez au \og{}blanco\fg{} %
			    		\uline{\emph{mais ne pas redessiner la case}}.%
			  	\end{minipage}%
				\hfill\begin{minipage}{5cm}%
			   		\begin{center}%
						\begin{tabularx}{\linewidth}{|c|XXXX|}%
			    			%\hline%
    						%\multicolumn{5}{|c|}{Les cases doivent \^etre colori\'ees}\\% 
							\hline%
							correct & \multicolumn{4}{|c|}{incorrect}\\%
							\hline%
							$\blacksquare$ &\tikz{\draw (0,0) rectangle (0.24,0.24) ;%
								\draw(0.15,0.14)node[scale=0.6]{$\checkmark$} }&%
								$\boxdot$ & $\boxplus$ & $\boxtimes$ \\%
							\hline%
						\end{tabularx}\hfill
   					\end{center}
				\end{minipage}
					\vspace{.3cm}
  					\item \vspace{-6pt}Les questions \textbf{\emph{sans}} le symbole %
  						\multiSymbole{} signifient qu'il n'y a \textbf{\emph{qu'une seule}} réponse. %
  					\item Les questions \textbf{\emph{avec}} le symbole \multiSymbole{} signifient %
  				qu'il y a 	\textbf{\emph{plusieurs}} réponses. %
 			\end{itemize}\vspace{-2ex}%
 			\begin{center} %
 				\hfill Durée : #1 minutes.\hfill #3%\null%
			\end{center}%
			\end{minipage}}%
			}
			{		\noindent\fbox{\begin{minipage}[c]{.99\linewidth}
		 	\begin{itemize}
				\begin{minipage}{12cm}
		    		\item Vous devez colorier les cases au stylo bleu ou noir %
		    			pour répondre aux questions.\newline En cas d'erreur, effacez %
		    			au \og{}blanco\fg{} \emph{mais ne pas redessiner la case}.%
		 		\end{minipage}
				\begin{minipage}{5cm}
		   			\begin{center}
						\begin{tabularx}{\linewidth}{|c|XXXX|}
		    				\hline
		    				\multicolumn{5}{|c|}{Les cases doivent \^etre colori\'ees}\\     
							\hline
							correct & \multicolumn{4}{|c|}{incorrect}\\
							\hline
							$\blacksquare$ &\tikz{\draw (0,0) rectangle (0.23,0.23) ;%
								\draw(0.15,0.17)node[scale=0.9]{$\checkmark$} } %
								& $\boxdot$ & $\boxplus$ & $\boxtimes$ \\%
							\hline%
						\end{tabularx}\hfill%
		  			\end{center}%
				\end{minipage}%
		  		\item \vspace{-6pt}Les questions \textbf{\emph{sans}} le symbole %
		  			\multiSymbole{} signifient qu'il n'y a \textbf{\emph{qu'une seule}} %
		  			réponse. %
		  		\item Les questions \textbf{\emph{avec}} le symbole \multiSymbole{} %
		  			signifient qu'il y a \textbf{\emph{plusieurs}} réponses. %

				\begin{minipage}{10.5cm}
	 				\item \vspace{2pt}Certaines questions demande une réponse mathématique %
	 					chiffrée.\\Ce résultat devra être donné sous forme d'un code : %
	 					\emph{1 chiffre par ligne}. \\Dans l'exemple ci-conte, le nombre %
	 					+25,32 a été codé.
				\end{minipage}
				\begin{minipage}{5cm}\vspace{-3ex}\hspace{3ex}
	  				\includegraphics[scale=0.45]{Images/ExempleCodage.eps}
				\end{minipage}
	 		\end{itemize}\vspace{-1ex}
			\begin{center} 
	 			\hfill Durée : #1 minutes.\hfill #3
			\end{center}
		\end{minipage}}	
		}
	}
}

	%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
	%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%


	%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
	%
    %				COMMANDE RESPECT CONSIGNES
 	%   
	%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

\newcommand{\insertRespectconsigne}[1]{ %
		%#1 : 1 affiche 4 cases (barême habituel)
		%	  sinon affiche 2 cases et ne note pas la compétence si aucune case cochée
		%	  Cométence transversale "S'investir-2"
		%
	\AMCboxStyle{shape=square,size=2ex}%
	\IfEq{1}{#1}{%
		\begin{question}{Inv-2:respectConsignes}%
		 	\AMClabel{respectConsignes}  \AMCdontAnnotate%
		 	\xdef\ListeInvDEUX{\ListeInvDEUX,\AMCstudentlabel{respectConsignes}}%
			\def\AMCbeginAnswer{}\def\AMCendAnswer{}%
			Respect des consignes ( cases noircies complètement, feuille non abîmée ...)
			\hfill%
			\fcolorbox{white}{Inv-2}{\textbf{Réservé}~
				\begin{reponsesperso}[o]
					\mauvaise{MI~}\bareme{0}%
					\mauvaise{MF~}\bareme{.33}%
					\mauvaise{MS~}\bareme{.66}%
					\bonne{TBM}\bareme{1}
				\end{reponsesperso}%
				~Inv-2}%
	 	\end{question}%
	}%
	{%
    	\begin{question}{Inv-2:respectConsignes}%
     		\bareme{p=0,v=1.01,MAX=1}
    		\AMCdontAnnotate%
        	\AMClabel{respectConsignes}
        	\xdef\ListeInvDEUX{\ListeInvDEUX,\AMCstudentlabel{respectConsignes}}
			\def\AMCbeginAnswer{}\def\AMCendAnswer{}%
Respect des consignes ( cases noircies complètement, feuille non abîmée ...)\hfill \fcolorbox{white}{Inv-2}{\textbf{Réservé}~\begin{reponsesperso}[o]\mauvaise{MI~}\bareme{0}\bonne{MF~}\bareme{0.33}\end{reponsesperso}%    
     ~Inv-2}
     \end{question}
 }

}

	%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%



	%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%   
	%   																					 %
	%   																					 %
    %								 REDACTION VOCABULAIRE									 %
 	%   																					 %
	%   																					 %
	%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

\newcommand{\insertRedactionPhrase}[1]{ %

 	\FPeval{\baremeDEUXRedac}{round(#1*.33,2)}%
 	\FPeval{\baremeTROISRedac}{round(#1*.66,2)}%
 	\FPeval{\baremeQUATRERedac}{round(#1,2)}%
 	\FPeval{\baremeAffichage}{round(#1,0)}%
 	%
 	\AMCboxStyle{shape=square,size=2ex}%
	\begin{question}{Lan-2:RedactionCorrecte}\bareme{MAX=\baremeAffichage}%
 		\AMClabel{RedactionCorrecte}%
 		\xdef\ListeLanDEUX{\ListeLanDEUX,\AMCstudentlabel{RedactionCorrecte}}%
		\def\AMCotextReserved{Lan-2}	\AMCboxStyle{rule=0pt}\vspace{-5pt}%
		\AMCOpen{lineup=true,backgroundcol=Lan-2,framerulecol=lightgray!30%
		%,lineuptext={(\baremeAffichage pts)	Formuler des phrases en utilisant %
		,lineuptext={Formuler des phrases en utilisant %
			le vocabulaire approprié.}}%
			{\hfill\fcolorbox{Lan-2}{Lan-2}{\textbf{Réservé~~}%
			\mauvaise{MI}{\hspace{-.25cm}MI~}\bareme{0}%
			\mauvaise{MF}{\hspace{-.25cm}MF~}\bareme{\baremeDEUXRedac}%
			\mauvaise{MS}{\hspace{-.25cm}MS~}\bareme{\baremeTROISRedac}%
			\bonne{TBM}{\hspace{-.25cm}TBM}\bareme{\baremeAffichage}%
			}}%
 	\end{question}
}

	%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
	%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%


	%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
	%
	%
    %							 Manipulation correcte
 	%
	%
	%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

\def\insertManipCorrecte{ %
%
	\AMCboxStyle{shape=square,size=2ex}%
\begin{question}{App-3:ManipulationCorrecte}\bareme{v=.75,e=0}
 	\AMClabel{ManipulationCorrecte}\xdef\ListeAppTROIS{\ListeAppTROIS,\AMCstudentlabel{ManipulationCorrecte}}
	\def\AMCotextReserved{~App-3~}\AMCboxStyle{rule=0pt}\vspace{-5pt}
	\AMCOpen{lineup=true,lineuptext={Planifier une tache expérimentale, organiser son espace de travail.}, backgroundcol=App-3,framerulecol=lightgray!30}
		{\hfill\fcolorbox{App-3}{App-3}{\textbf{Réservé~~} \mauvaise{MI}{\hspace{-.25cm}MI~}\bareme{0}
		\mauvaise{MF}{\hspace{-.25cm}MF~}\bareme{.33}
		\mauvaise{MS}{\hspace{-.25cm}MS~}\bareme{.66}
		\bonne{TBM}{\hspace{-.25cm}TBM}\bareme{1}
		}}		
 \end{question}
}

	%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
	%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%



	%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
	%
	%
    %					DEFINITION DES COULEURS DES COMPETENCES 
 	%
	%
	%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

\definecolor{De-1}{named}{Goldenrod} 	
\definecolor{De-2}{named}{Goldenrod} 	
\definecolor{De-3}{named}{Goldenrod} 	
\definecolor{De-4}{named}{Goldenrod} 	
\definecolor{Co-1}{named}{GreenYellow}
\definecolor{Co-2}{named}{GreenYellow}
\definecolor{App-1}{named}{SkyBlue}
\definecolor{App-2}{named}{SkyBlue}
\definecolor{App-3}{named}{SkyBlue}
\definecolor{Out-1}{named}{Aquamarine}
\definecolor{Out-2}{named}{Aquamarine}
\definecolor{Inv-1}{named}{Melon}
\definecolor{Inv-2}{named}{Melon}
\definecolor{Lan-1}{named}{lightgray}	
\definecolor{Lan-2}{named}{lightgray}
\definecolor{Lan-3}{named}{lightgray}
\definecolor{Lan-4}{named}{lightgray}
\definecolor{Com-1}{named}{Orange}
\definecolor{Com-2}{named}{Orange}
\definecolor{Sit-1}{named}{Yellow}
\definecolor{Sit-2}{named}{Yellow}
\definecolor{false}{named}{white}

	%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
	%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

	%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
	%
	%
    %					COMMANDE PLUSIEURS COMPETENCES PAR QUESTION
 	%
	%
	%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

\newcommand{\Cometences}[3]{%Affiche un rectangle competence apres une QuestionEnTETE 
	\setcounter{compteurComtALaLigne}{1}%mettre ici sinon bug avec listofitem
	\AMClabel{#2}
	\setsepchar{,/X}%séparateur ,
	\readlist\ListTemp{#1}%lecture de la liste des compétences
		\IfStrEq{\listlen\ListTemp[]}{1}
			{\begin{minipage}{5.3cm}\begin{minipage}{5.3cm}}
			{\begin{minipage}{5.8cm}\begin{minipage}{.9cm}
				\includegraphics[scale=0.065]{Images/IconeInterdit.eps}
			\end{minipage}
			\begin{minipage}{5.8cm}
			}
		\multido{\i=1+1}{\listlen\ListTemp[]}{
			\IfStrEq{#3}{false}{}{\leLabel{\ListTemp[\i,2]}{#2}}
			\xdef\CoefQuest{\ListTemp[\i,1]}%
			\FPeval{\baremeComtDEUX}{round(\CoefQuest*.33,2)}%
			\FPeval{\baremeComtTROIS}{round(\CoefQuest*.66,2)}%
			\raisebox{-1ex}[.2ex]{\fcolorbox{\ListTemp[\i,2]}{\ListTemp[\i,2]}
				{\IfStrEq{\listlen\ListTemp[]}{1}
					{\begin{minipage}{5.2cm}
						\vspace{-.1cm}
						\def\AMCbeginQuestion##1##2{\hspace{-.2cm}\iconRes~\vspace{-.25cm}\small\vspace{-.1cm}\ListTemp[\i,2]~}}
					{\begin{minipage}{4.4cm}
						\def\AMCbeginQuestion##1##2{\vspace{-.2cm}\small\ListTemp[\i,2]~}
					}
					\AMCboxStyle{shape=square,size=1.5ex,down=-.1ex,rule=.2pt}%
					\AMCquestionNumberfalse\AMCnobloc%
					\begin{question}{\ListTemp[\i,2]:#2}
						\IfStrEq{\CoefQuest}{0}
							{\bareme{b=2, m=0, e=0, v=0.25, MAX=0}}
							{\bareme{b=\CoefQuest, m=0, e=0, v=0.25, MAX=\CoefQuest}}
						\bareme{b=\CoefQuest, m=0, e=0, v=0.25, MAX=\CoefQuest}
						\AMCnoCompleteMulti\AMCdontAnnotate
						\def\AMCbeginAnswer{\hspace{-.5cm}}\def\AMCendAnswer{}
						\hfill
						\begin{reponsesperso}[o]%
							\scriptsize%
							\mauvaise{\hspace{-.06cm}MI\hspace{.1cm}}\bareme{0}
							\mauvaise{\hspace{-.06cm}MF\hspace{.1cm}}\bareme{\baremeComtDEUX}
							\mauvaise{\hspace{-.06cm}MS\hspace{.1cm}}\bareme{\baremeComtTROIS}
							\bonne{\hspace{-.07cm}TBM\hspace{-.35cm}}\bareme{\CoefQuest}
						\end{reponsesperso}
					\end{question}
				\end{minipage}
			}}
		}\end{minipage}
	\end{minipage}
}
	
	%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
	%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%


	%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
	%   						
	%   				
    %	COMMANDE question en-tête avec affichage de(s) competence(s) évaluèe(s)
    %   																
	%   								
	%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%


\newcommand{\QuestionEnTete}[4]{%Affiche une question inutile dans le bareme; affiche la competence et num de question dans le sujet, suivi de questionss a numero caché sans affichage de la competence: QuestionNumerqiue par exemple%
% #1: label
% #2: commetence(s séparées par une virgule)
% #3:texte de la question 
% #4: si identique à #2 affiche la(les) competence(s) 
	\begin{question}{#1}\QuestionIndicative\AMCdontAnnotate
		\setsepchar{,}%séparateur ,
		\readlist\ListeCom{#2}%lecture de la liste des compétences
		\multido{\i=1+1}{\listlen\ListeCom[]}{%
			\xdef\Competence{\ListeCom[\i]}%	
			\IfStrEq{#4}{#2}
				{\colorboxComp{\Competence}\hspace{-2.7cm}
				}{}
				\leLabel{\Competence}{#1}}
				#3
		%\def\AMCotextReserved{}\AMCboxStyle{rule=0pt,size=0pt}
	\end{question}
}

	%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
	%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%



	%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
	%
    %							AFFICHAGE FORMAT SCIENTIFIQUE
 	%
	%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

	%% avec \sisetup et \num
	\newcommand\formatscientifique[2]{%
			% argument 1 : le nombre à afficher
			% argument 2 : le nombre décimales dans la mantisse à afficher
			%
			\sisetup{round-mode=places,round-precision=#2,zero-decimal-to-integer%
				,add-decimal-zero = false}%
			\num[retain-unity-mantissa = false, retain-zero-exponent = false]{#1}%
	}%
			% Utilisation :
			% \formatscientifique{0.00234}{1} provoquera l'affichage de 2.3x10^{-3}
			% \formatscientifique{0.00234}{3} : 2.340x10^{-3}
			% \formatscientifique{0.00255}{1} : 2.6x10^{-3}
			% \formatscientifique{0.00258}{1} : 2.6x10^{-3}
			% \formatscientifique{-0.00254}{0}: -3x10^{-3}
			% \formatscientifique{-4.000000}{3}: -4

	%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
	%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%


	%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
	%  
    %								COMMANDE NUMERIQAUTO
 	% 
	%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

\newcommand{\AMCNumeriqAutoo}[2][1]{
  \pgfkeys{/NumeriqAuto/.cd,%
    valeur/.store in=\valeurKey,% Valeur numérique
    valeur=2,%
    digitsSup/.store in=\digitsSupKey,% Digits supplémentaires
    digitsSup=0,%
    decimalsSup/.store in=\decimalsSupKey,% Décimales supplémentaires
    decimalsSup=0,%
    competence/.store in=\competenceKey,% Texte zone à cocher
    competence=false,%
    label/.store in=\labelKey,% Label de la question
    label=labelEnAttente,%
    textRes/.store in=\textResKey,%
    textRes=Réservé,
    notScien/.store in=\notatScientKey,%
    notScien=false
	}%
  	\pgfkeys{/NumeriqAuto/.cd,#1}%
  	\StrLeft{\valeurKey}{1}[\digitUn]%recupere dans \digitUn la valeur du premier chiffre
	\IfStrEq{\digitUn}{-}{\FPeval\otDigitSigne{clip(1)}}%si premier chiffre est - sign=true otDigitSigne pour le pas oter le digit du signe dans \len
		{\FPeval\otDigitSigne{clip(0)}}% dans AMCnumeric sinon garde le choix indiqué par #6
		\IfInteger{\valeurKey}%si le nombre est entier
			{\StrLen{\valeurKey}[\Len]
			\FPeval\chiffres{clip(\Len +\decimalsSupKey + \digitsSupKey - \otDigitSigne)}
			\FPeval\decimales{clip(\decimalsSupKey)}
		}%-> Accolade du vrai du si
		{\StrLen{\valeurKey}[\Len]
		\StrPosition{\valeurKey}{.}[\Position]
		\FPeval\chiffres{clip(\Len -1 + \decimalsSupKey + \digitsSupKey - \otDigitSigne)}
		\FPeval\decimales{clip(\Len - \Position + \decimalsSupKey)}
		}%->accolade du faux si  
   		%\FPeval\decimalNotScient{clip(\chiffres-1)}%
 		\IfStrEq{\notatScientKey}{true}%
			{\FPeval{\decimales}{clip(\chiffres-1)}}%
			{}%
		\IfStrEq{\competenceKey}{false}%
			{}%
			{\leLabel{\competenceKey}{\labelKey}}%
		\AMCnumericChoices{\valeurKey}{#2,backgroundcol=lightgray!35,digits=\chiffres , decimals=\decimales}
}

	%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
	%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%


	%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
	%
	%		COMMANDE BAREME OUVERTE
	%
	%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

\newcommand{\baremeOuverte}[2][1]{
  \pgfkeys{/baremeOpen/.cd,%
    choices/.store in=\choicesKey,% Nombre cases
    choices=2,%
    total/.store in=\totalKey,% Score total (coefficient)
    total=1,%
    competence/.store in=\competenceKey,% Texte zone à cocher
    competence=\emph{Réservé},%
    label/.store in=\labelKey,% Texte zone à cocher
    label=enAttente,%
    textRes/.store in=\textResKey,%
    textRes=\iconRes
  }%
  \pgfkeys{/baremeOpen/.cd,#1}%
  \leLabel{\competenceKey}{\labelKey}%
  \bareme{
    e=0,% incohérence (2 réponses cochées)
    v=0,% absence de réponse cochée
    MAX=\totalKey,% Nombre de points de la question
    default.POINT=0,% Pas de case cochée 0 pt
    formula=(\totalKey *POINT/(N-1))% La ième case cochée rapporte (i-1)/(n-1) avec
  }%
  \pgfmathsetmacro{\fin}{\choicesKey - 1}
  \def\AMCotextReserved{\small\textbf{\textResKey}}
  \AMCboxStyle{shape=square}
  \AMCdontAnnotate%
  \AMCOpen{#2, backgroundcol=\competenceKey, annotate=false, framerulecol=gray}{
    \competenceKey~~
    \foreach \i in {0,...,\fin}%
    {%
		\hspace{-.15cm}%
		\mauvaise{\i}\bareme{set.POINT=\i}%
    }%
    \hspace{-.3cm}
    \bonne{\choicesKey}\bareme{set.POINT=\choicesKey}%
          \hspace{-.4cm}

  }%
}


\newcommand{\colorboxComp}[1]{
		\fcolorbox{white}{#1}{\small{#1}}
}

\newcommand{\iconRes}{
	\begin{tikzpicture}%
	\node[baseline=(A.base),scale=.7,rounded corners=3pt, draw](A){Réservé};%
\end{tikzpicture}%
}
	%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%   
	%   																					 %
	%   																					 %
    %			  			 COMMANDE REFERENCEMENT DE LA COMPETENCE 						 %
    %			  				 DANS LE TABLEAU DE COMPETENCES		 						 %
 	%   																					 %
	%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

\newcommand{\leLabel}[2]{%pour referencer une competence dans une question qui s'affichera dans le tableau de competence
\IfStrEq{#1}{De-1}{\AMClabel{#2}\xdef\ListeDeUN{\ListeDeUN,\AMCstudentlabel{#2}}}{}
\IfStrEq{#1}{De-2}{\AMClabel{#2}\xdef\ListeDeDEUX{\ListeDeDEUX,\AMCstudentlabel{#2}}}{}
\IfStrEq{#1}{De-3}{\AMClabel{#2}\xdef\ListeDeTROIS{\ListeDeTROIS,\AMCstudentlabel{#2}}}{}
\IfStrEq{#1}{De-4}{\AMClabel{#2}\xdef\ListeDeQUATRE{\ListeDeQUATRE,\AMCstudentlabel{#2}}}{}
\IfStrEq{#1}{Co-1}{\AMClabel{#2}\xdef\ListeCoUN{\ListeCoUN,\AMCstudentlabel{#2}}}{}
\IfStrEq{#1}{Co-2}{\AMClabel{#2}\xdef\ListeCoDEUX{\ListeCoDEUX,\AMCstudentlabel{#2}}}{}
\IfStrEq{#1}{App-1}{\AMClabel{#2}\xdef\ListeAppUN{\ListeAppUN,\AMCstudentlabel{#2}}}{}
\IfStrEq{#1}{App-2}{\AMClabel{#2}\xdef\ListeAppDEUX{\ListeAppDEUX,\AMCstudentlabel{#2}}}{}
\IfStrEq{#1}{App-3}{\AMClabel{#2}\xdef\ListeAppTROIS{\ListeAppTROIS,\AMCstudentlabel{#2}}}{}
\IfStrEq{#1}{Outil-1}{\AMClabel{#2}\xdef\ListeOutUN{\ListeOutUN,\AMCstudentlabel{#2}}}{}
\IfStrEq{#1}{Outil-2}{\AMClabel{#2}\xdef\ListeOutDEUX{\ListeOutDEUX,\ListeOutDEUX{#2}}}{}
\IfStrEq{#1}{Inv-1}{\AMClabel{#2}\xdef\ListeInvUN{\ListeInvUN,\AMCstudentlabel{#2}}}{}
\IfStrEq{#1}{Inv-2}{\AMClabel{#2}\xdef\ListeInvDEUX{\ListeInvDEUX,\AMCstudentlabel{#2}}}{}
\IfStrEq{#1}{Lan-1}{\AMClabel{#2}\xdef\ListeLanUN{\ListeLanUN,\AMCstudentlabel{#2}}}{}
\IfStrEq{#1}{Lan-2}{\AMClabel{#2}\xdef\ListeLanDEUX{\ListeLanDEUX,\AMCstudentlabel{#2}}}{}
\IfStrEq{#1}{Lan-3}{\AMClabel{#2}\xdef\ListeLanTROIS{\ListeLanTROIS,\AMCstudentlabel{#2}}}{}
\IfStrEq{#1}{Lan-4}{\AMClabel{#2}\xdef\ListeLanQUATRE{\ListeLanQUATRE,\AMCstudentlabel{#2}}}{}
\IfStrEq{#1}{Com-1}{\AMClabel{#2}\xdef\ListeComUN{\ListeComUN,\AMCstudentlabel{#2}}}{}
\IfStrEq{#1}{Com-2}{\AMClabel{#2}\xdef\ListeComDEUX{\ListeComDEUX,\AMCstudentlabel{#2}}}{}
\IfStrEq{#1}{Sit-1}{\AMClabel{#2}\xdef\ListeSitUN{\ListeSitUN,\AMCstudentlabel{#2}}}{}
\IfStrEq{#1}{Sit-2}{\AMClabel{#2}\xdef\ListeSitDEUX{\ListeSitDEUX,\AMCstudentlabel{#2}}}{}
}



	%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
	%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
	%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%   
	%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%   
	%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%   
	%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%   
	%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%   
	%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%   





	%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%   
	%   																					 %
	%   																					 %
    %			          			 GROUPES DES QUESTIONS      							 %
 	%   																					 %
	%   																					 %
	%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

	%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%   
	%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%   
	%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%   
	%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%   
	%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%   
	%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%   

\FPseed=2171158%graine des nombres aléatoires

\begin{document}

\newcounter{mot}

\newcounter{compteurComtALaLigne}% compteur gérant les renvois à la ligne des compétences
\AMCsetScoreZone{width=1em,height=1.5ex,depth=.5ex,position=question}% notation à côté du numéro de question
%\setdefaultgroupmode{withreplacement}


\element{QuestionCours}{

 \begin{question}{Inv-1:QuestionCours1}\bareme{v=.25,e=.25}
	Nomme les sources d’énergie ci-dessous :
	
	\includegraphics[scale=.5]{Images/SourcesEnergie.eps}
	  \baremeOuverte[choices=5, total=3, competence=Inv-1, label=QuestionCours1]{lineup=true, lineuptext={~\hfill~}, dots=false, lineheight=.1cm}
  \end{question}
}


\element{QuestionCours}{

	\QuestionEnTete
		{SourceEnergie}% label (nom de la question)
		{Lan-1}% Cométence(s séparées par une ,
		{Voici 4 définitions:
		\begin{enumerate}%[label=\Alph•}]
			\item[A] : Phénomène à partir duquel il est possible de récupérer de l'énergie.
			\item [B]: Façon dont se manifeste l’énergie : électrique, mécanique, thermique...
			\item[C] : Dispositif permettant de produire de l'énergie électrique à partir d'une autre forme d'énergie.
			\item[D] : Mécanisme entraîné par l'énergie du vent.
		\end{enumerate}
		À quelle définition correspond chaque terme suivant ? Coche la bonne réponse}%Question
		{Lan-1}% Si on recopie la ligne cométences, elles s'affichent

\noindent
	\begin{minipage}[c]{0.2\linewidth}
		\EffNumQ
		\begin{question}{Lan-1:SourceEnergieUN}
	 		Alternateur
	  \begin{multicols}{2}
			\begin{reponses}
				\mauvaise{A}
				\mauvaise{B}
				\bonne{C}
				\mauvaise{D}
			\end{reponses}
	  \end{multicols}
		\end{question} 
	\end{minipage}
	\hspace{1cm}\vrule
	\begin{minipage}[c]{0.2\linewidth}
	 \EffNumQ
	 \begin{question}{Lan-1:SourceEnergieDEUX}
	 Source d'énergie
	  \begin{multicols}{2}
	 	\begin{reponses}
			\bonne{A}
			\mauvaise{B}
			\mauvaise{C}
			\mauvaise{D}
		\end{reponses}
	  \end{multicols}
	 \end{question}
	\end{minipage} 
	\hspace{1cm}\vrule
	\begin{minipage}[c]{0.2\linewidth}
	\EffNumQ
	 \begin{question}{Lan-1:SourceEnergieTROIS}
	 Hélice
	  \begin{multicols}{2}
	 	\begin{reponses}
			\mauvaise{A}
			\mauvaise{B}
			\mauvaise{C}
			\bonne{D}
		\end{reponses}
	  \end{multicols}
	 \end{question}
	\end{minipage} 
	\hspace{1cm}\vrule
	\begin{minipage}[c]{0.2\linewidth}
	\EffNumQ
	 \begin{question}{Lan-1:SourceEnergieQUATRE}\bareme{b=1, m=0, e=0, v=0, MAX=1}
	 Forme d'énergie
	  \begin{multicols}{2}
	 	\begin{reponses}
			\mauvaise{A}
			\bonne{B}
			\mauvaise{C}
			\mauvaise{D}
		\end{reponses}
	  \end{multicols}
	 \end{question}
	\end{minipage}
}


\element{QuestionCours}{%

\begin{questionmult}{Lan-1:SourceEnergies}
 	\colorboxComp{Lan-1} Les phrases suivantes décrivent différents processus faisant intervenir de l’énergie :
Parmi les termes soulignés dans chaque phrase, quelles sont les \underline{\bf sources d’énergie} citées ?
	\leLabel{Lan-1}{SourceEnergies}
\begin{itemize}
\item Le \underline{Soleil} nous éblouit car nos \underline{yeux} reçoivent trop \underline{d’énergie lumineuse}.
\item Une \underline{couverture} réchauffe en retenant la \underline{chaleur} dégagée par le \underline{corps}.
\item Dans un courant d’air, une \underline{porte} claque grâce à \underline{l’énergie mécanique} du \underline{vent}.
\end{itemize}
	\begin{multicols}{3}
\begin{reponses}
\bonne{Soleil}
\mauvaise{yeux}
\mauvaise{d’énergie lumineuse}
\mauvaise{couverture}
\mauvaise{chaleur}
\bonne{corps}
\mauvaise{porte}
\mauvaise{l’énergie mécanique}
\bonne{vent}
\end{reponses}
	\end{multicols}
\end{questionmult}
}



\element{QuestionCours}{%

\begin{questionmult}{Lan-1:FormeEnergie}
 	\colorboxComp{Lan-1} Les phrases suivantes décrivent différents processus faisant intervenir de l’énergie :
Parmi les termes soulignés dans chaque phrase, quelles sont les \underline{\bf formes d’énergie} citées ?
	\leLabel{Lan-1}{FormeEnergie}
\begin{itemize}
\item Le \underline{Soleil} nous éblouit car nos \underline{yeux} reçoivent trop \underline{d’énergie lumineuse}.
\item Un \underline{radiateur électrique} chauffe car il produit de \underline{l’énergie thermique}.
\item Une \underline{couverture} réchauffe en retenant la \underline{chaleur} dégagée par le \underline{corps}.
\item Dans un courant d’air, une \underline{porte} claque grâce à \underline{l’énergie mécanique} du \underline{vent}.
\item Un \underline{oiseau} bat des \underline{ailes} en utilisant son \underline{énergie musculaire}.
\end{itemize}
	\begin{multicols}{4}
	\begin{reponses}
\mauvaise{Soleil}
\mauvaise{yeux}
\bonne{énergie lumineuse}
\mauvaise{radiateur électrique}
\bonne{énergie thermique}
\mauvaise{couverture}
\mauvaise{chaleur}
\mauvaise{corps}
\mauvaise{porte}
\bonne{énergie mécanique}
\mauvaise{vent}
\mauvaise{oiseau}
\mauvaise{ailes}
\bonne{énergie musculaire}
\end{reponses}
	\end{multicols}
\end{questionmult}
}


\element{QuestionCours}{

	\QuestionEnTete
		{NRJRenouv}% label (nom de la question)
		{Inv-1}% Cométence(s séparées par une ,
		{Indiquer si chaque source d’énergie suivante est, ou non, renouvelable :}%Question
		{Inv-1}% Si on recopie la ligne cométences, elles s'affichent

\noindent
	\begin{minipage}[c]{0.12\linewidth}
		\EffNumQ
		\begin{question}{Inv-1:NRJRenouv1}
	 		Chute d’eau
			\begin{reponses}
				\bonne{Oui}
				\mauvaise{Non}
			\end{reponses}
		\end{question} 
	\end{minipage}
	\vrule
	\begin{minipage}[c]{0.1\linewidth}
		\EffNumQ
		\begin{question}{Inv-1:NRJRenouv2}
	 		Uranium
			\begin{reponses}
				\bonne{Non}
				\mauvaise{Oui}
			\end{reponses}
		\end{question} 
	\end{minipage}
	\vrule
	\begin{minipage}[c]{0.18\linewidth}
		\EffNumQ
		\begin{question}{Inv-1:NRJRenouv3}
	 		Chaleur du sous-sol
			\begin{reponses}
				\bonne{Oui}
				\mauvaise{Non}
			\end{reponses}
		\end{question} 
	\end{minipage}
	\vrule
	\begin{minipage}[c]{0.1\linewidth}
		\EffNumQ
		\begin{question}{Inv-1:NRJRenouv4}
	 		Marées
			\begin{reponses}
				\bonne{Oui}
				\mauvaise{Non}
			\end{reponses}
		\end{question} 
	\end{minipage}
	\vrule
	\begin{minipage}[c]{0.1\linewidth}
		\EffNumQ
		\begin{question}{Inv-1:NRJRenouv5}
	 		Pétrole
			\begin{reponses}
				\bonne{Non}
				\mauvaise{Oui}
			\end{reponses}
		\end{question} 
	\end{minipage}
	\vrule
	\begin{minipage}[c]{0.1\linewidth}
		\EffNumQ
		\begin{question}{Inv-1:NRJRenouv6}
	 		Vent
			\begin{reponses}
				\bonne{Oui}
				\mauvaise{Non}
			\end{reponses}
		\end{question} 
	\end{minipage}
	\vrule
	\begin{minipage}[c]{0.15\linewidth}
		\EffNumQ
		\begin{question}{Inv-1:NRJRenouv7}
	 		Lumière solaire
			\begin{reponses}
				\bonne{Oui}
				\mauvaise{Non}
			\end{reponses}
		\end{question} 
	\end{minipage}
	\vrule
	\begin{minipage}[c]{0.1\linewidth}
		\EffNumQ
		\begin{question}{Inv-1:NRJRenouv8}\bareme{b=1, m=0, e=0, v=0, MAX=1}
	 		Charbon
			\begin{reponses}
				\bonne{Non}
				\mauvaise{Oui}
			\end{reponses}
		\end{question} 
	\end{minipage}
}









\element{Conversion}{

\begin{question}{De-3:Conversion1}
	Cite 3 exemples de convertisseur d'énergie, autres que la pile, la lampe et la batterie.
	\baremeOuverte[choices=2, total=3, competence=Inv-1, label=Conversion1]{lines=1, dots=false, lineheight=1cm}
\end{question}
}



\element{Conversion}{

	\QuestionEnTete
		{ENteteConversion2}% label (nom de la question)
		{Inv-1}% Cométence(s séparées par une ,
		{Indique les différentes formes d'énergie dans le diagramme d'énergie ci-dessous
		
		\begin{tikzpicture}
			\node[draw] (Q) at (3,0) {batterie};
			\node[draw] (W) at (8,0) {moteur électrique};
			
			\draw[line width=1pt, ->] (0,0) -- (Q) node[midway,above] {\small $Forme $} node[midway,below] {\small $d'energie ~1$};
			
			\draw[line width=1pt, ->] (Q.east) -- (W) node[midway,above] {\small $Forme$} node[midway,below] {\small $d'energie ~2$};
			\draw[line width=1pt, ->] (W.east) -- ++(2,0) node[midway,above] {\small $Forme$} node[midway,below] {\small $d'energie ~3$};
		\end{tikzpicture}}%Question
		{Inv-1}% Si on recopie la ligne cométences, elles s'affichent
	
	\begin{minipage}[c]{0.33\linewidth}
		\EffNumQ
		\begin{question}{Inv-1:Conversion2A}
	 		Forme d'énergie 1
			\begin{multicols}{2}
			\begin{reponses}\small
				\mauvaise{électrique}
				\mauvaise{thermique}
				\bonne{chimique}
				\mauvaise{lumineuse}
				\mauvaise{ de mouvement}
			\end{reponses}
			\end{multicols}
			\end{question} 
	\end{minipage}
	\vrule
	\begin{minipage}[c]{0.33\linewidth}
		\EffNumQ
		\begin{question}{Inv-1:Conversion2B}
	 		Forme d'énergie 2
			\begin{multicols}{2}
			\begin{reponses}\small
				\bonne{électrique}
				\mauvaise{thermique}
				\mauvaise{chimique}
				\mauvaise{lumineuse}
				\mauvaise{ de mouvement}
			\end{reponses}
			\end{multicols}
		\end{question} 
	\end{minipage}
	\vrule
	\begin{minipage}[c]{0.33\linewidth}
		\EffNumQ
		\begin{question}{Inv-1:Conversion2C}
	 		Forme d'énergie 3
			\begin{multicols}{2}
			\begin{reponses}\small
				\mauvaise{électrique}
				\mauvaise{thermique}
				\mauvaise{chimique}
				\mauvaise{lumineuse}
				\bonne{de mouvement}
			\end{reponses}
			\end{multicols}
		\end{question} 
	\end{minipage}
}





\element{PasDys}{%

		\def\AMCotextReserved{}	
		\begin{question}{Conversion3}\QuestionIndicative
		Donne la définition d'une énergie fossile.		
		\Cometences{2XInv-1}{Conversion3}{true}
			\AMCOpen{lines=3}{\bareme{auto=0,v=0,e=0}}%
		\end{question}
}





\element{CometencesGlobales}{%permet d'afficher des compétences sur le controle dans sa globalité

	\noindent
	\fcolorbox{black}{lightgray!15}{\begin{minipage}{1\linewidth}
		\insertRedactionPhrase{2}
	\end{minipage}}
	\noindent
	\fcolorbox{black}{lightgray!15}{\begin{minipage}{1\linewidth}
		\insertRespectconsigne{0}
		% {} 1: 4 cases   0: case insuffisant
		% {} bareme
	\end{minipage}}
}




\element{QuestionBonus}{%

		\def\AMCotextReserved{}	
		\begin{question}{Conversion4}\QuestionIndicative
		Donne la définition d'une énergie renouvelable.		
		\Cometences{0XInv-1}{Conversion4}{true}
			\AMCOpen{lines=3}{\bareme{auto=0,v=0,e=0}}%
		\end{question}
}

	%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%   
	%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%   
	%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%   
	%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%   
	%   																					 %
	%   																					 %
    %			          		           	 COPIE      									 %
 	%   																					 %
	%   																					 %
	%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
	%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%   
	%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%   
	%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%   
	%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%   

%% 		Formulaires pré-remplis (0) ou non : 1 ; ou 2 (anonyme)
			%nombre de sujet
			\def\formulaireprerempli{1}
			\def\NQCM{6}% nbre de qcm quand non prérempli mettre 1 si prérempli

\newcommand*{\texteHautDroite}{
	\begin{minipage}{.45\linewidth}
		\large\textbf{\hfill 3eme}
		
		\textbf{\hfill \the\month /\the\year}
		
	\end{minipage}
}

\newcommand{\sujet}[2]{
\onecopy{#1}{




%Comteur texte a trou
\setcounter{mot}{0}

%%Création des listes vide de chaque compétences , du score
\def\ListeDeUN{}
\def\essai{}
\def\ListeDeDEUX{}
\def\ListeDeTROIS{}
\def\ListeDeQUATRE{}
\def\ListeCoUN{}%
\def\ListeCoDEUX{}%
\def\ListeAppUN{}%
\def\ListeAppDEUX{}%
\def\ListeAppTROIS{}%
\def\ListeOutUN{}%
\def\ListeOutDEUX{}%
\def\ListeInvUN{}%
\def\ListeInvDEUX{}%
\def\ListeLanUN{}%
\def\ListeLanDEUX{}%
\def\ListeLanTROIS{}%
\def\ListeLanQUATRE{}%
\def\ListeComUN{}%
\def\ListeComDEUX{}%
\def\ListeSitUN{}%
\def\ListeSitDEUX{}%

\ifthenelse{ \formulaireprerempli = 0 }
	{\AMCassociation{\identifiant}
	\entete
	}%
	{\ifthenelse{ \formulaireprerempli = 1 }%
		{\AMCenTeteNomPrenom[etudianta]
		}%
		{\AMCenTeteAnonymat[etudianta]}% mode anonyme
	}%

%\AMCenTeteNomPrenom[etudianta]%[liste etudiant] ; {1}modele individuel {2}modele groupe
%\AMCenTeteNomPrenom[etudiantb]%[liste etudiant] ; {1}modele individuel {2}modele groupe


%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% fin de l'en-tête

	%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%   
    %			          		   Titre				     								 %
	%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

%%% debut de l'en-tête des copies :    


\begin{cursive}
	\hspace{.33\linewidth}	
	\Large Brevet Blanc de Sciences Physiques
\end{cursive}



\DureeConsignes{30}{3}{Aucun document autorisé}
%{#1} durée (mn)
%{#2} 1:affichage de la duree  2:consignesimple 3:consignecomplete
%{#3} Affiche ce que l'on veut comme texte supplémentaire

\AMCsection{L’énergie et les sources d’énergies}
\restituegroupe{QuestionCours}
\AMCsection{Les conversions d’énergie}
\restituegroupe{Conversion}


\ifthenelse{ \formulaireprerempli = 0}
	{\ifthenelse{\equal{\GroupeDys}{GroupeDys}}
		{}
		{\AMCsection{PasDys}
		\restituegroupe{PasDys}
		}
	}
	{\ifthenelse{\AMCStudentNumber>1}%ici 1 indique le nbre de copie dys à fabriquer
			{\restituegroupe{PasDys}			}
			{}
	}
\AMCsection{Question bonus}
\restituegroupe{QuestionBonus}
\restituegroupe{CometencesGlobales}


	%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%   
	%   																					 %
	%   																					 %
    %			           GESTION TABLEAU DES COMPETENCES  						 		 %
 	%   																					 %
	%   																					 %
	%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%\clearpage%% pour ne plus "comptabiliser" les pages
%\thispagestyle{AMCpageNoMarks}

\crefname{question}{Q.}{Q.}
%\crefname{question}{}{}
%%Vérification de la présence d'une virgule-> la liste n'est pas vide
%%Suppression de la première virgule
%\newpage

\renewcommand\theadfont{\bfseries\normalsize}%changer police en-tête
\noindent%
\begin{tabularx}{\linewidth}{|p{4cm}| X |p{2cm}|} \hline

\thead{Cométences}&\thead{Capacités}&\thead{Questions}
	
	\IfEq{\ListeDeUN}{}{\relax}{\\	\hline %
\cellcolor{De-1}\small{De-1: \newline Concevoir, créer, réaliser} &%
\cellcolor{De-1!30}\small{Rechercher, extraire et organiser l'information} &%
\small{\StrGobbleLeft{\ListeDeUN}{1}[\ListeDeUN]%Suprpesion de la virgule
\essai.\cref{\ListeDeUN}%~\cpageref{\ListeDeUN}
}}

	\IfEq{\ListeDeDEUX}{}{\relax}{\\		\hline%
\cellcolor{De-2}\small{De-2: Pratiquer des démarches scientifiques} &%
\cellcolor{De-2!30}\small{Proposer une ou des hypothèses pour répondre à une question scientifique} & %
\small{\StrGobbleLeft{\ListeDeDEUX}{1}[\ListeDeDEUX]%
\cref{\ListeDeDEUX}%~\cpageref{\ListeDeDEUX}
}}
	
	\IfEq{\ListeDeTROIS}{}{\relax}{\\		\hline%
\cellcolor{De-3}\small{De-3: Pratiquer des démarches scientifiques} &%
\cellcolor{De-3!30}\small{Concevoir une expérience pour la tester. Mesurer des grandeurs physiques de manières directes ou indirectes} &%
\small{\StrGobbleLeft{\ListeDeTROIS}{1}[\ListeDeTROIS]%
\cref{\ListeDeTROIS}%~\cpageref{\ListeDeTROIS}
}}

	\IfEq{\ListeDeQUATRE}{}{\relax}{\\		\hline%
\cellcolor{De-4}\small{De-4:Pratiquer des démarches scientifiques} &%
\cellcolor{De-4!30}\small{Interpréter des résultats et en tirer des conclusions et les communiquer en argumentant} &%
\small{\StrGobbleLeft{\ListeDeQUATRE}{1}[\ListeDeQUATRE]%
\cref{\ListeDeQUATRE}%~\cpageref{\ListeDeQUATRE}
}}


	\IfEq{\ListeCoUN}{}{\relax}{\\		\hline%
\cellcolor{Co-1}\small{Co-1: Coevoir, créer, réaliser} &%
\cellcolor{Co-1!30}\small{Développer des modèles simples pour expliquer des faits d'observation et mettre en œuvre des démarches propres aux sciences} &%
\small{\StrGobbleLeft{\ListeCoUN}{1}[\ListeCoUN]%
\cref{\ListeCoUN}%~\cpageref{\ListeCoUN}
}}

	\IfEq{\ListeCoDEUX}{}{\relax}{\\		\hline%
\cellcolor{Co-2}\small{Co-2: Coevoir, créer, réaliser} &%
\cellcolor{Co-2!30}\small{Coevoir et réaliser un dispositif de mesure ou d'observation} &%
\small{\StrGobbleLeft{\ListeCoDEUX}{1}[\ListeCoDEUX]%
\cref{\ListeCoDEUX}%~\cpageref{\ListeCoDEUX}
}}


	\IfEq{\ListeAppUN}{}{\relax}{\\		\hline%
\cellcolor{App-1}\small{App-1: S'approprier des outils et des méthodes} &%
\cellcolor{App-1!30}\small{Effectuer des recherches bibliographiques} &%
\small{\StrGobbleLeft{\ListeAppUN}{1}[\ListeAppUN]%
\cref{\ListeAppUN}%~\cpageref{\ListeAppUN}
}}

	\IfEq{\ListeAppDEUX}{}{\relax}{\\		\hline%
\cellcolor{App-2}\small{App-2: S'approprier des outils et des méthodes} &%
\cellcolor{App-2!30}\small{Utiliser~des outils numériques pour mutualiser des informations sur un sujet scientifiques} &%
\small{\StrGobbleLeft{\ListeAppDEUX}{1}[\ListeAppDEUX]%
\cref{\ListeAppDEUX}%~\cpageref{\ListeAppDEUX}
}}

	\IfEq{\ListeAppTROIS}{}{\relax}{\\		\hline%
\cellcolor{App-3}\small{App-3: S'approprier des outils et des méthodes} &%
\cellcolor{App-3!30}\small{Planifier une tache expérimentale, organiser son espace de travail, garder des traces des étapes suivies et des résultats obtenus} &%
\small{\StrGobbleLeft{\ListeAppTROIS}{1}[\ListeAppTROIS]%
\cref{\ListeAppTROIS}%~\cpageref{\ListeAppTROIS}
}}
 
	\IfEq{\ListeOutUN}{}{\relax}{\\		\hline%
\cellcolor{Out-1}\small{Out-1: Mobiliser des outils numériques} &%
\cellcolor{Out-1!30}\small{Utiliser des outils d'acquisition et de traitement de données, de simulations et de modèles numériques} &%
\small{\StrGobbleLeft{\ListeOutUN}{1}[\ListeOutUN]%
 \cref{\ListeOutUN}%~\cpageref{\ListeOutUN}
 }} 
 
	\IfEq{\ListeOutDEUX}{}{\relax}{\\		\hline%
\cellcolor{Out-2}\small{Out-2: Mobiliser des outils numériques} &%
\cellcolor{Out-2!30}\small{Produire des documents scientifiques grâce à des outils numériques, en utilisant l'argumentation et le vocabulaire spécifique à la physique chimie} &%
\small{\StrGobbleLeft{\ListeOutDEUX}{1}[\ListeOutDEUX]%
\cref{\ListeOutDEUX}%~\cpageref{\ListeOutDEUX}
}} 

	\IfEq{\ListeInvUN}{}{\relax}{\\		\hline%
\cellcolor{Inv-1}\small{Inv~1: S'investir} &%
\cellcolor{Inv-1!30}\small{Apprendre ses leçons et faire ses devoirs à la maison, s'investir} &%
\small{\StrGobbleLeft{\ListeInvUN}{1}[\ListeInvUN]%
\cref{\ListeInvUN}%~\cpageref{\ListeInvUN}
}} 

	\IfEq{\ListeInvDEUX}{}{\relax}{\\		\hline%
\cellcolor{Inv-2}\small{Inv-2: S'investir} &%
\cellcolor{Inv-2!30}\small{Avoir et utiliser correctement son matériel} &%
\small{\StrGobbleLeft{\ListeInvDEUX}{1}[\ListeInvDEUX]%
\cref{\ListeInvDEUX}%~\cpageref{\ListeInvDEUX}
}} 

	\IfEq{\ListeLanUN}{}{\relax}{\\		\hline%
\cellcolor{Lan-1}\small{Lan-1: Pratiquer des langages} &%
\cellcolor{Lan-1!30}\small{Lire et comprendre des documents scientifiques} &%
\small{\StrGobbleLeft{\ListeLanUN}{1}[\ListeLanUN]%
\cref{\ListeLanUN}%~\cpageref{\ListeLanUN}
}}

	\IfEq{\ListeLanDEUX}{}{\relax}{\\		\hline%
\cellcolor{Lan-2}\small{Lan-2: Pratiquer des langages} &%
\cellcolor{Lan-2!30}\small{Utiliser la langue française en cultivant précision, richesse de vocabulaire et syntaxe pour rendre compte des observations, expériences, hypothèses et conclusions} &%
\small{\StrGobbleLeft{\ListeLanDEUX}{1}[\ListeLanDEUX]%
\cref{\ListeLanDEUX}%~\cpageref{\ListeLanDEUX}
}}

	\IfEq{\ListeLanTROIS}{}{\relax}{\\		\hline%
\cellcolor{Lan-3}\small{Lan-3: Pratiquer des langages} &%
\cellcolor{Lan-3!30}\small{S'exprimer à l'oral lors d'un débat scientifique} &%
\small{\StrGobbleLeft{\ListeLanTROIS}{1}[\ListeLanTROIS]%
\cref{\ListeLanTROIS}%~\cpageref{\ListeLanTROIS}
}}

	\IfEq{\ListeLanQUATRE}{}{\relax}{\\		\hline%
\cellcolor{Lan-4}\small{Lan-4: Pratiquer des langages} &%
\cellcolor{Lan-4!30}\small{Passe d'une forme de langage scientifique à l'autre} &%
\small{\StrGobbleLeft{\ListeLanQUATRE}{1}[\ListeLanQUATRE]%
\cref{\ListeLanQUATRE}%~\cpageref{\ListeLanQUATRE}
}}


	\IfEq{\ListeComUN}{}{\relax}{\\		\hline%
\cellcolor{Com-1}\small{Com-1: Adopter un Comportement éthique et responsable} &%
\cellcolor{Com-1!30}\small{Expliquer les fondements des règles de sécurité, en chimie, électricité acoustique. Réinvestir ces connaissances, ainsi que celles sur les ressources et sur l'énergie pour agir de façon responsable} &%
\small{\StrGobbleLeft{\ListeComUN}{1}[\ListeComUN]%
\cref{\ListeComUN}%~\cpageref{\ListeComUN}
}}
 
	\IfEq{\ListeComDEUX}{}{\relax}{\\		\hline%
\cellcolor{Com-2}\small{Com-2: Adopter un Comportement éthique et responsable} &%
\cellcolor{Com-2!30}\small{S'impliquer dans un projet ayant une dimension citoyenne} &%
\small{\StrGobbleLeft{\ListeComDEUX}{1}[\ListeComDEUX]%
\cref{\ListeComDEUX}%~\cpageref{\ListeComDEUX}
}}

	\IfEq{\ListeSitUN}{}{\relax}{\\		\hline%
\cellcolor{Sit-1}\small{Sit-1: Se Situer dans l'espace et dans le temps} &%
\cellcolor{Sit-1!30}\small{Expliquer par l'histoire des sciences et des techniques, comment les sciences évoluent et influence notre société} & %
\small{\StrGobbleLeft{\ListeSitUN}{1}[\ListeSitUN]%
\cref{\ListeSitUN}%~\cpageref{\ListeSitUN}
}}

	\IfEq{\ListeSitDEUX}{}{\relax}{\\		\hline%
\cellcolor{Sit-2}\small{Sit-2: Se Situer dans l'espace et dans le temps} &%
\cellcolor{Sit-2!30}\small{Identifier les différentes échelles de structuration de l'Univers} & %
\small{\StrGobbleLeft{\ListeSitDEUX}{1}[\ListeSitDEUX]%
\cref{\ListeSitDEUX}%~\cpageref{\ListeSitDEUX}
}}

\end{tabularx}

\AMClabel{dernierepage} 
\clearpage   %si sujet nb pages paires
%\AMCcleardoublepage %%%% si sujet nb pages impaires
%\thispagestyle{AMCpageNoMarks}
%\AMCaddpagesto{3} %ajouter des pages blanches en fin de sujet

}}


	\ifthenelse{ \formulaireprerempli = 0 }%
		{\csvreader[head to column names]{listetest.csv}{}{ \sujet{1} }} % lecture du fichier csv
		{\sujet{\NQCM}} %

\end{document}
