\documentclass{beamer}

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\usepackage[utf8x]{inputenc}
\usepackage[frenchb]{babel}
\usepackage[T1]{fontenc}
\usepackage{slantsc}
\usepackage[export]{adjustbox}
\usepackage{color}
\usepackage{listings}
\usepackage{graphicx}
\usepackage{textcomp}
\usepackage{tikz}
\usepackage{booktabs}
\usepackage{setspace}
\usepackage{capt-of}
\usepackage{amsfonts}

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%~ paramètres

%%%%%%%%%%%%%%%%
% lstlisting settings

\lstset{language=Python,
    basicstyle=\ttfamily\small,
    keywordstyle=\color{blue}\ttfamily,
    stringstyle=\color{red}\ttfamily,
    commentstyle=\color{green}\ttfamily,
    morecomment=[l][\color{magenta}]{\#},
    showstringspaces=false
    inputencoding=utf8,
    extendedchars=true,
    literate={á}{{\'a}}1 {ã}{{\~a}}1 {é}{{\'e}}1 {è}{{\`e}}1,
    columns=fullflexible
}

%%%%%%%%%%%%%%%%
% Tikz def

\usetikzlibrary{shapes,arrows, chains, }
\tikzstyle{bblock} = [rectangle, draw, fill=white!0, text width=5em, text centered, rounded corners, minimum height=3em] % minimum height=4em, text width=9em
\tikzstyle{rblock} = [rectangle, draw, fill=red!20, text width=7em, text centered, rounded corners, minimum height=3em] % minimum height=4em, text width=9em
\tikzstyle{gblock} = [rectangle, draw, fill=green!20, text width=7em, text centered, rounded corners, minimum height=3em] % minimum height=4em, text width=9em
\tikzstyle{yblock} = [rectangle, draw, fill=yellow!20, text width=7em, text centered, rounded corners, minimum height=3em] % minimum height=4em, text width=9em
\tikzstyle{lblock} = [rectangle, draw, fill=blue!20, text width=7em, text centered, rounded corners, minimum height=3em] % minimum height=4em, text width=9em
\tikzstyle{wblock} = [rectangle, draw, fill=white!20, text width=7em, text centered, rounded corners, minimum height=3em]
%~ \tikzstyle{vblock} = [rectangle, draw, fill=white!0, text width=0em, text centered, rounded corners, minimum height=0em]
\tikzstyle{vblock} = [fill=white!0]
\tikzstyle{line} = [draw, -latex']

%%%%%%%%%%%%%%%%
% beamer theme

\mode<presentation>
{
    \usetheme{Dresden}
    \usecolortheme{seahorse}
}

%%%%%%%%%%%%%%%%
% titlepage parameters

\title[\ Subtitle]{Title}

\author
{
    Name \textsc{Surname}
}
\institute[Shortname]
{
    Full name\\
    \medskip

    \texttt{name.surname@example.org}
}
\date
{
    \today
}

%%%%%%%%%%%%%%%%
% beamer diapo numbering

\newcommand{\frameofframes}{/}
\newcommand{\setframeofframes}[1]{\renewcommand{\frameofframes}{#1}}

\setframeofframes{/}
\makeatletter
\setbeamertemplate{footline}
{%
    \begin{beamercolorbox}[colsep=1.5pt]{upper separation line foot}
    \end{beamercolorbox}
\begin{beamercolorbox}[ht=2.5ex,dp=1.125ex,%
    leftskip=.3cm,rightskip=.3cm plus1fil]{author in head/foot}%
    \leavevmode{\usebeamerfont{author in head/foot}\insertshortauthor}%
    \hfill%
    {\usebeamerfont{institute in head/foot}\usebeamercolor[fg]{institute in head/foot}\insertshortinstitute}%
\end{beamercolorbox}%
\begin{beamercolorbox}[ht=2.5ex,dp=1.125ex,%
    leftskip=.3cm,rightskip=.3cm plus1fil]{title in head/foot}%
    {\usebeamerfont{title in head/foot}\insertshorttitle}%
    \hfill%
    {\usebeamerfont{frame number}\usebeamercolor[fg]{frame number}\insertframenumber~\frameofframes~\inserttotalframenumber}
\end{beamercolorbox}%
\begin{beamercolorbox}[colsep=1.5pt]{lower separation line foot}
\end{beamercolorbox}
}
\makeatother

%%%%%%%%%%%%%%%%
% auto counter for diapo

\newcounter{ixdiapo} % 0
\newcounter{totdiapo} % 0

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%~ présentation
\begin{document}


%%
\begin{frame}
    \titlepage
\end{frame}
%%


%%
\begin{frame}
    \frametitle{Plan}
    \tableofcontents
\end{frame}
%%


%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

\section{Section 1}

    \subsection{Sous-section 1.1}
%%
\begin{frame}
    \frametitle{Titre diapo}
    \begin{itemize}
        \item 1
        \item 2
    \end{itemize}
\end{frame}
%%


%%
\begin{frame}
    \frametitle{Titre diapo}
    \begin{itemize}
        \item 3
        \item 4
    \end{itemize}
\end{frame}
%%

    \subsection{Sous-section 1.2}

%%
\begin{frame}
    \frametitle{Titre diapo}

    Du texte

\end{frame}
%%



%%%%
\end{document}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% scratchpad

