\usepackage{beamerthemeboxes}

%\addheadboxtemplate{\color{bleuclair}}{\color{white}\tiny\quad
% hello}

\addfootboxtemplate{\color{bleufonce!80!black}}{\color{white}{\tiny  \quad \insertshortauthor \hfill \insertshorttitle \quad }}

\addfootboxtemplate{\color{bleuclair!95!black}}{\color{white}{\tiny \quad \what \hfill  \insertframenumber/\inserttotalframenumber \quad }}

%table of contents - outline
%\beamertemplatenumberedballsectiontoc
\setbeamertemplate{section in toc}[circle]
\setbeamercolor{section number projected}{fg=white,bg=bleufonce!80!black}
\setbeamertemplate{subsection in toc}[square]
\setbeamercolor{subsection number projected}{fg=white,bg=bleuclair!95!black}
\setbeamercolor{section in toc}{fg=bleufonce!80!black}
\setbeamercolor{subsection in toc}{fg=bleuclair!95!black}


%colors - text
\setbeamercolor{normal text}{fg=bleufonce!80!black}

%\beamertemplateshadowblocks

% pas de barre de navigation en bas a droite
\beamertemplatenavigationsymbolsempty

% page de titre
\beamertemplatelargetitlepage
\setbeamercolor{title}{fg=bleufonce!80!black}
\setbeamercolor{author}{fg=bleuclair!95!black}
\setbeamercolor{institute}{fg=bleufonce!80!black}
\setbeamercolor{date}{fg=bleuclair!95!black}
%\setbeamercolor{headline}{fg=bleuclair!95!black,bg=bleuclair!95!black}




% items
\setbeamercolor{itemize item}{fg=bleufonce!80!black}
\setbeamercolor{itemize subitem}{fg=bleuclair!95!black}
\setbeamercolor{description item}{fg=bleuclair!95!black}
\setbeamercolor{enumerate item}{fg=bleuclair!95!black}

\setbeamercolor{button}{bg=bleuclair!95!black}

\setbeamercolor{alerted text}{fg=Framb}

%petits points (avancement en haut)
%\useoutertheme[subsection=false]{miniframes}
\useoutertheme[subsection=false]{smoothbars}
%\setbeamercolor{mini frame}{fg=bleuclair!95!black}
\setbeamercolor{section in head/foot}{fg=bleuclair!95!black}
%\useoutertheme{shadow}

%Frame title (underlined)
\setbeamercolor{frametitle}{fg=bleufonce!80!black}
%\setbeamercolor{framesubtitle}{bg=bleuclair!95!black,fg=bleuclair!95!black}
\setbeamertemplate{frametitle}{%
      {\color{bleufonce!80!black}{\insertframetitle}}
\par
      \color{bleuclair!95!black}{\vrule width \textwidth height .8mm}
}



%Colors
\definecolor{bleuclair}{rgb}{.34,.65,.93}%
\definecolor{bleufonce}{rgb}{.21,.5,.78}%
\definecolor{LemonChiffon}{rgb}{1,.98,.8}%
\definecolor{Tomate}{rgb}{1,0.1,0.1}%
\definecolor{Framb}{rgb}{0.8,0,0.4}%
\definecolor{Vertfonce}{rgb}{0.3,0.6,0.5}%
\definecolor{Vert}{rgb}{0.3,0.5,0}%
\definecolor{GrisM}{rgb}{0.3,0.3,0.3}%

\newcommand{\Tomate}[1]{\textcolor{Tomate}{#1}}
\newcommand{\Bleuclair}[1]{\textcolor{bleuclair}{#1}}
\newcommand{\Bleufonce}[1]{\textcolor{bleufonce}{#1}}
\newcommand{\LemonChiffon}[1]{\textcolor{LemonChiffon}{#1}}
\newcommand{\Framb}[1]{\textcolor{Framb}{#1}}
\newcommand{\Vertfonce}[1]{\textcolor{Vertfonce}{#1}}
\newcommand{\GrisM}[1]{\textcolor{GrisM}{#1}}
% Boxes

\mode<presentation>{
  \beamerboxesdeclarecolorscheme{boitebleue}{bleufonce!90!black}{bleuclair!24!white}
  \beamerboxesdeclarecolorscheme{boitebleuclair}{bleuclair!24!white}{bleuclair!24!white}
  \beamerboxesdeclarecolorscheme{boitejaune}{LemonChiffon}{LemonChiffon}
\beamerboxesdeclarecolorscheme{boitesimple}{white!85!Vert}{white!90!Vert}
\def\colorheadres{\textcolor{white}}
\def\colorheadsimple{\textcolor{Vert}}
}

\newenvironment<>{EnvRes}[1]{\medskip  \begin{uncoverenv}#2\begin{beamerboxesrounded}[scheme=boitebleue]{\colorheadres{\large #1}}}{\end{beamerboxesrounded}\end{uncoverenv}}
\newenvironment<>{EnvFact}[1]{\medskip\begin{uncoverenv}#2\begin{beamerboxesrounded}[scheme=boitebleuclair]{\textcolor{bleuclair!75!black}{\large #1}}}{\end{beamerboxesrounded}\end{uncoverenv}}
\newenvironment<>{EnvDef}[1]{\medskip\begin{uncoverenv}#2\begin{beamerboxesrounded}[scheme=boitejaune]{\textcolor{bleuclair!95!black}{\large #1}}}{\end{beamerboxesrounded}\end{uncoverenv}}
\newenvironment{EnvCode}[1]{\medskip\begin{beamerboxesrounded}[scheme=boitesimple]{\colorheadsimple{\large #1}}}{\end{beamerboxesrounded}}

% Block par defaut : EnsRes (entre autre pour les theoremes)

\def\inserttheoremblockenv{EnvRes}

% Block Exemple (active en utilisant \theoremstyle{example} avant la
% declaration du theoreme (\newtheorem)

\def\th@example{%
  \def\inserttheoremblockenv{EnvFact}  
}

% Block Def (active en utilisant \theoremstyle{definition} avant la
% declaration du theorem (\newtheorem)

\def\th@definition{%
  \def\inserttheoremblockenv{EnvDef}  
}


%Logo
%\logo{\vspace{8 cm} 
%\includegraphics[height=0.4cm]{../styleVertecs/logo-inria.pdf} 
%}