\input{../tex/entetePoly.tex}  %%%% REFAIRE POUR LE 12pt PROPRE !!

% \renewcommand{\LeTitre}[2]{%
%        \section{#2}%
%      }%

\newcommand{\BigTitre}[2]{%
  \title{#2}
%  \subtitle{(#1)} %% pas de champ sous titre natif
%\date{}
%\author{}
 \maketitle}

%%%%%%%% Couleurs Mayeul

 \definecolor{fondetsection}{RGB}{69,78,135}
\definecolor{fondtitre}{RGB}{34,40,75}
\definecolor{grisfonce}{RGB}{49,49,49}
\definecolor{grisclair}{RGB}{111,111,111}
\definecolor{blanc}{RGB}{255,255,255}
\definecolor{fonddeboite}{RGB}{218,221,239}
\definecolor{shadecolor}{RGB}{218,221,239}


% Dépersonnalisé
%\definecolor{fondti\textit{tr}e}{RGB}{21,114,78}
%\definecolor{fondtitrep}{RGB}{34,112,119}
%\definecolor{fondtitret}{RGB}{76,25,99}

% Pêchu
\definecolor{fondtitre}{RGB}{154,200,13}
\definecolor{fondtitrep}{RGB}{255,71,1}
\definecolor{fondtitret}{RGB}{254,25,142}

%%%%%%%% /Couleurs Mayeul

%%%%%% Théorèmes
%%% Compteurs
\newcounter{cresultat} 
\newcounter{cdef} 
% \arabic{cdef}
% \newcounter{cdef}[chapter]

%%%%% Boîtes (d'après Mayeul)
\newcommand*{\boitemagiquegene}[4]{
  \begin{center}
    \begin{tikzpicture}
      % la boite
      \node[rectangle,
      rounded corners=8 pt,
      draw=#3!100,
      fill=#3!#4,
      inner sep=10pt,
      inner ysep=20pt] (mabox)
      {
        \begin{minipage}{450pt}
          #2
        \end{minipage}
      };
      % le titre de la boite
      \node[fill=#3!100,
      text=white,
      rectangle,
      rounded corners=3 pt,
      anchor=west,
      xshift = -10mm] at (mabox.north west) {\sffamily\textbf{#1}};
    \end{tikzpicture}
  \end{center}
} 

\newcommand*{\boitemagiqued}[2]{
  \boitemagiquegene{#1}{#2}{fondtitre}{20}
} 

\newcommand*{\boitemagiquep}[2]{
  \boitemagiquegene{#1}{#2}{fondtitrep}{30}
}
\newcommand*{\boitemagiquec}[2]{
  \boitemagiquegene{#1}{#2}{fondtitrep}{10}
}
\newcommand*{\boitemagiquet}[2]{
  \boitemagiquegene{#1}{#2}{fondtitret}{20}
}


%%% /Boîtes

% \theoremstyle{definition}\theorembodyfont{\rm}
%\newtheorem{exo}{Exercice}

\def\elev{}

\newcommand{\mis}[1]%
{\pagebreak[2] \vspace{0.3cm}\noindent \hspace{0.2cm}  \faRadiation \ {\bf Mise en garde }
: \nopagebreak   #1  \elev{\vspace{0 pt}} { \hfill \faRadiation\par \pagebreak[1]\vspace{0.3 cm}}
}

\newcommand{\met}[1]%
{\pagebreak[2] \vspace{0.3cm}\noindent \hspace{0.2cm}  {\color{brown!60!white}\faScroll}\ \textbf{Méthode:}  #1  { \par \pagebreak[1]\vspace{0.3 cm}}\elev{\vspace{0 pt}}
}



\def\preuve{}
\newcommand{\defn}[2][]%
{\begin{center}
    \refstepcounter{cdef}
    \boitemagiqued{Définition \thecdef\ #1}{#2}
  \end{center} \elev{\vspace{0 pt}}}

\newcommand{\prop}[2][]%
{\begin{center}
    \refstepcounter{cresultat}
    \boitemagiquep{Proposition  \thecresultat\ #1}{#2}
  \end{center}\elev{\preuve}}   

		
		
\newcommand{\coro}[2][]%
{\begin{center}
    \refstepcounter{cresultat}
    \boitemagiquec{Corollaire  \thecresultat\ #1}{#2}
  \end{center}\elev{\preuve}}  
		
		
\newcommand{\theo}[2][]%
{\begin{center}
    \refstepcounter{cresultat}
    \boitemagiquet{Théorème  \thecresultat\ #1}{#2}
  \end{center}\elev{\preuve}}

% \newtheorem{deftn}{Définition}
% \newtheorem{theo}{Théorème}
% \newtheorem{lemme}[theo]{Lemme}
% \newtheorem{prop}[theo]{Propriété} 
% \newtheorem{cor}[theo]{Corollaire}
\newtheorem{nott}{Notation}
\newtheorem{vocab}[nott]{Vocabulaire}
\newtheorem{rmq}{Remarque}
\newtheorem{csq}{Conséquence}
\newtheorem{ex}{Exemple}
\newtheorem{exo}{Exercice}
\newtheorem{c-ex}[ex]{Contre-exemple}
\newtheorem{appli}{Application}
\newtheorem{rappel}{Rappel}
% Environnements encadrés
% \newenvironment{deftnE}{\renewcommand*{\arraystretch}{0}\begin{tabular}{|p{\linewidth}|}\hline\begin{deftn}}
% {\end{deftn}\\\hline\end{tabular}\bigskip\\}
% \newenvironment{theoE}{\renewcommand*{\arraystretch}{0}\begin{tabular}{|p{\linewidth}|}\hline\begin{theo}}
% {\end{theo}\\\hline\end{tabular}\bigskip\\}
% \newenvironment{corE}{\renewcommand*{\arraystretch}{0}\begin{tabular}{|p{\linewidth}|}\hline\begin{cor}}
% {\end{cor}\\\hline\end{tabular}\bigskip\\}
% \newenvironment{propE}{\renewcommand*{\arraystretch}{0}\begin{tabular}{|p{\linewidth}|}\hline\begin{prop}}
% {\end{prop}\\\hline\end{tabular}\bigskip\\}
% \newenvironment{nottE}{\renewcommand*{\arraystretch}{0}\begin{tabular}{|p{\linewidth}|}\hline\begin{nott}}
% {\end{nott}\\\hline\end{tabular}\bigskip\\}
% %%% \def\deftnE#1\end#2{\fbox{\parbox[xcm]{#1}}}

%%% D\'efinition des environnements "demo", "sol" etc
%\newenvironment{sol}{\noindent\textbf{Solution.}}{\hfill $\Box$\vspace{5mm}}
\newenvironment{demop}{\noindent\textbf{Démonstration.}}{}
\newenvironment{demo}{\noindent\textbf{Démonstration.}}{\hfill $\Box$\vspace{5mm}}
\newenvironment{demoth}[1]{\noindent\textbf{Démonstration du théorème \ref{#1} (unicité).}}{\hfill $\Box$\vspace{5mm}}
\newenvironment{demol}[1]{\noindent\textbf{Démonstration du lemme \ref{#1}.}}{\hfill $\Box$\vspace{5mm}}
\newenvironment{csqg}{\noindent\textbf{Conséquences graphiques.}}{}


%%%%%% Section et subsection comme dans le cours. %%%%%%
\setcounter{secnumdepth}{4}
\renewcommand{\thesection}{\Roman{section})}
\renewcommand{\thesubsection}{\Alph{subsection})}
%\renewcommand{\thesubsection}{\arabic{subsection})}
\renewcommand{\thesubsubsection}{\arabic{subsubsection})}
\renewcommand{\theparagraph}{\alph{paragraph})}
\makeatletter
\def\section{\@startsection {section}{1}{\z@}{-3.5ex plus -1ex minus 
    -.2ex}{2.3ex plus .2ex}{\Large\bf}}
\def\subsection{\@startsection{subsection}{2}{5ex}{-3.25ex plus -1ex minus 
   -.2ex}{1.5ex plus .2ex}{\large\bf}}
\def\subsubsection{\@startsection{subsubsection}{3}{10ex}{-3.25ex plus
-1ex minus -.2ex}{1.5ex plus .2ex}{\normalsize\bf}}
\def\paragraph{\@startsection
     {paragraph}{4}{15ex}{3.25ex plus 1ex minus .2ex}{1.5ex plus .2ex}{\normalsize\bf}}
% Raccourci :
\newcommand{\subsubsubsection}[1]{\paragraph{#1}}
%\def\subparagraph{\@startsection
%     {subparagraph}{4}{\parindent}{3.25ex plus 1ex minus 
%     .2ex}{-1em}{\normalsize\bf}}
\makeatother
%%%%%%   %%%%%%  %%%%%%  %%%%%%  %%%%%%   %%%%%%  %%%%%%  %%%%%%

%%%%%% Commentaires & co %%%%%%
\def\bla#1{{\small \color{red} #1}} % Commentaires oraux
\def\blo#1{{\color{blue} #1}} % trous du poly
\def\bloblo{\blue}
\newenvironment{code}{}{} % informatique
%%%%%% Dessins %%%%%%
\newcommand{\cadre}[2]{\fbox{\begin{tabularx}{#1}[t]{c}\vspace{#2}\end{tabularx}}}
\newcommand{\vcadre}[2]{\mbox{\begin{tabularx}{#1}{c}\vspace{#2}\end{tabularx}}}

%%%%%% Table des matieres %%%%%%

% \makeatletter
% \let\vxexo\exo
% \def\exoopt[#1]{\addcontentsline{toc}{subsubsection}{#1}\vxexo[#1]}
% \renewcommand{\exo}{\@ifnextchar[{\exoopt}{\vxexo}}
% \makeatother

