/* Rapport de population v2 (17/11/2026) — complète css-population-report.css */

.pop-page { padding-bottom: 60px; }
.pop-page a { color: inherit; }

.pop-crumbs { margin-top: 70px; margin-bottom: 18px; font-size: 14px; color: #777; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.pop-crumbs a { color: #A3A3A3; transition-duration: .2s; }
.pop-crumbs a:hover { color: #FAFAFA; }
.pop-crumbs span:last-child { color: #FAFAFA; }
.pop-crumb-sep { color: #515151; }

.pop-h1 { font-size: 30px; font-weight: 700; color: #FAFAFA; margin: 0 0 10px; line-height: 1.2; }
.pop-h1-sm { font-size: 22px; margin-top: 30px; }
.pop-h2 { font-size: 22px; font-weight: 601; color: #FAFAFA; margin: 55px 0 18px; padding-bottom: 12px; border-bottom: 2px solid #3a3a3a; }
.pop-h3 { font-size: 13px; font-weight: 601; color: #A3A3A3; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 16px; }
.pop-sub { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; color: #A3A3A3; font-size: 14px; margin-bottom: 26px; }
.pop-sub .m_game { margin-right: 4px; }

.pop-panel { border: 3px solid #919191; border-radius: .75rem; background: #181818; padding: 22px 24px; margin: 0 auto 10px; max-width: 900px; box-sizing: border-box; }
.pop-panel-tight { margin-top: 20px; }

/* Recherche */
.pop-search-label { display: block; color: #FAFAFA; font-weight: 601; font-size: 17px; margin-bottom: 12px; }
.pop-search-row { display: flex; gap: 10px; align-items: stretch; }
.pop-search-row .search-input-- { margin: 0; height: 44px; font-size: 15px; }
.pop-search-row #pop-q { flex: 3; }
.pop-search-row .pop-search-num { flex: 1.2; }
.pop-search-btn { width: auto; min-width: 130px; height: 44px; }
.pop-search-hint { margin-top: 10px; color: #777; font-size: 13px; }

/* Chiffres clés */
.pop-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; max-width: 900px; margin: 28px auto 8px; }
.pop-stats > div { background: #1E1E1E; border: 2px solid #2c2c2c; border-radius: 10px; padding: 16px 12px; text-align: center; }
.pop-stats strong { display: block; color: #F6B83E; font-size: 28px; font-weight: 700; line-height: 1.1; }
.pop-stats span { display: block; color: #A3A3A3; font-size: 13px; margin-top: 6px; }
.pop-stats-sm { margin: 10px 0 0; max-width: none; }
.pop-stats-sm strong { font-size: 22px; }
.pop-live { text-align: center; color: #666; font-size: 12px; letter-spacing: .5px; }

/* Jeux */
.pop-games { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 12px; }
.pop-game { display: flex; flex-direction: column; gap: 6px; background: #1E1E1E; border: 2px solid #3a3a3a; border-radius: 10px; padding: 16px; transition-duration: .2s; }
.pop-game:hover { border-color: #A3A3A3; background: #232323; }
.pop-game-code { align-self: flex-start; padding: 4px 7px; background: #121212; border-radius: 5px; color: #A3A3A3; font-size: 12px; letter-spacing: 1px; }
.pop-game-name { font-size: 19px; font-weight: 601; color: #FAFAFA; }
.pop-game-meta { font-size: 13px; color: #A3A3A3; }

/* Liste d'extensions (hub) */
.pop-setlist { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 16px; }
.pop-setrow { display: grid; grid-template-columns: auto 1fr auto auto; gap: 12px; align-items: center; padding: 12px 14px; background: #1E1E1E; border-radius: 8px; border: 2px solid transparent; transition-duration: .2s; }
.pop-setrow:hover { border-color: #3a3a3a; }
.pop-setrow-name { color: #FAFAFA; font-weight: 501; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pop-setrow-year { color: #777; font-size: 13px; }
.pop-setrow-n { color: #F6B83E; font-weight: 601; min-width: 28px; text-align: right; }

/* Tableau des extensions (page jeu) */
.pop-sets { border: 3px solid #919191; border-radius: .75rem; background: #181818; overflow: hidden; }
.pop-sets-head, .pop-sets-row { display: grid; grid-template-columns: 3fr .8fr 1fr 1fr .8fr .8fr; gap: 10px; align-items: center; padding: 12px 16px; }
.pop-sets-head { color: #A3A3A3; font-size: 13px; border-bottom: 2px solid #3a3a3a; }
.pop-sets-head div:not(:first-child), .pop-sets-row div:not(:first-child) { text-align: center; }
.pop-sets-row { border-top: 1px solid #262626; color: #A3A3A3; transition-duration: .15s; }
.pop-sets-row:hover { background: #222; }
.pop-sets-name { color: #FAFAFA; font-weight: 501; }
.pop-strong { color: #F6B83E !important; font-weight: 601; }

/* Répartition des notes d'une extension */
.pop-dist { display: grid; grid-template-columns: repeat(14, minmax(0, 1fr)); gap: 6px; align-items: end; }
.pop-dist-col { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.pop-dist-n { font-size: 13px; color: #FAFAFA; font-weight: 601; }
.pop-dist-bar { height: 90px; width: 100%; max-width: 34px; background: #222; border-radius: 4px; display: flex; align-items: flex-end; overflow: hidden; }
.pop-dist-bar span { display: block; width: 100%; background: linear-gradient(180deg, #F6B83E, #b9862a); border-radius: 4px 4px 0 0; }
.pop-dist-k { font-size: 12px; color: #A3A3A3; white-space: nowrap; }
.pop-legend { color: #777; font-size: 12px; margin-top: 14px; line-height: 1.5; }

/* Résultats */
.pop-results { margin-top: 24px; }
.pop-results-top { display: flex; gap: 14px; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.pop-filter { max-width: 380px; margin: 0 !important; }
.pop-tap { display: none; color: #777; font-size: 12px; }
.pop-count { color: #A3A3A3; font-size: 14px; margin-top: 6px; }
.pop-empty { margin: 40px auto; max-width: 700px; text-align: center; color: #A3A3A3; line-height: 1.6; }
.pop-namecell .text { display: flex; flex-direction: column; align-items: flex-start !important; }
.pop-name { font-weight: 601; color: #FAFAFA; }
.pop-variant { display: block; font-size: 11px; color: #c9a14a; margin-top: 2px; }
.pop-setlink { text-decoration: underline; text-decoration-color: #555; text-underline-offset: 3px; }
.pop-setlink:hover { text-decoration-color: #A3A3A3; }
.search-case .pop-has .text { color: #FAFAFA; font-weight: 601; }
.search-case > div:not(.pop-has):not(.pop-total):nth-child(n+7) .text { color: #555; }
.search-case .pop-total .text { color: #F6B83E; font-weight: 601; }
.search-case { padding: 6px 0; }
.pop-head div { font-size: 13px; }
.pop-m-tags { display: flex; gap: 6px; align-items: center; color: #A3A3A3; font-size: 13px; }
.m_note-container.has .m_note-result { color: #FAFAFA; font-weight: 601; }
.pop-m { display: none; }

/* Certificat trouvé */
.pop-cert { display: flex; align-items: center; justify-content: space-between; gap: 16px; border: 2px solid #F6B83E; border-radius: 10px; background: #1E1E1E; padding: 16px 18px; margin: 16px 0; }
.pop-cert-title { color: #FAFAFA; font-weight: 601; font-size: 17px; }
.pop-cert-note { color: #A3A3A3; font-size: 13px; margin-top: 4px; }
.pop-cert-btn { width: auto; display: inline-flex; align-items: center; justify-content: center; white-space: nowrap; }

@media screen and (max-width: 1050px) {
  .pop-setlist { grid-template-columns: 1fr; }
}

@media screen and (max-width: 750px) {
  .pop-crumbs { margin-top: 40px; }
  .pop-h1 { font-size: 24px; }
  .pop-panel { padding: 16px; }
  .pop-search-row { flex-wrap: wrap; }
  .pop-search-row #pop-q { flex: 1 1 100%; }
  .pop-search-row .pop-search-num { flex: 1 1 55%; }
  .pop-search-btn { flex: 1 1 35%; min-width: 0; }
  .pop-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pop-stats strong { font-size: 22px; }
  .pop-d { display: none; }
  .pop-m { display: block; }
  .pop-tap { display: block; }
  .pop-results-top { flex-direction: column; align-items: stretch; }
  .pop-filter { max-width: none; }
  .pop-dist { gap: 3px; }
  .pop-dist-bar { height: 70px; }
  .pop-dist-k, .pop-dist-n { font-size: 10px; }
  .pop-sets-head { display: none; }
  .pop-sets-row { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px 10px; padding: 14px; }
  .pop-sets-name { grid-column: 1 / -1; font-size: 16px; }
  .pop-sets-row div:not(:first-child) { text-align: left; font-size: 13px; }
  .pop-sets-row div[data-l]::before { content: attr(data-l); display: block; color: #666; font-size: 11px; }
  .pop-cert { flex-direction: column; align-items: stretch; }
}
