/* Ce qu'IKOTOOL Signature ajoute à app.css.
 *
 * LE PROBLÈME. app.css est une copie identique de celle d'IKOTOOL Sites et
 * d'IKOADMIN Accès : y ajouter des règles la ferait diverger. Ce qui est propre
 * à cet outil (l'aperçu d'une signature, l'éditeur de modèle, les états) vit
 * donc ici, avec les mêmes tokens.
 */

/* Un mail est blanc, quel que soit le thème de l'outil : l'aperçu aussi. */
iframe.apercu { display: block; width: 100%; height: 300px; border: 1px solid var(--border); border-radius: var(--r-lg); background: #fff; resize: vertical; }
.deux { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.deux > * { min-width: 0; }
textarea.code { font-family: var(--ikn-font-mono); font-size: 13px; line-height: 1.5; min-height: 420px; white-space: pre; overflow: auto; tab-size: 2; }
.champs { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 10px 12px; margin: 8px 0 12px; }
.champs label { display: flex; flex-direction: column; gap: 4px; font-size: 13px; color: var(--text-secondary); }
.champs label.large { grid-column: 1 / -1; }
.badge.ok { background: var(--success-wash); color: var(--success); }
.badge.attente { background: var(--warning-wash); color: var(--warning); }
.badge.erreur { background: var(--danger-wash); color: var(--danger); }
.variables { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0; padding: 0; list-style: none; }
.variables li { margin: 0; }
.variables code { cursor: pointer; }
.banniere-apercu { max-width: 240px; max-height: 80px; border-radius: var(--r-sm); border: 1px solid var(--border); background: #fff; display: block; }
.actions-tete { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin: 0 0 16px; }
.actions-tete form { margin: 0; }

@media (max-width: 800px) {
  .deux { grid-template-columns: minmax(0, 1fr); }
  textarea.code { min-height: 280px; }
}

/* Un lien qui a l'allure d'un bouton (app.css ne le prévoit que sur l'accueil). */
main a.bouton { display: inline-flex; align-items: center; min-height: 40px; padding: 0 16px; border-radius: var(--r-md); background: var(--brand); color: var(--brand-on); text-decoration: none; font-weight: 500; }
main a.bouton:hover { background: var(--brand-hover); }
.ligne > form { margin: 0; }
