\documentclass{beamer}
\usetheme{Boadilla}

% importations
% \usepackage[french]{babel} % pour dire que le texte est en francais
\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, mathtools} % 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{float} % pour le placement des figure
\usepackage{url} % pour une gestion efficace des url
\usepackage{hyperref}  % pour les hyperliens dans le document
\usepackage[mode=buildnew]{standalone}
\usepackage{appendixnumberbeamer} % Cacher la numérotation des slides d'appendices
\usepackage{beamerappendixnote}
\usepackage{adjustbox} % To resize tikzpictures
\usepackage{fontawesome5}
\usepackage{makecell}
\usepackage{ccicons}

% Images
\graphicspath{{./img/}{./figure/}}

% Tikz
\usepackage{tikz} % For graph plots
\usepackage[outline]{contour}
%% Tikz Related
\usetikzlibrary{calc,shapes,backgrounds,arrows,automata,shadows,positioning}
\usetikzlibrary{arrows,shapes,positioning,shadows,trees,calc,backgrounds,automata,positioning}
\usetikzlibrary{decorations.pathreplacing,calligraphy,external,petri, shapes.geometric}

%% Tikz sets
\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
\usepackage{xcolor}
\definecolor{aoenglish}{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}

%% Couleur Paris-Saclay
\definecolor{pruneps}{RGB}{99,0,60}
\definecolor{bluefonceps}{RGB}{0,78,125}
\definecolor{blueps}{RGB}{14,135,201}
\definecolor{cyanps}{RGB}{70,195,210}
\definecolor{vertps}{RGB}{64,183,105}
%% Biblio
\usepackage[style=apa, sorting=none, backend=biber]{biblatex}
\addbibresource{references.bib}
\AtEveryCite{\color{bluefonceps}}

\newcommand{\bZ}{\bm{Z}}
\newcommand{\bY}{\bm{Y}}
\newcommand{\bW}{\bm{W}}
\newcommand{\Prob}{\mathbb{P}}
\newcommand{\Ryt}{\mathcal{R}_{\bY,\tau}}
\newcommand{\KL}[2]{\mathbf{KL}[#1,#2]}
\newcommand{\Esp}{\mathbb{E}}
\newcommand{\Hshannon}{\mathcal{H}}

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


% Beamer
\setbeamertemplate{headline}{%
    \begin{beamercolorbox}[ht=2.25ex,dp=3.75ex]{section in head/foot}
        \insertnavigation{\paperwidth}
    \end{beamercolorbox}%
}%
\beamertemplatenavigationsymbolsempty % Pas de bar de navigation

% Beamer settings
\setbeamertemplate{caption}[numbered]
\setbeamertemplate{note page}[plain] % Notes
\setbeamerfont{caption}{size=\scriptsize} % Taille des légendes
\setbeamercolor{palette primary}{bg=cyanps, fg=black}
\setbeamercolor{palette secondary}{bg=blueps, fg=white}
\setbeamercolor{palette tertiary}{bg=bluefonceps, fg=white}
\setbeamercolor{structure}{fg=blueps}



\subtitle{JdS 2025}
\title[Bipartite networks collection]{Joint estimation of bipartite network collections. Application to plant-pollinator networks.}
\author[L. Lacoste]{\underline{Louis Lacoste}, Pierre Barbillon and
Sophie Donnet\newline UMR MIA Paris-Saclay, AgroParisTech, INRAE, Université Paris-Saclay\newline\ccbysa}
\date{03 Juin 2025}

\begin{document}

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

\begin{refsection}
    \include{principal}

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

\appendix

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

\end{document}