/* CSS exclusif à la page « Scanner de documents » (tout est sous .sc). */
.sc { font-family: var(--font-body, 'Instrument Sans', system-ui, sans-serif); color: var(--ink); --sc-danger: #dc2626; }
.sc *, .sc *::before, .sc *::after { box-sizing: border-box; }
.sc [hidden] { display: none !important; }
.sc button, .sc select, .sc input { font-family: inherit; }
.sc :focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }

.sc-wrap { padding: var(--app-gutter, 24px) 0; }

.sc-app { display: flex; flex-direction: column; height: calc(100vh - 2 * var(--app-gutter, 24px)); height: calc(100dvh - 2 * var(--app-gutter, 24px)); min-height: 480px;
  background: var(--white); border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow); overflow: hidden; }
.sc .app-body { flex: 1; display: flex; min-height: 0; }

.sc .btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 36px; padding: 0 14px; border-radius: 10px; cursor: pointer;
  font-family: inherit; font-size: .88rem; font-weight: 600; line-height: 1.2; letter-spacing: 0; text-transform: none; text-decoration: none; white-space: nowrap;
  color: var(--ink); background: var(--white); border: 1px solid var(--line); box-shadow: none; transform: none; transition: border-color .15s, background .15s, color .15s; }
.sc .btn:hover:not(:disabled) { color: var(--brand); border-color: #b9c9f5; background: var(--brand-tint); transform: none; box-shadow: none; }
.sc .btn:disabled { opacity: .45; cursor: not-allowed; }
.sc #btnExport, .sc #dzImport, .sc #cropOk, .sc #camShot, .sc #dlgClose { color: #fff; background: var(--brand); border-color: var(--brand); }
.sc #btnExport:hover:not(:disabled), .sc #dzImport:hover:not(:disabled), .sc #cropOk:hover:not(:disabled), .sc #camShot:hover:not(:disabled), .sc #dlgClose:hover:not(:disabled) { color: #fff; background: var(--brand-dark); border-color: var(--brand-dark); }
.sc .btn-sm { padding: 0 .7rem; }
.sc .btn.btn-icon, .sc .btn.btn-icon:hover:not(:disabled) { width: 32px; min-height: 32px; padding: 0; border: 0; background: none; color: var(--ink); border-radius: 8px; }
.sc .btn.btn-icon:hover:not(:disabled) { color: var(--brand); background: var(--brand-tint); }
.sc .btn.btn-icon:disabled { opacity: .3; }
.sc .btn-icon svg { width: 18px; height: 18px; display: block; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; pointer-events: none; }

.sc .sidebar { width: 250px; flex-shrink: 0; display: flex; flex-direction: column; gap: 6px; padding: 16px 12px; overflow-y: auto; background: var(--soft); border-right: 1px solid var(--line); }
.sc .sidebar-section { display: flex; justify-content: space-between; align-items: center; padding: 10px 6px 4px; font-size: .68rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.sc .sidebar-btn { display: flex; align-items: center; gap: 10px; width: 100%; padding: 10px 12px; font-size: .9rem; font-weight: 600; text-align: left; cursor: pointer; color: var(--ink); background: var(--white); border: 1px solid var(--line); border-radius: 10px; transition: border-color .15s, background .15s, color .15s; }
.sc .sidebar-btn svg { width: 18px; height: 18px; flex-shrink: 0; fill: none; stroke: var(--brand); stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.sc .sidebar-btn:hover { color: var(--brand); border-color: #b9c9f5; background: var(--brand-tint); }
.sc .sidebar-divider { height: 1px; margin: 8px 2px; background: var(--line); }
.sc .sidebar-count { padding: 1px 8px; font-size: .7rem; font-weight: 600; letter-spacing: 0; color: var(--brand); background: var(--brand-tint); border-radius: 20px; }
.sc .sidebar-privacy { margin-top: auto; padding: 12px 6px 2px; font-size: .74rem; line-height: 1.55; color: var(--muted); }
.sc .sidebar-privacy strong { color: var(--ink); }

.sc .pages { display: flex; flex-direction: column; gap: 6px; margin: 0; padding: 0; list-style: none; }
.sc .page-item { position: relative; display: grid; grid-template-columns: 44px 1fr 24px; align-items: center; gap: 10px; padding: 6px 6px 6px 10px; cursor: pointer; border: 1px solid transparent; border-radius: 10px; }
.sc .page-item:hover { background: var(--white); border-color: var(--line); }
.sc .page-item.active { background: var(--white); border-color: #b9c9f5; box-shadow: 0 1px 2px rgba(15, 27, 51, .05); }
.sc .page-item.active::before { content: ''; position: absolute; left: 0; top: 20%; bottom: 20%; width: 3px; border-radius: 0 3px 3px 0; background: var(--brand); }
.sc .page-item img { width: 44px; height: 56px; object-fit: cover; background: #fff; border: 1px solid var(--line); border-radius: 4px; }
.sc .page-name { font-size: .85rem; font-weight: 600; }
.sc .page-sub { font-size: .7rem; color: var(--muted); }
.sc .page-tag { color: var(--brand); font-weight: 600; }
.sc .page-del { padding: 2px; font-size: 1rem; line-height: 1; cursor: pointer; color: var(--muted); background: transparent; border: none; border-radius: 4px; }
.sc .page-del:hover { color: var(--sc-danger); background: #fee2e2; }
.sc .page-item[draggable="true"] { cursor: grab; }
.sc .page-item.over { border-color: var(--brand); background: var(--brand-tint); }
.sc .page-item.dragging { opacity: .4; }
.sc .empty-hint { padding: 14px 6px; font-size: .8rem; line-height: 1.5; color: var(--muted); }

.sc .main { flex: 1; display: flex; flex-direction: column; min-width: 0; min-height: 0; }
.sc .panel-header { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; padding: 14px 20px; border-bottom: 1px solid var(--line); }
.sc .panel-cat-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--brand); }
.sc .panel-cat-name { font-family: var(--font-head, 'Bricolage Grotesque', sans-serif); font-size: 1.05rem; font-weight: 700; }
.sc .panel-formats { flex: 1; overflow: hidden; font-size: .76rem; color: var(--muted); white-space: nowrap; text-overflow: ellipsis; }
.sc .panel-controls { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.sc .ctrl-group { display: flex; align-items: center; gap: 8px; min-height: 36px; padding: 4px 10px; background: var(--soft); border: 1px solid var(--line); border-radius: 10px; }
.sc .ctrl-label { font-size: .68rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.sc .ctrl-select { font-size: .85rem; font-weight: 600; color: var(--ink); background: transparent; border: none; cursor: pointer; }
.sc .ctrl-select option, .sc .dlg-input option { background: var(--white); color: var(--ink); }
.sc .ctrl-range { width: 96px; accent-color: var(--brand); cursor: pointer; }
.sc .ctrl-range:disabled { opacity: .45; cursor: not-allowed; }
.sc .ctrl-val { min-width: 3.2ch; font-size: .76rem; font-weight: 600; text-align: right; color: var(--muted); font-variant-numeric: tabular-nums; }
.sc .panel-controls > .btn { align-self: center; }

.sc .content-area { flex: 1; display: flex; flex-direction: column; gap: 14px; min-height: 0; padding: 17px 20px; overflow-y: auto; background: var(--white); }
.sc .status-bar { display: flex; align-items: center; gap: 10px; flex-shrink: 0; min-height: 40px; padding: 8px 14px; background: var(--soft); border: 1px solid var(--line); border-radius: 10px; }
.sc .status-dot, .sc .conv-live-dot { width: 8px; height: 8px; flex-shrink: 0; border-radius: 50%; background: #c3cde0; transition: background .3s; }
.sc .status-dot.active, .sc .conv-live-dot.active { background: var(--brand); animation: sc-pulse 1.5s infinite; }
.sc .status-dot.done, .sc .conv-live-dot.done { background: var(--ok); animation: none; }
.sc .status-dot.error, .sc .conv-live-dot.error { background: var(--sc-danger); animation: none; }
@keyframes sc-pulse { 0%, 100% { opacity: 1; } 50% { opacity: .4; } }
@media (prefers-reduced-motion: reduce) { .sc .status-dot.active, .sc .conv-live-dot.active { animation: none; } }
.sc .status-text { font-size: .85rem; color: var(--muted); }

.sc .dropzone { flex: 0 0 auto; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; padding: 13px 22px; text-align: center; cursor: pointer;
  background: var(--soft); border: 2px dashed #c3d0ea; border-radius: 16px; transition: border-color .2s, background .2s; }
.sc .dropzone:hover, .sc .dropzone.drag { border-color: var(--brand); background: var(--brand-tint); }
.sc .dz-icon { display: grid; place-items: center; width: 64px; height: 64px; margin-bottom: 6px; color: #fff; background: linear-gradient(145deg, #3b6cf0, var(--brand-dark)); border-radius: 18px; box-shadow: 0 10px 20px -8px rgba(29, 78, 216, .5); }
.sc .dz-icon svg { width: 30px; height: 30px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.sc .dz-title { margin: 0; font-family: var(--font-head, 'Bricolage Grotesque', sans-serif); font-size: 1.3rem; font-weight: 600; line-height: 1.3; color: var(--ink); }
.sc .dz-sub { margin: 0; max-width: 52ch; font-size: .9rem; line-height: 1.55; color: var(--muted); }
.sc .dz-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 10px; }
.sc .dz-actions .btn { min-height: 42px; padding: 0 20px; font-size: .95rem; }

.sc .stage { flex: 1; display: flex; align-items: center; justify-content: center; min-height: 0; padding: 16px; overflow: hidden; background: var(--soft); border: 1px solid var(--line); border-radius: 14px; }
.sc .stage canvas { width: auto; height: auto; max-width: 100%; max-height: 100%; background: #fff; box-shadow: 0 1px 2px rgba(15, 27, 51, .08), 0 14px 34px -10px rgba(15, 27, 51, .25); }
.sc .noscript-msg { margin: 16px 0; padding: 12px 16px; font-size: .9rem; line-height: 1.55; background: var(--brand-tint); border: 1px solid #b9c9f5; border-radius: 10px; color: var(--ink); }

.sc .conv-footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-shrink: 0; height: 40px; padding: 0 20px; background: var(--soft); border-top: 1px solid var(--line); }
.sc .conv-ft-status { overflow: hidden; font-size: .78rem; color: var(--muted); white-space: nowrap; text-overflow: ellipsis; }
.sc .conv-live-ind { display: flex; align-items: center; gap: 6px; flex-shrink: 0; }
.sc .conv-live-txt { font-size: .68rem; font-weight: 700; letter-spacing: .08em; color: var(--muted); }

.sc .dlg { position: fixed; inset: 0; z-index: 115; display: none; align-items: center; justify-content: center; padding: 16px; background: rgba(15, 27, 51, .55); }
.sc .dlg.open { display: flex; }
.sc .dlg-card { display: flex; flex-direction: column; gap: 16px; width: min(460px, 100%); max-height: 100%; padding: 24px; overflow: auto; background: var(--white); border: 1px solid var(--line); border-radius: 18px; box-shadow: 0 24px 60px -20px rgba(15, 27, 51, .45); }
.sc .dlg-card h2 { font-family: var(--font-head, 'Bricolage Grotesque', sans-serif); font-size: 1.25rem; font-weight: 700; }
.sc .dlg-row { display: flex; flex-direction: column; gap: 6px; font-size: .88rem; font-weight: 600; }
.sc .dlg-row small { font-size: .76rem; font-weight: 400; line-height: 1.5; color: var(--muted); }
.sc .dlg-input { width: 100%; padding: 9px 12px; font-size: .9rem; color: var(--ink); background: var(--white); border: 1px solid var(--line); border-radius: 10px; }
.sc .dlg-input:focus { outline: 2px solid var(--brand); outline-offset: 1px; border-color: var(--brand); }
.sc .dlg-input:disabled { opacity: .45; cursor: not-allowed; }
.sc .dlg-range { width: 100%; }
.sc .dlg-check { display: flex; align-items: center; gap: 8px; cursor: pointer; }
.sc .dlg-check input { width: 16px; height: 16px; accent-color: var(--brand); cursor: pointer; }
.sc .dlg-bar { display: flex; justify-content: flex-end; }
.sc .dlg-bar .btn { min-height: 40px; padding: 0 20px; }
.sc .exp-choices { display: flex; flex-direction: column; gap: 10px; }
.sc .exp-choice { display: flex; align-items: center; gap: 14px; width: 100%; padding: 14px 16px; text-align: left; cursor: pointer; color: var(--ink); background: var(--white); border: 1px solid var(--line); border-radius: 14px; transition: border-color .15s, background .15s; }
.sc .exp-choice:hover { border-color: #b9c9f5; background: var(--brand-tint); }
.sc .exp-choice svg { width: 28px; height: 28px; flex-shrink: 0; fill: none; stroke: var(--brand); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.sc .exp-choice strong { display: block; font-size: .95rem; font-weight: 700; }
.sc .exp-choice small { display: block; margin-top: 2px; font-size: .78rem; line-height: 1.4; color: var(--muted); }

.sc .cam, .sc .crop { position: fixed; inset: 0; display: none; flex-direction: column; align-items: center; justify-content: center; gap: 14px; padding: 16px; background: rgba(15, 27, 51, .94); }
.sc .cam { z-index: 100; }
.sc .crop { z-index: 110; }
.sc .cam.open, .sc .crop.open { display: flex; }
.sc .cam video { display: block; max-width: 100%; max-height: 60vh; background: #000; border: 1px solid rgba(255, 255, 255, .18); border-radius: 14px; }
.sc .cam-bar, .sc .crop-bar { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 10px; }
.sc .cam-bar .btn, .sc .crop-bar .btn { min-height: 42px; padding: 0 20px; font-size: .95rem; }
.sc .cam-count { min-width: 7ch; font-size: .85rem; text-align: center; color: #cbd5e1; }
.sc .crop canvas { touch-action: none; cursor: crosshair; background: #000; border: 1px solid rgba(255, 255, 255, .18); border-radius: 14px; }
.sc .crop-hint { max-width: 60ch; min-height: 1.5em; font-size: .88rem; line-height: 1.5; text-align: center; color: #cbd5e1; }
.sc .crop-hint.error { color: #fca5a5; }
.sc .loupe { position: fixed; z-index: 120; display: none; box-sizing: content-box; background: #000; border: 2px solid #6f9bff; border-radius: 50%; box-shadow: 0 6px 20px rgba(0, 0, 0, .5); pointer-events: none; }

.sc #libDlg .dlg-card { width: min(640px, 100%); }
.sc .lib-crumb { display: flex; flex-wrap: wrap; gap: 2px; align-items: center; font-size: .86rem; font-weight: 600; }
.sc .lib-crumb button { padding: 3px 7px; font: inherit; color: var(--brand); cursor: pointer; background: none; border: 0; border-radius: 6px; }
.sc .lib-crumb button:hover { background: var(--brand-tint); }
.sc .lib-bar { display: flex; flex-wrap: wrap; gap: 8px; }
.sc .lib-list { margin: 0; padding: 0; list-style: none; max-height: 44vh; overflow: auto; border: 1px solid var(--line); border-radius: 12px; }
.sc .lib-row { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 10px; padding: 8px 10px; border-bottom: 1px solid var(--line); }
.sc .lib-row:last-child { border-bottom: 0; }
.sc .lib-name { flex: 1 1 180px; min-width: 0; padding: 4px 0; font: inherit; text-align: left; color: var(--ink); cursor: pointer; background: none; border: 0; overflow-wrap: anywhere; }
.sc .lib-name small { display: block; font-size: .75rem; color: var(--muted); }
.sc .lib-act { display: flex; flex-wrap: wrap; gap: 6px; }
.sc .lib-empty { padding: 20px; font-size: .88rem; text-align: center; color: var(--muted); }
.sc .lib-move { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; padding: 8px 10px; font-size: .85rem; background: var(--brand-tint); border-radius: 10px; }
.sc .lib-msg { min-height: 1.2em; margin: 0; font-size: .84rem; font-weight: 600; }
.sc #inOk { color: #fff; background: var(--brand); border-color: var(--brand); }
.sc .stage-bar { display: flex; gap: 8px; align-items: center; justify-content: center; flex-wrap: wrap; padding-top: 8px; }
.sc .stage-bar[hidden] { display: none; }
.sc .stage-idx { font-size: .82rem; font-weight: 600; min-width: 56px; text-align: center; opacity: .8; }
.sc #stOrig { touch-action: none; user-select: none; -webkit-user-select: none; }
.sc .stage.zoomed { overflow: auto; align-items: flex-start; justify-content: flex-start; }
.sc .stage.zoomed canvas { max-width: none; max-height: none; margin: auto; flex: none; }
.sc .cam-view { position: relative; display: flex; max-width: 100%; }
.sc .cam-grid { position: absolute; inset: 0; border-radius: 14px; pointer-events: none;
  background: linear-gradient(to right, transparent calc(33.3% - 1px), rgba(255,255,255,.4) calc(33.3% - 1px), rgba(255,255,255,.4) 33.3%, transparent 33.3%, transparent calc(66.6% - 1px), rgba(255,255,255,.4) calc(66.6% - 1px), rgba(255,255,255,.4) 66.6%, transparent 66.6%),
              linear-gradient(to bottom, transparent calc(33.3% - 1px), rgba(255,255,255,.4) calc(33.3% - 1px), rgba(255,255,255,.4) 33.3%, transparent 33.3%, transparent calc(66.6% - 1px), rgba(255,255,255,.4) calc(66.6% - 1px), rgba(255,255,255,.4) 66.6%, transparent 66.6%); }
.sc #camOv { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.sc .cam-view.flash::after { content: ''; position: absolute; inset: 0; border-radius: 14px; background: #fff; pointer-events: none; animation: sc-flash .25s ease-out forwards; }
@keyframes sc-flash { from { opacity: .8; } to { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .sc .cam-view.flash::after { animation: none; opacity: 0; } }
.sc .cam-bar .dlg-input { width: auto; min-height: 42px; }
.sc .btn.on, .sc .btn.on:hover:not(:disabled) { color: #fff; background: var(--brand); border-color: var(--brand); }
.sc .ctrl-group .btn-sm { min-height: 28px; }
.sc ::-webkit-scrollbar { width: 8px; height: 8px; }
.sc ::-webkit-scrollbar-thumb { background: #c3cde0; border-radius: 4px; }

@media (max-width: 760px) {
  .sc .app-body { flex-direction: column; }
  .sc .sidebar { width: 100%; flex-direction: row; align-items: center; padding: 8px; overflow-x: auto; overflow-y: hidden; border-right: 0; border-bottom: 1px solid var(--line); }
  .sc .sidebar-section, .sc .sidebar-divider, .sc .sidebar-privacy, .sc .empty-hint { display: none; }
  .sc .sidebar-btn { width: auto; white-space: nowrap; }
  .sc .pages { flex-direction: row; }
  .sc .page-item { grid-template-columns: 44px 24px; }
  .sc .page-item > div { display: none; }
  .sc .panel-header { padding: 12px 14px; }
  .sc .panel-formats { display: none; }
  .sc .content-area { padding: 14px; }
}

/* ===== Annotation (signer, texte, masquer) ===== */
.sc .ann { position: fixed; inset: 0; z-index: 112; display: none; align-items: center; justify-content: center; padding: 16px; background: rgba(15, 27, 51, .6); }
.sc .ann.open { display: flex; }
.sc .ann-card { display: flex; flex-direction: column; width: min(980px, 100%); height: min(860px, 100%); overflow: hidden; background: var(--white); border: 1px solid var(--line); border-radius: 18px; box-shadow: 0 24px 60px -20px rgba(15, 27, 51, .45); }
.sc .ann-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-shrink: 0; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.sc .ann-title { margin: 0; font-family: var(--font-head, 'Bricolage Grotesque', sans-serif); font-size: 1.05rem; font-weight: 700; }
.sc #annOk { color: #fff; background: var(--brand); border-color: var(--brand); }
.sc #annOk:hover:not(:disabled) { color: #fff; background: var(--brand-dark); border-color: var(--brand-dark); }
.sc .ann-stage { flex: 1; display: flex; align-items: center; justify-content: center; min-height: 0; padding: 12px; overflow: hidden; background: var(--soft); }
.sc .ann-stage canvas { display: block; flex: none; touch-action: none; user-select: none; -webkit-user-select: none; cursor: crosshair; background: #fff; box-shadow: 0 1px 2px rgba(15, 27, 51, .08), 0 14px 34px -10px rgba(15, 27, 51, .25); }
.sc .ann-stage canvas[data-tool="t"] { cursor: text; }
.sc .ann-hint { flex-shrink: 0; margin: 0; padding: 8px 16px; min-height: 3.1em; display: flex; align-items: center; justify-content: center; font-size: .84rem; line-height: 1.45; text-align: center; color: var(--muted); border-top: 1px solid var(--line); }
.sc .ann-hint.warn { color: #92400e; background: #fffbeb; }
.sc .ann-tools { display: flex; flex-direction: column; gap: 12px; flex-shrink: 0; padding: 12px 16px 16px; border-top: 1px solid var(--line); }
.sc .ann-tabs { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px; }
.sc .ann-opts { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; min-height: 44px; }
.sc .ann-grp { display: flex; align-items: center; gap: 10px; }
.sc .ann-textrow { display: flex; gap: 8px; width: 100%; }
.sc .ann-textrow .dlg-input { flex: 1; min-width: 0; font-size: 1rem; }
.sc .ann-seg { display: inline-flex; gap: 2px; padding: 3px; background: var(--soft); border: 1px solid var(--line); border-radius: 12px; }
.sc .ann-seg button { display: inline-flex; align-items: center; gap: 6px; min-height: 34px; padding: 0 12px; font-size: .86rem; font-weight: 600; white-space: nowrap; color: var(--muted); cursor: pointer; background: transparent; border: 0; border-radius: 9px; transition: background .15s, color .15s; }
.sc .ann-seg button:hover { color: var(--brand); }
.sc .ann-seg button[aria-pressed="true"] { color: var(--brand); background: var(--white); box-shadow: 0 1px 2px rgba(15, 27, 51, .12); }
.sc .ann-seg svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.sc .ann-sws { display: flex; gap: 10px; }
.sc .ann-sw { width: 30px; height: 30px; padding: 0; cursor: pointer; background: var(--c); border: 2px solid var(--white); border-radius: 50%; box-shadow: 0 0 0 1px var(--line); }
.sc .ann-sw[aria-pressed="true"] { box-shadow: 0 0 0 2px var(--brand); }

@media (max-width: 760px) {
  .sc .ann { padding: 0; }
  .sc .ann-card { width: 100%; height: 100%; border: 0; border-radius: 0; }
  .sc .ann-stage { padding: 8px; }
  .sc .ann-hint { padding: 6px 12px; font-size: .8rem; }
  .sc .ann-tools { gap: 10px; padding: 10px 12px 14px; }
  .sc .ann-opts { gap: 10px 16px; }
  .sc .ann-seg button { padding: 0 9px; }
  .sc .ann-grp { flex-wrap: wrap; gap: 6px 10px; }
}

/* ---- Sélection multiple ---- */
.sc .selbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 12px; flex-shrink: 0; padding: 8px 12px; background: var(--brand-tint); border: 1px solid #b9c9f5; border-radius: 10px; }
.sc .selbar-count { font-size: .85rem; font-weight: 600; color: var(--brand); }
.sc .selbar-btns { display: flex; flex-wrap: wrap; gap: 6px; }
.sc .selbar .btn-sm { min-height: 32px; }
.sc .page-item { -webkit-touch-callout: none; -webkit-user-select: none; user-select: none; }
.sc .page-item.sel { background: var(--brand-tint); border-color: #b9c9f5; }
.sc .page-chk { position: absolute; left: 14px; top: 10px; z-index: 1; width: 18px; height: 18px; border: 2px solid #fff; border-radius: 5px; background: rgba(15, 27, 51, .45); box-shadow: 0 0 0 1px rgba(15, 27, 51, .25); pointer-events: none; }
.sc .page-item.sel .page-chk { background: var(--brand); }
.sc .page-item.sel .page-chk::after { content: ''; position: absolute; left: 4px; top: 0; width: 5px; height: 9px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg); }

/* ---- Carte d'identité guidée ---- */
.sc .cam-id { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; overflow: hidden; border-radius: 14px; pointer-events: none; }
.sc .cam-id-frame { box-sizing: border-box; border: 2px solid #fff; border-radius: 10px; box-shadow: 0 0 0 9999px rgba(0, 0, 0, .5); }
.sc .id-prev { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.sc .id-prev figure { display: flex; flex-direction: column; align-items: center; gap: 6px; margin: 0; }
.sc .id-prev img { display: block; width: 100%; height: auto; background: #fff; border: 1px solid var(--line); border-radius: 8px; }
.sc .id-prev figcaption { font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.sc #idDlg .dlg-bar { flex-wrap: wrap; gap: 8px; }
.sc #idPdf, .sc #idShoot { color: #fff; background: var(--brand); border-color: var(--brand); }
.sc #idPdf:hover:not(:disabled), .sc #idShoot:hover:not(:disabled) { color: #fff; background: var(--brand-dark); border-color: var(--brand-dark); }

/* ---- Annotation : choix de police + note compte ---- */
.sc .ann-note { margin: 0; font-size: .78rem; line-height: 1.45; color: var(--muted); }
.sc .ann-note a { color: var(--brand); font-weight: 600; }
