/* Page « Vérifier une location » : pensée d'abord pour le téléphone. Couleurs et boutons : /style.css. */
[hidden] { display: none !important; }
.tool { max-width: 640px; margin: 0 auto; padding: 22px 16px 40px; }
.tool h1 { font-size: clamp(30px, 8vw, 44px); margin: 6px 0 0; }
.intro { color: var(--fg-2); font-size: 17px; margin: 12px 0 18px; }
.desktop-only { display: none; }
@media (min-width: 900px) and (pointer: fine) { .desktop-only { display: block; } .mobile-only { display: none; } }

.banner { background: var(--brand-soft); border-radius: 14px; padding: 14px 16px; margin: 0 0 18px; color: var(--fg); font-size: 15.5px; }
.banner-cta { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }

.panel-form { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 18px 16px; display: grid; gap: 16px; }
.field { display: grid; gap: 6px; position: relative; }
.field > span { font-weight: 650; font-size: 15px; }
.field small { font-weight: 400; color: var(--muted); }
.field input, .field select { width: 100%; font: inherit; font-size: 17px; padding: 12px 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--bg); color: var(--fg); }
.field input:focus, .field select:focus { outline: 2px solid var(--brand); outline-offset: 0; border-color: transparent; }
.unit { display: flex; align-items: center; gap: 0; }
.unit input { border-top-right-radius: 0; border-bottom-right-radius: 0; min-width: 0; }
.unit i, .unit select { font-style: normal; white-space: nowrap; padding: 12px 10px; border: 1px solid var(--line); border-left: 0; border-radius: 0 12px 12px 0; background: var(--surface); color: var(--muted); font-size: 15px; }
.unit select { width: auto; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 420px) { .row2 { grid-template-columns: 1fr; } }
.hint { color: var(--muted); font-size: 13.5px; }

.seg { display: flex; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.seg button { flex: 1; font: inherit; font-size: 15.5px; padding: 11px 6px; border: 0; background: var(--bg); color: var(--fg-2); cursor: pointer; }
.seg button + button { border-left: 1px solid var(--line); }
.seg button.on { background: var(--brand); color: #fff; font-weight: 650; }

.suggest { position: absolute; top: 100%; left: 0; right: 0; z-index: 5; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); margin-top: 4px; overflow: hidden; }
.suggest button { display: block; width: 100%; text-align: left; font: inherit; font-size: 16px; padding: 12px 14px; border: 0; background: transparent; color: var(--fg); cursor: pointer; }
.suggest button + button { border-top: 1px solid var(--line); }
.suggest button:hover, .suggest button:focus { background: var(--brand-soft); }

.control { background: #fef3c7; color: #78350f; border-radius: 14px; padding: 12px 14px; }
.control p { margin: 0 0 10px; font-size: 15px; }
.control .field > span { color: #78350f; }
.submit { width: 100%; font-size: 18px; padding: 15px; }
.form-error { color: #b91c1c; margin: 0; font-weight: 600; }

#result { margin-top: 22px; display: grid; gap: 12px; }
.res-card { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 16px; }
.res-card h3 { margin: 0 0 8px; font-size: 13px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.verdict-line { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.verdict-line .big { font-size: 40px; font-weight: 850; letter-spacing: -.03em; }
.chip { display: inline-block; padding: 3px 10px; border-radius: 999px; font-weight: 700; font-size: 14px; }
.lv-good { background: #dcfce7; color: #166534; } .lv-fair { background: #e0f2fe; color: #075985; }
.lv-high { background: #fef3c7; color: #92400e; } .lv-veryhigh { background: #fee2e2; color: #991b1b; } .lv-unknown { background: #f1f5f9; color: #475569; }
.kv { display: flex; justify-content: space-between; gap: 12px; padding: 5px 0; }
.kv b { text-align: right; white-space: nowrap; }
.kv.total { border-top: 1px dashed var(--line); margin-top: 6px; padding-top: 10px; font-weight: 700; }
.alert { border-radius: 12px; padding: 10px 12px; margin-top: 8px; font-size: 15.5px; }
.alert.bad { background: #fee2e2; color: #7f1d1d; } .alert.warn { background: #fef3c7; color: #78350f; } .alert.ok { background: #dcfce7; color: #14532d; }
.alert.info { background: var(--bg); color: var(--fg-2); border: 1px solid var(--line); }
.muted { color: var(--muted); }
.small { font-size: 14px; }

.pc { margin-top: 28px; background: linear-gradient(135deg, #0f766e, #115e59); color: #fff; border-radius: 20px; padding: 22px 18px; }
.pc h2 { color: #fff; font-size: 24px; }
.pc p { color: rgba(255, 255, 255, .88); }
.pc .btn { background: #fff; color: #0f766e; margin: 6px 6px 0 0; }
.pc .btn.ghost { background: rgba(255, 255, 255, .15); color: #fff; border-color: transparent; }
.pc .hint { color: rgba(255, 255, 255, .8); display: block; margin-top: 8px; }
.sources { margin-top: 22px; color: var(--muted); font-size: 14px; }
