*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); font-size: var(--fs-md); line-height: 1.5; color: var(--text); background: var(--ora-beige); }
h1, h2, h3 { line-height: 1.2; margin: 0 0 var(--sp-3); }
h1 { font-size: var(--fs-2xl); } h2 { font-size: var(--fs-xl); } h3 { font-size: var(--fs-lg); }
p { margin: 0 0 var(--sp-3); }
a { color: var(--ora-primary); }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: none; box-shadow: var(--focus); border-radius: var(--r-sm); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
[hidden] { display: none !important; }

/* Bandeau démo */
.demo-banner { background: var(--ora-primary-deep); color: #fff; font-size: var(--fs-xs); text-align: center; padding: 6px var(--sp-4); }
.demo-banner strong { color: var(--ora-accent); }

/* En-tête */
.topbar { background: var(--surface); border-bottom: 1px solid var(--line); border-top: 6px solid var(--ora-accent); position: sticky; top: 0; z-index: 20; }
.topbar-inner { max-width: 1120px; margin: 0 auto; padding: var(--sp-3) var(--sp-4); display: flex; align-items: center; gap: var(--sp-4); }
.topbar img { height: 30px; display: block; }
.topbar .title { font-size: var(--fs-sm); color: var(--text-2); border-left: 1px solid var(--line); padding-left: var(--sp-4); }
.topbar .spacer { flex: 1; }
.topbar .help { font-size: var(--fs-sm); color: var(--text-2); text-decoration: none; }
.topbar .help strong { color: var(--text); }
.saved { font-size: var(--fs-xs); color: var(--ok); display: inline-flex; align-items: center; gap: 6px; }
.saved::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--ok); }

/* Progression */
.progress-wrap { background: var(--surface); border-bottom: 1px solid var(--line); }
.progress-inner { max-width: 1120px; margin: 0 auto; padding: var(--sp-3) var(--sp-4) var(--sp-4); }
.progress-meta { display: flex; justify-content: space-between; font-size: var(--fs-sm); margin-bottom: var(--sp-2); gap: var(--sp-3); }
.progress-meta b { font-weight: 650; }
.progress-meta span { color: var(--text-3); }
.bar { height: 6px; background: var(--line); border-radius: var(--r-pill); overflow: hidden; }
.bar > i { display: block; height: 100%; background: var(--ora-accent); border-radius: var(--r-pill); transition: width .35s ease; }
.steps { display: none; list-style: none; padding: 0; margin: var(--sp-3) 0 0; gap: var(--sp-2); }
.steps li { flex: 1; font-size: var(--fs-xs); color: var(--text-3); display: flex; align-items: center; gap: 6px; min-width: 0; }
.steps li .n { flex: none; width: 22px; height: 22px; border-radius: 50%; border: 1.5px solid var(--line-strong); display: grid; place-items: center; font-weight: 650; font-size: 11px; background: var(--surface); }
.steps li.done .n { background: var(--ora-primary); border-color: var(--ora-primary); color: #fff; }
.steps li.active { color: var(--text); font-weight: 600; }
.steps li.active .n { border-color: var(--ora-accent); background: var(--ora-accent); color: var(--ora-ink); }
.steps li .l { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (min-width: 900px) { .steps { display: flex; } }

/* Mise en page */
main { max-width: 760px; margin: 0 auto; padding: var(--sp-5) var(--sp-4) 120px; }
main.wide { max-width: 1120px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: var(--sp-5); box-shadow: var(--shadow); margin-bottom: var(--sp-4); }
.card > h2:first-child, .card > h3:first-child { margin-top: 0; }
.lead { color: var(--text-2); font-size: var(--fs-md); }
.eyebrow { font-size: var(--fs-xs); letter-spacing: .08em; text-transform: uppercase; color: var(--text-3); font-weight: 650; margin-bottom: var(--sp-2); }
.muted { color: var(--text-3); font-size: var(--fs-sm); }
.grid-2 { display: grid; gap: var(--sp-4); grid-template-columns: 1fr; }
@media (min-width: 640px) { .grid-2 { grid-template-columns: 1fr 1fr; } }
.section-title { font-size: var(--fs-sm); text-transform: uppercase; letter-spacing: .06em; color: var(--ora-primary); font-weight: 700; margin: var(--sp-5) 0 var(--sp-3); padding-top: var(--sp-4); border-top: 1px solid var(--line); }
.section-title:first-child { border-top: 0; padding-top: 0; margin-top: 0; }

/* Champs */
.field { display: flex; flex-direction: column; gap: 6px; }
.field label, .field legend { font-weight: 600; font-size: var(--fs-sm); }
.field .req { color: var(--err); margin-left: 2px; }
.field .hint { font-size: var(--fs-xs); color: var(--text-3); }
.field input, .field select, .field textarea { min-height: var(--tap); border: 1.5px solid var(--line-strong); border-radius: var(--r-md); padding: 10px 12px; background: var(--surface); width: 100%; }
.field textarea { min-height: 88px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--ora-accent); box-shadow: var(--focus); outline: none; }
.field.invalid input, .field.invalid select, .field.invalid textarea { border-color: var(--err); }
.field .err { color: var(--err); font-size: var(--fs-xs); font-weight: 600; }
.field.ocr input { background: var(--ora-tint); }
.field.ocr.low input { background: var(--warn-bg); border-color: var(--warn); }
.ocr-tag { font-size: 11px; font-weight: 600; color: var(--ora-primary); }
.field.low .ocr-tag { color: var(--warn); }
fieldset.field { border: 0; padding: 0; margin: 0; }
.seg { display: flex; flex-wrap: wrap; gap: var(--sp-2); }
.seg label { flex: 1 1 auto; min-height: var(--tap); border: 1.5px solid var(--line-strong); border-radius: var(--r-md); display: flex; align-items: center; justify-content: center; padding: 8px 14px; cursor: pointer; font-weight: 500; background: var(--surface); }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg input:checked + span { font-weight: 650; }
.seg label:has(input:checked) { border-color: var(--ora-accent); background: var(--ora-tint); box-shadow: inset 0 0 0 1px var(--ora-accent); }
.seg label:has(input:focus-visible) { box-shadow: var(--focus); }
.check { display: flex; gap: var(--sp-3); align-items: flex-start; padding: var(--sp-3); border: 1.5px solid var(--line); border-radius: var(--r-md); cursor: pointer; background: var(--surface); }
.check input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--ora-primary); flex: none; }

/* Cartes de choix */
.choices { display: grid; gap: var(--sp-3); grid-template-columns: 1fr; }
@media (min-width: 640px) { .choices.cols-3 { grid-template-columns: repeat(3, 1fr); } .choices.cols-2 { grid-template-columns: 1fr 1fr; } }
.choice { position: relative; display: block; border: 1.5px solid var(--line-strong); border-radius: var(--r-lg); padding: var(--sp-4); cursor: pointer; background: var(--surface); transition: border-color .15s, background .15s; }
.choice input { position: absolute; opacity: 0; }
.choice .t { font-weight: 650; display: block; margin-bottom: 2px; }
.choice .d { font-size: var(--fs-sm); color: var(--text-2); }
.choice .ic { width: 36px; height: 36px; border-radius: var(--r-md); background: var(--ora-tint); display: grid; place-items: center; margin-bottom: var(--sp-3); font-size: 18px; }
.choice:has(input:checked) { border-color: var(--ora-accent); background: var(--ora-tint); box-shadow: inset 0 0 0 1px var(--ora-accent); }
.choice:has(input:checked)::after { content: "✓"; position: absolute; top: 12px; right: 14px; width: 22px; height: 22px; border-radius: 50%; background: var(--ora-primary); color: #fff; font-size: 13px; display: grid; place-items: center; }
.choice:has(input:focus-visible) { box-shadow: var(--focus); }
.choice.disabled { opacity: .45; cursor: not-allowed; }

/* Boutons */
.btn { min-height: var(--tap); border-radius: var(--r-pill); border: 1.5px solid transparent; padding: 10px 20px; font-weight: 650; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 8px; text-decoration: none; background: none; }
.btn-primary { background: var(--ora-primary); color: #fff; }
.btn-primary:hover { background: var(--ora-primary-deep); }
.btn-dark { background: var(--ora-brown); color: #fff; }
.btn-dark:hover { background: #75553D; }
.btn-secondary { border-color: var(--ora-accent); background: var(--surface); color: var(--ora-primary); }
.btn-secondary:hover { border-color: var(--ora-primary); background: var(--ora-tint); }
.btn-ghost { color: var(--ora-primary); padding-inline: 8px; }
.btn-danger { border-color: var(--err); color: var(--err); background: var(--surface); }
.btn-ok { background: var(--ok); color: #fff; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .45; cursor: not-allowed; }
.btn-sm { min-height: 34px; padding: 6px 12px; font-size: var(--fs-sm); }
.btn-block { width: 100%; }
.actions { position: fixed; left: 0; right: 0; bottom: 0; background: var(--surface); border-top: 1px solid var(--line); z-index: 15; }
.actions-inner { max-width: 760px; margin: 0 auto; padding: var(--sp-3) var(--sp-4); display: flex; gap: var(--sp-3); align-items: center; }
.actions-inner .info { flex: 1; font-size: var(--fs-sm); color: var(--text-3); }

/* Badges et statuts */
.badge { display: inline-flex; align-items: center; font-size: 11px; font-weight: 650; padding: 2px 8px; border-radius: var(--r-pill); border: 1px solid transparent; white-space: nowrap; }
.badge.req { color: var(--err); background: var(--err-bg); }
.badge.opt { color: var(--text-2); border-color: var(--line-strong); }
.pill { font-size: var(--fs-xs); font-weight: 650; padding: 4px 10px; border-radius: var(--r-pill); background: #F0ECE6; color: var(--text-2); white-space: nowrap; }
.pill.ok { background: var(--ok-bg); color: var(--ok); }
.pill.warn { background: var(--warn-bg); color: var(--warn); }
.pill.err { background: var(--err-bg); color: var(--err); }
.pill.info { background: var(--info-bg); color: var(--info); }
.pill.orange { background: var(--ora-tint); color: var(--ora-primary); }

/* Alertes */
.alert { border-radius: var(--r-md); padding: var(--sp-3) var(--sp-4); font-size: var(--fs-sm); margin-bottom: var(--sp-4); border: 1px solid; }
.alert ul { margin: 6px 0 0; padding-left: 18px; }
.alert.err { background: var(--err-bg); border-color: #F2C5C2; color: #7D1B15; }
.alert.warn { background: var(--warn-bg); border-color: #F3D9A8; color: #6B3F00; }
.alert.info { background: var(--info-bg); border-color: #BFD7EA; color: #1F4E5F; }
.alert.ok { background: var(--ok-bg); border-color: #B8DEC6; color: #004F2D; }
.alert a { color: inherit; font-weight: 650; }

/* Liste des pièces (inspirée CBAO) */
.doc-head { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-3); margin-bottom: var(--sp-2); }
.docs { border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; background: var(--surface); }
.doc { border-top: 1px solid var(--line); }
.doc:first-child { border-top: 0; }
.doc-row { display: flex; align-items: center; gap: var(--sp-3); padding: var(--sp-4); cursor: pointer; width: 100%; text-align: left; background: none; border: 0; min-height: 60px; }
.doc-row .name { flex: 1; font-weight: 600; display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; }
.doc-row .chev { transition: transform .2s; color: var(--text-3); }
.doc.open .doc-row .chev { transform: rotate(180deg); }
.doc-body { padding: 0 var(--sp-4) var(--sp-4); }
.file-card { display: flex; gap: var(--sp-3); align-items: center; background: var(--ora-tint); border-radius: var(--r-md); padding: var(--sp-3); margin-bottom: var(--sp-3); }
.file-card .thumb { width: 44px; height: 44px; border-radius: var(--r-sm); background: var(--surface); display: grid; place-items: center; font-size: 11px; font-weight: 700; color: var(--ora-primary); flex: none; object-fit: cover; }
.file-card .meta { flex: 1; min-width: 0; font-size: var(--fs-sm); }
.file-card .meta b { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.drop { border: 1.5px dashed var(--line-strong); border-radius: var(--r-md); padding: var(--sp-4); text-align: center; display: flex; flex-direction: column; gap: var(--sp-2); align-items: center; }
.drop .btns { display: flex; gap: var(--sp-2); flex-wrap: wrap; justify-content: center; }

/* Capture pièce d'identité */
.capture { display: grid; gap: var(--sp-4); grid-template-columns: 1fr; }
@media (min-width: 640px) { .capture { grid-template-columns: 1fr 1fr; } }
.frame { aspect-ratio: 1.58; border-radius: var(--r-lg); border: 2px dashed var(--line-strong); background: linear-gradient(135deg, #fff, #F6F0E7); display: grid; place-items: center; position: relative; overflow: hidden; text-align: center; padding: var(--sp-3); }
.frame img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.frame .corner { position: absolute; width: 22px; height: 22px; border: 3px solid var(--ora-accent); }
.frame .c1 { top: 10px; left: 10px; border-right: 0; border-bottom: 0; } .frame .c2 { top: 10px; right: 10px; border-left: 0; border-bottom: 0; }
.frame .c3 { bottom: 10px; left: 10px; border-right: 0; border-top: 0; } .frame .c4 { bottom: 10px; right: 10px; border-left: 0; border-top: 0; }
.scan { position: absolute; left: 0; right: 0; height: 3px; background: var(--ora-accent); box-shadow: 0 0 16px var(--ora-accent); animation: scan 1.2s ease-in-out infinite alternate; }
@keyframes scan { from { top: 8%; } to { top: 92%; } }
.tips { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--sp-2); font-size: var(--fs-sm); }
.tips li::before { content: "✓"; color: var(--ok); font-weight: 700; margin-right: 8px; }

/* Récapitulatif */
.recap { display: grid; gap: var(--sp-3); }
.recap-sec { border: 1px solid var(--line); border-radius: var(--r-md); padding: var(--sp-4); background: var(--surface); }
.recap-sec header { display: flex; justify-content: space-between; align-items: center; margin-bottom: var(--sp-2); }
.recap-sec header h3 { font-size: var(--fs-md); margin: 0; }
.kv { display: grid; grid-template-columns: minmax(120px, 40%) 1fr; gap: 6px var(--sp-3); font-size: var(--fs-sm); margin: 0; }
.kv dt { color: var(--text-3); } .kv dd { margin: 0; font-weight: 500; word-break: break-word; }

/* Confirmation */
.success-hero { text-align: center; }
.success-hero .tick { width: 64px; height: 64px; border-radius: 50%; background: var(--ok-bg); color: var(--ok); display: grid; place-items: center; font-size: 32px; margin: 0 auto var(--sp-4); }
.numero { white-space: nowrap; font-size: clamp(20px, 6.2vw, 28px); font-weight: 800; letter-spacing: .04em; background: var(--ora-tint); border: 1.5px dashed var(--ora-accent); padding: var(--sp-3) var(--sp-4); border-radius: var(--r-md); display: inline-block; margin: var(--sp-2) 0 var(--sp-3); }
.qr { width: 180px; height: 180px; margin: 0 auto; display: block; image-rendering: pixelated; }
.timeline { list-style: none; padding: 0; margin: 0; }
.timeline li { position: relative; padding: 0 0 var(--sp-4) 32px; }
.timeline li::before { content: ""; position: absolute; left: 7px; top: 22px; bottom: 0; width: 2px; background: var(--line); }
.timeline li:last-child::before { display: none; }
.timeline li .dot { position: absolute; left: 0; top: 4px; width: 16px; height: 16px; border-radius: 50%; border: 2px solid var(--line-strong); background: var(--surface); }
.timeline li.done .dot { background: var(--ok); border-color: var(--ok); }
.timeline li.current .dot { background: var(--ora-accent); border-color: var(--ora-accent); }
.timeline li b { display: block; font-size: var(--fs-sm); }
.timeline li span { font-size: var(--fs-xs); color: var(--text-3); }

/* OTP */
.otp { display: flex; gap: var(--sp-2); justify-content: center; }
.otp input { width: 46px; height: 54px; text-align: center; font-size: 22px; font-weight: 700; border: 1.5px solid var(--line-strong); border-radius: var(--r-md); }
.otp input:focus { border-color: var(--ora-accent); box-shadow: var(--focus); outline: none; }

/* Personnes dynamiques */
.person { border: 1px solid var(--line); border-radius: var(--r-md); padding: var(--sp-4); margin-bottom: var(--sp-3); background: #FFFDFA; }
.person header { display: flex; justify-content: space-between; align-items: center; margin-bottom: var(--sp-3); font-weight: 650; }

/* Boîte SMS de démo */
.sms-dock { position: fixed; right: 16px; bottom: 84px; z-index: 30; width: min(340px, calc(100vw - 32px)); }
.sms-toggle { margin-left: auto; display: flex; }
.sms-panel { background: var(--ora-primary-deep); color: #fff; border-radius: var(--r-lg); padding: var(--sp-3); margin-top: var(--sp-2); box-shadow: var(--shadow); max-height: 50vh; overflow: auto; font-size: var(--fs-sm); }
.sms-panel .msg { background: rgba(255,255,255,.08); border-radius: var(--r-md); padding: var(--sp-2) var(--sp-3); margin-top: var(--sp-2); }
.sms-panel .msg small { color: #CDBFAF; display: block; font-size: 11px; }
.toast { position: fixed; left: 50%; top: 16px; transform: translateX(-50%); z-index: 50; background: var(--ora-primary-deep); color: #fff; padding: 10px 18px; border-radius: var(--r-pill); font-size: var(--fs-sm); box-shadow: var(--shadow); max-width: calc(100vw - 32px); }

/* Personas démo */
.personas { display: grid; gap: var(--sp-2); grid-template-columns: 1fr 1fr; }
@media (min-width: 640px) { .personas { grid-template-columns: repeat(4, 1fr); } }
.persona-btn { text-align: left; border: 1.5px solid var(--line); border-radius: var(--r-md); padding: var(--sp-3); background: var(--surface); cursor: pointer; font-size: var(--fs-sm); }
.persona-btn:hover { border-color: var(--ora-accent); }
.persona-btn b { display: block; }

.spinner { width: 18px; height: 18px; border: 2.5px solid rgba(255,255,255,.4); border-top-color: #fff; border-radius: 50%; animation: spin .8s linear infinite; }
.btn-secondary .spinner { border-color: var(--line); border-top-color: var(--ora-ink); }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }

/* ===== Espace agence ===== */
.ag-layout { display: grid; gap: var(--sp-4); grid-template-columns: 1fr; align-items: start; }
@media (min-width: 1000px) { .ag-layout { grid-template-columns: minmax(0, 1fr) 340px; } .ag-side { position: sticky; top: 84px; } }
.toolbar { display: flex; flex-wrap: wrap; gap: var(--sp-3); align-items: flex-end; margin-bottom: var(--sp-4); }
.toolbar .field { flex: 1 1 260px; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); }
table.tbl { width: 100%; border-collapse: collapse; font-size: var(--fs-sm); }
.tbl th { text-align: left; font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: .05em; color: var(--text-3); font-weight: 650; padding: 10px 14px; border-bottom: 1px solid var(--line); background: #FDFBF8; white-space: nowrap; }
.tbl td { padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl tbody tr { cursor: pointer; }
.tbl tbody tr:hover { background: var(--ora-tint); }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 12.5px; }
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: var(--sp-4); overflow-x: auto; }
.tabs button { border: 0; background: none; padding: 10px 14px; font-weight: 600; color: var(--text-3); border-bottom: 3px solid transparent; cursor: pointer; white-space: nowrap; min-height: var(--tap); }
.tabs button[aria-selected="true"] { color: var(--text); border-bottom-color: var(--ora-accent); }
.dossier-head { display: flex; flex-wrap: wrap; gap: var(--sp-3); align-items: center; justify-content: space-between; margin-bottom: var(--sp-4); }
.dossier-head h1 { margin: 0; font-size: var(--fs-xl); }
.dossier-head .tags { display: flex; gap: 6px; flex-wrap: wrap; }
.checklist { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.checklist li { display: flex; gap: 10px; align-items: flex-start; font-size: var(--fs-sm); }
.checklist .ic { flex: none; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; font-weight: 800; }
.checklist .ok .ic { background: var(--ok-bg); color: var(--ok); }
.checklist .ko .ic { background: var(--err-bg); color: var(--err); }
.wf { display: grid; gap: var(--sp-3); }
.wf-step { border: 1px solid var(--line); border-radius: var(--r-lg); padding: var(--sp-4); background: var(--surface); }
.wf-step header { display: flex; justify-content: space-between; gap: var(--sp-3); align-items: center; margin-bottom: var(--sp-3); }
.wf-step header h3 { margin: 0; font-size: var(--fs-md); display: flex; gap: 10px; align-items: center; }
.wf-step header h3 .n { width: 26px; height: 26px; border-radius: 50%; background: var(--ora-primary); color: #fff; font-size: 13px; display: grid; place-items: center; }
.wf-step.done header h3 .n { background: var(--ok); }
.wf-step.locked { opacity: .55; }
.row { display: flex; gap: var(--sp-3); align-items: center; padding: 10px 0; border-top: 1px solid var(--line); flex-wrap: wrap; }
.row:first-of-type { border-top: 0; }
.row .grow { flex: 1; min-width: 180px; }
.row .sub { display: block; font-size: var(--fs-xs); color: var(--text-3); }
.inline-form { display: flex; gap: 8px; flex-wrap: wrap; width: 100%; margin-top: 8px; }
.inline-form input { flex: 1 1 160px; min-height: 36px; border: 1.5px solid var(--line-strong); border-radius: var(--r-sm); padding: 6px 10px; }
.sigpad { border: 1.5px dashed var(--line-strong); border-radius: var(--r-md); background: #fff; touch-action: none; width: 100%; height: 220px; display: block; }
dialog.modal { border: 0; border-radius: var(--r-lg); padding: var(--sp-5); width: min(640px, calc(100vw - 32px)); box-shadow: 0 20px 60px rgba(0,0,0,.25); }
dialog.modal::backdrop { background: rgba(43, 39, 36, .55); }
.audit-list { list-style: none; padding: 0; margin: 0; font-size: var(--fs-sm); }
.audit-list li { padding: 10px 0; border-top: 1px solid var(--line); display: grid; grid-template-columns: 150px 1fr; gap: 4px 12px; }
.audit-list li:first-child { border-top: 0; }
.audit-list .hash { grid-column: 2; color: var(--text-3); font-size: 11px; word-break: break-all; }
.login { max-width: 440px; margin: 48px auto; }
.demo-accounts { font-size: var(--fs-sm); }
.demo-accounts button { display: block; width: 100%; text-align: left; margin-top: 6px; }
.stat { font-size: var(--fs-xs); color: var(--text-3); }
.stat b { display: block; font-size: var(--fs-xl); color: var(--text); }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: var(--sp-3); margin-bottom: var(--sp-4); }
.stats .card { margin: 0; padding: var(--sp-4); }
.userbox { display: flex; gap: 12px; align-items: center; font-size: 14px; flex-wrap: wrap; justify-content: flex-end; }
@media (max-width: 640px) {
  .topbar .title, .topbar .help .long { display: none; }
  .topbar-inner { gap: var(--sp-3); }
  .topbar img { height: 26px; width: auto; }
  .saved { font-size: 11px; }
  .card { padding: var(--sp-4); }
  h1 { font-size: 26px; }
  .sms-dock { bottom: 76px; right: 8px; }
}
.sms-dock { pointer-events: none; }
.sms-dock > * { pointer-events: auto; }
.sms-toggle { opacity: .92; }

/* ===== Parcours v2 : choix du parcours, page dossier type CBAO, étapes TDR ===== */
.stack { display: grid; gap: var(--sp-4); }
.hero h1 { color: var(--ora-primary); }
.section-h { font-size: var(--fs-lg); margin: var(--sp-5) 0 var(--sp-3); color: var(--ora-primary-deep); }
.parcours { display: grid; gap: var(--sp-3); grid-template-columns: 1fr; margin-bottom: var(--sp-4); }
@media (min-width: 700px) { .parcours { grid-template-columns: 1fr 1fr; } }
.parcours-card { text-align: left; display: flex; flex-direction: column; gap: 6px; background: var(--surface); border: 1.5px solid var(--line); border-radius: var(--r-lg); padding: var(--sp-4) var(--sp-5); cursor: pointer; box-shadow: var(--shadow); transition: border-color .15s, transform .15s; }
.parcours-card:hover:not([disabled]) { border-color: var(--ora-accent); transform: translateY(-1px); }
.parcours-card[disabled] { opacity: .55; cursor: not-allowed; }
.parcours-card .ic { width: 44px; height: 44px; border-radius: 50%; background: var(--ora-tint); display: grid; place-items: center; font-size: 22px; }
.parcours-card .t { font-weight: 700; font-size: var(--fs-lg); color: var(--ora-primary); }
.parcours-card .d { color: var(--text-2); font-size: var(--fs-sm); }
.parcours-card .need { font-size: var(--fs-xs); color: var(--text-2); border-top: 1px solid var(--line); padding-top: 8px; margin-top: 4px; }
.parcours-card .need ul { margin: 4px 0 0; padding-left: 16px; }
.parcours-card .go { margin-top: auto; padding-top: 6px; font-weight: 700; color: var(--ora-primary); font-size: var(--fs-sm); }
.resume { display: flex; gap: var(--sp-4); align-items: center; justify-content: space-between; flex-wrap: wrap; }
.resume h3 { margin: 0 0 4px; }
.dossier-top { display: flex; justify-content: space-between; align-items: flex-start; gap: var(--sp-3); flex-wrap: wrap; margin-bottom: var(--sp-4); }
.dossier-top h1 { margin: 0 0 4px; }
.pill-lg { font-size: var(--fs-sm); padding: 8px 16px; }
.progress-card { padding: var(--sp-4) var(--sp-5); }
.group { margin-bottom: var(--sp-5); }
.group-head { display: flex; justify-content: space-between; align-items: center; gap: var(--sp-3); background: #ECEEE2; border: 1px solid var(--line); border-bottom: 0; border-radius: var(--r-lg) var(--r-lg) 0 0; padding: var(--sp-3) var(--sp-4); }
.group-head h2 { font-size: var(--fs-md); margin: 0; }
.group-head .muted { margin: 2px 0 0; font-size: var(--fs-xs); }
.group .docs { border-radius: 0 0 var(--r-lg) var(--r-lg); }
.doc-row[disabled] { cursor: default; }
.doc-body { border-top: 1px dashed var(--line); padding-top: var(--sp-4); }
.item-actions { display: flex; gap: var(--sp-2); align-items: center; flex-wrap: wrap; margin-top: var(--sp-4); }
.sub-title { font-weight: 700; color: var(--ora-primary); margin: var(--sp-4) 0 var(--sp-2); font-size: var(--fs-sm); text-transform: uppercase; letter-spacing: .04em; }
.capture-btns { display: flex; flex-direction: column; gap: 8px; justify-content: center; }
.form-steps { margin: 0 0 var(--sp-3); padding-left: 20px; font-size: var(--fs-sm); display: grid; gap: 4px; }
.btn.dl { margin-bottom: var(--sp-3); }
.center-btns { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 8px; }
fieldset.locked { border: 0; padding: 0; margin: 0; min-width: 0; }
fieldset.locked .btn, fieldset.locked .drop { display: none; }
.steps.tdr { display: flex; overflow-x: auto; padding-bottom: 4px; scrollbar-width: thin; }
.steps.tdr li { flex: 1 0 auto; min-width: 0; }
@media (max-width: 899px) { .steps.tdr li:not(.active) .l { display: none; } .steps.tdr li { flex: 0 0 auto; } }
.req { color: var(--err); }
.tdr-card { padding: var(--sp-3) var(--sp-4); }
.tdr-card .eyebrow { margin-bottom: 6px; }
@media (min-width: 0px) { .steps.tdr.always li .l { display: inline; } }
.ico { flex: none; vertical-align: middle; }
.parcours-card .ic { color: var(--ora-primary); }
.parcours-card .go { display: inline-flex; align-items: center; gap: 6px; }
.file-card .thumb { color: var(--ora-primary); }
.tick { color: var(--ok); }
.steps li .n .ico, .checklist .ic .ico { display: block; }
.chev { display: inline-flex; }
h1[tabindex="-1"]:focus { box-shadow: none; outline: none; }
@media (max-width: 640px) { .sms-toggle .lbl { display: none; } .sms-toggle { width: 44px; height: 44px; padding: 0; border-radius: 50%; } .sms-dock { width: auto; } .sms-panel { width: calc(100vw - 24px); } }

/* ===== Écran d'entrée sécurisé (modèle CBAO) ===== */
.home-link { display: inline-flex; border-radius: var(--r-sm); }
body.auth-body .topbar { display: none; }
main.auth-mode { max-width: none; padding: 0; }
.auth { display: grid; grid-template-columns: 1fr; min-height: 100vh; background: var(--surface); }
@media (min-width: 900px) { .auth { grid-template-columns: minmax(360px, 42%) 1fr; } }
.auth-hero { position: relative; color: #fff; min-height: 300px; display: flex; align-items: flex-end;
  background: var(--ora-primary-deep) url('https://images.unsplash.com/photo-1573496782432-8690d8148c46?w=1200&q=70&auto=format&fit=crop&crop=faces') center 20% / cover no-repeat; }
.auth-hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0, 79, 45, .15) 0%, rgba(0, 79, 45, .55) 45%, rgba(0, 52, 30, .94) 100%); }
.auth-hero-inner { position: relative; padding: var(--sp-6) var(--sp-5) var(--sp-5); max-width: 520px; }
.eyebrow-pill { display: inline-flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #E6F3EC; background: rgba(46, 177, 53, .35); border: 1px solid rgba(233, 245, 223, .35); padding: 5px 10px; border-radius: var(--r-pill); }
.hero-title { font-size: clamp(26px, 3.4vw, 36px); font-weight: 800; line-height: 1.15; margin: var(--sp-3) 0 var(--sp-2); }
.hero-sub { color: #E2EDF2; font-size: var(--fs-sm); margin-bottom: var(--sp-4); }
.features { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--sp-3); }
.features li { display: flex; gap: var(--sp-3); align-items: flex-start; }
.features .f-ic { flex: none; width: 34px; height: 34px; border-radius: var(--r-md); background: rgba(255, 255, 255, .14); display: grid; place-items: center; }
.features b { display: block; font-size: var(--fs-sm); }
.features small { color: #D3E2EA; font-size: 12px; }
.credit { display: block; margin-top: var(--sp-4); color: rgba(255, 255, 255, .6); font-size: 10.5px; }
@media (max-width: 899px) { .auth-hero { min-height: 0; } .features { display: none; } .hero-sub { margin-bottom: 0; } .auth-hero-inner { padding: 120px var(--sp-4) var(--sp-4); } .credit { margin-top: var(--sp-2); } }
.auth-panel { display: flex; align-items: center; justify-content: center; padding: var(--sp-6) var(--sp-4) var(--sp-7); }
.auth-panel-inner { width: 100%; max-width: 440px; }
.auth-logo { display: block; height: 34px; width: auto; margin-bottom: var(--sp-5); }
.auth-panel h1 { font-size: var(--fs-xl); margin-bottom: var(--sp-2); }
.auth-panel .lead { font-size: var(--fs-sm); color: var(--text-2); }
.inv-ok { display: flex; align-items: center; gap: 6px; font-size: var(--fs-xs); color: var(--ok); font-weight: 600; margin: 0 0 var(--sp-3); }
.parcours-list { display: grid; gap: var(--sp-2); }
.parcours-row { display: flex; gap: var(--sp-3); align-items: center; text-align: left; background: var(--surface); border: 1.5px solid var(--line); border-radius: var(--r-md); padding: var(--sp-3) var(--sp-4); cursor: pointer; transition: border-color .15s, background .15s; }
.parcours-row:hover:not([disabled]) { border-color: var(--ora-accent); background: var(--ora-tint); }
.parcours-row[disabled] { opacity: .5; cursor: not-allowed; }
.parcours-row .ic { flex: none; width: 40px; height: 40px; border-radius: 50%; background: var(--ora-tint); color: var(--ora-primary); display: grid; place-items: center; }
.parcours-row .txt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.parcours-row .txt b { color: var(--ora-primary); }
.parcours-row .txt small { color: var(--text-2); font-size: 12.5px; }
.parcours-row .txt small.need { color: var(--text-3); font-size: 11.5px; }
.parcours-row .go { color: var(--ora-primary); display: inline-flex; }
.divider { display: flex; align-items: center; gap: var(--sp-3); margin: var(--sp-5) 0 var(--sp-3); color: var(--text-3); font-size: var(--fs-xs); }
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.auth-foot { margin-top: var(--sp-5); font-size: var(--fs-xs); color: var(--text-3); }
.back { margin: 0 0 var(--sp-3) -8px; }
.seg-sm label { min-height: 38px; font-size: var(--fs-sm); }
.input-ic { position: relative; }
.input-ic .ico { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--text-3); }
.input-ic input { padding-left: 40px; }
.help-acc { margin-top: var(--sp-3); font-size: var(--fs-sm); }
.help-acc summary { cursor: pointer; color: var(--ora-primary); font-weight: 600; display: inline-flex; gap: 6px; align-items: center; }
.help-acc p { margin: 8px 0 0; }
.demo-chips { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-top: 8px; }
.demo-chips small { width: 100%; color: var(--text-3); }
.chip { border: 1px solid var(--line-strong); background: var(--surface); border-radius: var(--r-pill); padding: 4px 10px; font-size: 12px; cursor: pointer; }
.chip:hover { border-color: var(--ora-accent); }
.auth .otp input { width: 48px; }
.sms-head { display: flex; gap: 6px; align-items: center; }
.sms-panel .msg span { display: block; line-height: 1.45; }
@media (min-width: 900px) { .auth-hero { position: sticky; top: 0; height: 100vh; } }

/* ===== Caméra ===== */
.cam-modal { width: min(760px, calc(100vw - 24px)); }
.cam-stage { position: relative; background: #111; border-radius: var(--r-md); overflow: hidden; aspect-ratio: 16 / 10; }
.cam-video, .cam-still { width: 100%; height: 100%; object-fit: contain; display: block; background: #111; }
.cam-guide { position: absolute; inset: 12% 14%; border: 2px dashed rgba(255, 255, 255, .85); border-radius: 12px; box-shadow: 0 0 0 9999px rgba(0, 0, 0, .28); pointer-events: none; }
.cam-actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-top: var(--sp-3); }
.cam-actions .spacer { flex: 1; }
.demo-list { margin-top: var(--sp-3); font-size: var(--fs-sm); border: 1px dashed var(--line-strong); border-radius: var(--r-md); padding: var(--sp-3); }
.demo-list summary { cursor: pointer; font-weight: 600; color: var(--ora-primary); display: inline-flex; gap: 6px; align-items: center; }
.demo-row { display: flex; gap: 8px; align-items: center; justify-content: space-between; padding: 8px 0; border-top: 1px solid var(--line); flex-wrap: wrap; }
.demo-row:first-of-type { border-top: 0; margin-top: 6px; }
.demo-row small { display: block; color: var(--text-3); }

/* =====================================================================
   Parcours v3 — page Dossier moderne et formulaires (tendances 2026 :
   cartes douces, rayons généreux, champs « remplis », focus visible,
   icônes, barre d'action en verre dépoli)
   ===================================================================== */
main.dossier-mode { max-width: 1180px; padding-top: 0; }
:root { --r-xl: 22px; --field-bg: #F1F5F8; --shadow-soft: 0 1px 2px rgba(0, 79, 45, .05), 0 8px 24px rgba(0, 79, 45, .07); }

/* Bannière avec photo */
.dossier-hero { position: relative; margin: var(--sp-4) 0 var(--sp-5); border-radius: var(--r-xl); overflow: hidden; color: #fff; display: grid; grid-template-columns: 1fr; gap: var(--sp-4); padding: var(--sp-5);
  background: var(--ora-primary-deep) url('https://images.unsplash.com/photo-1573496782432-8690d8148c46?w=1600&q=70&auto=format&fit=crop&crop=faces') right 30% / cover no-repeat; box-shadow: var(--shadow-soft); }
.dossier-hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, rgba(0, 52, 30, .96) 0%, rgba(0, 79, 45, .9) 45%, rgba(0, 79, 45, .55) 75%, rgba(0, 79, 45, .25) 100%); }
.dossier-hero > * { position: relative; }
@media (min-width: 820px) { .dossier-hero { grid-template-columns: 1fr auto; align-items: center; padding: var(--sp-6) var(--sp-6); } }
.hero-eyebrow { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #CFE6DA; margin: 0 0 6px; }
.dossier-hero h1 { color: #fff; font-size: clamp(26px, 3.2vw, 36px); margin: 0 0 6px; }
.hero-lead { color: #E2EDF2; margin: 0 0 var(--sp-3); max-width: 560px; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: var(--sp-4); }
.chip-glass { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: var(--r-pill); font-size: 13px; font-weight: 600; background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .22); backdrop-filter: blur(6px); }
.chip-glass.st-draft, .chip-glass.st-modification_open { background: rgba(255, 196, 87, .22); border-color: rgba(255, 210, 120, .5); }
.chip-glass.st-opened { background: rgba(46, 177, 53, .4); }
.hero-steps { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 13px; color: #D3E2EA; }
.hero-steps li { display: inline-flex; align-items: center; gap: 6px; }
.hero-steps .dot { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-size: 11px; font-weight: 700; border: 1.5px solid rgba(255, 255, 255, .45); }
.hero-steps li.done .dot { background: var(--ora-accent); border-color: var(--ora-accent); color: #fff; }
.hero-steps li.active { color: #fff; font-weight: 700; }
.hero-steps li.active .dot { background: #fff; color: var(--ora-primary); border-color: #fff; }
.hero-ring { position: relative; width: 132px; height: 132px; justify-self: start; }
@media (min-width: 820px) { .hero-ring { justify-self: end; width: 150px; height: 150px; } }
.ring { width: 100%; height: 100%; transform: rotate(-90deg); }
.ring circle { fill: none; stroke-width: 8; stroke-linecap: round; }
.ring-bg { stroke: rgba(255, 255, 255, .18); }
.ring-fg { stroke: var(--ora-accent); transition: stroke-dashoffset .6s ease; }
.ring-label { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; }
.ring-label b { font-size: 26px; line-height: 1; }
.ring-label small { color: #D3E2EA; font-size: 11.5px; margin-top: 4px; }

/* Mise en page : sommaire + contenu */
.dossier-layout { display: grid; grid-template-columns: 1fr; gap: var(--sp-5); align-items: start; }
@media (min-width: 1000px) { .dossier-layout { grid-template-columns: 270px minmax(0, 1fr); } .dossier-nav { position: sticky; top: 88px; } }
.dossier-nav { display: none; background: var(--surface); border-radius: var(--r-xl); padding: var(--sp-4); box-shadow: var(--shadow-soft); }
@media (min-width: 1000px) { .dossier-nav { display: block; } }
.nav-title { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--text-3); margin: 0 0 var(--sp-2); }
.nav-link { display: grid; grid-template-columns: 36px 1fr; gap: 4px 10px; align-items: center; padding: 10px; border-radius: var(--r-md); text-decoration: none; color: var(--text); }
.nav-link:hover { background: var(--ora-tint); }
.nav-ic { grid-row: span 2; width: 36px; height: 36px; border-radius: 10px; background: var(--ora-tint); color: var(--ora-primary); display: grid; place-items: center; }
.nav-txt b { display: block; font-size: 14px; } .nav-txt small { color: var(--text-3); font-size: 12px; }
.mini-bar { grid-column: 2; height: 4px; border-radius: 4px; background: #E3E9ED; overflow: hidden; display: block; }
.mini-bar i { display: block; height: 100%; background: var(--ora-accent); border-radius: 4px; transition: width .4s; }
.nav-help { display: flex; gap: 10px; margin-top: var(--sp-4); padding: var(--sp-3); border-radius: var(--r-md); background: #EEF3F7; color: var(--ora-primary); font-size: 13px; }
.nav-help b { display: block; color: var(--text); } .nav-help small { color: var(--text-2); }

/* Groupes et rubriques en cartes */
.group { margin-bottom: var(--sp-6); scroll-margin-top: 90px; }
.group-head { display: flex; align-items: center; gap: var(--sp-3); background: none; border: 0; padding: 0 0 var(--sp-3); }
.group-ic { width: 44px; height: 44px; border-radius: 14px; background: var(--ora-primary); color: #fff; display: grid; place-items: center; flex: none; }
.group-head h2 { font-size: 20px; margin: 0; }
.group-head p { margin: 2px 0 0; font-size: 13px; color: var(--text-3); }
.group-head > div { flex: 1; }
.count { font-weight: 700; font-size: 13px; padding: 6px 12px; border-radius: var(--r-pill); background: #E9EEF2; color: var(--text-2); }
.count.ok { background: var(--ok-bg); color: var(--ok); }
.items { display: grid; gap: 10px; }
.item { background: var(--surface); border-radius: 18px; box-shadow: var(--shadow-soft); border: 1.5px solid transparent; transition: border-color .2s, box-shadow .2s; }
.item:hover { border-color: #C9D8E2; }
.item.open { border-color: var(--ora-accent); box-shadow: 0 10px 30px rgba(0, 79, 45, .12); }
.item-head { width: 100%; display: flex; align-items: center; gap: 14px; padding: 16px 18px; background: none; border: 0; text-align: left; cursor: pointer; border-radius: 18px; min-height: 72px; }
.item-ic { width: 42px; height: 42px; border-radius: 12px; background: var(--ora-tint); color: var(--ora-primary); display: grid; place-items: center; flex: none; transition: background .2s; }
.item.is-done .item-ic { background: var(--ora-primary); color: #fff; }
.item-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.item-title { font-weight: 700; font-size: 15.5px; }
.item-sub { font-size: 12.5px; color: var(--text-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.status { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 700; padding: 5px 10px; border-radius: var(--r-pill); background: #ECF0F3; color: var(--text-2); white-space: nowrap; }
.status.ok, .status.info { background: var(--ok-bg); color: var(--ok); }
.status.warn { background: var(--warn-bg); color: var(--warn); }
.status.err { background: var(--err-bg); color: var(--err); }
.item .chev { color: var(--text-3); transition: transform .25s; }
.item.open .chev { transform: rotate(180deg); }
.item-body { padding: 4px 18px 20px; border-top: 1px solid #E9EEF2; animation: reveal .25s ease; }
@keyframes reveal { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
@media (max-width: 560px) { .item-head { padding: 14px; gap: 10px; } .item-ic { width: 36px; height: 36px; } .status { padding: 4px 8px; font-size: 11px; } .item-sub { white-space: normal; } }
.item-actions { margin-top: var(--sp-5); padding-top: var(--sp-4); border-top: 1px dashed #DCE3E7; }

/* Formulaires modernes */
.field { gap: 7px; }
.field label, .field legend { font-size: 13.5px; font-weight: 650; color: var(--text); }
.field input, .field select, .field textarea {
  min-height: 50px; border-radius: 14px; border: 1.5px solid transparent; background: var(--field-bg); padding: 12px 14px; font-size: 15.5px;
  transition: border-color .15s, background .15s, box-shadow .15s; }
.field input::placeholder, .field textarea::placeholder { color: #91A3AE; }
.field input:hover, .field select:hover, .field textarea:hover { background: #E9EFF3; }
.field input:focus, .field select:focus, .field textarea:focus { background: #fff; border-color: var(--ora-accent); box-shadow: 0 0 0 4px rgba(46, 177, 53, .18); }
.field select { appearance: none; -webkit-appearance: none; padding-right: 42px;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%2300693E' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'><path d='m6 9 6 6 6-6'/></svg>");
  background-repeat: no-repeat; background-position: right 14px center; }
.field input[type="date"] { min-height: 50px; }
.field.invalid input, .field.invalid select { border-color: var(--err); background: #FFF7F6; }
.field .hint { font-size: 12.5px; color: var(--text-3); }
.field.ocr input { background: #E6F3EC; border-color: #B8DEC6; }
.field.ocr.low input { background: var(--warn-bg); border-color: #F0D49A; }
.ocr-tag { display: inline-flex; align-items: center; margin-left: 6px; padding: 1px 8px; border-radius: var(--r-pill); background: var(--ok-bg); color: var(--ok); font-size: 11px; font-weight: 700; }
.field.low .ocr-tag { background: var(--warn-bg); color: var(--warn); }
.grid-2 { gap: 18px 20px; }
.sub-title { display: flex; align-items: center; gap: 8px; text-transform: none; letter-spacing: 0; font-size: 15px; color: var(--text); margin: var(--sp-5) 0 var(--sp-3); }
.sub-title::before { content: ""; width: 4px; height: 18px; border-radius: 4px; background: var(--ora-accent); }

/* Choix oui / non en pilules segmentées */
.seg { gap: 6px; background: var(--field-bg); padding: 5px; border-radius: 16px; display: inline-flex; flex-wrap: wrap; }
.seg label { border: 0; border-radius: 12px; min-height: 42px; padding: 8px 18px; background: transparent; color: var(--text-2); font-weight: 600; transition: background .15s, color .15s, box-shadow .15s; }
.seg label:hover { color: var(--ora-primary); }
.seg label:has(input:checked) { background: #fff; color: var(--ora-primary); box-shadow: 0 1px 2px rgba(0, 0, 0, .06), 0 4px 12px rgba(0, 79, 45, .12); border: 0; }
fieldset.field .seg { align-self: flex-start; }

/* Cartes de choix (produits) */
.choice { border: 1.5px solid #DCE3E7; border-radius: 16px; padding: 16px 18px; background: #fff; box-shadow: 0 1px 2px rgba(0, 0, 0, .03); }
.choice:hover { border-color: #B8DEC6; transform: translateY(-1px); }
.choice:has(input:checked) { border-color: var(--ora-accent); background: #EAF6EF; box-shadow: 0 0 0 4px rgba(46, 177, 53, .14); }
.choice:has(input:checked)::after { background: var(--ora-primary); }
.choice .t { font-size: 15px; }

/* Cases à cocher (consentements) */
.check { border-radius: 14px; border: 1.5px solid #DCE3E7; padding: 14px 16px; transition: border-color .15s, background .15s; }
.check:has(input:checked) { border-color: var(--ora-accent); background: #EAF6EF; }
.check input { width: 22px; height: 22px; accent-color: var(--ora-primary); }

/* Personnes liées */
.person { border: 0; background: #F4F7F9; border-radius: 16px; padding: 18px; }
.person .field input { background: #fff; }

/* Capture et dépôt */
.frame { border-radius: 18px; border: 2px dashed #B8DEC6; background: linear-gradient(135deg, #F7F9FB, #EEF4E6); }
.drop { border: 2px dashed #C9D3DA; border-radius: 16px; background: #F5F8FA; padding: 20px; }
.drop:hover { border-color: var(--ora-accent); background: #EAF6EF; }
.file-card { border-radius: 14px; background: #EAF6EF; }

/* Barre d'action en verre dépoli */
.actions { background: rgba(255, 255, 255, .82); backdrop-filter: saturate(160%) blur(14px); -webkit-backdrop-filter: saturate(160%) blur(14px); border-top: 1px solid rgba(217, 218, 206, .7); }
main.dossier-mode ~ .actions .actions-inner, .actions-inner { max-width: 1180px; }
.actions .info { display: flex; flex-direction: column; gap: 6px; }
.mini-bar.wide { width: min(260px, 100%); }
.left-count { font-weight: 600; color: var(--text-2); }
.btn { transition: background .15s, transform .1s, box-shadow .15s; }
.btn-primary { box-shadow: 0 6px 16px rgba(0, 79, 45, .22); }
.btn-primary:active { transform: translateY(1px); }
.btn-primary[disabled] { box-shadow: none; }
.tag { display: inline-block; margin-left: 8px; padding: 1px 8px; border-radius: var(--r-pill); border: 1px solid var(--line-strong); font-size: 11px; font-weight: 600; color: var(--text-3); vertical-align: middle; }
main.dossier-mode { padding-top: var(--sp-2); }
.item-body { padding-top: 18px; }
@media (max-width: 819px) {
  .dossier-hero { grid-template-columns: 1fr auto; padding: var(--sp-4); border-radius: 18px; }
  .dossier-hero .hero-content { grid-column: 1 / -1; grid-row: 2; }
  .hero-ring { grid-column: 2; grid-row: 1; width: 92px; height: 92px; justify-self: end; }
  .ring-label b { font-size: 19px; } .ring-label small { font-size: 10px; }
  .hero-steps li:not(.active) span:not(.dot) { display: none; }
}
@media (max-width: 819px) { .dossier-hero::after { content: ""; grid-column: 1; grid-row: 1; } }
@media (max-width: 819px) {
  .dossier-hero .hero-content { grid-column: 1; grid-row: 1; }
  .hero-ring { grid-column: 2; grid-row: 1; align-self: start; width: 78px; height: 78px; }
  .ring-label b { font-size: 16px; } .ring-label small { display: none; }
  .dossier-hero::after { display: none; }
  .hero-eyebrow { font-size: 11px; }
}

/* =====================================================================
   Parcours v4 — assistant guidé (benchmark Wise / Revolut / Monzo / Stripe Identity)
   Palette : #006B3F · #55A82D · #F2F5ED · #252B29 — typo Inter
   ===================================================================== */
:root { --r-xl: 24px; --field-bg: #F1F5F8; --shadow-soft: 0 1px 2px rgba(0, 79, 45, .05), 0 10px 30px rgba(0, 79, 45, .07); }
body { letter-spacing: -.005em; -webkit-font-smoothing: antialiased; }
h1, h2, h3 { letter-spacing: -.02em; }
main.flow-mode { max-width: 760px; padding: var(--sp-5) var(--sp-4) 140px; }
main.flow-mode.view-espace, main.flow-mode.view-recap { max-width: 900px; }
.link-btn { background: none; border: 0; padding: 4px 0; color: var(--ora-primary); font-weight: 600; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; text-align: left; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(0, 107, 63, .3); }
.link-btn:hover { text-decoration-color: currentColor; }
.link-btn[disabled] { color: var(--text-3); cursor: default; text-decoration: none; }
.inline-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 12px; }
.stack { display: grid; gap: 26px; }
.spacer { flex: 1; }

/* Accueil : cartes de profil */
.auth-panel-inner { max-width: 520px; }
.auth-panel h1 { font-size: clamp(26px, 3vw, 32px); font-weight: 800; }
.auth-panel .lead { font-size: 16px; margin-bottom: 22px; }
.profile-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.profile-card { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 6px; text-align: left; padding: 18px; border-radius: 20px; border: 1.5px solid #DCE3E7; background: #fff; cursor: pointer; min-height: 168px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, .03); transition: transform .18s ease, border-color .18s, box-shadow .18s; }
.profile-card:hover { transform: translateY(-2px); border-color: var(--ora-accent); box-shadow: 0 14px 30px rgba(0, 79, 45, .12); }
.pc-ic { width: 50px; height: 50px; border-radius: 16px; display: grid; place-items: center; background: var(--ora-tint); color: var(--ora-primary); margin-bottom: 6px; transition: background .18s, color .18s; }
.profile-card:hover .pc-ic { background: var(--ora-primary); color: #fff; }
.pc-title { font-weight: 800; font-size: 17px; color: var(--text); line-height: 1.2; }
.pc-desc { font-size: 13px; color: var(--text-2); line-height: 1.35; flex: 1; }
.pc-go { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; font-size: 13.5px; color: var(--ora-primary); margin-top: 6px; }
.profile-card:hover .pc-go svg { transform: translateX(3px); } .pc-go svg { transition: transform .18s; }
@media (max-width: 380px) { .profile-grid { grid-template-columns: 1fr; } .profile-card { min-height: 0; } }
.home-links { display: flex; flex-direction: column; gap: 4px; margin-top: 16px; font-size: 14px; }
.prep { margin-top: 10px; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; background: #F1F5F8; border-radius: 16px; padding: 14px; font-size: 12.5px; animation: reveal .25s ease; }
.prep b { display: flex; gap: 6px; align-items: center; color: var(--ora-primary); font-size: 13px; }
.prep ul { margin: 6px 0 0; padding-left: 16px; color: var(--text-2); }
.resume-banner { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.guide-q { padding: 12px 0; border-top: 1px solid var(--line); } .guide-q p { margin: 4px 0 0; color: var(--text-2); }

/* Vérification par code */
.step-kicker { font-size: 12.5px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--ora-teal); margin: 0 0 6px; }
.seg-full { display: flex; width: 100%; }
.seg-full label { flex: 1; gap: 6px; }
.seg-full label span { display: inline-flex; gap: 6px; align-items: center; }
.phone-row { display: grid; grid-template-columns: minmax(0, 46%) 1fr; gap: 8px; }
.field .phone-row select.dial { font-size: 14px; }
.privacy-note, .secure-note { display: flex; gap: 8px; align-items: flex-start; font-size: 12.5px; color: var(--text-2); margin: 12px 0 0; }
.privacy-note svg, .secure-note svg { flex: none; margin-top: 2px; color: var(--ora-primary); }
.secure-note { justify-content: center; margin-top: 22px; padding: 10px; border-radius: 12px; background: #EDF3F7; color: var(--ora-primary); font-weight: 600; }
.otp { display: flex; gap: 8px; justify-content: space-between; margin: 18px 0 8px; }
.auth .otp input { width: 100%; max-width: 56px; height: 60px; text-align: center; font-size: 24px; font-weight: 700; border: 1.5px solid transparent; background: var(--field-bg); border-radius: 14px; }
.auth .otp input:focus { background: #fff; border-color: var(--ora-accent); box-shadow: 0 0 0 4px rgba(46, 177, 53, .18); outline: none; }
.demo-code { display: flex; gap: 8px; align-items: center; }
.timer-line { display: flex; flex-wrap: wrap; gap: 4px; align-items: center; font-size: 13px; color: var(--text-2); margin: 6px 0 0; }
.countdown { color: var(--ora-primary); font-variant-numeric: tabular-nums; }
.help-list { margin: 8px 0 0; padding-left: 18px; color: var(--text-2); display: grid; gap: 4px; }

/* Bannière hors ligne */
.offline-banner { position: fixed; top: 0; left: 0; right: 0; z-index: 60; display: flex; gap: 8px; align-items: center; justify-content: center; padding: 10px 16px; background: #3B2A00; color: #FFE6B0; font-size: 13.5px; font-weight: 600; }

/* Aide contextuelle */
.tip { position: relative; display: inline-flex; vertical-align: middle; margin-left: 4px; }
.tip-btn { border: 0; background: none; color: var(--ora-primary); cursor: pointer; padding: 2px; display: inline-flex; border-radius: 50%; }
.tip-bubble { position: absolute; z-index: 30; top: calc(100% + 6px); left: -12px; width: min(300px, 80vw); background: var(--text); color: #fff; font-size: 12.5px; font-weight: 500; line-height: 1.45; padding: 10px 12px; border-radius: 12px; box-shadow: 0 10px 30px rgba(0, 0, 0, .2); text-transform: none; letter-spacing: 0; animation: reveal .18s ease; }

/* Assistant : en-tête et progression segmentée */
.wiz { animation: slideIn .32s ease; }
.wiz.anim-back { animation-name: slideBack; }
@keyframes slideIn { from { opacity: 0; transform: translateX(18px); } to { opacity: 1; transform: none; } }
@keyframes slideBack { from { opacity: 0; transform: translateX(-18px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .wiz, .profile-card, .tip-bubble { animation: none !important; transition: none !important; } }
.wiz-top { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.wiz-brand { display: inline-flex; align-items: center; gap: 6px; color: var(--ora-primary) !important; font-weight: 700; font-size: 14px; color: var(--text-2); }
.guide-badge { display: inline-flex; align-items: center; gap: 5px; font-size: 11.5px; font-weight: 700; padding: 4px 10px; border-radius: var(--r-pill); background: var(--ora-tint); color: var(--ora-primary); }
.overview-btn { margin-left: auto; font-size: 13.5px; }
.segbar { display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px; }
.seg-i { height: 6px; border-radius: 6px; background: #DCE3E7; overflow: hidden; display: block; }
.seg-i.done { background: var(--ora-primary); }
.seg-i.cur { background: #BFE3CC; }
.seg-i i { display: block; height: 100%; background: var(--ora-accent); border-radius: 6px; transition: width .4s ease; }
.wiz-step { font-size: 13px; font-weight: 700; color: var(--ora-primary); margin: 10px 0 22px; }
.wiz-head { display: flex; gap: 16px; align-items: flex-start; }
.wiz-illu { flex: none; width: 60px; height: 60px; border-radius: 20px; background: linear-gradient(140deg, var(--ora-primary), #0A8754); color: #fff; display: grid; place-items: center; box-shadow: 0 10px 24px rgba(0, 107, 63, .25); }
.wiz-head h1 { font-size: clamp(23px, 3.4vw, 30px); font-weight: 800; margin: 2px 0 6px; outline: none; }
.wiz-head .lead { margin: 0; }
@media (max-width: 520px) { .wiz-illu { width: 46px; height: 46px; border-radius: 15px; } .wiz-illu svg { width: 22px; height: 22px; } }
.why { margin: 14px 0 22px; font-size: 13.5px; }
.why summary { cursor: pointer; color: var(--ora-primary); font-weight: 600; display: inline-flex; align-items: center; gap: 6px; list-style: none; }
.why summary::-webkit-details-marker { display: none; }
.why p { margin: 8px 0 0; padding: 12px 14px; border-radius: 14px; background: #EDF3F7; color: var(--text-2); }
.wiz-body { background: #fff; border-radius: var(--r-xl); padding: 26px; box-shadow: var(--shadow-soft); display: grid; gap: 24px; }
@media (max-width: 520px) { .wiz-body { padding: 18px; border-radius: 20px; } main.flow-mode { padding-top: var(--sp-4); } }
.autosave { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 12.5px; color: var(--text-3); margin: 14px 0 0; }
.autosave svg { color: var(--ora-accent); }
.demo-btn { margin-left: auto; }
.actions-inner { max-width: 760px; }
main.view-recap ~ .actions .actions-inner { max-width: 900px; }
@media (max-width: 560px) { .actions .quit span, .actions .btn-secondary span:not(:first-child) { display: none; } .actions .quit { padding-inline: 10px; } }

/* Questions : listes de choix en cartes */
.q { gap: 12px; }
.q-title, .field legend.q-title { font-size: 17px; font-weight: 750; color: var(--text); display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 0; margin-bottom: 4px; }
.opts { display: grid; gap: 10px; grid-template-columns: 1fr; }
@media (min-width: 600px) { .opts.cols-2 { grid-template-columns: 1fr 1fr; } .opts.cols-3 { grid-template-columns: repeat(3, 1fr); } }
.opt { position: relative; display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 16px; border: 1.5px solid #DCE3E7; background: #fff; cursor: pointer; min-height: 60px; transition: border-color .15s, background .15s, box-shadow .15s, transform .15s; }
.opt:hover { border-color: #9FC4B0; transform: translateY(-1px); }
.opt input { position: absolute; opacity: 0; pointer-events: none; }
.opt-ic { flex: none; width: 38px; height: 38px; border-radius: 12px; background: var(--ora-tint); color: var(--ora-primary); display: grid; place-items: center; transition: background .15s, color .15s; }
.opt-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.opt-txt b { font-size: 14.5px; font-weight: 650; line-height: 1.3; }
.opt-txt small { font-size: 12.5px; color: var(--text-3); line-height: 1.35; }
.opt-radio { flex: none; width: 22px; height: 22px; border-radius: 50%; border: 2px solid #AEB4AC; transition: border .15s, background .15s; }
.opt:has(input:checked), .opt.on { border-color: var(--ora-accent); background: #EAF6EF; box-shadow: 0 0 0 4px rgba(46, 177, 53, .14); }
.opt:has(input:checked) .opt-ic { background: var(--ora-primary); color: #fff; }
.opt:has(input:checked) .opt-radio { border: 7px solid var(--ora-primary); }
.opt:has(input:focus-visible) { box-shadow: var(--focus); }
.opt.card { align-items: flex-start; }
.opt.none .opt-txt b { color: var(--text-2); }
.fatca-intro { margin: 0; display: flex; align-items: center; }
.result-card { display: flex; gap: 12px; align-items: flex-start; padding: 16px; border-radius: 16px; background: var(--ok-bg); color: #004F2D; }
.result-card.warn { background: var(--warn-bg); color: #6B3F00; }
.result-card b { display: block; } .result-card small { display: block; font-size: 12.5px; margin-top: 2px; }
.add-btn { width: 100%; display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 56px; border-radius: 16px; border: 2px dashed #AEC6D4; background: #F5F8FA; color: var(--ora-primary); font-weight: 700; cursor: pointer; }
.add-btn:hover { border-color: var(--ora-accent); background: #EAF6EF; }
.persons { display: grid; gap: 14px; }
.person header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; font-weight: 700; }
.person header span { display: inline-flex; gap: 8px; align-items: center; }
.total { font-weight: 700; color: var(--ok); } .total.over { color: var(--err); }

/* Module de lecture de la pièce (OCR) */
.scan-module { display: grid; gap: 18px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .scan-module { grid-template-columns: 1.15fr 1fr; align-items: center; } }
.scan-frame { position: relative; aspect-ratio: 1.586; border-radius: 18px; background: linear-gradient(135deg, #0D2B36, #1F4E5F); overflow: hidden; display: grid; place-items: center; }
.scan-frame img { width: 100%; height: 100%; object-fit: cover; }
.scan-ph { text-align: center; color: #D3E2EA; padding: 18px; display: grid; justify-items: center; gap: 6px; }
.scan-ph b { color: #fff; font-size: 14.5px; } .scan-ph small { font-size: 12px; max-width: 260px; }
.corner { position: absolute; width: 26px; height: 26px; border: 3px solid var(--ora-accent); z-index: 2; }
.c1 { top: 12px; left: 12px; border-right: 0; border-bottom: 0; border-top-left-radius: 10px; }
.c2 { top: 12px; right: 12px; border-left: 0; border-bottom: 0; border-top-right-radius: 10px; }
.c3 { bottom: 12px; left: 12px; border-right: 0; border-top: 0; border-bottom-left-radius: 10px; }
.c4 { bottom: 12px; right: 12px; border-left: 0; border-top: 0; border-bottom-right-radius: 10px; }
.scan-line { position: absolute; left: 6%; right: 6%; height: 3px; background: var(--ora-accent); box-shadow: 0 0 18px 4px rgba(46, 177, 53, .7); animation: scanY 1.4s ease-in-out infinite alternate; z-index: 3; }
@keyframes scanY { from { top: 10%; } to { top: 88%; } }
.scan-status { position: absolute; bottom: 14px; left: 50%; transform: translateX(-50%); z-index: 3; display: inline-flex; gap: 8px; align-items: center; background: rgba(0, 0, 0, .55); color: #fff; padding: 6px 12px; border-radius: var(--r-pill); font-size: 12.5px; white-space: nowrap; }
.scan-side { display: grid; gap: 10px; }
.scan-steps { list-style: none; padding: 0; margin: 0 0 6px; display: grid; gap: 8px; font-size: 13.5px; color: var(--text-2); }
.scan-steps li { display: flex; gap: 8px; align-items: flex-start; }
.scan-steps li svg { flex: none; margin-top: 2px; color: #AEB4AC; }
.scan-steps li.done { color: var(--text); font-weight: 600; } .scan-steps li.done svg { color: var(--ora-accent); }
.demo-links { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 13px; }
.quality b { display: flex; gap: 6px; align-items: center; } .quality p { margin: 4px 0 0; }
.ocr-review { border-radius: 18px; border: 1.5px solid #B8DEC6; background: #EEF7F2; padding: 18px; animation: reveal .3s ease; }
.ocr-head { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 12px; }
.ocr-head b { display: block; font-size: 15.5px; } .ocr-head small { color: var(--text-2); font-size: 12.5px; }
.ocr-ic { flex: none; width: 36px; height: 36px; border-radius: 12px; background: var(--ora-primary); color: #fff; display: grid; place-items: center; }
.ocr-kv { display: grid; grid-template-columns: max-content 1fr; gap: 8px 16px; margin: 0; font-size: 14px; }
.ocr-kv dt { color: var(--text-3); } .ocr-kv dd { margin: 0; font-weight: 650; }
.ocr-kv dd.low { color: var(--warn); }
.edit-panel { animation: reveal .25s ease; }
.edit-panel .sub-title { margin-top: 0; }
.manual-link { margin: 0; text-align: center; font-size: 13.5px; }

/* Documents */
.mini-progress { display: flex; flex-direction: column; gap: 8px; font-size: 13.5px; font-weight: 650; color: var(--text-2); }
.mini-progress .mini-bar { height: 6px; }
.doc-list { display: grid; gap: 10px; }
.doc-card { display: grid; grid-template-columns: auto 1fr auto; gap: 6px 14px; align-items: center; padding: 16px; border-radius: 16px; border: 1.5px solid #DCE3E7; background: #fff; transition: border-color .2s, background .2s; }
.doc-card.has { border-color: #B8DEC6; background: #EEF7F2; }
.dc-ic { width: 42px; height: 42px; border-radius: 12px; background: var(--ora-tint); color: var(--ora-primary); display: grid; place-items: center; }
.doc-card.has .dc-ic { background: var(--ora-primary); color: #fff; }
.dc-main { min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.dc-main b { font-size: 14.5px; } .dc-main small { font-size: 12.5px; color: var(--text-3); overflow-wrap: anywhere; }
.dc-main small.motif { color: var(--warn); font-weight: 600; }
.dc-main .dl { align-self: flex-start; margin-top: 6px; }
.dc-actions { grid-column: 2 / -1; display: flex; flex-wrap: wrap; gap: 6px; }
@media (max-width: 520px) { .doc-card { grid-template-columns: auto 1fr; } .doc-card .status { grid-column: 2; justify-self: start; grid-row: 2; } .dc-actions { grid-column: 1 / -1; } }
.small { font-size: 12.5px; }
.form-howto { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.form-howto li { display: flex; flex-direction: column; gap: 6px; padding: 12px; border-radius: 14px; background: #EEF3F7; font-size: 13px; color: var(--text-2); }
.form-howto .n { width: 26px; height: 26px; border-radius: 50%; background: var(--ora-primary); color: #fff; font-weight: 800; display: grid; place-items: center; font-size: 13px; }
.form-howto b { color: var(--text); }

/* Vérification finale */
.recap-grid { display: grid; gap: 12px; grid-template-columns: 1fr; margin-bottom: 26px; }
@media (min-width: 720px) { .recap-grid { grid-template-columns: 1fr 1fr; } }
.recap-card { background: #fff; border-radius: 18px; padding: 16px 18px; box-shadow: var(--shadow-soft); }
.recap-card header { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.recap-card h3 { font-size: 15.5px; margin: 0; flex: 1; }
.rc-ic { width: 32px; height: 32px; border-radius: 10px; background: var(--ora-tint); color: var(--ora-primary); display: grid; place-items: center; }
.recap-card .kv { display: grid; grid-template-columns: max-content 1fr; gap: 6px 14px; margin: 0; font-size: 13.5px; }
.recap-card dt { color: var(--text-3); } .recap-card dd { margin: 0; font-weight: 600; overflow-wrap: anywhere; }
.view-recap .wiz > .field.q { background: #fff; border-radius: 20px; padding: 20px; box-shadow: var(--shadow-soft); margin-bottom: 8px; }

/* Confirmation */
.confirm-card { position: relative; text-align: center; background: #fff; border-radius: var(--r-xl); padding: 40px 22px; box-shadow: var(--shadow-soft); overflow: hidden; animation: pop .4s ease; }
@keyframes pop { from { opacity: 0; transform: scale(.97); } to { opacity: 1; transform: none; } }
.confirm-card .tick { width: 78px; height: 78px; border-radius: 50%; margin: 0 auto 16px; display: grid; place-items: center; background: var(--ok-bg); color: var(--ora-primary); }
.confirm-card h1 { font-size: clamp(24px, 3.4vw, 30px); font-weight: 800; }
.confirm-card .numero { display: inline-block; font-size: 22px; font-weight: 800; letter-spacing: .04em; padding: 10px 18px; border-radius: 14px; background: var(--ora-tint); color: var(--ora-primary); margin: 6px 0 12px; font-variant-numeric: tabular-nums; }
.confirm-card .qr { display: block; margin: 0 auto 12px; width: 120px; height: 120px; }
.confetti { position: absolute; inset: 0 0 auto; height: 6px; background: linear-gradient(90deg, var(--ora-primary), var(--ora-accent), #C19B5F, var(--ora-accent), var(--ora-primary)); }
.center-btns { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 18px; }

/* Espace client */
.space-hero { position: relative; border-radius: var(--r-xl); overflow: hidden; color: #fff; padding: 30px 26px; margin-bottom: 14px;
  background: var(--ora-primary-deep) url('https://images.unsplash.com/photo-1573496782432-8690d8148c46?w=1600&q=70&auto=format&fit=crop&crop=faces') right 30% / cover no-repeat; }
.space-hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, rgba(0, 52, 30, .97) 0%, rgba(0, 105, 62, .9) 48%, rgba(80, 140, 164, .62) 100%); }
.sh-content { position: relative; max-width: 560px; }
.sh-badge { display: inline-flex; gap: 6px; align-items: center; font-size: 12px; font-weight: 700; padding: 5px 12px; border-radius: var(--r-pill); background: rgba(46, 177, 53, .35); border: 1px solid rgba(255, 255, 255, .3); }
.space-hero h1 { color: #fff; font-size: clamp(25px, 3.4vw, 34px); font-weight: 800; margin: 12px 0 6px; }
.space-hero p { color: #E2EDF2; margin: 0; }
.space-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 14px; }
.kpi { background: #fff; border-radius: 18px; padding: 14px 16px; box-shadow: var(--shadow-soft); display: grid; gap: 2px; color: var(--ora-primary); min-width: 0; }
.kpi small { color: var(--text-3); font-size: 12px; } .kpi b { color: var(--text); font-size: 15px; overflow-wrap: anywhere; }
@media (max-width: 560px) { .space-kpis { grid-template-columns: 1fr 1fr; } .space-kpis .kpi:first-child { grid-column: 1 / -1; } }
.space-card { background: #fff; border-radius: 20px; padding: 22px; box-shadow: var(--shadow-soft); margin-bottom: 14px; }
.space-card h2 { font-size: 18px; display: flex; gap: 8px; align-items: center; margin-bottom: 14px; }
.space-card.ok-card { border: 1.5px solid #B8DEC6; }
details.space-card summary { list-style: none; cursor: pointer; } details.space-card summary::-webkit-details-marker { display: none; }
details.space-card summary h2 { margin: 0; color: var(--ora-primary); }
details.space-card[open] summary h2 { margin-bottom: 10px; }
.timeline-steps { list-style: none; margin: 0; padding: 0; display: grid; }
.timeline-steps li { position: relative; display: grid; grid-template-columns: 34px 1fr auto; gap: 12px; padding-bottom: 20px; }
.timeline-steps li:last-child { padding-bottom: 0; }
.timeline-steps li:not(:last-child)::before { content: ""; position: absolute; left: 16px; top: 34px; bottom: 2px; width: 2px; background: #DCE3E7; }
.timeline-steps li.ts-done:not(:last-child)::before { background: var(--ora-accent); }
.ts-dot { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: 14px; background: #E9EEF2; color: var(--text-3); position: relative; z-index: 1; }
.ts-done .ts-dot { background: var(--ora-primary); color: #fff; }
.ts-now .ts-dot { background: #fff; color: var(--ora-primary); box-shadow: inset 0 0 0 2px var(--ora-accent), 0 0 0 5px rgba(46, 177, 53, .18); }
.timeline-steps b { display: block; font-size: 15px; margin-top: 5px; } .timeline-steps p { margin: 2px 0 0; font-size: 13.5px; color: var(--text-2); }
.ts-next b { color: var(--text-3); }
.ts-badge { align-self: start; margin-top: 4px; font-size: 11.5px; font-weight: 700; padding: 4px 10px; border-radius: var(--r-pill); white-space: nowrap; }
.ts-badge.done { background: var(--ok-bg); color: var(--ok); } .ts-badge.now { background: #FFF2DA; color: #8A5300; } .ts-badge.next { background: #ECF0F3; color: var(--text-3); }
@media (max-width: 480px) { .timeline-steps li { grid-template-columns: 34px 1fr; } .ts-badge { grid-column: 2; justify-self: start; margin-top: 4px; } }
.doc-links { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.doc-links a { display: inline-flex; gap: 8px; align-items: center; font-weight: 600; }
.tips { margin: 0 0 12px; padding-left: 18px; color: var(--text-2); }

/* Dialogues */
.modal { border: 0; border-radius: 22px; padding: 26px; max-width: min(560px, calc(100vw - 24px)); box-shadow: 0 30px 80px rgba(0, 0, 0, .25); }
.modal::backdrop { background: rgba(13, 30, 40, .45); backdrop-filter: blur(3px); }
.modal h2 { font-size: 21px; }
.ov-group { margin-top: 14px; } .ov-group > b { display: block; font-size: 13px; color: var(--text-3); text-transform: uppercase; letter-spacing: .05em; margin-bottom: 6px; }
.ov-item { width: 100%; display: flex; align-items: center; gap: 10px; text-align: left; padding: 10px 12px; border-radius: 12px; border: 0; background: #F1F5F8; margin-bottom: 6px; cursor: pointer; font-size: 14px; }
.ov-item:hover { background: var(--ora-tint); }
.ov-item > span:nth-child(2) { flex: 1; }
.ov-st { color: #AEB4AC; display: inline-flex; } .ov-st.ok { color: var(--ora-accent); }
/* Mobile d'abord : bandeau d'accueil compact pour afficher les profils sans défilement, en-tête d'assistant simplifié */
@media (max-width: 899px) {
  .auth-hero { min-height: 0; }
  .auth-hero-inner { padding: 64px var(--sp-4) 18px; }
  .auth-hero .hero-title { font-size: 22px; margin: 8px 0 0; }
  .auth-hero .hero-sub { display: none; }
  .auth-panel { padding-top: var(--sp-5); }
  .auth-logo { margin-bottom: var(--sp-4); }
}
@media (max-width: 560px) {
  .guide-badge { display: none; }
  .wiz-top { margin-bottom: 10px; }
  .overview-btn span { display: none; }
  .overview-btn { padding: 6px; border-radius: 10px; background: var(--ora-tint); text-decoration: none; }
  .wiz-step { margin-bottom: 16px; }
  .wiz-head { gap: 12px; }
  .opt { padding: 12px 14px; }
}
.q-title, .field legend.q-title { display: block; }
.q-title .tip, .q-title svg { vertical-align: -3px; }
.q-title > svg { margin-right: 6px; }
.view-recap .wiz > fieldset.field.q { padding-top: 20px; }
.view-recap .wiz > fieldset.field.q > legend { float: left; width: 100%; margin-bottom: 12px; }
@media (max-width: 640px) { .tip-bubble { position: fixed; left: 16px; right: 16px; top: auto; bottom: 96px; width: auto; font-size: 13.5px; } }

/* =====================================================================
   Parcours v5 — assistant guidé dans le cadre visuel de la version modernisée
   (bandeau photo, sommaire latéral), étapes client du TDR, aide contextuelle
   ===================================================================== */
main.flow-mode.view-wizard, main.flow-mode.view-recap, main.flow-mode.view-espace, main.flow-mode.view-confirmation { max-width: 1180px; }
/* Bandeau photo */
.flow-hero { position: relative; margin: 4px 0 14px; border-radius: var(--r-xl); overflow: hidden; color: #fff; display: flex; align-items: center; gap: 18px; padding: 22px 26px;
  background: var(--ora-primary-deep) url('https://images.unsplash.com/photo-1573496782432-8690d8148c46?w=1600&q=70&auto=format&fit=crop&crop=faces') right 28% / cover no-repeat; box-shadow: var(--shadow-soft); }
.flow-hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, rgba(0, 52, 30, .97) 0%, rgba(0, 105, 62, .9) 48%, rgba(80, 140, 164, .62) 100%); }
.flow-hero > * { position: relative; }
.fh-content { flex: 1; min-width: 0; }
.fh-kicker { margin: 0 0 4px; font-size: 12.5px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: #CFE6DA; }
.fh-title { margin: 0 0 6px; font-size: clamp(21px, 2.6vw, 28px); font-weight: 800; line-height: 1.2; }
.fh-sub { margin: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 4px; color: #E2EDF2; font-size: 13.5px; }
.flow-hero .hero-ring { width: 96px; height: 96px; flex: none; }
.flow-hero .ring-label b { font-size: 19px; } .flow-hero .ring-label small { font-size: 10.5px; }
.flow-hero .sh-badge { margin-right: 6px; }
@media (max-width: 600px) { .flow-hero { padding: 16px 18px; border-radius: 18px; } .flow-hero .hero-ring { width: 66px; height: 66px; } .flow-hero .ring-label small { display: none; } .flow-hero .ring-label b { font-size: 14px; } .fh-sub { font-size: 12.5px; } }

/* Étapes numérotées et libellées (TDR §5 : étapes client) */
.stepper { list-style: none; margin: 0 0 18px; padding: 14px 18px; display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; background: #fff; border-radius: 18px; box-shadow: var(--shadow-soft); counter-reset: s; }
.stepper li { position: relative; display: flex; align-items: center; gap: 10px; min-width: 0; color: var(--text-3); }
.stepper li:not(:last-child)::after { content: ""; flex: 1; height: 2px; min-width: 12px; background: #DCE3E7; border-radius: 2px; }
.stepper li.done:not(:last-child)::after { background: var(--ora-accent); }
.st-dot { flex: none; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: 13px; background: #E9EEF2; color: var(--text-3); }
.stepper li.done .st-dot { background: var(--ora-primary); color: #fff; }
.stepper li.cur .st-dot { background: #fff; color: var(--ora-primary); box-shadow: inset 0 0 0 2px var(--ora-accent), 0 0 0 4px rgba(46, 177, 53, .18); }
.st-txt { display: flex; flex-direction: column; min-width: 0; }
.st-txt b { font-size: 13px; line-height: 1.2; color: inherit; } .st-txt small { font-size: 11px; color: var(--text-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.stepper li.cur, .stepper li.done { color: var(--text); }
.stepper li.cur b { color: var(--ora-primary); }
@media (max-width: 900px) { .st-txt small { display: none; } }
@media (max-width: 700px) {
  .stepper { padding: 10px 12px; gap: 4px; }
  .stepper li:not(.cur) .st-txt { display: none; }
  .stepper li { gap: 6px; } .st-dot { width: 26px; height: 26px; font-size: 12px; }
  .stepper li.cur { grid-column: span 1; }
  .stepper { grid-template-columns: repeat(5, auto); justify-content: space-between; }
  .stepper li.cur .st-txt b { white-space: nowrap; }
}

/* Mise en page : sommaire + question */
.flow-layout { display: grid; grid-template-columns: 1fr; gap: 20px; align-items: start; }
@media (min-width: 1000px) { .flow-layout { grid-template-columns: 260px minmax(0, 1fr); } .flow-nav { position: sticky; top: 84px; } }
.flow-nav { display: none; background: #fff; border-radius: 20px; padding: 16px; box-shadow: var(--shadow-soft); }
@media (min-width: 1000px) { .flow-nav { display: block; } }
.fn-group { border-radius: 14px; padding: 4px; margin-bottom: 4px; }
.fn-group.active { background: #EFF4F7; }
.fn-head { display: flex; align-items: center; gap: 10px; padding: 8px; font-size: 14px; }
.fn-ic { width: 30px; height: 30px; border-radius: 10px; display: grid; place-items: center; background: var(--ora-tint); color: var(--ora-primary); flex: none; }
.fn-group.done .fn-ic { background: var(--ora-primary); color: #fff; }
.fn-group:not(.active):not(.done) .fn-head { color: var(--text-3); }
.fn-items { list-style: none; margin: 0 0 6px; padding: 0 0 0 26px; }
.fn-items li { position: relative; }
.fn-items li::before { content: ""; position: absolute; left: -9px; top: 14px; width: 8px; height: 8px; border-radius: 50%; background: #C9D3DA; }
.fn-items li.ok::before { background: var(--ora-accent); }
.fn-items li.cur::before { background: var(--ora-primary); box-shadow: 0 0 0 3px rgba(46, 177, 53, .25); }
.fn-items button { width: 100%; text-align: left; background: none; border: 0; padding: 7px 8px; border-radius: 8px; font-size: 13px; color: var(--text-2); cursor: pointer; }
.fn-items button:hover { background: #fff; color: var(--ora-primary); }
.fn-items li.cur button { font-weight: 700; color: var(--ora-primary); background: #fff; }
.fn-help { display: flex; gap: 10px; align-items: center; margin-top: 14px; padding: 12px; border-radius: 14px; background: #EEF3F7; }
.fn-help img { flex: none; width: 60px; height: auto; }
.fn-help b { display: block; font-size: 13.5px; } .fn-help small { display: block; color: var(--text-2); font-size: 12px; }
.wiz-top .wiz-step { font-size: 13px; font-weight: 700; color: var(--ora-primary); }
.wiz-card { background: #fff; border-radius: var(--r-xl); padding: 26px; box-shadow: var(--shadow-soft); }
.wiz-card .wiz-body { background: none; box-shadow: none; padding: 0; border-radius: 0; }
.wiz-card .why { margin: 12px 0 18px; }
@media (max-width: 520px) { .wiz-card { padding: 18px; border-radius: 20px; } }

/* Questions conditionnelles */
.cond-block { border-left: 3px solid var(--ora-accent); padding: 4px 0 4px 18px; animation: reveal .3s ease; display: grid; gap: 20px; }
.cond-intro { display: flex; gap: 6px; align-items: center; margin: 0; font-size: 13.5px; font-weight: 600; color: var(--ora-primary); }
.sub-block .sub-title { margin-top: 0; }

/* Vérification : explication */
.why-otp { list-style: none; padding: 12px 14px; margin: 0 0 16px; border-radius: 14px; background: #EDF3F7; display: grid; gap: 6px; font-size: 13px; color: var(--text-2); }
.why-otp li { display: flex; gap: 8px; align-items: flex-start; } .why-otp svg { flex: none; margin-top: 2px; color: var(--ora-primary); }

/* Accueil : illustrations et déroulé */
.profile-card { padding: 14px 16px 16px; }
.pc-illu { width: 100%; height: 86px; object-fit: contain; object-position: left center; margin: 0 0 4px -6px; transition: transform .2s; }
.profile-card:hover .pc-illu { transform: scale(1.04); }
.how { margin-top: 18px; padding: 14px 16px; border-radius: 16px; background: #F1F5F8; }
.how-title { margin: 0 0 10px; font-weight: 750; font-size: 14px; } .how-title small { font-weight: 500; color: var(--text-3); }
.how-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.how-steps li { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; }
.how-steps .n { flex: none; width: 22px; height: 22px; border-radius: 50%; background: var(--ora-primary); color: #fff; display: grid; place-items: center; font-size: 11.5px; font-weight: 800; }
.how-steps b { display: block; } .how-steps small { color: var(--text-3); }

/* Pièce d'identité : consignes visuelles, recto / verso */
.capture-tips { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.capture-tips li { display: flex; gap: 8px; align-items: center; padding: 10px 12px; border-radius: 14px; background: #EEF3F7; color: var(--ora-primary); }
.capture-tips b { display: block; font-size: 13px; color: var(--text); } .capture-tips small { display: block; font-size: 11.5px; color: var(--text-3); }
@media (max-width: 560px) { .capture-tips { grid-template-columns: 1fr; } }
.face-tabs { display: inline-flex; gap: 6px; padding: 5px; border-radius: 16px; background: var(--field-bg); align-self: flex-start; }
.face-tab { display: inline-flex; align-items: center; gap: 6px; border: 0; background: transparent; padding: 8px 14px; border-radius: 12px; font-weight: 650; color: var(--text-2); cursor: pointer; }
.face-tab small { font-weight: 500; color: var(--text-3); font-size: 11.5px; }
.face-tab.on { background: #fff; color: var(--ora-primary); box-shadow: 0 1px 2px rgba(0, 0, 0, .06), 0 4px 12px rgba(0, 79, 45, .12); }
.face-tab.ok svg { color: var(--ora-accent); }
.ocr-review.confirmed { border-color: var(--ora-accent); background: #E6F4EC; }
.wiz-body > .face-tabs { justify-self: start; }

/* Aide sur les documents */
.doc-help { margin-top: 6px; font-size: 12.5px; }
.doc-help summary { cursor: pointer; color: var(--ora-primary); font-weight: 600; display: inline-flex; gap: 5px; align-items: center; }
.doc-help p { margin: 6px 0 2px; color: var(--text-2); } .doc-help ul { margin: 0; padding-left: 18px; color: var(--text-2); }

/* Récapitulatif */
.recap-wrap .wiz-head { margin-bottom: 18px; }
.recap-q { background: #fff; border-radius: 20px; padding: 20px; box-shadow: var(--shadow-soft); margin: 12px 0; }

/* Confirmation */
.confirm-illu { display: block; margin: 0 auto 8px; width: 200px; height: auto; }
.next-mini { list-style: none; padding: 0; margin: 14px auto 0; max-width: 520px; display: grid; gap: 8px; text-align: left; }
.next-mini li { display: grid; grid-template-columns: 140px 1fr; gap: 10px; padding: 10px 14px; border-radius: 12px; background: #F1F5F8; font-size: 13.5px; }
.next-mini b { color: var(--ora-primary); }
@media (max-width: 520px) { .next-mini li { grid-template-columns: 1fr; gap: 2px; } }

/* Espace client */
.qa { display: grid; gap: 8px; margin: 0; }
.qa-row { display: grid; grid-template-columns: minmax(0, 260px) 1fr; gap: 12px; padding: 12px 14px; border-radius: 14px; background: #F3F6F9; border-left: 4px solid #91AEC1; }
.qa-row dt { font-weight: 700; font-size: 14px; } .qa-row dd { margin: 0; font-size: 14px; color: var(--text-2); }
.qa-row.ok { border-left-color: var(--ora-accent); } .qa-row.warn { border-left-color: #E2A33B; } .qa-row.info { border-left-color: #8FB6DC; }
@media (max-width: 600px) { .qa-row { grid-template-columns: 1fr; gap: 2px; } }
.ts-wait .ts-dot { background: #FFF2DA; color: #8A5300; }
.ts-badge.wait { background: #FFF2DA; color: #8A5300; }
.ts-date { display: inline-flex; gap: 4px; align-items: center; color: var(--text-3); font-size: 12px; margin-top: 2px; }
.checklist-orig { list-style: none; padding: 0; margin: 0 0 10px; display: grid; gap: 6px; }
.checklist-orig li { display: flex; gap: 8px; align-items: center; font-size: 14px; } .checklist-orig svg { color: var(--ora-accent); }
.notif-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.notif-list li { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border-radius: 12px; background: #F3F6F9; }
.nl-ic { flex: none; width: 30px; height: 30px; border-radius: 10px; display: grid; place-items: center; background: var(--ora-tint); color: var(--ora-primary); }
.notif-list p { margin: 0; font-size: 13.5px; } .notif-list small { color: var(--text-3); font-size: 12px; }
.help-card { display: flex; gap: 16px; align-items: center; }
.help-card img { flex: none; } .help-card h2 { margin-bottom: 4px; }
@media (max-width: 560px) { .help-card { flex-direction: column; align-items: flex-start; } }

/* Bouton d'aide flottant et panneau d'aide */
.help-fab { position: fixed; right: 18px; bottom: 92px; z-index: 40; display: inline-flex; align-items: center; gap: 6px; padding: 10px 16px; border-radius: var(--r-pill); border: 0; background: var(--text); color: #fff; font-weight: 700; cursor: pointer; box-shadow: 0 10px 26px rgba(0, 0, 0, .22); }
.help-fab:hover { background: var(--ora-primary); }
body.auth-body .help-fab { bottom: 18px; }
@media (max-width: 560px) { .help-fab span { display: none; } .help-fab { padding: 12px; bottom: 84px; } }
.help-panel { width: min(560px, calc(100vw - 24px)); max-height: min(720px, calc(100vh - 24px)); padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.help-panel[open] { display: flex; }
.hp-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 20px 22px 8px; }
.hp-head h2 { margin: 0; font-size: 19px; }
.hp-tabs { display: flex; gap: 6px; padding: 6px 22px 12px; border-bottom: 1px solid var(--line); }
.hp-tabs button { display: inline-flex; gap: 6px; align-items: center; border: 0; background: var(--field-bg); padding: 8px 12px; border-radius: 12px; font-weight: 650; font-size: 13.5px; color: var(--text-2); cursor: pointer; }
.hp-tabs button[aria-selected="true"] { background: var(--ora-primary); color: #fff; }
.hp-body { padding: 16px 22px 22px; overflow: auto; display: grid; gap: 12px; }
.hp-search { width: 100%; min-height: 46px; border-radius: 14px; border: 1.5px solid transparent; background: var(--field-bg); padding: 10px 14px; font-size: 15px; }
.hp-search:focus { outline: none; background: #fff; border-color: var(--ora-accent); }
.hp-gloss { margin: 0; display: grid; gap: 4px; }
.hp-gloss dt { font-weight: 750; margin-top: 8px; color: var(--ora-primary); } .hp-gloss dd { margin: 0; font-size: 13.5px; color: var(--text-2); }
.hp-doc { border-radius: 12px; background: #F1F5F8; padding: 10px 12px; font-size: 13.5px; }
.hp-doc summary { cursor: pointer; font-weight: 650; } .hp-doc p { margin: 6px 0 2px; color: var(--text-2); } .hp-doc ul { margin: 0; padding-left: 18px; color: var(--text-2); }
.hp-contact { display: flex; gap: 12px; align-items: center; } .hp-contact b { display: block; }
.ov-badge { font-size: 11px; font-weight: 700; padding: 3px 8px; border-radius: var(--r-pill); background: #FFF2DA; color: #8A5300; white-space: nowrap; }
.ov-badge.ok { background: var(--ok-bg); color: var(--ok); }
/* Langue */
.lang-switch { display: inline-flex; gap: 2px; padding: 3px; border-radius: var(--r-pill); background: var(--field-bg); }
.lang-switch button { border: 0; background: transparent; padding: 4px 10px; border-radius: var(--r-pill); font-weight: 700; font-size: 12px; color: var(--text-2); cursor: pointer; }
.lang-switch button[aria-pressed="true"] { background: #fff; color: var(--ora-primary); box-shadow: 0 1px 3px rgba(0, 0, 0, .1); }
.auth-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: var(--sp-5); }
.auth-top .auth-logo { margin: 0; }
@media (max-width: 700px) { .stepper li .st-txt, .stepper li.cur .st-txt { display: none; } .stepper { grid-template-columns: repeat(5, 1fr); } }

/* ===== Palette mixée : bleus coolors pour l'information et l'aide, secondaires Orabank en touches ===== */
.why summary, .doc-help summary, .help-acc summary { color: var(--info); }
.why p, .why-otp { background: var(--info-bg); color: #24414F; }
.why-otp svg, .capture-tips li { color: var(--info); }
.capture-tips li { background: var(--info-bg); }
.qa-row.info { border-left-color: var(--ora-steel); } .qa-row { background: #F3F6F9; }
.nl-ic { background: var(--info-bg); color: var(--info); }
.tip-btn { color: var(--info); }
.tip-bubble { background: #0D2B36; }
.help-fab { background: var(--ora-primary-deep); }
.help-fab:hover { background: var(--info); }
.hp-gloss dt { color: var(--info); }
.fn-help, .how { background: linear-gradient(135deg, #EEF4F8, #E6F3EC); }
.guide-badge { background: #F1ECEF; color: var(--ora-mauve); }
.ts-badge.next { background: #ECF0F3; color: var(--ora-blue-grey); }
.ocr-tag { background: var(--ok-bg); }
.sh-badge { background: rgba(80, 140, 164, .45); }
.eyebrow-pill { background: rgba(46, 177, 53, .3); }
.wiz-illu { background: linear-gradient(140deg, var(--ora-primary), var(--ora-teal) 60%, var(--ora-blue)); box-shadow: 0 10px 24px rgba(0, 105, 62, .22); }
.confetti { background: linear-gradient(90deg, var(--ora-primary), var(--ora-accent), var(--ora-blue), var(--ora-mauve), var(--ora-brown)); }
.pc-go, .fn-items li.cur button { color: var(--ora-primary); }
.profile-card:hover { border-color: var(--ora-blue); box-shadow: 0 14px 30px rgba(31, 78, 95, .14); }
.stepper li.cur .st-dot { box-shadow: inset 0 0 0 2px var(--ora-accent), 0 0 0 4px rgba(46, 177, 53, .18); }
.alert.info { border-color: var(--ora-blue-soft); }

/* ===== Carrousel d'onboarding (même architecture que l'ancien bandeau photo) ===== */
.auth-hero.slider { position: relative; overflow: hidden; display: block; background: var(--ora-primary-deep); outline: none; }
@media (min-width: 900px) { .auth-hero.slider { position: sticky; top: 0; height: 100vh; } }
.auth-hero.slider::before { display: none; }
.slide { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: flex-end; opacity: 0; visibility: hidden; transition: opacity .7s ease, visibility .7s; color: #fff;
  background: linear-gradient(160deg, #004F2D 0%, #00693E 40%, #0A8754 65%, #508CA4 100%); }
.slide.photo { background-color: var(--ora-primary-deep); background-size: cover; background-repeat: no-repeat; }
/* Photos réelles (Unsplash, licence libre), même traitement sobre pour les 4 diapositives */
.slide.ph1 { background-image: url('https://images.unsplash.com/photo-1573496782432-8690d8148c46?w=1200&q=70&auto=format&fit=crop&crop=faces'); background-position: center 20%; }
.slide.ph2 { background-image: url('https://images.unsplash.com/photo-1739271933163-8dcc7c8e8a3e?w=1200&q=70&auto=format&fit=crop'); background-position: center 30%; }
.slide.ph3 { background-image: url('https://images.unsplash.com/photo-1758519290803-f2b25952a5d7?w=1600&q=70&auto=format&fit=crop'); background-position: 22% 30%; }
.slide.ph4 { background-image: url('https://images.unsplash.com/photo-1573497620053-ea5300f94f21?w=1200&q=70&auto=format&fit=crop'); background-position: 40% 30%; }
.slide.photo::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0, 79, 45, .1) 0%, rgba(0, 79, 45, .5) 42%, rgba(0, 52, 30, .95) 100%); }
.slide > * { position: relative; }
.slide.on { opacity: 1; visibility: visible; }
.slide.on .auth-hero-inner { animation: slideUp .6s ease both; }
@keyframes slideUp { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.slide-illu { position: absolute; top: 10%; left: 50%; transform: translateX(-50%); width: min(78%, 400px); height: auto; filter: drop-shadow(0 18px 30px rgba(0, 0, 0, .18)); }
.slide .auth-hero-inner { padding-bottom: 92px; }
.slider-ctrl { position: absolute; left: 0; right: 0; bottom: 0; display: flex; align-items: center; gap: 12px; padding: 18px var(--sp-5) 26px; z-index: 2; }
.slider-dots { display: flex; gap: 8px; }
.slider-dots button { width: 10px; height: 10px; border-radius: 10px; border: 0; padding: 0; background: rgba(255, 255, 255, .45); cursor: pointer; transition: width .3s, background .3s; }
.slider-dots button.on { width: 28px; background: #fff; }
.sl-arrow { width: 36px; height: 36px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .4); background: rgba(255, 255, 255, .12); color: #fff; display: grid; place-items: center; cursor: pointer; backdrop-filter: blur(4px); }
.sl-arrow:hover { background: rgba(255, 255, 255, .25); }
.sl-progress { flex: 1; height: 3px; border-radius: 3px; background: rgba(255, 255, 255, .2); overflow: hidden; max-width: 140px; margin-left: auto; }
.sl-progress i { display: block; height: 100%; width: 100%; background: var(--ora-accent); transform-origin: left; animation: slProg 6s linear; }
.slider.paused .sl-progress i { animation-play-state: paused; }
.slider.static .sl-progress { display: none; }
@keyframes slProg { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@media (prefers-reduced-motion: reduce) { .slide, .slide.on .auth-hero-inner { transition: none; animation: none; } }
@media (max-width: 899px) {
  .auth-hero.slider { height: 300px; }
  .slide-illu { top: 6%; width: 150px; left: auto; right: 12px; transform: none; }
  .slide .auth-hero-inner { padding: 0 var(--sp-4) 64px; }
  .slide .features { display: none; } .slide .hero-sub { display: block; font-size: 13px; margin: 4px 0 0; }
  .slide .hero-title { font-size: 21px; max-width: 78%; }
  .slider-ctrl { padding: 12px var(--sp-4) 16px; }
  .sl-arrow { width: 30px; height: 30px; }
}
@media (max-width: 899px) { .slide:not(.photo) .hero-title { max-width: 62%; } }
/* Mobile : en-tête allégé ; le lien « Aide » de l'en-tête remplace le bouton flottant hors écrans d'accueil */
@media (max-width: 560px) { .topbar .saved { display: none; } body:not(.auth-body) .help-fab { display: none; } .topbar-inner { gap: 10px; } }

/* Sommaire latéral : l'écran en cours et le survol occupent toute la largeur et la hauteur de la ligne
   (plus de marge à gauche), en bleu ciel de la palette secondaire. */
.fn-items { padding: 0; margin: 2px 0 6px; display: grid; gap: 2px; }
.fn-items li { position: relative; }
.fn-items li::before { left: 14px; top: 50%; transform: translateY(-50%); z-index: 1; pointer-events: none; }
.fn-items button { display: block; width: 100%; padding: 10px 12px 10px 32px; border-radius: 10px; line-height: 1.35; transition: background .15s, color .15s; }
.fn-items button:hover { background: #E3EEF4; color: #1F4E5F; }
.fn-items li.cur button { background: var(--ora-blue-soft); color: #0D2B36; font-weight: 700; box-shadow: inset 3px 0 0 var(--ora-blue); }
.fn-items li.cur::before { background: var(--ora-blue); box-shadow: 0 0 0 3px rgba(80, 140, 164, .25); }
.fn-items li.ok:not(.cur)::before { background: var(--ora-accent); }
.fn-group.active { background: #F1F5F8; }
.fn-items button:focus-visible { box-shadow: var(--focus); }
.fn-items li.cur::before { background: #fff; box-shadow: 0 0 0 3px var(--ora-blue); }

/* ================= Back-office v2 : même langage que l'espace client ================= */
body.bo-body { background: var(--ora-beige); }
main.bo-app { max-width: 1440px; margin: 0 auto; padding: 18px 20px 48px; }
.bo-auth .bo-hero-photo { background-image: url('https://images.unsplash.com/photo-1573497620053-ea5300f94f21?w=1200&q=70&auto=format&fit=crop'); background-position: 40% 30%; }
.bo-demo { margin-top: 22px; padding: 14px; border-radius: 14px; background: #EEF3F7; }
.bo-demo .muted { margin: 0 0 8px; font-size: 12.5px; }
.bo-demo-list { display: flex; flex-wrap: wrap; gap: 6px; }
.bo-demo-list .chip { display: inline-block; width: auto; margin: 0; background: #fff; padding: 6px 12px; }
.bo-top-user { display: inline-flex; align-items: center; gap: 8px; font-size: 13.5px; }
@media (max-width: 760px) { .bo-top-user .muted { display: none; } }

/* Cadre : navigation latérale + contenu */
.bo { display: grid; grid-template-columns: 1fr; gap: 20px; align-items: start; }
@media (min-width: 1080px) { .bo { grid-template-columns: 258px minmax(0, 1fr); } .bo-nav { position: sticky; top: 84px; } }
.bo-nav { background: #fff; border-radius: 20px; padding: 14px; box-shadow: var(--shadow-soft); display: none; }
@media (min-width: 1080px) { .bo-nav { display: block; } }
.bo-user { display: flex; gap: 10px; align-items: center; padding: 8px 8px 14px; margin-bottom: 10px; border-bottom: 1px solid #E6ECF0; }
.bo-user b { display: block; font-size: 14px; } .bo-user small { display: block; color: var(--text-3); font-size: 12px; }
.bo-user .bo-agence { display: flex; align-items: center; gap: 4px; color: var(--ora-blue-grey); }
.bo-avatar { flex: none; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: 14px; color: #fff; background: linear-gradient(135deg, var(--ora-primary), var(--ora-blue)); }
.bo-avatar.sm { width: 36px; height: 36px; font-size: 13px; background: linear-gradient(135deg, var(--ora-blue), var(--ora-steel)); }
.bo-avatar.xs { width: 28px; height: 28px; font-size: 11px; }
.bo-nav .nav-title { margin: 12px 8px 6px; font-size: 11px; }
.bo-nav-item { display: flex; align-items: center; gap: 10px; width: 100%; border: 0; background: none; padding: 10px 12px; border-radius: 10px; font: inherit; font-size: 13.5px; color: var(--text-2); cursor: pointer; text-align: left; transition: background .15s, color .15s; }
.bo-nav-item:hover { background: #E3EEF4; color: #1F4E5F; }
.bo-nav-item.on { background: var(--ora-blue-soft); color: #0D2B36; font-weight: 700; box-shadow: inset 3px 0 0 var(--ora-blue); }
.bo-nav-item:focus-visible { box-shadow: var(--focus); outline: none; }
.bn-ic { width: 28px; height: 28px; border-radius: 9px; display: grid; place-items: center; background: var(--ora-tint); color: var(--ora-primary); flex: none; }
.bo-nav-item.on .bn-ic { background: #fff; color: var(--ora-blue); }
.bn-l { flex: 1; }
.bn-n { min-width: 24px; padding: 1px 8px; border-radius: var(--r-pill); background: #EEF3F7; font-size: 12px; font-weight: 700; text-align: center; color: var(--text-2); }
.bo-nav-item.on .bn-n { background: #fff; color: #0D2B36; }
.bo-help { margin-top: 16px; }
.bo-main { min-width: 0; }

/* Bandeau photo */
.bo-banner { margin-top: 0; background-image: url('https://images.unsplash.com/photo-1758519290803-f2b25952a5d7?w=1600&q=70&auto=format&fit=crop'); background-position: right 30%; min-height: 128px; }
.bo-banner .fh-sub { gap: 6px; }
.bo-banner .pill { background: rgba(255, 255, 255, .92); }
.bo-sub-meta { display: inline-flex; align-items: center; gap: 4px; margin-left: 4px; color: #E2EDF2; }
.bo-cta { flex: none; background: #fff; color: var(--ora-primary-deep); border: 0; font-weight: 700; box-shadow: 0 6px 18px rgba(0, 0, 0, .18); }
.bo-cta:hover { background: var(--ora-blue-soft); }
@media (max-width: 700px) { .bo-banner { flex-wrap: wrap; } }

/* Indicateurs */
.bo-kpis { grid-template-columns: repeat(4, 1fr); gap: 12px; }
@media (max-width: 760px) { .bo-kpis { grid-template-columns: 1fr 1fr; } .bo-kpis .kpi:first-child { grid-column: auto; } }
.bo-kpi { border: 1.5px solid transparent; font: inherit; text-align: left; cursor: pointer; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 12px; align-items: center; padding: 16px; transition: transform .15s, border-color .15s, box-shadow .15s; }
.bo-kpi:hover { transform: translateY(-2px); box-shadow: 0 10px 26px rgba(13, 43, 54, .1); }
.bo-kpi.on { border-color: var(--ora-blue); background: #F5FAFD; }
.bo-kpi .bk-ic { grid-row: 1 / span 2; width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; }
.bo-kpi b { font-size: 26px; line-height: 1.05; font-weight: 800; }
.bo-kpi small { font-size: 12.5px; }
.t-warn .bk-ic { background: #FFF2DC; color: #9A5B00; }
.t-info .bk-ic { background: var(--info-bg); color: var(--info); }
.t-mauve .bk-ic { background: #F1E9EE; color: var(--ora-mauve); }
.t-ok .bk-ic { background: var(--ok-bg); color: var(--ok); }

/* Recherche */
.bo-search { background: #fff; border-radius: 20px; padding: 16px 18px; box-shadow: var(--shadow-soft); margin-bottom: 14px; }
.bo-search label { display: block; font-size: 13px; font-weight: 700; margin-bottom: 8px; }
.bo-search-row { display: flex; align-items: center; gap: 8px; background: var(--field-bg); border-radius: 14px; padding: 4px 4px 4px 14px; border: 1.5px solid transparent; }
.bo-search-row:focus-within { background: #fff; border-color: var(--ora-accent); box-shadow: 0 0 0 4px rgba(46, 177, 53, .15); }
.bo-search-row input { flex: 1; min-width: 0; border: 0; background: transparent; padding: 10px 0; font-size: 15px; box-shadow: none; }
.bo-search-row input:focus { outline: none; box-shadow: none; }
.bs-ic { color: var(--text-3); display: grid; }

/* Liste des dossiers */
.bo-list-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; flex-wrap: wrap; }
.bo-list-head h2 { margin: 0; }
.bo-filter { margin-left: 4px; padding: 2px 10px; border-radius: var(--r-pill); background: var(--ora-blue-soft); color: #0D2B36; font-size: 12.5px; font-weight: 700; }
.bo-rows { display: grid; gap: 8px; }
.bo-row { display: grid; grid-template-columns: auto minmax(160px, 1.4fr) 1fr auto 1.2fr auto auto; gap: 14px; align-items: center; width: 100%; border: 1.5px solid #E6ECF0; background: #fff; border-radius: 16px; padding: 12px 14px; font: inherit; text-align: left; cursor: pointer; transition: border-color .15s, background .15s, transform .15s; }
.bo-row:hover { border-color: var(--ora-steel); background: #F5FAFD; transform: translateX(2px); }
.bo-row:focus-visible { box-shadow: var(--focus); outline: none; }
.br-main { display: flex; flex-direction: column; min-width: 0; } .br-main b { font-size: 14.5px; } .br-main small { color: var(--text-3); font-size: 12px; }
.br-prof { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--text-2); }
.br-risk { display: flex; flex-wrap: wrap; gap: 4px; }
.br-date { font-size: 12.5px; color: var(--text-3); white-space: nowrap; }
.br-go { color: var(--ora-blue); display: grid; }
@media (max-width: 1100px) { .bo-row { grid-template-columns: auto 1fr auto auto; } .br-prof, .br-date { display: none; } .br-risk { grid-column: 2 / -1; } }
.bo-empty { display: grid; justify-items: center; text-align: center; gap: 6px; padding: 28px 12px; color: var(--ora-blue-grey); }
.bo-empty b { color: var(--text); }

/* Invitation */
.bo-invite { max-width: 680px; }
.bo-inv-grid { display: grid; grid-template-columns: auto 1fr; gap: 18px; align-items: start; margin: 12px 0 16px; }
.bo-qr { display: grid; justify-items: center; gap: 6px; padding: 12px; border-radius: 16px; background: #EEF3F7; } .bo-qr img { width: 168px; height: 168px; border-radius: 8px; background: #fff; } .bo-qr small { color: var(--text-3); }
@media (max-width: 600px) { .bo-inv-grid { grid-template-columns: 1fr; } }

/* Dossier */
.bo-back { margin-bottom: 10px; }
.bo .stepper.s9 { grid-template-columns: repeat(9, 1fr); }
.bo .stepper.s9 { padding: 14px 10px 12px; gap: 0; }
.bo .stepper.s9 li { flex-direction: column; text-align: center; gap: 6px; }
.bo .stepper.s9 li:not(:last-child)::after { position: absolute; top: 15px; left: calc(50% + 20px); right: calc(-50% + 20px); min-width: 0; }
.bo .stepper.s9 .st-txt { align-items: center; }
.bo .stepper.s9 .st-txt b { font-size: 11.5px; }
.bo .stepper.s9 .st-txt small { display: block; font-size: 10.5px; }
@media (max-width: 900px) { .bo .stepper.s9 li:not(.cur) .st-txt { display: none; } }
.bo-dossier-grid { display: grid; grid-template-columns: 1fr; gap: 18px; align-items: start; }
@media (min-width: 1240px) { .bo-dossier-grid { grid-template-columns: minmax(0, 1fr) 330px; } .bo-dossier-grid .ag-side { position: sticky; top: 84px; } }
.bo-content { min-width: 0; }
.bo-tabs { display: flex; gap: 4px; flex-wrap: wrap; padding: 6px; background: #fff; border-radius: 16px; box-shadow: var(--shadow-soft); margin-bottom: 14px; }
.bo-tabs button { display: inline-flex; align-items: center; gap: 7px; border: 0; background: none; padding: 9px 14px; border-radius: 11px; font: inherit; font-size: 13.5px; color: var(--text-2); cursor: pointer; transition: background .15s, color .15s; }
.bo-tabs button:hover { background: #E3EEF4; color: #1F4E5F; }
.bo-tabs button.on { background: var(--ora-blue-soft); color: #0D2B36; font-weight: 700; }
.bo-tabs button:focus-visible { box-shadow: var(--focus); outline: none; }

/* Panneau des exigences */
.bo-checks { padding: 18px; }
.bo-ch-head { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.bo-ch-head h3 { margin: 0; font-size: 16px; } .bo-ch-head small { color: var(--text-3); font-size: 12px; }
.bo-checks .mini-bar { margin-bottom: 10px; width: 100%; height: 6px; }
.bo-checks .small { font-size: 12.5px; }
.bo-checks .checklist li { padding: 7px 0; font-size: 13px; }
.bo-ch-actions { display: grid; gap: 8px; margin-top: 14px; }
.bo-reject summary { cursor: pointer; font-size: 13px; color: var(--err); font-weight: 600; padding: 6px 0; }
.rc-ic { width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center; background: var(--ora-tint); color: var(--ora-primary); flex: none; }

/* Étapes de traitement */
.wf { display: grid; gap: 12px; }
.bo-step { background: #fff; border: 1.5px solid #E6ECF0; border-radius: 18px; padding: 18px; box-shadow: none; }
.bo-step header { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 8px; }
.bo-step h3 { display: flex; align-items: center; gap: 12px; margin: 0; font-size: 15.5px; }
.bo-step h3 small { display: block; font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--ora-blue-grey); }
.bo-step header h3 .n { width: 36px; height: 36px; border-radius: 12px; display: grid; place-items: center; background: var(--ora-tint); color: var(--ora-primary); flex: none; }
.bo-step.done { border-color: #B8DEC6; background: #F4FAF6; }
.bo-step.done header h3 .n { background: var(--ora-primary); color: #fff; }
.wf-step.bo-step.locked { opacity: .62; }
.bo-step:not(.done):not(.locked) { border-color: var(--ora-steel); box-shadow: 0 8px 22px rgba(13, 43, 54, .07); }
.bo-step:not(.done):not(.locked) header h3 .n { background: var(--ora-blue-soft); color: #0D2B36; }
.bo-step > p { margin: 0 0 10px 48px; font-size: 13.5px; }
.bo-step > .btn, .bo-step > .inline-form, .bo-step > .alert, .bo-step > .bo-checks-grid { margin-left: 48px; }
@media (max-width: 600px) { .bo-step > p, .bo-step > .btn, .bo-step > .inline-form, .bo-step > .alert, .bo-step > .bo-checks-grid { margin-left: 0; } }
.bo-checks-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 8px; }
.bo-checks-grid .check { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border-radius: 12px; background: var(--field-bg); font-size: 13px; cursor: pointer; }
.bo-checks-grid .check:has(input:checked) { background: var(--ok-bg); }

/* Données KYC */
.bo-blocks { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 12px; align-items: start; }
@media (max-width: 520px) { .bo-blocks { grid-template-columns: 1fr; } }
.bo-kv { display: grid; }
.bo-kv-row { display: grid; grid-template-columns: minmax(110px, 40%) 1fr auto; gap: 8px 12px; align-items: center; padding: 8px 0; border-top: 1px solid #EEF2F5; font-size: 13.5px; }
.bo-kv-row:first-child { border-top: 0; }
.bo-kv-row .kv-l { color: var(--text-3); }
.bo-kv-row .kv-v { overflow-wrap: anywhere; }
.bo-kv-row .inline-form { grid-column: 1 / -1; }
@media (max-width: 520px) { .bo-kv-row { grid-template-columns: 1fr auto; } .bo-kv-row .kv-l { grid-column: 1 / -1; } }

/* Pièces / documents */
.bo-pieces .doc-card, .bo-main .doc-card { grid-template-columns: auto 1fr auto; }
.bo-main .doc-list { display: grid; gap: 10px; margin-top: 12px; }
.bo-motif { flex: 1; min-width: 220px; margin: 0; }
.bo-sig { display: flex; gap: 4px; flex-wrap: wrap; justify-content: flex-end; }

/* Piste d'audit */
.bo-audit { margin-top: 16px; }
.bo-audit .ts-dot { background: var(--ora-blue-soft); color: #0D2B36; }
.bo-audit .hash { color: var(--ora-blue-grey); font-size: 11.5px; }
.bo-audit li { padding-bottom: 14px; }
.bo-edit { width: 32px; height: 32px; min-height: 32px; padding: 0; justify-content: center; border-radius: 10px; color: var(--ora-blue); }
.bo-edit:hover { background: var(--ora-blue-soft); }
.bo-main .inline-form input { border: 1.5px solid transparent; background: var(--field-bg); border-radius: 10px; }
.bo-main .inline-form input:focus { background: #fff; border-color: var(--ora-accent); outline: none; }

/* Signature « Powered by People Input » — discrète */
.powered { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 14px 16px 18px; font-size: 11.5px; color: var(--text-3); letter-spacing: .02em; }
.powered img { height: 16px; width: auto; opacity: .78; transition: opacity .2s; }
.powered:hover img { opacity: 1; }
body:has(.actions) .powered { padding-bottom: 92px; }
.powered.in-panel { justify-content: flex-start; padding: 22px 0 0; }
