/* Comparabilité, explication d'écart et dossier financeurs (charte ielo). */
.compare-badges { display: flex; flex-wrap: wrap; gap: .3rem; margin-top: .35rem; }
.compare-badges .badge { display: inline-block; padding: .12rem .5rem; border-radius: 999px; font-size: .72rem; font-weight: 700; line-height: 1.35; border: 1px solid #466455; background: #f2f6ee; color: #2f4a3c; }
.compare-badges .badge-warn { background: #fff1e6; color: #6b2a0e; border-color: #8a3719; }
.compare-badges .badge-pack { background: #fff; color: #3b5046; border-style: dashed; }
.comparison-incomparable td { background: #fef7cd; }
.comparison-incomparable td:first-child { border-left: 5px solid #8a700f; }
.comparison-note td { padding: .35rem .75rem .7rem; background: #fef7cd; border-top: 0; }
.comparison-note .comparison-mention { margin: .15rem 0; font-size: .82rem; font-weight: 400; color: #3b3b3b; max-width: 78rem; }
.comparison-note .comparison-warn { font-weight: 700; color: #6b2a0e; }
.comparison-note .comparison-stop { font-weight: 700; color: #54430b; }
.comparison-table td .badge { overflow-wrap: normal; word-break: normal; }
.compare-extras { margin: 1.5rem 0; padding: 1.1rem; background: #f2f6ee; border: 1px solid #466455; border-radius: 12px; }
.compare-extras h3 { margin-top: 0; color: #466455; }
.compare-extras label { display: block; margin: .6rem 0; font-weight: 700; }
.compare-extras select { display: block; width: 100%; max-width: 38rem; margin-top: .25rem; }
.compare-extras #explain-verdict { margin: .6rem 0; padding: .5rem .7rem; border-left: 5px solid #466455; background: #fff; }
.compare-extras #dossier-status { min-height: 1.4rem; }
.explain-table { width: 100%; border-collapse: collapse; font-size: .85rem; }
.explain-table caption { text-align: left; font-weight: 700; padding: .4rem 0; }
.explain-table th, .explain-table td { border-bottom: 1px solid #D2DEC0; padding: .45rem .55rem; vertical-align: top; }
.explain-table thead th { background: #D2DEC0; color: #1A1A1A; text-align: left; }
.explain-table tbody th, .explain-table tfoot th { font-weight: 400; text-align: left; background: transparent; color: #1A1A1A; }
.explain-table td { text-align: right; white-space: nowrap; }
.explain-table td small { display: block; color: #3b5046; }
.explain-table tr.residual th, .explain-table tr.residual td { font-style: italic; color: #3b5046; }
.explain-table tr.residual th { color: #3b5046; }
.explain-table tfoot th, .explain-table tfoot td { font-weight: 700; border-top: 2px solid #466455; }
.compare-extras #explain-run { margin-bottom: 1rem; }
.compare-extras h3#dossier-title { margin-top: 1.6rem; padding-top: 1rem; border-top: 1px solid #D2DEC0; }
.effect-figure { margin: 1rem 0; }
.effect-figure figcaption { font-weight: 700; margin-bottom: .3rem; }
.effect-bars { width: 100%; max-width: 860px; height: auto; background: #fff; border: 1px solid #D2DEC0; border-radius: 8px; }
.effect-bars .bar-axis { stroke: #6B6B6B; stroke-width: 1; }
.effect-bars .bar-good { fill: #466455; }
.effect-bars .bar-bad { fill: #A5403C; }
.effect-bars text { font-size: 12px; fill: #1A1A1A; font-family: Raleway, Arial, sans-serif; }
@media (max-width: 800px) {
  .comparison-table { table-layout: auto; min-width: 780px; }
  .comparison-table th:first-child, .comparison-table th:nth-child(2), .comparison-table th:last-child { width: auto; }
  .comparison-note .comparison-mention { position: sticky; left: .5rem; max-width: calc(100vw - 7.5rem); }
}
@media (max-width: 650px) {
  .compare-extras { padding: .8rem; }
  .explain-table td { white-space: normal; }
}
@media print { .compare-extras button, .compare-extras select { display: none; } }
