\documentclass[11pt,a4paper]{article}

\usepackage{agreg_physique}

\title{\huge\fontfamily{cmss}\selectfont\color{Fuchsia}\textbf{ Titre }}
\date{}
\author{author}

\begin{document}

\maketitle

\subsection*{Niveau : niveau}

\subsection*{Élément imposé}
\textit{élément imposé}

\subsection*{Commentaires du jury}
\begin{itemize}
    \item\textbf{2000 : } Blalabal.

\end{itemize}

\noindent
\begin{minipage}[t]{0.48\linewidth}
\subsection*{Prérequis}
\begin{itemize}[label=\ding{226}]
 \item 
 \item 
\end{itemize}
\end{minipage}
\begin{minipage}[t]{0.48\linewidth}
\subsection*{Expériences}
	\begin{itemize}[label=\Coffeecup]
	\item 
	\item 
	\end{itemize}
\end{minipage}

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\nocite{jolidon_physique_experimentale_2020}
\bibliographystyle{plain}
\bibliography{biblio_agreg}

{
  \hypersetup{linkcolor=black}
  \tableofcontents
}
\newpage
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\subsection*{Programme}
\begin{center}
    \includegraphics[width=0.7\textwidth]{programme.png}
\end{center}

\but{But de la leçon}

\section*{Introduction}

\section{Les encarts}

\experience{Exp.}{Réf.}{Liste du matos et description}
\attention{Il faut faire attention !}
\definition{Déf.}{Ceci est une définition.}
\definitions{Déf 1.}{Première déf.\\

\textbf{Déf 2. :} \\
Deuxième déf.
}
\remarque{Ceci est une remarque inutile.}
\important{Imp.}{Ceci n'est pas important.}
\messagecle{Ceci est un message clé}
\exemple{Ex.}{Un exemple}
\references{Liste de réf.}
\transition{Ptite transi}

\paragraph{Un paragraphe} Bla Bla

\section{Exemples de schéma}

\subsection{Gros schéma}

\begin{center}
    \begin{tikzpicture}
        \tikzmath{
        \angl = 60;
        \angll = -135;
        \anglep = -20;
        \angletheta = \angl -90 ;
        \anglephi = 180 + \angll;
        \r = 4;
        \xM = \r * cos(\angl);
        \yM =\r * sin(\angl);
        \yPM = \xM * tan(\anglep);
        \yPMm = \yPM/2;
        \xer = \xM + cos(\angl);
        \yer = \yM + sin(\angl);
        \xMm = \xM/2;
        \yMm = \yM/2;
        \yMPMm = (\yM+\yPM)/2;
        \xaxY = 3 * cos(\angll) ;
        \yaxY = 3 * sin(\angll) ;
        \xaxYp = \xaxY + cos(\angll);
        \yaxYp = \yaxY + sin(\angll);
        \xphiaxY = \xaxYp/2.5 ;
        \yphiaxY = \yaxYp/2.5 ;
        \xphirho = \xM/1.5 ;
        \yphirho = \yPM/1.5 ;
        \xthetar = \xM/3 ;
        \ythetar = \yM/3 ;
        \xetheta = \xM + cos(\angletheta) ;
        \yetheta = \yM + sin(\angletheta) ;
        \xephi = \xM + 0.6*cos(\anglephi) ;
        \yephi = \yM + 0.6*sin(\anglephi) ;
    }
    \draw[dashed] (0,0) -- (4,0);
    \draw[dashed] (0,-2) -- (0,4);
    \draw[dashed] (0,0) -- (\xaxY,\yaxY);
    \fill (0,1) circle (0.1) node[left] {$+q$};
    \fill (0,-1) circle (0.1) node[left] {$-q$};
    \draw[>=latex, <->] (-0.7,-1) -- (-0.7,1) ;
    \node at (-1,0) { $a$};
    \draw[>=latex, |->] (4,0) -- (5,0) node[above] {$\mathbf{e}_x$} ;
    \draw[>=latex, |->] (0,4) -- (0,5) node[left] {$\mathbf{e}_z$} ;
    \draw[>=latex, |->] (\xaxY,\yaxY)  -- (\xaxYp,\yaxYp)  node[left] {$\mathbf{e}_y$};
    \coordinate (O) at (0,0);
    \draw (O) node[cross] {};
    \draw (O) node[above left]{$O$};
    \draw (\xM,\yM) node[cross] {};
    \draw (\xM,\yM) node[above left]{$M$};
    \draw[>=latex, |->,blue,thick] (O) -- (\xM,\yM);
    \draw (\xMm,\yMm) node[below right,text=blue] {$\mathbf{r}$};
    \draw[>=latex, |->] (\xM,\yM)  -- (\xer,\yer)  node[above left] {$\mathbf{e}_r$};
    \draw[>=latex, |->] (\xM,\yM)  -- (\xetheta,\yetheta)  node[below right] {$\mathbf{e}_\theta$};
    \draw[>=latex, |->] (\xM,\yM)  -- (\xephi,\yephi)  node[below right] {$\mathbf{e}_\varphi$};
    \draw[>=latex, <->,dashed,gray] (O) -- (\xM,\yPM);
    \draw (\xMm, \yPMm) node[below left,text=gray] {$\rho$};
    \draw (\xM, \yMPMm) node[right,text=gray] {$z$};
    \draw[>=latex, <->,dashed,gray] (\xM,\yM) -- (\xM,\yPM);
    \draw[->] (\xphiaxY,\yphiaxY)  to [out=-30,in=-130, looseness=1] ( \xphirho, \yphirho) ;
    \draw (0.55,-1.45) node {$\varphi$};
    \draw[->] (0,1.5)  to [out=0,in=120, looseness=1] ( \xthetar, \ythetar) ;
    \draw (0.35,1.7) node {$\theta$};
    \end{tikzpicture}
\end{center}

\subsection{Petits schémas}

\begin{center}
    \begin{tikzpicture}
     \draw[>=latex, ->,thick] (-5,2) -- (5,2) node[below] {$Q_r$} ;
     \draw[thick] (0,1.8) node[below] {$K^\circ$} -- (0,2.2) ;
     \draw[thick,gray] (-2.5,1.8) node[below,text=gray] {$Q_{r,i}$} -- (-2.5,2.2);
     \draw[>=latex, ->,thick,colorexperience] (-2.48,0.8) node[below right,text=colorexperience] {évolution directe spontanée}-- (0,0.8);
     \draw[>=latex, ->,thick,orange] (-2.52,0.8) node[below left,text=orange] {évolution forcée}-- (-5,0.8) ;
     \draw[>=latex, ->,thick] (-5,-2) -- (5,-2) node[below] {$Q_r$};
     \draw[thick] (0,-2.2)  -- (0,-1.8)node[above] {$K^\circ$} ;
     \draw[thick,gray] (2.5,-2.2)  -- (2.5,-1.8)node[above,text=gray] {$Q_{r,i}$};
     \draw[>=latex, ->,thick,colorexperience] (2.48,-0.8)node[above left,text=colorexperience] {évolution indirecte spontanée} -- (0,-0.8);
     \draw[>=latex, ->,thick,orange] (2.52,-0.8)node[above right,text=orange] {évolution forcée}-- (5,-0.8) ;
    \end{tikzpicture}
\end{center}

\begin{center}
    \begin{tabular}{c|c}
      \chemfig{C(-[:60]CH_3)(-[:180]C_2 H_5)(<[:280]OH)(<:[:320]H)}   &  \chemfig{C(-[:120]CH_3)(-[:0]C_2 H_5)(<[:260]OH)(<:[:220]H)}\\
    \end{tabular}
\end{center}

\section{Exemples de graphes}

\subsection{Graphe rapide}

\begin{center}
    \begin{tikzpicture}
    \tikzmath{\pka = 4.74;}
    \begin{axis}[
        cycle list name=exotic,
		my axis style,%pour avoir les labels centrés
		height=6cm,
		width=0.7\textwidth,
		legend entries={
			$[\ch{ CH_3 COOH}]$,
			$[\ch{ CH_3 COO^-}]$,
		},
		legend pos=north east,
		samples = 72,
		xlabel= pH,
		ylabel = Proportion relative
	]
	
	\addplot[
		domain=0:14,
		thick,
		colorexperience
	]
	{1/(10^(x-\pka)+1)};

	\addplot[
		domain=0:14,
		thick,
		orange
	]
	{1/(10^(\pka-x)+1)};

	
	\end{axis}
	\end{tikzpicture}
\end{center}

\subsection{Graphe qui met du temps à compiler}

\begin{center}
	
	\begin{tikzpicture}
	\tikzmath{\Ra = 0.4;
	\Rb = 0.7;
	\ma = (4*\Ra)/(1-\Ra)^2;
	\mb = (4*\Rb)/(1-\Rb)^2;
	};
	\begin{axis}[
		my axis style 2,%pour avoir les labels au bout des axes
		width=0.9\textwidth,
		height=.5\textwidth,
		legend entries={
			$R=\Ra$,
			$R=\Rb$,
		},
		legend pos=south east,
		xlabel=$\phi$,
		ylabel=$\frac{I}{I_\text{max}}$,
		ymin=0,ymax=1.1,
		xtick = {-4*pi,-2*pi,0,2*pi,4*pi},
		xticklabels ={$-4\pi$,$-2\pi$,0,$2\pi$,$4\pi$},
		ytick = {0,0.5,1},
		samples=2000 %c'est ce nombre qui augmentent le temps de compilation
	]
	
	\addplot[
		domain=-5*pi:5*pi,
		thick,
		colorexperience
	]
	{1/(1+\ma^2*sin(deg(x/2))^2)};

	\addplot[
		domain=-5*pi:5*pi,
		thick,
		orange
	]
	{1/(1+\mb^2*sin(deg(x/2))^2)};
    
    \draw[>=latex, <->] (2*pi,0.98) -- (4*pi,0.98) ;
    \node at (3*pi,1.02) { $\Delta \phi$};
    
    \draw[>=latex, <->] (2*pi-2/5,0.5) -- (2*pi+2/5,0.5) node[above right] {$\delta\phi$} ;
    
	
	\end{axis}
	\end{tikzpicture}
	
\end{center}

\section*{Conclusion}

\section*{Compléments}

\subsection*{Questions}
\begin{itemize}
    \item \textbf{Question ?} Réponse
    \item
\end{itemize}

\subsection*{Commentaires}
\begin{itemize}
    \item 
    \item 
\end{itemize}

\end{document}