%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%                                  Copyleft Trullemans Gregory                                    %
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%																								  
% Some parts of this theme are based on the 'diepentheme' by Guido Diepen <diepen@cs.uu.nl>       
%																								  
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

\ProvidesPackage{beamerthemeffg}

\RequirePackage{calc}
\RequirePackage{ifthen}
\RequirePackage[T1]{fontenc}
\RequirePackage[no-math]{fontspec}
\RequirePackage{ragged2e}
\RequirePackage{graphics}
\RequirePackage[frenchb]{babel}
\RequirePackage{nicefrac}
\RequirePackage{xcolor}
\RequirePackage{tikz}

\useinnertheme{ffg}
\useoutertheme{ffg}
\usecolortheme{ffg}

\setlength\fboxrule{0.75pt}
\newcommand{\mybox}[1]{\fbox{$~~~ \displaystyle#1 ~~~$}}

%	Justification du texte
%		si on place le param dans les 1eres {}, le reste du layout (titre, sous-titre, allignement, … ) est perdu.
%		si on place le param dans les 2emes {}, le titre et sous-titre ne sont pas affectés. Mais les bloc non plus.
\apptocmd{\frame}{}{\justifying}{}


%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% First Page's element configuration
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\setbeamerfont{title}{size=\Huge, series=\bfseries}
\setbeamerfont{author}{size=\Large, series=\bfseries}
\setbeamerfont{date}{size=\normalsize}
\setbeamerfont{institute}{size=\footnotesize}
\setbeamerfont{subtitle}{size=\large, series=\normalfont}


%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Other page's element configuration
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\setbeamerfont{frametitle}{size=\huge, series=\bfseries}
\setbeamerfont{framesubtitle}{size=\footnotesize, series=\normalfont}
\setbeamersize{text margin left=4ex}

% Alert block
\setbeamerfont{block title}{series=\bfseries}
