.bmt-results {
  --bmt-paper: #f3efe6;
  --bmt-card: #faf7ef;
  --bmt-ink: #171a18;
  --bmt-muted: #505952;
  --bmt-forest: #1f3730;
  --bmt-terra: #87301f;
  --bmt-rule: #c5c5b7;
  --bmt-grid: #dbdacf;
  --bmt-sans: "Instrument Sans", Arial, sans-serif;
  --bmt-serif: Newsreader, Georgia, serif;
  box-sizing: border-box;
  width: min(1120px, calc(100% - 48px));
  margin: clamp(40px, 6vw, 80px) auto;
  color: var(--bmt-ink);
  font: 400 16px/1.6 var(--bmt-sans);
  font-variant-numeric: tabular-nums;
  text-align: left;
}
.bmt-results *, .bmt-results *::before, .bmt-results *::after { box-sizing: border-box; }
.bmt-results [hidden] { display: none !important; }
.bmt-results :is(section, details)[id] { scroll-margin-top: var(--ux-anchor-offset, 116px); }
.bmt-results :focus-visible { outline: 2px solid var(--bmt-terra); outline-offset: 3px; }
.bmt-results :is(h2, h3) {
  margin: 0 0 .55em;
  color: var(--bmt-forest);
  font: 450 clamp(26px, 3vw, 38px)/1.14 var(--bmt-serif);
  letter-spacing: -.025em;
}
.bmt-results h2 { font-size: clamp(31px, 4vw, 47px); }
.bmt-results p { max-width: 74ch; margin: .7em 0 1em; font: inherit; }
.bmt-results .bmt-summary { margin: 0 0 2.2rem; }
.bmt-results .bmt-highlights { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 22px; margin: 1.6rem 0; }
.bmt-results .bmt-highlights > div { border-top: 2px solid var(--bmt-forest); padding-block: .85rem; }
.bmt-results .bmt-highlights dt { color: var(--bmt-muted); font-size: .95rem; }
.bmt-results .bmt-highlights dd { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 .8rem; margin: .45em 0 0; font-size: 1rem; }
.bmt-results .bmt-highlights dd strong { color: var(--bmt-forest); font: 500 2.3rem/1.18 var(--bmt-serif); white-space: nowrap; }
.bmt-results .bmt-highlights dd small { flex-basis: 100%; color: var(--bmt-muted); font-size: .875rem; }
.bmt-results .bmt-figure { margin: 1.5rem 0; padding: clamp(17px, 2.8vw, 35px); border: 1px solid var(--bmt-rule); background: var(--bmt-card); min-width: 0; }
/* Les quatre graphiques sont sur fond blanc, pour l'affichage comme pour l'export en image. */
.bmt-results :is(#capacite-prix, #criteres, #dossiers, #domaines) { --bmt-card: #fff; }
.bmt-results .carte-cadre th { background: #fff; }
.bmt-results .bmt-export {
  float: right;
  margin: -1px 0 0 12px;
  padding: 4px 10px;
  border: 1px solid var(--bmt-rule);
  border-radius: 3px;
  background: #fff;
  color: var(--bmt-forest);
  font: 500 12.5px/1.3 var(--bmt-sans);
  cursor: pointer;
}
.bmt-results .bmt-export:is(:hover, :focus-visible) { border-color: var(--bmt-forest); }
.bmt-results .bmt-export:disabled { opacity: .65; cursor: default; }
.bmt-results :is(.carte-notes, .bmt-lecture) > summary::after { content: ""; display: block; clear: both; }
@media (max-width: 560px) {
  .bmt-results .bmt-export { margin-left: 8px; padding: 3px 9px; }
  .bmt-results .bmt-export-suite { display: none; }
}
@media print { .bmt-results .bmt-export { display: none; } }
.bmt-results :is(#capacite-prix, #criteres) {
  --bmt-card: #fff;
  --bmt-grid: #e5e1d7;
  --bmt-rule: #c9c5ba;
  --bmt-muted: #545b54;

}
.bmt-results :is(#capacite-prix, #criteres, #dossiers, #domaines) {
  padding: clamp(12px, 1.55vw, 22px);
  scroll-margin-top: calc(var(--ux-anchor-offset, 116px) - 12px);
}
.bmt-results :is(#capacite-prix, #criteres, #dossiers, #domaines) h3 {
  margin: 0;
  font: 450 clamp(22px, 2.4vw, 32px)/1.08 var(--bmt-serif);
  letter-spacing: -.025em;
  text-wrap: balance;
}
.bmt-results .bmt-contexte {
  max-width: none;
  margin: 0 0 7px;
  color: var(--bmt-forest);
  font: 700 clamp(16px, 1.4vw, 18px)/1.3 "Source Sans 3", Arial, sans-serif;
  text-wrap: balance;
}
.bmt-results .bmt-figure-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 6px 24px;
}
.bmt-results .bmt-figure-head > div:first-child { min-width: 0; }
.bmt-results .bmt-switch {
  display: inline-flex;
  flex: none;
  gap: 1px;
  padding: 3px;
  border: 1px solid var(--bmt-rule);
  border-radius: 3px;
  background: var(--bmt-paper);
}
.bmt-results .bmt-switch button {
  min-height: 38px;
  padding: 8px 12px;
  border: 0;
  border-radius: 1px;
  background: transparent;
  color: var(--bmt-muted);
  font: 500 13px/1.3 var(--bmt-sans);
  cursor: pointer;
}
.bmt-results .bmt-switch button:hover { background: #e6e1d5; color: var(--bmt-forest); }
.bmt-results .bmt-switch button[aria-pressed="true"] { background: var(--bmt-forest); color: white; }
.bmt-results .bmt-legend {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px 22px;
  margin: 10px 0;
  padding: 6px 0;
  border-block: 1px solid var(--bmt-grid);
  list-style: none;
}
.bmt-results .bmt-legend li {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin: 0;
  color: #424a43;
  font: 400 13px/1.5 var(--bmt-sans);
}
.bmt-results .bmt-closed { --point-color: #285546; }
.bmt-results .bmt-open { --point-color: #a2442e; }
.bmt-results .bmt-qcm { --point-color: #666d70; }
.bmt-results .bmt-swatch { display: inline-block; width: 12px; height: 12px; border-radius: 50%; background: var(--point-color); }
.bmt-results .bmt-swatch.bmt-qcm { width: 8px; height: 8px; margin-inline: 2px; }
.bmt-results :is(.bmt-key-interval, .bmt-key-band) { display: inline-block; border-radius: 4px; background: #b8bab3; }
.bmt-results .bmt-key-interval { width: 6px; height: 14px; }
.bmt-results .bmt-key-band { width: 20px; height: 8px; }
.bmt-results .bmt-key-front { width: 24px; height: 12px; fill: none; stroke: #93978e; stroke-width: 1.5; }
.bmt-results .bmt-overflow { max-width: 100%; overflow-x: auto; overscroll-behavior-x: contain; scrollbar-color: #858e81 var(--bmt-paper); }
.bmt-results .bmt-axis { margin: .6rem 0; color: var(--bmt-muted); font-size: .9rem; }
.bmt-results :is(#capacite-prix, #criteres) p.bmt-axis { max-width: none; margin: 4px 0; color: var(--bmt-muted); font: 400 13px/1.55 var(--bmt-sans); }
.bmt-results .bmt-x { text-align: end; }
.bmt-results .bmt-lecture { margin-top: 6px; border-top: 1px solid var(--bmt-grid); }
.bmt-results .bmt-lecture > summary {
  padding: 6px 0 1px;
  width: fit-content;
  color: var(--bmt-forest);
  font: 550 14px/1.45 var(--bmt-sans);
  cursor: pointer;
}
.bmt-results .bmt-lecture > summary::marker { color: var(--bmt-terra); }
.bmt-results p.bmt-takeaway {
  max-width: none;
  margin: 16px 0 0;
  padding: .85rem 1.1rem;
  border-left: 3px solid var(--bmt-terra);
  background: #f0eadf;
  font: 400 16px/1.5 var(--bmt-sans);
}
.bmt-results .bmt-inspect { position: fixed; z-index: 1010; max-width: min(390px, calc(100vw - 16px)); padding: 10px 14px; border: 1px solid var(--bmt-forest); background: #fffdf8; box-shadow: 0 3px 10px #1f373026; color: var(--bmt-ink); font: 450 14px/1.48 var(--bmt-sans); pointer-events: none; }
.bmt-results .bmt-scale { display: flex; align-items: center; gap: .55em; color: var(--bmt-muted); font-size: .9rem; }
.bmt-results .bmt-scale i { display: inline-block; width: 100px; height: 9px; background: linear-gradient(to right,#9e392b,#e3a66b,#f0e8c6,#98b498,#30674e); border: 1px solid var(--bmt-rule); }
.bmt-results table { width: 100%; min-width: 680px; margin: 0; border-collapse: collapse; color: var(--bmt-ink); font: 500 14px/1.4 var(--bmt-sans); }
.bmt-results table th, .bmt-results table td { padding: 8px 6px; border: 1px solid var(--bmt-grid); vertical-align: middle; line-height: 1.4; text-align: center; }
.bmt-results table th { background: #eeeade; font-weight: 600; }
.bmt-results tbody th { min-width: 145px; max-width: 36ch; text-align: start; }
.bmt-results table small { font-size: .8rem; font-weight: 400; color: var(--bmt-muted); }
.bmt-results #tableau { min-width: 900px; }
.bmt-results #tableau tbody th small { display: block; }
.bmt-results .bmt-overflow tbody th {
  position: sticky;
  left: 0;
  z-index: 1;
  box-shadow: 1px 0 var(--bmt-rule);
}
.bmt-results .bmt-heat td { color: #171a18; font-weight: 600; min-width: 35px; }
.bmt-results .bmt-heat-0 { background:#943a2d; color:white !important; }
.bmt-results .bmt-heat-1 { background:#a4432d; color:white !important; }
.bmt-results .bmt-heat-2 { background:#bd5b39; }
.bmt-results .bmt-heat-3 { background:#dc965f; }
.bmt-results .bmt-heat-4 { background:#eabd87; }
.bmt-results .bmt-heat-5 { background:#f0d8a1; }
.bmt-results .bmt-heat-6 { background:#ede9bf; }
.bmt-results .bmt-heat-7 { background:#c9d4ac; }
.bmt-results .bmt-heat-8 { background:#9cbc9c; }
.bmt-results .bmt-heat-9 { background:#74a082; }
.bmt-results .bmt-heat-10 { background:#30674e; color:white !important; }
.bmt-results .bmt-pan { display:none; color:var(--bmt-muted); font-size:.875rem; }
.bmt-results .bmt-sr { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.bmt-results .bmt-more { border-top:1px solid var(--bmt-rule); padding: .3rem 0; }
.bmt-results .bmt-more summary { padding: .65rem .2rem; font-weight: 600; cursor: pointer; color: var(--bmt-forest); }
.bmt-results .bmt-more .bmt-overflow { margin: .5rem 0 1.25rem; }
.bmt-results .bmt-defs dt { margin-top: .85rem; font-weight: 650; }
.bmt-results .bmt-defs dd { margin: .15rem 0 0; max-width: 80ch; }
@media (max-width: 920px) {
  .bmt-results .bmt-figure-head { display: block; }
  .bmt-results .bmt-switch { margin-top: 6px; }
}
@media (max-width: 870px) {
  .bmt-results .bmt-pan { display:block; }
}
@media (max-width: 620px) {
  .bmt-results { width: calc(100% - 32px); }
  .bmt-results .bmt-highlights { grid-template-columns: 1fr; gap: .2rem; }
  .bmt-results .bmt-figure { padding: 15px; }
  .bmt-results :is(#capacite-prix, #criteres, #dossiers, #domaines) { padding: 12px 10px 8px; }
  .bmt-results .bmt-switch { display: flex; width: 100%; }
  .bmt-results .bmt-switch button { flex: 1; min-height: 44px; padding: 7px 4px; }
  .bmt-results .bmt-legend { gap: 3px 14px; margin: 6px 0; padding: 4px 0; }
  .bmt-results .bmt-legend li { gap: 4px; }
  .bmt-results .bmt-lecture > summary { min-height: 28px; }
  .bmt-results .bmt-legend li { font-size: 12px; }
  .bmt-results .bmt-x { text-align: start; }
}
@media (max-width: 420px) and (max-height: 700px) {
  .bmt-results { width: calc(100% - 16px); }
  .bmt-results :is(#capacite-prix, #criteres, #dossiers, #domaines) { padding: 7px 8px; }
  .bmt-results :is(#capacite-prix, #criteres, #dossiers, #domaines) h3 { font-size: 21px; }
  .bmt-results .bmt-switch button { min-height: 35px; padding-block: 4px; }
  .bmt-results .bmt-legend { gap: 2px 10px; }
  .bmt-results :is(#capacite-prix, #criteres) p.bmt-axis { font-size: 12px; line-height: 1.3; margin: 2px 0; }
}
/* Sur un écran très court, libérer la place du menu lorsque le lecteur rejoint une figure. */
@media screen and (orientation: landscape) and (max-height: 550px) and (min-width: 540px),
       screen and (max-width: 380px) and (max-height: 610px) {
  .benchmark-page > #site-header { position: static; }
  .benchmark-page main { --ux-anchor-offset: 18px; }
}
@media screen and (orientation: landscape) and (max-height: 550px) and (min-width: 540px) {
  .bmt-results :is(#capacite-prix, #criteres, #dossiers, #domaines) { padding: 6px 10px; }
  .bmt-results :is(#capacite-prix, #criteres, #dossiers, #domaines) h3 { font-size: 21px; }
  .bmt-results .bmt-switch button { min-height: 30px; padding: 4px 7px; }
  .bmt-results .bmt-legend { margin: 4px 0; padding: 3px 0; gap: 2px 12px; }
  .bmt-results .bmt-legend li { font-size: 12px; }
  .bmt-results .bmt-figure-head { display: flex; }
  .bmt-results .bmt-switch { flex: none; width: auto; margin: 0; }
  .bmt-results .bmt-lecture { margin-top: 2px; }
}
@media screen and (min-width: 540px) and (max-height: 430px) and (orientation: landscape) {
  .bmt-results :is(#capacite-prix, #criteres) {
    display: grid;
    grid-template-columns: clamp(150px, 28%, 225px) minmax(0, 1fr);
    grid-template-rows: auto auto 1fr auto;
    align-items: start;
    gap: 3px 12px;
  }
  .bmt-results .bmt-contexte { grid-area: 1 / 1 / 2 / -1; margin: 0; }
  .bmt-results :is(.bmt-figure-head, #titre-criteres) { grid-area: 2 / 1; }
  .bmt-results .bmt-figure-head { display: block; }
  .bmt-results .bmt-switch { display: flex; flex-wrap: wrap; margin-top: 4px; }
  .bmt-results .bmt-switch button { flex: auto; min-height: 26px; font-size: 12px; }
  .bmt-results .bmt-legend { grid-area: 3 / 1; align-self: start; margin: 0; }
  .bmt-results :is(#nuage, #intervalles) { grid-area: 2 / 2 / 4 / 3; }
  .bmt-results :is(#capacite-prix, #criteres) p.bmt-x { grid-area: 4 / 2; margin: 0; text-align: start; }
  .bmt-results .bmt-lecture { grid-area: 4 / 1; }
  .bmt-results .bmt-lecture[open] { grid-area: 5 / 1 / 6 / -1; }
}
@media screen and (orientation: landscape) and (min-width: 540px) and (max-height: 360px) {
  .bmt-results :is(#capacite-prix, #criteres) { padding-block: 2px; row-gap: 1px; }
  .bmt-results .bmt-lecture > summary { min-height: 24px; padding-block: 2px; }
}
@media print {
  .bmt-results .bmt-lecture > summary { display: none; }
  .bmt-results .bmt-lecture::details-content { content-visibility: visible; }
  .bmt-results { width: 100%; margin: 0; }
  .bmt-results .bmt-inspect, .bmt-results .bmt-switch, .bmt-results .bmt-pan { display: none !important; }
  .bmt-results .bmt-overflow { overflow: visible; }
  .bmt-results table, .bmt-results #tableau { min-width: 0; }
}
