%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%                                  Copyleft Trullemans Gregory                                    %
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%
%   Ce fichier définit :
%        - Title and part pages.
%        - Itemize environments.
%        - Enumerate environments.
%        - Description environments.
%        - Block environments.
%        - Theorem and proof environments.
%        - Figures and tables.
%        - Footnotes.
%        - Bibliography entries.
%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

\mode<presentation>

\setbeamertemplate{background}{
    \ifnum\thepage>1
        \includegraphics[width=\paperwidth, height=\paperheight]{slide.png}
    \else
        \includegraphics[width=\paperwidth, height=\paperheight]{first.png}
    \fi
}

% Premier Slide
\defbeamertemplate*{title page}{ffg}[1][]
{
    \vspace{100pt}\par
    \begin{beamercolorbox}[ht=2.5ex, center]{title page}
        \usebeamerfont{title}\usebeamercolor[fg]{title}~\inserttitle\par
        \usebeamerfont{subtitle}\usebeamercolor[fg]{subtitle}~\insertsubtitle\par
        \vskip 15pt\par
        \usebeamerfont{author}\usebeamercolor[fg]{author}\insertauthor\par
        \usebeamerfont{subtitle}~\insertdate\par
    \end{beamercolorbox}
}

\mode<all>