% Copyright (c) 2013-26 Stephane GALLAND <galland@arakhne.org>
%
% UTBM logo and name are registered and owned by the
% "Universite de Technologie de Belfort-Montbeliard".
%
% UBE logo and name are registered and owned by the
% "Universite Bourgogne Europe".
%
% CIAD logo and name are registered and owned by the
% "Laboratoire Connaissance et Intelligence Artificielle Distribuées".
% 
% This program is free library; you can redistribute it and/or modify
% it under the terms of the GNU Lesser General Public License as
% published by the Free Software Foundation; either version 3 of the
% License, or any later version.
%
% This library is distributed in the hope that it will be useful, but
% WITHOUT ANY WARRANTY; without even the implied warranty of
% MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
% Lesser General Public License for more details.
%
% You should have received a copy of the GNU Lesser General Public
% License along with this library; see the file COPYING.  If not,
% write to the Free Software Foundation, Inc., 59 Temple Place - Suite
% 330, Boston, MA 02111-1307, USA.
%
\ProvidesPackage{beamercolorthemeCIAD}[2026/05/20]

\mode<presentation>

\RequirePackage{xcolor}

\newcommand{\setbeamercolorXXX}[2]{%
	\setbeamercolor{#1}{#2}%
	\usebeamercolor{#1}%
	\definecolor{#1.fg}{named}{fg}%
	\definecolor{#1.bg}{named}{bg}%
}

\definecolor{CIADgreen}{RGB}{149,188,15}
\definecolor{CIADdarkgreen}{RGB}{75,94,8}
\definecolor{CIADlightgreen}{RGB}{214,244,112}
\definecolor{CIADlightestgreen}{RGB}{235,250,184}
\definecolor{CIADmorelightestgreen}{RGB}{243,250,218}

\definecolor{CIADblue}{RGB}{0,41,75}

\definecolor{CIADmagenta}{RGB}{153,30,102}
\definecolor{CIADdarkmagenta}{RGB}{77,15,51}
\definecolor{CIADlightmagenta}{RGB}{204,122,170}
\definecolor{CIADlightestmagenta}{RGB}{250,240,246}

\definecolor{CIADdarkgray}{RGB}{100,100,100}
\definecolor{CIADlightgray}{RGB}{236,236,236}
\definecolor{CIADlightestgray}{RGB}{253,253,253}

\setbeamercolor{normal text}{fg=black}
\setbeamercolor{alternate normal text}{fg=white}
\setbeamercolor{example text}{fg=CIADdarkgreen}
\setbeamercolorXXX{emphased text}{fg=CIADdarkgreen}
\setbeamercolorXXX{alternate emphased text}{fg=CIADlightgreen}
\setbeamercolor{emphased emphased text}{fg=CIADdarkgreen}
\setbeamercolor{alternate emphased emphased text}{fg=CIADlightgreen}
\setbeamercolor{alerted text}{fg=CIADmagenta}
\setbeamercolor{verse}{fg=CIADdarkgreen}
\setbeamercolor{quotation}{fg=CIADdarkgreen}
\setbeamercolor{quote}{fg=CIADgreen}
\setbeamercolor{semiverbatim}{fg=CIADdarkgray}
\setbeamercolor{structure}{fg=CIADgreen}
\setbeamercolor{item projected}{fg=white,bg=CIADgreen}
\setbeamercolor{background canvas}{bg=white}
\setbeamercolor{author}{fg=CIADgreen}
\setbeamercolor{author in head/foot}{fg=CIADdarkgray}
\setbeamercolor{title in head/foot}{fg=CIADdarkgray}
\setbeamercolor{date in head/foot}{fg=CIADdarkgray}
\setbeamercolor{text in small title area}{fg=black}
\setbeamercolor{text in big title area}{fg=white}
\setbeamercolor{institute}{fg=CIADdarkgray}
\setbeamercolor{date}{fg=CIADmagenta}
\setbeamercolorXXX{frametitle}{fg=CIADgreen,bg=black}
\setbeamercolor{framesubtitle}{fg=white}
\setbeamercolor{frametitle fancy words}{fg=white}
\setbeamercolor{maintitle}{fg=white}
\setbeamercolor{maintitle fancy letter}{fg=CIADdarkgreen}
\setbeamercolorXXX{righttitle}{fg=white}
\setbeamercolor{normal text in righttitle}{fg=white}
\setbeamercolorXXX{lawn}{bg=CIADgreen,fg=white}
\setbeamercolorXXX{textpicture}{bg=CIADgreen,fg=red}
\setbeamercolorXXX{textvideo}{bg=CIADgreen,fg=white}
\setbeamercolorXXX{icon grid}{fg=white}
\setbeamercolorXXX{library slide}{bg=CIADlightgray,fg=black}
\setbeamercolor{part title}{fg=white}
\setbeamercolor{part title fancy letter}{fg=CIADgreen}
\setbeamercolor{footnote}{fg=CIADdarkgray}
\setbeamercolor{sidenote}{fg=CIADgreen}
\setbeamercolor{button}{bg=CIADgreen,fg=white}
\setbeamercolor{description item}{fg=CIADmagenta}
\setbeamercolor{alternate description item}{fg=CIADlightmagenta}
\setbeamercolorXXX{block title}{fg=white,bg=black}
\setbeamercolorXXX{block body}{fg=black,bg=CIADlightgray}
\setbeamercolor{block title alerted}{fg=white,bg=CIADmagenta}
\setbeamercolor{block body alerted}{fg=CIADmagenta,bg=CIADlightestmagenta}
\setbeamercolor{block body remark}{fg=black,bg=CIADlightgray}
\setbeamercolorXXX{block body alerted emphased text}{fg=CIADdarkmagenta}
\setbeamercolor{block body alerted alerted text}{fg=red}
\setbeamercolor{block body remark emphased text}{fg=CIADdarkgreen}
\setbeamercolor{block body remark alerted text}{fg=CIADmagenta}
\setbeamercolor{block title example}{fg=black,bg=CIADlightgray}
\setbeamercolorXXX{block title definition}{parent=block title,fg=CIADlightgreen}
\setbeamercolorXXX{block body definition}{parent=block body}


\setbeamercolorXXX{title in left anchor block}{parent=normal text}
\setbeamercolorXXX{title in right anchor block}{parent=normal text}
\setbeamercolorXXX{circled text in left anchor block}{fg=CIADgreen}
\setbeamercolorXXX{circled text in right anchor block}{fg=black}
\setbeamercolorXXX{line in left anchor block}{fg=black, bg=black}
\setbeamercolorXXX{line in right anchor block}{fg=black, bg=white}

% Current sections
\setbeamercolor{section in toc}{fg=white}
\setbeamercolor{subsection in toc}{fg=white}
\setbeamercolor{subsubsection in toc}{fg=white}
% Other sections
\setbeamercolor{section in toc shaded}{fg=black}
\setbeamercolor{subsection in toc shaded}{fg=black}
\setbeamercolor{subsubsection in toc shaded}{fg=black}
% Section number in the squares
\setbeamercolor{section number projected}{fg=white}

\setbeamercolorXXX{footline}{bg=CIADlightgray,fg=black}

\setbeamercolorXXX{circle progress bar}{bg=footline.bg,fg=CIADdarkgray}
\setbeamercolorXXX{circle progress bar/first bar}{bg=CIADgreen}
\setbeamercolorXXX{circle progress bar/second bar}{bg=CIADmagenta}
\setbeamercolorXXX{circle progress bar/third bar}{bg=footline.bg}

\setbeamercolorXXX{plain frametitle}{fg=CIADgreen}
\setbeamercolorXXX{plain framesubtitle}{fg=CIADlightgreen}
\setbeamercolorXXX{plain frametitle fancy words}{fg=CIADlightgreen}

\setbeamercolorXXX{code keyword}{fg=CIADgreen}
\setbeamercolorXXX{code string}{fg=CIADmagenta}
\setbeamercolorXXX{code comment}{fg=CIADblue}

\setbeamercolorXXX{table header}{fg=CIADlightgreen,bg=black}
\setbeamercolorXXX{table rules}{fg=black}
\setbeamercolorXXX{table content}{fg=black,bg=white}

\setbeamercolorXXX{top background in toc}{bg=frametitle.bg}
\setbeamercolorXXX{bottom background in toc}{bg=footline.bg}

\setbeamercolorXXX{fancy box}{bg=black, fg=CIADlightgray}
\setbeamercolorXXX{title in fancy box}{fg=CIADgreen}
\setbeamercolorXXX{corner in fancy box}{fg=white, bg=CIADgreen}
\setbeamercolorXXX{emphased text in fancy box}{fg=CIADlightgreen}
\setbeamercolorXXX{emphased emphased text in fancy box}{fg=CIADlightmagenta}

\setbeamercolor{simple block}{fg=white,bg=black}
\setbeamercolor{emphazed simple block}{fg=emphased text in fancy box.fg}
\setbeamercolor{emphazed emphazed simple block}{fg=emphased emphased text in fancy box.fg}
\setbeamercolor{alerted simple block}{fg=CIADlightmagenta}

\setbeamercolorXXX{right arrow sequence}{fg=white,bg=black}

\setbeamercolorXXX{bottom arrow sequence}{fg=white,bg=black}

\mode<all>

