:root {
  --bg: #fbf9f7;
  --surface: #ffffff;
  --surface-2: #f4efeb;
  --border: #e7dfd8;
  --border-strong: #c9bdb3;
  --text: #2a221c;
  --text-muted: #6f6259;
  --accent: #b1564a;
  --accent-soft: #f3dbd6;
  --accent-strong: #8d3f36;
  --shadow-sm: 0 1px 2px rgba(42, 34, 28, 0.04), 0 1px 1px rgba(42, 34, 28, 0.03);
  --shadow-md: 0 6px 24px rgba(42, 34, 28, 0.06), 0 2px 8px rgba(42, 34, 28, 0.04);
  --radius: 10px;
  --radius-sm: 6px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

h1 {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-weight: 500;
  font-size: 2rem;
  letter-spacing: -0.01em;
  margin: 0;
  color: var(--text);
}

.region {
  color: var(--accent);
  font-style: italic;
}

code {
  background: var(--surface-2);
  padding: 0.05em 0.4em;
  border-radius: 4px;
  font-size: 0.85em;
  font-family: "SF Mono", "Menlo", monospace;
}

/* === Topbar === */
.topbar {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 1.5rem;
  padding: 1.75rem 2rem 1.25rem;
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}

.brand .subtitle {
  margin: 0.25rem 0 0;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.kpis {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  justify-content: flex-end;
}

.kpi {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  padding: 0.5rem 0.75rem;
  border-left: 2px solid var(--accent-soft);
  min-width: 90px;
}

.kpi-value {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.6rem;
  font-weight: 600;
  line-height: 1;
  color: var(--text);
  font-variant-numeric: tabular-nums;
}

.kpi-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-top: 0.3rem;
}

.kpi-hint {
  font-size: 0.65rem;
  color: var(--text-muted);
  opacity: 0.7;
  margin-top: 0.15rem;
  font-style: italic;
}

/* === Layout === */
.layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 1.5rem;
  padding: 1.5rem 2rem 2rem;
  max-width: 1400px;
  margin: 0 auto;
}

/* === Filters === */
.filters {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  box-shadow: var(--shadow-sm);
  align-self: start;
  position: sticky;
  top: 1rem;
  max-height: calc(100vh - 2rem);
  overflow-y: auto;
}

.filter-block {
  margin-bottom: 1.25rem;
}

.filter-block:last-of-type {
  margin-bottom: 1rem;
}

.filter-label {
  display: block;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
  font-weight: 600;
}

input[type="search"],
input[type="number"] {
  width: 100%;
  padding: 0.55rem 0.7rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font: inherit;
  color: var(--text);
  transition: border-color 0.15s, background 0.15s;
}

input[type="search"]:focus,
input[type="number"]:focus {
  outline: none;
  border-color: var(--accent);
  background: var(--surface);
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.chip {
  padding: 0.3rem 0.65rem;
  background: var(--surface-2);
  border: 1px solid transparent;
  border-radius: 100px;
  font-size: 0.82rem;
  color: var(--text);
  cursor: pointer;
  user-select: none;
  transition: all 0.15s;
  font-weight: 500;
}

.chip:hover {
  border-color: var(--border-strong);
}

.chip.active {
  background: var(--accent);
  color: white;
  border-color: var(--accent);
}

.price-range {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.price-range input {
  flex: 1;
  min-width: 0;
}

.price-range .sep {
  color: var(--text-muted);
}

.price-range .suffix {
  color: var(--text-muted);
  font-size: 0.85rem;
}

.toggle {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.7rem;
  font-size: 0.82rem;
  color: var(--text-muted);
  cursor: pointer;
  user-select: none;
}

.toggle input {
  margin: 0;
  accent-color: var(--accent);
}

.reset-btn {
  width: 100%;
  padding: 0.6rem;
  background: transparent;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  font: inherit;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.15s;
}

.reset-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-soft);
}

/* === Results === */
.results {
  min-width: 0;
}

.results-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 0.75rem;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.count {
  margin: 0;
  font-weight: 600;
  font-size: 0.95rem;
}

.sort-info {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.table-scroll {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}

thead {
  background: var(--surface-2);
}

th {
  text-align: left;
  padding: 0.7rem 0.9rem;
  font-weight: 600;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}

th.sortable {
  cursor: pointer;
  user-select: none;
  transition: color 0.15s;
}

th.sortable:hover {
  color: var(--accent);
}

th.sortable::after {
  content: "";
  display: inline-block;
  width: 0;
  height: 0;
  margin-left: 0.4rem;
  opacity: 0.3;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-bottom: 5px solid currentColor;
  transition: transform 0.15s, opacity 0.15s;
}

th.sortable.sort-asc::after {
  opacity: 1;
}

th.sortable.sort-desc::after {
  opacity: 1;
  transform: rotate(180deg);
}

th.num {
  text-align: right;
}

td {
  padding: 0.7rem 0.9rem;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}

tbody tr {
  transition: background 0.1s;
}

tbody tr:hover {
  background: var(--surface-2);
}

tbody tr:last-child td {
  border-bottom: none;
}

td.nom {
  font-weight: 500;
  color: var(--text);
}

td.dept-cell {
  color: var(--text-muted);
  font-size: 0.85rem;
  white-space: nowrap;
}

td.prix {
  text-align: right;
  font-variant-numeric: tabular-nums;
  font-weight: 500;
  white-space: nowrap;
}

td.prix.empty {
  color: var(--text-muted);
  font-weight: 400;
  font-style: italic;
}

td.tarif {
  font-size: 0.85rem;
  color: var(--text-muted);
  white-space: nowrap;
}

td.link {
  text-align: right;
}

td.link a {
  color: var(--accent);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 500;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

td.link a:hover {
  color: var(--accent-strong);
  text-decoration: underline;
}

td.link a::after {
  content: "↗";
  font-size: 0.9em;
}

.empty-state {
  text-align: center;
  padding: 3rem 1rem;
  color: var(--text-muted);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-top: 0.75rem;
}

.hidden {
  display: none !important;
}

/* === Page nav === */
.page-nav {
  display: flex;
  gap: 0.25rem;
  padding: 0.25rem;
  background: var(--surface-2);
  border-radius: 100px;
  align-self: center;
}

.page-nav a {
  padding: 0.45rem 1rem;
  border-radius: 100px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-muted);
  text-decoration: none;
  transition: all 0.15s;
}

.page-nav a:hover {
  color: var(--text);
}

.page-nav a.active {
  background: var(--accent);
  color: white;
}

/* === Marché layout === */
.marche-layout {
  max-width: 1400px;
  margin: 0 auto;
  padding: 1.5rem 2rem 2rem;
}

.legend {
  margin-bottom: 2rem;
  font-size: 0.92rem;
  color: var(--text-muted);
}

.legend p {
  margin: 0 0 0.5rem;
  max-width: 950px;
}

.legend strong {
  color: var(--text);
}

.legend-note {
  background: var(--surface);
  border-left: 3px solid var(--accent);
  padding: 0.6rem 1rem;
  border-radius: 0 6px 6px 0;
  font-size: 0.88rem;
}

.legend-note--strong {
  background: var(--accent-soft);
  border-left-color: var(--accent-strong);
  color: var(--text);
  margin: 0 0 1rem;
}

.table-section.premium {
  margin-bottom: 2.5rem;
}

.table-section.premium h2 {
  color: var(--accent-strong);
}

.table-section h2,
.insights h2 {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-weight: 500;
  font-size: 1.5rem;
  letter-spacing: -0.01em;
  margin: 0 0 1rem;
  color: var(--text);
}

.insights {
  margin-top: 2.5rem;
}

/* === Marché table === */
#marche-table {
  font-size: 0.92rem;
}

#marche-table th.num,
#marche-table td.num {
  text-align: right;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

#marche-table .sticky-col {
  position: sticky;
  left: 0;
  background: inherit;
  z-index: 1;
}

#marche-table thead .sticky-col {
  background: var(--surface-2);
}

#marche-table tbody td.sticky-col {
  background: var(--surface);
  font-weight: 500;
}

#marche-table tbody tr:hover td.sticky-col {
  background: var(--surface-2);
}

#marche-table tr.highlight td {
  background: var(--accent-soft) !important;
}

#marche-table tr.highlight td.sticky-col {
  border-left: 3px solid var(--accent);
}

.tag-you {
  display: inline-block;
  margin-left: 0.4rem;
  padding: 0.1rem 0.45rem;
  background: var(--accent);
  color: white;
  border-radius: 4px;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
  vertical-align: middle;
}

#marche-table td.num.pos {
  color: #2f7a4d;
}

#marche-table td.num.neg {
  color: #b1564a;
}

#marche-table td.num.muted {
  color: var(--text-muted);
  font-weight: 400;
}

#marche-table td.ratio {
  font-weight: 600;
}

#marche-table td.ratio.ratio-good {
  color: #2f7a4d;
}

#marche-table td.ratio.ratio-neutral {
  color: #a16d2c;
}

#marche-table td.ratio.ratio-bad {
  color: #b1564a;
}

/* === Insights cards === */
.insights-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1rem;
}

.insight {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left-width: 3px;
  border-radius: var(--radius);
  padding: 1rem 1.1rem;
  box-shadow: var(--shadow-sm);
}

.insight h3 {
  margin: 0 0 0.5rem;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  font-weight: 600;
}

.insight p {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.55;
  color: var(--text);
}

.insight strong {
  font-weight: 600;
}

.insight-good {
  border-left-color: #2f7a4d;
}

.insight-warning {
  border-left-color: #a16d2c;
}

.insight-neutral {
  border-left-color: var(--accent);
}

/* === Methodo === */
.methodo {
  margin-top: 2.5rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.5rem 1.25rem;
  font-size: 0.88rem;
  color: var(--text-muted);
}

.methodo summary {
  cursor: pointer;
  padding: 0.5rem 0;
  font-weight: 500;
  color: var(--text);
}

.methodo ul {
  margin: 0.5rem 0 1rem;
  padding-left: 1.4rem;
}

.methodo li {
  margin-bottom: 0.4rem;
  line-height: 1.55;
}

.methodo code {
  background: var(--surface-2);
}

@media (max-width: 880px) {
  .marche-layout {
    padding: 1rem;
  }
  #marche-table {
    font-size: 0.82rem;
  }
  #marche-table .sticky-col {
    position: static;
  }
  .insights-grid {
    grid-template-columns: 1fr;
  }
}

/* === Concurrence : tier badges et hints === */
.filter-hint {
  margin: 0.4rem 0 0;
  font-size: 0.75rem;
  color: var(--text-muted);
  font-style: italic;
}

#threshold-c {
  width: 100%;
  padding: 0.5rem 0.7rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font: inherit;
  color: var(--text);
  cursor: pointer;
}

.tier-badge {
  display: inline-block;
  padding: 0.15rem 0.55rem;
  border-radius: 4px;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.tier-badge.tier-premium {
  background: var(--accent-soft);
  color: var(--accent-strong);
}

.tier-badge.tier-free {
  background: var(--surface-2);
  color: var(--text-muted);
}

/* === Saisonnalité chart === */
.saison-section {
  margin-top: 2.5rem;
}

.saison-section h2 {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-weight: 500;
  font-size: 1.5rem;
  letter-spacing: -0.01em;
  margin: 0 0 0.5rem;
}

.chart-wrapper {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  margin-top: 1rem;
  height: 380px;
  box-shadow: var(--shadow-sm);
}

@media (max-width: 720px) {
  .chart-wrapper { height: 320px; padding: 0.6rem; }
}

/* === Page rapport / prose === */
.prose {
  max-width: 820px;
  margin: 0 auto;
  padding: 2rem 1.5rem 3rem;
  font-size: 1.02rem;
  line-height: 1.65;
  color: var(--text);
}

.prose h2 {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-weight: 600;
  font-size: 1.8rem;
  letter-spacing: -0.01em;
  margin: 2.5rem 0 1rem;
  color: var(--text);
  border-bottom: 1px solid var(--border);
  padding-bottom: 0.4rem;
}

.prose section:first-of-type h2 {
  margin-top: 0;
}

.prose h3 {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-weight: 600;
  font-size: 1.35rem;
  margin: 1.5rem 0 0.6rem;
  color: var(--text);
}

.prose p {
  margin: 0 0 1rem;
}

.prose ul, .prose ol {
  margin: 0 0 1.2rem;
  padding-left: 1.5rem;
}

.prose li {
  margin-bottom: 0.5rem;
}

.prose strong {
  color: var(--text);
  font-weight: 600;
}

.prose em {
  font-style: italic;
}

.prose code {
  background: var(--surface-2);
  padding: 0.1em 0.4em;
  border-radius: 4px;
  font-size: 0.9em;
  font-family: "SF Mono", "Menlo", monospace;
}

.prose a {
  color: var(--accent);
}

.prose a:hover {
  color: var(--accent-strong);
}

.tldr {
  background: var(--accent-soft);
  border-left: 4px solid var(--accent);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 1.2rem 1.5rem;
  margin-bottom: 2.5rem;
}

.tldr h2 {
  border: none !important;
  margin: 0 0 0.6rem !important;
  font-size: 1.5rem !important;
  color: var(--accent-strong);
}

.tldr ul {
  margin-bottom: 0;
}

.tldr li {
  margin-bottom: 0.4rem;
}

.dept-profile {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 3px solid var(--border-strong);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  margin: 1rem 0 1.5rem;
}

.dept-profile h3 {
  margin: 0 0 0.6rem;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.7rem;
  font-size: 1.4rem;
}

.dept-profile dl {
  display: grid;
  grid-template-columns: minmax(180px, max-content) 1fr;
  gap: 0.4rem 1.2rem;
  margin: 0.5rem 0 0.8rem;
  font-size: 0.95rem;
}

.dept-profile dt {
  color: var(--text-muted);
  font-weight: 500;
}

.dept-profile dd {
  margin: 0;
}

.dept-profile p {
  font-size: 0.97rem;
  line-height: 1.6;
}

.dept-profile p:last-child {
  margin-bottom: 0;
}

.dept-profile--current { border-left-color: var(--accent); }
.dept-profile--recommended { border-left-color: #2f7a4d; background: linear-gradient(to right, rgba(47,122,77,0.05), var(--surface) 30%); }
.dept-profile--alt { border-left-color: #a16d2c; }
.dept-profile--out { border-left-color: var(--border-strong); opacity: 0.85; }

.profile-tag {
  display: inline-block;
  padding: 0.18rem 0.55rem;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
  border-radius: 4px;
  background: var(--surface-2);
  color: var(--text-muted);
  vertical-align: middle;
  font-family: "Inter", sans-serif;
}

.profile-tag--good {
  background: #2f7a4d;
  color: white;
}

.profile-tag--neutral {
  background: #a16d2c;
  color: white;
}

.profile-tag--bad {
  background: var(--surface-2);
  color: var(--text-muted);
}

.report-footer {
  margin-top: 3rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
  font-size: 0.85rem;
  color: var(--text-muted);
  text-align: center;
}

@media (max-width: 720px) {
  .prose {
    padding: 1.5rem 1rem 2rem;
    font-size: 0.98rem;
  }
  .prose h2 {
    font-size: 1.5rem;
  }
  .dept-profile dl {
    grid-template-columns: 1fr;
    gap: 0.1rem 0;
  }
  .dept-profile dt {
    margin-top: 0.5rem;
  }
}

/* === Footer === */
.footer {
  padding: 1.5rem 2rem;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.82rem;
  border-top: 1px solid var(--border);
  margin-top: 2rem;
}

.footer a {
  color: var(--accent);
}

/* === Responsive === */
@media (max-width: 880px) {
  .layout {
    grid-template-columns: 1fr;
    padding: 1rem;
  }

  .filters {
    position: static;
    max-height: none;
  }

  .topbar {
    padding: 1.25rem 1rem;
  }

  .kpis {
    gap: 1rem;
  }

  .kpi {
    min-width: 0;
    padding: 0.4rem 0.5rem;
  }

  .kpi-value {
    font-size: 1.3rem;
  }

  h1 {
    font-size: 1.6rem;
  }

  /* Hide departement column on mobile, it's also in the chip filters */
  td.dept-cell, th[data-sort="departement"] {
    display: none;
  }
}

/* === Mobile complet — refonte responsive (≤ 640px) === */
@media (max-width: 640px) {
  body {
    font-size: 14px;
  }

  /* Topbar plus compact + colonne */
  .topbar {
    flex-direction: column;
    padding: 1rem 1rem 0.75rem;
    gap: 0.75rem;
    align-items: stretch;
  }
  .brand h1 {
    font-size: 1.5rem;
    line-height: 1.15;
  }
  .brand .subtitle {
    font-size: 0.82rem;
  }

  /* Nav : scroll horizontal si dépasse, items compacts */
  .page-nav {
    align-self: stretch;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    flex-wrap: nowrap;
    justify-content: flex-start;
    margin: 0 -0.5rem;
    padding: 0.25rem 0.5rem;
    background: transparent;
  }
  .page-nav::-webkit-scrollbar {
    display: none;
  }
  .page-nav a {
    flex: 0 0 auto;
    padding: 0.4rem 0.85rem;
    font-size: 0.82rem;
    background: var(--surface-2);
  }
  .page-nav a.active {
    background: var(--accent);
  }

  /* KPIs : 2 colonnes en grille full-width */
  .kpis {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
    width: 100%;
    flex-basis: 100%;
  }
  .kpi {
    align-items: flex-start;
    padding: 0.4rem 0.5rem;
    border-left-width: 2px;
    min-width: 0;
  }
  .kpi-value {
    font-size: 1.25rem;
    word-break: break-word;
  }
  .kpi-label {
    font-size: 0.68rem;
  }
  .kpi-hint {
    font-size: 0.6rem;
  }

  /* Layout Lieux : filtres au-dessus, full-width */
  .layout {
    grid-template-columns: 1fr;
    padding: 1rem 0.75rem 1.5rem;
    gap: 1rem;
  }
  .filters {
    padding: 1rem;
    position: static;
    max-height: none;
  }
  .filter-block {
    margin-bottom: 1rem;
  }

  /* Tables : hauteur contenue + scroll interne pour ne pas étirer la page */
  .table-scroll {
    max-height: 70vh;
    overflow: auto;
    -webkit-overflow-scrolling: touch;
  }
  thead {
    position: sticky;
    top: 0;
    z-index: 2;
  }
  table {
    font-size: 0.82rem;
  }
  th, td {
    padding: 0.55rem 0.6rem;
  }
  th {
    font-size: 0.7rem;
  }

  /* Concurrence + Marché : tables larges → scroll horizontal interne natif */
  #conc-table, #marche-table, #premium-table {
    min-width: 700px;
  }

  /* Marché layout : padding réduit */
  .marche-layout {
    padding: 1rem 0.75rem 1.5rem;
  }
  .legend p, .legend-note {
    font-size: 0.85rem;
  }
  .table-section h2, .insights h2, .saison-section h2 {
    font-size: 1.3rem;
  }
  .insights-grid {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }
  .insight {
    padding: 0.85rem;
  }
  .insight h3 {
    font-size: 0.78rem;
  }
  .insight p {
    font-size: 0.88rem;
  }

  /* Chart saisonnalité plus petit */
  .chart-wrapper {
    height: 280px;
    padding: 0.5rem;
  }

  /* Carte : layout en colonne avec sidebar compact en haut */
  .map-layout {
    grid-template-columns: 1fr;
    height: auto;
    padding: 0.75rem;
    gap: 0.75rem;
  }
  .map-side {
    order: -1;
    max-height: none;
  }
  .map-legend {
    padding: 0.75rem;
  }
  #map {
    height: 55vh;
    min-height: 380px;
  }
  /* Légende dépts plus compacte */
  .legend-row {
    font-size: 0.78rem;
  }

  /* Page rapport (Analyse) */
  .prose {
    padding: 1rem 0.85rem 2rem;
    font-size: 0.95rem;
  }
  .prose h2 {
    font-size: 1.35rem;
    margin-top: 1.75rem;
  }
  .prose h3 {
    font-size: 1.15rem;
  }
  .tldr {
    padding: 1rem;
  }
  .tldr h2 {
    font-size: 1.25rem !important;
  }
  .dept-profile {
    padding: 1rem;
  }
  .dept-profile h3 {
    font-size: 1.2rem;
  }
  .dept-profile dl {
    grid-template-columns: 1fr;
    gap: 0.1rem 0;
  }
  .dept-profile dt {
    margin-top: 0.4rem;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
  }
  pre {
    font-size: 0.78rem !important;
  }

  /* Footer plus petit */
  .footer {
    padding: 1rem;
    font-size: 0.75rem;
  }
}
