/* Evotic Edge — Signature de documents (PWA) 2026-08-06. Palette violet M3. */

.sgn-root { max-width: 620px; margin: 0 auto; padding: 12px 14px 40px; }

.sgn-tabs { display: flex; gap: 6px; background: var(--surface-2, #f2eefb); border-radius: 14px; padding: 5px; margin-bottom: 16px; }
.sgn-tab {
  flex: 1; display: flex; flex-direction: column; align-items: center; gap: 3px;
  border: none; background: transparent; color: var(--muted, #6b6580);
  padding: 8px 4px; border-radius: 10px; cursor: pointer; font: inherit; font-size: 11px; font-weight: 600;
}
.sgn-tab i { font-size: 15px; }
.sgn-tab.active { background: #6750A4; color: #fff; }

.sgn-pane { min-height: 200px; }
.sgn-intro { font-size: 13px; color: var(--muted, #6b6580); line-height: 1.5; margin: 0 0 14px; }
.sgn-hint { font-size: 13px; color: var(--muted, #8a8398); margin: 8px 0; }
.sgn-hint.sgn-warn { color: #C0392B; }
.sgn-hint.sgn-ok2 { color: #1B7F3B; }
.sgn-warn { color: #C0392B; }

.sgn-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%; border: 1px solid #d8d0ea; background: var(--surface, #fff); color: var(--text, #201a2e);
  border-radius: 12px; padding: 12px 16px; font: inherit; font-size: 14px; font-weight: 700; cursor: pointer;
  margin: 8px 0; text-decoration: none;
}
.sgn-btn:disabled { opacity: .5; cursor: default; }
.sgn-btn-primary { background: #6750A4; color: #fff; border-color: #6750A4; }
.sgn-btn-sm { width: auto; padding: 8px 12px; font-size: 13px; margin: 0; }

.sgn-field input {
  width: 100%; box-sizing: border-box; border: 1px solid #d8d0ea; border-radius: 12px;
  padding: 13px 14px; font: inherit; font-size: 16px; font-weight: 700; letter-spacing: .04em;
  text-transform: uppercase; background: var(--surface, #fff); color: var(--text, #201a2e);
}

.sgn-file {
  display: flex; align-items: center; gap: 12px; border: 1.5px dashed #b6a8dc; border-radius: 12px;
  padding: 16px; cursor: pointer; color: #6750A4; font-weight: 600; margin-bottom: 14px;
}
.sgn-file i { font-size: 20px; }

.sgn-phone-wrap { margin: 6px 0 10px; }
.sgn-phone-lbl { display: block; font-size: 13px; font-weight: 700; margin-bottom: 6px; color: var(--text, #201a2e); }
.sgn-phone { display: flex; align-items: center; gap: 5px; flex-wrap: wrap; }
.sgn-pd {
  width: 34px; height: 44px; text-align: center; border: 1px solid #d8d0ea; border-radius: 9px;
  font: inherit; font-size: 18px; font-weight: 800; background: var(--surface, #fff); color: var(--text, #201a2e);
}
.sgn-pd-fixed { background: #ece7f7; color: #8a8398; }
.sgn-pd-sep { width: 6px; }

.sgn-verify { border-radius: 14px; padding: 16px; margin-top: 14px; }
.sgn-verify.sgn-ok { background: #E9F7EE; border: 1px solid #b6e2c4; }
.sgn-verify.sgn-ko { background: #FDECEA; border: 1px solid #f3c2bc; color: #C0392B; font-weight: 700; }
.sgn-verify-h { display: flex; align-items: center; gap: 9px; font-size: 16px; font-weight: 900; color: #1B7F3B; margin-bottom: 10px; }
.sgn-verify-h i { font-size: 20px; }
.sgn-vr { display: flex; gap: 8px; padding: 3px 0; font-size: 13.5px; }
.sgn-vr span { color: var(--muted, #6b6580); min-width: 84px; }
.sgn-vr strong { color: var(--text, #201a2e); }

.sgn-card { background: var(--surface, #fff); border: 1px solid #ece7f7; border-radius: 14px; padding: 14px; margin-bottom: 10px; }
.sgn-card-h { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.sgn-card-h strong { font-size: 15px; }
.sgn-num { color: #6750A4; font-weight: 800; font-size: 13px; }
.sgn-card-meta { font-size: 12.5px; color: var(--muted, #6b6580); margin-top: 4px; }
.sgn-card-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }

.sgn-note { display: flex; gap: 10px; align-items: flex-start; background: #fff6e5; border: 1px solid #f0dcae; border-radius: 12px; padding: 12px; font-size: 12.5px; color: #7a5a12; line-height: 1.5; margin-bottom: 14px; }
.sgn-note i { font-size: 18px; margin-top: 1px; }

.sgn-empty { text-align: center; padding: 40px 20px; color: var(--muted, #8a8398); }
.sgn-empty i { font-size: 42px; color: #b6a8dc; }
.sgn-empty h3 { margin: 14px 0 6px; color: var(--text, #201a2e); font-size: 17px; }
.sgn-empty p { font-size: 13px; margin: 0 auto; max-width: 320px; }

@media (prefers-color-scheme: dark) {
  .sgn-tabs { background: #241d33; }
  .sgn-tab { color: #b3a9c9; }
  .sgn-btn { background: #1c1729; color: #ece7f7; border-color: #3a3350; }
  .sgn-field input, .sgn-pd { background: #1c1729; color: #ece7f7; border-color: #3a3350; }
  .sgn-pd-fixed { background: #2a2340; color: #8a8398; }
  .sgn-card { background: #1c1729; border-color: #2f2844; }
  .sgn-file { background: #1c1729; }
  .sgn-verify.sgn-ok { background: #172a1e; border-color: #2e5a3c; }
  .sgn-verify.sgn-ko { background: #2a1618; border-color: #5a2e30; }
  .sgn-note { background: #2a2210; border-color: #5a4a1e; color: #e0c88a; }
}
