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

% Importations de packages
\usepackage[french]{babel} % Texte en français
\usepackage{nth}
\usepackage{csquotes}
\usepackage[T1]{fontenc} % Fontes postscript
\usepackage[cyr]{aeguill} % Police vectorielle TrueType, guillemets français
\usepackage{epsfig} % Gestion des images
\usepackage{amsmath, amsthm, stmaryrd} % Mode mathématique avancé
\usepackage{amsfonts, amssymb, bm, bbold} % Définition des ensembles
\usepackage{algorithm2e} % Algorithmes
\usepackage{algpseudocode} % Algorithmes
\usepackage{graphicx}
\usepackage{subcaption}
\usepackage{booktabs}
\usepackage{tabularx}
\usepackage{xcolor} % Couleurs
\usepackage{xstring}
\usepackage{float} % Placement des figures
\usepackage{url} % Gestion efficace des URL
\usepackage{hyperref} % Hyperliens dans le document
\usepackage{tikz} % Graphiques
\usepackage[outline]{contour}
\usepackage{adjustbox} % Redimensionner les tikzpictures
\usepackage{fontawesome5}
\usepackage{makecell}
\usepackage{appendixnumberbeamer} % Cacher la numérotation des slides d'appendices
\usepackage{chronology} % Frise chronologique

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

% Réglages des tables
\renewcommand\theadfont{\tiny}

% Couleurs personnalisées
\definecolor{ao(english)}{rgb}{0.0, 0.5, 0.0}
\definecolor{redorg}{RGB}{215, 48, 39}
\definecolor{orangeorg}{RGB}{253, 174, 97}

\definecolor{blueind}{RGB}{016, 101, 171}
\definecolor{cyanind}{RGB}{058, 147, 195}
\definecolor{electricblue}{RGB}{142, 196, 222}

\definecolor{greenind}{RGB}{112, 130, 56}

\definecolor{burntorange}{RGB}{179, 021, 041}
\definecolor{goldenyellow}{RGB}{215, 095, 076}
\definecolor{peach}{RGB}{246, 164, 130}

\definecolor{gray}{RGB}{128, 128, 128}

% Beamer settings
\setbeamertemplate{caption}[numbered]
\setbeamertemplate{note page}[plain] % Notes
\setbeamerfont{caption}{size=\scriptsize} % Taille des légendes

% Titre des sections
\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}
}

% Titre des sous-sections
\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}
}

% Paramètres Tikz
\usetikzlibrary{
    calc, shapes, backgrounds, arrows, automata, shadows, positioning,
    shapes.geometric, trees, petri, decorations.pathreplacing, calligraphy, fit,
    external
}
\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}
}
\newcommand{\inputtikz}[1]{%
  \tikzsetnextfilename{#1}%
  \input{#1.tikz}%
}



% Note de bas de page personnalisée
\makeatletter
\newcommand\blfootnote[1]{%
    \begingroup
    \renewcommand{\@makefntext}[1]{\noindent\makebox[1.8em][r]{#1}}
    \renewcommand\thefootnote{}\footnote{#1}%
    \addtocounter{footnote}{-1}%
    \endgroup
}
\makeatother

% Métadonnées du document
\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}
\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}