@font-face { font-family: "Source Serif 4"; font-weight: 400; font-style: normal; font-display: swap; src: url(/fonts/source-serif-4-latin-400-normal.woff2) format("woff2"); }
@font-face { font-family: "Source Serif 4"; font-weight: 400; font-style: italic; font-display: swap; src: url(/fonts/source-serif-4-latin-400-italic.woff2) format("woff2"); }
@font-face { font-family: "Source Serif 4"; font-weight: 600; font-style: normal; font-display: swap; src: url(/fonts/source-serif-4-latin-600-normal.woff2) format("woff2"); }
@font-face { font-family: "Source Serif 4"; font-weight: 700; font-style: normal; font-display: swap; src: url(/fonts/source-serif-4-latin-700-normal.woff2) format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-weight: 400; font-display: swap; src: url(/fonts/ibm-plex-sans-latin-400-normal.woff2) format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-weight: 500; font-display: swap; src: url(/fonts/ibm-plex-sans-latin-500-normal.woff2) format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-weight: 600; font-display: swap; src: url(/fonts/ibm-plex-sans-latin-600-normal.woff2) format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-weight: 400; font-display: swap; src: url(/fonts/ibm-plex-mono-latin-400-normal.woff2) format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-weight: 500; font-display: swap; src: url(/fonts/ibm-plex-mono-latin-500-normal.woff2) format("woff2"); }

:root {
  --paper: #fdfdfb;
  --ink: #111316;
  --ink-2: #454a52;
  --ink-3: #6d737c;
  --rule: #dddcd6;
  --wash: #f3f3ef;
  --accent: #b5121b;
  --ok: #1d6b3f;
  --bar: #111316;
  --bar-ink: #f2f1ec;
  --serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  --sans: "IBM Plex Sans", "Helvetica Neue", Arial, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, Menlo, Consolas, monospace;
}
@media (prefers-color-scheme: dark) {
  :root {
    --paper: #101215;
    --ink: #edece7;
    --ink-2: #b6b8bb;
    --ink-3: #8b8f96;
    --rule: #2b2e33;
    --wash: #181b1f;
    --accent: #ff6a5f;
    --ok: #6fce97;
    --bar: #1a1d21;
    --bar-ink: #edece7;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 400 16px/1.55 var(--sans);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
h1, h2, h3, p, ol { margin: 0; padding: 0; }
h1, h2, h3, li { overflow-wrap: anywhere; }
ol { list-style: none; }
a { color: inherit; text-decoration: none; }
a:hover { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
[hidden] { display: none !important; }
.wrap { max-width: 1240px; margin: 0 auto; padding: 0 32px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 8px; background: var(--paper); padding: 8px 12px; z-index: 10; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.mono { font-family: var(--mono); }

/* En-tête */
.topbar { border-bottom: 1px solid var(--rule); font-size: 13px; color: var(--ink-3); }
.topbar-in { display: flex; justify-content: space-between; align-items: center; min-height: 36px; gap: 16px; }
.today::first-letter { text-transform: uppercase; }
.langs { display: flex; gap: 2px; font: 500 12px/1 var(--mono); }
.langs a { padding: 6px 7px; color: var(--ink-3); }
.langs a:hover { color: var(--ink); text-decoration: none; }
.langs a[aria-current] { background: var(--ink); color: var(--paper); }

.masthead-in { display: flex; align-items: baseline; justify-content: space-between; gap: 24px; padding-top: 26px; padding-bottom: 18px; }
.wordmark { font: 700 clamp(34px, 5.4vw, 60px)/1 var(--serif); letter-spacing: -0.022em; }
.wordmark:hover { text-decoration: none; }
.tagline { font: italic 400 17px/1.3 var(--serif); color: var(--ink-2); text-align: right; }

.sections { border-top: 3px solid var(--ink); border-bottom: 1px solid var(--ink); }
.sections-in { display: flex; justify-content: space-between; align-items: center; gap: 24px; }
.sections nav { display: flex; gap: 26px; overflow-x: auto; scrollbar-width: none; }
.sections nav::-webkit-scrollbar { display: none; }
.sections nav a { font-weight: 500; font-size: 15px; padding: 11px 0 10px; white-space: nowrap; border-bottom: 3px solid transparent; margin-bottom: -1px; }
.sections nav a:hover { text-decoration: none; border-bottom-color: var(--rule); }
.sections nav a[aria-current] { border-bottom-color: var(--accent); }
.site-search input[type=search] {
  width: 170px; margin: 0; border: 0; border-bottom: 1px solid var(--rule); padding: 4px 0; background: transparent;
  color: var(--ink); font: 400 14px var(--sans); border-radius: 0;
}
.site-search input[type=search]:focus { outline: none; border-bottom-color: var(--ink); width: 230px; }

.memberbar { background: var(--bar); color: var(--bar-ink); font-size: 14px; }
.memberbar-in { display: flex; justify-content: space-between; align-items: center; gap: 20px; min-height: 40px; flex-wrap: wrap; }
.memberbar nav { display: flex; gap: 20px; flex-wrap: wrap; }
.member-id { display: flex; gap: 16px; align-items: center; font-family: var(--mono); font-size: 13px; }
.member-id form { margin: 0; }
button.linkish { all: unset; cursor: pointer; font: 400 14px var(--sans); text-decoration: underline; text-underline-offset: 3px; }

main.wrap { padding-top: 30px; padding-bottom: 64px; min-height: 55vh; }

/* Images */
.thumb { position: relative; margin: 0 0 12px; aspect-ratio: 16 / 9; overflow: hidden; background: var(--bar); }
.thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.thumb-fallback { position: absolute; left: 14px; right: 14px; bottom: 11px; color: var(--bar-ink); font: 600 17px/1.15 var(--serif); }
.thumb-fallback::before { content: ""; display: block; width: 26px; height: 3px; margin-bottom: 9px; background: #d6242c; }

/* Une */
.kicker { display: flex; gap: 10px; align-items: baseline; flex-wrap: wrap; font: 400 12.5px/1.3 var(--mono); color: var(--ink-3); margin-bottom: 7px; }
.kicker .src { color: var(--ink); font-weight: 500; }

.front { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 3fr) minmax(0, 3fr); gap: 0 32px; padding-bottom: 28px; border-bottom: 1px solid var(--ink); }
.lead h1 { font: 700 clamp(32px, 4.1vw, 50px)/1.08 var(--serif); letter-spacing: -0.018em; margin-bottom: 16px; text-wrap: balance; }
.standfirst { font: 400 19px/1.5 var(--serif); color: var(--ink-2); max-width: 62ch; }
.lead-more { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 28px; margin-top: 24px; padding-top: 18px; border-top: 1px solid var(--rule); }
.lead-more h2 { font: 600 20px/1.24 var(--serif); letter-spacing: -0.006em; margin-bottom: 6px; }
.lead-more p:not(.kicker) { color: var(--ink-2); font-size: 15px; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 4; line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.seconds { border-left: 1px solid var(--rule); padding-left: 32px; }
.second { padding-bottom: 18px; margin-bottom: 18px; border-bottom: 1px solid var(--rule); }
.second:last-child { border-bottom: 0; margin-bottom: 0; padding-bottom: 0; }
.second h2 { font: 600 21px/1.22 var(--serif); letter-spacing: -0.008em; }

.alerts { border-left: 1px solid var(--rule); padding-left: 32px; }
.alerts h2 { font: 600 13px/1 var(--sans); letter-spacing: .09em; text-transform: uppercase; color: var(--accent); padding-bottom: 12px; border-bottom: 2px solid var(--accent); }
.alerts li { padding: 11px 0; border-bottom: 1px solid var(--rule); font-size: 14.5px; line-height: 1.35; font-weight: 500; }
.alerts li:last-child { border-bottom: 0; }
.alerts li .kicker { margin: 5px 0 0; font-size: 11.5px; font-weight: 400; }

.block { padding-top: 30px; }
.block-head { display: flex; justify-content: space-between; align-items: baseline; border-bottom: 1px solid var(--ink); padding-bottom: 8px; margin-bottom: 20px; }
.block-head h2 { font: 700 24px/1.1 var(--serif); letter-spacing: -0.01em; }
.block-head a { font-size: 14px; color: var(--ink-2); }
.grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px 32px; }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.item h3 { font: 600 20px/1.24 var(--serif); letter-spacing: -0.006em; margin-bottom: 6px; }
.item p:not(.kicker) { color: var(--ink-2); font-size: 15px; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 3; line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

/* Pages de liste */
.page-head { padding-bottom: 18px; border-bottom: 1px solid var(--ink); margin-bottom: 18px; }
.page-head h1 { font: 700 clamp(32px, 4vw, 44px)/1.1 var(--serif); letter-spacing: -0.016em; }
.page-head p { color: var(--ink-2); margin-top: 6px; max-width: 70ch; }
.meta-line { font: 400 13px var(--mono); color: var(--ink-3) !important; }
.crumb { font-size: 14px; color: var(--ink-2); margin-bottom: 14px; }
.filters { display: flex; gap: 6px 20px; flex-wrap: wrap; font-size: 14px; color: var(--ink-2); margin-bottom: 8px; }
.filters a[aria-current] { color: var(--ink); font-weight: 600; text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 2px; text-underline-offset: 5px; }
.row { display: grid; grid-template-columns: 96px minmax(0, 1fr) 208px; gap: 24px; padding: 20px 0; border-bottom: 1px solid var(--rule); }
.row-thumb .thumb { margin: 4px 0 0; }
.row-thumb .thumb-fallback { font-size: 15px; }
.row-time { display: flex; flex-direction: column; font: 400 12.5px/1.5 var(--mono); color: var(--ink-3); padding-top: 4px; }
.row h2 { font: 600 23px/1.22 var(--serif); letter-spacing: -0.008em; margin-bottom: 6px; max-width: 34em; }
.row p { color: var(--ink-2); max-width: 74ch; }
.row .row-src { font: 500 12.5px var(--mono); color: var(--ink); margin-top: 8px; }
.pager { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; padding-top: 24px; font-size: 15px; }
.pager a:last-child { text-align: right; }
.pager-pos { font: 400 13px var(--mono); color: var(--ink-3); }
.count { font: 400 13px var(--mono); color: var(--ink-3); margin: 8px 0; }
.empty { color: var(--ink-2); padding: 28px 0; }
.more { text-decoration: underline; text-underline-offset: 3px; }

.legal { max-width: 68ch; }
.legal h2 { font: 700 21px/1.2 var(--serif); margin: 26px 0 6px; }
.legal h2:first-child { margin-top: 0; }
.legal p { color: var(--ink-2); }
.legal a { text-decoration: underline; text-underline-offset: 3px; }

/* Tableaux */
.table-scroll { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 15px; }
th { text-align: left; font: 600 12px/1.2 var(--sans); letter-spacing: .05em; text-transform: uppercase; color: var(--ink-3); padding: 10px 16px 10px 0; border-bottom: 1px solid var(--ink); white-space: nowrap; }
td { padding: 12px 16px 12px 0; border-bottom: 1px solid var(--rule); vertical-align: top; }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }
.strong { font-weight: 600; }
.mono-cell { font: 400 13px/1.6 var(--mono); color: var(--ink-2); white-space: nowrap; }
.empty-cell { color: var(--ink-3); }
.actions { white-space: nowrap; text-align: right; padding-right: 0; }
.actions form { display: inline-block; margin: 0 0 0 14px; }
.inline-form { display: inline-flex !important; gap: 8px; align-items: center; }
.inline-form input { width: 180px; padding: 5px 8px; font-size: 14px; }

/* Formulaires */
.panel { background: var(--wash); padding: 22px 24px 24px; margin-bottom: 26px; }
.panel h2 { font: 700 20px/1.2 var(--serif); margin-bottom: 14px; }
label { display: block; font-size: 14px; font-weight: 500; margin-bottom: 14px; }
input[type=text], input[type=url], input[type=password], input[type=search], select, textarea {
  display: block; width: 100%; margin-top: 5px; padding: 9px 11px; font: 400 15px var(--sans);
  color: var(--ink); background: var(--paper); border: 1px solid var(--rule); border-radius: 0;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--ink); }
input.mono { font-family: var(--mono); font-size: 14px; }
textarea.code-input { font: 400 13.5px/1.55 var(--mono); resize: vertical; tab-size: 2; }
.form-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 18px; }
.form-row-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
button { font: 500 15px var(--sans); cursor: pointer; border-radius: 0; }
button[type=submit], .big-search button { background: var(--ink); color: var(--paper); border: 1px solid var(--ink); padding: 9px 20px; }
button[type=submit]:hover, .big-search button:hover { background: var(--accent); border-color: var(--accent); }
button:disabled { opacity: .55; cursor: wait; }
.btn-line { display: inline-block; margin: 0; background: transparent; border: 1px solid var(--ink); color: var(--ink); padding: 7px 14px; font: 500 14px var(--sans); cursor: pointer; }
.btn-line:hover { background: var(--ink); color: var(--paper); text-decoration: none; }
.btn-danger { background: transparent; color: var(--accent); border: 1px solid var(--accent); padding: 7px 14px; font-size: 14px; }
.btn-danger:hover { background: var(--accent); color: var(--paper); }
.btn-text, .btn-text-danger { background: none; border: 0; padding: 0; font-size: 14px; text-decoration: underline; text-underline-offset: 3px; color: var(--ink-2); }
.btn-text-danger { color: var(--accent); }
.big-search { display: flex; gap: 10px; margin: 0 0 20px; }
.big-search input { margin: 0; flex: 1; }
.toolbar { margin: 0 0 12px; display: flex; justify-content: flex-end; }
.notice { padding: 10px 14px; margin-bottom: 16px; font-size: 15px; border-left: 3px solid; }
.notice-error { border-color: var(--accent); color: var(--accent); background: var(--wash); }
.notice-ok { border-color: var(--ok); color: var(--ok); background: var(--wash); }
.login { max-width: 400px; margin: 24px auto 0; }
.login h1 { font: 700 34px/1.1 var(--serif); letter-spacing: -0.014em; margin-bottom: 6px; }
.login > p { color: var(--ink-2); margin-bottom: 18px; }
.stack button { width: 100%; }

/* Dépôt de projets */
.tabs { display: flex; gap: 22px; border-bottom: 1px solid var(--rule); margin: 4px 0 16px; }
.tabs button { background: none; border: 0; border-bottom: 3px solid transparent; margin-bottom: -1px; padding: 8px 0; color: var(--ink-2); font-size: 15px; }
.tabs button[aria-selected=true] { color: var(--ink); border-bottom-color: var(--accent); }
.dropzone { border: 1px dashed var(--ink-3); padding: 28px 20px; text-align: center; background: var(--paper); margin-bottom: 14px; transition: background-color .12s, border-color .12s; }
.dropzone.is-over { border: 1px solid var(--accent); background: var(--wash); }
.dropzone-title { font: 600 19px/1.3 var(--serif); }
.dropzone-hint { font-size: 14px; color: var(--ink-3); margin: 4px 0 14px; }
.dropzone-actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.file-summary { font: 400 13px var(--mono); color: var(--ink-2); margin-bottom: 14px; }
progress { display: block; width: 100%; height: 4px; margin-bottom: 14px; accent-color: var(--accent); }
.file-bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; padding: 10px 14px; background: var(--wash); font-size: 13.5px; }
.file-actions { display: flex; gap: 8px; }
.code-view { margin: 0; padding: 16px; max-height: 70vh; overflow: auto; background: var(--bar); color: var(--bar-ink); font: 400 13.5px/1.6 var(--mono); tab-size: 2; }
.danger-zone { margin-top: 24px; }

/* Pied de page */
.site-footer { border-top: 3px solid var(--ink); font-size: 14px; color: var(--ink-2); }
.footer-in { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 40px; padding-top: 24px; padding-bottom: 36px; }
.footer-name { font: 700 20px var(--serif); color: var(--ink); margin-bottom: 6px; }
.site-footer p { max-width: 62ch; margin-bottom: 4px; }
.site-footer nav { display: flex; flex-direction: column; gap: 4px; align-items: flex-end; }
.site-footer .quiet { color: var(--ink-3); margin-top: 10px; font-size: 13px; }

@media (max-width: 1040px) {
  .front { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); }
  .alerts { grid-column: 1 / -1; border-left: 0; padding-left: 0; margin-top: 28px; }
  .alerts ol { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 32px; }
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
  .wrap { padding: 0 16px; }
  .masthead-in { display: block; padding-top: 16px; padding-bottom: 12px; }
  .tagline { text-align: left; font-size: 15px; margin-top: 4px; }
  .sections-in { display: block; }
  .site-search { padding-bottom: 10px; }
  .site-search input[type=search], .site-search input[type=search]:focus { width: 100%; }
  .sections nav { gap: 20px; }
  .front, .lead-more, .grid, .grid-4, .form-row, .form-row-3, .alerts ol { grid-template-columns: minmax(0, 1fr); }
  .seconds { border-left: 0; padding-left: 0; margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--rule); }
  .standfirst { font-size: 17px; }
  .lead-more article + article { margin-top: 18px; }
  main.wrap { padding-top: 20px; padding-bottom: 44px; }
  .row { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .row-thumb { grid-row: 1; }
  .row-thumb .thumb { margin: 0 0 8px; }
  .row-time { flex-direction: row; gap: 8px; padding: 0; }
  .row h2 { font-size: 20px; }
  .footer-in { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .site-footer nav { align-items: flex-start; }
  .panel { padding: 16px; }
  .big-search { flex-direction: column; }
}
