/* Styles de la page show.php (détails d'un bâtiment) */

*, *::before, *::after { box-sizing: border-box; }

:root {
    --ink: #172033;
    --muted: #5A6474;
    --line: #DCE1E8;
    --card: #fff;
    --bg: #F2F4F7;
    --brand: #17305A;
}

body {
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    background: var(--bg);
    color: var(--ink);
    margin: 0;
    line-height: 1.45;
}

.page {
    max-width: 1040px;
    margin: 0 auto;
    padding: 1.25rem 1rem 3rem;
}

code {
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: 0.85em;
    background: #eef1f6;
    padding: 1px 5px;
    border-radius: 4px;
    word-break: break-all;
}

/* ── En-tête ─────────────────────────────────────────────────────────────── */
.hero {
    background: #17305A;
    color: #fff;
    border-radius: 14px;
    padding: 1.4rem 1.6rem 1.2rem;
}
.hero .brand {
    color: #b9c6ff;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    text-decoration: none;
}
.hero .brand:hover { text-decoration: underline; }
.hero-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}
.back-btn {
    background: rgba(255, 255, 255, 0.14);
    color: #fff;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
    padding: 0.35rem 0.9rem;
    border-radius: 999px;
    white-space: nowrap;
    transition: background 0.15s;
}
.back-btn:hover { background: rgba(255, 255, 255, 0.26); }
.back-btn:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.hero h1 {
    margin: 0.3rem 0 0.7rem;
    font-size: clamp(1.35rem, 3.4vw, 1.9rem);
    line-height: 1.2;
}
.stats {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 0.6rem;
    margin: 0 0 1rem;
}
.stat {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 0.6rem 0.75rem 0.65rem;
    min-width: 0;
}
.stat dt {
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    opacity: 0.75;
}
.stat dd {
    margin: 0.2rem 0 0;
    font-size: 1.2rem;
    font-weight: 700;
    line-height: 1.15;
    overflow-wrap: anywhere;
}
.stat dd small { font-size: 0.75em; font-weight: 600; opacity: 0.85; }
.stat-hint { display: block; margin-top: 0.2rem; font-size: 0.7rem; line-height: 1.25; opacity: 0.7; }
.stat.missing dd { font-size: 0.95rem; font-weight: 500; opacity: 0.5; }
.hero .ids { margin: 0; font-size: 0.78rem; opacity: 0.7; }
.hero .ids code { background: rgba(255, 255, 255, 0.12); color: #fff; }
.hero .back { color: #b9c6ff; }

/* ── En-tête + carte de localisation côte à côte ────────────────────────── */
.top { margin-bottom: 1.5rem; }
.top.has-map {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 1rem;
}
/* À côté de la carte, l'en-tête est moins large : 3 tuiles par rangée au lieu de 6 */
@media (min-width: 901px) {
    .top.has-map .stats { grid-template-columns: repeat(3, 1fr); }
}
.map-col { display: flex; flex-direction: column; gap: 0.4rem; min-width: 0; }
.map-card {
    position: relative;
    flex: 1;
    min-height: 260px;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
    background: #dfe6ee;
}
/* Deux classes : MapLibre impose "position: relative" à son conteneur */
.map-card .location-map { position: absolute; inset: 0; }
.map-toggle {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 2;
    display: flex;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
    overflow: hidden;
}
.map-toggle button {
    border: 0;
    background: #fff;
    padding: 0.45rem 0.9rem;
    font: inherit;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
}
.map-toggle button + button { border-left: 1px solid var(--line); }
.map-toggle button[aria-pressed="true"] { background: var(--brand); color: #fff; }
.map-unavailable { padding: 2rem 1rem; text-align: center; color: var(--muted); }
/* Écrans étroits : pas de carte (et show-map.js ne charge alors rien) */
@media (max-width: 900px) {
    .top.has-map { display: block; }
    .map-col { display: none; }
}

/* ── Sections ────────────────────────────────────────────────────────────── */
section { margin-bottom: 1.8rem; }
section > h2 {
    font-size: 1.15rem;
    margin: 0 0 0.8rem;
}
section > h2 small, .card h3 small {
    font-weight: 400;
    color: var(--muted);
    font-size: 0.78em;
    margin-left: 0.4rem;
}

.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
    gap: 1rem;
    align-items: stretch;
}
.card {
    background: var(--card);
    border-radius: 14px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
    padding: 1.1rem 1.2rem 1.2rem;
}
.card h3 { margin: 0 0 0.9rem; font-size: 1.05rem; }
.card .note { color: var(--muted); font-size: 0.82rem; margin: 0.6rem 0 0; }
.card .empty { color: var(--muted); font-style: italic; margin: 0.4rem 0; }

/* ── Étiquettes DPE / GES ────────────────────────────────────────────────── */
.verdict { display: flex; align-items: center; gap: 0.9rem; margin-bottom: 0.9rem; }
.letter {
    flex: none;
    width: 4rem;
    height: 4rem;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.4rem;
    font-weight: 800;
    box-shadow: inset 0 -3px 0 rgba(0, 0, 0, 0.12);
}
.verdict-text { margin: 0; font-weight: 700; font-size: 1.05rem; }
.figure { margin: 0.1rem 0 0; color: var(--muted); font-size: 0.9rem; }
.figure strong { color: var(--ink); font-size: 1.15rem; }
.figure small { font-size: 0.85em; }

.scale { display: flex; gap: 3px; }
.scale .seg {
    flex: 1;
    text-align: center;
    padding: 0.28rem 0;
    font-weight: 700;
    font-size: 0.8rem;
    border-radius: 4px;
    opacity: 0.45;
}
.scale .seg.active {
    opacity: 1;
    transform: scaleY(1.35);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
    outline: 2px solid var(--ink);
    outline-offset: 1px;
}

/* Couleurs DPE (identiques à la carte) */
.c-dpe-A { background: #319834; color: #fff; }
.c-dpe-B { background: #33cc31; color: #10270f; }
.c-dpe-C { background: #cbfc34; color: #1b2a00; }
.c-dpe-D { background: #fbfe06; color: #2a2a00; }
.c-dpe-E { background: #fdb515; color: #2e1d00; }
.c-dpe-F { background: #f9702a; color: #2b1200; }
.c-dpe-G { background: #d7191c; color: #fff; }
/* Couleurs GES (du plus clair au plus foncé) */
.c-ges-A { background: #e9e3f3; color: #2b2340; }
.c-ges-B { background: #d2c4e8; color: #2b2340; }
.c-ges-C { background: #b9a2da; color: #241a3a; }
.c-ges-D { background: #9a7fc8; color: #160f27; }
.c-ges-E { background: #7b5bb0; color: #fff; }
.c-ges-F { background: #5f3f97; color: #fff; }
.c-ges-G { background: #43266f; color: #fff; }

/* Répartition des DPE du bâtiment */
.dist-wrap { margin-top: 1.1rem; border-top: 1px solid var(--line); padding-top: 0.8rem; }
.dist-title { margin: 0 0 0.4rem; font-size: 0.8rem; color: var(--muted); }
.dist { display: flex; gap: 2px; border-radius: 6px; overflow: hidden; }
.dist-seg {
    min-width: 2.2rem;
    padding: 0.3rem 0.2rem;
    text-align: center;
    font-size: 0.78rem;
    font-weight: 700;
    white-space: nowrap;
}
.dist-seg b { font-weight: 500; opacity: 0.85; margin-left: 0.15rem; }

/* ── Chaleur en été ──────────────────────────────────────────────────────── */
.letter.heat {
    width: 4.8rem;
    flex-direction: column;
    gap: 0;
    font-size: 1.45rem;
    line-height: 1;
    letter-spacing: -0.02em;
}
.letter.heat small { font-size: 0.7rem; font-weight: 700; margin-top: 0.15rem; opacity: 0.8; }
.heat-low  { background: #ffe69a; color: #4a3500; }
.heat-mid  { background: #ffb347; color: #3d2200; }
.heat-high { background: #e3402b; color: #fff; }
.gauge {
    position: relative;
    height: 0.7rem;
    border-radius: 999px;
    background: linear-gradient(90deg, #ffe69a, #ffb347 50%, #e3402b);
    margin-top: 1.1rem; /* même hauteur que l'échelle A–G des autres cartes */
}
.gauge-marker {
    position: absolute;
    top: -4px;
    width: 4px;
    height: calc(100% + 8px);
    margin-left: -2px;
    background: var(--ink);
    border-radius: 2px;
    box-shadow: 0 0 0 2px #fff;
}
.gauge-legend { display: flex; justify-content: space-between; font-size: 0.72rem; color: var(--muted); margin-top: 0.2rem; }
.card .more { margin: 0.8rem 0 0; font-size: 0.82rem; }
.card .more a { color: var(--brand); text-decoration: none; font-weight: 600; }
.card .more a:hover { text-decoration: underline; }

.summer-detail .detail-cols {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}
.summer-detail h3 { margin: 0 0 0.5rem; font-size: 0.95rem; }
.summer-detail p { margin: 0 0 0.6rem; font-size: 0.9rem; }
.factors { margin: 0.2rem 0 0; padding-left: 1.1rem; font-size: 0.9rem; }
.factors li { margin-bottom: 0.4rem; }
.factors strong { font-weight: 600; }

/* ── En bref ─────────────────────────────────────────────────────────────── */
.facts {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 0.7rem;
}
.facts li {
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
    background: var(--card);
    border-radius: 12px;
    padding: 0.8rem 0.9rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.07);
}
.fact-icon { font-size: 1.5rem; line-height: 1.2; }
.fact-label { margin: 0; font-size: 0.75rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.04em; }
.fact-value { margin: 0.05rem 0 0; font-weight: 600; }
.fact-detail { margin: 0.1rem 0 0; font-size: 0.78rem; color: var(--muted); }
section > .note { color: var(--muted); font-size: 0.82rem; margin: 0.6rem 0 0; }

/* ── Risques ─────────────────────────────────────────────────────────────── */
.risks {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}
.risks li {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    background: var(--card);
    border-radius: 999px;
    padding: 0.3rem 0.35rem 0.3rem 0.9rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.07);
    font-size: 0.88rem;
}
.risk-value { padding: 0.15rem 0.7rem; border-radius: 999px; font-weight: 700; font-size: 0.8rem; }
.risk-low .risk-value { background: #d9f2dc; color: #14532d; }
.risk-mid .risk-value { background: #ffe7b8; color: #7a4a00; }
.risk-high .risk-value { background: #f9c9c9; color: #7f1111; }

/* ── Sections repliables ─────────────────────────────────────────────────── */
/* Limitées à la classe "fold" : MapLibre utilise aussi <details>/<summary> pour son bouton d'attribution */
details.fold {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.08);
    margin-bottom: 0.75rem;
    overflow: hidden;
}

.fold > summary {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    cursor: pointer;
    padding: 0.85rem 1.2rem;
    font-weight: 600;
    font-size: 0.95rem;
    list-style: none;
    user-select: none;
    background: #fff;
    transition: background 0.15s;
}

.fold > summary::-webkit-details-marker { display: none; }

.fold > summary::before {
    content: '▶';
    font-size: 0.65rem;
    color: #6c7a8d;
    transition: transform 0.2s;
    flex-shrink: 0;
}

.fold[open] > summary::before {
    transform: rotate(90deg);
}

.fold > summary:hover {
    background: #f0f4ff;
}

.section-content {
    padding: 0 1.2rem 1rem;
    border-top: 1px solid #eef0f4;
}
.raw details.fold { box-shadow: none; border: 1px solid #eef0f4; }

/* Téléchargement */
.download-links {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    padding: 0.5rem 0;
}

.download-links a {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: var(--brand);
    color: #fff;
    text-decoration: none;
    padding: 0.45rem 1rem;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 500;
    transition: background 0.15s;
}

.download-links a:hover {
    background: #16213e;
}

/* Tables */
table {
    width: 100%;
    table-layout: fixed;
    border-collapse: collapse;
    margin-top: 0.5rem;
    font-size: 0.875rem;
}

td {
    padding: 0.3rem 0.5rem;
    vertical-align: top;
}

td:nth-child(1) { width: 35%; }
td:nth-child(2) { width: 35%; }
td.epjson-col   { width: 30%; }

td > div {
    overflow-x: auto;
    white-space: nowrap;
}

tr:nth-child(odd) td {
    background-color: #eef5ff;
}

tr:nth-child(even) td {
    background-color: #f8f9fb;
}

td:first-child {
    color: #4a5568;
    font-weight: 500;
}

/* Variables vides */
.empty-vars {
    margin-top: 0.6rem;
    font-size: 0.8rem;
    color: #9aa5b4;
    font-style: italic;
}

/* Section "Pas de résultat" */
.no-result {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.08);
    margin-bottom: 0.75rem;
    overflow: hidden;
}

.no-result > summary {
    color: #9aa5b4;
}

.no-result ul {
    margin: 0;
    padding: 0 1.2rem 1rem 2.2rem;
    font-size: 0.875rem;
    color: #9aa5b4;
}

/* ── Badges epjson ─────────────────────────────────────────────────────────── */
.epjson-badge {
    display: inline-block;
    font-size: 0.7em;
    font-family: ui-monospace, monospace;
    padding: 1px 6px;
    border-radius: 4px;
    vertical-align: middle;
    white-space: normal;
    word-break: break-word;
    font-weight: 400;
}
.epjson-badge.high  { background: #d4edda; color: #155724; border: 1px solid #b7dfc5; }
.epjson-badge.medium{ background: #fff3cd; color: #856404; border: 1px solid #ffeaa0; }
.epjson-badge.low   { background: #f0f0f0; color: #6c757d; border: 1px solid #d6d6d6; }

/* Variables vides avec mapping epjson */
.empty-epjson {
    display: inline-block;
    padding: 0 4px;
    border-radius: 3px;
    font-style: normal;
    cursor: help;
}
.empty-epjson.high   { background: #f8d7da; color: #721c24; }
.empty-epjson.medium { background: #fff3cd; color: #856404; }
.empty-epjson.low    { color: #9aa5b4; }

/* ── Note de précision de la simulation ────────────────────────────────────── */
.precision-score {
    margin-top: 0.8rem;
    padding-top: 0.8rem;
    border-top: 1px solid var(--line);
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    flex-wrap: wrap;
}
.precision-grade {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.2rem;
    height: 2.2rem;
    border-radius: 50%;
    font-size: 1.1rem;
    font-weight: 800;
    flex-shrink: 0;
}
.precision-info {
    font-size: 0.875rem;
    padding-top: 0.35rem;
}
.precision-details {
    list-style: none;
    margin: 0.4rem 0 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.3rem 0.6rem;
    font-size: 0.78rem;
    width: 100%;
}
.precision-details li { color: #9aa5b4; }
.precision-details li::before { content: '✗ '; color: #c0392b; }
.precision-details li.ok { color: var(--ink); }
.precision-details li.ok::before { content: '✓ '; color: #1e8e3e; }

.foot { margin-top: 2rem; color: var(--muted); font-size: 0.78rem; }
.foot a { color: inherit; }

/* ── Écrans moyens et petits ───────────────────────────────────────────────── */
@media (max-width: 900px) {
    .stats { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 560px) {
    .stats { grid-template-columns: repeat(2, 1fr); }
    .hero { padding: 1.1rem 1rem; }
    table, tbody, tr, td { display: block; width: 100% !important; }
    tr { margin-bottom: 0.4rem; }
}

/* ── Valeurs retenues par le modèle epJSON ─────────────────────────────────── */
.choices-table { width: 100%; border-collapse: collapse; font-size: 0.85rem; }
.choices-table th, .choices-table td { padding: 0.35rem 0.6rem; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.choices-table th { background: #f1f4f9; font-weight: 600; white-space: nowrap; }
.choices-table td:first-child { font-weight: 600; white-space: nowrap; }
.choices-table td:last-child { color: var(--muted); }
.choices-table tr.is-default td { font-style: italic; color: var(--muted); }
@media (max-width: 640px) { .choices-table { display: block; overflow-x: auto; } }

/* Données prises en compte mais hors de la note de précision : pas de croix rouge quand elles manquent */
.precision-score .info-label { width: 100%; margin: 0.5rem 0 0; }
.precision-details.info { margin-top: 0.2rem; }
.precision-details.info li::before { content: '– '; color: #9aa5b4; }
.precision-details.info li.ok::before { content: '✓ '; color: #1e8e3e; }

/* ── Simulation dans le navigateur (anciens styles de la page de simulation ; le simulateur a ses propres styles dans sim/css/app.css) ── */
.sim-open {
    display: inline-block;
    text-decoration: none;
    padding: 0.5rem 0.9rem;
    border: 2px solid var(--brand);
    border-radius: 8px;
    background: var(--brand);
    color: #fff;
    font: inherit;
    font-weight: 600;
    cursor: pointer;
}
.sim-open:disabled { opacity: 0.6; cursor: default; }
.sim-panel { margin-top: 0.8rem; }
.sim-panel .note { margin: 0 0 0.6rem; }
.sim-panel .note:last-child { margin-bottom: 0; }
.sim-controls { display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem 1rem; margin: 0 0 0.5rem; }
.sim-controls select, .sim-controls button { font: inherit; padding: 0.4rem 0.8rem; border-radius: 6px; }
.sim-go, .dh-go { background: var(--brand); color: #fff; border: 0; cursor: pointer; font-weight: 600; }
.sim-go:disabled, .dh-go:disabled { background: #9aa5b4; cursor: default; }
.sim-controls label { flex: 1 1 22rem; display: flex; align-items: center; gap: 0.5rem; min-width: 0; }
.sim-controls label:first-child { flex-grow: 2; }
.sim-controls select { flex: 1; min-width: 0; }
.sim-cancel { background: #fff; border: 1px solid var(--line); cursor: pointer; }
.sim-status:empty { display: none; }
.sim-status { min-height: 1.2em; margin: 0.2rem 0; color: var(--muted); font-size: 0.9rem; }
.sim-status.sim-error { color: #c0392b; }
.sim-table .num, .sim-table th.num { text-align: right; white-space: nowrap; }
.sim-table tfoot th { background: #f1f4f9; border-top: 2px solid var(--line); }

/* Barre de progression et graphiques de la simulation (simulation.js) */
.sim-bar { height: 12px; background: #e3e7ee; border-radius: 6px; overflow: hidden; margin: 0.4rem 0; }
.sim-bar-fill { height: 100%; width: 0; background: linear-gradient(90deg, #3A6FC4, #17305A); border-radius: 6px; transition: width 0.25s ease-out; }
.sim-charts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; margin-top: 0.8rem; }
.sim-chart { margin: 0; padding: 0.6rem 0.8rem; background: #fff; border: 1px solid var(--line); border-radius: 10px; min-width: 0; }
.sim-chart-wide { grid-column: 1 / -1; }
.sim-chart figcaption { font-weight: 600; font-size: 0.9rem; margin-bottom: 0.4rem; }
.sim-chart figcaption small { font-weight: 400; color: var(--muted); }
.sim-chart-box { position: relative; height: 280px; }
.sim-chart-wide .sim-chart-box { height: 320px; }
.sim-month { font: inherit; padding: 0.15rem 0.4rem; }
@media (max-width: 760px) { .sim-charts { grid-template-columns: minmax(0, 1fr); } }

/* ── Bouton de simulation en évidence dans l'en-tête de la fiche (show.php) ───── */
.sim-cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 1rem; margin: 0.9rem 0 1.1rem; }
.sim-cta {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    border-radius: 999px;
    background: #ffd166;
    color: var(--ink);
    font-size: 1.05rem;
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    transition: transform 0.12s, background 0.12s;
}
.sim-cta:hover { background: #ffdc8c; transform: translateY(-1px); }
.sim-cta:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
.sim-cta-note { color: #c8d3f5; font-size: 0.85rem; }

/* ── Page de simulation (simulation.php) ─────────────────────────────────────── */
.hero .sim-back { margin: 0.9rem 0 0.2rem; }
.hero .sim-back a { color: #b9c6ff; font-size: 0.85rem; }
.hero h1 + .ids { margin-bottom: 0.3rem; }
.sim-page { margin-top: 1.5rem; }
.sim-page h3 { margin-bottom: 0.5rem; }

/* ── Degrés-heures d'inconfort d'été (simulation.js) ─────────────────────────── */
.dh-summary { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 0.8rem; margin: 0.8rem 0; }
.dh-card { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 0.7rem 0.9rem; display: flex; flex-direction: column; gap: 0.15rem; }
.dh-label { font-size: 0.78rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.03em; }
.dh-value { font-size: 1.6rem; line-height: 1.2; }
.dh-sub { font-size: 0.8rem; color: var(--muted); }
.dh-notes, .sim-panel .dh-notes { margin: 1rem 0 0; padding: 0.6rem 0.9rem; background: #fff8e6; border-left: 4px solid #e0a100; border-radius: 6px; }
.dh-result:not(:empty) { padding-bottom: 1.2rem; }
.dh-charts { margin-top: 1rem; }

/* Comparaison avec les références de la BDNB (simulation.js) */
.sim-compare { margin-top: 1.4rem; }
.sim-compare h4 { margin: 0 0 0.4rem; font-size: 1.05rem; }
.sim-compare caption { text-align: left; font-weight: 600; font-size: 0.88rem; padding: 0.3rem 0; }
.sim-compare .sim-table { margin-top: 0.6rem; }
.sim-compare small { color: var(--muted); }
.cal-params { margin: 0.4rem 0; padding-left: 1.2rem; }
.sim-compare .sim-controls { margin-top: 0.6rem; }
