\NeedsTeXFormat{LaTeX2e}
\ProvidesPackage{agrphy}

\RequirePackage{polyglossia}
\setdefaultlanguage{french}
%\RequirePackage{fontspec}
%\setmainfont{Latin Modern Roman}
\usepackage{empheq}     % box autour de align notamment
%\RequirePackage{unicode-math}
%\setmathfont{Latin Modern Math}

\RequirePackage[
    top     =2  cm, 
    bottom  =2  cm, 
    left    =1.5cm, 
    right   =1.5cm]
    {geometry}
\RequirePackage{pifont}             % commande \ding
\RequirePackage[dvipsnames]{xcolor} % gestion fine des couleurs
\RequirePackage{enumitem}           % configuration des listes
\RequirePackage{titlesec}           % configuration des titres
\RequirePackage{marvosym}           % \Coffeecup commande
\RequirePackage{fancyhdr}           % configuration des entêtes et pied de page


%%% Ajout d'éléments tikz
\RequirePackage{standalone}
\RequirePackage[tikz]{bclogo}
\usetikzlibrary{calc}
\usetikzlibrary{arrows}
\usetikzlibrary{shapes.misc}

%%% Thème de couleurs : été
\definecolor{beige}     {RGB}{244,237,231}
\definecolor{bleuclair} {RGB}{90 ,153,211}
\definecolor{bleufonce} {RGB}{0  ,81 ,142}
\definecolor{rose}      {RGB}{224,207,230}
\definecolor{orange}    {RGB}{253,162,100}
\definecolor{linkcolor} {RGB}{255,094,077}

%%% Couleurs des titres et définition des liens
\titleformat*{\section      }{\color{bleufonce} \sffamily\bfseries\Large}
\titleformat*{\subsection   }{\color{bleuclair} \sffamily\bfseries\Large}
\titleformat*{\subsubsection}{\color{Orchid}    \sffamily\bfseries\Large}
\titleformat*{\paragraph    }{\color{orange}    \bfseries}


\RequirePackage[
    colorlinks  =true       ,
    pdfstartview=FitV       ,
    linkcolor   =linkcolor  ,
    citecolor   =linkcolor  ,
    urlcolor    =linkcolor  ,
    hyperindex  =true       ,
    hyperfigures=false      ,
    unicode]
    {hyperref}

%%% arborescence du projet 

\providecommand*{\input@path}{}
\edef\input@path{{ressources/}\input@path}% prepend

\graphicspath{{ressources/}}

%%% Commandes spéciales

\newcommand{\titre}[4]{
\reversemarginpar
\thispagestyle{empty}
\begin{center}
{\Large \textsc{\@title}}\\
\end{center}
\vspace{0.5cm}

\begin{minipage}{0.48\textwidth}
\@date

#1 $\&$ \underline{#2}
\end{minipage}%
\begin{minipage}{0.48\textwidth}
\begin{flushright}
\textit{#3}

\textsc{#4}
\end{flushright}
\end{minipage}
}

\newcommand{\livre}{\Writinghand~}

\newcommand{\experience}[4]{
\begin{bclogo}[barre = none, arrondi = 0.1, couleur = beige, logo=\Coffeecup ]{#1}
\vspace{0.2cm}
\begin{minipage}{0.49\textwidth}
\livre #2 
\end{minipage}
\begin{minipage}{0.49\textwidth}
\Clocklogo ~ #3 
\end{minipage}\\
%\vspace{4cm}
#4
\end{bclogo}}

\newcommand{\manip}[2]{
\begin{bclogo}[barre = none,arrondi = 0.1,logo=\Coffeecup]{#1}
#2%
\end{bclogo}}

\newcommand{\transition}[1]{
\begin{samepage}
\noindent \begin{bclogo}[barre = line, noborder = true,epBarre=2.0,logo=\ ]{} \vspace{0.5em}\textit{#1} \end{bclogo}
\vspace*{-3.4 em}
\begin{flushleft}
\hspace{0.385 em}
\begin{tikzpicture}
\node (a) {};
\node (b) [below of=a] {};
\draw[-latex, line width=.2em] (a) -- (b);
\end{tikzpicture}
\end{flushleft}
\vspace*{-2 em}
\end{samepage}
}

\newcommand{\important}[1]{\begin{center}\fbox{
\vspace{0.1cm}
\begin{minipage}{0.75\textwidth}
#1
\end{minipage}
\vspace{0.1cm}
}\end{center}
}

\newcommand{\remarque}[2]{%
\begin{quote}
\sffamily
\strong{#1}
\begin{description}
\item[] \noindent #2
\end{description}

\end{quote}
}

%%% En-tête et pied de page
\pagestyle{fancy}
\fancyhead[R]{\scriptsize \textsc{\@title}}
\fancyhead[L]{\scriptsize \textsc{\leftmark}}

%%% Fin du package
\endinput