/* Extension résultats : commandes et légendes restent au contact du modèle. */
.result-visual{margin:28px 0;padding:24px;border:1px solid #ced9ed;border-radius:20px;background:#f3f6fb;color:#234368;overflow:hidden}.rv-heading{margin-bottom:16px}.rv-heading h2{margin:8px 0!important;font-size:clamp(23px,3vw,32px)!important;line-height:1.2!important}.rv-heading .eyebrow{font-size:11px;letter-spacing:.1em}.rv-subtitle{font-weight:700;margin:6px 0}.rv-workspace{background:#fff;border:1px solid #d5dfee;border-radius:14px;padding:18px}.rv-choices{display:flex;flex-wrap:wrap;gap:7px;margin-bottom:12px}.result-visual button{font:inherit;color:#234368;border:1px solid #8dafb0;border-radius:8px;background:#fff;min-height:44px;padding:9px 12px;line-height:1.3;cursor:pointer;font-size:14px}.result-visual button[aria-pressed=true]{background:#2157d7;border-color:#2157d7;color:#fff}.result-visual button:hover{border-color:#183660;box-shadow:inset 0 0 0 1px #183660}.result-visual button:focus-visible,.result-visual summary:focus-visible,.result-visual a:focus-visible{outline:3px solid #c88831;outline-offset:3px}.result-visual button:disabled{cursor:default;color:#667571;border-color:#d3dcd9;background:#f2f5f3;box-shadow:none}.rv-drawing{min-width:0;width:100%;margin:10px auto;transform-origin:center}.rv-svg{display:block;width:100%;height:auto;max-height:320px}.rv-svg text{font-family:inherit;font-size:17px;fill:#234368}.rv-svg .rv-drawing-note{font-size:13px}.rv-caption{margin:16px 0 0;padding:14px 0 0;border-top:1px solid #d9e1ee;font-size:16px;line-height:1.6;color:#234368}.rv-alternative,.rv-provenance{margin-top:16px;font-size:15px}.result-visual summary{cursor:pointer;padding:6px 0;font-weight:650}.rv-alternative p,.rv-alternative li,.rv-provenance p{font-size:15px!important;line-height:1.6!important}.rv-alternative li{margin:10px 0}.rv-limit{font-size:14px!important;line-height:1.55!important;margin:16px 0 0!important;padding-left:12px;border-left:3px solid #d4ad61;color:#465c55}.rv-provenance a{color:#2157d7;text-decoration:underline}.rv-provenance p:last-child{font-size:12px!important;color:#5a6f68}.rv-report{max-width:540px;margin:auto;border:1px solid #cedbd8;box-shadow:0 7px 22px #2b544b0b;border-radius:10px;overflow:hidden;background:#fff}.rv-report-top{padding:15px 18px;font-size:11px;letter-spacing:.08em;background:#eef2f7;border-bottom:1px solid #cedbd8}.rv-report-line{display:flex;align-items:center;gap:12px;padding:12px 16px;border-left:4px solid transparent;border-bottom:1px solid #edf1ee}.rv-report-line:last-child{border-bottom:0}.rv-report-line.is-chosen{background:#e8efff;border-left-color:#2157d7}.rv-number{display:grid;place-items:center;flex:0 0 25px;height:25px;border-radius:50%;border:1px solid #8eaba6;font-size:12px}.is-chosen .rv-number{background:#2157d7;color:#fff}.rv-report-line strong,.rv-report-line div>span{display:block;font-size:14px;line-height:1.45}.rv-report-line div>span{font-size:14px;color:#61746d}.rv-marker{margin-left:auto;font-weight:700;color:#2157d7}.rv-population-head{display:flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:8px 15px;margin:15px 0}.rv-population-head strong{font-size:30px;color:#2157d7;font-family:Georgia,serif}.rv-population-head span{font-size:14px}.rv-people{display:block;width:100%;max-width:440px;height:auto;margin:10px auto}.rv-person-present{fill:#2157d7}.rv-person-other{fill:#fff;stroke:#7a9994;stroke-width:.8}.rv-key{display:flex;gap:6px;justify-content:center;flex-wrap:wrap;font-size:13px!important}.rv-key-mark{color:#2157d7}.rv-key-empty{margin-left:10px;color:#486e65}.rv-table-wrap{overflow-x:auto;max-width:100%}.rv-table-wrap table{border-collapse:collapse;font-size:13px;width:100%;min-width:360px;background:#fff}.rv-table-wrap caption{text-align:left;font-size:14px;font-weight:600;margin:8px 0}.rv-table-wrap th,.rv-table-wrap td{padding:8px;border:1px solid #c9d9d2;text-align:left}.rv-table-wrap thead{background:#e8efff}.rv-bone{fill:#e7dfcf;stroke:#9b9587;stroke-width:2}.rv-disc-shape{fill:#a7bdec;stroke:#2157d7;stroke-width:3}.rv-nerve{fill:none;stroke:#b17c2f;stroke-width:9;stroke-linecap:round}.rv-leader{fill:none;stroke:#77918b;stroke-width:1.5}.rv-reference{fill:#e8efff;stroke:#91aca2;stroke-width:2}.rv-axis{stroke:#638078;stroke-width:2;fill:none}.rv-band-bound{stroke:#91aca2;stroke-dasharray:4 4;fill:none}.rv-value{fill:#2157d7;stroke:#fff;stroke-width:3}.rv-day{padding:8px 0}.rv-fictitious{font-size:11px!important;letter-spacing:.07em;text-align:center;margin:0 0 18px!important}.rv-timeline-row{margin:14px 0}.rv-timeline-row>strong{display:block;font-size:14px;margin-bottom:7px}.rv-timeline{display:flex;gap:3px;height:45px}.rv-segment{flex:1;border-radius:4px;display:grid;place-items:center;min-width:0;font-size:12px;font-weight:700}.rv-segment-s{background:#edf1ed;color:#435e55;border:1px solid #9db4ab}.rv-segment-d{background:#e8d7b8;color:#59441f;border:1px solid #bd9c63}.rv-segment-m{background:#2157d7;color:#fff;border:1px solid #2157d7}.rv-timeline-key{display:flex;flex-wrap:wrap;gap:7px 15px;padding:0!important;margin:18px 0 0!important;list-style:none!important}.rv-timeline-key li{font-size:13px!important;margin:0!important;display:flex;align-items:center;gap:6px}.rv-timeline-key li>span{display:grid;place-items:center;width:22px;height:22px;border-radius:4px;font-size:12px}.rv-day-change{font-size:14px!important;line-height:1.5!important;margin:15px 0 0!important}.rv-adaptation{margin-top:15px}.rv-pathology-cards{display:grid;grid-template-columns:1fr 1fr;gap:12px}.rv-pathology-card{border:1px solid #cbded5;background:#f3f6fb;border-radius:12px;padding:12px;display:flex;flex-direction:column}.rv-card-icon{height:130px;max-height:130px}.rv-outline{stroke:#2157d7;fill:#e8efff;stroke-width:7;stroke-linecap:round;stroke-linejoin:round}.rv-pathology-card button{text-align:left;display:flex;gap:8px;align-items:center;justify-content:space-between;background:#fff;flex-shrink:0}.rv-pathology-card button[aria-expanded=true]{border-color:#2157d7;box-shadow:inset 0 0 0 1px #2157d7}.rv-pathology-card p{font-size:15px!important;line-height:1.6!important;margin:12px 0 0!important}.rv-card-bridge{font-size:14px!important;text-align:center;margin:14px 0 0!important}
@media(max-width:600px){.result-visual{padding:15px;margin:22px 0;border-radius:14px}.rv-workspace{padding:12px}.rv-heading h2{font-size:24px!important}.rv-choices{gap:6px}.rv-choices button{padding:9px;font-size:13px;flex-grow:1}.rv-report-line{padding:10px 8px;gap:8px}.rv-report-top{font-size:10px;padding:12px 10px}.rv-report-line strong{font-size:14px}.rv-report-line div>span{font-size:14px}.rv-caption{font-size:15px}.rv-population-head strong{font-size:26px}.rv-pathology-cards{grid-template-columns:1fr}.rv-pathology-card{display:grid;grid-template-columns:66px 1fr;align-items:center;gap:8px;padding:10px}.rv-card-icon{height:72px;margin:auto}.rv-pathology-card p{grid-column:1/-1}.rv-pathology-card button{font-size:14px}.rv-timeline{gap:2px;height:37px}.rv-segment{font-size:10px}.rv-timeline-key{gap:7px}.rv-key{font-size:12px!important}.rv-svg text{font-size:20px}.rv-svg .rv-drawing-note{font-size:14px}}
@media(prefers-reduced-motion:reduce){.result-visual *{animation:none!important;transition:none!important;scroll-behavior:auto!important}}
@media print{.result-visual{break-inside:avoid;border-color:#aaa;background:white}.rv-animation-controls,.rv-workspace{border:0;padding:0}.rv-alternative{display:block}.rv-alternative[open]{display:block}.rv-svg{max-height:240px}.rv-provenance{font-size:11px}}

.rv-diagram-key{display:flex;justify-content:center;flex-wrap:wrap;gap:8px 18px;list-style:none!important;padding:0!important;margin:8px 0!important}.rv-diagram-key li{font-size:14px!important;margin:0!important;display:flex;gap:7px;align-items:center}.rv-diagram-key strong{color:#2157d7}.rv-diagram-note,.rv-band-label{text-align:center;font-size:14px!important;line-height:1.45!important;margin:8px 0!important}.rv-svg .rv-reper{font-size:32px;font-weight:700;fill:#2157d7}.rv-band{max-height:220px}

.rv-population-head{flex-direction:column;gap:5px;text-align:center}.rv-population-head .rv-population-denominator{font-size:14px;font-weight:650;line-height:1.45;color:#234368;max-width:100%}

/* Premier dessin spécifique : anatomie sans flèche de migration. */
.rv-specific-anatomy{margin:0 0 20px;padding:14px;background:#f8fafc;border:1px solid #d5dfee;border-radius:12px}.rv-view-label{font-size:14px!important;font-weight:650;text-align:center;margin:0!important}.rv-pelvis{fill:#ede8de;stroke:#a8a193;stroke-width:2}.rv-uterus{fill:#dde8f7;stroke:#456b9a;stroke-width:3}.rv-endometrium{fill:#c995ae;stroke:#8b4969;stroke-width:2}.rv-cavity{fill:#fff}.rv-external-tissue{fill:#c995ae;stroke:#8b4969;stroke-width:3;stroke-dasharray:4 2}.rv-anatomy-key{display:grid;grid-template-columns:1fr 1fr;gap:10px 18px;list-style:none!important;padding:0!important;margin:10px 0!important}.rv-anatomy-key li{font-size:14px!important;line-height:1.45!important;margin:0!important}.rv-anatomy-key strong,.rv-anatomy-key span{display:block}.rv-specific-anatomy figcaption{font-size:14px;line-height:1.5;color:#536276;border-top:1px solid #d5dfee;padding-top:10px;margin-top:10px}@media(max-width:600px){.rv-specific-anatomy{padding:10px}.rv-anatomy-key{grid-template-columns:1fr;gap:8px}}

/* A06/A08 : états fixes et comparaisons utiles, sans commande de transport. */
.rv-disc-reference{fill:none;stroke:#45617f;stroke-width:2;stroke-dasharray:6 5}.rv-reference-definition{font-size:14px!important;line-height:1.6!important;margin:14px 0!important}.rv-reference-definition strong{display:block;margin-bottom:5px}.rv-context-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:9px;margin-top:18px}.rv-context-grid>div{padding:12px;border:1px solid #d5dfee;border-radius:9px;background:#f5f8fc}.rv-context-grid strong,.rv-context-grid span{display:block;font-size:14px;line-height:1.5}.rv-context-grid strong{margin-bottom:5px}.rv-segment-empty{border:1px solid #d9e0e9;background:#f7f9fc;color:#657c96}.rv-organisation{margin-top:16px;padding:12px 14px;border-left:3px solid #2157d7;background:#edf3ff;font-size:14px}.rv-organisation p{font-size:14px!important;line-height:1.5!important;margin:5px 0 0!important}.rv-organisation[data-day-adapted=true]{border-left-color:#b0833d}.rv-bone-comparison{display:grid;grid-template-columns:1fr 1fr;gap:18px;max-width:480px;margin:auto}.rv-bone-comparison h3{text-align:center;font-size:16px!important;margin:12px 0 8px!important}.rv-bone-envelope{fill:#f1e9da;stroke:#afa087;stroke-width:8}.rv-bone-strut{fill:none;stroke:#bba98a;stroke-width:10;stroke-linecap:round}.rv-bone-sample{max-height:260px}.rv-specific-story{margin:0 0 20px;padding:16px;border:1px solid #d5dfee;border-radius:12px;background:#f7f9fc}.rv-specific-story p{font-size:14px!important;line-height:1.55!important}.rv-explanation-flow{list-style:none!important;display:grid;grid-template-columns:repeat(3,1fr);gap:12px;padding:0!important;margin:15px 0!important;counter-reset:rvflow}.rv-explanation-flow li{counter-increment:rvflow;border:1px solid #cddbed;border-radius:10px;background:#fff;padding:15px;margin:0!important;font-size:14px!important;line-height:1.5!important}.rv-explanation-flow li:before{content:counter(rvflow);display:grid;place-items:center;border-radius:50%;width:25px;height:25px;background:#e8efff;color:#2157d7;font-weight:700;margin-bottom:9px}.rv-explanation-flow strong,.rv-explanation-flow span{display:block}.rv-explanation-flow strong{margin-bottom:6px}.rv-cartilage{fill:#b1c7ea;stroke:#456b9a;stroke-width:2}.rv-synovium{fill:none;stroke:#a67595;stroke-width:9;stroke-linecap:round}.rv-migraine-columns{display:grid;grid-template-columns:1fr 1fr;gap:14px;margin:14px 0}.rv-migraine-columns>div{background:#fff;border:1px solid #d5dfee;border-radius:10px;padding:15px}.rv-migraine-columns h3{font-size:16px!important;margin:0 0 10px!important}.rv-migraine-columns li{font-size:14px!important;line-height:1.6!important}.rv-migraine-columns ol{padding-left:20px}.rv-pathology-card{display:block!important}.rv-pathology-card button{width:100%}.rv-timeline-key li{font-size:14px!important}.rv-fictitious{font-size:12px!important;line-height:1.5!important}
@media(max-width:600px){.rv-context-grid,.rv-explanation-flow,.rv-migraine-columns{grid-template-columns:1fr}.rv-specific-story{padding:11px}.rv-context-grid>div{padding:10px}.rv-bone-comparison{gap:10px}.rv-bone-envelope{stroke-width:6}.rv-bone-strut{stroke-width:8}.rv-timeline-row>strong{font-size:14px;line-height:1.5}.rv-timeline-key li{font-size:14px!important}.rv-fictitious{font-size:12px!important}}
