/* ---------- Atlas : fiches d'archive, catalogue, articles ---------- */
@font-face { font-family: "Source Serif 4"; src: url("../fonts/source-serif-4.woff2") format("woff2"); font-weight: 200 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Source Serif 4"; src: url("../fonts/source-serif-4-italic.woff2") format("woff2"); font-weight: 200 900; font-style: italic; font-display: swap; }
:root { --serif: "Source Serif 4", Georgia, "Times New Roman", serif; }

/* En-tête de rangée, comme une étiquette de classeur */
.ac-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 14px 0; margin-bottom: 30px; border-top: 1px solid var(--line-2); border-bottom: 1px solid var(--line); }
.ac-head > span { font-size: 14px; font-weight: 500; letter-spacing: -0.005em; }
.ac-grid { display: grid; gap: 40px 22px; }
@media (min-width: 640px) { .ac-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .ac-grid { grid-template-columns: repeat(4, 1fr); } .ac-grid--2 { grid-template-columns: repeat(4, 1fr); } }
.ac { display: grid; grid-template-rows: auto auto auto 1fr; align-content: start; gap: 0; color: var(--fg); }
.ac-top { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; font-size: 14px; color: var(--fg-2); }
.ac-dots { display: inline-grid; place-items: center; height: 18px; padding: 0 10px; border-radius: 999px; background: var(--card); color: var(--fg-3); font-size: 11px; letter-spacing: 0.08em; line-height: 1; }
.ac-no { margin-left: auto; font-family: var(--mono); font-size: 11px; color: var(--fg-4); }
.ac-img { position: relative; aspect-ratio: 4 / 5; overflow: hidden; border-radius: 6px; background: #ece8e1; }
.ac-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s var(--ease), filter 0.4s; }
:root[data-theme="dark"] .ac-img img { filter: brightness(0.9); }
.ac h3 { margin-top: 20px; font-size: clamp(20px, 1.7vw, 24px); font-weight: 600; letter-spacing: -0.02em; line-height: 1.2; transition: color 0.2s; }
.ac p { margin-top: 10px; font-size: 15px; line-height: 1.5; color: var(--fg-3); }
a.ac:hover .ac-img img { transform: scale(1.025); }
a.ac:hover h3 { color: var(--fg-3); }
.ac--soon h3 { color: var(--fg-4); }
.ac--soon .ac-img img { filter: grayscale(0.6) contrast(0.92); opacity: 0.85; }
.ac-soon { margin-top: 12px; justify-self: start; font-family: var(--mono); font-size: 11px; color: var(--fg-4); }

/* Catalogue : une ligne par publication */
.arch { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line-2); }
.arch-r { display: grid; grid-template-columns: 1fr auto; gap: 6px 18px; align-items: baseline; padding: 18px 0; border-bottom: 1px solid var(--line); }
.arch-r[hidden] { display: none; }
.arch-r .n, .arch-r .th, .arch-r .dt { font-family: var(--mono); font-size: 11.5px; color: var(--fg-4); }
.arch-r .th { display: none; }
.arch-r .n { display: none; }
.arch-r .t { grid-column: 1; font-size: 17px; letter-spacing: -0.01em; }
.arch-r .t a:hover { color: var(--fg-3); }
.arch-r .t small { display: block; margin-top: 3px; font-size: 14px; color: var(--fg-3); }
.arch-r .dt { display: none; }
.arch-r .st { grid-column: 2; grid-row: 1; font-size: 14px; white-space: nowrap; }
.arch-r .st a { display: inline-flex; align-items: center; gap: 6px; }
.arch-r .st svg { width: 13px; height: 13px; }
.arch-r .st em { font-style: normal; font-family: var(--mono); font-size: 11px; color: var(--fg-4); }
@media (min-width: 860px) {
  .arch-r { grid-template-columns: 150px 1fr 110px 110px; }
  .arch-r .th, .arch-r .dt { display: block; }
  .arch-r .t { grid-column: auto; }
  .arch-r .st { grid-column: auto; grid-row: auto; text-align: right; }
}
@media (min-width: 900px) { .atl-th { grid-template-columns: repeat(5, 1fr) !important; } }

/* ---------- Article ---------- */
.post-head { text-align: center; padding-top: clamp(56px, 8vw, 110px); padding-bottom: clamp(36px, 5vw, 60px); }
.post-kick { display: inline-flex; align-items: center; gap: 10px; font-size: 14px; color: var(--fg-3); }
.post-kick:hover { color: var(--fg); }
.post-t { margin: 22px auto 0; max-width: 17em; font-size: clamp(34px, 4.6vw, 60px); line-height: 1.06; letter-spacing: -0.03em; }
.post-t b { display: block; font-weight: 650; }
.post-t span { display: block; font-family: var(--serif); font-weight: 400; letter-spacing: -0.02em; }
.post-dek { margin: 26px auto 0; max-width: 36em; font-family: var(--serif); font-size: clamp(18px, 1.6vw, 21px); line-height: 1.5; color: var(--fg-2); }
.post-meta { margin-top: 18px; font-family: var(--mono); font-size: 11.5px; color: var(--fg-4); }
.post-grid { display: grid; gap: 40px; padding-bottom: clamp(60px, 8vw, 110px); }
@media (min-width: 1040px) { .post-grid { grid-template-columns: 250px 1fr; gap: 64px; } }
.post-toc { display: none; }
@media (min-width: 1040px) {
  .post-toc { display: block; position: sticky; top: 100px; align-self: start; }
  .post-toc ol { list-style: none; margin: 0; padding: 0; }
  .post-toc li { border-top: 1px solid var(--line); }
  .post-toc li:last-child { border-bottom: 1px solid var(--line); }
  .post-toc a { display: grid; grid-template-columns: 32px 1fr; padding: 12px 0; font-size: 14px; line-height: 1.4; color: var(--fg-3); transition: color 0.2s; }
  .post-toc a span { font-family: var(--mono); font-size: 12px; color: var(--fg-4); padding-top: 1px; }
  .post-toc a:hover, .post-toc a.on { color: var(--fg); }
}
.post-fig { margin: 0; }
.post-fig img { display: block; width: 100%; height: auto; border-radius: 6px; }
.post-fig figcaption { margin-top: 12px; font-size: 13px; line-height: 1.5; color: var(--fg-4); }
.post-body { max-width: 680px; margin: 48px auto 0; font-family: var(--serif); font-size: 19px; line-height: 1.62; color: var(--fg); }
.post-body p + p { margin-top: 1.05em; }
.post-intro { margin-bottom: 2.4em; }
.post-intro p:first-child::first-letter { float: left; font-size: 4.6em; line-height: 0.82; padding: 0.06em 0.1em 0 0; font-weight: 600; color: var(--fg-3); }
.post-s { scroll-margin-top: 96px; margin-top: 2.6em; }
.post-s h2, .post-src h2, .post-dates h2 { font-family: var(--sans, inherit); font-family: "Geist", system-ui, sans-serif; font-size: clamp(22px, 2.1vw, 28px); font-weight: 600; letter-spacing: -0.025em; line-height: 1.2; margin-bottom: 0.8em; }
.post-s h2 span { display: block; margin-bottom: 8px; font-family: var(--mono); font-size: 12px; font-weight: 400; letter-spacing: 0; color: var(--accent); }
.post-body em { font-style: italic; }
.post-body blockquote { margin: 1.6em 0; padding: 4px 0 4px 24px; border-left: 2px solid var(--accent); font-size: 1.12em; line-height: 1.5; color: var(--fg-2); font-style: italic; }
.post-list { list-style: none; margin: 1.2em 0; padding: 0; display: grid; gap: 1em; }
.post-list li { padding-left: 24px; position: relative; }
.post-list li::before { content: ""; position: absolute; left: 0; top: 0.72em; width: 10px; height: 1px; background: var(--fg); }
.post-list b { font-weight: 650; }
.post-dates { margin-top: 3em; padding: 26px 0 8px; border-top: 1px solid var(--line-2); }
.post-dates dl { margin: 0; display: grid; }
.post-dates dl > div { display: grid; grid-template-columns: 80px 1fr; gap: 16px; padding: 9px 0; border-bottom: 1px dashed var(--line); font-size: 16px; }
.post-dates dt { font-family: var(--mono); font-size: 13px; color: var(--accent); padding-top: 3px; }
.post-src { margin-top: 3em; padding-top: 26px; border-top: 1px solid var(--line-2); font-family: "Geist", system-ui, sans-serif; }
.post-src h2 { font-size: 18px; }
.post-src ol { margin: 0; padding-left: 20px; display: grid; gap: 10px; font-size: 14px; line-height: 1.5; color: var(--fg-3); }
.post-src a { color: var(--fg-2); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--line-2); word-break: break-word; }
.post-src a:hover { color: var(--fg); }
@media (max-width: 640px) { .post-body { font-size: 17.5px; } .post-intro p:first-child::first-letter { font-size: 4em; } }
