/* ═══ LA CARTE DU MARCHÉ (carte_marche.js) — vue Secteurs et fiches indices, 30/10/2026 ═══
   Préfixe `cmk-`. Le dessin reprend celui de la carte des secteurs (.sev-tm-*) : liseré et
   bandeau du secteur, cases bordées de blanc, ligne de lecture réservée au-dessus. */
.cmk-carte { position: relative; width: 100%; min-height: 120px; border-radius: 10px; overflow: hidden; background: #FFFFFF; }
.cmk-att { display: flex; align-items: center; justify-content: center; height: 420px; color: #7A7A7A; font-size: 13px; background: #FAF9F6; border-radius: 10px; }
.cmk-s {
  position: absolute; box-sizing: border-box; overflow: hidden;
  border: 2px solid #FFFFFF; background: color-mix(in srgb, var(--sc) 14%, #FFFFFF);
}
.cmk-sh {
  position: absolute; left: 0; right: 0; top: 0; height: 22px; z-index: 2; box-sizing: border-box;
  display: flex; align-items: center; justify-content: space-between; gap: 6px; padding: 0 7px;
  background: color-mix(in srgb, var(--sc) 16%, #FFFFFF); border-top: 3px solid var(--sc);
  font-size: 11.5px; color: #1F1F1F; cursor: pointer; white-space: nowrap; overflow: hidden;
}
.cmk-sh b { font-weight: 750; overflow: hidden; text-overflow: ellipsis; }
.cmk-sh span { font-weight: 600; font-variant-numeric: tabular-nums; color: #3D3D3D; }
.cmk-sh:hover b { text-decoration: underline; text-underline-offset: 2px; }
.cmk-m, .cmk-c {
  position: absolute; box-sizing: border-box; overflow: hidden; cursor: pointer;
  display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 1px;
  padding: 1px 3px; text-align: center; line-height: 1.12;
  border: 1px solid rgba(255,255,255,.85);
}
.cmk-c { border-width: .5px; }
.cmk-m:hover, .cmk-c:hover { outline: 2px solid #0D0D0D; outline-offset: -2px; z-index: 3; }
/* Mode sociétés : le métier est un cadre fin, son nom dans une bande s'il a la place. */
.cmk-mc { position: absolute; box-sizing: border-box; overflow: hidden; border: 1px solid rgba(255,255,255,.95); }
.cmk-mb {
  position: absolute; left: 0; right: 0; top: 0; height: 14px; z-index: 2; box-sizing: border-box; padding: 0 5px;
  font-size: 9.5px; font-weight: 650; letter-spacing: .02em; line-height: 14px; color: #3D3D3D; cursor: pointer;
  background: rgba(255,255,255,.72); white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.cmk-mb:hover { text-decoration: underline; text-underline-offset: 2px; }
.cmk-n {
  font-weight: 650; max-width: 100%; overflow: hidden;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow-wrap: normal; hyphens: auto;
}
.cmk-v { font-weight: 550; font-variant-numeric: tabular-nums; opacity: .92; white-space: nowrap; }

/* La ligne de lecture réservée : hauteur fixe, rien ne bouge au survol. */
.cmk-lec {
  display: flex; align-items: center; gap: 8px 14px; height: 36px; margin: 0 0 10px; padding: 0 12px; box-sizing: border-box;
  border-radius: 9px; background: #F7F6FB; border: 1px solid rgba(107,79,216,.12);
  font-size: 13px; color: #2B2B2B; white-space: nowrap; overflow: hidden; font-variant-numeric: tabular-nums;
}
.cmk-lec b { font-weight: 700; color: #0D0D0D; }
.cmk-lec > span { overflow: hidden; text-overflow: ellipsis; }
.cmk-lec .cmk-lec-s { color: #6B6B6B; font-size: 12.5px; }
.cmk-lec .cmk-lec-v { color: #7A7A7A; }
.cmk-pt { display: inline-block; flex: 0 0 auto; width: 10px; height: 10px; border-radius: 3px; }

/* L'échelle des couleurs, sous la carte. */
.cmk-ech { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px 10px; margin-top: 12px; font-size: 11.5px; color: #6B6B6B; font-variant-numeric: tabular-nums; }
.cmk-ech-b { display: inline-block; width: 220px; height: 10px; border-radius: 5px; }
.cmk-ech-g { display: inline-flex; align-items: center; gap: 5px; margin-left: 10px; }
.cmk-ech-g i { display: inline-block; width: 12px; height: 10px; border-radius: 3px; border: 1px solid rgba(13,13,13,.08); }

/* Les réglages : horizons, univers, pays, détail. */
.cmk-regl { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; margin: 0 0 12px; font-size: 12.5px; color: #6B6B6B; }
.cmk-regl > span { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; }
.per-page .cmk-regl select.cmk-sel {
  font: inherit !important; font-size: 12.5px !important; font-weight: 500 !important; color: #2B2B2B !important;
  height: 30px !important; min-height: 0 !important; padding: 0 28px 0 10px !important; border-radius: 8px !important;
  border: 1px solid rgba(13,13,13,.16) !important; background-color: #FFFFFF !important; cursor: pointer; max-width: 260px;
}
.cmk-note { margin: 8px 0 0; font-size: 12px; color: #7A7A7A; line-height: 1.45; }
.cmk-note b { color: #4D4D4D; }

/* Fiche indice : la ligne « Détail » et le chiffre de l'indice publié, au-dessus de la carte. */
.idx-cm-regl { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin: 0 0 10px; font-size: 12.5px; color: #6B6B6B; font-weight: 600; }
.idx-cm-pub { margin-left: auto; font-weight: 500; color: #4D4D4D; font-variant-numeric: tabular-nums; }
.idx-cm-pub b { font-weight: 700; }

/* L'état du direct, au bout de l'échelle des couleurs. */
.cmk-direct { display: inline-flex; align-items: center; gap: 6px; margin-left: 10px; color: #067A3C; font-weight: 600; }
.cmk-direct i { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: #0E8A5F; box-shadow: 0 0 0 3px rgba(14,138,95,.18); }
.cmk-direct-non { color: #8A6100; }
