

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% FRAME Métiers-Parcours

\newcommand\frameMetier{

\begin{frame}[plain]{}
  \begin{tikzpicture}[overlay, remember picture]
	
		\coordinate(topleftcorner) at ($ (current page.north west) + (10mm,-12mm) $); % Dimension de la frame
		\coordinate(toprightcorner) at ($ (current page.north east) + (-10mm,-10mm) $);
		
    \coordinate(lastpoint) at ($ (current page.north west) + (10mm,-6mm) $);
		\coordinate(toprightcorner) at ($ (current page.north east) + (-12mm,-12mm) $);
		\coordinate(splitpoint) at ($ (lastpoint) + (20cm,-6mm) $);
		\coordinate(splitpointbis) at ($ (splitpoint) + (1cm,2mm) $);
    \coordinate(titleright) at ($ (splitpoint) + (4cm, 0cm)$);
    \coordinate(refpoint) at ($ (lastpoint)+(25mm,0mm) $);
	
    \node[text=titlebg]  [%
    outer sep=0,inner sep=0mm,%
    fit=(lastpoint)(titleright),
    align=left%
    ] (xtitle) {\fontsize{20}{40}\bfseries\selectfont  
		Les métiers et les parcours du B.U.T. \specialitename};
    \fill[shade,left color=titlebg,right color=white] (xtitle.south west) rectangle ($ (xtitle.south east) + (0,1mm) $);
    %\node[%
    %outer sep=0,inner sep=2mm,%
    %fit=(toprightcorner)(splitpointbis),
    %rounded corners=2mm,
    %fill=red!10!white,
    %align=left%
    %] (blob) {Les parcours ont été établis d'après les métiers qui sont accessibles à l'issue du diplôme. $\bullet$ Métier accessible à la sortie du diplôme ; $\Rightarrow$ Métier senior ; $\sim$ Métier possible mais formation ou parcours pas la plus adaptée.};
    %
		
		% Compétences
		\coordinate(lastpoint) at ($ (xtitle.south west) + (40mm,-4mm) $);
		
    \foreach \PARABBR [count=\COUPAR] in \loopabbrparcours {%
      \coordinate (bottompoint) at ($ (lastpoint)+(0,-20mm) $); 
      \coordinate (subrefpoint) at ($ (refpoint)+(80mm,0mm) $); % Séparation 50mn
      \begin{pgfonlayer}{main}
        % \draw[thick](lastpoint)--++(-1cm,0);
        \node[outer sep=0,inner sep=0mm,%
        minimum height=25mm,%
        text width=160mm,% largeur des métiers = 200
        align=left,%
        text=black,fill=titlebg!\COUPAR 0!white,% dégradé de gris
        ] (rightbox) at (lastpoint-|subrefpoint) [anchor=north west] {%
				  \ifcsdef{metier\PARABBR A} {% S'il y a au moins un metier
          \begin{list}{$\bullet$}{\topsep=0pt \partopsep=0pt \parsep=0pt \itemsep=0pt \leftmargin=1em \itemindent=0em}%
						\xdef\metierloop{\csname loopmetier\PARABBR\endcsname}
						\foreach \YY in \metierloop {%
              \item[\csname metiermark\PARABBR \YY\endcsname]
                \textcolor{black}{\csname metier\PARABBR \YY\endcsname}%
								}
          \end{list}%						
					}{}
        };
        \coordinate(bottompoint) at ($ (rightbox.south west)+(-10mm,0) $);
        \coordinate(toppoint) at ($ (lastpoint)+(32mm,0mm) $);
        \node[outer sep=0,inner sep=0mm,%
        align=right,%
        ] at ($ (rightbox.west)+(-10mm,0) $) [anchor=east] (leftbox) {%
          \Large\bfseries Métiers \\\Large\bfseries associés%
        };
      \end{pgfonlayer}
			
			% Intitulé du parcours
      \begin{pgfonlayer}{background}
        \coordinate(toppoint) at ($ (rightbox.north west)+(-2mm,2mm) $); 
        \coordinate(bottompoint) at ($ (rightbox.south east)+(2mm,-2mm) $);
        \node[outer sep=0,inner sep=0mm,
        fit=(toppoint)(bottompoint),
        % fill=comp\XX, 
        text=black,fill=titlebg!\COUPAR 0!white,%
        blur shadow={shadow blur steps=5}
        ] (bodybox) {};
				
        \coordinate (tmpa) at ($ (lastpoint)+(-40mm,0) $); % Réglage largeur nom de la composante
        \coordinate (tmpb) at (tmpa|-bodybox.south);
        \fill[fill=titlebg!\COUPAR 0!white] ($ (rightbox.north west)+(-6mm,0mm) $) rectangle ($ (rightbox.south west)+(-5mm,0) $);
        \coordinate(toppoint) at ($ (lastpoint)+(25mm,2mm) $);
        \node[%
        outer sep=0,inner sep=0mm,%
        text width=55mm,% 25
        fit=(toppoint)(tmpa|-bodybox.south),%
        align=center,%
        text=black,fill=titlebg!\COUPAR 0!white,%
        blur shadow={shadow blur steps=5}%
        ] (headbox) {\Large\textbf{\csname parcoursname\PARABBR\endcsname}};
				
      \end{pgfonlayer}
      \coordinate(lastpoint) at ($ (lastpoint|-bodybox.south) + (0,-4mm) $);
    } % Fin de la boucle sur les parcours
		
		
    \coordinate(midpointA) at ($ 2/3*(topleftcorner)+1/3*(toprightcorner)+(-3mm,0) $);
    \coordinate(midpointB) at ($ 2/3*(topleftcorner)+1/3*(toprightcorner)+(3mm,0) $);
    \coordinate(midpointC) at ($ 1/3*(topleftcorner)+2/3*(toprightcorner)+(-3mm,0) $);
    \coordinate(midpointD) at ($ 1/3*(topleftcorner)+2/3*(toprightcorner)+(3mm,0) $);
		%
		%
    %\node[draw=black,inner sep=2mm,outer sep=2mm,anchor=north west,fit=(lastpoint|-bottomleftcorner)(lastpoint-|midpointA),align=flush left] (blockG) {
      %\ifcsdef{attenduGA}{
        %{\large\bfseries Attendus généraux :}\\
        %\begin{list}{$\bullet$}{\topsep=2mm \partopsep=0pt \parsep=0pt \itemsep=0pt \leftmargin=1em \itemindent=0em}%
          %\foreach \YY in \attenduloop {%
            %\ifcsdef{attenduG\YY}{\item \csname attenduG\YY\endcsname}{}%
          %}%
        %\end{list}
      %}{}%
    %};
    %\node[draw=black,inner sep=2mm,outer sep=2mm,anchor=north west,fit=(bottomrightcorner-|midpointC)(lastpoint-|midpointB),align=flush left] (blockTS) {
      %\ifcsdef{attenduTSA}{
        %{\large\bfseries Attendus techniques et scientifiques :}\\
        %\begin{list}{$\bullet$}{\topsep=2mm \partopsep=0pt \parsep=0pt \itemsep=0pt \leftmargin=1em \itemindent=0em}%
          %\foreach \YY in \attenduloop {%
            %\ifcsdef{attenduTS\YY}{\item \csname attenduTS\YY\endcsname}{}%
          %}%
        %\end{list}
      %}{}%
    %};
    %\node[draw=black,inner sep=2mm,outer sep=2mm,anchor=north west,fit=(bottomrightcorner)(lastpoint-|midpointD),align=flush left] (blockTS) {
      %\ifcsdef{attenduHA}{
        %{\large\bfseries Qualités humaines :}\\
        %\begin{list}{$\bullet$}{\topsep=2mm \partopsep=0pt \parsep=0pt \itemsep=0pt \leftmargin=1em \itemindent=0em}%
          %\foreach \YY in \attenduloop {%
            %\ifcsdef{attenduH\YY}{\item \csname attenduH\YY\endcsname}{}%
          %}%
        %\end{list}
      %}{}%
    % }; 
		
				% Le numero de pages
		\node[inner sep=0,outer sep=0,text width=33mm,anchor=north,align=center] (testarrow) at ($ (bottomrightcorner)+(0mm,0mm) $) {
\insertframenumber{}~/~\inserttotalframenumber{}
};
  \end{tikzpicture}
\end{frame}

}