\usetheme{Rochester}


\usepackage[english,frenchb]{babel}
\usepackage{thumbpdf}
\usepackage{pdfpages}
\usepackage{wasysym}
\usepackage{ucs}

\usepackage{pgf,pgfarrows,pgfnodes,pgfautomata,pgfheaps,pgfshade}
\usepackage{verbatim}


\RequirePackage{pgf}


\newcommand{\R}{\mathbb{R}}
\newcommand{\Q}{\mathbb{Q}}
\newcommand{\C}{\mathbb{C}}
\newcommand{\K}{\mathbb{K}}
\newcommand{\N}{\mathbb{N}}
\newcommand{\Pb}{\mathbb{P}}
\newcommand{\PR}{\mathcal{P}}
\newcommand{\UR}{\mathcal{U}}
\newcommand{\LR}{\mathcal{L}}
\newcommand{\dpreuve}{\begin{preuve}\ }
\newcommand{\fpreuve}{\end{preuve}}
\newcommand{\ddef}{\begin{Def}\ }
\newcommand{\fdef}{\end{Def}}
\newcommand{\dth}{\begin{Th}\ }
\newcommand{\fth}{\end{Th}}
\newcommand{\dprop}{\begin{Prop}\ }
\newcommand{\fprop}{\end{Prop}}
\newcommand{\dlemme}{\begin{Le}\ }
\newcommand{\flemme}{\end{Le}}
\newcommand{\dexo}{\begin{exo}}
\newcommand{\fexo}{\end{exo}}
\newcommand{\dexe}{\begin{exe}\ }
\newcommand{\fexe}{\end{exe}}
\newcommand{\drem}{\begin{rem}\ }
\newcommand{\frem}{\end{rem}}
\newcommand{\dnot}{\begin{Not}\ }
\newcommand{\fnot}{\end{Not}}
\newcommand{\dnots}{\begin{Nots}\ }
\newcommand{\fnots}{\end{Nots}}
\newcommand{\dconc}{\begin{conc}\ }
\newcommand{\fconc}{\end{conc}}
\newcommand{\dint}{\begin{Int}}
\newcommand{\fint}{\end{Int}}
\newcommand{\dcoro}{\begin{Coro}\ }
\newcommand{\fcoro}{\end{Coro}}
\newcommand{\drap}{\begin{Rap}}
\newcommand{\frap}{\end{Rap}}
\newcommand{\dalgo}{\begin{Algo}\ }
\newcommand{\falgo}{\end{Algo}}
\newcommand{\pt}{\rule{0.5em}{0.5em}}
\newcommand{\pr}{^{\prime}}
\newcommand{\scd}{^{\prime \prime}}
\newcommand{\trans}[1]{{\vphantom{#1}\,}^{\mathit t}{#1}}
\newcommand{\pri}{^{\prime}}
\newcommand{\tr}{\,^t}
\newcommand{\xb}{\bar{\textbf{x}}}
\newcommand{\cb}{\bar{\textbf{c}}}
\newcommand{\Xb}{\bar X}
\newcommand{\Cb}{\bar C}
\newcommand{\y}{\textbf{y}}
\newcommand{\vecg}{\textbf{ vec}}
\newcommand{\unr}{\textbf{1}_r}
\newcommand{\zr}{\textbf{0}_r}
\newcommand{\bg}{\textbf{b}}

\newcommand{\snr}{\mathcal{S}_n(\R)}
\newcommand{\snpr}{\mathcal{S}_n^+(\R)}
\newcommand{\snppr}{\mathcal{S}_n^{++}(\R)}
\newcommand{\mnr}{\mathcal{M}_n(\R)}
\newcommand{\lf}{\mathcal{L}_f}
\newcommand{\fp}{\mathcal{F}_P}
\newcommand{\fd}{\mathcal{F}_D}
\newcommand{\f}{\mathcal{F}}
\newcommand{\T}{\mathcal{T}}
\newcommand{\Tinv}{\mathcal{S}}
\newcommand{\A}{\mathcal{A}}
\newcommand{\Lr}{\mathcal{L}}
\newcommand{\Pronde}{\mathcal{P}}
\newcommand{\Bronde}{\mathcal{B}}
\newcommand{\M}{\mathcal{M}}

\newcommand{\lb}{\llbracket}
\newcommand{\rb}{\rrbracket}

\newtheorem{Def}{Définition}[section]
\newtheorem{Th}[Def]{Théorème}
\newtheorem{Le}[Def]{Lemme}
\newtheorem{Prop}[Def]{Proposition}
\newtheorem{Coro}[Def]{Corollaire}
\newtheorem{Algo}[Def]{Algorithme}

\pgfdeclareimage[width=1.0\paperwidth]{oxygen-header}{oxygen-header}

\setbeamertemplate{blocks}[rounded][shadow=true]

\beamer@headheight=0.13\paperwidth

\setbeamertemplate{navigation symbols}{}
 
\hypersetup{pdfpagemode=FullScreen} %pour forcer l'affichage en plein écran au démarrage

\setbeamercovered{invisible} % les objets à découvrir sont invisibles

\definecolor{oxygenorange}{rgb}{0.91, 0.48, 0.00}
\definecolor{oxygengray}{HTML}{686868}
\definecolor{oxygenlightgray}{HTML}{eeeeee}
%\definecolor{oxygenblue}{HTML}{236eaf}
\definecolor{oxygenblue}{rgb}{0.78, 0.14, 0.18}


\setbeamercolor*{Title bar}{fg=white}
\setbeamercolor*{Location bar}{fg=oxygenorange,bg=oxygenlightgray}
\setbeamercolor*{frametitle}{parent=Title bar}
\setbeamercolor*{block title}{bg=oxygenblue,fg=white}
\setbeamercolor*{block body}{bg=oxygenlightgray,fg=oxygengray}
\setbeamercolor*{normal text}{bg=white,fg=oxygengray}
\setbeamercolor*{section in head/foot}{bg=oxygenblue,fg=white}

\usecolortheme[named=oxygenorange]{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
  \vskip-0.2cm
  \hskip0.7cm\usebeamerfont*{frametitle}\insertframetitle
  \vskip-0.10em
  \hskip0.7cm\usebeamerfont*{framesubtitle}\insertframesubtitle
  \vskip 0.40cm
}

\setbeamertemplate{headline}
{
  \pgfuseimage{oxygen-header}
  \vskip -1.95cm
  \linethickness{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}}
}

\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 \hspace{2.6 cm}\insertshortdate{}
    \hfill
    - \insertframenumber\  -
    %\insertframenumber/\inserttotalframenumber
  \end{beamercolorbox}}
}


\AtBeginSection[]
{
  \frame<handout:0>
  {
    \frametitle{\frametitle{Plan de l'expos\'e}}
    \tableofcontents[currentsection,hideallsubsections]
  }
}

\AtBeginSubsection[]
{
  \frame<handout:0>
  {
    \frametitle{\frametitle{Plan de l'expos\'e}}
    \tableofcontents[sectionstyle=show/hide,subsectionstyle=show/shaded/hide]
  }
}

\newcommand<>{\highlighton}[1]{%
  \alt#2{\structure{#1}}{{#1}}
}

\newcommand{\icon}[1]{\pgfimage[height=1em]{#1}}
