/* Écrans propres à Honoré Sign : uniquement des tokens du design system, préfixe hs-. */

.hs-hero { font-size: var(--hg-fs-display); font-weight: var(--hg-fw-black); line-height: 1.1; letter-spacing: -.02em; }
.hs-hero em { font-style: normal; color: var(--hg-accent); }
.hs-narrow { max-width: 34rem; margin-inline: auto; width: 100%; }
.hs-mono { font-family: var(--hg-mono); font-size: var(--hg-fs-xs); word-break: break-all; }
.hs-nowrap { white-space: nowrap; }
.hs-right { text-align: right; }
.hs-file { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }

/* Visionneuse PDF : pages empilées, zones posées par-dessus en pourcentages de la page. */
.hs-viewer { display: flex; flex-direction: column; gap: var(--hg-space-4); align-items: center; padding: var(--hg-space-4); background: var(--hg-surface-3); border-radius: var(--hg-radius-lg); }
.hs-viewer--scroll { max-height: 75vh; overflow-y: auto; overscroll-behavior: contain; }
.hs-page { position: relative; flex: none; width: 100%; max-width: 52rem; background: var(--hg-white); box-shadow: var(--hg-shadow); border-radius: var(--hg-radius-sm); overflow: hidden; }
.hs-page canvas { display: block; width: 100%; height: auto; }
.hs-page__num { position: absolute; right: var(--hg-space-2); bottom: var(--hg-space-2); font-size: var(--hg-fs-xs); color: var(--hg-gray-500); background: var(--hg-white); padding: 0 var(--hg-space-2); border-radius: var(--hg-radius-pill); }
.hs-page.is-clickable { cursor: crosshair; }

.hs-zone { position: absolute; border: 2px dashed currentColor; border-radius: var(--hg-radius-sm); background: color-mix(in srgb, currentColor 14%, transparent); font-size: var(--hg-fs-micro); font-weight: var(--hg-fw-semibold); line-height: 1.2; padding: 2px 4px; overflow: hidden; touch-action: none; user-select: none; }
.hs-zone__label { display: block; color: var(--hg-ink-950); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hs-zone.is-selected { border-style: solid; box-shadow: 0 0 0 3px color-mix(in srgb, currentColor 35%, transparent); }
.hs-zone--edit { cursor: move; }
.hs-zone__poignee { position: absolute; right: 0; bottom: 0; width: 12px; height: 12px; background: currentColor; cursor: nwse-resize; border-radius: var(--hg-radius-sm) 0 0 0; }
.hs-zone--moi { animation: hs-pulse 1.8s var(--hg-ease) infinite; }
@keyframes hs-pulse { 50% { background: color-mix(in srgb, currentColor 30%, transparent); } }
@media (prefers-reduced-motion: reduce) { .hs-zone--moi { animation: none; } }

/* Couleurs des signataires (zones, pastilles). */
.hs-c1 { color: var(--hg-blue-500); }
.hs-c2 { color: var(--hg-green-500); }
.hs-c3 { color: var(--hg-amber-500); }
.hs-c4 { color: var(--hg-red-500); }
.hs-c5 { color: var(--hg-yellow-800); }
.hs-c6 { color: var(--hg-ink-600); }
.hs-pastille { display: inline-block; width: .75rem; height: .75rem; border-radius: 50%; background: currentColor; flex: none; }

/* Éditeur : colonne des réglages + document. */
.hs-editeur { display: grid; grid-template-columns: minmax(0, 24rem) minmax(0, 1fr); gap: var(--hg-space-6); align-items: start; }
.hs-editeur__outils { position: sticky; top: var(--hg-space-4); max-height: calc(100vh - 2 * var(--hg-space-4)); overflow-y: auto; }
@media (max-width: 960px) { .hs-editeur { grid-template-columns: 1fr; } .hs-editeur__outils { position: static; max-height: none; } }
.hs-signataire { border: 1px solid var(--hg-border); border-radius: var(--hg-radius); padding: var(--hg-space-4); }
.hs-signataire legend { display: flex; align-items: center; gap: var(--hg-space-2); font-weight: var(--hg-fw-semibold); padding: 0 var(--hg-space-2); }

/* Signature : zone de dessin. */
.hs-fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.hs-pad { display: block; width: 100%; height: 11rem; background: var(--hg-white); border: 2px dashed var(--hg-border-strong); border-radius: var(--hg-radius); touch-action: none; cursor: crosshair; }
.hs-pad--petit { height: 6rem; }
.hs-apercu-cachet { max-height: 5rem; max-width: 10rem; border: 1px solid var(--hg-border); border-radius: var(--hg-radius-sm); background: var(--hg-white); }
.hs-code { font-family: var(--hg-mono); font-size: var(--hg-fs-h2); letter-spacing: .4em; text-align: center; }
.hs-progression { position: sticky; top: 0; z-index: var(--hg-z-sticky); }
.hs-liste { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--hg-space-2); }
.hs-liste li { display: flex; align-items: center; gap: var(--hg-space-2); }
.hs-societes { margin: 0; padding-left: var(--hg-space-5); }
.hs-sous { display: block; white-space: normal; font-size: var(--hg-fs-xs); color: var(--hg-text-muted); max-width: 32rem; }
