/* ───────────────────────── Ma bibliothèque — thème « bibliothèque vintage » ─────────────────────────
   Aucune règle inline (CSP stricte) : tout le style est ici. Polices auto-hébergées (OFL). */

@font-face { font-family: "Playfair Display"; font-weight: 700; font-style: normal; font-display: swap; src: url("/fonts/playfair-display-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Playfair Display"; font-weight: 400; font-style: normal; font-display: swap; src: url("/fonts/playfair-display-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Playfair Display"; font-weight: 400; font-style: italic; font-display: swap; src: url("/fonts/playfair-display-latin-400-italic.woff2") format("woff2"); }
@font-face { font-family: "Crimson Text"; font-weight: 400; font-style: normal; font-display: swap; src: url("/fonts/crimson-text-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Crimson Text"; font-weight: 400; font-style: italic; font-display: swap; src: url("/fonts/crimson-text-latin-400-italic.woff2") format("woff2"); }
@font-face { font-family: "Crimson Text"; font-weight: 600; font-style: normal; font-display: swap; src: url("/fonts/crimson-text-latin-600-normal.woff2") format("woff2"); }

:root {
  --wood-dark: #1e120b; --wood: #2b1a10; --wood-mid: #4a2e1a; --wood-light: #7a5232;
  --bordeaux: #7a2433; --bordeaux-dark: #5c1a26; --gold: #d4af6a; --gold-dim: #b08d45;
  --paper: #f0e4c8; --paper-dark: #dfcfa6; --ink: #2a1c12; --muted: #c9b48a; --ink-soft: #5b4631;
  --ok: #bfe3b0; --err: #ffc9c0; --warn: #ffe2a3;
  --font-title: "Playfair Display", Georgia, "Times New Roman", serif;
  --font-body: "Crimson Text", Georgia, "Times New Roman", serif;
  /* texture « grain de bois » (SVG encodé, autorisé par img-src data:) */
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.012 .6' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .18  0 0 0 0 .1  0 0 0 0 .05  0 0 0 .55 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  --paper-tex: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='p'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .4  0 0 0 0 .3  0 0 0 0 .15  0 0 0 .13 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23p)'/%3E%3C/svg%3E");
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100dvh; color: var(--paper); font: 400 1.125rem/1.5 var(--font-body);
  background: var(--wood-dark) var(--grain); background-attachment: fixed;
  padding: env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left);
}
h1, h2, h3 { font-family: var(--font-title); line-height: 1.2; margin: 0 0 .4em; }
a { color: var(--gold); }
img { max-width: 100%; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 8px; top: -60px; z-index: 100; background: var(--gold); color: var(--ink); padding: 10px 14px; border-radius: 4px; }
.skip:focus { top: 8px; }
[hidden] { display: none !important; }

/* ── En-tête ── */
.site-header { background: linear-gradient(var(--wood-mid), var(--wood)); border-bottom: 3px solid var(--gold-dim); box-shadow: 0 4px 16px rgba(0,0,0,.6); position: sticky; top: 0; z-index: 20; padding-top: env(safe-area-inset-top); }
.header-inner { max-width: 1200px; margin: 0 auto; padding: 6px 12px; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 16px; }
.brand { font: 700 1.4rem var(--font-title); color: var(--gold); text-decoration: none; letter-spacing: .02em; padding: 6px 0; }
.nav { display: flex; flex: 1; flex-wrap: wrap; gap: 2px; }
.nav a, .linkbtn { min-height: 44px; display: inline-flex; align-items: center; padding: 0 12px; color: var(--paper); text-decoration: none; border-radius: 4px; border: 0; background: none; font: inherit; cursor: pointer; }
.nav a:hover, .linkbtn:hover { background: rgba(212,175,106,.15); }
.nav a.nav-add { font-size: 1.5rem; font-weight: 700; line-height: 1; }
.nav a[aria-current="page"] { color: var(--gold); box-shadow: inset 0 -3px 0 var(--gold); }
main { max-width: 1200px; margin: 0 auto; padding: 16px 12px 64px; }
main:focus { outline: none; }
.page-title { color: var(--gold); text-shadow: 0 2px 4px #000; }

/* ── Barre d'outils ── */
.toolbar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin: 0 0 12px; padding: 10px; background: rgba(30,18,11,.82); border: 1px solid var(--gold-dim); border-radius: 6px; }
.toolbar input[type="search"] { flex: 1 1 240px; }
.seg { display: inline-flex; border: 1px solid var(--gold-dim); border-radius: 6px; overflow: hidden; }
.seg button { min-height: 44px; padding: 0 14px; border: 0; background: transparent; color: var(--paper); font: inherit; cursor: pointer; }
.seg button + button { border-left: 1px solid var(--gold-dim); }
.seg button[aria-pressed="true"] { background: var(--gold); color: var(--ink); font-weight: 600; }
.toolbar label.inline { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); }
.status { min-height: 1.6em; color: var(--muted); font-style: italic; margin: 0 0 8px; }

/* ── Champs et boutons ── */
input, select, textarea { font: inherit; color: var(--ink); background: #fbf4e0; border: 1px solid var(--gold-dim); border-radius: 5px; padding: 8px 10px; min-height: 44px; width: 100%; }
.toolbar select { width: auto; }
.toolbar #genre { max-width: 13em; }
textarea { min-height: 110px; resize: vertical; }
.btn { min-height: 44px; padding: 0 18px; border-radius: 6px; border: 1px solid var(--gold-dim); font: 600 1rem var(--font-body); cursor: pointer; background: var(--bordeaux); color: var(--paper); display: inline-flex; align-items: center; justify-content: center; gap: 8px; text-decoration: none; }
.btn:hover { background: var(--bordeaux-dark); }
.btn.secondary { background: transparent; color: inherit; }
.btn.secondary:hover { background: rgba(212,175,106,.18); }
.btn.danger { background: #8c1d18; }
.btn[disabled] { opacity: .55; cursor: progress; }
.btn.icon { padding: 0; width: 44px; font-size: 1.3rem; }
.row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }

/* ── Panneaux « papier » ── */
.card { background: var(--paper) var(--paper-tex); color: var(--ink); border: 3px double var(--gold-dim); border-radius: 6px; padding: 18px; box-shadow: 0 6px 18px rgba(0,0,0,.55); }
.card h1, .card h2 { color: var(--bordeaux-dark); }
.card label { display: block; font-weight: 600; margin: 12px 0 4px; }
.card .hint { color: var(--ink-soft); font-size: .95rem; margin: 4px 0 0; font-weight: 400; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
.alert { border-radius: 6px; padding: 12px 14px; margin: 12px 0; border: 1px solid; display: flex; gap: 12px; align-items: flex-start; }
.alert.error { background: #4a1612; color: var(--err); border-color: #a3382e; }
.alert.success { background: #1f3a1c; color: var(--ok); border-color: #4a8040; }
.alert.warn { background: #4a3510; color: var(--warn); border-color: var(--gold-dim); }
.alert strong { display: block; }
.alert .mini { width: 56px; flex: none; }
.badge { display: inline-block; padding: 1px 8px; border-radius: 99px; font-size: .85rem; background: var(--wood-mid); color: var(--gold); border: 1px solid var(--gold-dim); }
.badge.review { background: #6b4a0c; color: #ffe2a3; }

/* ── Couvertures ── */
.cover { display: block; width: 100%; height: 100%; object-fit: contain; background: var(--wood-mid); }
.ph { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; text-align: center; padding: 12px; font: 700 .95rem/1.25 var(--font-title); color: #f6e9c8; overflow: hidden; word-break: break-word; box-shadow: inset 0 0 0 4px rgba(212,175,106,.55), inset 0 0 0 6px rgba(0,0,0,.35); }
.ph0 { background: #6e1f2a; } .ph1 { background: #2f4a37; } .ph2 { background: #3b3156; } .ph3 { background: #7a4a1d; }
.ph4 { background: #1f3b4d; } .ph5 { background: #54351f; } .ph6 { background: #4d2a3f; } .ph7 { background: #3f4a1f; }

/* ── Page 1 : étagères ──
   Les planches sont dessinées par le fond de la grille (une rangée = une hauteur fixe) : aucune mise en page JS. */
.shelves {
  --bw: 168px; --bh: 252px; --bgap: 22px; --plank: 22px; --band: 30px; --rowh: calc(var(--bh) + var(--plank) + var(--band));
  display: grid; grid-template-columns: repeat(auto-fill, var(--bw)); justify-content: center; column-gap: var(--bgap);
  grid-auto-rows: var(--rowh); padding: 0 28px; border: 6px solid #3a2414; border-radius: 4px;
  background-color: #3a2414;
  background-image:
    linear-gradient(to bottom, transparent calc(100% - var(--plank)), #8a6038 calc(100% - var(--plank)), #8a6038 calc(100% - var(--plank) + 3px), #5a3a21 calc(100% - var(--plank) + 3px), #2b1a10 100%),
    linear-gradient(to right, rgba(0,0,0,.55), transparent 5%, transparent 95%, rgba(0,0,0,.55)),
    linear-gradient(to bottom, rgba(0,0,0,.6), rgba(0,0,0,.12) 45%, rgba(0,0,0,.32) calc(100% - var(--plank))),
    var(--grain);
  background-size: 100% var(--rowh), 100% var(--rowh), 100% var(--rowh), 240px 240px;
  background-repeat: repeat-y, repeat-y, repeat-y, repeat;
  box-shadow: inset 0 0 40px rgba(0,0,0,.7), 0 8px 24px rgba(0,0,0,.7);
  min-height: calc(var(--rowh) * 2);
}
.book { align-self: end; margin-bottom: var(--plank); width: var(--bw); height: var(--bh); perspective: 900px; cursor: pointer; position: relative; border-radius: 3px; -webkit-tap-highlight-color: transparent; }
.book:focus-visible { outline-offset: 5px; }
.book-inner { position: relative; width: 100%; height: 100%; transform-style: preserve-3d; transition: transform .6s cubic-bezier(.4, .2, .2, 1); }
.face { position: absolute; inset: 0; backface-visibility: hidden; -webkit-backface-visibility: hidden; border-radius: 2px 6px 6px 2px; overflow: hidden; box-shadow: 5px 5px 12px rgba(0,0,0,.65); }
.face.front { inset: auto 0 0 0; margin-inline: auto; width: min(var(--bw), calc(var(--bh) * var(--r, .6667))); height: auto; aspect-ratio: var(--r, .6667); max-height: var(--bh); }
.front::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(90deg, rgba(0,0,0,.5), rgba(255,255,255,.16) 4%, rgba(0,0,0,0) 11%, rgba(0,0,0,0) 92%, rgba(0,0,0,.25)); }
.back { transform: rotateY(180deg); background: var(--paper) var(--paper-tex); color: var(--ink); border-left: 7px solid var(--bordeaux); padding: 10px 9px 8px 10px; display: flex; flex-direction: column; gap: 3px; font-size: .8rem; line-height: 1.25; text-align: left; }
.back h3 { font-size: .95rem; margin: 0; color: var(--bordeaux-dark); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.back p { margin: 0; }
.b-auth { font-weight: 600; }
.b-meta { color: var(--ink-soft); }
.b-summary { flex: 1; min-height: 0; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 5; -webkit-box-orient: vertical; font-style: italic; }
.b-isbn { font-size: .7rem; color: var(--ink-soft); }
.b-more { color: var(--bordeaux); font-weight: 600; margin-top: auto; }
@media (hover: hover) { .book:hover .book-inner { transform: rotateY(180deg); } }
.book.flipped .book-inner, .book:focus-visible .book-inner { transform: rotateY(180deg); }
.empty { text-align: center; padding: 40px 12px; color: var(--muted); font-style: italic; }
.sentinel { height: 1px; }

@media (max-width: 600px) {
  body { font-size: 1.05rem; }
  .shelves { --bw: 104px; --bh: 156px; --bgap: 10px; --plank: 14px; --band: 30px; padding: 0 8px; border-width: 3px; }
  .back { padding: 6px 5px 5px 7px; font-size: .68rem; border-left-width: 5px; }
  .back h3 { font-size: .74rem; -webkit-line-clamp: 4; }
  .back .b-summary, .back .b-isbn { display: none; }
  .ph { font-size: .72rem; padding: 6px; }
  .grid2 { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .book-inner { transition: none; transform: none !important; transform-style: flat; }
  .face { backface-visibility: visible; -webkit-backface-visibility: visible; transition: opacity .15s; }
  .back { transform: none; opacity: 0; }
  .book:hover .back, .book.flipped .back, .book:focus-visible .back { opacity: 1; }
  .book:hover .front, .book.flipped .front, .book:focus-visible .front { opacity: 0; }
  .book:hover .book-inner, .book.flipped .book-inner { transform: none !important; }
}

/* ── Page 2 : liste ── */
.entries { display: grid; gap: 16px; }
.entry { display: grid; grid-template-columns: 1fr 140px; gap: 18px; background: var(--paper) var(--paper-tex); color: var(--ink); border: 3px double var(--gold-dim); border-radius: 6px; padding: 16px; box-shadow: 0 6px 16px rgba(0,0,0,.5); }
.entry h2 { color: var(--bordeaux-dark); font-size: 1.35rem; }
.entry .meta { margin: 2px 0; }
.entry .meta b { font-weight: 600; }
.entry .summary { margin: 8px 0; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.entry .entry-cover { width: min(140px, calc(210px * var(--r, .6667))); aspect-ratio: var(--r, .6667); box-shadow: 4px 4px 10px rgba(0,0,0,.5); border-radius: 2px 5px 5px 2px; overflow: hidden; align-self: start; justify-self: end; }
.entry .btn { margin-top: 8px; color: var(--bordeaux-dark); }
@media (max-width: 600px) {
  .entry { grid-template-columns: 1fr; }
  .entry .entry-cover { order: -1; justify-self: center; width: min(120px, calc(180px * var(--r, .6667))); }
}

/* ── Fiche détaillée ── */
.detail { width: min(720px, calc(100vw - 20px)); max-height: calc(100dvh - 20px); padding: 0; border: 3px double var(--gold-dim); border-radius: 6px; background: var(--paper) var(--paper-tex); color: var(--ink); overflow: auto; }
.detail::backdrop { background: rgba(10,5,2,.78); }
.detail .close { position: absolute; top: 6px; right: 6px; width: 44px; height: 44px; font-size: 1.8rem; line-height: 1; border: 0; background: transparent; color: var(--bordeaux-dark); cursor: pointer; border-radius: 50%; }
.detail-body { display: grid; grid-template-columns: 220px 1fr; gap: 20px; padding: 22px; }
.detail-cover { width: min(220px, calc(330px * var(--r, .6667))); aspect-ratio: var(--r, .6667); border-radius: 2px 6px 6px 2px; overflow: hidden; box-shadow: 5px 5px 14px rgba(0,0,0,.55); }
.detail h2 { color: var(--bordeaux-dark); padding-right: 36px; }
.detail dl { margin: 0 0 10px; display: grid; grid-template-columns: auto 1fr; gap: 2px 12px; }
.detail dt { font-weight: 600; color: var(--ink-soft); }
.detail dd { margin: 0; }
.detail .summary { white-space: pre-line; margin: 0 0 12px; }
@media (max-width: 600px) { .detail-body { grid-template-columns: 1fr; } .detail-cover { justify-self: center; width: min(160px, calc(240px * var(--r, .6667))); } }

/* ── Formulaires (connexion, ajout, administration) ── */
.narrow { max-width: 460px; margin: 6vh auto 0; }
.stack { max-width: 760px; margin: 0 auto; }
.scan-panel { margin: 12px 0; }
.scan-panel video { width: 100%; max-height: 55dvh; background: #000; border-radius: 6px; object-fit: cover; }
.cover-edit { display: flex; gap: 14px; align-items: flex-start; flex-wrap: wrap; }
.cover-edit .thumb { width: min(100px, calc(150px * var(--r, .6667))); aspect-ratio: var(--r, .6667); border-radius: 2px 5px 5px 2px; overflow: hidden; flex: none; background: var(--paper-dark); box-shadow: 3px 3px 8px rgba(0,0,0,.4); }
.cover-edit > div:last-child { flex: 1 1 220px; }
.checkline { display: flex; gap: 10px; align-items: center; font-weight: 400 !important; }
.checkline input { width: 24px; min-height: 24px; }
.admin-list { display: grid; gap: 8px; }
.admin-row { display: grid; grid-template-columns: 1fr auto; gap: 8px; align-items: center; width: 100%; text-align: left; min-height: 56px; padding: 8px 14px; background: rgba(240,228,200,.08); color: var(--paper); border: 1px solid var(--gold-dim); border-radius: 6px; font: inherit; cursor: pointer; }
.admin-row:hover { background: rgba(240,228,200,.16); }
.admin-row small { display: block; color: var(--muted); }
dialog.formdlg { width: min(720px, calc(100vw - 20px)); max-height: calc(100dvh - 20px); padding: 18px; }
.error-box { text-align: center; padding: 24px 12px; }

.alert .mini { width: min(56px, calc(84px * var(--r, .6667))); flex: none; aspect-ratio: var(--r, .6667); border-radius: 2px; overflow: hidden; }
.alert .mini.big { width: min(96px, calc(144px * var(--r, .6667))); box-shadow: 0 2px 8px rgba(0,0,0,.5); }

/* Fenêtre d'édition (administration) : mêmes libellés que les cartes « papier » */
.formdlg label { display: block; font-weight: 600; margin: 12px 0 4px; }
.formdlg label.checkline { display: flex; font-weight: 400; margin: 10px 0; }
.formdlg h2 { margin-bottom: 8px; }

/* Étagères sur grand écran : un livre de plus par rangée (6 au lieu de 5 dès ~1280 px) */
@media (min-width: 1280px) { body.page-shelves main { max-width: 1264px; } }

/* Barre de recherche/tri intégrée à l'en-tête : une seule barre, sur une seconde ligne */
.site-header .toolbar { flex: 1 0 100%; margin: 0; padding: 4px 0 8px; background: none; border: 0; border-radius: 0; box-shadow: none; border-top: 1px solid rgba(212,175,106,.28); padding-top: 8px; }

/* Grand écran : TOUT sur une seule ligne (titre, navigation, recherche, filtre, tri, déconnexion) */
@media (min-width: 1280px) {
  .site-header .header-inner { max-width: 1264px; flex-wrap: nowrap; gap: 0 8px; padding-block: 4px; }
  .site-header .brand { font-size: 1.2rem; white-space: nowrap; flex: none; padding: 0 4px 0 0; }
  .site-header .nav { flex: none; flex-wrap: nowrap; gap: 0; order: 1; }
  .site-header .nav a, .site-header .linkbtn { padding: 0 9px; white-space: nowrap; }
  .site-header .toolbar { order: 2; flex: 1 1 0; min-width: 0; flex-wrap: nowrap; gap: 8px; border-top: 0; padding: 0; margin-inline: 6px; }
  .site-header .linkbtn { order: 3; flex: none; }
  .site-header .toolbar input[type="search"] { flex: 1 1 120px; min-width: 90px; }
  .site-header .seg button { padding: 0 10px; }
  .site-header .toolbar .lbl { display: none; }
  .site-header .toolbar select { width: 128px; max-width: 128px; padding-inline: 8px 4px; }
  /* barre plus basse : contrôles de 34 px au lieu de 44 px (écran large = souris, pas de contrainte tactile) */
  .site-header .header-inner { padding-block: 3px; }
  .site-header .nav a, .site-header .linkbtn { min-height: 34px; }
  .site-header .toolbar input[type="search"], .site-header .toolbar select, .site-header .toolbar .btn, .site-header .seg button { min-height: 34px; height: 34px; padding-block: 0; font-size: .95rem; }
  .site-header .toolbar input[type="search"] { padding-inline: 10px; }
  .site-header .toolbar .btn.icon { width: 34px; padding: 0; }
  .site-header .brand { padding: 0 4px 0 0; }
}

/* Tampon (logo) : une seule occurrence, à gauche de la bibliothèque, à cheval sur les planches du fond.
   Le fond est « fixed » : le logo l'est aussi (il reste sur ses planches quand la page défile).
   Visible seulement quand la marge gauche est assez large (≥ 1700 px) ; 493 px = joint de planches dans wood-body.webp. */
@media (min-width: 1700px) {
  body::before {
    --logo: min(340px, calc((100vw - 1264px) / 2 - 40px));
    content: ""; position: fixed; z-index: 0; pointer-events: none;
    width: var(--logo); height: var(--logo);
    left: calc((100vw - 1264px) / 4 - var(--logo) / 2);
    top: calc(493px - var(--logo) / 2);
    background: url("/img/logo-tampon.webp") center / contain no-repeat;
    transform: rotate(-5deg);
  }
}

/* Croix d'effacement de la recherche */
.search-box { position: relative; display: block; flex: 1 1 240px; min-width: 0; }
.search-box input[type="search"] { width: 100%; padding-right: 32px; -webkit-appearance: none; appearance: none; }
.search-box input[type="search"]::-webkit-search-cancel-button, .search-box input[type="search"]::-webkit-search-decoration { -webkit-appearance: none; appearance: none; display: none; }
.q-clear { position: absolute; right: 3px; top: 50%; transform: translateY(-50%); width: 28px; height: 28px; padding: 0; border: 0; border-radius: 50%; background: transparent; color: var(--muted); font: inherit; font-size: 1.35rem; line-height: 1; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.q-clear[hidden] { display: none; }
.q-clear:hover, .q-clear:focus-visible { color: var(--gold, #d4af6a); background: rgba(212,175,106,.15); }
@media (max-width:1279px) { .site-header .search-box { flex: 1 1 120px; min-width: 90px; } }
/* Mobile : le genre prend la ligne restante, la recherche a sa propre ligne (pleine largeur) avant le tri */
@media (max-width: 600px) { .site-header .toolbar #genre { flex: 1 1 auto; max-width: none; } .site-header .search-box { flex: 1 1 100%; } }
/* Navigation et Logout : même liseré doré que les boutons Tous / Romans / BD */
.site-header .nav { flex: 0 1 auto; gap: 0; border: 1px solid var(--gold-dim); border-radius: 6px; overflow: hidden; }
.site-header .nav a { border-radius: 0; }
.site-header .nav a + a { border-left: 1px solid var(--gold-dim); }
.site-header .linkbtn { border: 1px solid var(--gold-dim); border-radius: 6px; margin-left: auto; }
/* Étagères : compteur à gauche, titre du site et version à droite */
.status-row { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.status-row .status { flex: 1 1 auto; }
.site-title { margin: 0 0 8px; font: 700 1.2rem var(--font-title); color: var(--gold); white-space: nowrap; text-shadow: 0 -1px 0 rgba(0,0,0,.9), 0 1px 0 rgba(255,220,150,.25); }
.site-title .app-version { font: italic 400 .85rem var(--font-body); color: var(--muted); }
