/* Catalogue des scénarios et comparaison à quatre (équipe Z, charte ielo : vert #466455, paille #DDBF33, Raleway). */
.catalogue-open { background: var(--straw, #DDBF33); color: #1A1A1A; border-color: #8a700f; }
.catalogue-open:hover:not(:disabled) { background: #E5C88D; }
#catalogue-dialog { width: min(1180px, calc(100vw - 32px)); max-height: 90vh; overflow: auto; border: 1px solid #466455; border-radius: 14px; padding: 1.2rem 1.4rem; color: #1A1A1A; }
#catalogue-dialog::backdrop { background: #0008; }
.catalogue-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; position: sticky; top: -1.2rem; background: #fff; padding: .6rem 0; margin-bottom: .9rem; z-index: 2; border-bottom: 4px solid var(--straw, #DDBF33); }
.catalogue-intro { margin-top: 0; max-width: 90ch; }
.catalogue-number-provisional { background: #fff; color: #1A1A1A; border: 2px dashed #466455; }
.catalogue-head h2 { margin: 0; }
.catalogue-tools { display: grid; grid-template-columns: minmax(200px, 2fr) minmax(170px, 1fr) minmax(170px, 1fr) minmax(200px, 2fr) auto; gap: .8rem; align-items: end; margin: .6rem 0 1rem; }
.catalogue-tools label { margin: 0; }
#catalogue-selection { margin: 0; padding: .55rem .7rem; background: #FEF7CD; border-left: 5px solid var(--straw, #DDBF33); font-weight: 700; font-size: .85rem; }
.catalogue-family { margin: 1.2rem 0 1.6rem; }
.catalogue-family h3 { margin: 0 0 .2rem; padding-bottom: .3rem; border-bottom: 2px solid #D2DEC0; }
.catalogue-cards { list-style: none; margin: .6rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: .9rem; }
.catalogue-card { display: flex; flex-direction: column; gap: .35rem; padding: .9rem 1rem; background: #fff; border: 1px solid #D2DEC0; border-left: 6px solid #466455; border-radius: 12px; }
.catalogue-family[data-family="bdt"] .catalogue-card { border-left-color: var(--straw, #DDBF33); }
.catalogue-card-head { display: flex; gap: .6rem; align-items: baseline; }
.catalogue-card-head h4 { margin: 0; font-size: .98rem; line-height: 1.35; }
.catalogue-number { flex: none; min-width: 3.6rem; text-align: center; padding: .15rem .45rem; border-radius: 7px; background: #466455; color: #fff; font-weight: 800; font-size: .85rem; font-variant-numeric: tabular-nums; }
.catalogue-description { margin: .2rem 0; font-size: .87rem; }
.catalogue-description-auto { color: #3b5046; font-style: italic; }
.catalogue-check { margin: 0; font-size: .8rem; padding: .25rem .5rem; border-radius: 6px; }
.catalogue-ok { background: #f2f6ee; color: #2f4a3c; }
.catalogue-stop { background: #fef7cd; color: #54430b; font-weight: 700; }
.catalogue-hypotheses { margin: .2rem 0; padding: .4rem .6rem; background: #f7f9f5; }
.catalogue-hypotheses summary { min-height: 32px; font-size: .85rem; }
.catalogue-hypotheses ul { margin: .3rem 0 0; padding-left: 0; list-style: none; }
.catalogue-hypotheses li { font-size: .82rem; line-height: 1.45; margin: .3rem 0; }
.catalogue-hypotheses small { color: #3b5046; }
.statut { display: inline-block; min-width: 6.4rem; margin-right: .4rem; padding: .05rem .4rem; border-radius: 999px; font-size: .7rem; font-weight: 800; text-align: center; border: 1px solid; vertical-align: 1px; }
.statut-mesure, .statut-documente { background: #e3ede0; color: #22382d; border-color: #466455; }
.statut-declare { background: #e6eef7; color: #123a5c; border-color: #0072B2; }
.statut-estime { background: #f1ece4; color: #4a3417; border-color: #8a6a3a; }
.statut-propose { background: #fef7cd; color: #4a3b06; border-color: #8a700f; }
.statut-hypothese { background: #fbe9e1; color: #6b2a0e; border-color: #B3460E; }
.statut-reference, .statut-inconnu { background: #fff; color: #3b3b3b; border-color: #8a8a8a; border-style: dashed; }
.catalogue-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .2rem .4rem; margin-top: auto; padding-top: .4rem; }
.catalogue-actions small { flex-basis: 100%; margin: 0; }
.catalogue-actions .catalogue-selected { background: #fff; color: #1A1A1A; border: 2px solid #1A1A1A; }
/* Comparaison à quatre */
.multi-compare { margin: 1.5rem 0; padding: 1.1rem 1.2rem; border: 1px solid #466455; border-top: 6px solid var(--straw, #DDBF33); border-radius: 12px; background: #fff; }
.multi-compare h3 { margin-top: 0; }
.multi-bar { display: flex; flex-wrap: wrap; gap: .6rem 1rem; align-items: flex-end; }
.multi-bar label { margin: 0; min-width: 220px; flex: 1; }
.multi-chips { list-style: none; margin: 0; padding: 0; flex-basis: 100%; display: flex; flex-wrap: wrap; gap: .5rem; }
.multi-chip { display: flex; align-items: center; gap: .45rem; padding: .2rem .3rem .2rem .6rem; border: 1px solid #D2DEC0; border-radius: 999px; background: #f7f9f5; font-size: .82rem; }
.multi-chip button { min-height: 32px; padding: .2rem .6rem; margin: 0; }
.multi-swatch { display: inline-block; width: 14px; height: 14px; border-radius: 3px; border: 1px solid #fff; outline: 1px solid #1A1A1A40; flex: none; }
.multi-chip[data-series="1"] .multi-swatch, .multi-table th[data-series="1"] .multi-swatch { border-radius: 0; }
.multi-chip[data-series="2"] .multi-swatch, .multi-table th[data-series="2"] .multi-swatch { clip-path: polygon(50% 0, 100% 100%, 0 100%); }
.multi-chip[data-series="3"] .multi-swatch, .multi-table th[data-series="3"] .multi-swatch { transform: rotate(45deg) scale(.85); }
.multi-chip[data-series="0"] .multi-swatch, .multi-table th[data-series="0"] .multi-swatch { border-radius: 50%; }
.multi-alert { margin: 1rem 0; padding: .8rem 1rem; background: #fef7cd; border: 2px solid #8a700f; border-left-width: 8px; border-radius: 8px; color: #1A1A1A; }
.multi-alert ul { margin: .4rem 0 0; padding-left: 1.2rem; }
.multi-reserve { margin: .6rem 0; padding: .5rem .8rem; border-left: 5px solid #466455; background: #f2f6ee; font-size: .85rem; }
.multi-ok { margin: .8rem 0; padding: .4rem .8rem; border-left: 5px solid #466455; background: #f2f6ee; font-weight: 700; }
.multi-figure { margin: 1.4rem 0; break-inside: avoid; page-break-inside: avoid; }
.multi-figure figcaption { margin-bottom: .45rem; font-size: .88rem; line-height: 1.5; }
.multi-figure figcaption strong { display: block; font-size: 1rem; color: #1A1A1A; }
.multi-chart-wrap { overflow-x: auto; border: 1px solid #D2DEC0; border-radius: 10px; background: #fff; }
.multi-chart, .multi-table, .multi-values-table { font-variant-numeric: lining-nums tabular-nums; font-feature-settings: 'lnum' 1, 'tnum' 1; }
.multi-chart { display: block; width: 100%; min-width: 480px; height: auto; font-family: Raleway, Arial, sans-serif; }
.multi-chart text { font-size: 13px; fill: #1A1A1A; }
.multi-chart text.tick { font-size: 12.5px; fill: #3b3b3b; font-variant-numeric: tabular-nums; }
.multi-chart text.unit { font-size: 12px; font-weight: 700; fill: #3b3b3b; }
.multi-chart text.direct { font-size: 14px; font-weight: 800; }
.multi-chart text.direct[fill="#466455"], .multi-chart text.low-note[fill="#466455"], .multi-chart text.clip[fill="#466455"] { fill: #466455; }
.multi-chart text.direct[fill="#0072B2"], .multi-chart text.low-note[fill="#0072B2"], .multi-chart text.clip[fill="#0072B2"] { fill: #0072B2; }
.multi-chart text.direct[fill="#B3460E"], .multi-chart text.low-note[fill="#B3460E"], .multi-chart text.clip[fill="#B3460E"] { fill: #B3460E; }
.multi-chart text.direct[fill="#1A1A1A"], .multi-chart text.low-note[fill="#1A1A1A"], .multi-chart text.clip[fill="#1A1A1A"] { fill: #1A1A1A; }
.multi-chart text.low-note { font-size: 12.5px; font-weight: 700; paint-order: stroke; stroke: #fff; stroke-width: 4px; }
.multi-chart text.direct-sub, .multi-chart tspan.direct-sub { font-size: 11.5px; font-weight: 600; fill: #3b3b3b; }
.multi-chart text.value.partial { fill: #8a3719; }
.multi-chart text.threshold { font-size: 12px; font-weight: 700; }
.multi-chart text.value { font-size: 13.5px; font-weight: 800; }
.multi-chart text.small { font-size: 12px; fill: #3b3b3b; }
.multi-switch { display: flex; gap: .3rem; margin: 0 0 .4rem; }
.multi-switch button { min-height: 36px; padding: .3rem .8rem; }
.multi-table { font-size: .84rem; }
.multi-table thead th { vertical-align: bottom; text-align: right; background: #f2f6ee; color: #1A1A1A; border-bottom: 3px solid #466455; }
.multi-table thead th[data-series="0"] { border-top: 5px solid #466455; } .multi-table thead th[data-series="1"] { border-top: 5px solid #0072B2; } .multi-table thead th[data-series="2"] { border-top: 5px solid #B3460E; } .multi-table thead th[data-series="3"] { border-top: 5px solid #1A1A1A; }
.multi-values { margin: .4rem 0 0; font-size: .82rem; } .multi-values summary { min-height: 32px; } .multi-values-table td { text-align: right; }
.multi-table thead th:first-child { text-align: left; }
.multi-table thead th strong { margin: 0 .3rem; }
.multi-table thead th small { display: block; font-weight: 400; font-size: .74rem; color: #3b3b3b; max-width: 15rem; margin-left: auto; }
.multi-table tbody th { background: transparent; color: #1A1A1A; font-weight: 700; text-align: left; }
.multi-table tbody th small { display: block; font-weight: 400; color: #3b5046; font-size: .74rem; }
.multi-table th.multi-section { background: #D2DEC0; color: #1A1A1A; font-size: .9rem; }
.multi-table td strong { display: block; white-space: nowrap; }
.multi-table td small { display: block; color: #3b5046; font-size: .74rem; }
.multi-table td.multi-flag strong { color: #8a3719; }
.multi-table td.multi-flag small { color: #6b2a0e; font-weight: 700; }
.multi-empty { margin: 1rem 0; }
@media (max-width: 1100px) { .catalogue-tools { grid-template-columns: 1fr 1fr; } }
.catalogue-family[data-family="bp"] .catalogue-card { border-left-color: #0072B2; }
@media (max-width: 650px) { .catalogue-tools { grid-template-columns: 1fr; } .catalogue-cards { grid-template-columns: 1fr; } }
@media print {
  #catalogue-dialog, .multi-bar, .multi-switch, .catalogue-open { display: none !important; }
  .multi-compare { border: 0; padding: 0; }
  .multi-chart-wrap { overflow: visible; border: 0; }
  .multi-chart { min-width: 0; }
  .multi-values { display: block; } .multi-values:not([open]) > :not(summary) { display: none; }
  .multi-table thead th, .multi-chart { print-color-adjust: exact; -webkit-print-color-adjust: exact; }
}
