%%%----------------------------------------------------------------------
%%%
%%% Le documentstyle de Yassine
%%%
%%% Définition de mon propre theme pour beamer
%%%
%%%
%%%----------------------------------------------------------------------
\NeedsTeXFormat{LaTeX2e}
\ProvidesPackage{monstyleBeamer}[2018/04/20 %
 Style Yassine pour Beamer]
 


% définitions des couleurs
\definecolor{structureColor}{RGB}{243,146,0}
\definecolor{leftFootlineColor}{RGB}{255,255,255}
\definecolor{rightFootlineColor}{RGB}{255,255,255}
\definecolor{authorColor}{RGB}{230,51,18}
\definecolor{footlineTitleColor}{RGB}{230,51,18}
\definecolor{sectionColor}{RGB}{255,255,255}
\definecolor{subsectionColor}{RGB}{255,255,255}
\definecolor{sectionTextColor}{RGB}{0,0,0}
\definecolor{subsectionTextColor}{RGB}{0,0,0}

% réglage texte et structure
\setbeamercolor{normal text}{fg=black, bg=white} % couleur du texte
\setbeamercolor{structure}{fg=structureColor} % puces et titre des blocks normaux

% réglage env block
\setbeamercolor{block title}{fg=white, bg=structureColor!100}
\setbeamercolor{block body}{fg=normal text.fg,bg=structureColor!30}
\setbeamertemplate{blocks}[shadow=false]

% réglages généraux
\useinnertheme{default}
\setbeamertemplate{navigation symbols}{}
%\usefonttheme[stillsansserifsmall]{serif}
\setbeamercolor{titlelike}{fg=structureColor}
%\setbeamercolor{titlelike}{fg=white,bg=structureColor}


% réglages pied de page
%\setbeamercolor{author in head/foot}{bg=leftFootlineColor, fg=authorColor}
\setbeamercolor{author in head/foot}{bg=structureColor, fg=white}
%\setbeamercolor{title in head/foot}{bg=rightFootlineColor, fg=footlineTitleColor}
\setbeamercolor{title in head/foot}{bg=structureColor, fg=white}

\setbeamertemplate{footline}{
\hbox{
\begin{beamercolorbox}[wd=.5\paperwidth,ht=3ex,dp=1ex,left]{author in head/foot}%
\usebeamerfont{author in head/foot}\hspace*{2ex} {\sc Leçon : réponse fréquentielle}
\end{beamercolorbox}%
\begin{beamercolorbox}[wd=.5\paperwidth,ht=3ex,dp=1ex,right]{title in head/foot}%
\usebeamerfont{title in head/foot} {\sc ~ } \hspace*{3ex}\insertframenumber{} / \inserttotalframenumber\hspace*{2ex}
\end{beamercolorbox}
  }%
  \vskip0pt%
}

% réglages entête de page
%\setbeamercolor{section in head/foot}{bg=sectionColor, fg=sectionTextColor}
%\setbeamercolor{subsection in head/foot}{bg=subsectionColor, fg=subsectionTextColor}
%
%\defbeamertemplate*{headline}{}
%{%
%  \begin{beamercolorbox}{section in head/foot}
%    \insertsectionnavigationhorizontal{0.8\paperwidth}{}{}
%    %\rule{\paperwidth}{1pt}‎
%  \end{beamercolorbox}%
% }

%\newif\ifbeamer@tree@showhooks
%\beamer@tree@showhookstrue
%\DeclareOptionBeamer{hooks}[true]{\csname beamer@tree@showhooks#1\endcsname}
%\ProcessOptionsBeamer
%\defbeamertemplate*{headline}{tree theme}
%{%
%\begin{beamercolorbox}[wd=0.7\paperwidth,colsep=1.5pt]{upper separation line head}
%\end{beamercolorbox}
%\begin{beamercolorbox}[wd=0.7\paperwidth,ht=2.5ex,dp=1.125ex,%
%leftskip=.3cm,rightskip=.3cm plus1fil]{section in head/foot}
%\usebeamerfont{section in head/foot}%
%\hskip6pt%
%\insertsectionhead
%\end{beamercolorbox}
%\begin{beamercolorbox}[wd=0.7\paperwidth,ht=2.5ex,dp=1.125ex,%
%leftskip=.3cm,rightskip=.3cm plus1fil]{subsection in head/foot}
%\usebeamerfont{subsection in head/foot}%
%\ifbeamer@tree@showhooks
%\setbox\beamer@tempbox=\hbox{\insertsubsectionhead}%
%\ifdim\wd\beamer@tempbox>1pt%
%\hskip9.4pt\raise1.9pt\hbox{\vrule width0.4pt height1.875ex\vrule width 5pt height0.4pt}%
%\hskip1pt%
%\fi%
%\else%
%\hskip12pt%
%\fi%
%\insertsubsectionhead
%\end{beamercolorbox}
%\begin{beamercolorbox}[wd=0.7\paperwidth,colsep=1.5pt]{lower separation line head}
%\end{beamercolorbox}
%}

