\usepackage{graphicx}
\usepackage{geometry}
\usepackage[french]{babel}
\usepackage[T1]{fontenc}

\graphicspath{{images/}}
\geometry{
  a4paper,
  left=2.5cm,
  right=2.5cm,
  top=1.5cm,
  bottom=1.5cm
}

\newcommand{\subtitle}[1]{\def\@subtitle{#1}}
\newcommand{\@subtitle}{}

\newcommand{\coverpage}[3] {
	\begin{titlepage}

	\begin{figure}[h]
	    \centering
	    \includegraphics[width=0.20\textwidth]{#2}
	\end{figure}

	\begin{center}
		\large #1

		\vspace{0.5cm}

		\rule{\textwidth}{1pt}

		\Huge \@title

		\large \@subtitle

		\rule{\textwidth}{1pt}

		\large Par \@author
		
		\large Le \today 
	\end{center}

	\vspace{0.5cm}

	\begin{figure}[h]
	    \centering
	    \includegraphics[width=0.75\textwidth]{#3}
	\end{figure}

	\end{titlepage}
}

\newcommand{\crfigure}[2] {
	\begin{figure}[h]
	    \centering
	    \includegraphics[width=0.75\textwidth]{#1}
	    \caption{#2}
	\end{figure}
}
