\documentclass{beamer}
\usetheme{Boadilla}
\usecolortheme{seahorse}

% importations
\usepackage[french]{babel} % pour dire que le texte est en francais
\usepackage{nth}
\usepackage{csquotes}
\usepackage[T1]{fontenc} % pour les font postscript
\usepackage[cyr]{aeguill} % Police vectorielle TrueType, guillemets francais
\usepackage{epsfig} % pour gérer les images
\usepackage{amsmath,amsthm, stmaryrd} % très bon mode mathématique
\usepackage{amsfonts,amssymb,bm, bbold}% permet la definition des ensembles
\usepackage{algorithm2e} % pour les algorithmes
\usepackage{algpseudocode} % pour les algorithmes
\usepackage{graphicx}
\usepackage{subcaption}
\usepackage{booktabs}
\usepackage{tabularx}
\usepackage{xcolor} % Couleurs
\usepackage{xstring}
\usepackage{float} % pour le placement des figure
\usepackage{url} % pour une gestion efficace des url
\usepackage{hyperref}  % pour les hyperliens dans le document
\usepackage{tikz} % For graph plots
\usepackage{adjustbox} % To resize tikzpictures
\usepackage{fontawesome5}
\usepackage{makecell}
\usepackage{appendixnumberbeamer} % Pour cacher la numérotation des backups slides
\usepackage{chronology} % Frise chronologique

% Tables
\renewcommand\theadfont{\tiny}

% Color
\definecolor{ao(english)}{rgb}{0.0, 0.5, 0.0}

% Beamer
% \setbeamertemplate{headline}{}
\setbeamertemplate{caption}[numbered]
\setbeamertemplate{note page}[plain] % Pour les notes
% \setbeameroption{show notes on second screen=right}

% \setbeamertemplate{footline}{%
%     \hbox{%
%         \begin{beamercolorbox}[wd=\paperwidth, right]{title in head/foot}%
%                 \tiny{\insertframenumber{}/\inserttotalframenumber}
%         \end{beamercolorbox}
% }
% }


\setbeamerfont{caption}{size=\scriptsize} % Petit titre de figures
\AtBeginSection[]{
    \begin{frame}[noframenumbering, plain]
        \vfill
        \centering
        \begin{beamercolorbox}[sep=8pt,center,shadow=true,rounded=true]{title}
            \usebeamerfont{title}\secname\par%
        \end{beamercolorbox}
        \vfill
    \end{frame}
}

% Subsection title slides
\setbeamercolor{coloredboxstuff}{fg=black,bg=white!70!blue}
\AtBeginSubsection[]{
    \begin{frame}[noframenumbering, plain]
        \vfill
        \centering
        \begin{beamercolorbox}[sep=8pt,center,shadow=true,rounded=true]{coloredboxstuff}
            \usebeamerfont{title}\subsecname\par%
        \end{beamercolorbox}
        \vfill
    \end{frame}
}


% bibliographie
\usepackage[style=apa,sorting=none,backend=biber]{biblatex}
\addbibresource{references.bib}
\AtEveryCite{\color{blue}}

% Tikz
%% Tikz Related
\usetikzlibrary{calc,shapes,backgrounds,arrows,automata,shadows,positioning}
\usetikzlibrary{arrows,shapes.geometric,positioning,shadows,trees,calc,backgrounds,
    automata,positioning, petri}
\usetikzlibrary{decorations.pathreplacing,calligraphy,fit}

\tikzset{
    basic/.style  = {draw, text width=3cm, font=\sffamily, rectangle},
    root/.style   = {basic, rounded corners=2pt, thin, align=center,
            fill=green!30},
    level 2/.style = {basic, rounded corners=6pt, thin,align=center,
            fill=green!60,
            text width=8em},
    level 3/.style = {basic, thin, align=left, fill=pink!60, text width=3.5cm}
}

% Couleurs
% pour tickz multilevel
\definecolor{redorg}{RGB}{215,48,39}
\definecolor{orangeorg}{RGB}{253,174,97}
\definecolor{blueind}{RGB}{69,117,233}
\definecolor{cyanind}{RGB}{116,173,209}
\definecolor{electricblue}{RGB}{125, 249, 255}
\definecolor{greenind}{RGB}{112,130,56}
\definecolor{burntorange}{RGB}{204, 85, 0}
\definecolor{goldenyellow}{RGB}{255, 192, 0}
\definecolor{peach}{RGB}{255,255,0}
\definecolor{gray}{RGB}{128,128,128}

% Footnote
\makeatletter
\newcommand\blfootnote[1]{%
    \begingroup
    \renewcommand{\@makefntext}[1]{\noindent\makebox[1.8em][r]#1}
    \renewcommand\thefootnote{}\footnote{#1}%
    \addtocounter{footnote}{-1}%
    \endgroup
}
\makeatother

\subtitle{Audition de candidature de thèse à l'EDMH}
\title[Comparaison de structures de réseaux]{Comparaison de structures de
    réseaux.
    Applications à des réseaux écologiques}
\author[L. Lacoste]{Louis \textsc{Lacoste}\newline{\small Dirigé par Sophie Donnet et Pierre Barbillon, co-encadré par Julie Aubert}\newline\newline UMR MIA Paris-Saclay} % Sous la supervision de Pierre
\date{23 mai 2024}

\begin{document}

% titre
\begin{frame}[noframenumbering,plain]
    \maketitle
\end{frame}

\begin{frame}
    \tableofcontents[hideallsubsections]
\end{frame}

\begin{refsection}
\include{principal}
\renewcommand{\pgfuseimage}[1]{\scalebox{.75}{\includegraphics{#1}}}
\begin{frame}[noframenumbering,plain,allowframebreaks]
    \frametitle{Bibliographie}
    \printbibliography
\end{frame}
\end{refsection}

\appendix

\begin{refsection}
\include{backup-slides}
\renewcommand{\pgfuseimage}[1]{\scalebox{.75}{\includegraphics{#1}}}
\begin{frame}[noframenumbering,plain,allowframebreaks]
    \frametitle{Bibliographie des annexes}
    \printbibliography
\end{frame}
\end{refsection}

\end{document}