/* Écran investissement. Un fichier par écran, comme prévu par le socle :
   ce motif a bien tenu sur l'app locative et évite les régressions croisées. */

.back {
  display: inline-block;
  margin-bottom: 14px;
  color: var(--muted);
  font-size: 14px;
  text-decoration: none;
}

.tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 22px;
}

.tab {
  width: auto;
  flex: 1;
  padding: 9px 12px;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
  background: transparent;
  border: 1px solid var(--line);
}

.tab.is-active {
  color: var(--accent-ink);
  background: var(--accent);
  border-color: var(--accent);
  font-weight: 600;
}

.card-titre {
  margin: 0 0 4px;
  font-size: 16px;
  font-weight: 600;
}

input[type="text"],
input[type="date"],
input[type="number"],
input:not([type]),
select,
textarea {
  width: 100%;
  padding: 11px 13px;
  font: inherit;
  font-size: 16px; /* < 16px déclenche un zoom automatique sur iOS. */
  color: var(--ink);
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 10px;
}

textarea { resize: vertical; }

/* Deux colonnes sur écran large, une seule sur téléphone : onze scores en
   colonne unique donnent un formulaire qu'on ne finit pas. */
.scores {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 10px 14px;
  margin-top: 12px;
}

.scores label { margin-bottom: 4px; }

/* Répartition de la couverture. Sans entreprise, la barre ne s'affiche pas —
   une barre vide laisserait croire à un chargement qui n'arrive jamais. */
.coverage-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 10px;
}

.coverage-chip {
  padding: 5px 11px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface);
  font-size: 13px;
  color: var(--muted);
}

.coverage-chip strong { color: var(--ink); }

.ligne {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  width: 100%;
  padding: 14px 16px;
  text-align: left;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-weight: 400;
}

.ligne .ticker {
  font-weight: 600;
  letter-spacing: 0.01em;
}

.ligne .meta {
  margin: 2px 0 0;
  font-size: 13px;
  color: var(--muted);
}

.entree {
  padding: 16px 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.entree-tete {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.entree h3 {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
}

.entree .quand { font-size: 13px; color: var(--muted); }

.changes {
  margin: 10px 0 0;
  padding: 0;
  list-style: none;
  font-size: 14px;
}

.changes li {
  padding: 3px 0;
  border-top: 1px solid var(--line);
}

.changes .champ { color: var(--muted); }

/* L'avertissement d'incomparabilité doit se voir : lire un écart entre deux
   analystes comme un changement de thèse est l'erreur que tout le module
   cherche à empêcher. */
.avertissement {
  margin: 10px 0 0;
  padding: 9px 12px;
  border-radius: 10px;
  border: 1px solid var(--danger);
  color: var(--danger);
  font-size: 13px;
  background: transparent;
}

.vide {
  padding: 22px;
  text-align: center;
  color: var(--muted);
  font-size: 14px;
  border: 1px dashed var(--line);
  border-radius: var(--radius);
}

/* L'ancrage de valorisation : chiffres, donc tabulaires — sinon les colonnes
   dansent d'une évaluation à l'autre et la comparaison devient pénible. */
.ancrage {
  margin-top: 10px;
  font-variant-numeric: tabular-nums;
}

/* Repéré sur une capture du 22/08 : le libellé collait au paragraphe au-dessus,
   ce qui le faisait lire comme la fin de la phrase précédente. */
.view > label { margin-top: 16px; }

/* Le verdict rendu après coup, rattaché à l'avis qu'il juge. Encadré et non
   simple ligne : c'est un jugement d'une autre nature que le reste de la carte,
   porté plus tard et par quelqu'un qui savait la suite. */
.verdict {
  margin-top: 10px;
  padding: 10px 13px;
  border-radius: 10px;
  border: 1px solid var(--line);
  border-left: 3px solid var(--line);
  background: var(--bg);
  font-size: 14px;
}

.verdict-tete {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.verdict p { margin: 6px 0 0; color: var(--muted); }

/* Le talent et la chance ne se ressemblent pas à l'œil. C'est tout l'enjeu :
   un « juste par chance » lu comme une réussite fabrique une confiance qui ne
   repose sur rien. */
.verdict.talent { border-left-color: var(--accent); }
.verdict.talent strong { color: var(--accent); }
.verdict.chance { border-left-color: var(--danger); }
.verdict.chance strong { color: var(--danger); }
.verdict.faux { border-left-color: var(--muted); }
.verdict.attente { border-left-style: dashed; }
.verdict.attente strong { color: var(--muted); font-weight: 500; }

/* Les reserves d'un agent. Encadrees et non listees discretement : c'est ce qui
   doit arreter l'oeil avant de promouvoir, la ou le reste a l'air etabli. */
.reserves {
  margin-top: 12px;
  padding: 10px 13px;
  border-radius: 10px;
  border: 1px solid var(--danger);
  color: var(--danger);
  font-size: 13.5px;
}

.reserves ul { margin: 6px 0 0; padding-left: 18px; }
.reserves li { margin-top: 3px; }

.brouillon-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-top: 14px;
}

.brouillon-actions button { width: auto; padding: 9px 16px; }
.brouillon-actions .hint { flex-basis: 100%; margin: 0; }
