@charset "UTF-8";
/* rubrique.css — pages Type, Rareté, État, Métal, Ateliers, Graveurs, Écritures, Tranche, Catalogues
   (complète accueil.css et emetteurs.css) */

/* Menu des valeurs à gauche */
.menu-rub { position: sticky; top: 72px; max-height: calc(100vh - 90px); overflow-y: auto; display: grid; gap: 1px; padding-right: 6px; scrollbar-width: thin; scrollbar-color: var(--cuivre-plein) transparent; }
.menu-rub .titre-menu { font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--texte-doux); padding: 0 8px 8px; }
.menu-rub a { display: flex; align-items: center; gap: 8px; padding: 5px 8px; border-radius: 6px; font-size: 14px; }
.menu-rub a:hover { background: var(--bloc); }
.menu-rub a.actif { background: var(--cuivre); color: var(--creme); font-weight: 600; }
.menu-rub .nom { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.menu-rub .n { font-size: 12px; color: var(--texte-doux); font-variant-numeric: tabular-nums; }
.menu-rub a.actif .n { color: var(--creme); }
.menu-rub .m-code { min-width: 34px; text-align: center; font-size: 11px; font-weight: 800; color: var(--accent); background: var(--marron); border-radius: 4px; padding: 1px 4px; }
.menu-rub .m-pastille { width: 14px; height: 14px; border-radius: 50%; background: var(--m); flex: none; }
.menu-rub .sigle { flex: none; }

/* En-tête */
.tete-rub { display: flex; gap: 24px; align-items: center; }
.tete-rub h1 { margin: 2px 0 4px; font-size: 34px; }
.tete-rub .sous { color: var(--texte-doux); font-size: 16px; }
.tete-rub .sous b { color: var(--texte); }
.tete-rub .intro { margin: 10px 0 0; max-width: 62ch; line-height: 1.5; color: var(--texte); }
.mono-grand { flex: none; width: 110px; height: 110px; border-radius: 50%; display: grid; place-items: center; font-family: Georgia, serif; font-size: 44px; color: var(--accent); background: radial-gradient(circle at 35% 30%, var(--creme), var(--marron)); box-shadow: inset 0 0 0 6px rgba(44,69,49,0.25), 0 6px 18px rgba(0,0,0,0.35); }
.sigle-grand { flex: none; min-width: 110px; padding: 18px 14px; text-align: center; border-radius: 12px; font-size: 40px; font-weight: 900; letter-spacing: .02em; color: var(--creme); background: var(--accent); border: 2px solid var(--marron); }

/* État : l'échelle */
.echelle-etats { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; counter-reset: e; }
.echelle-etats a { display: grid; gap: 2px; justify-items: center; text-align: center; padding: 12px 4px; background: var(--bloc); font-size: 12px; height: 100%; }
.echelle-etats li:first-child a { border-radius: 10px 0 0 10px; }
.echelle-etats li:last-child a { border-radius: 0 10px 10px 0; }
.echelle-etats b { font-size: 18px; color: var(--marron); }
.echelle-etats small { color: var(--texte-doux); font-variant-numeric: tabular-nums; }
.echelle-etats a:hover { background: var(--bloc-fort); }
.echelle-etats a.actif { background: var(--cuivre-plein); color: var(--creme); }
.echelle-etats a.actif b, .echelle-etats a.actif small { color: var(--creme); }
.echelle-etats a.vide { opacity: .45; pointer-events: none; }

/* Type : chronique */
.chronique { list-style: none; margin: 0; padding: 0; display: grid; }
.chronique li { display: grid; grid-template-columns: 70px 64px minmax(0, 1fr); gap: 16px; align-items: center; padding: 12px 0; border-bottom: 1px solid rgba(255,255,255,0.07); }
.chronique li:last-child { border-bottom: 0; }
.chronique .an { font-family: Georgia, serif; font-size: 24px; color: var(--marron); text-align: right; }
.chronique img { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; box-shadow: 0 3px 10px rgba(0,0,0,0.35); }
.chronique .evt { display: grid; gap: 2px; min-width: 0; }
.chronique .evt em { font-family: Georgia, serif; font-size: 17px; color: var(--creme); }
.chronique .evt a { font-size: 14px; color: var(--texte-doux); }
.chronique .evt a:hover { color: var(--texte); }
.chronique .evt img.dr { width: 18px; height: auto; box-shadow: none; border-radius: 2px; vertical-align: -2px; margin-right: 6px; }

/* Métal : barres d'alliage */
.alliages { display: grid; gap: 10px; }
.alliage { display: grid; grid-template-columns: minmax(0, 1fr) 80px; gap: 14px; align-items: center; }
.alliage .compo { display: flex; height: 30px; border-radius: 6px; overflow: hidden; gap: 2px; }
.alliage .compo span { display: grid; place-items: center; font-size: 12px; font-weight: 700; color: #2a2d2a; white-space: nowrap; overflow: hidden; }
.alliage b { font-size: 13px; font-weight: 400; color: var(--texte-doux); text-align: right; }

/* Ateliers : grandes lettres */
.lettres { display: flex; flex-wrap: wrap; gap: 18px; }
.lettres div { display: grid; justify-items: center; gap: 6px; }
.lettre-grande { width: 72px; height: 72px; border-radius: 50%; display: grid; place-items: center; font-family: Georgia, serif; font-weight: 700; font-size: 34px; color: var(--accent); background: var(--marron); box-shadow: inset 0 0 0 4px rgba(44,69,49,0.3); }
.lettres small { font-size: 12px; color: var(--texte-doux); }

/* Graveurs : l'œuvre en bande */
.oeuvre { display: flex; gap: 14px; overflow-x: auto; padding-bottom: 8px; scrollbar-width: thin; scrollbar-color: var(--cuivre-plein) transparent; }
.oeuvre a { flex: none; display: grid; justify-items: center; gap: 2px; width: 104px; padding: 6px; border-radius: 8px; }
.oeuvre a:hover { background: var(--bloc); }
.oeuvre img { width: 96px; height: 96px; border-radius: 50%; object-fit: cover; box-shadow: 0 3px 10px rgba(0,0,0,0.35); }
.oeuvre .an { font-family: Georgia, serif; font-size: 18px; color: var(--marron); }
.oeuvre small { font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--texte-doux); }

/* Écritures : citations */
.citations { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; }
.citations figure { margin: 0; padding: 16px 18px; border-left: 3px solid var(--marron); background: var(--bloc); border-radius: 0 var(--rayon) var(--rayon) 0; display: grid; gap: 10px; align-content: space-between; }
.citations blockquote { margin: 0; font-family: Georgia, serif; font-style: italic; font-size: 16px; line-height: 1.45; color: var(--creme); overflow-wrap: anywhere; }
.citations blockquote::before { content: "« "; color: var(--marron); }
.citations blockquote::after { content: " »"; color: var(--marron); }
.citations figcaption { font-size: 13px; }
.citations figcaption a { color: var(--texte-doux); }
.citations figcaption a:hover { color: var(--texte); }

/* Tranche : vues de profil */
.profils { display: grid; gap: 10px; }
.profils a { display: flex; align-items: center; gap: 14px; }
.profils i { display: block; max-width: 70%; border-radius: 2px; background: linear-gradient(to bottom, rgba(255,255,255,0.35), var(--m) 35%, var(--m) 65%, rgba(0,0,0,0.35)); box-shadow: 0 2px 6px rgba(0,0,0,0.35); }
.profils span { font-size: 13px; color: var(--texte-doux); font-variant-numeric: tabular-nums; white-space: nowrap; }
.profils a:hover span { color: var(--creme); }

/* Émetteurs : pastilles drapeau */
.pastilles { display: flex; flex-wrap: wrap; gap: 8px; }
.pastilles a { display: inline-flex; align-items: center; gap: 8px; padding: 4px 12px 4px 4px; border-radius: 20px; background: var(--bloc); font-size: 14px; }
.pastilles a:hover { background: var(--bloc-fort); }
.pastilles img { width: 26px; height: 26px; border-radius: 50%; object-fit: cover; }
.pastilles b { font-weight: 700; color: var(--marron); font-variant-numeric: tabular-nums; }

/* Métaux : anneau */
.anneau { display: grid; grid-template-columns: 170px 1fr; gap: 24px; align-items: center; }
.anneau svg { width: 170px; height: 170px; }
.anneau ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.anneau li { display: flex; align-items: center; gap: 10px; font-size: 15px; }
.anneau li i { width: 14px; height: 14px; border-radius: 50%; background: var(--m); }
.anneau li b { margin-left: auto; color: var(--texte-doux); font-weight: 400; font-variant-numeric: tabular-nums; }
.nuage span { color: var(--texte); line-height: 1.3; }
.nuage span b { font-size: 12px; font-weight: 400; color: var(--texte-doux); margin-left: 3px; }

/* Catalogues : table de concordance */
.concordance { width: 100%; border-collapse: collapse; font-size: 14px; }
.concordance th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--texte-doux); font-weight: 600; padding: 6px 10px; border-bottom: 1px solid var(--cuivre); }
.concordance td { padding: 6px 10px; border-bottom: 1px solid rgba(255,255,255,0.07); vertical-align: middle; }
.concordance td:first-child { white-space: nowrap; font-variant-numeric: tabular-nums; font-weight: 600; }
.concordance td:last-child { color: var(--marron); font-variant-numeric: tabular-nums; }
.concordance a { display: flex; align-items: center; gap: 10px; }
.concordance a:hover { color: var(--creme); }
.concordance img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; flex: none; }
.concordance tbody tr:hover { background: var(--bloc); }

#pieces { scroll-margin-top: 70px; }

@media (max-width: 900px) {
  .menu-rub { position: static; max-height: 220px; }
  .anneau { grid-template-columns: 1fr; justify-items: center; }
  .echelle-etats { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .echelle-etats a { border-radius: 8px !important; }
}
@media (max-width: 520px) {
  .tete-rub { flex-direction: column; align-items: flex-start; }
  .chronique li { grid-template-columns: 48px minmax(0, 1fr); }
  .chronique li > img { display: none; }
  .concordance td:last-child, .concordance th:last-child { display: none; }
}
.vignettes a { align-content: start; }
.menu-rub .sigle, .concordance .sigle { font: 600 11px ui-monospace, Menlo, Consolas, monospace; color: var(--accent); background: var(--marron); border-radius: 4px; padding: 1px 6px; }
.menu-rub a.actif .sigle { background: var(--creme); }
.sigle-grand { font-family: ui-monospace, Menlo, Consolas, monospace; overflow-wrap: anywhere; }
