/* Calculateur de hausse de loyer et liste Relevé 31 (proslocaux.com/loyer/) : complète /pay-transparency/styles.css et /site.css */
.etat { border-radius: var(--radius); padding: .9rem 1.1rem; margin: 0 0 1.25rem; border: 1px solid var(--line); background: #fff; }
.etat.attente { background: #fff8e6; border-color: #e3c46a; }
.etat.ok { background: #e9f6ee; border-color: #8fcaa4; }
.etat p { margin: 0; }
.etat p + p { margin-top: .4rem; }
.etiquette { display: inline-block; font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; padding: .15rem .6rem; border-radius: 99px; }
.etiquette.attente { background: #e3c46a; color: #3a2d00; }
.etiquette.ok { background: #1f6e44; color: #fff; }
.etiquette.source { background: var(--brand-pale); color: var(--brand-dark); text-transform: none; letter-spacing: 0; }
.calc fieldset { border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem 1.1rem 0; margin: 0 0 1.25rem; }
.calc legend { font-weight: 700; padding: 0 .4rem; color: var(--brand-dark); }
.calc .champs { display: grid; gap: 1rem; margin-bottom: 1rem; }
@media (min-width: 720px) { .calc .champs { grid-template-columns: repeat(2, 1fr); } }
.calc .field { margin: 0; }
.calc .field label { font-weight: 600; }
.calc input[aria-invalid="true"] { border-color: #b3261e; box-shadow: 0 0 0 2px #f5c6c2; }
.calc .ligne { border-top: 1px dashed var(--line); padding-top: 1rem; margin-top: .25rem; }
.calc .ligne h4 { margin: 0 0 .75rem; font-size: 1rem; color: var(--brand-dark); }
.calc .case { display: flex; gap: .5rem; align-items: flex-start; margin-bottom: 1rem; }
.calc .case label { font-weight: 400; }
.calc .lien { background: none; border: 0; color: var(--brand); text-decoration: underline; cursor: pointer; font: inherit; padding: 0; margin-bottom: 1rem; }
.calc .erreurs { color: #8a1c14; font-weight: 600; margin: 0 0 1rem; }
.calc .erreurs:empty { display: none; }
.calc details.avance { margin: 0 0 1.25rem; }
.calc details.avance summary { cursor: pointer; font-weight: 700; color: var(--brand); padding: .5rem 0; }
.calc details.avance fieldset { margin-top: .75rem; }
.resultat { background: #fff; border: 1px solid var(--line); border-left: 6px solid var(--brand); border-radius: var(--radius); padding: 1.4rem; margin-top: 1.5rem; }
.resultat:focus { outline: 3px solid var(--brand); outline-offset: 2px; }
.resultat h2 { margin-top: 0; }
.resume-chiffres { display: grid; gap: 1rem; margin: 1rem 0 1.5rem; }
@media (min-width: 720px) { .resume-chiffres { grid-template-columns: repeat(4, 1fr); } }
.chiffre { background: var(--brand-pale); border-radius: var(--radius); padding: .9rem 1rem; }
.chiffre .lib { display: block; font-size: .85rem; color: var(--ink-soft); }
.chiffre .val { display: block; font-size: 1.45rem; font-weight: 800; color: var(--brand-dark); letter-spacing: -.01em; }
.chiffre.fort { background: var(--brand-dark); }
.chiffre.fort .lib { color: #d6e6ec; } .chiffre.fort .val { color: #fff; }
.table-scroll table { width: 100%; border-collapse: collapse; background: #fff; }
.table-scroll th, .table-scroll td { padding: .6rem .7rem; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; font-size: .95rem; }
.table-scroll th[scope="row"] { font-weight: 600; width: 32%; }
.table-scroll td.nombre, .table-scroll th.nombre { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.table-scroll tfoot th, .table-scroll tfoot td { font-weight: 800; border-top: 2px solid var(--ink); border-bottom: 0; }
.petit { font-size: .88rem; color: var(--ink-soft); }
.regle-liste { display: grid; gap: 1rem; margin: 1.5rem 0 0; padding: 0; list-style: none; }
.regle-liste li { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem 1.2rem; }
.regle-liste li strong { color: var(--brand-dark); }
.regle-liste .src { display: block; margin-top: .4rem; font-size: .85rem; color: var(--ink-soft); }
.dates { list-style: none; padding: 0; margin: 1.25rem 0 0; display: grid; gap: .75rem; }
.dates li { display: grid; gap: .25rem; background: #fff; border-left: 4px solid var(--accent); border-radius: 0 var(--radius) var(--radius) 0; padding: .8rem 1rem; }
@media (min-width: 720px) { .dates li { grid-template-columns: 13rem 1fr; gap: 1rem; } }
.dates time { font-weight: 800; color: var(--brand-dark); }
.controle { list-style: none; padding: 0; margin: 0 0 1rem; display: grid; gap: .6rem; }
.controle li { display: flex; gap: .6rem; align-items: flex-start; background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: .7rem .9rem; }
.controle label { font-weight: 400; }
.controle .src { display: block; font-size: .83rem; color: var(--ink-soft); margin-top: .25rem; }
.rappel form { max-width: 36rem; }
.rappel .consent label { font-size: .93rem; }
.rappel #rappel-statut:empty, .rappel #rappel-erreur:empty { display: none; }
.rappel #rappel-erreur { color: #8a1c14; font-weight: 600; }
.rappel #rappel-statut { background: #e9f6ee; border: 1px solid #8fcaa4; border-radius: 8px; padding: .75rem 1rem; }
.seulement-impression { display: none; }
@media print {
  .site-header, .site-footer, .btn, .btn-row, .pas-impression, .rappel, .skip, nav, button { display: none !important; }
  .seulement-impression { display: block; }
  body { background: #fff; color: #000; font-size: 11pt; }
  section { padding: .6rem 0; break-inside: avoid; }
  .hero { background: none; padding: 0; }
  .controle li, .dates li, .resultat, .regle-liste li { border-color: #999; break-inside: avoid; }
  a { color: #000; text-decoration: none; }
  a[href^="http"]::after { content: " (" attr(href) ")"; font-size: 8.5pt; color: #444; }
  .calc fieldset { border-color: #999; }
  details { display: block; } details > summary { display: none; }
  input[type="checkbox"] { width: 1rem; height: 1rem; }
}
