/* PoolPro v2 : lisible au soleil (fort contraste), gros boutons pour le pouce (plan §3). */
/* Couleur principale de l'instance : valeurs de PoolPro ici, remplacées par /marque.css si POOLPRO_COULEUR
   est réglée (poolpro2/marque.py). Le vert « fait / ok » et l'orange « hors norme » ne changent jamais. */
:root { --principale: #00695c; --principale-fonce: #004d40; --principale-clair: #f1f8f7; --principale-pale: #e0f2f1; }
* { 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: 18px;
  line-height: 1.45;
  color: #000;
  background: #fff;
}
.barre {
  display: flex;
  align-items: center;
  padding: 12px 16px;
  padding-top: max(12px, env(safe-area-inset-top));
  background: var(--principale);
  color: #fff;
  font-weight: 700;
  font-size: 20px;
}
.page { max-width: 640px; margin: 0 auto; padding: 16px; }
.carte { border: 2px solid #000; border-radius: 12px; padding: 16px; }
h1 { font-size: 24px; margin: 0 0 12px; }
.etat { margin: 16px 0; padding: 12px; border: 2px dashed var(--principale); border-radius: 8px; font-weight: 600; }
.gros-bouton {
  display: block;
  width: 100%;
  min-height: 64px;         /* ≈ 2 cm sur un téléphone : touchable avec des gants mouillés */
  margin-top: 12px;
  padding: 12px 16px;
  border: 0;
  border-radius: 12px;
  background: var(--principale);
  color: #fff;
  font: inherit;
  font-weight: 700;
  font-size: 20px;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}
.gros-bouton:active { background: var(--principale-fonce); }
.flash { padding: 12px; border-radius: 8px; margin-bottom: 12px; font-weight: 600; border: 2px solid #000; }
.flash-erreur { background: #ffe0b2; }
.flash-ok { background: #c8e6c9; }
.htmx-request { opacity: .6; }

/* Étape 1 : connexion et « Mon compte ». */
[hidden] { display: none !important; }
.barre { justify-content: space-between; gap: 12px; }
.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; }
h2 { font-size: 21px; margin: 0 0 8px; }
.carte + .carte, .carte + form, .flash + .carte { margin-top: 16px; }
.titre-logo { text-align: center; font-size: 30px; }
.pile { display: flex; flex-direction: column; }
.pile label { font-weight: 700; margin-top: 12px; }
.pile input[type=text], .pile input:not([type]), .pile input[type=password] {
  width: 100%; min-height: 56px; 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 input:focus, .voir:focus, .gros-bouton:focus { outline: 3px 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: 56px; 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: 56px; margin-top: 16px;
                   font-size: 20px; cursor: pointer; }
.case input { width: 32px; height: 32px; margin: 0; accent-color: var(--principale); }
.aide { margin: 12px 0 0; }
.retour { display: inline-flex; align-items: center; min-height: 48px; font-weight: 700; color: #000;
          font-size: 20px; }
.bouton-sortie { background: #000; margin-top: 24px; }
.bouton-sortie:active { background: #333; }
.flash-info { background: #bbdefb; }

/* Étape 2 : liste des piscines, page piscine, photo. */
.cache-visuel, .js .champ-fichier {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0; opacity: 0;
}
.js .sans-js { display: none; }
.recherche input {
  width: 100%; min-height: 56px; padding: 10px 14px; font: inherit; font-size: 20px;
  color: #000; background: #fff; border: 2px solid #000; border-radius: 12px;
}
.recherche input:focus { outline: 3px solid #ff6f00; outline-offset: 2px; }
.liste-piscines { list-style: none; margin: 12px 0 0; padding: 0; }
.liste-piscines li + li { margin-top: 10px; }
.ligne-piscine {
  display: grid; grid-template-columns: 1fr auto; align-items: center; column-gap: 8px;
  min-height: 64px; padding: 10px 16px; border: 2px solid #000; border-radius: 12px;
  color: #000; text-decoration: none; background: #fff;
}
.ligne-piscine:active { background: var(--principale-pale); }
.nom-piscine { font-size: 21px; font-weight: 700; }
.petit { grid-column: 1; font-size: 16px; }
.fleche { grid-column: 2; grid-row: 1 / span 2; font-size: 32px; font-weight: 700; }
.pile textarea {
  width: 100%; padding: 10px 12px; margin-top: 4px; font: inherit; font-size: 20px;
  color: #000; background: #fff; border: 2px solid #000; border-radius: 10px; resize: vertical;
}
.pile textarea:focus { outline: 3px solid #ff6f00; outline-offset: 2px; }
.titre-piscine { font-size: 28px; margin-bottom: 4px; }
.note-piscine { margin: 8px 0 0; padding: 10px 12px; border-left: 6px solid var(--principale); background: var(--principale-clair); }
.widget { margin-top: 16px; }
.bouton-photo {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
  width: 100%; min-height: 220px; height: 38vh; max-height: 340px; border-radius: 18px;
  background: var(--principale); color: #fff; font-size: 24px; font-weight: 800; letter-spacing: .04em;
  cursor: pointer; user-select: none; -webkit-user-select: none; -webkit-tap-highlight-color: transparent;
}
.bouton-photo .icone { font-size: 88px; line-height: 1; }
.bouton-photo:active { background: var(--principale-fonce); }
.champ-fichier:focus + .bouton-photo, .champ-fichier:focus + .lien-galerie { outline: 3px solid #ff6f00; outline-offset: 2px; }
.lien-galerie {
  display: flex; align-items: center; justify-content: center; min-height: 52px; margin-top: 6px;
  color: #000; font-size: 18px; text-decoration: underline; cursor: pointer;
}
.photos-du-jour {
  list-style: none; margin: 8px 0 0; padding: 0;
  display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px;
}
.envoi img, .envoi a { display: block; }
.envoi img {
  width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover;
  border: 2px solid #000; border-radius: 8px; background: #eee;
}
.envoi .statut { display: block; margin-top: 4px; font-size: 16px; font-weight: 700; line-height: 1.3; }
.envoi.attente img { opacity: .6; }
.envoi.echec .statut { color: #b71c1c; }
.reessayer {
  width: 100%; min-height: 52px; margin-top: 6px; border: 2px solid #000; border-radius: 10px;
  background: #ff6f00; color: #000; font: inherit; font-weight: 800; cursor: pointer;
}
.historique { margin-top: 28px; }
.passage { margin-top: 16px; padding-top: 12px; border-top: 2px solid #000; }
h3 { font-size: 18px; margin: 0; }

/* Étape 3 : test d'eau. Orange = hors norme ; pointillés violets = suggestion de l'IA (pas encore enregistrée). */
.test-eau { margin-top: 8px; padding-top: 14px; border-top: 3px solid #000; }
.titre-widget { font-size: 23px; margin-bottom: 10px; }
.bouton-bandelette { min-height: 120px; height: 18vh; max-height: 170px; font-size: 21px; }
.bouton-bandelette .icone { font-size: 52px; }
.ia { margin-top: 10px; }
.ia-texte { margin: 0; padding: 10px 12px; border: 2px dashed #6a1b9a; border-radius: 10px; font-size: 17px; font-weight: 600; }
.bouton-ia { background: #4a148c; margin-top: 8px; }
.bouton-ia:active { background: #311b92; }
.ligne-mesure { margin-top: 14px; }
.entete-mesure { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.nom-mesure { font-size: 21px; font-weight: 800; }
.nom-mesure small { font-size: 15px; font-weight: 600; }
.dernier { color: #555; font-size: 16px; text-align: right; }
.boutons-valeurs { display: grid; grid-template-columns: repeat(auto-fit, minmax(54px, 1fr)); gap: 8px; margin-top: 6px; }
.valeur {
  min-height: 64px; padding: 4px 2px; border: 3px solid #000; border-radius: 12px; background: #fff; color: #000;
  font: inherit; font-size: 21px; font-weight: 800; cursor: pointer; touch-action: manipulation;
  -webkit-tap-highlight-color: transparent; user-select: none; -webkit-user-select: none;
}
.valeur.hors-norme { border-bottom: 9px solid #ff6f00; }
.valeur.choisie { background: var(--principale); border-color: var(--principale); color: #fff; }
.valeur.choisie.hors-norme { background: #ff6f00; border-color: #000; color: #000; }
.valeur.suggeree { border: 4px dashed #6a1b9a; background: #f3e5f5; color: #000; }
.valeur:focus-visible, .champ-autre:focus { outline: 3px solid #ff6f00; outline-offset: 2px; }
.etat-mesure { min-height: 1.4em; margin: 6px 0 0; font-size: 17px; font-weight: 700; }
.etat-mesure.alerte { padding: 6px 10px; background: #ffe0b2; border-left: 8px solid #ff6f00; }
.autre-valeur summary, .autres-mesures > summary { cursor: pointer; list-style: none; }
.autre-valeur summary::-webkit-details-marker, .autres-mesures > summary::-webkit-details-marker { display: none; }
.autre-valeur summary { display: inline-flex; align-items: center; min-height: 44px; font-size: 16px; text-decoration: underline; }
.form-autre { display: flex; gap: 8px; align-items: stretch; }
.champ-autre {
  width: 8em; min-height: 56px; padding: 8px 12px; font: inherit; font-size: 21px; color: #000; background: #fff;
  border: 2px solid #000; border-radius: 10px;
}
.champ-autre.suggeree { border: 4px dashed #6a1b9a; background: #f3e5f5; }
.bouton-ok { min-width: 72px; }
.autres-mesures { margin-top: 16px; }
.autres-mesures > summary {
  display: flex; align-items: center; justify-content: center; min-height: 56px; border: 2px dashed #000;
  border-radius: 12px; font-size: 19px; font-weight: 700;
}
.autres-mesures[open] > summary { margin-bottom: 4px; }
.bouton-termine { margin-top: 22px; min-height: 76px; font-size: 24px; letter-spacing: .03em; }
.bouton-termine.fait { background: #1b5e20; }
.petit-aide { font-size: 16px; margin-top: 6px; }
.releves { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.releves li { padding: 4px 10px; border: 2px solid #000; border-radius: 8px; font-size: 16px; }
.releves li.hors-norme { background: #ffe0b2; border-color: #ff6f00; }

/* Étape 3 bis : boutons photo impossibles à confondre (🏊 bleu / 🧪 violet, mot en gros), zones du tube,
   « entre deux », sel au compteur, fiche de la piscine, « ✖ Retirer ». */
.bouton-photo .mot { font-size: 30px; font-weight: 900; letter-spacing: .05em; line-height: 1.1; }
.bouton-photo .sous-mot { font-size: 17px; font-weight: 600; letter-spacing: 0; opacity: .95; }
.bouton-piscine { background: #0d47a1; }
.bouton-piscine:active { background: #002171; }
.bouton-bandelette { background: #6a1b9a; border: 4px dashed #fff; outline: 3px solid #6a1b9a; }
.bouton-bandelette:active { background: #38006b; }
.bouton-bandelette .mot { font-size: 27px; }
.bouton-sel { min-height: 96px; height: 13vh; margin-top: 14px; }
.bouton-sel .icone { font-size: 40px; }
/* Zones du tube : une bande de couleur sous chaque case (bas = orange, ok = vert, haut = rouge). */
.valeur.zone-bas { border-bottom: 9px solid #ff6f00; }
.valeur.zone-ok { border-bottom: 9px solid #2e7d32; }
.valeur.zone-haut { border-bottom: 9px solid #c62828; }
.valeur.choisie.zone-ok { background: #2e7d32; border-color: #2e7d32; color: #fff; }
.valeur.choisie.zone-bas { background: #ff6f00; border-color: #000; color: #000; }
.valeur.choisie.zone-haut { background: #c62828; border-color: #000; color: #fff; }
.valeur.choisie.suggeree, .valeur.suggeree { border: 4px dashed #6a1b9a; background: #f3e5f5; color: #000; }
.boutons-fins { margin-top: 4px; margin-bottom: 8px; }
.boutons-fins .valeur { min-height: 56px; font-size: 19px; }
.autre-valeur .champ-autre { width: 7em; }
.ligne-mesure.discrete .nom-mesure { font-size: 18px; font-weight: 700; color: #333; }
.ligne-mesure.discrete .valeur { min-height: 54px; font-size: 18px; border-width: 2px; }
.compteur { display: grid; grid-template-columns: 1fr 1.6fr 1fr; gap: 8px; margin-top: 6px; }
.compteur .valeur { min-height: 76px; }
.compteur .chiffre { font-size: 38px; }
.compteur .chiffre.gris { color: #757575; border-color: #9e9e9e; border-style: dashed; }
.compteur .chiffre.attente { opacity: .7; }
.bandeau-fiche {
  display: flex; align-items: center; gap: 6px; min-height: 52px; margin-top: 10px; padding: 8px 12px;
  border: 2px dashed var(--principale); border-radius: 10px; color: #000; font-weight: 700; text-decoration: none;
  background: var(--principale-pale);
}
.bandeau-fiche small { font-weight: 600; }
.resume-fiche { margin: 8px 0 0; font-weight: 600; }
.resume-fiche a { color: #000; }
.choix { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.puce { position: relative; cursor: pointer; }
.puce input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.puce span {
  display: flex; align-items: center; min-height: 56px; padding: 8px 14px; border: 3px solid #000;
  border-radius: 12px; background: #fff; font-weight: 700; font-size: 18px; user-select: none;
}
.puce input:checked + span { background: var(--principale); border-color: var(--principale); color: #fff; }
.puce input:focus-visible + span { outline: 3px solid #ff6f00; outline-offset: 2px; }
.pile .choix + label, .carte + .carte, .fiche .carte { margin-top: 12px; }
.sous-choix { margin-top: 14px; padding-top: 10px; border-top: 2px dashed #000; }
.js .sous-choix[data-cache] { display: none; }
.dimensions { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.dimensions label { font-weight: 700; font-size: 16px; }
.calcul { font-weight: 700; }
.form-retirer { margin: 4px 0 0; }
.retirer {
  width: 100%; min-height: 48px; border: 2px solid #b71c1c; border-radius: 10px; background: #fff;
  color: #b71c1c; font: inherit; font-weight: 800; cursor: pointer;
}
.retirer.confirmer { background: #b71c1c; color: #fff; }
.question-photo { margin-top: 6px; display: grid; gap: 6px; }
.question-photo p { margin: 0; font-weight: 700; }
.question-photo button {
  min-height: 52px; border: 2px solid #000; border-radius: 10px; font: inherit; font-weight: 800; cursor: pointer;
}
.question-photo .oui { background: var(--principale); color: #fff; border-color: var(--principale); }
.question-photo .non { background: #fff; color: #000; }
.alerte-photo { margin-bottom: 10px; }
.pile .puce, .pile .dimensions label { margin-top: 0; }
.pile .dimensions { margin-top: 8px; }

/* Étape 4 : « Ma tournée du jour », calendrier de la semaine, planning (fiche + page piscine), saison.
   Vert = fait, orange = en retard, gros boutons ▲ ▼ pour le pouce. */
.fiche h3 { margin-top: 14px; }
.bouton-clair { background: #fff; color: #000; border: 3px solid #000; }
.bouton-clair:active { background: var(--principale-pale); }
.entete-tournee { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.entete-tournee h1 { margin: 0; }
.date-du-jour { margin: 2px 0 8px; font-size: 20px; font-weight: 700; }
.saison-pastille { padding: 4px 10px; border: 2px solid #000; border-radius: 999px; font-weight: 800; white-space: nowrap; }
.saison-ete { background: #fff3c4; }
.saison-hiver { background: #dbeafe; }
.avancement { margin: 8px 0 0; font-size: 18px; }
.tournee { list-style: none; margin: 10px 0 0; padding: 0; }
.ligne-tournee { display: grid; grid-template-columns: 1fr 64px; gap: 8px; align-items: stretch; }
.ligne-tournee + .ligne-tournee { margin-top: 10px; }
.ligne-tournee .ligne-piscine { min-height: 132px; }
.ordre { display: grid; grid-template-rows: 1fr 1fr; gap: 6px; }
.ordre form { display: flex; }
.bouton-ordre {
  width: 100%; min-height: 62px; border: 3px solid #000; border-radius: 12px; background: #fff; color: #000;
  font: inherit; font-size: 26px; font-weight: 900; cursor: pointer; touch-action: manipulation;
}
.bouton-ordre:active { background: var(--principale-pale); }
.bouton-ordre:disabled { border-color: #bdbdbd; color: #bdbdbd; cursor: default; }
.bouton-ordre:focus-visible { outline: 3px solid #ff6f00; outline-offset: 2px; }
.etat-fait .ligne-piscine, .entree.etat-fait > summary { background: #e8f5e9; border-color: #2e7d32; }
.etat-retard .ligne-piscine, .entree.etat-retard > summary, .entree.etat-manque > summary {
  background: #fff3e0; border-color: #ff6f00; border-width: 3px;
}
.etat-retard .petit, .entree.etat-retard .petit, .entree.etat-manque .petit, .prochain.etat-retard { color: #8a3b00; font-weight: 800; }
.etat-en_cours .ligne-piscine, .entree.etat-en_cours > summary { background: #fffde7; }
.rien-de-prevu { margin-top: 14px; }
.gros-texte { font-size: 23px; font-weight: 800; margin: 0 0 8px; }
.jour-suivant + .jour-suivant { margin-top: 10px; }
.noms-jour { margin: 4px 0 0; padding-left: 22px; font-size: 19px; }
.noms-jour a { color: #000; font-weight: 700; }
.semaines { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.bouton-semaine {
  display: flex; align-items: center; justify-content: center; min-height: 60px; padding: 6px; border: 3px solid #000;
  border-radius: 12px; color: #000; background: #fff; font-weight: 800; text-decoration: none; text-align: center;
}
.bouton-semaine:active { background: var(--principale-pale); }
.periode { margin: 8px 0 0; font-weight: 600; }
.periode a { color: #000; }
.jour-cal { margin-top: 18px; padding-top: 10px; border-top: 3px solid #000; }
.jour-cal.aujourdhui h2 { color: var(--principale); }
.jour-cal.passe { opacity: .85; }
.rien-ce-jour { margin-top: 4px; }
.entree { margin-top: 8px; }
.entree > summary {
  display: grid; align-items: center; min-height: 64px; padding: 8px 14px; border: 2px solid #000; border-radius: 12px;
  background: #fff; cursor: pointer; list-style: none;
}
.entree > summary::-webkit-details-marker { display: none; }
.entree > summary:focus-visible { outline: 3px solid #ff6f00; outline-offset: 2px; }
.entree[open] > summary { border-bottom-left-radius: 0; border-bottom-right-radius: 0; }
.actions { padding: 6px 12px 12px; border: 2px solid #000; border-top: 0; border-radius: 0 0 12px 12px; }
.titre-actions { margin: 12px 0 0; font-weight: 800; }
.reports-principaux { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 6px; }
.bouton-report {
  display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 68px;
  border: 0; border-radius: 12px; background: var(--principale); color: #fff; font: inherit; font-weight: 800; font-size: 20px;
  cursor: pointer;
}
.bouton-report small { font-size: 15px; font-weight: 600; }
.bouton-report:active { background: var(--principale-fonce); }
.bouton-remettre { width: 100%; margin-top: 10px; background: #000; }
.reports-jours { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 6px; margin-top: 6px; }
.bouton-jour {
  min-height: 54px; padding: 4px; border: 2px solid #000; border-radius: 10px; background: #fff; color: #000;
  font: inherit; font-size: 17px; font-weight: 700; cursor: pointer;
}
.bouton-jour:active { background: var(--principale-pale); }
.actions .retirer { margin-top: 12px; }
.lien-ajouter { display: inline-flex; align-items: center; min-height: 48px; margin-top: 6px; color: #000; font-weight: 700; }
.a-planifier { margin-top: 22px; }
.a-planifier ul { margin: 6px 0 0; padding-left: 22px; }
.a-planifier a { color: #000; font-weight: 700; }
.carte-saison { margin-top: 22px; }
.choix-saison { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 10px; }
.bouton-saison {
  min-height: 64px; border: 3px solid #000; border-radius: 12px; background: #fff; color: #000; font: inherit;
  font-size: 21px; font-weight: 800; cursor: pointer;
}
.bouton-saison.actuelle { background: var(--principale); border-color: var(--principale); color: #fff; }
.bloc-planning { margin-top: 8px; padding-top: 14px; border-top: 3px solid #000; }
.prochain { margin: 8px 0 0; font-size: 19px; }
.bouton-ligne { width: 100%; font: inherit; text-align: left; cursor: pointer; }
.deja-prevu { background: #f5f5f5; color: #555; }

/* Étape 5 : widget « Dosage » (🧴 À mettre). */
html:not(.js) .seulement-js { display: none; }
.doses { list-style: none; margin: 8px 0 0; padding: 0; }
.dose { margin-top: 12px; padding: 12px; border: 3px solid #000; border-radius: 12px; }
.dose-mise { border-color: #1b5e20; background: #e8f5e9; }
.dose-tete { display: flex; align-items: center; gap: 10px; }
.dose-num { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px;
            border-radius: 50%; background: #000; color: #fff; font-weight: 900; font-size: 20px; }
.dose-nom { font-size: 20px; font-weight: 800; }
.dose-qte { margin: 6px 0 0; font-size: 32px; font-weight: 900; }
.dose-etiquette { font-size: 21px; color: #4e342e; }
.dose-pourquoi { margin: 2px 0 0; font-weight: 700; }
.dose-delai { margin: 6px 0 0; padding: 6px 10px; background: #bbdefb; border-left: 8px solid #0d47a1; font-weight: 700; }
.dose-precautions { margin: 6px 0 0; padding-left: 20px; font-size: 16px; }
.dose-fait { margin: 8px 0 0; font-weight: 800; color: #1b5e20; font-size: 19px; }
.dose-info { margin: 8px 0 0; padding: 6px 10px; border-left: 6px solid var(--principale); background: var(--principale-pale); font-size: 17px; font-weight: 600; }
.dose-rien { font-size: 20px; font-weight: 800; color: #1b5e20; }
.qte-reglage { display: grid; grid-template-columns: 1fr 1.6fr 1fr; gap: 8px; margin-top: 10px; align-items: stretch; }
html:not(.js) .qte-reglage { grid-template-columns: 1fr; }
.qte-pas { font-size: 30px; }
.qte-champ { display: flex; align-items: center; gap: 6px; }
.champ-qte { width: 100%; min-width: 0; text-align: center; font-weight: 800; }
.qte-unite { font-weight: 700; }
.bouton-mis { background: #1b5e20; margin-top: 10px; }
.bouton-mis:active { background: #0d3c12; }
.extras { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 16px; }
.bouton-extra { display: flex; align-items: center; justify-content: center; min-height: 56px; padding: 6px;
                border: 2px solid #000; border-radius: 12px; color: #000; font-weight: 800; text-decoration: none; text-align: center; }
.bouton-extra.actif { background: #000; color: #fff; }
.panneau-extra { margin-top: 10px; padding: 10px; border: 2px dashed #000; border-radius: 12px; }
.panneau-extra h3, .deja-mis h3 { margin: 0; font-size: 19px; }
.deja-mis { margin-top: 14px; }
.deja-mis ul { list-style: none; margin: 6px 0 0; padding: 0; }
.deja-mis li { display: flex; justify-content: space-between; align-items: center; gap: 8px; min-height: 48px; border-bottom: 1px solid #9e9e9e; }
.securite-dosage { margin-top: 14px; }
.securite-dosage summary { cursor: pointer; min-height: 44px; display: flex; align-items: center; font-weight: 800; }
.securite-dosage ul { margin: 4px 0 0; padding-left: 20px; font-size: 16px; }
.releves.deposes li { border-color: #1b5e20; }

/* Marque de l'instance (marque.py) : logo dans la barre et sur l'écran de connexion, s'il y en a un. */
/* Titre sur une ligne : c'est le nom de l'utilisateur (.qui, à droite) qui se raccourcit avec « … ». */
.logo { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; white-space: nowrap; flex-shrink: 0; }
.barre .qui { display: block; min-width: 0; line-height: 44px; }
.logo-barre { display: block; width: 40px; height: 40px; object-fit: contain; }
.logo-connexion { display: block; width: 100%; max-width: 260px; height: auto; margin: 0 auto 4px; }
.titre-sous-logo { font-size: 24px; margin-bottom: 4px; }
.accroche { margin: 0 0 8px; text-align: center; font-style: italic; color: #333; }

/* Espace patron (plan du 2026-11-02) : chiffres du jour, cartes par technicien, gros boutons. */
.compteurs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 10px 0 4px; }
.compteur-jour { display: flex; flex-direction: column; align-items: center; padding: 10px 4px; border: 3px solid #000;
                 border-radius: 12px; font-weight: 700; font-size: 17px; text-align: center; }
.compteur-jour .chiffre { font-size: 36px; line-height: 1.1; font-weight: 800; }
.compteur-fait { background: #c8e6c9; }
.compteur-retard { background: #ffe0b2; }
.titre-section { margin-top: 22px; }
.carte-tech { padding: 0; margin-top: 10px; overflow: hidden; }
.carte-tech + .carte-tech { margin-top: 10px; }
.tete-carte { display: grid; grid-template-columns: 1fr auto; gap: 0 8px; padding: 12px 14px; min-height: 64px;
              color: #000; text-decoration: none; background: var(--principale-clair); }
.piscines-carte { list-style: none; margin: 0; padding: 4px 14px 10px; }
.piscines-carte li a { display: flex; align-items: center; min-height: 48px; color: #000; font-size: 19px;
                       font-weight: 600; text-decoration: none; border-top: 1px solid #ccc; }
.boutons-patron { margin-top: 20px; }
.carte-voir { margin-top: 24px; border-color: #c51162; }
.bouton-voir { background: #c51162; }
.bouton-danger { background: #b71c1c; margin-top: 16px; }
.inactif { opacity: .6; }
.piscines-tech { list-style: none; margin: 8px 0 0; padding: 0; }
.piscines-tech li { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 56px;
                    border-top: 1px solid #ccc; font-size: 19px; font-weight: 600; }
.piscines-tech a { color: #000; }
.bouton-retirer-piscine { min-height: 48px; min-width: 96px; font: inherit; font-size: 16px; font-weight: 700;
                          background: #fff; color: #b71c1c; border: 2px solid #b71c1c; border-radius: 10px; cursor: pointer; }
.gros-choix { width: 100%; min-height: 56px; margin-top: 4px; padding: 8px; font: inherit; font-size: 19px;
              border: 2px solid #000; border-radius: 10px; background: #fff; color: #000; }
.carte-mdp .ligne-mdp { font-size: 19px; margin: 8px 0; }
.mdp { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 24px; letter-spacing: .04em; user-select: all;
       word-break: break-all; }
.journal { list-style: none; margin: 10px 0 0; padding: 0; }
.journal li { padding: 10px 0; border-top: 1px solid #ccc; }

/* « 👁 Voir comme… » : bandeau collé en haut de CHAQUE page, couleur qu'aucun autre élément n'utilise. */
.bandeau-bascule { position: sticky; top: 0; z-index: 1000; display: flex; flex-wrap: wrap; align-items: center;
                   justify-content: space-between; gap: 8px; padding: 10px 14px;
                   padding-top: max(10px, env(safe-area-inset-top));
                   background: repeating-linear-gradient(135deg, #ff00a8 0 18px, #d4008c 18px 36px);
                   color: #fff; font-weight: 800; font-size: 18px; border-bottom: 5px solid #ffea00; }
.bandeau-bascule form { margin: 0; }
.bouton-revenir { min-height: 52px; padding: 8px 16px; font: inherit; font-weight: 800; font-size: 18px;
                  background: #ffea00; color: #000; border: 3px solid #000; border-radius: 12px; cursor: pointer; }
