% =====================================================================
% CV court (1 page) — Romain Cognard
% Layout deux colonnes : sidebar tintée à gauche, contenu principal à droite.
% Compilation : xelatex romain-cognard-court.tex (deux passes).
% =====================================================================
\documentclass[a4paper,9pt]{extarticle}

\usepackage{fontspec}
\usepackage[french]{babel}
\frenchsetup{SmallCapsFigTabCaptions=false}

% --- Géométrie : marges nulles, on gère tout manuellement ---
\usepackage[a4paper,margin=0pt,nohead,nofoot]{geometry}
\setlength{\parindent}{0pt}
\pagestyle{empty}

% --- Couleurs (palette bicolore Dragnoc) ---
\usepackage[svgnames,table]{xcolor}
\definecolor{burnt}{HTML}{B85628}
\definecolor{burntSoft}{HTML}{C46A3A}
\definecolor{burntLight}{HTML}{E8D5BD}
\definecolor{cream}{HTML}{FBF7F1}
\definecolor{warm}{HTML}{F4EDDF}
\definecolor{creamDeep}{HTML}{EFE5D2}
\definecolor{ink}{HTML}{1B1A18}
\definecolor{inkSoft}{HTML}{4A4541}
\definecolor{inkMuted}{HTML}{8A837C}
\definecolor{border}{HTML}{EBE2D3}

% --- Polices ---
\IfFontExistsTF{Fraunces}{%
  \newfontfamily\headingfont{Fraunces}[
    UprightFeatures={SizeFeatures={{Size={12-}, RawFeature={+opsz=72}},{Size={-12}, RawFeature={+opsz=12}}}},
    ItalicFeatures={SizeFeatures={{Size={12-}, RawFeature={+opsz=72}},{Size={-12}, RawFeature={+opsz=12}}}}
  ]
}{\IfFontExistsTF{EB Garamond}{\newfontfamily\headingfont{EB Garamond}}{\newfontfamily\headingfont{TeX Gyre Pagella}}}

\IfFontExistsTF{Inter}{\setmainfont{Inter}[Numbers=Lining]}{%
  \IfFontExistsTF{Lato}{\setmainfont{Lato}}{\setmainfont{TeX Gyre Heros}}}

% --- Hyperliens & icônes ---
\usepackage[hidelinks]{hyperref}
\hypersetup{pdfauthor={Romain Cognard}, pdftitle={Romain Cognard --- CV court}, colorlinks=true, urlcolor=burnt, linkcolor=burnt}
\usepackage{fontawesome5}
\usepackage{enumitem}
\usepackage{tikz}
\usepackage{eso-pic}

% --- Sidebar background : seulement la bande crème pleine hauteur.
% Le séparateur orange est dessiné en flux inline (voir corps du document)
% pour qu'il suive précisément la fin du header sans dériver.
\AddToShipoutPictureBG{%
  \begin{tikzpicture}[remember picture, overlay]
    \fill[warm] (current page.north west) rectangle ([xshift=70mm]current page.south west);
  \end{tikzpicture}%
}

% --- Helpers ----------------------------------------------------------------
\newcommand{\sectiontitle}[2]{%
  {\headingfont\fontsize{12pt}{14pt}\selectfont\color{ink}\faIcon{#1}\hspace{0.4em}#2}\\[-2pt]
  {\color{burnt}\rule{12mm}{1pt}}\\[3pt]
}

\newcommand{\eyebrow}[1]{%
  {\fontspec[Letters=UppercaseSmallCaps,LetterSpace=14]{Inter}\color{burnt}\fontsize{7pt}{8pt}\selectfont #1}%
}

% --- Compétence : pill colorée ---
\newcommand{\skill}[1]{%
  \tikz[baseline=(x.base)]{\node[fill=cream,draw=border,rounded corners=4pt,inner sep=2pt,font=\fontsize{7.5pt}{8pt}\selectfont,text=ink] (x) {#1};}%
}

% --- Ligne expérience compacte ---
\newcommand{\xp}[4]{%
  \vspace{2pt}
  \noindent{\headingfont\fontsize{10.5pt}{12pt}\selectfont\color{ink} #1}\hfill{\fontsize{8pt}{8pt}\selectfont\color{inkMuted} #4}\\[1pt]
  \noindent{\color{burnt}\fontsize{9pt}{10pt}\selectfont #2}\hspace{0.4em}{\color{inkMuted}\fontsize{8pt}{8pt}\selectfont · #3}\\[1pt]
}

\newcommand{\formation}[3]{%
  \noindent\begin{tabular}{@{}p{8mm}@{}p{50mm}@{}}
    {\fontsize{8pt}{9pt}\selectfont\color{burnt}\textbf{#1}} &
    {\fontsize{8.5pt}{10pt}\selectfont\color{ink}#2}\\
    & {\fontsize{7.5pt}{9pt}\selectfont\color{inkMuted}#3}\\
  \end{tabular}\\[3pt]
}

% =====================================================================
\begin{document}
\color{inkSoft}

% --- Bandeau Header --------------------------------------------------------
\vspace*{10mm}
\noindent\hspace{10mm}%
\begin{minipage}{180mm}
  {\headingfont\fontsize{32pt}{34pt}\selectfont\color{ink} Romain \textit{\color{burnt}Cognard}}\\[4pt]
  {\headingfont\fontsize{13pt}{15pt}\selectfont\color{inkSoft} Directeur technique \& des opérations}\hspace{0.5em}{\color{inkMuted}\fontsize{9.5pt}{12pt}\selectfont \textbullet{} Infrastructure Linux · IA appliquée · DevOps}
\end{minipage}

% --- Séparateur orange inline (juste après le header, avant le corps) ------
\vspace{6mm}
\noindent\hspace{10mm}{\color{burnt}\rule{180mm}{0.6pt}}
\vspace{12mm}

% --- Corps : sidebar (50mm utilisable) + main (130mm utilisable) ----------
\noindent\hspace{10mm}%
\begin{minipage}[t]{50mm}
  \vspace{0pt}

  \sectiontitle{address-card}{Contact}
  {\fontsize{8.5pt}{12pt}\selectfont
    \textcolor{burnt}{\faMapMarker*}\enspace Clermont-Ferrand\\
    \textcolor{burnt}{\faEnvelope[regular]}\enspace \href{mailto:contact@dragnoc.fr}{contact@dragnoc.fr}\\
    \textcolor{burnt}{\faGlobe}\enspace \href{https://dragnoc.fr}{dragnoc.fr}\\
    \textcolor{burnt}{\faLinkedin}\enspace \href{https://www.linkedin.com/in/romain-cognard-71359789/}{linkedin.com/in/romain-cognard}\par}
  \vspace{12pt}

  \sectiontitle{server}{Infrastructure}
  \skill{Linux} \skill{Bash} \skill{Ansible}
  \skill{Docker} \skill{Git} \skill{CI/CD}
  \skill{Nginx} \skill{Apache} \skill{LiteSpeed}
  \skill{cPanel/WHM} \skill{CloudLinux}
  \skill{KernelCare} \skill{RAID} \skill{Monitoring}
  \vspace{12pt}

  \sectiontitle{brain}{IA / LLM}
  \skill{Claude Code} \skill{OpenAI API}
  \skill{Mistral} \skill{Anthropic}
  \skill{RAG} \skill{Embeddings}
  \skill{GitHub Actions} \skill{Agents}
  \skill{Prompt engineering}
  \vspace{12pt}

  \sectiontitle{building}{Opérations DC}
  \skill{2 datacenters} \skill{Chaîne de froid}
  \skill{Énergie} \skill{Prestataires}
  \skill{HP Gen 8/9/10} \skill{Supermicro}
  \vspace{12pt}

  \sectiontitle{language}{Langues}
  {\fontsize{8.5pt}{11pt}\selectfont
    \textbf{Français} \textcolor{burnt}{\faCircle}\textcolor{burnt}{\faCircle}\textcolor{burnt}{\faCircle}\textcolor{burnt}{\faCircle}\textcolor{burnt}{\faCircle}\enspace {\color{inkMuted}natif}\\
    \textbf{Anglais} \textcolor{burnt}{\faCircle}\textcolor{burnt}{\faCircle}\textcolor{burnt}{\faCircle}\textcolor{burntLight}{\faCircle}\textcolor{burntLight}{\faCircle}\enspace {\color{inkMuted}professionnel}\par}
\end{minipage}%
\hspace{10mm}%
\begin{minipage}[t]{120mm}
  \vspace{0pt}

  \sectiontitle{user}{Profil}
  {\fontsize{9.5pt}{13.5pt}\selectfont
    10+ ans dans l'hébergement web, spécialiste Linux, infrastructure et supervision en production. Aujourd'hui, je fais dialoguer cette expertise avec les pratiques actuelles de l'IA : intégration dans les pipelines DevOps, déploiement de services IA en prod, automatisation augmentée par les LLM. Approche terrain, code en production, pas de slides.\par}
  \vspace{16pt}

  \sectiontitle{briefcase}{Expériences}

  \xp{Directeur technique \& des opérations}{o2switch}{Clermont-Ferrand}{janv.\ 2020 -- aujourd'hui}
  {\fontsize{8.5pt}{11pt}\selectfont
    Pilotage opérationnel complet (recrutement, KPI, stratégie), gestion de \textbf{2 datacenters} (création, optimisation chaîne de froid pour réduire la conso énergétique), coordination inter-départements, optimisation du support client.\par}
  \vspace{8pt}

  \xp{Administrateur Système \& Réseaux}{o2switch}{Clermont-Ferrand}{janv.\ 2016 -- janv.\ 2023}
  {\fontsize{8.5pt}{11pt}\selectfont
    Montage/config/maintenance serveurs lame (HP Gen 8-10, Supermicro), stack web complète (Nginx, Apache, LiteSpeed, cPanel/WHM, CloudLinux, KernelCare), \textbf{industrialisation via Ansible}, automatismes Bash.\par}
  \vspace{8pt}

  \xp{Administrateur système}{Michelin}{Clermont-Ferrand}{sept.\ 2015 -- août 2016}
  {\fontsize{8.5pt}{11pt}\selectfont
    Formalisation IS/IT, étude réseaux site Clermont-Ferrand, résolution de problèmes ERP.\par}
  \vspace{18pt}

  \sectiontitle{robot}{Domaines IA appliquée}
  {\fontsize{8.5pt}{11pt}\selectfont
  \begin{itemize}[leftmargin=1.2em, label={\color{burnt}\textbf{--}}, itemsep=1pt, topsep=2pt, parsep=0pt]
    \item \textbf{IA dans les workflows DevOps} : agents IA dans CI/CD, hooks, supervision intelligente.
    \item \textbf{Services IA en production} : déploiement de modèles/APIs, monitoring, perf, coûts.
    \item \textbf{Automatisation augmentée} : analyse de logs, anomalies, rapports générés par LLM.
    \item \textbf{Conseil \& audit} : identification des points où l'IA réduit la charge opérationnelle.
  \end{itemize}\par}
  \vspace{18pt}

  % --- Formations + Certifications en deux sous-colonnes ---
  \begin{minipage}[t]{0.58\linewidth}
    \vspace{0pt}
    \sectiontitle{graduation-cap}{Formations}
    \formation{2015}{Licence pro ASR}{IUT d'Auvergne \textbullet{} Réseaux \& Télécoms}
    \formation{2014}{Licence L2 informatique}{Université Blaise Pascal (Clermont-II)}
    \formation{2013}{DUT Génie élec.\ \& Info.\ ind.}{Université Blaise Pascal (Clermont-II)}
  \end{minipage}\hfill
  \begin{minipage}[t]{0.4\linewidth}
    \vspace{0pt}
    \sectiontitle{certificate}{Certifications}
    \formation{2024}{ISO 27001}{AFNOR \textbullet{} Sécurité de l'information}
  \end{minipage}

\end{minipage}

\end{document}
