/* Le sceau (synthèse de la refonte 2, lot 12-socle ; js/sceau.js). Espace : plein. Projet : teinté.
   La couleur vient de --c (css/synthese.css) ; sans --c, celle de l'accent. */
.sceau {
  --t: 26px;
  position: relative; flex: none; display: inline-grid; place-items: center; width: var(--t); height: var(--t);
  border-radius: calc(var(--t) * .32);
  background: var(--c, var(--accent)); color: var(--sur-c, var(--accent-contraste));
}
.sceau .ic { width: calc(var(--t) * .56); height: calc(var(--t) * .56); stroke-width: 1.9; }
.sceau-lettre { font-size: calc(var(--t) * .46); font-weight: 700; line-height: 1; letter-spacing: -.01em; }
.sceau-projet {
  background: color-mix(in srgb, var(--c, var(--accent)) var(--voile-pct), var(--carte));
  color: var(--c, var(--accent-texte));
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--c, var(--accent)) 18%, transparent);
}
.sceau-petit { --t: 22px; }
.sceau-moyen { --t: 26px; }
.sceau-grand { --t: 40px; }
.sceau-grand .ic { stroke-width: 1.75; }

/* Le nombre en pastille (rail des espaces, menus) : prune en clair, pastel en sombre, détouré du fond */
.sceau-nb {
  position: absolute; top: -5px; left: calc(100% - 12px); min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px;
  display: grid; place-items: center; font-size: 10.5px; font-weight: 700; line-height: 1; font-variant-numeric: tabular-nums;
  background: var(--prune); color: #FFFFFF; box-shadow: 0 0 0 2px var(--sceau-anneau, var(--fond));
}
.sceau-petit .sceau-nb { top: -7px; left: calc(100% - 9px); }
/* Ancrée à gauche : « 99+ » s'allonge vers l'extérieur, sans couvrir l'initiale ni l'icône. */
:root[data-theme="dark"] .sceau-nb { background: var(--pastel); color: var(--prune); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .sceau-nb { background: var(--pastel); color: var(--prune); } }
