/* Sosies — feuille propre à l'outil. Le socle partagé (/commun/outil.css)
   est chargé avant elle. */

h1 {
  margin: 12px 0 28px;
}

h2 {
  margin: 28px 0 10px;
  color: var(--discret);
  font-size: 0.8rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

code {
  font-family: inherit;
  word-break: break-all;
}

/* --- La saisie ------------------------------------------------------------ */

.etiquette {
  display: block;
  margin-bottom: 8px;
  color: var(--discret);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.champ {
  display: block;
  width: 100%;
  padding: 14px 18px;
  background: var(--surface);
  border: 1px solid var(--filet);
  border-radius: 10px;
  color: var(--texte);
  font-family: inherit;
  font-size: 1.15rem;
}

.champ:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.champ[aria-invalid="true"] { border-color: var(--faible); }

.exemples {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 10px;
  margin: 10px 0 0;
  color: var(--discret);
  font-size: 0.8rem;
}

.exemples button {
  padding: 0;
  background: none;
  border: 0;
  color: var(--accent);
  font: inherit;
  cursor: pointer;
}

.exemples button:hover, .exemples button:focus-visible { text-decoration: underline; }
.exemples button:disabled { opacity: 0.5; cursor: default; }

.formulaire { margin: 0; }

.ligne-saisie {
  display: flex;
  gap: 10px;
}

.ligne-saisie .champ { flex: 1; min-width: 0; }

.erreur {
  margin: 12px 0 0;
}

/* --- Le résultat ----------------------------------------------------------- */

.resultat { margin-top: 24px; }

.verdict { margin: 18px 0 8px; font-size: 1rem; }

.details {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 8px 20px;
  margin: 0;
  font-size: 0.95rem;
}

.details dt { color: var(--discret); }
.details dd { margin: 0; min-width: 0; }
.details code { color: var(--texte); }

@media (max-width: 480px) {
  .details { grid-template-columns: 1fr; gap: 0; }
  .details dd { margin-bottom: 10px; }
}

.aide {
  margin: 12px 0 0;
  font-size: 0.85rem;
}

.bouton {
  margin-top: 12px;
  padding: 8px 16px;
  background: transparent;
  border: 1px solid var(--accent);
  border-radius: 8px;
  color: var(--accent);
  font-family: inherit;
  font-size: 0.85rem;
  cursor: pointer;
}

/* Le bouton de recherche, à côté du champ et de la même hauteur. */
.bouton.plein {
  margin-top: 0;
  padding: 0 18px;
  background: var(--accent);
  color: var(--fond);
  font-weight: 600;
  font-size: 0.95rem;
}

.bouton.plein:hover { background: #5be69a; }

/* --- Ce qui est propre à cet outil ------------------------------------------ */

.intro { margin: -12px 0 24px; color: var(--discret); font-size: 0.9rem; }

.verdict { font-weight: 600; }
.verdict.danger { color: var(--faible); }
.verdict.attention { color: var(--attention); }
.verdict.info, .verdict.rien { color: var(--texte); }

/* L'avertissement, affiché à chaque analyse : un regard humain reste
   nécessaire. */
.avertissement {
  margin: 0 0 20px;
  padding: 12px 14px;
  border: 1px solid var(--attention);
  border-radius: 10px;
  color: var(--texte);
  font-size: 0.85rem;
}
.avertissement strong { color: var(--attention); font-weight: 600; }

/* Le groupe « Affiché » : ses dt et dd restent des cases de la grille. */
.details .groupe { display: contents; }
.details code { overflow-wrap: anywhere; word-break: normal; }
.details .prefixe { color: var(--discret); }
.details strong { color: var(--texte); font-weight: 600; }
.details .refuse { color: var(--faible); }

.indices {
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
  font-size: 0.9rem;
}
.indices li {
  padding: 10px 14px;
  background: var(--surface);
  border: 1px solid var(--filet);
  border-left-width: 3px;
  border-radius: 10px;
  overflow-wrap: anywhere;
}
.indices li + li { margin-top: 6px; }
.indices li.danger { border-left-color: var(--faible); }
.indices li.attention { border-left-color: var(--attention); }
.indices li.info { border-left-color: var(--discret); }
.pastille {
  display: inline-block;
  padding: 0 6px;
  border-radius: 4px;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--fond);
}
.danger > .pastille { background: var(--faible); }
.attention > .pastille { background: var(--attention); }
.info > .pastille { background: var(--discret); }

/* Le nom, une case par caractère ; les cases marquées sont colorées. */
.bande {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.bande .car {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 2.1em;
  padding: 4px 4px 2px;
  background: var(--surface);
  border: 1px solid var(--filet);
  border-radius: 6px;
}
.bande .sep { min-width: 1.2em; background: transparent; border-color: transparent; }
.bande .glyphe { font-size: 1.25rem; line-height: 1.3; white-space: pre; }
.bande .code { color: var(--discret); font-size: 0.6rem; }
.bande .danger { border-color: var(--faible); background: rgba(229, 115, 107, 0.12); }
.bande .attention { border-color: var(--attention); background: rgba(229, 180, 84, 0.1); }
.bande .info { border-color: var(--discret); }

.fiches {
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
  font-size: 0.85rem;
}
.fiches li { padding: 4px 0; color: var(--discret); overflow-wrap: anywhere; }
.fiches .glyphe {
  display: inline-block;
  min-width: 1.6em;
  color: var(--texte);
  font-size: 1.1rem;
  text-align: center;
}
.fiches .code { color: var(--texte); }
.fiches li.danger .glyphe { color: var(--faible); }
.fiches li.attention .glyphe { color: var(--attention); }

/* --- Transparence ---------------------------------------------------------- */

.transparence h2 { margin-top: 0; }
.transparence code { color: var(--discret); font-size: 0.85em; }
.transparence .fichiers li + li { margin-top: 6px; }

.alerte {
  margin: 16px 0 0;
}
