/* VillaPro : lisible en plein soleil (noir sur blanc, fort contraste), très gros boutons pour le pouce.
   Base reprise de PoolPro v2 ; couleur bleu nuit (≠ vert de PoolPro) pour ne pas confondre les deux appli. */
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 19px;
  line-height: 1.45;
  color: #000;
  background: #fff;
}
[hidden] { display: none !important; }
a { color: #0b3d6e; font-weight: 700; }
.barre {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 12px 16px; padding-top: max(12px, env(safe-area-inset-top));
  background: #0b3d6e; color: #fff; font-weight: 800; font-size: 22px;
}
.barre a { color: #fff; text-decoration: none; }
.qui { font-size: 18px; text-align: right; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
       min-height: 44px; display: flex; align-items: center; }
.menu { display: grid; grid-template-columns: repeat(4, 1fr); border-bottom: 3px solid #000; background: #fff; }
.menu a {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  min-height: 68px; padding: 6px 2px; color: #000; text-decoration: none; font-size: 26px; text-align: center;
}
.menu a span { font-size: 14px; font-weight: 800; line-height: 1.1; }
.menu a[aria-current="page"] { background: #ffd54f; }
.page { max-width: 680px; margin: 0 auto; padding: 16px 16px 48px; }
h1 { font-size: 27px; margin: 4px 0 14px; }
h2 { font-size: 22px; margin: 0 0 8px; }
h2.espace { margin-top: 26px; }
.carte { border: 3px solid #000; border-radius: 14px; padding: 16px; }
.carte + .carte, .carte + form, .flash + .carte { margin-top: 16px; }
.carte p { margin: 0 0 8px; }
.gros-bouton {
  display: block; width: 100%; min-height: 72px; margin-top: 14px; padding: 14px 16px;
  border: 0; border-radius: 14px; background: #0b3d6e; color: #fff;
  font: inherit; font-weight: 800; font-size: 22px; text-align: center; text-decoration: none; cursor: pointer;
}
.gros-bouton:active { background: #062544; }
.gros-bouton:disabled { background: #9e9e9e; color: #000; cursor: not-allowed; }
.bouton-rappel { background: #ffd54f; color: #000; border: 3px solid #000; margin: 0 0 16px; }
.bouton-rappel:active { background: #ffca28; }
.bouton-sortie { background: #000; margin-top: 24px; }
.flash { padding: 12px; border-radius: 10px; margin-bottom: 12px; font-weight: 700; border: 2px solid #000; }
.flash-erreur { background: #ffe0b2; }
.flash-ok { background: #c8e6c9; }
.flash-info { background: #bbdefb; }
.aide { margin: 12px 0 0; }
.retour { display: inline-flex; align-items: center; min-height: 48px; font-weight: 800; color: #000; font-size: 20px; }
.titre-logo { text-align: center; font-size: 32px; }

/* Formulaires (connexion, Mon compte, Réglages). */
.pile { display: flex; flex-direction: column; }
.pile label { font-weight: 800; margin-top: 14px; }
.pile input[type=text], .pile input:not([type]), .pile input[type=password], .pile textarea {
  width: 100%; min-height: 58px; padding: 10px 12px; margin-top: 4px;
  font: inherit; font-size: 20px;   /* 16 px ou plus : l'iPhone ne zoome pas sur le champ */
  color: #000; background: #fff; border: 2px solid #000; border-radius: 10px;
}
.pile textarea { resize: vertical; line-height: 1.35; }
.pile input:focus, .pile textarea:focus, .voir:focus, .gros-bouton:focus, .menu a:focus {
  outline: 4px solid #ff6f00; outline-offset: 2px;
}
.champ-mdp { display: flex; gap: 8px; align-items: stretch; margin-top: 4px; }
.champ-mdp input { margin-top: 0 !important; flex: 1; min-width: 0; }
.voir { min-width: 64px; min-height: 58px; font-size: 26px; border: 2px solid #000; border-radius: 10px;
        background: #fff; color: #000; cursor: pointer; }
.voir[aria-pressed="true"] { background: #000; color: #fff; }
.pile label.case { display: flex; align-items: center; gap: 12px; min-height: 58px; margin-top: 16px;
                   font-size: 20px; cursor: pointer; }
.case input { width: 32px; height: 32px; margin: 0; accent-color: #0b3d6e; }
.bloc-mot { margin: 18px 0 0; padding: 4px 12px 14px; border: 2px solid #000; border-radius: 12px; }
.bloc-mot legend { padding: 0 6px; font-weight: 800; font-size: 20px; }

/* Listes (visites, maisons). */
.liste { list-style: none; margin: 12px 0 0; padding: 0; }
.liste li + li { margin-top: 10px; }
.ligne { display: flex; flex-direction: column; gap: 2px; min-height: 64px; padding: 10px 16px;
         border: 2px solid #000; border-radius: 12px; background: #fff; }
.ligne.inactive { border-style: dashed; color: #333; }
.nom { font-size: 22px; font-weight: 800; }
.petit { font-size: 17px; }
.vide { background: #f5f5f5; }

/* « Avant de filmer » : très gros caractères, lisible au soleil. */
.a-retenir { background: #fff8e1; border-color: #000; }
.conseils { margin: 0; padding-left: 22px; font-size: 21px; font-weight: 700; }
.conseils li + li { margin-top: 8px; }
.mots { list-style: none; margin: 0; padding: 0; counter-reset: mot; }
.mot { border: 3px solid #000; border-radius: 14px; padding: 12px 14px; }
.mot + .mot { margin-top: 12px; }
.mot p { margin: 0; }
.tu-dis { font-size: 25px; font-weight: 900; line-height: 1.25; }
.effet { margin-top: 6px !important; font-size: 19px; }
.resultat { margin-top: 4px !important; font-size: 17px; color: #222; }
