/* [42-rankings-suburbs] Classements, banlieues et page Travaux */
/* Page Classements : Respect / Puissance, individus ou familles, pagination */
.rk-subtabs { display: flex; gap: 0; margin-bottom: 10px; border-bottom: 1px solid #b9b5a8; }
.rk-subtab {
  flex: 0 0 200px;
  padding: 8px 0;
  font-family: 'Special Elite', 'Courier New', monospace;
  font-size: 18px;
  color: #2a2a28;
  background: transparent;
  border: none;
  cursor: pointer;
}
.rk-subtab.on { background: #fdfaf7; box-shadow: inset 0 -3px 0 var(--deco-bottle); }
.rk-family {
  min-width: 240px;
  padding: 4px 8px;
  font-family: 'Special Elite', 'Courier New', monospace;
  font-size: 15px;
  background: #f0e1cd;
  border: 1px solid #b9b5a8;
}
.rk-scope { display: flex; gap: 22px; margin-top: 12px; }
.rk-scope-btn {
  padding: 2px 4px;
  font-family: 'Special Elite', 'Courier New', monospace;
  font-size: 17px;
  color: #2a2a28;
  background: transparent;
  border: none;
  border-bottom: 3px solid transparent;
  cursor: pointer;
}
.rk-scope-btn.on { border-bottom-color: var(--deco-bottle); }
/* Cadre du registre (713 × 559, dessiné en CSS depuis le 22/11/2026) : tout est positionné en % du cadre */
.ny-paper.folder {
  padding: 0;
  background: #cdbca6;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.ny-paper.folder .ny-content { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.ny-paper.folder .rk-subtabs { margin: 0; flex-shrink: 0; background: #efe7dd; }
.rk-folder {
  position: relative;
  flex: 1;
  min-height: 0;
  aspect-ratio: 713 / 559;
  max-width: 100%;
  margin: 0 auto;
  container-type: inline-size;
  /* feuille de registre : papier ivoire, filet laiton, coins coupés */
  background:
    repeating-linear-gradient(180deg, transparent 0 25px, rgba(120, 140, 170, 0.1) 25px 26px),
    linear-gradient(180deg, #f6f1e4, #e9dfc8);
  border: 1px solid #a8946c;
  outline: 2px double var(--deco-brass);
  outline-offset: -8px;
  box-sizing: border-box;
  color: #2a2a28;
  font-family: 'Special Elite', 'Courier New', monospace;
}
.rk-folder > * { position: absolute; margin: 0; }
/* cadre du tableau : en-tête, dix lignes, ligne du joueur */
.rk-folder::before { content: ''; position: absolute; left: 5.8%; top: 29.8%; width: 90.4%; height: 53%; border: 1px solid #8a7a5c; background: #fbf8ef; box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.2); pointer-events: none; }
.rk-f-title { left: 5%; top: 5%; font-size: 4.4cqw; font-weight: 400; color: #2a2a28; }
.rk-f-filter { left: 5%; top: 14%; }
.rk-f-filter .rk-family { min-width: 0; width: 34cqw; font-size: 2cqw; padding: 0.3cqw 0.8cqw; }
.rk-f-toggle { left: 5.2%; top: 21.8%; width: 20.5%; height: 5.8%; display: flex; align-items: center; justify-content: space-around; }
.rk-f-toggle .rk-scope-btn { font-size: 1.9cqw; padding: 0 0.4cqw; }
.rk-f-card { left: 61.5%; top: 11.5%; width: 34.7%; height: 16.5%; box-sizing: border-box; background: #fbf8ef; border: 1px solid #b9ab8c; box-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2); display: flex; gap: 1.5cqw; align-items: center; justify-content: space-between; padding: 0 1.5cqw; }
.rk-f-card-text { font-size: 1.75cqw; line-height: 1.35; }
.rk-f-portrait { width: 9cqw; height: 9cqw; object-fit: cover; object-position: center top; border: 0.5cqw solid #fdfaf7; box-shadow: 0 0 0 1px #8a8678; background: #1a1612; flex-shrink: 0; }
.rk-f-head, .rk-f-row, .rk-f-own { display: grid; grid-template-columns: var(--cols); align-items: center; padding: 0 1.2cqw; }
.rk-f-head { left: 5.8%; top: 29.8%; width: 90.4%; height: 6.3%; box-sizing: border-box; font-size: 1.9cqw; color: var(--deco-ivory); background: var(--deco-bottle); border-bottom: 2px solid var(--deco-brass); }
.rk-f-rows { left: 5.8%; top: 37%; width: 90.4%; height: 41.7%; display: grid; grid-template-rows: repeat(10, 1fr); background: repeating-linear-gradient(180deg, transparent 0 10%, rgba(185, 139, 78, 0.12) 10% 20%); }
.rk-f-row { font-size: 2cqw; }
.rk-f-row.me { background: rgba(185, 139, 78, 0.38); }
.rk-f-row.empty { color: #9a968a; }
.rk-f-own { left: 5.8%; top: 78.8%; width: 90.4%; height: 4%; font-size: 2cqw; color: var(--deco-ivory); background: var(--deco-charcoal); border-top: 1px solid var(--deco-brass); }
.rk-f-footer { left: 5.8%; top: 87.5%; width: 41%; height: 5.4%; display: flex; align-items: center; font-size: 1.6cqw; color: var(--deco-ivory); background: var(--deco-charcoal); border-left: 3px solid var(--deco-brass); padding: 0 1cqw; overflow: hidden; }
.rk-f-pager { right: 4%; top: 87%; display: flex; gap: 0.6cqw; align-items: center; }
.rk-f-topright { right: 4%; top: 4.5%; }
.rk-f-topright .rk-tselect { width: 24cqw; min-width: 0; font-size: 2cqw; padding: 0.4cqw 0.8cqw; }
.rk-f-title { max-width: 62%; white-space: nowrap; overflow: hidden; }
.rk-t-name { font-size: 2.3cqw; font-weight: 700; margin-bottom: 0.6cqw; }
.rk-t-note { font-size: 1.5cqw; color: #4c5053; }
.rk-t-label { font-size: 2.2cqw; }
.rk-crest { width: 2.6cqw; height: 2.6cqw; object-fit: contain; vertical-align: middle; }
.rk-f-row span, .rk-f-own span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rk-f-pager .rk-page { min-width: 3.6cqw; font-size: 2.4cqw; padding: 0.2cqw 0.6cqw; }
.rk-page {
  min-width: 34px;
  padding: 4px 8px;
  font-family: 'Special Elite', 'Courier New', monospace;
  font-size: 18px;
  color: #1c1c1c;
  background: transparent;
  border: none;
  cursor: pointer;
}
.rk-page.on { color: var(--deco-bottle); text-decoration: underline; }
.rk-page:disabled { opacity: 0.35; cursor: default; }
@media (max-width: 720px) {
  .rk-head { flex-direction: column; }
  .rk-card { text-align: left; }
}

/* Page Banlieues : « Tout collecter » et 12 emplacements débloqués par la Villa */
.cs-top { display: flex; justify-content: center; margin-bottom: 14px; }
.cs-collect-all {
  padding: 8px 38px;
  font-family: 'Special Elite', 'Courier New', monospace;
  font-size: 16px;
  letter-spacing: 1px;
  color: #fff;
  background: linear-gradient(180deg, #8f969b, #565c61);
  border: 3px solid #3a3e42;
  cursor: pointer;
}
.cs-collect-all:disabled { opacity: 0.6; cursor: default; }
.cs-collect-all:not(:disabled):hover { filter: brightness(1.15); }
.cs-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  align-items: start;
  gap: 12px 14px;
  padding: 12px 16px;
  border: 1px dashed #b9b5a8;
}
.cs-slot { display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; font-size: 12.5px; }
.cs-art {
  position: relative;
  width: 100%;
  /* Même hauteur pour toutes les tuiles (occupée, libre, fermée) : la grille reste alignée */
  height: 122px;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 44px;
  background: #fdfaf7;
  border: 2px solid #d4ccc2;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
}
.cs-locked .cs-art { opacity: 0.55; }
.cs-free .cs-art { font-size: 54px; filter: sepia(1) saturate(2); }
.ny-paper.cityscapes { background: linear-gradient(180deg, #f5e9da, #e3cbab 70%, #d7b991); }
.cs-skyline-svg { width: 60%; height: 60%; }
.cs-free .cs-art { font-size: inherit; filter: none; }
/* Banlieue occupée : étiquette, vignette, VOIR / ABANDONNER, COLLECTER (comme l'original) */
.cs-occupied { gap: 0; align-items: stretch; }
.cs-card {
  height: 122px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  background: #fdfaf7;
  border: 2px solid #d4ccc2;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.18);
}
.cs-tag { padding: 3px 4px; font-size: 11px; color: #4c5053; border-bottom: 1px solid #e1dad1; }
.cs-thumb {
  flex: 1;
  min-height: 0;
  margin: 5px 8px 0;
  background: url('../assets/images/backgrounds/city_map_bg.webp') center / cover;
  filter: sepia(0.7);
}
.cs-info { padding: 2px 4px 4px; font-size: 11.5px; line-height: 1.3; color: #3a3a36; }
.cs-free .cs-skyline-svg, .cs-locked .cs-art { font-size: 36px; }
.cs-actions { display: flex; flex-direction: column; margin-top: 4px; }
.cs-btn {
  padding: 3px 2px;
  font-family: 'Josefin Sans', sans-serif;
  font-size: 13.5px;
  text-transform: uppercase;
  color: #fff;
  border: none;
  cursor: pointer;
}
.cs-btn-red { background: #c93626; }
.cs-btn-red + .cs-btn-red { border-top: 1px solid rgba(0, 0, 0, 0.25); }
.cs-btn-grey { background: #6b6e72; }
.cs-btn:hover:not(:disabled) { filter: brightness(1.15); }
.cs-btn:disabled { opacity: 0.75; cursor: default; }
.cs-bottom { display: flex; justify-content: space-between; align-items: center; margin-top: 10px; }
.cs-clock { font-size: 14px; color: #4c5053; }
.cs-pager { display: flex; gap: 6px; }
@media (max-width: 720px) {
  .cs-grid { grid-template-columns: repeat(3, 1fr); }
}

/* Page Travaux : liste à gauche (Recommandé), détail à droite — comme l'original */
.job-page {
  display: grid;
  grid-template-columns: 310px 1fr;
  gap: 18px;
  align-items: start;
}
.job-list-col { border-right: 1px solid #8a8678; padding-right: 14px; }
/* Onglet Travaux : la page ne défile pas, chaque colonne a sa propre barre de défilement */
.ny-paper.jobs { overflow: hidden; display: flex; flex-direction: column; }
.ny-paper.jobs .ny-content { flex: 1; min-height: 0; display: flex; }
.ny-paper.jobs .job-page { flex: 1; min-height: 0; align-items: stretch; }
.ny-paper.jobs .job-list-col, .ny-paper.jobs .job-detail-col { min-height: 0; overflow-y: auto; }
.ny-paper.jobs .job-list-col { padding-right: 10px; }
.job-reco-label {
  display: inline-block;
  min-width: 70%;
  padding: 2px 8px;
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  background: #c04234;
}
.job-item {
  padding: 8px 6px 10px;
  border-bottom: 1px solid #c9c4b4;
  cursor: pointer;
}
.job-item.recommended { background: #e2be90; margin-bottom: 8px; }
.job-item.sel { box-shadow: inset 3px 0 0 var(--red-alarm); }
/* Missions terminées : listées sous celles à faire, estompées */
.job-done-label { margin-top: 14px; padding: 2px 8px; font-size: 14px; font-weight: 700; color: #fff; background: #6b6a60; }
.job-item.finished { opacity: 0.6; }
.job-item.finished.sel { opacity: 1; }
.job-item-name { display: block; font-size: 15px; margin-bottom: 6px; }
.job-item-actions { display: flex; align-items: center; gap: 12px; }
.job-check {
  width: 26px;
  height: 26px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #4c5053;
  background: #fff;
  font-size: 18px;
  color: #367e64;
}
.job-collect {
  padding: 5px 18px;
  font-family: 'Special Elite', 'Courier New', monospace;
  font-size: 15px;
  letter-spacing: 1px;
  color: #1c1c1c;
  background: #fdfaf7;
  border: 2px solid #2a2a28;
  cursor: pointer;
}
/* Travail accompli : case cochée en rouge et bouton rouge plein, comme dans l'original */
.job-collect:not(:disabled) { color: #fff; background: #c93626; border-color: #7a2017; }
.job-collect:hover:not(:disabled) { filter: brightness(1.12); }
.job-collect:disabled { color: #5f5c52; border-color: #5f5c52; cursor: default; } /* contraste 5,6:1 sur le papier (avant : 3,5:1) */
.job-check.on { color: #bd3829; font-weight: 700; }
.job-done-count { margin-top: 10px; }
.job-detail-col h3 { font-size: 22px; letter-spacing: 1px; }
.job-detail-col h4 { margin: 14px 0 4px; font-size: 16px; font-weight: 400; color: #2a2a28; }
.job-detail-top { display: flex; gap: 14px; align-items: flex-start; }
.job-portrait { width: 120px; height: 120px; object-fit: cover; object-position: center top; border: 2px solid #8a8678; background: #1a1612; flex-shrink: 0; }
.job-description { color: #8d6837; font-size: 13px; }
.job-guide { margin: 0 0 4px 20px; padding: 0; font-size: 13px; color: #8d6837; }
.job-progress-txt { color: #6a675d; font-size: 12px; }
.job-rewards { display: flex; flex-wrap: wrap; gap: 18px; }
.ny-paper .job-reward, .ny-paper .job-reward span { display: flex; align-items: center; gap: 8px; font-size: 12px; color: #4c5053; }
.ny-paper .job-reward span { display: inline; }
.ny-paper .job-reward strong { font-size: 14px; color: #2a2a28; font-weight: 400; }
.job-reward-icon { font-size: 30px; }
@media (max-width: 720px) {
  .job-page { grid-template-columns: 1fr; }
  .job-list-col { border-right: none; padding-right: 0; }
}
@media (max-width: 720px) {
  .ny-columns, .ny-columns-even { grid-template-columns: 1fr; }
  .ny-columns > :first-child { border-right: none; padding-right: 0; }
  .ny-masthead { grid-template-columns: 1fr; }
  .ny-title { font-size: 40px; }
}
.dossier-jobs .jobs-list { overflow-y: auto; gap: 12px; padding-right: 6px; }
.jobs-window {
  width: min(760px, 96%);
  max-height: 96%;
  display: flex;
  flex-direction: column;
}
.jobs-header {
  display: flex;
  justify-content: space-between;
  padding: 6px 16px;
  font-family: 'Limelight', serif;
  font-size: 13px;
  color: var(--gold-primary);
  border-bottom: 1px solid var(--panel-border);
}
.jobs-list {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 8px 14px;
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.job-row {
  display: grid;
  grid-template-columns: 1fr auto 110px;
  align-items: center;
  gap: 10px;
  padding: 6px 10px;
  background: rgba(15, 17, 19, 0.85);
  border: 1px solid var(--panel-border);
}
.job-row.ready { border-color: var(--gold-primary); }
.job-row.claimed { opacity: 0.55; }
.job-name { font-family: 'Limelight', serif; font-size: 12.5px; color: var(--text-gold); }
.job-req { font-size: 11.5px; color: var(--text-dim); }
.job-reward { font-size: 11px; color: var(--gold-highlight); text-align: right; }
.job-action { text-align: center; font-size: 12px; }
.job-done { color: #97c8b6; }
.job-progress { color: var(--text-dim); }
.btn-job-claim {
  padding: 3px 10px;
  font-family: 'Josefin Sans', sans-serif;
  font-size: 12px;
  color: #150e05;
  background: linear-gradient(180deg, #e1c49e, #9d7847);
  border: 1px solid #4d3a21;
  cursor: pointer;
}
.btn-job-claim:hover { filter: brightness(1.1); }
.btn-job-claim:disabled { opacity: 0.45; cursor: default; filter: none; }
.jobs-footer {
  display: flex;
  justify-content: center;
  padding: 6px 0 10px;
}
.rk-f-row .rk-prize, .rk-f-own .rk-prize { font-size: 1.45cqw; }
/* Carte du tournoi : même texte machine à écrire que l'original, resserré pour tenir dans le cadre avec 4 sources de Respect */
.rk-f-card-tourney { font-size: 1.4cqw; line-height: 1.3; }
