\documentclass[aspectratio=169]{beamer}

\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}

\newtheorem{propriete}{Propriété}

\usepackage[french]{babel}

%Configuration des couleurs 
\usepackage[dvipsnames]{xcolor}
\definecolor{principale}{RGB}{203, 127, 60}
\definecolor{bonus}{RGB}{86, 38, 18}
\definecolor{accent}{RGB}{198, 68, 9}
\definecolor{background-light}{RGB}{248, 240, 221}
\definecolor{background-dark}{RGB}{235, 211, 175}

\setbeamertemplate{navigation symbols}{}
\setbeamercolor{frametitle}{fg=bonus}
\setbeamercolor{caption name}{fg=principale}
\setbeamercolor{enumerate item}{fg=principale}
\setbeamercolor{itemize item}{fg=principale}
\setbeamercolor{itemize subitem}{fg=principale}
\setbeamertemplate{itemize item}{}
\setbeamertemplate{itemize subitem}{$\circ$}
\setbeamercolor{itemize/enumerate body}{fg=bonus}

%Couleur table des matières
\setbeamertemplate{section in toc}{%
    \color{accent}
    \bf
    \kern1.25ex\inserttocsection\par
    }


%Couleurs des blocks (théorème, définitions ...)
\AtBeginEnvironment{definition}{
  \setbeamercolor{block body}{fg=bonus, bg=background-light}
  \setbeamercolor{block title}{fg=principale, bg=background-dark}
}

\AtBeginEnvironment{lemma}{
  \setbeamercolor{block body}{fg=bonus, bg=background-light}
  \setbeamercolor{block title}{fg=principale, bg=background-dark}
}

\AtBeginEnvironment{propriete}{
  \setbeamercolor{block body}{fg=bonus, bg=background-light}
  \setbeamercolor{block title}{fg=principale, bg=background-dark}
}

\AtBeginEnvironment{theorem}{
  \setbeamercolor{block body}{fg=bonus, bg=background-light}
  \setbeamercolor{block title}{fg=principale, bg=background-dark}
}
\AtBeginEnvironment{hypothese}{
  \setbeamercolor{block body}{fg=bonus, bg=background-light}
  \setbeamercolor{block title}{fg=principale, bg=background-dark}
}
%Configuration du \frametitle
\usepackage{textpos}
\addtobeamertemplate{frametitle}{
    %\bfseries
    \begin{textblock*}{\paperwidth}(-24pt,2pt)
        \includegraphics[width=0.98\paperwidth]{images/background/frametitle.pdf}
    \end{textblock*}
    %\begin{textblock*}{\paperwidth}(40pt,10pt)
    %    \tiny
        %\insertframenumber
    %\end{textblock*}
    \begin{textblock*}{\paperwidth}(400pt,24pt)
        \tiny
        \textcolor{white}{\insertframenumber/\inserttotalframenumber}
    \end{textblock*}
}

%Configure de l'emphase
\let\emph\relax 
\DeclareTextFontCommand{\emph}{\bfseries\color{accent}\em}

\usepackage{graphicx}
\usepackage{subcaption}
\usepackage[french]{babel}
\usepackage{csquotes}

%Configure tikz
\usepackage{tikz}
\usetikzlibrary{math}
\usetikzlibrary {shapes.geometric}
\usetikzlibrary {shapes.symbols}
\usetikzlibrary{decorations.pathreplacing}


%Traduction des environements
\deftranslation[to=french]{Theorem}{Théorème}
\deftranslation[to=french]{Lemma}{Lemme}
\deftranslation[to=french]{Definition}{Définition}
\newtheorem{hypothese}{Hypothèse}[theorem]

\begin{document}

%Couleur pour tout le document
\color{bonus}

\begin{frame}[plain]
\begin{center}
\includegraphics[width=100px]{images/logo/insa/Logo_INSALyon-pantone.pdf}
\hspace{50px}
\includegraphics[width=100px]{images/logo/inria/LOGOS_pack_global/pdf/inr_logo_rouge_rvb.pdf}

\vspace{10px}
\LARGE
\textcolor{principale}{\textbf{IA pour des services moraux : concilier équité et confidentialité}}
\vspace{10px}

\Large
\textcolor{bonus}{Thèse soutenue par Jan Aalmoes le 13 décembre 2024}

\vspace{10px}
\footnotesize
\begin{tabular}{lll}
ALLARD&Tristan&\textcolor{accent}{Rapporteur}\\
SIHEM&Amer-Yahia&\textcolor{accent}{Rapporteuse}\\
BOUCHENAK&Sara&\textcolor{accent}{Examinatrice} \\
BOUTET&Antoine&\textcolor{accent}{Examinateur}\\
HUGUET&Marie-José&\textcolor{accent}{Examinatrice}\\
PERROT&Michael&\textcolor{accent}{Examinateur}\\
RUDAMETKIN&Walter&\textcolor{accent}{Examinateur}\\
&&\\
CUNCHE&Mathieu&\textcolor{accent}{Directeur de thèse}\\
BOUTET&Antoine&\textcolor{accent}{Co-encadrant de thèse}\\
\end{tabular}
\end{center}
\end{frame}

{
    \usebackgroundtemplate{\includegraphics[width=\paperwidth]{images/background/toc/background.pdf}}
\begin{frame}
    \tableofcontents
\end{frame}
}

\section{Introduction}
\input{ckoi}

\section{Prérequis}
{
    \usebackgroundtemplate{\includegraphics[width=\paperwidth]{images/background/toc/background.pdf}}
\begin{frame}
    \tableofcontents[currentsection]
\end{frame}
}
\input{background}

\section{Classification finie}
{
    \usebackgroundtemplate{\includegraphics[width=\paperwidth]{images/background/toc/background.pdf}}
\begin{frame}
    \tableofcontents[currentsection]
\end{frame}
}
\input{finie}

\section{Inférence d'attribut sensible}
{
    \usebackgroundtemplate{\includegraphics[width=\paperwidth]{images/background/toc/background.pdf}}
\begin{frame}
    \tableofcontents[currentsection]
\end{frame}
}
\input{aia}

\section{Données synthétiques}
{
    \usebackgroundtemplate{\includegraphics[width=\paperwidth]{images/background/toc/background.pdf}}
\begin{frame}
    \tableofcontents[currentsection]
\end{frame}
}
\input{synth}

\input{perspective}


\end{document}
