*, *::before, *::after { box-sizing: border-box; }
:root {
  color-scheme: light;
  --largeur: 780px;
  --hauteur-bandeau: 200px;
  --trait: #555;
  --largeur-laterale: 170px;
  --jonction-remontee: clamp(50px, calc(145.8px - 12.28vw), 60px);
}
body {
  margin: 0;
  font: 13px/1.5 Arial, Helvetica, sans-serif;
  color: #222;
  background: repeating-linear-gradient(135deg, #333 0 1px, #555 1px 2px, #333 2px 4px);
}
a { color: inherit; text-decoration: none; }
a:hover { color: #666; text-decoration: underline; }
a:focus-visible { outline: 2px solid #666; outline-offset: 3px; }

.page {
  position: relative;
  width: var(--largeur);
  max-width: 100%;
  min-height: 100vh;
  margin: 0 auto;
  background: #fff;
  box-shadow: 0 0 20px 5px rgba(0,0,0,.65);
  overflow: hidden;
}
.page::before, .page::after {
  content: "";
  position: absolute;
  z-index: 10;
  top: 0;
  bottom: 0;
  width: 20px;
  pointer-events: none;
}
.page::before { left: 0; background: linear-gradient(to right, rgba(0,0,0,.2), transparent); }
.page::after { right: 0; background: linear-gradient(to left, rgba(0,0,0,.2), transparent); }
.masthead { position: relative; height: var(--hauteur-bandeau); }
.masthead::before {
  content: "";
  position: absolute;
  top: 74px;
  left: -10px;
  width: 850px;
  height: 1px;
  background: var(--trait);
  transform: rotate(7deg);
  transform-origin: left center;
}
.site-title {
  position: absolute;
  z-index: 1;
  top: 24px;
  left: 61px;
  margin: 0;
  color: #454545;
  font-size: 52px;
  font-weight: normal;
  letter-spacing: .13em;
  line-height: 1.1;
  white-space: nowrap;
  transform: rotate(7deg);
  transform-origin: left top;
}
.top-nav {
  position: absolute;
  z-index: 1;
  top: 89px;
  left: 0;
  width: calc(100% - var(--largeur-laterale));
  display: flex;
  justify-content: center;
  align-items: baseline;
  gap: 11px;
  color: #888;
  font-size: 24.8px;
  line-height: 1.4;
  letter-spacing: .17em;
  white-space: nowrap;
  transform: rotate(7deg);
  transform-origin: left top;
}
.top-nav a + a::before {
  content: "·";
  display: inline-block;
  margin-right: 10px;
  color: #d6d6d6;
  font-size: 13px;
  vertical-align: middle;
}
.columns {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) var(--largeur-laterale);
  min-height: 660px;
  align-items: stretch;
}
.columns::before, .columns::after {
  content: "";
  position: absolute;
  z-index: 2;
  width: 1px;
  background: var(--trait);
  pointer-events: none;
}
.columns::before {
  left: calc(100% - var(--largeur-laterale));
  top: calc(-1 * var(--jonction-remontee));
  height: 300px;
  transform: rotate(4deg);
  transform-origin: top center;
}
.columns::after {
  left: calc(100% - var(--largeur-laterale) - 21px); /* 300 × sin(4°) */
  top: calc(299px - var(--jonction-remontee));
  bottom: 0;
}
.main {
  min-width: 0;
  padding: 17px 32px 45px 15px;
  text-align: justify;
}
.main p { margin: 0 0 10px; }
.intro { margin-bottom: 27px; }
.intro p { margin-bottom: 5px; }
.entry { margin-top: 31px; display: flow-root; }
.entry h2 {
  margin: 0 0 2px;
  font-size: 20px;
  line-height: 1.3;
}
.entry h3 {
  margin: 0 0 2px;
  font-size: 16px;
  line-height: 1.2;
}
.entry-meta {
  margin: 0 0 12px;
  padding-bottom: 2px;
  border-bottom: 1px dashed #c6c6c6;
  font-size: 11px;
  text-align: left;
}
.entry p { margin: 0 0 10px; }
.entry h2 + p { margin-top: 12px; }
.entry h3 + p { margin-top: 12px; }
.entry-illustration {
  float: left;
  width: 170px;
  margin: 7px 17px 12px 3px;
  transform: rotate(4deg);
  transform-origin: center;
  box-shadow: 0 2px 5px rgba(0,0,0,.18);
}
.entry-illustration img { display: block; width: 100%; height: auto; filter: grayscale(90%);  }
.entry-illustration img:hover { filter: grayscale(10%);  }
.entry-download {
  clear: both;
  margin: 13px 0 0;
  font-size: 11px;
  line-height: 1.4;
  text-align: left;
  color: #555;
}
.entry-download a { display: inline-flex; gap: 6px; align-items: center; }
.entry-download svg { flex: none; width: 16px; height: 19px; }
.entry-large {
  clear: both;
  display: table;
  max-width: calc(100% - 16px);
  margin: 18px auto 20px;
  transform: rotate(2deg);
  box-shadow: 0 2px 7px rgba(0,0,0,.20);
}
.entry-large a { display: block; cursor: zoom-in; }
.entry-large img {
  display: block;
  max-width: 100%;
  height: auto;
}
.entry-large figcaption {
  padding: 5px 8px 7px;
  font-size: 11px;
  color: #666;
  text-align: center;
}
.image-modal {
  position: fixed;
  inset: 0;
  width: max-content;
  max-width: min(var(--largeur), calc(100vw - 24px));
  max-height: calc(100vh - 24px);
  max-height: calc(100dvh - 24px);
  margin: auto;
  padding: 0 10px 12px;
  border: 1px solid #777;
  background: #fff;
  box-shadow: 0 10px 35px rgba(0,0,0,.35);
  overflow-x: hidden;
  overflow-y: auto;
}
.image-modal::backdrop { background: rgba(0,0,0,.78); }
.image-modal img {
  display: block;
  width: auto;
  max-width: 100%;
  height: auto;
  margin: 2px auto 0;
}
.image-modal-tools {
  position: sticky;
  top: 0;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  margin: 0 -10px 2px;
  padding: 3px 9px;
  background: rgba(255,255,255,.96);
  border-bottom: 1px solid #eee;
}
.image-modal-controls { display: flex; align-items: center; gap: 8px; }
.image-modal-count { color: #666; font-size: 11px; white-space: nowrap; }
.image-modal-tools button[hidden], .image-modal-count[hidden] { display: none; }
.image-modal button {
  border: 0;
  padding: 3px 8px;
  background: transparent;
  font: 13px Arial, Helvetica, sans-serif;
  color: #333;
  cursor: pointer;
}
.image-modal button:hover { text-decoration: underline; }
.timeline {
  --rail-1: #696969;
  --rail-2: #C0C0C0;
  --rail-3: #A9A9A9;
  margin: 18px 0 25px;
}
.timeline-segment {
  --visible-1: transparent;
  --visible-2: transparent;
  --visible-3: transparent;
  --dessin-1: linear-gradient(var(--visible-1), var(--visible-1));
  --dessin-2: linear-gradient(var(--visible-2), var(--visible-2));
  --dessin-3: linear-gradient(var(--visible-3), var(--visible-3));
  background-image: var(--dessin-1), var(--dessin-2), var(--dessin-3);
  background-position: 12px 0, 30px 0, 48px 0;
  background-size: 1px 100%, 1px 100%, 1px 100%;
  background-repeat: no-repeat;
}
.timeline-segment.rail-1 { --visible-1: var(--rail-1); }
.timeline-segment.rail-2 { --visible-2: var(--rail-2); }
.timeline-segment.rail-3 { --visible-3: var(--rail-3); }
.timeline-segment.pointilles, .timeline-segment.pointilles-1 {
  --dessin-1: repeating-linear-gradient(to bottom, var(--visible-1) 0 4px, transparent 4px 8px);
}
.timeline-segment.pointilles, .timeline-segment.pointilles-2 {
  --dessin-2: repeating-linear-gradient(to bottom, var(--visible-2) 0 4px, transparent 4px 8px);
}
.timeline-segment.pointilles, .timeline-segment.pointilles-3 {
  --dessin-3: repeating-linear-gradient(to bottom, var(--visible-3) 0 4px, transparent 4px 8px);
}
.timeline .entry {
  margin: 0;
  padding: 15px 0 18px 68px;
}
.timeline .entry + .entry { margin-top: 3px; }
.timeline .entry h2 { position: relative; }
.timeline .entry h2::before {
  content: "";
  position: absolute;
  top: 8px;
  left: var(--repere-x, -61px);
  width: 11px;
  height: 11px;
  border: 1px solid var(--repere-couleur, var(--rail-1));
  border-radius: 50%;
  background: #fff;
  z-index: 1;
}
.timeline .track-1 { --repere-x: -61px; --repere-couleur: var(--rail-1); }
.timeline .track-2 { --repere-x: -43px; --repere-couleur: var(--rail-2); }
.timeline .track-3 { --repere-x: -25px; --repere-couleur: var(--rail-3); }
.timeline-heading { margin: 38px 0 9px; font-size: 19px; }
.timeline .entry-illustration { width: min(35%, 135px); }
.timeline .entry-download { margin-top: 10px; }
.timeline-legend {
  --legende-hauteur: 120px;
  --legende-texte-x: 86px;
  position: relative;
  height: var(--legende-hauteur);
  font-size: 11px;
  line-height: 1.5;
  text-align: left;
}
.timeline-legend-item {
  position: absolute;
  top: var(--rang-y);
  left: var(--legende-texte-x);
  right: 0;
  min-height: 18px;
  color: var(--couleur-rail);
  --coude-horizontal: linear-gradient(var(--couleur-rail), var(--couleur-rail));
  --coude-vertical: linear-gradient(var(--couleur-rail), var(--couleur-rail));
}
.timeline-legend.pointilles .timeline-legend-item,
.timeline-legend.pointilles-1 .legende-1,
.timeline-legend.pointilles-2 .legende-2,
.timeline-legend.pointilles-3 .legende-3 {
  --coude-horizontal: repeating-linear-gradient(to right, var(--couleur-rail) 0 4px, transparent 4px 8px);
  --coude-vertical: repeating-linear-gradient(to bottom, var(--couleur-rail) 0 4px, transparent 4px 8px);
}
.timeline-legend-item.legende-1 { --rail-x: 12px; --couleur-rail: var(--rail-1); }
.timeline-legend-item.legende-2 { --rail-x: 30px; --couleur-rail: var(--rail-2); }
.timeline-legend-item.legende-3 { --rail-x: 48px; --couleur-rail: var(--rail-3); }
.timeline-legend-item::before {
  content: "";
  position: absolute;
  top: 9px;
  left: calc(var(--rail-x) - var(--legende-texte-x));
  width: calc(var(--legende-texte-x) - var(--rail-x) - 7px);
  height: 1px;
  background-image: var(--coude-horizontal);
  pointer-events: none;
}
.timeline-legend-item::after {
  content: "";
  position: absolute;
  left: calc(var(--rail-x) - var(--legende-texte-x));
  width: 1px;
  background-image: var(--coude-vertical);
  pointer-events: none;
}
.timeline-legend--start .legende-1 { --rang-y: 8px; }
.timeline-legend--start .legende-2 { --rang-y: 41px; }
.timeline-legend--start .legende-3 { --rang-y: 74px; }
.timeline-legend--end .legende-3 { --rang-y: 8px; }
.timeline-legend--end .legende-2 { --rang-y: 41px; }
.timeline-legend--end .legende-1 { --rang-y: 74px; }
.timeline-legend--start .timeline-legend-item::after {
  top: 9px;
  height: calc(var(--legende-hauteur) - var(--rang-y) - 9px);
}
.timeline-legend--end .timeline-legend-item::after {
  top: calc(-1 * var(--rang-y));
  height: calc(var(--rang-y) + 10px);
}
.sidebar { position: relative; min-width: 0; padding: 7px 8px 25px 8px; }
.sidebar-nav { display: flex; flex-direction: column; gap: 20px; }
.sidebar-nav a {
  display: block;
  color: #444;
  font-size: 20px;
  letter-spacing: .13em;
  line-height: 2;
  white-space: nowrap;
  transform: rotate(7deg);
  transform-origin: left center;
}
.social { margin: 26px 0 0 4px; font-size: 11px; line-height: 1.9; color: #777; }
.social a { margin-right: 8px; }
footer {
  position: relative;
  border-top: 1px solid #444;
  padding: 9px 15px 16px;
  font-size: 11px;
}
@media (min-width: 701px) and (max-width: 779px) {
  .top-nav { font-size: clamp(20.9px, calc(4.9vw - 13.4px), 24.8px); }
}
@media (max-width: 700px) {
  :root { --hauteur-bandeau: 170px; }
  .masthead::before { top: 70px; transform: rotate(6deg); }
  .site-title {
    top: 26px; left: 22px;
    font-size: clamp(27px, 6.6vw, 45px);
    letter-spacing: .08em;
    transform: rotate(6deg);
  }
  .top-nav {
    top: 114px;
    left: 12px;
    width: calc(100% - 24px);
    justify-content: center;
    flex-wrap: wrap;
    gap: 2px 9px;
    font-size: clamp(13px, 3.3vw, 20px);
    letter-spacing: .07em;
    white-space: normal;
    transform: none;
  }
  .top-nav a + a::before { margin-right: 7px; }
  .columns { display: block; min-height: 0; }
  .columns::before, .columns::after { display: none; }
  .main { padding: 6px 21px 28px; }
  .entry-illustration { width: min(40%, 170px); }
  .sidebar { border-top: 1px solid #aaa; padding: 17px 21px 23px; }
  .sidebar-nav { flex-direction: row; flex-wrap: wrap; gap: 4px 18px; }
  .sidebar-nav a { font-size: 16px; line-height: 1.6; transform: none; }
  .social { margin-top: 13px; }
}
