/* =============================================================
   anarbib.org — feuille de style du site vitrine
   Identité visuelle alignée sur app.anarbib.org :
   - palette : rouge anarchiste #b32025, noir #101010, crème #f1ece3
   - typographie : Bitter (titres) + Fira Sans (corps)
   - alternance fond clair / fond sombre pour les sections
   ============================================================= */

:root {
  /* ─── Palette AnarBib (alignée sur theme-base.css de l'app) ─── */
  --brand-primary:    #b32025;       /* rouge anarchiste sobre */
  --brand-primary-h:  #8c1a1f;       /* hover plus profond */
  --brand-secondary:  #101010;       /* noir presque pur */
  --brand-accent:     #f1ece3;       /* crème chaud */
  --brand-text-dark:  #1a1a1a;       /* texte sur fond clair */
  --brand-text-light: #f5f2ea;       /* texte sur fond sombre (= --brand-text app) */
  --brand-muted-dark: #5a5550;       /* texte secondaire sur clair */
  --brand-muted-light:#d4cec3;       /* texte secondaire sur sombre (= --brand-muted app) */
  --brand-border:     #d8d3cc;       /* bordures sur clair */
  --brand-border-dark:rgba(255, 255, 255, 0.14);

  /* ─── Typographie AnarBib (alignée sur theme-base.css) ─── */
  --font-heading: 'Bitter', Georgia, 'Iowan Old Style', serif;
  --font-body:    'Fira Sans', 'Segoe UI', system-ui, sans-serif;
  --font-accent:  'Fira Sans Condensed', 'Fira Sans', sans-serif;
  --font-mono:    ui-monospace, 'SF Mono', Menlo, Monaco, Consolas, monospace;

  /* ─── Mesures ─── */
  --measure:      65ch;
  --measure-wide: 80ch;
  --gap-s:        0.75rem;
  --gap-m:        1.5rem;
  --gap-l:        3rem;
  --gap-xl:       5rem;
  --radius:       6px;
  --radius-pill:  999px;
}

/* ─── Reset minimal ─── */

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--brand-accent);
  color: var(--brand-text-dark);
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg { max-width: 100%; height: auto; display: block; }

a {
  color: var(--brand-primary);
  text-decoration: underline;
  text-underline-offset: 0.15em;
  text-decoration-thickness: 1px;
  transition: color 0.15s;
}
a:hover { color: var(--brand-primary-h); }

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.005em;
  margin-top: 1.8em;
  margin-bottom: 0.5em;
  color: var(--brand-secondary);
}
h1 { font-size: clamp(1.9rem, 4.5vw, 2.8rem); font-weight: 800; }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); }
h3 { font-size: 1.25rem; }

p { margin: 0 0 1em; }
ul, ol { margin: 0 0 1em; padding-left: 1.4em; }
li { margin-bottom: 0.35em; }

strong { font-weight: 600; }

blockquote {
  margin: 1.5em 0;
  padding: 0.5em 1.2em;
  border-left: 3px solid var(--brand-primary);
  color: var(--brand-muted-dark);
  font-style: italic;
}

code {
  font-family: var(--font-mono);
  font-size: 0.92em;
  background: rgba(0,0,0,0.06);
  padding: 0.1em 0.35em;
  border-radius: 3px;
}
pre {
  font-family: var(--font-mono);
  background: var(--brand-secondary);
  color: var(--brand-text-light);
  padding: 1.2em 1.4em;
  border-radius: var(--radius);
  overflow-x: auto;
  font-size: 0.88rem;
  line-height: 1.55;
}
pre code { background: transparent; padding: 0; color: inherit; }

/* ─── Layout principal ─── */

.container {
  max-width: var(--measure);
  margin: 0 auto;
  padding: 0 1.5rem;
}
.container-wide {
  max-width: var(--measure-wide);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ─── Header ─── */

.site-header {
  border-bottom: 1px solid var(--brand-border);
  background: rgba(241, 236, 227, 0.95);
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(8px);
}
.site-header-inner {
  max-width: var(--measure-wide);
  margin: 0 auto;
  padding: 0.85rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.site-logo {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.3rem;
  color: var(--brand-secondary);
  text-decoration: none;
  letter-spacing: -0.01em;
}
.site-logo span { color: var(--brand-primary); }

.site-nav {
  display: flex;
  gap: 1.4rem;
  flex-wrap: wrap;
  align-items: center;
}
.site-nav a {
  color: var(--brand-text-dark);
  text-decoration: none;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 500;
}
.site-nav a:hover { color: var(--brand-primary); }
.site-nav a.active {
  color: var(--brand-primary);
  border-bottom: 2px solid var(--brand-primary);
  padding-bottom: 2px;
}

.lang-switcher {
  font-family: var(--font-accent);
  font-size: 0.85rem;
  font-weight: 600;
  display: inline-flex;
  gap: 0.5em;
  color: var(--brand-muted-dark);
  letter-spacing: 0.04em;
}
.lang-switcher a { color: var(--brand-muted-dark); text-decoration: none; }
.lang-switcher a.active { color: var(--brand-primary); }

/* ─── Sections du manifeste (alternance fond clair / fond sombre) ─── */

.manifesto-section {
  padding: var(--gap-xl) 0;
  border-bottom: 1px solid var(--brand-border);
}
.manifesto-section.alt {
  background: var(--brand-secondary);
  color: var(--brand-text-light);
  border-bottom-color: var(--brand-border-dark);
}
.manifesto-section.alt h1,
.manifesto-section.alt h2,
.manifesto-section.alt h3 { color: var(--brand-text-light); }
.manifesto-section.alt a { color: #ff8a90; }
.manifesto-section.alt a:hover { color: #ffb0b3; }
.manifesto-section.alt blockquote { color: var(--brand-muted-light); border-color: var(--brand-primary); }
.manifesto-section.alt strong { color: #fff; }

.eyebrow {
  font-family: var(--font-accent);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brand-primary);
  margin-bottom: 0.4rem;
}
.manifesto-section.alt .eyebrow { color: #ff8a90; }

.lead {
  font-size: 1.3rem;
  line-height: 1.5;
  margin-bottom: 1.5em;
  font-family: var(--font-body);
  font-weight: 300;
}

/* ─── CTA ─── */

.cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin: 2em 0 0;
}
.cta {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1rem;
  padding: 0.75em 1.5em;
  border-radius: var(--radius);
  text-decoration: none;
  border: 1px solid transparent;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}
.cta-primary {
  background: var(--brand-primary);
  color: #fff;
}
.cta-primary:hover { background: var(--brand-primary-h); color: #fff; }
.cta-secondary {
  background: transparent;
  color: var(--brand-text-dark);
  border-color: var(--brand-text-dark);
}
.cta-secondary:hover { background: var(--brand-text-dark); color: var(--brand-accent); }
.manifesto-section.alt .cta-secondary {
  color: var(--brand-text-light);
  border-color: var(--brand-text-light);
}
.manifesto-section.alt .cta-secondary:hover {
  background: var(--brand-text-light);
  color: var(--brand-secondary);
}

/* ─── Doors (les trois portes d'entrée) ─── */

.doors {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: var(--gap-m);
  margin: 2em 0 0;
}
.door {
  border: 1px solid var(--brand-border);
  border-radius: var(--radius);
  padding: 1.6em;
  background: rgba(255,255,255,0.5);
  color: var(--brand-text-dark);
  text-decoration: none;
  display: flex;
  flex-direction: column;
  gap: 0.5em;
  transition: border-color 0.15s, transform 0.15s, box-shadow 0.15s;
}
.door:hover {
  border-color: var(--brand-primary);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(179, 32, 37, 0.08);
}
.door h3 {
  margin: 0;
  font-size: 1.2rem;
  color: var(--brand-primary);
}
.door p {
  margin: 0;
  color: var(--brand-muted-dark);
  font-size: 0.95rem;
}
.manifesto-section.alt .door {
  background: rgba(255,255,255,0.04);
  border-color: var(--brand-border-dark);
  color: var(--brand-text-light);
}
.manifesto-section.alt .door:hover {
  border-color: #ff8a90;
  box-shadow: 0 6px 18px rgba(179, 32, 37, 0.25);
}
.manifesto-section.alt .door h3 { color: #ff8a90; }
.manifesto-section.alt .door p { color: var(--brand-muted-light); }

/* ─── Listes de valeurs (refus / défense) ─── */

.values-list {
  list-style: none;
  padding: 0;
  margin: 1.5em 0;
}
.values-list li {
  padding-left: 1.5em;
  position: relative;
  margin-bottom: 0.8em;
}
.values-list li::before {
  content: "—";
  position: absolute;
  left: 0;
  color: var(--brand-primary);
  font-weight: 700;
}
.manifesto-section.alt .values-list li::before { color: #ff8a90; }

/* ─── Articles de contenu (pages internes) ─── */

article.page {
  padding: var(--gap-l) 0 var(--gap-xl);
}
article.page header {
  margin-bottom: var(--gap-l);
  padding-bottom: var(--gap-m);
  border-bottom: 1px solid var(--brand-border);
}
article.page header .eyebrow { margin-bottom: 0.3rem; }
article.page header h1 { margin-top: 0; }
article.page header .subtitle {
  font-size: 1.15rem;
  color: var(--brand-muted-dark);
  font-style: italic;
  font-family: var(--font-body);
  font-weight: 300;
  margin: 0.4em 0 0;
}

article.page section {
  margin: var(--gap-l) 0;
}
article.page section + section {
  border-top: 1px solid var(--brand-border);
  padding-top: var(--gap-l);
}

/* ─── Modèle de message (page Adhérer) ─── */

.template-block {
  position: relative;
  margin: 1.5em 0;
}
.template-block pre {
  white-space: pre-wrap;
  word-break: break-word;
  padding-top: 3em;
}
.copy-button {
  position: absolute;
  top: 0.7em;
  right: 0.7em;
  background: rgba(241, 236, 227, 0.95);
  color: var(--brand-secondary);
  border: 1px solid var(--brand-border);
  border-radius: var(--radius);
  font-family: var(--font-accent);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.45em 0.9em;
  cursor: pointer;
  letter-spacing: 0.02em;
}
.copy-button:hover {
  background: var(--brand-primary);
  color: #fff;
  border-color: var(--brand-primary);
}
.copy-button.copied {
  background: #2d6a3e;
  color: #fff;
  border-color: #2d6a3e;
}

/* ─── Footer ─── */

.site-footer {
  background: var(--brand-secondary);
  color: var(--brand-text-light);
  padding: var(--gap-l) 0 var(--gap-m);
  margin-top: var(--gap-l);
  font-size: 0.93rem;
}
.site-footer a {
  color: var(--brand-text-light);
  text-decoration: underline;
  text-decoration-color: rgba(255,255,255,0.35);
}
.site-footer a:hover {
  color: #fff;
  text-decoration-color: #fff;
}
.footer-grid {
  max-width: var(--measure-wide);
  margin: 0 auto;
  padding: 0 1.5rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: var(--gap-m);
}
.footer-grid h4 {
  font-family: var(--font-accent);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin: 0 0 0.7em;
  color: var(--brand-text-light);
}
.footer-grid ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.footer-grid li { margin-bottom: 0.45em; }
.footer-bottom {
  max-width: var(--measure-wide);
  margin: var(--gap-m) auto 0;
  padding: 1.2rem 1.5rem 0;
  border-top: 1px solid var(--brand-border-dark);
  font-size: 0.85rem;
  color: var(--brand-muted-light);
  text-align: center;
}

/* ─── Utilitaires ─── */

.hidden { display: none !important; }
.text-muted { color: var(--brand-muted-dark); }
.small { font-size: 0.9rem; }

/* ─── Responsive ─── */

@media (max-width: 600px) {
  body { font-size: 1rem; }
  :root { --gap-xl: 3rem; --gap-l: 2rem; }
  .site-nav { gap: 1rem; }
  .site-nav a { font-size: 0.9rem; }
  .lead { font-size: 1.15rem; }
}

/* ─── Accessibilité ─── */

:focus-visible {
  outline: 2px solid var(--brand-primary);
  outline-offset: 2px;
  border-radius: 2px;
}
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}
/* =============================================================
   LOT 3 — Additions CCLA / 8 langues
   À ajouter à la fin de css/style.css (avant la dernière accolade
   de @media prefers-reduced-motion si elle existe — ou tout en bas).
   ============================================================= */

/* ─── Largeur header pour 8 langues dans le switcher ─── */

.site-header-inner {
  max-width: 150ch;  /* élargi de 80ch à 150ch pour accueillir les 8 langues */
}

/* ─── Grille .doors adaptée à 4 cards ─── */
/* Sur grand écran, on force 2 colonnes pour que la grille reste lisible
   avec 4 cards (au lieu de 4 colonnes très étroites) */

.doors {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  align-items: stretch;
}

@media (min-width: 900px) {
  .doors {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ─── Card CCLA — la 4ème porte, distincte ─── */

.door-foundation {
  border: 2px solid var(--brand-primary);
  background: rgba(255, 255, 255, 0.7);
  padding: 1.8em 1.6em;  /* léger surdimensionnement vertical */
  position: relative;
}

.door-foundation:hover {
  border-color: var(--brand-primary-h);
  box-shadow: 0 8px 22px rgba(179, 32, 37, 0.15);
}

.door-foundation-logo {
  width: 64px;
  height: 64px;
  object-fit: contain;
  margin-bottom: 0.4em;
  align-self: flex-start;
}

/* Variante sur fond sombre (au cas où la section .doors serait .alt) */
.manifesto-section.alt .door-foundation {
  background: rgba(255, 255, 255, 0.06);
  border-color: var(--brand-primary);
}
.manifesto-section.alt .door-foundation:hover {
  border-color: #ff8a90;
  box-shadow: 0 8px 22px rgba(179, 32, 37, 0.30);
}

/* ─── Page dédiée — Le collectif (CCLA) ─── */

.page-collective {
  /* hérite de article.page, on ajoute juste le header dédié */
}

.collective-header {
  display: flex;
  align-items: center;
  gap: var(--gap-l);
  margin-bottom: var(--gap-l);
  padding-bottom: var(--gap-m);
  border-bottom: 1px solid var(--brand-border);
  flex-wrap: nowrap;
}

.collective-header-logo {
  flex-shrink: 0;
  flex-grow: 0;
  flex-basis: auto;
  width: 220px;
  height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.collective-header-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.collective-header-text {
  flex-shrink: 1;
  flex-grow: 0;
  flex-basis: 50ch;
  min-width: 0;
  max-width: 50ch;
}

.collective-header-text .eyebrow {
  margin-bottom: 0.3rem;
}

.collective-header-text h1 {
  margin-top: 0;
  margin-bottom: 0.3em;
}

.collective-header-text .subtitle {
  font-size: 1.15rem;
  color: var(--brand-muted-dark);
  font-style: italic;
  font-family: var(--font-body);
  font-weight: 300;
  margin: 0.4em 0 0;
  line-height: 1.5;
}

/* ─── Responsive : pages collectif en stack vertical sur mobile ─── */

@media (max-width: 600px) {
  .collective-header {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: var(--gap-s);
  }
  .collective-header-logo {
    width: 180px;
    height: 180px;
  }
  .collective-header-text .subtitle {
    text-align: left;
  }
  /* Sur mobile, le card CCLA passe en pleine largeur naturellement
     via la grille auto-fit. Pas besoin d'override. */
}

/* ─── Taille du logo AnarBib dans le header ─── */

.site-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.site-logo-img {
  width: 72px;
  height: 72px;
  object-fit: contain;
  display: inline-block;
  vertical-align: middle;
}

.site-logo-text {
  display: inline-block;
  vertical-align: middle;
  line-height: 1;
}

/* ─── Sommaire de section (nav en haut des pages de section) ─── */

article.page .section-toc {
  margin: 2em 0;
  padding: 1.3em 1.6em;
  background: rgba(255, 255, 255, 0.45);
  border: 1px solid var(--brand-border);
  border-left: 4px solid var(--brand-primary);
  border-radius: var(--radius);
  font-size: 0.97rem;
}

article.page .section-toc .section-toc-intro {
  margin: 0 0 0.5em;
  font-family: var(--font-accent);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brand-muted-dark);
}

article.page .section-toc ul {
  margin: 0;
  padding-left: 1.2em;
  list-style: none;
}

article.page .section-toc li {
  margin-bottom: 0.35em;
  position: relative;
  padding-left: 0.2em;
}

article.page .section-toc li::before {
  content: "›";
  position: absolute;
  left: -1em;
  color: var(--brand-primary);
  font-weight: 700;
}

article.page .section-toc li a.active {
  font-weight: 600;
  text-decoration: none;
  color: var(--brand-secondary);
}

article.page .section-toc li a.active::after {
  content: " (vous êtes ici)";
  font-style: italic;
  font-weight: 400;
  color: var(--brand-muted-dark);
  font-size: 0.9em;
}

/* ─── Callout (encart de mise en valeur) ─── */

article.page .callout {
  margin: 2.5em 0;
  padding: 1.8em 2em;
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid var(--brand-border);
  border-radius: var(--radius);
  position: relative;
}

article.page .callout h2 {
  margin-top: 0;
  margin-bottom: 0.6em;
  font-size: 1.4rem;
  color: var(--brand-primary);
}

article.page .callout p {
  margin-bottom: 0.9em;
}

article.page .callout p:last-child {
  margin-bottom: 0;
}

/* Variante "primary" : trait coloré gauche, fond légèrement teinté */

article.page .callout-primary {
  border-left: 4px solid var(--brand-primary);
  background: linear-gradient(
    to right,
    rgba(179, 32, 37, 0.04) 0%,
    rgba(255, 255, 255, 0.55) 30%
  );
}

article.page .callout-primary::before {
  content: "";
  position: absolute;
  top: 1.4em;
  right: 1.6em;
  width: 32px;
  height: 32px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23b32025' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpath d='M12 16v-4M12 8h.01'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-size: contain;
  opacity: 0.6;
  pointer-events: none;
}

/* Variante adaptée pour fond sombre (cohérence avec manifesto-section.alt) */

.manifesto-section.alt article.page .callout,
article.page .manifesto-section.alt .callout {
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--brand-border-dark);
  color: var(--brand-text-light);
}

.manifesto-section.alt article.page .callout-primary,
article.page .manifesto-section.alt .callout-primary {
  border-left-color: #ff8a90;
  background: linear-gradient(
    to right,
    rgba(255, 138, 144, 0.08) 0%,
    rgba(255, 255, 255, 0.04) 30%
  );
}

.manifesto-section.alt article.page .callout h2,
article.page .manifesto-section.alt .callout h2 {
  color: #ff8a90;
}

/* Responsive : sur mobile, on relâche le padding et on cache l'icône */

@media (max-width: 640px) {
  article.page .callout {
    padding: 1.4em 1.3em;
  }
  article.page .callout-primary::before {
    display: none;
  }
  article.page .section-toc {
    padding: 1.1em 1.3em;
  }
  article.page .section-toc li a.active::after {
    content: " (ici)";
  }
}


/* =============================================================
   Galerie des bibliothèques du réseau — page /<lang>/explorar/
   Chantier #K2. Réutilise les variables --brand-* du site.
   ============================================================= */

.lib-count {
  font-family: var(--font-accent);
  color: var(--brand-muted-dark);
  margin: 0 0 var(--gap-m);
}

.lib-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: var(--gap-m);
}

/* ---- Carte ---- */
.lib-card {
  background: #fff;
  border: 1px solid var(--brand-border);
  border-radius: var(--radius);
  padding: 1.4rem 1.4rem 1.2rem;
  display: flex;
  flex-direction: column;
  animation: lib-rise 0.5s both;
}
@keyframes lib-rise {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}

.lib-card__top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.8rem;
  margin-bottom: 0.35rem;
}

.lib-card__name {
  font-family: var(--font-heading);
  font-size: 1.18rem;
  line-height: 1.25;
  margin: 0;
  color: var(--brand-text-dark);
}

/* ---- Badge statut ---- */
.lib-badge {
  flex-shrink: 0;
  font-family: var(--font-accent);
  font-size: 0.66rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.28rem 0.5rem;
  border-radius: 3px;
  white-space: nowrap;
}
.lib-badge--ok  { background: #dde9dd; color: #2f6b2f; }
.lib-badge--wip { background: #ece3cf; color: #8a6d2a; }

/* ---- Localisation (pointe vers l'OPAC) ---- */
.lib-loc {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-family: var(--font-accent);
  font-size: 0.88rem;
  color: var(--brand-primary);
  text-decoration: none;
  margin-bottom: 0.7rem;
  width: fit-content;
}
.lib-loc:hover { text-decoration: underline; }
.lib-loc--off { color: var(--brand-muted-dark); }
.lib-loc svg { width: 0.85em; height: 0.85em; }

/* Quand la mention « territoire occupé » suit la localisation,
   les deux s'empilent : on neutralise la marge basse du lien. */
.lib-loc:has(+ .lib-occupied) { margin-bottom: 0.2rem; }

/* ---- Mention politique : territoire occupé par l'État ---- */
.lib-occupied {
  display: block;
  font-family: var(--font-accent);
  font-size: 0.8rem;
  letter-spacing: 0.02em;
  color: var(--brand-muted-dark);
  margin-bottom: 0.7rem;
  width: fit-content;
}

/* ---- Affiliation ---- */
.lib-affiliation {
  font-style: italic;
  color: var(--brand-muted-dark);
  font-size: 0.94rem;
  margin: 0 0 0.9rem;
}

/* ---- Bloc volumétrie ---- */
.lib-records {
  background: var(--brand-accent);
  border-radius: var(--radius);
  text-align: center;
  padding: 0.7rem;
  margin-bottom: 1rem;
  font-family: var(--font-accent);
}
.lib-records__n {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--brand-text-dark);
}
.lib-records__lbl {
  font-size: 0.8rem;
  color: var(--brand-muted-dark);
}

/* ---- Boutons d'action ---- */
.lib-actions {
  display: flex;
  gap: 0.55rem;
  margin-top: auto;
}
.lib-btn {
  flex: 1;
  font-family: var(--font-body);
  font-size: 0.84rem;
  padding: 0.55rem 0.4rem;
  border-radius: var(--radius);
  text-align: center;
  text-decoration: none;
  border: 1px solid transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}
.lib-btn svg { width: 0.9em; height: 0.9em; }
.lib-btn--primary {
  background: var(--brand-primary);
  color: #fff;
}
.lib-btn--primary:hover { background: var(--brand-primary-h); color: #fff; }
.lib-btn--ghost {
  background: transparent;
  color: var(--brand-text-dark);
  border-color: var(--brand-border);
}
.lib-btn--ghost:hover { border-color: var(--brand-text-dark); }

/* ---- États (chargement / vide / erreur) ---- */
.lib-state {
  padding: 2.5rem 1rem;
  color: var(--brand-muted-dark);
}
.lib-state__big {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  color: var(--brand-text-dark);
  margin: 0 0 0.5rem;
}

@media (max-width: 640px) {
  .lib-grid { grid-template-columns: 1fr; }
}
