/*! © 2026 Sébastien Wojcicki. Tous droits réservés : reproduction, modification et fouille de données interdites sans autorisation. */
/* Carnets en v1 (parité, lot P8, PA2 : gabarits sobres) : le corps d'un billet, rendu par le serveur
   (server/carnet-markdown.js) avec les classes de la v2, mis en page dans l'apparence de la v1. Les photos ne sont jamais
   recadrées ; le texte garde sa ligne d'environ 62 signes, les photos « large », les paires, les diptyques et les galeries
   prennent toute la largeur de la page. Chargée par views/layout.eta sur les pages des Carnets (it.carnetCss). */

.billet-v1 { gap: 18px; }
.billet-v1 article { display: grid; gap: 18px; }
.billet-v1 h1 { margin: 0; }
.billet-meta a, .billet-v1 .billet-actions a { color: var(--ink); text-decoration: underline; text-underline-offset: 4px; }
.billet-meta a { display: inline-flex; align-items: center; min-height: 24px; }
.billet-meta, .billet-mention { margin: 0; color: var(--mute); }
.billet-cover { margin: 8px 0 0; }
.billet-cover img { display: block; width: auto; max-width: 100%; height: auto; max-height: 82vh; }
.billet-cover figcaption { margin-top: 8px; color: var(--mute); }
.billet-cover .ttl { font-family: var(--serif); font-style: var(--display-style); font-size: 16px; color: var(--ink); letter-spacing: 0; }

/* Le corps : la colonne de texte, et des photos qui en sortent. */
.billet-corps { max-width: none; }
.billet-corps > p, .billet-corps > ul, .billet-corps > ol, .billet-corps > h2, .billet-corps > h3, .billet-corps > .tableau { max-width: 62ch; }
.billet-corps h2 { margin: 1.8em 0 .5em; font-family: var(--serif); font-weight: 400; font-style: var(--display-style); font-size: clamp(24px, 3vw, 32px); line-height: 1.15; color: var(--ink); scroll-margin-top: 16px; }
.billet-corps h2 .s-n { font-family: var(--mono); font-style: normal; font-size: 12px; color: var(--mute); margin-right: 10px; vertical-align: middle; }
.billet-corps h3 { margin: 1.4em 0 .4em; font-size: 17px; color: var(--ink); }
.billet-corps a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.billet-corps figure { margin: 2em 0; }
.billet-corps figure img { display: block; width: auto; max-width: 100%; height: auto; max-height: 82vh; }
.billet-corps figure.photo { max-width: 62ch; }
.billet-corps figure.f-large, .billet-corps .f-large, .billet-corps .f-ecran { max-width: none; }
.billet-corps figure.photo--cote { max-width: 400px; }
.billet-corps .cartel, .billet-corps .cartel--grand, .billet-corps .cartel--ligne { display: flex; flex-wrap: wrap; gap: 2px 12px; margin-top: 8px; font-family: var(--mono); font-size: 12px; letter-spacing: .04em; color: var(--mute); }
.billet-corps .cartel-t { font-family: var(--serif); font-style: var(--display-style); font-size: 16px; letter-spacing: 0; color: var(--ink); }
.billet-corps .cartel-l { flex-basis: 100%; font-family: var(--sans, inherit); font-size: 14px; letter-spacing: 0; color: var(--prose); }
/* Deux photos côte à côte, à hauteur commune ; au téléphone, l'une sous l'autre. */
.billet-corps .paire, .billet-corps .diptyque-paire { display: flex; flex-wrap: wrap; gap: 16px; align-items: flex-start; }
.billet-corps .paire > figure, .billet-corps .diptyque-paire > figure { flex: 1 1 260px; margin: 0; }
.billet-corps .diptyque-t { margin-bottom: 10px; }
.billet-corps .diptyque-t p { margin: 0; font-family: var(--mono); font-size: 12px; color: var(--mute); }
/* Galerie d'un billet : une grille de vignettes entières. */
.billet-corps .galerie { list-style: none; margin: 2em 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(220px, 100%), 1fr)); gap: 20px; align-items: start; }
.billet-corps .galerie img { width: 100%; }
.billet-corps .galerie .vignette { display: block; }
/* Citation, tableau. */
.billet-corps .citation { max-width: 62ch; padding-left: 18px; border-left: 2px solid var(--ink); }
.billet-corps blockquote { margin: 0; font-family: var(--serif); font-style: var(--display-style); font-size: 20px; line-height: 1.45; color: var(--ink); }
.billet-corps .citation figcaption, .billet-corps .trad { margin-top: 8px; font-size: 14px; color: var(--mute); }
.billet-corps .tableau { overflow-x: auto; }
.billet-corps table { border-collapse: collapse; font-size: 14px; }
.billet-corps th, .billet-corps td { padding: 6px 12px 6px 0; border-bottom: 1px solid var(--rule); text-align: left; vertical-align: top; }
.billet-corps .np { opacity: .55; }

.billet-sign { margin: 1.5em 0 0; font-family: var(--serif); font-style: var(--display-style); font-size: 20px; }
.billet-actions { display: flex; flex-wrap: wrap; gap: 4px 24px; margin: 0; }
.billet-actions a { display: inline-flex; align-items: center; min-height: 44px; }
.billet-reponse { margin-top: 1em; padding-top: 1em; border-top: 1px solid var(--rule); }
.billet-reponse h2 { margin: 0 0 .4em; font-family: var(--serif); font-weight: 400; font-size: 24px; color: var(--ink); }
.billet-voisins li { gap: 8px; }
.billet-voisins li > span { color: var(--mute); }
.carnet-list .eyebrow { margin: 0 0 6px; color: var(--mute); }
.carnet-list li:not(:has(.im)) { grid-template-columns: minmax(0, 1fr); }
.gal-count { margin: 0; color: var(--mute); }
.gal-count a { display: inline-flex; align-items: center; min-height: 44px; color: var(--ink); text-decoration: underline; text-underline-offset: 4px; }
