/* TOISE — Pages outil et fiches (adresse, carte, annonces, bilan, terrain, cas…) : cartouches, provenances, fiche-ligne, tableaux en cartes, OCR.
   Extrait de toise.css le 25/11/2026 : se charge APRÈS toise.css (socle) et seulement sur les pages qui s'en servent.
   L'ordre des règles est celui de l'ancien toise.css ; test : platform/test-css-decoupe.mjs. */
/* --- Cartouche de titre ------------------------------------------------------------------
   Le logotype en pleine masse, sur une graduation numérotée. Une toise est un instrument :
   la marque doit se lire comme une mesure, pas comme un mot posé en haut à gauche. */
.cartouche { background: var(--papier); border-bottom: 1px solid var(--trait);
             padding: 24px 4vw 0; overflow: hidden; }
.en-attente { opacity: .45; transition: opacity .15s; }
/* Fonction pas encore ouverte (audit du 12/11/2026) : badge discret près des liens qui y mènent. */
.bientot { display: inline-block; vertical-align: middle; font-family: var(--mono); font-size: .62rem; letter-spacing: .1em; text-transform: uppercase; color: var(--sourd); border: 1px solid var(--trait); border-radius: 2px; padding: 1px 6px; line-height: 1.5; white-space: nowrap; }
/* --- Qualification d'une valeur -----------------------------------------------------------
   Le cœur de la doctrine, rendu visible : d'où sort ce chiffre. Sourd volontairement —
   une annotation d'instruction, pas une pastille de gamification. */
.prov {
  display: inline-flex; align-items: center; gap: 5px; font: 600 .64rem/1 var(--mono);
  letter-spacing: .05em; text-transform: uppercase; padding: 3px 7px; border-radius: 2px;
  white-space: nowrap; vertical-align: middle;
}
.prov.officielle { background: var(--officiel-fond); color: var(--officiel); }
.prov.observee   { background: var(--mesure-fond);   color: var(--mesure); }
.prov.saisie     { background: var(--saisi-fond);    color: var(--saisi); }
.prov.usuelle    { background: var(--usuel-fond);    color: var(--usuel); }
.prov.absente    { background: var(--fond-creux);    color: var(--sourd); }
.prov-src { font: 400 .74rem/1.4 var(--mono); color: var(--sourd); display: block; margin-top: 4px; max-width: 100%; overflow-wrap: anywhere; word-break: break-word; }
.fiche-ligne > div { min-width: 0; }
/* une source longue (URL en police mono) ne doit jamais élargir la page (vérif. 12/11/2026) */
.prov-src a { color: var(--sourd); }
/* Tooltip natif (attribut `title`) pour expliquer un libellé technique sans ajouter un
   paragraphe permanent sous la ligne — voir `ligne(..., aide)` dans adresse.html. */
.fiche-aide {
  display: inline-flex; align-items: center; justify-content: center;
  width: 15px; height: 15px; margin-left: 4px; border-radius: 50%;
  background: var(--fond-creux, #eee); color: var(--sourd); font: 700 .66rem/1 var(--mono);
  cursor: help; vertical-align: middle;
}
.fiche-ligne { display: grid; grid-template-columns: minmax(0,1fr) auto;
               gap: 14px; padding: 11px 0; border-bottom: 1px solid var(--trait-clair);
               align-items: baseline; }
.fiche-ligne:last-child { border-bottom: 0; }
/* valeurs longues (arrêtés CatNat…) : à la ligne, jamais de défilement horizontal (12/11/2026) */
.fiche-val.absent { font-weight: 500; color: var(--sourd); }
/* L'EMPILEMENT DE LA FICHE A ETE RETIRE LE 12/09/2026.
   La valeur se posait sur son libelle quand la colonne descendait sous la largeur du montant
   — « 6 700 000 € » imprime par-dessus « Prix demande ». On l'empilait alors sous 560 px.
   Le cas ne se presente plus : la fiche vit dans un cadre epingle a 1240 px, ou ses deux
   colonnes ont toute la place. */
/* --- Jauge de fiabilité --------------------------------------------------------------------
   Reprend la graduation de la toise. Elle remplace le « score sur 100 » : agréger une valeur
   officielle et une hypothèse en un seul nombre revient à fabriquer un chiffre dont on ne
   peut plus dire d'où il vient — exactement ce que le produit refuse de faire. */
.jauge { margin: 10px 0 0; }
.jauge-piste { height: 8px; background: var(--fond-creux); border: 1px solid var(--trait);
               border-radius: 1px; overflow: hidden; display: flex; }
.jauge-part { height: 100%; }
.jauge-part.sourcee { background: var(--officiel); }
.jauge-part.hypothese { background: repeating-linear-gradient(45deg,
                        var(--usuel) 0 3px, #c7912f 3px 6px); }
.jauge-legende { display: flex; justify-content: space-between; gap: 12px; margin-top: 6px;
                 font: 600 .7rem var(--mono); color: var(--sourd); }
.verdict-pastille { font: 800 .78rem var(--sans); letter-spacing: .1em; text-transform: uppercase;
                    padding: 7px 14px; border-radius: 2px; border: 1px solid; }
.verdict-pastille.go        { background: var(--officiel-fond); color: var(--officiel); border-color: #bcd6c6; }
.verdict-pastille.etudier   { background: var(--usuel-fond);    color: var(--usuel);    border-color: #e2cb96; }
.verdict-pastille.nogo      { background: var(--signal-fond);   color: var(--signal);   border-color: #ecc0b6; }
.verdict-pastille.neutre    { background: var(--fond-creux);    color: var(--sourd);    border-color: var(--trait); }
@media (max-width: 560px) {
/* Sur un ecran de 375 px, le cartouche mangeait 380 px avant la barre de recherche : le
     geste principal de la page tombait sous la ligne de flottaison. Le logotype du bandeau
     reprend alors seul la marque — il y en a toujours exactement un a l ecran. */
  .cartouche { display: none; }
}
/* La qualite d'un droit foncier, posee a cote du nom du titulaire.
   Discrete par construction : c'est une precision, pas une alerte — mais elle doit se lire
   d'un coup d'oeil, parce qu'elle decide a qui l'on telephone. */
.etiq-qualite { display: inline-block; font: 600 .68rem var(--sans); letter-spacing: .04em;
  text-transform: uppercase; padding: 2px 7px; border-radius: 2px; margin-left: 8px;
  background: var(--fond); color: var(--sourd); vertical-align: middle; }
@media (max-width: 760px) {
/* Ligne de fiche : sous 420 px le montant se pose sous son libelle au lieu de le chevaucher. */
  body.mobile-reel .fiche-ligne { grid-template-columns: minmax(0, 1fr) auto; }
}
@media (max-width: 420px) {
  body.mobile-reel .fiche-ligne { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  body.mobile-reel .fiche-val { text-align: left; white-space: normal; font-size: 1.05rem; }
}
/* Le compteur de sélection de /carte est vide tant qu'aucune parcelle n'est choisie : un titre vide serait annoncé tel quel par un lecteur d'écran. */
#sel-compteur:empty { display: none; }
.ocr-alerte .ocr-titre { font-weight: 700; margin: 0 0 4px; }
.ocr-alerte .ocr-texte { margin: 0 0 10px; }
.ocr-alerte .ocr-prog { margin: 6px 0 0; font-size: .85rem; color: var(--sourd); }
.ocr-barre { position: relative; height: 6px; border-radius: 3px; background: var(--trait); overflow: hidden; }
/* --- Étape suivante discrète sous un résultat (assetvertical, commerces ; boucle du 15/11/2026) --- */
.etape-discrete { margin: 18px 0 0; padding: 14px 0 0; border-top: 1px dashed var(--trait); display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; justify-content: space-between; }
.etape-discrete p { margin: 0; max-width: 34rem; font-size: .92rem; }
.etape-discrete[hidden] { display: none; }
/* L'étape suivante après une analyse réussie (etape-suivante.js, apresAnalyse, 21/11/2026) : un bouton, une promesse. */
.cta-apres { margin: 18px 0 14px; border-left: 3px solid var(--signal); display: flex; flex-wrap: wrap; gap: 10px 18px; align-items: center; justify-content: space-between; }
.cta-apres .cta-apres-texte { flex: 1 1 300px; min-width: 0; }
.cta-apres p { margin: 0; }
.cta-apres .cta-apres-titre { font-weight: 600; font-size: 1.02rem; }
.cta-apres .cta-apres-phrase, .cta-apres .cta-apres-apport { margin-top: 4px; color: var(--encre-doux); font-size: .9rem; }
.cta-apres .cta-apres-statut { flex: 1 1 100%; margin-top: 4px; }
.cta-apres-place.cta-apres-place-court { min-height: 76px; }
#fiche > .cta-apres:not(.cta-apres-connecte) { min-height: 138px; }
@media (max-width: 760px) {
  .cta-apres-place.cta-apres-place-court { min-height: 396px; }   /* connecté gratuit : phrase, bouton et « étude non conservée » */
  #fiche > .cta-apres:not(.cta-apres-connecte) { min-height: 356px; }
  #fiche > .cta-apres.cta-apres-vA { min-height: 306px; }
  #fiche > .cta-apres.cta-apres-connecte { min-height: 396px; }
/* Sous la synthèse, sur téléphone : le titre, la promesse et le bouton suffisent. */
  #fiche > .cta-apres .cta-apres-apport { display: none; }
  .cta-apres-barre .cta-apres-barre-texte { flex: 1 1 auto; min-width: 0; }
  .cta-apres > .btn { width: 100%; text-align: center; }
}

/* Mon compte : alertes d’annonces (25/11/2026, pages-js/alertes-annonces.js ; masqué tant que l’API ne l’ouvre pas). */
.aa-form { display: grid; gap: 10px; max-width: 40rem; margin-top: 14px; }
.aa-form label { display: grid; gap: 4px; }
.aa-form fieldset { border: 1px solid var(--trait, #d5ddd9); border-radius: 6px; padding: 8px 10px; display: flex; flex-wrap: wrap; gap: 6px 14px; }
.aa-form .aa-case { display: inline-flex; align-items: center; gap: 6px; }
.aa-grille { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 8px; }
/* Demande déclarée (adresse-dossier.js, 25/11/2026) : agrégat des profils off-market sous la fiche. */
.demande-declaree { margin: 14px 0; padding: 12px 14px; border: 1px solid var(--trait); border-radius: 6px; }
.demande-declaree p { margin: 0 0 6px; }
.demande-declaree .demande-declaree-titre { font-weight: 600; }
.demande-declaree .demande-declaree-liste { margin: 4px 0 8px; padding-left: 18px; }
.demande-declaree .demande-declaree-note, .demande-declaree .demande-declaree-absent { color: var(--encre-doux); font-size: .88rem; }
