/* Deux familles : un Caslon pour les titres et le texte, un Franklin pour les dates et l'interface. */
:root {
  --paper: #f4f7fa;
  --surface: #ffffff;
  --ink: #15202b;
  --muted: #556270;
  --rule: #d3dbe3;
  --accent: #1d4f7c;
  --serif: "Libre Caslon Text", Georgia, "Times New Roman", serif;
  --sans: "Libre Franklin", "Helvetica Neue", Arial, sans-serif;
  --gutter: 16px;
  --header-h: 60px;
}
@media (min-width: 900px) {
  :root { --gutter: 40px; --header-h: 72px; }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, p, ul, ol { margin: 0; }
/* L'exposant (44ᵉ) ne doit pas écarter les lignes. */
sup { line-height: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: var(--accent); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--ink); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 var(--gutter); }

/* ── En-tête ── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--paper);
  border-bottom: 1px solid var(--rule);
}
.site-header .wrap {
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.brand { display: flex; align-items: center; text-decoration: none; color: var(--ink); min-width: 0; }
/* Tout tient sur une ligne : nom, titre. */
.brand-text { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.brand-name { font-size: 17px; font-weight: 700; }
.brand-role { font-family: var(--sans); font-weight: 500; font-size: 13px; color: var(--muted); }
.brand-role::before { content: " · "; }
.brand-role .long { display: none; }
/* Sur mobile, les initiales à la place du nom complet, suivies du titre court. */
.brand-initials { display: none; }
@media (max-width: 599px) {
  .brand-name { display: none; }
  .brand-initials { display: inline; font-size: 18px; font-weight: 700; letter-spacing: 0.01em; text-decoration: none; }
  .brand-role { font-size: 12px; }
}
@media (min-width: 900px) {
  .brand-name { font-size: 19px; }
  .brand-role .short { display: none; }
  .brand-role .long { display: inline; }
}

/* Le menu en ligne : sur ordinateur seulement ; le hamburger prend le relais en dessous. */
.header-left { display: flex; align-items: center; gap: 10px; min-width: 0; }
.site-nav { display: none; flex: none; gap: 20px; font-family: var(--sans); font-weight: 500; font-size: 13.5px; white-space: nowrap; }
.site-nav a { color: var(--ink); text-decoration: none; padding: 4px 0; border-bottom: 1px solid transparent; }
.site-nav a:hover { color: var(--accent); border-bottom-color: currentColor; }
/* La langue, séparée des sections par un filet. */
.site-nav .lang { color: var(--muted); padding-left: 20px; border-left: 1px solid var(--rule); border-bottom: 0; }
.site-nav .lang:hover { color: var(--accent); }
@media (min-width: 1100px) {
  .site-nav { display: flex; }
  .site-header .menu-toggle, .site-header .menu { display: none; }
  .brand-role { display: none; }
}

.menu-toggle {
  flex: none;
  width: 44px;
  height: 44px;
  margin-left: -10px;
  display: grid;
  place-items: center;
  background: none;
  border: 0;
  cursor: pointer;
  color: var(--ink);
}
.menu-toggle svg { width: 20px; height: 20px; }
.menu-toggle .close { display: none; }
.menu-open .menu-toggle .open { display: none; }
.menu-open .menu-toggle .close { display: block; }

/* Le menu : plein écran sur mobile, panneau à droite sur ordinateur. */
.menu {
  position: fixed;
  inset: var(--header-h) 0 0 0;
  background: var(--paper);
  padding: 20px var(--gutter) 32px;
  visibility: hidden;
  opacity: 0;
  transition: opacity 150ms ease, visibility 150ms;
}
.menu-open .menu { visibility: visible; opacity: 1; }
.menu a {
  display: block;
  padding: 11px 0;
  border-bottom: 1px solid var(--rule);
  font-size: 20px;
  line-height: 1.4;
  color: var(--ink);
  text-decoration: none;
}
.menu a:hover { color: var(--accent); }
@media (min-width: 900px) {
  .menu {
    right: auto;
    width: 280px;
    border-right: 1px solid var(--rule);
    padding: 24px 32px;
  }
  .menu a { font-size: 18px; padding: 10px 0; }
}
.menu-open { overflow: hidden; }
@media (min-width: 900px) { .menu-open { overflow: auto; } }

/* ── Sections : un seul titre, beaucoup d'air, un filet fin entre chacune ── */
main { padding-bottom: 24px; }
.section { padding: 56px 0; }
.section + .section { border-top: 1px solid var(--rule); }
.section h2 {
  font-size: 26px;
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: -0.005em;
}
.section-body { margin-top: 28px; }
@media (min-width: 900px) {
  .section { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 48px; padding: 88px 0; }
  .section h2 { font-size: 28px; margin-top: -4px; }
  .section-body { margin-top: 0; }
}

/* Les listes datées : pas de traits, l'espace suffit à séparer. */
.entries { display: grid; gap: 22px; }
.entries li { display: grid; grid-template-columns: minmax(0, 1fr); gap: 3px; }
.entries .date {
  font-family: var(--sans);
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.entries .title { font-size: 17px; line-height: 1.45; }
.entries .title a { color: inherit; text-decoration-color: var(--rule); }
.entries .title a:hover { color: var(--accent); text-decoration-color: currentColor; }
.entries .where { font-size: 15px; line-height: 1.5; color: var(--muted); }
.entries .where a { color: inherit; text-decoration: none; }
.entries .where a:hover { color: var(--accent); text-decoration: underline; }
.entries .authors strong { font-weight: 700; color: var(--ink); }
.entries .authors a.person { text-decoration: underline; text-decoration-color: var(--rule); }
@media (min-width: 600px) {
  .entries li { grid-template-columns: 124px minmax(0, 1fr); column-gap: 24px; }
  .entries .date { padding-top: 3px; }
  .entries .where { grid-column: 2; }
}

/* À propos : le portrait monté sur un passe-partout. */
.about { display: grid; gap: 28px; align-items: start; }
.portrait { margin: 0; width: 140px; order: -1; }
.portrait .mat { background: var(--surface); padding: 8px; border: 1px solid var(--rule); box-shadow: 0 1px 2px rgba(21, 32, 43, 0.06); }
.portrait img { display: block; width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; filter: saturate(0.85); }
.about .prose p { font-size: 18px; line-height: 1.65; }
.about .prose .contact { margin-top: 20px; display: flex; flex-wrap: wrap; gap: 6px 22px; font-family: var(--sans); font-weight: 500; font-size: 14px; }
.about .prose .contact a { color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--rule); }
.about .prose .contact a:hover { color: var(--accent); border-bottom-color: currentColor; }
@media (min-width: 600px) {
  .about { grid-template-columns: minmax(0, 1fr) 188px; gap: 48px; }
  .portrait { width: 188px; order: 0; }
  .about .prose { padding-top: 4px; }
}

footer { border-top: 1px solid var(--rule); padding: 28px 0 48px; font-family: var(--sans); font-size: 12.5px; color: var(--muted); }
