/* =============================================================================
   STATISTIQUE D'UNE VILLE — REFONTE v2 (statistique_v2.php)
   Préfixe .sta- ; chargé après home-refonte.css (.hv3-) et
   se-renseigner-lieu.css (.srl-) dont la page réutilise les composants
   (fil d'Ariane, pastilles de note, jauges, palmarès, FAQ…).

   --srl-accent : couleur du thème de la statistique (posée sur <body>).

   SOMMAIRE
   1. Réglages de page
   2. En-tête (titre, constat, carte du chiffre clé)
   3. Le détail (graphiques en colonnes, barres, classements)
   4. Comparaison avec les communes voisines
   5. Méthodologie
   6. Autres statistiques, fiche de la ville
   7. Responsive
   ============================================================================= */


/* =============================================================================
   1. RÉGLAGES DE PAGE
   ============================================================================= */

/* Pas de sommaire collant sur cette page */
.sta-page {
  --srl-nav-h: 0px;
  --sta-accent-soft: color-mix(in srgb, var(--srl-accent) 10%, #FFFFFF);
  --sta-accent-line: color-mix(in srgb, var(--srl-accent) 28%, #FFFFFF);
}

.sta-section .srl-section-head { max-width: 820px; }


/* =============================================================================
   2. EN-TÊTE
   ============================================================================= */

.sta-hero { padding-bottom: 56px; }

.sta-hero-text > :last-child { margin-bottom: 0; }

/* Texte | carte du chiffre clé ; sur mobile : texte, carte, puis méta et sommaire */
.sta-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, .95fr);
  grid-template-rows: auto 1fr;
  grid-template-areas:
    "text  card"
    "extra card";
  column-gap: 48px;
  align-items: start;
}

.sta-hero-text  { grid-area: text; }
.sta-hero-extra { grid-area: extra; }
.sta-card       { grid-area: card; }

.sta-kicker {
  background: var(--sta-accent-soft);
  color: var(--hv3-navy);
}

.sta-h1 {
  margin: 0 0 20px;
  font-size: 42px;
  line-height: 1.1;
  font-weight: 800;
  letter-spacing: -1px;
  color: var(--hv3-navy);
  overflow-wrap: anywhere;
}

.sta-lead {
  margin: 0 0 14px;
  font-size: 17px;
  line-height: 1.65;
  color: #45477A;
}

.sta-lead strong {
  color: var(--hv3-navy);
  font-weight: 800;
  background: linear-gradient(transparent 62%, var(--sta-accent-line) 62%);
}

/* Synthèse : évolution et rang parmi les voisines */
.sta-summary {
  margin: 4px 0 0;
  padding: 14px 18px;
  border-left: 4px solid var(--srl-accent);
  border-radius: 0 var(--hv3-radius-sm) var(--hv3-radius-sm) 0;
  background: rgba(255, 255, 255, .75);
  font-size: 15px;
  line-height: 1.65;
  color: #45477A;
}

.sta-summary b { color: var(--hv3-navy); }

.sta-summary a {
  color: var(--hv3-navy);
  font-weight: 700;
  text-decoration: underline;
  text-decoration-color: var(--sta-accent-line);
  text-underline-offset: 3px;
}

/* Commune, millésime, source */
.sta-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
}

.sta-meta li {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 13px;
  border-radius: 100px;
  background: rgba(255, 255, 255, .85);
  border: 1px solid var(--hv3-border);
  font-size: 13px;
  font-weight: 600;
  color: var(--hv3-navy);
}

.sta-meta a {
  color: var(--hv3-navy);
  font-weight: 800;
  text-decoration: underline;
  text-decoration-color: var(--sta-accent-line);
  text-underline-offset: 3px;
}

.sta-meta a:hover { color: var(--srl-accent); }

/* Sommaire de la page */
.sta-toc {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 16px;
  margin-top: 26px;
  padding-top: 18px;
  border-top: 1px solid var(--hv3-border);
  font-size: 14px;
}

.sta-toc-title {
  font-weight: 700;
  color: var(--hv3-muted);
}

.sta-toc a {
  font-weight: 700;
  color: var(--hv3-navy);
  text-decoration: none;
  border-bottom: 2px solid var(--sta-accent-line);
}

.sta-toc a:hover {
  color: var(--hv3-navy);
  text-decoration: none;
  border-bottom-color: var(--srl-accent);
}

/* ---- Carte du chiffre clé ---- */
.sta-card {
  position: relative;
  padding: 26px 28px 22px;
  border-radius: var(--hv3-radius);
  background: #FFFFFF;
  border: 1px solid var(--hv3-border);
  box-shadow: var(--hv3-shadow);
  overflow: hidden;
}

.sta-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 6px;
  background: var(--srl-accent);
}

.sta-card-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
  font-size: 15px;
  font-weight: 800;
  line-height: 1.25;
  color: var(--hv3-navy);
}

.sta-card-head small {
  display: block;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--hv3-muted);
}

.sta-card-ico {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: var(--sta-accent-soft);
  font-size: 23px;
}

.sta-value {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 2px 10px;
  margin: 0;
  color: var(--hv3-navy);
}

.sta-value b {
  font-size: 54px;
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -1.5px;
  color: var(--srl-accent);
}

.sta-value b.sta-value-text {
  font-size: 34px;
  letter-spacing: -.6px;
}

.sta-unit {
  font-size: 19px;
  font-weight: 700;
  color: var(--hv3-navy);
}

.sta-value-caption {
  margin: 4px 0 0;
  font-size: 14px;
  font-weight: 600;
  color: var(--hv3-muted);
}

.sta-card-evo {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 16px 0 0;
  font-size: 13px;
  color: var(--hv3-muted);
}

/* Pastille d'évolution : neutre (une hausse n'est pas toujours une bonne nouvelle) */
.sta-evo {
  display: inline-flex;
  align-items: baseline;
  gap: 5px;
  padding: 5px 11px;
  border-radius: 100px;
  background: var(--hv3-navy-soft);
  font-size: 13px;
  font-weight: 600;
  color: var(--hv3-navy);
  white-space: nowrap;
}

.sta-evo b { font-weight: 800; }

.sta-card-score {
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid var(--hv3-border);
}

.sta-card-score-main {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}

.sta-card-score-main .srl-score b { font-size: 26px; }

.sta-score-line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.sta-score-word {
  font-size: 13px;
  font-weight: 700;
  color: var(--hv3-muted);
}

.sta-score-text {
  margin: 12px 0 0;
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--hv3-muted);
}

.sta-score-text strong { color: var(--hv3-navy); }

/* Rang parmi les voisines */
.sta-card-rank {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 18px;
  padding: 12px 16px;
  border-radius: var(--hv3-radius-sm);
  background: var(--sta-accent-soft);
  color: var(--hv3-navy);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.3;
  text-decoration: none;
  transition: transform var(--hv3-ease), box-shadow var(--hv3-ease);
}

.sta-card-rank:hover {
  color: var(--hv3-navy);
  text-decoration: none;
  transform: translateY(-2px);
  box-shadow: var(--hv3-shadow-sm);
}

.sta-card-rank small {
  display: block;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--hv3-muted);
}

.sta-card-rank > span:last-child { margin-left: auto; }

.sta-card-rank-n {
  font-size: 28px;
  font-weight: 800;
  line-height: 1;
  color: var(--srl-accent);
}

.sta-card-rank-n sup { font-size: 13px; }

.sta-card-src {
  margin: 16px 0 0;
  font-size: 12px;
  line-height: 1.5;
  color: var(--hv3-muted);
}


/* =============================================================================
   3. LE DÉTAIL
   ============================================================================= */

.sta-rows {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 22px;
  max-width: 900px;
  margin: 0 auto;
}

.sta-rows-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  max-width: none;
}

.sta-row {
  min-width: 0;
  padding: 24px 26px;
  border-radius: var(--hv3-radius);
  background: #FFFFFF;
  border: 1px solid var(--hv3-border);
  box-shadow: var(--hv3-shadow-sm);
}

.sta-row-wide { grid-column: 1 / -1; }

.sta-row-title {
  margin: 0 0 12px;
  font-size: 18px;
  font-weight: 800;
  line-height: 1.35;
  color: var(--hv3-navy);
}

.sta-row-text,
.sta-row-evo {
  margin: 0 0 14px;
  font-size: 14.5px;
  line-height: 1.6;
  color: #45477A;
}

.sta-row-text strong,
.sta-row-evo strong { color: var(--hv3-navy); }

.sta-row-evo {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
}

/* ---- Graphique en colonnes ---- */
.sta-chart {
  margin: 6px 0 0;
}

.sta-cols {
  display: grid;
  grid-template-columns: repeat(var(--sta-n), minmax(0, 1fr));
  gap: 6px;
  height: 230px;
  padding-top: 22px;
}

.sta-col {
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  min-width: 0;
  height: 100%;
}

.sta-col-plot {
  position: relative;
  display: block;
  border-bottom: 1.5px solid var(--hv3-border);
}

.sta-col-bar {
  position: absolute;
  left: 8%;
  right: 8%;
  bottom: 0;
  border-radius: 7px 7px 2px 2px;
  background: color-mix(in srgb, var(--srl-accent) 38%, #FFFFFF);
  transition: background var(--hv3-ease);
}

.sta-col-last .sta-col-bar { background: var(--srl-accent); }

.sta-col:hover .sta-col-bar { background: color-mix(in srgb, var(--srl-accent) 75%, #FFFFFF); }

.sta-col-val {
  position: absolute;
  left: 50%;
  bottom: 100%;
  transform: translateX(-50%);
  margin-bottom: 4px;
  font-size: 11.5px;
  font-weight: 800;
  color: var(--hv3-navy);
  white-space: nowrap;
}

.sta-col-year {
  padding-top: 7px;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--hv3-muted);
  text-align: center;
  white-space: nowrap;
}

/* Beaucoup d'années : valeurs de la première et de la dernière colonne seulement
   (les autres au survol) */
.sta-cols-many .sta-col-val { display: none; }
.sta-cols-many .sta-col-first .sta-col-val,
.sta-cols-many .sta-col-last .sta-col-val,
.sta-cols-many .sta-col:hover .sta-col-val { display: block; }
.sta-cols-many .sta-col:hover .sta-col-val {
  z-index: 1;
  padding: 2px 6px;
  border-radius: 6px;
  background: var(--hv3-navy);
  color: #FFFFFF;
}

.sta-chart-unit {
  margin-top: 10px;
  font-size: 12.5px;
  color: var(--hv3-muted);
}

.sta-data { margin-top: 14px; }

/* ---- Barres horizontales ---- */
.sta-bars {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 4px 0 0;
  padding: 0;
  list-style: none;
}

.sta-bars li {
  display: grid;
  grid-template-columns: minmax(110px, 1.15fr) minmax(70px, 1.4fr) auto;
  align-items: center;
  gap: 12px;
}

.sta-bar-label {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.3;
  color: var(--hv3-navy);
}

.sta-bar-track {
  height: 12px;
  border-radius: 100px;
  background: #F0EFF7;
  overflow: hidden;
}

.sta-bar-track span {
  display: block;
  height: 100%;
  border-radius: 100px;
  background: color-mix(in srgb, var(--srl-accent) 45%, #FFFFFF);
}

.sta-bars .is-top .sta-bar-track span { background: var(--srl-accent); }
.sta-bars .is-top .sta-bar-label { font-weight: 800; }

.sta-bar-val {
  min-width: 52px;
  font-size: 14px;
  font-weight: 800;
  color: var(--hv3-navy);
  text-align: right;
}

/* ---- Classement ---- */
.sta-rank {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.sta-rank li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-radius: 12px;
  background: var(--hv3-soft);
  font-size: 14.5px;
  font-weight: 600;
  color: var(--hv3-navy);
}

.sta-rank-n {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--srl-accent);
  color: #FFFFFF;
  font-size: 13px;
  font-weight: 800;
}

/* ---- Pastilles ---- */
.sta-more-chips { margin-top: 10px; }

.sta-more-chips > summary {
  display: inline-block;
  margin-bottom: 10px;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--hv3-place);
  cursor: pointer;
  list-style: none;
}

.sta-more-chips > summary::-webkit-details-marker { display: none; }
.sta-more-chips > summary::before { content: "+ "; }
.sta-more-chips[open] > summary { display: none; }


/* =============================================================================
   4. COMPARAISON AVEC LES COMMUNES VOISINES
   ============================================================================= */

.sta-cmp {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-width: 900px;
  margin: 0 auto;
  padding: 0;
  list-style: none;
}

.sta-cmp-item {
  display: grid;
  grid-template-columns: 30px minmax(0, 1.2fr) minmax(80px, 1fr) minmax(110px, auto) 18px;
  align-items: center;
  gap: 14px;
  padding: 13px 18px;
  border-radius: var(--hv3-radius-sm);
  background: #FFFFFF;
  border: 1px solid var(--hv3-border);
  color: var(--hv3-navy);
  text-decoration: none;
  transition: border-color var(--hv3-ease), transform var(--hv3-ease), box-shadow var(--hv3-ease);
}

a.sta-cmp-item:hover {
  color: var(--hv3-navy);
  text-decoration: none;
  border-color: var(--srl-accent);
  transform: translateY(-1px);
  box-shadow: var(--hv3-shadow-sm);
}

.sta-cmp .is-self .sta-cmp-item {
  grid-template-columns: 30px minmax(0, 1.2fr) minmax(80px, 1fr) minmax(110px, auto) 18px;
  background: var(--sta-accent-soft);
  border: 2px solid var(--srl-accent);
}

.sta-cmp-pos {
  font-size: 15px;
  font-weight: 800;
  color: var(--hv3-muted);
  text-align: center;
}

.is-self .sta-cmp-pos { color: var(--srl-accent); }

.sta-cmp-name {
  min-width: 0;
  font-size: 15px;
  font-weight: 800;
  line-height: 1.25;
}

.sta-cmp-name small {
  display: block;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--hv3-muted);
}

.sta-cmp-bar {
  height: 10px;
  border-radius: 100px;
  background: #F0EFF7;
  overflow: hidden;
}

.sta-cmp-bar-empty { background: transparent; }

.sta-cmp-bar span {
  display: block;
  height: 100%;
  border-radius: 100px;
  background: color-mix(in srgb, var(--srl-accent) 40%, #FFFFFF);
}

.is-self .sta-cmp-bar span { background: var(--srl-accent); }

.sta-cmp-val {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
  text-align: right;
  line-height: 1.2;
}

.sta-cmp-num {
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: baseline;
  gap: 0 5px;
}

.sta-cmp-val b {
  font-size: 16px;
  font-weight: 800;
}

.sta-cmp-val b.sta-value-text { font-size: 14px; }

.sta-cmp-val .sta-unit {
  font-size: 12px;
  font-weight: 600;
  color: var(--hv3-muted);
}

.sta-cmp-score {
  font-size: 12.5px;
  font-weight: 800;
  color: var(--hv3-muted);
}

.sta-cmp-score small { font-weight: 600; }

/* Valeur seule : la note passe en grand */
.sta-cmp-val > .sta-cmp-score:first-child {
  font-size: 16px;
  color: var(--hv3-navy);
}

.sta-cmp-go {
  font-weight: 800;
  color: var(--hv3-muted);
  transition: transform var(--hv3-ease);
}

a.sta-cmp-item:hover .sta-cmp-go {
  color: var(--srl-accent);
  transform: translateX(3px);
}

/* Valeurs textuelles (catégorie dominante…) : pas de rang ni de barre */
.sta-cmp-text .sta-cmp-item,
.sta-cmp-text .is-self .sta-cmp-item { grid-template-columns: minmax(0, 1fr) auto 18px; }
.sta-cmp-text .sta-cmp-pos,
.sta-cmp-text .sta-cmp-bar { display: none; }

.sta-cmp-note {
  max-width: 900px;
  margin: 14px auto 0;
  text-align: center;
}


/* =============================================================================
   5. MÉTHODOLOGIE
   ============================================================================= */

.sta-method {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  gap: 44px;
  align-items: start;
}

.sta-method .hv3-h2 { margin-bottom: 16px; }

.sta-method-text {
  margin: 0 0 14px;
  font-size: 15.5px;
  line-height: 1.7;
  color: #45477A;
}

.sta-facts {
  margin: 0;
  padding: 8px 22px;
  border-radius: var(--hv3-radius);
  background: var(--hv3-soft);
  border: 1px solid var(--hv3-border);
}

.sta-facts > div {
  display: grid;
  grid-template-columns: 130px minmax(0, 1fr);
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--hv3-border);
}

.sta-facts > div:last-child { border-bottom: 0; }

.sta-facts dt {
  font-size: 13px;
  font-weight: 700;
  color: var(--hv3-muted);
}

.sta-facts dd {
  margin: 0;
  font-size: 14px;
  font-weight: 700;
  color: var(--hv3-navy);
}

.sta-facts a {
  color: var(--hv3-navy);
  text-decoration: underline;
  text-decoration-color: var(--sta-accent-line);
  text-underline-offset: 3px;
}


/* =============================================================================
   6. AUTRES STATISTIQUES, FICHE DE LA VILLE
   ============================================================================= */

.sta-links-title {
  margin: 0 0 12px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .6px;
  text-transform: uppercase;
  color: var(--hv3-muted);
}

.sta-links {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 10px;
  margin: 0 0 30px;
  padding: 0;
  list-style: none;
}

.sta-links:last-child { margin-bottom: 0; }

.sta-links a {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 100%;
  padding: 12px 16px;
  border-radius: var(--hv3-radius-sm);
  background: #FFFFFF;
  border: 1px solid var(--hv3-border);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--hv3-navy);
  text-decoration: none;
  transition: border-color var(--hv3-ease), transform var(--hv3-ease);
}

.sta-links a:hover {
  color: var(--hv3-navy);
  text-decoration: none;
  border-color: var(--hv3-place-bright);
  transform: translateY(-2px);
}

.sta-links a span {
  flex: 0 0 auto;
  font-size: 19px;
}

.sta-links-same a {
  border-color: var(--sta-accent-line);
  background: var(--sta-accent-soft);
}

/* ---- Fiche complète de la ville ---- */
.sta-city {
  display: grid;
  grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
  gap: 40px;
  align-items: center;
  padding: 26px;
  border-radius: 28px;
  background: linear-gradient(135deg, #FFFFFF 0%, var(--hv3-place-soft) 100%);
  border: 1px solid #CDEFEA;
  box-shadow: var(--hv3-shadow);
}

.sta-city-nophoto {
  grid-template-columns: minmax(0, 1fr);
  padding: 40px;
}

.sta-city-media img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 300px;
  max-height: 380px;
  object-fit: cover;
  border-radius: 20px;
}

.sta-city-body .hv3-pill { margin-bottom: 14px; }
.sta-city-body .hv3-h2 { margin-bottom: 12px; }
.sta-city-body .hv3-p { margin: 0 0 20px; }

.sta-city-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 24px;
}

.sta-city-global,
.sta-city-fig {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  border-radius: var(--hv3-radius-sm);
  background: #FFFFFF;
  border: 1px solid var(--hv3-border);
  color: var(--hv3-navy);
  line-height: 1.2;
}

.sta-city-global b {
  font-size: 24px;
  font-weight: 800;
  color: var(--srl-tone);
}

.sta-city-global > small {
  margin-left: -6px;
  font-size: 12px;
  font-weight: 700;
  color: var(--hv3-muted);
}

.sta-city-global > span {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.sta-city-global em {
  font-size: 12px;
  font-style: normal;
  font-weight: 700;
  color: var(--hv3-muted);
}

.sta-city-fig b {
  font-size: 15px;
  font-weight: 800;
}

.sta-city-fig small {
  font-size: 12.5px;
  color: var(--hv3-muted);
}

.sta-city-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}


/* =============================================================================
   7. RESPONSIVE
   ============================================================================= */

@media (max-width: 1199px) {
  .sta-h1 { font-size: 37px; }
  .sta-hero-grid { gap: 32px; }
}

@media (max-width: 991px) {
  .sta-method,
  .sta-city { grid-template-columns: minmax(0, 1fr); }
  .sta-hero-grid {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto;
    grid-template-areas: "text" "card" "extra";
  }
  .sta-card { max-width: 560px; margin-top: 10px; }
  .sta-rows-2 { grid-template-columns: minmax(0, 1fr); }
  .sta-method { gap: 26px; }
  .sta-city-media img { min-height: 0; max-height: 260px; }
}

@media (max-width: 767px) {
  .sta-hero { padding-bottom: 36px; }
  .sta-h1 { font-size: 29px; letter-spacing: -.6px; }
  .sta-lead { font-size: 15.5px; }
  .sta-toc { font-size: 13.5px; }

  .sta-card { padding: 22px 20px 18px; }
  .sta-value b { font-size: 44px; }
  .sta-value b.sta-value-text { font-size: 28px; }

  .sta-row { padding: 20px 18px; }
  .sta-row-title { font-size: 16.5px; }
  .sta-cols { height: 190px; gap: 3px; }
  .sta-col-val { font-size: 10.5px; }
  .sta-col-year { font-size: 10px; }
  /* Une année sur deux (la dernière reste toujours visible) */
  .sta-cols-many .sta-col:nth-child(even):not(.sta-col-last) .sta-col-year { visibility: hidden; }

  .sta-bars li { grid-template-columns: minmax(0, 1fr) auto; gap: 4px 12px; }
  .sta-bar-label { grid-column: 1; grid-row: 1; }
  .sta-bar-val { grid-column: 2; grid-row: 1; }
  .sta-bar-track { grid-column: 1 / -1; grid-row: 2; height: 9px; }

  .sta-cmp-item,
  .sta-cmp .is-self .sta-cmp-item {
    grid-template-columns: 24px minmax(0, 1fr) auto;
    gap: 6px 12px;
    padding: 12px 14px;
  }
  .sta-cmp-pos { grid-row: 1 / span 2; }
  .sta-cmp-bar { grid-column: 2 / -1; grid-row: 2; height: 7px; }
  .sta-cmp-val { grid-column: 3; grid-row: 1; }
  .sta-cmp-go { display: none; }
  .sta-cmp-text .sta-cmp-item,
  .sta-cmp-text .is-self .sta-cmp-item { grid-template-columns: minmax(0, 1fr); }
  .sta-cmp-text .sta-cmp-val { grid-column: 1; grid-row: 2; align-items: flex-start; }
  .sta-cmp-text .sta-cmp-num { justify-content: flex-start; }

  .sta-facts > div { grid-template-columns: minmax(0, 1fr); gap: 2px; }

  .sta-city { padding: 16px; gap: 22px; }
  .sta-city-nophoto { padding: 24px 18px; }
  .sta-city-actions { flex-direction: column; align-items: stretch; }
  .sta-city-actions .hv3-btn,
  .sta-city-actions .srl-btn-ghost { width: 100%; justify-content: center; }
}

@media print {
  .sta-toc, .sta-card-rank, .sta-city-actions, .hv3-cta-band { display: none !important; }
}
