/* Gestion locative — styles propres à l'application (complètent Bootstrap). */
:root {
  --couleur-primaire: #1f4e79;
}

.bg-primaire { background-color: var(--couleur-primaire); }

body {
  padding-bottom: env(safe-area-inset-bottom);
}

.montant { font-variant-numeric: tabular-nums; text-align: right; white-space: nowrap; }

.carte-chiffre .valeur { font-size: 2rem; font-weight: 600; line-height: 1.1; }

.page-connexion { max-width: 26rem; margin: 2rem auto; }

.qr-code svg { width: 100%; max-width: 16rem; height: auto; }

.codes-secours { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 1.15rem; }

.alerte-inactivite {
  position: fixed; right: 1rem; bottom: 1rem; z-index: 1080; max-width: 22rem;
}

/* Gros boutons sur écran tactile (iPhone, iPad). */
@media (pointer: coarse) {
  .btn { min-height: 44px; }
  .form-control, .form-select { min-height: 44px; font-size: 16px; }
}

/* Recherche globale (barre de navigation). */
.zone-recherche { min-width: 16rem; }
.resultats-recherche {
  position: absolute; top: 100%; left: 0; right: 0; z-index: 1050; margin-top: .25rem;
  max-height: 70vh; overflow-y: auto; min-width: 20rem;
}

/* Couleur d'ambiance de chaque propriétaire (variable --couleur-proprio posée en style). */
.liseret { border-left: .35rem solid var(--couleur-proprio, #1f4e79) !important; }
.teinte { background-color: color-mix(in srgb, var(--couleur-proprio, #1f4e79) 10%, var(--bs-body-bg)) !important; }
.pastille {
  display: inline-block; width: .8rem; height: .8rem; border-radius: 50%;
  background: var(--couleur-proprio, #1f4e79); vertical-align: baseline; margin-right: .3rem;
}
.badge-proprio {
  background: color-mix(in srgb, var(--couleur-proprio, #1f4e79) 15%, var(--bs-body-bg));
  color: color-mix(in srgb, var(--couleur-proprio, #1f4e79) 75%, black);
  border: 1px solid color-mix(in srgb, var(--couleur-proprio, #1f4e79) 40%, transparent);
}
.bandeau-proprio { border-top: .4rem solid var(--couleur-proprio, #1f4e79); padding-top: .5rem; }
input[type="color"].form-control { height: 2.6rem; padding: .2rem; max-width: 6rem; }

/* Aperçu d'une pièce justificative (PDF) dans la fiche */
.apercu-piece { width: 100%; height: 75vh; min-height: 420px; border: 1px solid var(--bs-border-color); border-radius: .375rem; background: var(--bs-tertiary-bg); }
