\usetheme{Rochester}
\usepackage[french]{babel}
\RequirePackage{pgf}

\pgfdeclareimage[width=\paperwidth]{bandeau_alt87}{bandeau_alt87}

\setbeamertemplate{blocks}[rounded][shadow=true]
%\setbeamercovered{transparent}

\beamer@headheight=0.13\paperwidth

%\definecolor{airorange}{rgb}{0.729 , 0.023 ,0.035}
\definecolor{airorange}{HTML}{0F90BF}
\definecolor{airdarkblue}{HTML}{064F6F}
\definecolor{airlightblue}{HTML}{0099d5}
\definecolor{airgray}{HTML}{686868}
\definecolor{airlightgray}{HTML}{eeeeee}
\definecolor{airblue}{rgb}{.13 ,.43 ,.68}
\setbeamercolor*{Title bar}{fg=airorange}
\setbeamercolor*{Location bar}{fg=airorange,bg=airlightgray}
\setbeamercolor*{frametitle}{parent=Title bar}
\setbeamercolor*{block title}{bg=airlightblue,fg=white}
\setbeamercolor*{block body}{bg=airlightgray,fg=airgray}
\setbeamercolor*{normal text}{bg=white,fg=airgray}
%\setbeamercolor*{section in head/foot}{bg=airblue,fg=airdarkblue}
\setbeamercolor*{section in head/foot}{bg=airlightgray,fg=airdarkblue}

\usecolortheme[named=airorange]{structure}

\setbeamerfont{section in head/foot}{size=\tiny,series=\normalfont}
\setbeamerfont{frametitle}{size=\Large}

%\setbeamertemplate{headline}
\setbeamertemplate{frametitle}
{
  \vskip-0.25\beamer@headheight
  \vskip-\baselineskip
  \vskip0.0cm
  \hskip1.5cm\usebeamerfont*{frametitle}\insertframetitle
  \vskip-0.10em
  \hskip1.53cm\usebeamerfont*{framesubtitle}\insertframesubtitle
}

\setbeamertemplate{headline}
{
  \pgfuseimage{bandeau_alt87}
  \vskip -1.95cm
  \linethickness{0.0pt}

  \framelatex{
  \begin{beamercolorbox}[wd=\paperwidth,ht=0.3\beamer@headheight]{Title bar}
    \usebeamerfont{section in head/foot}%
    \insertsectionnavigationhorizontal{0pt}{\hskip0.22cm}{}%
  \end{beamercolorbox}}

  \framelatex{
  \begin{beamercolorbox}[wd=\paperwidth,ht=0.7\beamer@headheight]{Title bar}
  \end{beamercolorbox}}
}


%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Définition des variables %
%%%%%%%%%%%%%%%%%%%%%%%%%%%%

\newcommand{\titreEvenement}[1]{\newcommand{\@titreEvenement}{#1}}

\setbeamertemplate{footline}
{
  \linethickness{0.25pt}
  \framelatex{
  \begin{beamercolorbox}[leftskip=.3cm,wd=\paperwidth,ht=0.3\beamer@headheight,sep=0.1cm]{Location bar}
    \usebeamerfont{section in head/foot}%
    %\insertshortauthor~|~
    \insertshorttitle
    %Les Logiciels libres
    \hfill
    \@titreEvenement
    % \insertframenumber/\inserttotalframenumber
  \end{beamercolorbox}}
}

