/* Mise en forme commune du site (chargée après le thème AcademicPages).
   Typographie sobre inspirée de massimotisi.github.io : Helvetica, titres fins, liens bleus sans soulignement. */

:root {
  --texte: #111;
  --texte-doux: #828282;
  --accent: #348bd6;
  --accent-clair: #eef4fb;
  --bordure: #e8e8e8;
  --fond-doux: #f5f5f8;
}

/* ---------- Typographie ---------- */
html { font-size: 16px; }
body, .page__content, .archive, .sidebar, .masthead, .greedy-nav, .page__footer,
h1, h2, h3, h4, h5, h6, .page__title, .author__name, .author__bio, .nav-tabs > li > a {
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif !important;
}
body { color: var(--texte); background: #fdfdfd; font-kerning: normal; }
.page__content, .archive { font-size: 16px; line-height: 1.5; }
.page__content p, .archive p, .archive li, .page__content li, .tab-content li { text-align: left !important; }
h1, h2, h3, h4, h5, h6, .page__title { font-weight: 400 !important; color: var(--texte); }
.page__title { font-size: 42px; letter-spacing: -1px; line-height: 1.1; margin-top: 0; }
.archive h2, .page__content h2 {
  font-size: 28px; letter-spacing: -.5px; margin-top: 1.6em;
  border-bottom: 1px solid var(--bordure) !important; padding-bottom: .2em;
}
.archive h3, .page__content h3 { font-size: 21px; }
.archive h4, .page__content h4 { font-size: 17px; }
strong, b { font-weight: 600; }
blockquote, .quote { color: var(--texte-doux); border-left: 4px solid var(--bordure); padding-left: 12px; font-style: italic; }
code, pre, kbd { font-family: Menlo, Consolas, "Courier New", monospace; }

/* ---------- Liens ---------- */
a, a:visited { color: var(--accent); text-decoration: none; }
a:hover, a:focus { color: var(--texte); text-decoration: underline; }
.page__content a, .archive a, .page__content a:visited, .archive a:visited { border-bottom: none; text-decoration: none !important; }
.page__content a:hover, .archive a:hover { color: var(--texte); text-decoration: underline !important; }

/* ---------- Barre de navigation ---------- */
.masthead { border-bottom: 1px solid var(--bordure); background: #fdfdfd; }
.greedy-nav, .greedy-nav .visible-links { background: #fdfdfd; }
.greedy-nav a, .greedy-nav a:visited { color: var(--texte); font-weight: 400; }
.greedy-nav a:hover { color: var(--texte); text-decoration: none; }
.greedy-nav .masthead__menu-item--lg a { color: #424242 !important; font-weight: 300; font-size: 26px; }
.greedy-nav .visible-links a::before { background: #424242; height: 2px; }

/* ---------- Barre latérale ---------- */
.author__name { font-size: 1.15rem; font-weight: 400 !important; color: var(--texte); line-height: 1.3; }
.author__bio { color: var(--texte-doux); font-size: .9rem; }
.author__urls li a { color: var(--texte-doux); font-size: .9rem; }
.author__urls li a:hover { color: var(--accent); }

/* ---------- Tableaux ---------- */
.archive table, .page__content table {
  border-collapse: collapse; margin: 1em 0; font-size: .88rem; display: table;
}
.archive th, .archive td, .page__content th, .page__content td {
  border: 1px solid var(--bordure); padding: .45em .7em; vertical-align: top; text-align: left;
}
.archive thead th, .page__content thead th { background: var(--fond-doux); font-weight: 600; }

/* ---------- Code ---------- */
.archive pre, .page__content pre {
  background: var(--fond-doux) !important; border: 1px solid var(--bordure) !important; border-radius: 6px;
}
.archive :not(pre) > code, .page__content :not(pre) > code {
  background: var(--fond-doux); border: 1px solid var(--bordure); border-radius: 4px;
  padding: .05em .35em; color: #8a3a1e; font-size: .88em; box-shadow: none;
}

/* ---------- Encadrés ---------- */
.archive .note, .archive .takeaway { border-radius: 0 6px 6px 0; }
.archive .takeaway { background: var(--accent-clair) !important; border-left-color: var(--accent) !important; }

/* ---------- Figures ---------- */
.archive figure img { border-radius: 4px; }

/* ---------- Publications : onglets ---------- */
.nav-tabs { border-bottom: 1px solid var(--bordure); display: flex; flex-wrap: wrap; gap: .3em; }
.nav-tabs > li > a {
  border: 1px solid var(--bordure) !important; border-radius: 999px !important;
  padding: .25em .9em; margin: 0 0 .5em; font-size: .9rem; color: var(--texte-doux);
  border-bottom: 1px solid var(--bordure);
}
.nav-tabs > li.active > a, .nav-tabs > li.active > a:hover, .nav-tabs > li.active > a:focus {
  background: var(--accent) !important; color: #fff !important; border-color: var(--accent) !important;
}
.nav-tabs > li > a:hover { background: var(--accent-clair); }

/* ---------- Pied de page ---------- */
.page__footer { background: var(--fond-doux); border-top: 1px solid var(--bordure); color: var(--texte-doux); }
.page__footer a { color: var(--texte-doux); }

/* Publications : pas de texte justifié */
.text-justify { text-align: left !important; }
.pub-caption { margin: 1em 0 .5em; color: var(--texte-doux); font-size: .9rem; font-style: italic; }
