/* Otoolia — Simulateur de prêt immobilier (styles limités à .pr / .pr-*) */
.pr { --pr-accent: #16a34a; }
.pr-head h1 { font-size: clamp(1.6rem, 4vw, 2.3rem); margin-bottom: .2em; }
.pr-note { display: flex; gap: 10px; align-items: flex-start; background: var(--ot-surface-2); border-radius: var(--ot-radius); padding: 10px 14px; font-size: .88rem; margin: 12px 0; }
.pr-note p { margin: 0; }
.pr-main { display: grid; gap: var(--ot-space); grid-template-columns: minmax(0, 1fr); align-items: start; }
@media (min-width: 1040px) { .pr-main { grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); } .pr-side { position: sticky; top: 12px; } }
.pr-main > *, .pr-wide > * { min-width: 0; }
.pr-sec { margin-bottom: var(--ot-space); }
.pr-sec h2, .pr-out h2 { font-size: 1.08rem; margin: 0 0 10px; }
.pr-row { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: flex-end; margin-bottom: 8px; }
.pr-f { display: flex; flex-direction: column; gap: 3px; font-size: .78rem; color: var(--ot-text-soft); flex: 1 1 130px; max-width: 220px; }
.pr-f > span { font-weight: 600; }
.pr-f.pr-name { flex: 2 1 180px; max-width: 320px; }
.pr-f .ot-input, .pr-f .ot-select { min-height: 36px; padding: 5px 9px; font-size: .95rem; width: 100%; }
.pr-f small { font-size: .74rem; }
.pr-x { border: 0; background: none; font-size: 1.3rem; line-height: 1; color: var(--ot-text-soft); cursor: pointer; padding: 0 4px 8px; margin-left: auto; }
.pr-x:hover { color: var(--ot-danger); }
.pr-btns { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 8px; }
.pr-sm { min-height: 34px; padding: 5px 12px; font-size: .86rem; }
.pr-fill { align-self: flex-end; }
.pr-card { border: 1px solid var(--ot-border); border-radius: var(--ot-radius-s); padding: 10px 12px 2px; margin-bottom: 10px; background: var(--ot-surface); }
.pr-sub { padding-left: 12px; border-left: 3px solid var(--ot-border); }
.pr-check { display: flex; gap: 8px; align-items: center; font-weight: 600; font-size: .9rem; cursor: pointer; margin-top: 6px; }
.pr-check input { width: 18px; height: 18px; accent-color: var(--pr-accent); }
.pr-need { margin: 6px 0 0; font-size: .95rem; }
.pr-need small, .pr-muted { color: var(--ot-text-soft); font-size: .82rem; }
.pr-lsum { margin: 0 0 8px; font-size: .86rem; color: var(--ot-text-soft); }
.pr-smooth { margin: 4px 0 0; font-size: .86rem; color: var(--pr-accent); }
.pr-smooth:empty { display: none; }
.pr-bad { color: #b45309 !important; }
/* Synthèse */
.pr-tiles { display: grid; gap: 10px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.pr-tile { background: var(--ot-surface); border: 1px solid var(--ot-border); border-radius: var(--ot-radius-s); padding: 10px 12px; display: flex; flex-direction: column; gap: 2px; }
.pr-tile > span { font-size: .78rem; color: var(--ot-text-soft); font-weight: 600; }
.pr-tile strong { font-size: 1.25rem; font-variant-numeric: tabular-nums; }
.pr-tile strong small { font-size: .78rem; font-weight: 400; color: var(--ot-text-soft); }
.pr-tile > small { font-size: .76rem; color: var(--ot-text-soft); }
.pr-tile--big { grid-column: 1 / -1; color: #16a34a; }
.pr-tile--big strong { font-size: 2rem; }
.pr-tile--big > span, .pr-tile--big > small { color: var(--ot-text-soft); }
.pr-tile--big[data-level="1"] { color: #d97706; }
.pr-tile--big[data-level="2"] { color: var(--ot-danger); }
.pr-gauge { width: 100%; height: 8px; margin-top: 6px; }
.pr-warn:empty { display: none; }
.pr-w { margin: 8px 0 0; padding: 8px 10px; border-radius: var(--ot-radius-s); background: color-mix(in srgb, #f59e0b 14%, transparent); font-size: .86rem; }
.pr-cap { margin: 10px 0 0; font-size: .88rem; }
.pr-actions { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
/* Détails */
.pr-out { margin-top: var(--ot-space); }
.pr-scroll { overflow-x: auto; }
.pr-tab { border-collapse: collapse; width: 100%; font-size: .86rem; font-variant-numeric: tabular-nums; }
.pr-tab th, .pr-tab td { border-bottom: 1px solid var(--ot-border); padding: 6px 8px; text-align: right; white-space: nowrap; vertical-align: top; }
.pr-tab th:first-child, .pr-tab td:first-child { text-align: left; white-space: normal; min-width: 150px; }
.pr-tab th { font-size: .76rem; color: var(--ot-text-soft); position: sticky; top: 0; background: var(--ot-surface); }
.pr-tab small { color: var(--ot-text-soft); }
.pr-sumrow td { font-weight: 700; border-top: 2px solid var(--ot-border); }
.pr-amortbox { max-height: 480px; overflow: auto; }
.pr-abar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 8px; }
.pr-abar .ot-select { width: auto; min-height: 34px; padding: 4px 8px; font-size: .88rem; }
#pr-chart svg { width: 100%; height: auto; display: block; font-size: 11px; fill: var(--ot-text-soft); }
.pr-legend { list-style: none; display: flex; flex-wrap: wrap; gap: 4px 14px; padding: 0; margin: 6px 0 0; font-size: .82rem; }
.pr-legend i { display: inline-block; width: 12px; height: 12px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }
.pr-toast { position: fixed; left: 50%; bottom: 20px; transform: translateX(-50%); background: var(--ot-text); color: var(--ot-bg); padding: 8px 16px; border-radius: 10px; font-size: .88rem; z-index: 50; }
@media print {
  #ot-header, #ot-footer, .ot-skip, .ot-consent, .pr-actions, .pr-btns, .pr-x, .pr-fill, .pr-abar, .pr-about, .pr-note { display: none !important; }
  .pr-main { grid-template-columns: 1fr; } .pr-side { position: static; }
  .pr-amortbox { max-height: none; overflow: visible; }
  .pr-card, .pr-tile, .ot-panel { break-inside: avoid; }
}
.pr-more { border-top: 1px dashed var(--ot-border); padding: 6px 0 4px; margin: 4px 0 6px; }
.pr-more summary { cursor: pointer; font-weight: 600; font-size: .86rem; color: var(--pr-accent); }
.pr-more[open] summary { margin-bottom: 6px; }
.pr-credit { margin: 6px 0 8px; }
.pr-credit .pr-check { margin: 0 0 6px; font-size: .84rem; font-weight: 500; }
.pr-tiles--4 { grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); }
.pr-lsum .pr-sm { margin-left: 6px; }
