\setbeamercovered{transparent}
\setcounter{tocdepth}{2}
\usepackage[french]{babel}
%\usepackage[utf8,utf8x]{inputenc}
\usepackage[T1]{fontenc}
\usepackage{xunicode} %Unicode extras!
\usepackage{xltxtra}  %Fixes
\setmainfont{CaviarDreams}
\usepackage{multicol}
%\usepackage{colortbtl}
\usepackage{graphicx}
\usepackage{verbatim}            % Pour l'insertion de fichier en mode verbatim
\usepackage{minted}
\usepackage{ucs}
\usepackage{tabto}
\usepackage{tikz}
\usepackage{xcolor}
\usepackage{hyperref}
\usepackage{hyperxmp}
\usepackage{calc}
%\usepackage{pdfpcnotes} % Indisponible dans les paquets, installation manuelle requise

\hypersetup{%
    colorlinks=true,linkcolor=blue,urlcolor=blue,pdfpagemode=UseNone,
    pdftitle={\pdftitle},
    pdfkeywords={\pdfkeywords},
    pdfauthor={\pdfauthor},
    pdflang={fr-FR},
    pdfcopyright={Copyright © 2020 Cadoles}, % Nécessite XeTeX
    pdflicenseurl={http://creativecommons.org/licenses/by-nc-sa/2.0/fr/},
}
\definecolor{UniBlue}{RGB}{83,121,180}
\definecolor{CleanWhite}{RGB}{255,255,255}
\definecolor{TravauxPratiques}{RGB}{230,230,230}
\definecolor{Repos}{RGB}{0,0,0}
\setbeamercolor{title}{fg=UniBlue}
\setbeamercolor{frametitle}{fg=UniBlue}
\setbeamercolor{structure}{fg=UniBlue} 

\newcommand{\eolesmall}{
 \begin{minipage}[c]{0.10\textwidth}
  \skbfigure[width=1cm]{en/eole.png}
 \end{minipage}
}
\newcommand{\eolebig}{\skbfigure[width=2cm]{en/logo.png}}
\newcommand{\eolefull}{\skbfigure{en/logo.png}}
\newcommand{\commande}[1]{\texttt{#1}}
\setbeamertemplate{background}
{\skbinput[from=fig]{cadoles/simple_dash}}



\date{{\small \today}}

\subject{Talks}

\AtBeginSection[]
{
  \begin{frame}<beamer>
	 % \frametitle{Plan}
	 \begin{columns}[t]
	  \begin{column}{5cm}
	   \tableofcontents[sections={1-6},currentsection, hideallsubsections]
	  \end{column}
	  \begin{column}{5cm}
	   \tableofcontents[sections={7-12},currentsection, hideallsubsections]
	  \end{column}
	 \end{columns}
  \end{frame}
}

\AtBeginSubsection[]
{
  \begin{frame}<beamer>
	 % \frametitle{Plan}
	 \begin{columns}[t]
	  \begin{column}{5cm}
	   \tableofcontents[sections={1-6},sectionstyle=show/hide, subsectionstyle=show/shaded/hide]
	  \end{column}
	  \begin{column}{5cm}
	   \tableofcontents[sections={7-12},sectionstyle=show/hide, subsectionstyle=show/shaded/hide]
	  \end{column}
	 \end{columns}
  \end{frame}
}

\addtobeamertemplate{frametitle}{%
\begin{tikzpicture}[remember picture,overlay]
	\node[anchor=north west,yshift=2pt,text opacity=0.5, scale=0.8] at (current page.north west) {\insertsubsection};
	\node[anchor=north east,yshift=2pt,text opacity=0.5, scale=0.8] at (current page.north east) {\insertsection};
\end{tikzpicture}}{%
\begin{tikzpicture}[remember picture,overlay]
	\begin{scope}[xshift=-12cm,yshift=-0.5cm]
		\draw [line width=2pt] (12.75cm,0) -- (12.5cm,0);
		\draw [line width=2pt] (12.25cm,0) -- (11.75cm,0);
		\draw [line width=2pt] (11.5cm,0) -- (10.75cm,0);
		\draw [line width=2pt] (10.5cm,0) -- (8.25cm,0);
		\draw [line width=2pt] (8cm,0) -- (0,0);
\end{scope}
\end{tikzpicture}}
