/* =====================================================================================================
   CONFORM'AREA — système de design v3 « Le Bureau de Conformité » : palette du logo AUDIT 404 CONSEILS, écrans E01 à E48
   ===================================================================================================== */
:root {
  --navy: #0B1D4F; --navy-2: #13295E; --silver: #C7CDD6; --gold: #C9A46A; --gold-2: #E2C48E; --ink: #0F1C3F; --ink-2: #334155; --muted: #64748B; --muted-2: #94A3B8;
  --line: #E5E9F0; --line-2: #EEF1F6; --bg: #F3F5F9; --card: #FFFFFF;
  --blue: #1550D2; --blue-2: #2A63E0; --blue-soft: #E9F0FD; --blue-ink: #1446B8;
  --green: #16A34A; --green-btn: #18B66A; --green-soft: #DCFCE7; --green-ink: #15803D;
  --amber: #D97706; --amber-soft: #FEF3C7; --amber-ink: #B45309; --orange: #F59E0B;
  --red: #E31B23; --red-soft: #FDE4E5; --red-ink: #B4151B;
  --side-w: 232px; --top-h: 60px; --radius: 12px;
  --shadow: 0 1px 2px rgba(15,33,71,.05), 0 4px 14px rgba(15,33,71,.05);
  --font: "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body { font: 13px/1.5 var(--font); color: var(--ink); background: var(--bg); -webkit-font-smoothing: antialiased; }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { margin: 0; color: var(--ink); }
p { margin: 0 0 8px; }
.ic { flex-shrink: 0; vertical-align: -3px; }
.muted { color: var(--muted); } .small { font-size: 11px; } .bold { font-weight: 700; }
.mono { font-family: Consolas, "DejaVu Sans Mono", monospace; font-size: 11.5px; }
.red { color: var(--red); } .green { color: var(--green); } .amber { color: var(--amber); } .blue { color: var(--blue); }
.hidden { display: none !important; }
.nowrap { white-space: nowrap; }
.right { text-align: right; } .center { text-align: center; }
.mt8 { margin-top: 8px; } .mt12 { margin-top: 12px; } .mt16 { margin-top: 16px; } .mb0 { margin-bottom: 0; }
.flex { display: flex; align-items: center; gap: 8px; } .flex-between { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.grow { flex: 1; }

/* ---------------- Barre latérale ---------------- */
.app { display: flex; min-height: 100vh; }
.side { width: var(--side-w); flex-shrink: 0; background: radial-gradient(120% 40% at 50% 0%, rgba(201,164,106,.16), transparent 60%), linear-gradient(180deg, #0E2153 0%, #0A1638 46%, #060D24 100%); color: #C9D6EC;
  position: fixed; inset: 0 auto 0 0; display: flex; flex-direction: column; z-index: 30; }
.side-brand { display: flex; align-items: center; gap: 10px; padding: 18px 18px 16px; border-bottom: 1px solid rgba(255,255,255,.08); margin: 0 12px; padding-left: 6px; }
.logo-shield { width: 30px; height: 34px; flex-shrink: 0; }
.side-brand .t1 { color: #fff; font-weight: 700; font-size: 16px; letter-spacing: .8px; line-height: 1.1; }
.side-brand .t2 { color: #9FB3D6; font-size: 8.5px; letter-spacing: .6px; }
.side-nav { flex: 1; overflow-y: auto; padding: 8px 12px; }
.side-nav .grp { font-size: 9.5px; letter-spacing: 1.4px; text-transform: uppercase; color: #7F93B8; padding: 16px 8px 6px; }
.side-nav a { display: flex; align-items: center; gap: 11px; padding: 8px 12px; margin-bottom: 3px; border-radius: 8px; color: #D5DFEF; font-size: 12px; line-height: 1.25; }
.side-nav a:hover { background: rgba(255,255,255,.06); text-decoration: none; color: #fff; }
.side-nav a.active { background: var(--blue-2); color: #fff; box-shadow: 0 6px 16px rgba(21,80,210,.35); }
.side-nav a.locked { color: #6E82A6; }
.side-nav a .ic { width: 16px; height: 16px; opacity: .95; }
.side-nav a .lk { margin-left: auto; opacity: .75; }
.side-nav a .count { margin-left: auto; background: #E31B23; color: #fff; font-size: 9.5px; font-weight: 700; min-width: 18px; height: 16px; border-radius: 9px; display: inline-flex; align-items: center; justify-content: center; padding: 0 5px; }
.side-foot { margin: 0 12px; border-top: 1px solid rgba(255,255,255,.08); padding: 12px 6px 14px; font-size: 9.5px; color: #7F93B8; line-height: 1.45; }

/* ---------------- Barre supérieure ---------------- */
.main { margin-left: var(--side-w); flex: 1; min-width: 0; display: flex; flex-direction: column; min-height: 100vh; }
.top { height: var(--top-h); background: #fff; border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: 12px; padding: 0 24px; position: sticky; top: 0; z-index: 20; }
.search { display: flex; align-items: center; gap: 8px; width: 400px; max-width: 40vw; height: 36px; border: 1px solid var(--line); border-radius: 9px; padding: 0 10px 0 16px; color: var(--muted); background: #fff; cursor: text; }
.search input { border: 0; outline: 0; flex: 1; font: inherit; color: var(--ink); background: transparent; min-width: 0; }
.kbd { border: 1px solid var(--line); border-radius: 5px; padding: 0 5px; font-size: 9.5px; color: var(--muted); white-space: nowrap; }
.top-right { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.org-chip { display: flex; align-items: center; gap: 10px; height: 36px; padding: 0 12px 0 8px; border: 1px solid var(--line); border-radius: 9px; font-size: 12px; color: var(--ink); background: #fff; }
.org-chip .sg { background: #EEF2F7; border-radius: 5px; font-size: 8.5px; font-weight: 700; padding: 3px 5px; color: var(--ink-2); }
.icon-btn { position: relative; width: 36px; height: 36px; border: 1px solid var(--line); border-radius: 9px; display: inline-flex; align-items: center; justify-content: center; color: var(--ink-2); background: #fff; cursor: pointer; }
.icon-btn:hover { background: #F8FAFC; text-decoration: none; }
.icon-btn .dotc { position: absolute; top: -5px; right: -5px; background: #E31B23; color: #fff; border-radius: 9px; font-size: 8.5px; font-weight: 700; min-width: 15px; height: 15px; display: flex; align-items: center; justify-content: center; padding: 0 4px; border: 2px solid #fff; }
.me { display: flex; align-items: center; gap: 10px; cursor: pointer; position: relative; padding: 2px 4px; }
.avatar { width: 36px; height: 36px; border-radius: 50%; background: linear-gradient(135deg, #2563EB, #1E3A8A); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-weight: 700; font-size: 12px; flex-shrink: 0; }
.avatar.sm { width: 28px; height: 28px; font-size: 10px; } .avatar.lg { width: 46px; height: 46px; font-size: 15px; }
.me .n1 { font-weight: 700; font-size: 12px; line-height: 1.1; } .me .n2 { font-size: 10px; color: var(--muted); }
.dropdown { position: absolute; right: 0; top: calc(100% + 8px); background: #fff; border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 12px 32px rgba(15,33,71,.16); min-width: 250px; padding: 8px; z-index: 50; }
.dropdown .hd { padding: 6px 10px 10px; border-bottom: 1px solid var(--line); margin-bottom: 6px; }
.dropdown a, .dropdown button { display: flex; align-items: center; gap: 10px; width: 100%; padding: 8px 10px; border-radius: 7px; color: var(--ink); background: none; border: 0; font: inherit; cursor: pointer; text-align: left; }
.dropdown a:hover, .dropdown button:hover { background: #F3F6FB; text-decoration: none; }
.dropdown .danger { color: var(--red); }

details.rowmenu { position: relative; display: inline-block; }
details.rowmenu > summary { list-style: none; cursor: pointer; }
details.rowmenu > summary::-webkit-details-marker { display: none; }
details.rowmenu .dropdown { text-align: left; z-index: 60; }
details.rowmenu form { margin: 0; }

/* ---------------- Contenu ---------------- */
.content { padding: 20px 24px 32px; flex: 1; }
.crumbs { font-size: 11px; color: var(--muted); display: flex; align-items: center; gap: 6px; margin-bottom: 8px; }
.crumbs a { color: var(--muted); } .crumbs .cur { color: var(--ink); }
.page-head { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; min-height: 34px; flex-wrap: wrap; }
.page-head h1 { font-size: 21px; font-weight: 700; letter-spacing: .1px; }
.page-head .meta { font-size: 10px; font-weight: 700; color: var(--ink-2); }
.page-head .actions { margin-left: auto; display: flex; gap: 8px; flex-wrap: wrap; }
.status-bar { display: flex; align-items: center; gap: 16px; padding: 10px 24px; border-top: 1px solid var(--line); background: #fff; font-size: 10.5px; color: var(--muted); }
.status-bar .okdot { color: var(--green); } .status-bar .okdot::before { content: "●"; margin-right: 4px; }
.status-bar .links { margin-left: auto; display: flex; gap: 16px; } .status-bar .links a { color: var(--muted); }

/* ---------------- Boutons ---------------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 34px; padding: 0 16px; border-radius: 8px; border: 1px solid var(--line); background: #fff; color: var(--ink); font: 12.5px var(--font); cursor: pointer; white-space: nowrap; text-decoration: none; }
.btn:hover { background: #F8FAFC; text-decoration: none; }
.btn.primary { background: linear-gradient(180deg, #2A63E0, #1550D2); border-color: #1550D2; color: #fff; box-shadow: 0 4px 12px rgba(21,80,210,.28); }
.btn.primary:hover { filter: brightness(1.05); }
.btn.green { background: var(--green-btn); border-color: var(--green-btn); color: #fff; }
.btn.danger-outline { color: var(--red); border-color: #FCA5A5; }
.btn.danger { background: var(--red); border-color: var(--red); color: #fff; }
.btn.ghost { border-color: transparent; background: transparent; }
.btn.sm { height: 28px; padding: 0 10px; font-size: 11.5px; }
.btn.lg { height: 42px; font-size: 13.5px; }
.btn.block { width: 100%; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
.link-btn { background: none; border: 0; color: var(--blue); font: inherit; cursor: pointer; padding: 0; }
form.inline { display: inline; }

/* ---------------- Cartes ---------------- */
.card { background: var(--card); border: 1px solid var(--line-2); border-radius: var(--radius); box-shadow: var(--shadow); padding: 16px 18px; }
.card + .card { margin-top: 0; }
.card-h { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; }
.card-h h2, .card-h h3 { font-size: 14px; font-weight: 700; display: flex; align-items: center; gap: 8px; }
.card-h .more { margin-left: auto; font-size: 11px; }
.grid { display: grid; gap: 16px; margin-bottom: 16px; }
.g2 { grid-template-columns: repeat(2, minmax(0,1fr)); } .g3 { grid-template-columns: repeat(3, minmax(0,1fr)); }
.g4 { grid-template-columns: repeat(4, minmax(0,1fr)); } .g5 { grid-template-columns: repeat(5, minmax(0,1fr)); }
.g-21 { grid-template-columns: minmax(0,2fr) minmax(0,1fr); } .g-12 { grid-template-columns: minmax(0,1fr) minmax(0,2fr); }
.g-311 { grid-template-columns: minmax(0,1.6fr) minmax(0,1.05fr) minmax(0,1fr); }
.g-wiz { grid-template-columns: 210px minmax(0,1fr) 300px; align-items: start; }
.g-side { grid-template-columns: minmax(0,1fr) 300px; align-items: start; }
.stack > * + * { margin-top: 16px; }
.kpi { position: relative; min-height: 104px; }
.kpi .lbl { font-size: 11.5px; color: var(--ink-2); }
.kpi .val { font-size: 28px; font-weight: 700; line-height: 1.25; margin-top: 6px; color: var(--ink); }
.kpi .val.red { color: var(--red); } .kpi .val.amber { color: var(--orange); }
.kpi .sub { font-size: 11px; color: var(--ink-2); margin-top: 2px; }
.kpi .kico { position: absolute; top: 14px; right: 14px; width: 34px; height: 34px; border-radius: 50%; display: flex; align-items: center; justify-content: center; }
.kico.blue { background: var(--blue-soft); color: var(--blue); } .kico.gray { background: #EEF1F5; color: var(--ink-2); }
.kico.amber { background: #FEF3E2; color: var(--orange); } .kico.red { background: #FDECEC; color: #E31B23; }
.up { color: var(--green); } .down { color: var(--red); }

/* ---------------- Pastilles ---------------- */
.pill { display: inline-flex; align-items: center; gap: 4px; padding: 2px 9px; border-radius: 6px; font-size: 10.5px; font-weight: 700; white-space: nowrap; background: #EEF1F5; color: var(--ink-2); line-height: 1.5; }
.pill.ok { background: var(--green-soft); color: var(--green-ink); }
.pill.warn { background: var(--amber-soft); color: var(--amber-ink); }
.pill.high { background: #FFEDD5; color: #C2410C; }
.pill.crit { background: var(--red-soft); color: var(--red-ink); }
.pill.info { background: var(--blue-soft); color: var(--blue-ink); }
.pill.dark { background: var(--navy); color: #fff; }
.pill.muted { background: #F1F4F8; color: var(--muted); }
.tag { display: inline-block; font-size: 10px; font-weight: 700; color: var(--ink-2); background: #EEF1F5; border-radius: 5px; padding: 2px 7px; }
.chip { display: inline-flex; align-items: center; gap: 6px; border-radius: 6px; background: #EEF2F7; padding: 3px 10px; font-size: 11px; font-weight: 700; color: var(--ink-2); cursor: pointer; border: 1px solid transparent; }
.chip.on { background: var(--blue-soft); color: var(--blue-ink); }
.chip.on::before { content: "●"; font-size: 9px; }
.chip.on.red-on { background: var(--red-soft); color: var(--red-ink); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chips input { display: none; }
.chips label { margin: 0; }
.chips input:checked + .chip { background: var(--blue-soft); color: var(--blue-ink); }
.chips input:checked + .chip::before { content: "●"; font-size: 9px; }
.chips.red input:checked + .chip { background: var(--red-soft); color: var(--red-ink); }

/* ---------------- Alertes ---------------- */
.alert { display: flex; gap: 10px; align-items: flex-start; padding: 10px 14px; border-radius: 10px; border: 1px solid; font-size: 11.5px; margin-bottom: 16px; }
.alert .ic { margin-top: 2px; }
.alert.info { background: #EFF6FF; border-color: #BFDBFE; color: var(--blue-ink); }
.alert.warn { background: #FFFBEB; border-color: #FDE68A; color: var(--amber-ink); }
.alert.error { background: #FEF2F2; border-color: #FECACA; color: var(--red-ink); }
.alert.ok { background: #F0FDF4; border-color: #BBF7D0; color: var(--green-ink); }
.alert a { color: inherit; text-decoration: underline; }
.alert.compact { margin: 0; }

/* ---------------- Tableaux ---------------- */
.tbl-card { padding: 0; overflow: hidden; }
.tbl-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th { text-align: left; font-size: 10px; letter-spacing: 1.1px; text-transform: uppercase; color: var(--ink-2); font-weight: 700; padding: 10px 12px; background: #F6F8FB; border-bottom: 1px solid var(--line); white-space: nowrap; }
td { padding: 10px 12px; border-bottom: 1px solid var(--line-2); vertical-align: middle; font-size: 12px; }
tr:last-child td { border-bottom: 0; }
tbody tr:hover td { background: #FAFCFF; }
td.strong, .strong { font-weight: 700; }
.tbl-foot { display: flex; justify-content: space-between; align-items: center; padding: 10px 14px; font-size: 11.5px; color: var(--ink-2); border-top: 1px solid var(--line-2); }
.card table th { background: #F6F8FB; }
.inner-tbl th { background: #F6F8FB; }
.ref { font-weight: 700; color: var(--blue); }
.empty { text-align: center; color: var(--muted); padding: 28px 12px; }

/* ---------------- Onglets et filtres ---------------- */
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin: -4px 0 16px; overflow-x: auto; }
.tabs a { padding: 10px 14px; color: var(--ink-2); font-size: 12.5px; border-bottom: 2px solid transparent; white-space: nowrap; }
.tabs a.on { color: var(--blue); border-bottom-color: var(--blue); font-weight: 700; }
.tabs a:hover { text-decoration: none; color: var(--blue); }
.filters { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-bottom: 14px; }
.fsearch { display: flex; align-items: center; gap: 8px; height: 34px; border: 1px solid var(--line); border-radius: 9px; padding: 0 12px; background: #fff; min-width: 300px; color: var(--muted); }
.fsearch input { border: 0; outline: 0; flex: 1; font: inherit; background: transparent; color: var(--ink); }
.fsel { position: relative; }
.fsel select { appearance: none; -webkit-appearance: none; height: 34px; border: 1px solid var(--line); border-radius: 9px; padding: 0 30px 0 14px; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23334155' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 10px center; font: inherit; color: var(--ink); cursor: pointer; }
.ftoggle { display: inline-flex; align-items: center; gap: 6px; height: 34px; border: 1px solid var(--line); border-radius: 9px; padding: 0 14px; background: #fff; color: var(--ink); cursor: pointer; }
.ftoggle.on { background: var(--blue-soft); border-color: #BFDBFE; color: var(--blue-ink); }
.ftoggle:hover { text-decoration: none; }

/* ---------------- Formulaires ---------------- */
.field { margin-bottom: 14px; }
.field > label, .lbl-q { display: block; font-weight: 700; font-size: 12px; margin-bottom: 6px; color: var(--ink); }
.req { color: var(--red); }
.help { font-size: 11px; color: var(--muted); margin-top: 4px; }
.warn-text { font-size: 11px; color: var(--amber); margin-top: 5px; }
.err-text { font-size: 11px; color: var(--red); margin-top: 5px; }
input[type=text], input[type=email], input[type=password], input[type=number], input[type=date], input[type=search], input[type=month], select, textarea {
  width: 100%; height: 38px; padding: 0 12px; border: 1px solid #D5DCE6; border-radius: 9px; font: 12.5px var(--font); color: var(--ink); background: #fff; }
textarea { height: auto; min-height: 64px; padding: 10px 12px; resize: vertical; line-height: 1.45; }
select { appearance: none; -webkit-appearance: none; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23334155' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 14px center; padding-right: 34px; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(21,80,210,.15); }
input.invalid, select.invalid { border-color: #F87171; box-shadow: 0 0 0 3px rgba(239,68,68,.12); }
.input-ic { position: relative; }
.input-ic > .ic { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); color: var(--ink-2); }
.input-ic input { padding-left: 38px; }
.input-ic .tail { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); background: none; border: 0; color: var(--ink-2); cursor: pointer; padding: 0; }
.check { display: flex; gap: 8px; align-items: center; font-weight: 400; cursor: pointer; }
.check input { width: 16px; height: 16px; accent-color: var(--blue); }
.switch { position: relative; display: inline-block; width: 38px; height: 22px; }
.switch input { display: none; }
.switch span { position: absolute; inset: 0; background: #CBD5E1; border-radius: 22px; cursor: pointer; transition: .15s; }
.switch span::after { content: ""; position: absolute; width: 16px; height: 16px; left: 3px; top: 3px; background: #fff; border-radius: 50%; transition: .15s; }
.switch input:checked + span { background: var(--blue); }
.switch input:checked + span::after { transform: translateX(16px); }
.dropzone { border: 2px dashed #9CC3F5; border-radius: 12px; background: #F5F9FF; text-align: center; padding: 22px; color: var(--blue); cursor: pointer; display: block; }
.dropzone input { display: none; }
.dropzone .sub { color: var(--muted); font-size: 11px; }
.form-actions { display: flex; gap: 10px; align-items: center; margin-top: 18px; }
.form-actions .push { margin-left: auto; }

/* ---------------- Assistant (stepper vertical) ---------------- */
.steps-v .prog { font-size: 11px; color: var(--ink-2); margin-bottom: 8px; }
.bar { height: 6px; background: #E8EDF3; border-radius: 6px; overflow: hidden; }
.bar > span { display: block; height: 100%; background: var(--blue); border-radius: 6px; }
.bar.green > span { background: var(--green); } .bar.amber > span { background: var(--orange); } .bar.red > span { background: var(--red); } .bar.navy > span { background: var(--navy); }
.bar.thick { height: 9px; }
.steps-v ul { list-style: none; padding: 0; margin: 14px 0 0; }
.steps-v li a, .steps-v li span.s { display: flex; align-items: center; gap: 12px; padding: 9px 10px; border-radius: 8px; color: var(--ink); }
.steps-v li a:hover { background: #F5F8FC; text-decoration: none; }
.steps-v li.on a { background: var(--blue-soft); color: var(--blue); font-weight: 700; }
.sdot { width: 22px; height: 22px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: 10px; font-weight: 700; background: #F1F4F8; color: var(--muted); flex-shrink: 0; }
.sdot.done { background: var(--green); color: #fff; } .sdot.on { background: var(--blue); color: #fff; }
.q-section { font-size: 11px; letter-spacing: 1.6px; font-weight: 700; color: var(--blue); text-transform: uppercase; }
.q-title { font-size: 16px; font-weight: 700; margin: 4px 0 14px; }
.q-code { font-weight: 700; }

/* ---------------- Stepper horizontal (circuit de validation) ---------------- */
.hsteps { display: flex; justify-content: space-around; padding: 6px 10px; }
.hsteps .st { text-align: center; flex: 1; }
.hsteps .st .c { width: 32px; height: 32px; border-radius: 50%; margin: 0 auto 6px; display: flex; align-items: center; justify-content: center; font-weight: 700; background: #F1F4F8; color: var(--muted-2); }
.hsteps .st.done .c { background: var(--green); color: #fff; }
.hsteps .st.on .c { background: var(--blue); color: #fff; box-shadow: 0 0 0 5px var(--blue-soft); }
.hsteps .st .n { font-size: 11.5px; color: var(--muted-2); }
.hsteps .st.done .n { color: var(--ink); } .hsteps .st.on .n { color: var(--blue); font-weight: 700; }
.hsteps .st .d { font-size: 10px; color: var(--muted-2); }
.bandsteps { display: flex; gap: 8px; margin-bottom: 16px; }
.bandsteps .b { flex: 1; text-align: center; padding: 7px; border-radius: 6px; font-size: 11.5px; background: #F3F5F8; color: var(--ink-2); }
.bandsteps .b.done { background: var(--green-btn); color: #fff; } .bandsteps .b.on { background: var(--blue-2); color: #fff; font-weight: 700; }
.progress-segs { display: flex; gap: 6px; } .progress-segs span { flex: 1; height: 4px; border-radius: 3px; background: #E2E8F0; }
.progress-segs span.done { background: var(--green); } .progress-segs span.on { background: var(--blue); }

/* ---------------- Matrices de chaleur ---------------- */
.heat { display: grid; grid-template-columns: repeat(5, 1fr); gap: 4px; }
.heat .c { height: 22px; border-radius: 3px; display: flex; align-items: center; justify-content: center; font-size: 9.5px; color: rgba(15,28,63,.55); font-weight: 600; }
.heat.big .c { height: 58px; border-radius: 6px; font-size: 15px; color: var(--ink); font-weight: 700; }
.heat.mid .c { height: 42px; border-radius: 5px; }
.h1 { background: #BBF7D0; } .h2 { background: #FDE68A; } .h3 { background: #FDBA74; } .h4 { background: #FCA5A5; } .h5 { background: #EF4444; color: #fff !important; }
.heat a.c:hover { outline: 2px solid var(--blue); text-decoration: none; }
.heat-wrap { display: flex; gap: 8px; }
.heat-wrap .yax { writing-mode: vertical-rl; transform: rotate(180deg); font-size: 10.5px; color: var(--muted); text-align: center; }
.heat-axes { display: flex; justify-content: space-between; font-size: 10px; color: var(--muted); margin-top: 6px; }
.heat .c .mk { width: 24px; height: 24px; border-radius: 50%; color: #fff; font-size: 10px; font-weight: 700; display: flex; align-items: center; justify-content: center; border: 2px solid #fff; }
.mk.i { background: #DC2626; } .mk.r { background: #F59E0B; }

/* ---------------- Graphiques ---------------- */
.chart svg { width: 100%; height: auto; display: block; }
.chart .gridl { stroke: #EEF1F5; } .chart .axis { fill: var(--muted); font-size: 10px; }
.hbar { display: grid; grid-template-columns: 1fr 1.1fr 46px; gap: 12px; align-items: center; margin-bottom: 9px; }
.hbar .bar { height: 10px; }
.hbar .v { font-weight: 700; text-align: right; }

/* ---------------- Listes ---------------- */
.list-row { display: flex; align-items: center; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--line-2); }
.list-row:last-child { border-bottom: 0; }
.jtag { font-size: 10px; font-weight: 700; border-radius: 6px; padding: 2px 7px; }
.jtag.r { background: var(--red-soft); color: var(--red-ink); } .jtag.a { background: var(--amber-soft); color: var(--amber-ink); } .jtag.b { background: var(--blue-soft); color: var(--blue-ink); }
.checklist { list-style: none; padding: 0; margin: 0; }
.checklist li { display: flex; gap: 8px; align-items: flex-start; padding: 5px 0; }
.checklist li .ic { margin-top: 2px; }
.checklist.sep li { border-bottom: 1px solid var(--line-2); padding: 8px 0; }
.checklist.sep li:last-child { border-bottom: 0; }
.ok-ic { color: var(--green); } .warn-ic { color: var(--orange); } .crit-ic { color: var(--red); } .muted-ic { color: var(--muted-2); }
.timeline { list-style: none; margin: 0; padding: 0; }
.timeline li { display: flex; gap: 12px; padding: 5px 0; }
.timeline .tdot { width: 12px; height: 12px; border-radius: 50%; margin-top: 4px; flex-shrink: 0; background: var(--green); }
.timeline .tdot.encours { background: var(--blue); } .timeline .tdot.avenir { background: #A3AEC2; }
.kv { width: 100%; } .kv td { padding: 9px 10px; } .kv td:first-child { color: var(--ink-2); width: 200px; }
.dl-lines div { padding: 3px 0; }

/* ---------------- Modales et tiroir ---------------- */
.overlay { position: fixed; inset: 0; background: rgba(15,23,42,.45); backdrop-filter: blur(3px); z-index: 80; display: flex; align-items: center; justify-content: center; }
.modal { background: #fff; border-radius: 16px; box-shadow: 0 24px 64px rgba(15,23,42,.3); width: 540px; max-width: calc(100vw - 32px); padding: 26px 26px 22px; position: relative; }
.modal h2 { font-size: 17px; margin: 14px 0 4px; }
.modal .mico { width: 46px; height: 46px; border-radius: 50%; display: flex; align-items: center; justify-content: center; }
.mico.green { background: #E8F8EE; color: var(--green); } .mico.red { background: #FDECEC; color: var(--red); } .mico.amber { background: #FEF6E4; color: var(--orange); } .mico.blue { background: var(--blue-soft); color: var(--blue); }
.modal .close { position: absolute; right: 18px; top: 18px; background: none; border: 0; cursor: pointer; color: var(--muted); }
.modal .foot { display: flex; justify-content: flex-end; gap: 10px; margin-top: 18px; }
.step-list { border: 1px solid var(--line); border-radius: 10px; overflow: hidden; margin: 14px 0; }
.step-list .row { display: flex; align-items: center; gap: 10px; padding: 11px 14px; border-bottom: 1px solid var(--line); }
.step-list .row:last-child { border-bottom: 0; }
.step-list .row.hl { background: #F2F7FF; font-weight: 700; }
.drawer { position: fixed; top: 0; right: 0; bottom: 0; width: 430px; max-width: 100vw; background: #fff; box-shadow: -12px 0 40px rgba(15,23,42,.18); z-index: 90; display: flex; flex-direction: column; }
.drawer .dh { display: flex; align-items: center; gap: 10px; padding: 16px 18px 6px; }
.drawer .dh h2 { font-size: 17px; }
.drawer .dtabs { display: flex; gap: 6px; padding: 0 12px; border-bottom: 1px solid var(--line); }
.drawer .dtabs button { background: none; border: 0; padding: 10px 10px; font: inherit; color: var(--ink-2); cursor: pointer; border-bottom: 2px solid transparent; }
.drawer .dtabs button.on { color: var(--blue); border-bottom-color: var(--blue); font-weight: 700; }
.drawer .dbody { flex: 1; overflow-y: auto; }
.drawer .dgrp { font-size: 9.5px; letter-spacing: 1.4px; text-transform: uppercase; color: var(--muted); padding: 14px 18px 6px; }
.notif { display: flex; gap: 12px; padding: 12px 18px; border-bottom: 1px solid var(--line-2); color: var(--ink); }
.notif.unread { background: #F7FAFE; }
.notif:hover { background: #F1F6FD; text-decoration: none; }
.notif .ni { width: 34px; height: 34px; border-radius: 50%; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.notif .nt { font-weight: 700; font-size: 12px; }
.notif .nb { font-size: 11.5px; color: var(--ink-2); }
.notif .nm { font-size: 10px; color: var(--muted); margin-top: 2px; }
.notif .ud { width: 8px; height: 8px; border-radius: 50%; background: var(--blue); margin-left: auto; margin-top: 6px; flex-shrink: 0; }
.drawer .dfoot { display: flex; justify-content: space-between; padding: 12px 18px; border-top: 1px solid var(--line); }
.palette { position: fixed; top: 80px; left: 50%; transform: translateX(-50%); width: 640px; max-width: calc(100vw - 32px); background: #fff; border-radius: 14px; box-shadow: 0 24px 64px rgba(15,23,42,.3); z-index: 95; overflow: hidden; }
.palette input { border: 0; border-bottom: 1px solid var(--line); border-radius: 0; height: 52px; font-size: 14px; padding: 0 18px; }
.palette input:focus { box-shadow: none; }
.palette .res { max-height: 420px; overflow-y: auto; }
.palette .res a { display: flex; gap: 10px; align-items: center; padding: 10px 18px; color: var(--ink); border-bottom: 1px solid var(--line-2); }
.palette .res a:hover, .palette .res a.sel { background: #F2F7FF; text-decoration: none; }
.palette .res .ty { margin-left: auto; font-size: 10px; color: var(--muted); }

/* ---------------- Pages publiques (deux panneaux) ---------------- */
.pub { display: grid; grid-template-columns: 44.5% 55.5%; min-height: 100vh; background: #fff; }
.pub-hero { position: relative; overflow: hidden; color: #fff; padding: 52px 54px 34px; display: flex; flex-direction: column;
  background: radial-gradient(ellipse 70% 45% at 22% 8%, #1F67E8 0%, rgba(31,103,232,0) 70%), linear-gradient(180deg, #154397 0%, #0C2A63 38%, #081B42 70%, #06142F 100%); }
.pub-hero .brand { display: flex; align-items: center; gap: 12px; }
.pub-hero .brand .logo-shield { width: 34px; height: 40px; }
.pub-hero .brand .t1 { font-size: 18px; font-weight: 700; letter-spacing: .8px; }
.pub-hero .brand .t2 { font-size: 10px; color: #A9BDE0; }
.pub-hero .illu { flex: 1; display: flex; align-items: center; justify-content: center; min-height: 260px; }
.pub-hero .illu img { width: 82%; max-width: 560px; -webkit-mask-image: radial-gradient(ellipse 58% 62% at 50% 50%, #000 62%, transparent 100%); mask-image: radial-gradient(ellipse 58% 62% at 50% 50%, #000 62%, transparent 100%); }
.pub-hero h1 { color: #fff; font-size: 31px; line-height: 1.22; font-weight: 700; margin-bottom: 14px; }
.pub-hero .lead { color: #C7D3EA; font-size: 13px; line-height: 1.6; max-width: 470px; }
.pub-hero .feats { display: flex; gap: 22px; margin-top: 28px; font-size: 11px; color: #D7E1F2; flex-wrap: wrap; }
.pub-hero .feats span { display: inline-flex; align-items: center; gap: 6px; }
.pub-main { display: flex; flex-direction: column; padding: 40px 64px 24px; }
.pub-top { display: flex; justify-content: flex-end; align-items: center; gap: 14px; font-size: 12px; }
.lang { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--line); border-radius: 8px; padding: 6px 12px; color: var(--ink-2); }
.pub-body { flex: 1; display: flex; align-items: center; justify-content: center; }
.pub-box { width: 100%; max-width: 420px; }
.pub-box.wide { max-width: 480px; }
.pub-box h1 { font-size: 26px; font-weight: 700; color: #11295A; margin-bottom: 6px; }
.pub-box .lead { color: var(--ink-2); font-size: 13px; margin-bottom: 22px; line-height: 1.55; }
.pub-foot { text-align: center; font-size: 10.5px; color: var(--muted-2); }
.pub-foot a { color: var(--muted-2); }
.access-card { display: flex; align-items: center; gap: 16px; border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px; margin-bottom: 12px; color: var(--ink); background: #fff; box-shadow: var(--shadow); }
.access-card:hover { border-color: #BFDBFE; text-decoration: none; }
.access-card .ai { width: 46px; height: 46px; border-radius: 50%; color: #fff; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.access-card .at { font-weight: 700; font-size: 14px; } .access-card .ad { font-size: 11.5px; color: var(--ink-2); }
.access-card .ago { margin-left: auto; color: var(--blue); white-space: nowrap; }
.otp { display: flex; gap: 12px; } .otp input { width: 54px; height: 62px; text-align: center; font-size: 24px; font-weight: 700; padding: 0; border-radius: 10px; }
.or-sep { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 11px; margin: 14px 0; }
.or-sep::before, .or-sep::after { content: ""; flex: 1; border-top: 1px solid var(--line); }
.splash { min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; color: #fff;
  background: radial-gradient(ellipse 45% 40% at 50% 38%, #1E5BD0 0%, #12357F 45%, #091A3E 80%, #06122B 100%); }
.splash .logo-shield { width: 72px; height: 82px; }
.splash h1 { color: #fff; font-size: 38px; letter-spacing: 4px; margin: 20px 0 6px; }
.splash .lead { color: #9FB3D6; font-size: 14px; }
.splash .pb { width: 420px; margin-top: 40px; }
.splash .pb .bar { background: rgba(255,255,255,.15); height: 6px; }
.splash .pb .bar span { background: linear-gradient(90deg, #2A63E0, #6CA6FF); transition: width .4s; }
.splash ul { list-style: none; padding: 0; width: 420px; margin: 22px 0 0; color: #D7E1F2; font-size: 12.5px; }
.splash ul li { padding: 3px 0; display: flex; align-items: center; gap: 8px; }
.splash .sfoot { position: fixed; bottom: 18px; left: 40px; right: 40px; display: flex; justify-content: space-between; font-size: 11px; color: #7F93B8; }

/* ---------------- Composants métier ---------------- */
.opt-card { display: flex; flex-direction: column; }
.opt-ico { width: 46px; height: 46px; border-radius: 50%; display: flex; align-items: center; justify-content: center; margin-bottom: 16px; }
.opt-card h2 { font-size: 16px; margin-bottom: 10px; line-height: 1.3; }
.opt-card .desc { color: var(--ink-2); line-height: 1.6; }
.doc-preview { background: #EEF2F7; border-radius: 12px; padding: 18px; display: flex; gap: 14px; align-items: flex-start; justify-content: center; }
.paper { background: #fff; width: 250px; min-height: 330px; box-shadow: 0 6px 20px rgba(15,23,42,.12); padding: 26px 20px; position: relative; overflow: hidden; }
.paper .ln { height: 5px; background: #E8ECF2; border-radius: 3px; margin: 8px 0; }
.paper .wm { position: absolute; top: 120px; left: -10px; transform: rotate(-35deg); font-size: 42px; font-weight: 700; color: rgba(220,38,38,.18); letter-spacing: 4px; }
.sipoc-col h3 { font-size: 13px; display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.sipoc-col .L { width: 24px; height: 24px; border-radius: 6px; color: #fff; display: inline-flex; align-items: center; justify-content: center; font-weight: 700; }
.sipoc-item { border: 1px solid var(--line); border-radius: 7px; padding: 6px 10px; margin-bottom: 7px; font-size: 11.5px; background: #fff; }
.raci { width: 22px; height: 22px; border-radius: 6px; display: inline-flex; align-items: center; justify-content: center; color: #fff; font-size: 10px; font-weight: 700; margin: 0 1px; }
.raci.R { background: #2A63E0; } .raci.A { background: var(--navy); } .raci.C { background: #F59E0B; } .raci.I { background: #9AA6B8; }
.raci-cell { cursor: pointer; text-align: center; min-width: 70px; }
.raci-cell .nil { color: var(--muted-2); }
.fam { border-radius: 12px; color: #fff; font-weight: 700; display: flex; align-items: center; justify-content: center; letter-spacing: .6px; font-size: 12.5px; }
.fam.pilotage { background: #0E2148; } .fam.operationnel { background: #2A63E0; } .fam.support { background: #64A6FA; }
.proc-card { padding: 12px 14px; }
.proc-card .code { color: var(--blue); font-weight: 700; font-size: 11px; }
.proc-card .nm { font-weight: 700; font-size: 13px; margin: 3px 0 1px; }
.tree { list-style: none; padding-left: 0; margin: 0; font-size: 12px; }
.tree ul { list-style: none; padding-left: 18px; margin: 0; }
.tree li > div { padding: 3px 6px; border-radius: 6px; }
.tree li > div.on { background: var(--blue-soft); color: var(--blue); font-weight: 700; }
.tree a { color: inherit; }
.qmatrix { position: relative; display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; gap: 10px; height: 760px; max-height: 70vh; min-height: 520px; }
.qmatrix .qd { position: relative; border-radius: 10px; padding: 14px 16px; }
.qd.satisfaire { background: #EDF3FD; } .qd.cles { background: #FDF0CC; } .qd.surveiller { background: #F1F3F7; } .qd.informer { background: #EAFBF1; }
.qd .qt { font-weight: 700; font-size: 13px; } .qd .qs { font-size: 11px; }
.qd.satisfaire .qt, .qd.satisfaire .qs { color: var(--blue-ink); } .qd.cles .qt, .qd.cles .qs { color: #C2410C; text-align: right; }
.qd.surveiller .qt { color: var(--ink-2); position: absolute; bottom: 14px; } .qd.informer .qt { color: var(--green-ink); position: absolute; bottom: 14px; right: 16px; }
.qpt { position: absolute; display: flex; align-items: center; gap: 7px; font-size: 12px; color: var(--ink); white-space: nowrap; transform: translate(-9px, -9px); }
.qpt .d { width: 17px; height: 17px; border-radius: 50%; border: 3px solid #fff; box-shadow: 0 1px 3px rgba(0,0,0,.2); }
.qpt.sel { outline: 2px dashed var(--blue); outline-offset: 5px; border-radius: 4px; }
.qpt:hover { text-decoration: none; }
.org-tree { position: relative; }
.onode { position: absolute; transform: translateX(-50%); border-radius: 10px; color: #fff; text-align: center; padding: 8px 14px; min-width: 190px; box-shadow: 0 6px 14px rgba(15,23,42,.18); }
.onode .t { font-weight: 700; font-size: 12.5px; } .onode .s { font-size: 10px; opacity: .9; }
.onode.gouvernance { background: #0E2148; } .onode.comite { background: #4B5563; } .onode.direction { background: #1E3A8A; }
.onode.metier { background: #2A63E0; } .onode.conformite { background: #F28C13; } .onode.equipe { background: #F4B740; color: #2A1A00; } .onode.relais { background: #FAD54A; color: #2A1A00; }
.gantt { display: grid; grid-template-columns: 300px 1fr; row-gap: 9px; align-items: center; }
.gantt .track { position: relative; height: 22px; background: #EEF1F5; border-radius: 11px; }
.gantt .seg { position: absolute; top: 0; bottom: 0; border-radius: 11px; }
.gantt .seg.realise { background: var(--green-btn); } .gantt .seg.en_cours, .gantt .seg.sur_site, .gantt .seg.rapport, .gantt .seg.preparation { background: var(--blue-2); } .gantt .seg.planifie { background: #9AA6B8; }
.gantt .head { display: flex; justify-content: space-between; font-size: 10.5px; color: var(--muted); padding: 0 8px; }
.cbar { height: 12px; border-radius: 7px; display: inline-block; width: 100%; }
.chat { display: flex; flex-direction: column; gap: 12px; }
.bubble { max-width: 86%; padding: 10px 14px; border-radius: 12px; font-size: 12px; line-height: 1.5; }
.bubble.me { align-self: flex-end; background: var(--blue-2); color: #fff; }
.bubble.them { align-self: flex-start; background: #F1F5FA; }
.bubble.dark { align-self: flex-end; background: var(--navy); color: #fff; }
.src-chip { display: inline-flex; align-items: center; gap: 4px; background: var(--blue-soft); color: var(--blue-ink); font-weight: 700; font-size: 10.5px; border-radius: 6px; padding: 3px 8px; margin: 6px 6px 0 0; }
.graph { position: relative; height: 640px; }
.graph svg.edges { position: absolute; inset: 0; width: 100%; height: 100%; }
.gnode { position: absolute; transform: translate(-50%, -50%); background: #fff; border: 2px solid; border-radius: 9px; padding: 8px 14px; min-width: 170px; max-width: 220px; font-size: 11.5px; box-shadow: 0 4px 12px rgba(15,23,42,.08); color: var(--ink); }
.gnode:hover { text-decoration: none; box-shadow: 0 6px 18px rgba(15,23,42,.16); }
.gnode .gt { font-weight: 700; }
.gnode.texte { border-color: var(--navy); } .gnode.processus, .gnode.raci { border-color: var(--blue); } .gnode.processus .gt, .gnode.raci .gt { color: var(--blue); }
.gnode.risque { border-color: var(--orange); } .gnode.risque .gt { color: var(--amber); }
.gnode.controle, .gnode.formation { border-color: var(--green); } .gnode.controle .gt, .gnode.formation .gt { color: var(--green-ink); }
.gnode.nc, .gnode.centre { border-color: var(--red); } .gnode.nc .gt, .gnode.centre .gt { color: var(--red); }
.gnode.audit { border-color: #374151; } .gnode.signalement { border-color: #7C3AED; } .gnode.signalement .gt { color: #7C3AED; }
/* ---------------- Obligations & veille (E26–E28) ---------------- */
.fsel > svg { position: absolute; left: 12px; top: 10px; pointer-events: none; color: var(--ink-2); }
.fsel:has(> svg) select { padding-left: 32px; }
.sub.ink { color: var(--ink); } .mt4 { margin-top: 4px; }
a.card.kpi { color: inherit; } a.card.kpi:hover { text-decoration: none; box-shadow: 0 6px 18px rgba(15,23,42,.08); }
.appl { display: flex; gap: 8px; }
.appl a { flex: 1; border-radius: 8px; padding: 5px 10px; font-size: 11px; font-weight: 700; line-height: 1.25; }
.appl a b { display: block; } .appl a:hover { text-decoration: none; filter: brightness(.97); }
.appl .ok { background: #DCFCE7; color: var(--green-ink); } .appl .warn { background: #FEF3C7; color: var(--amber-ink); } .appl .crit { background: #FEE2E2; color: var(--red-ink); }
.g-53 { grid-template-columns: minmax(0,5fr) minmax(0,3fr); align-items: start; }
.g-veille { grid-template-columns: 300px minmax(0,1fr) 330px; align-items: start; }
.stack > .card { margin-bottom: 16px; }
.kv.lined td { border-bottom: 1px solid var(--line); }
.chip-ok { display: inline-flex; align-items: center; gap: 4px; background: #DCFCE7; color: var(--green-ink); font-weight: 700; font-size: 10.5px; border-radius: 6px; padding: 2px 8px; margin-left: 6px; }
.applic { display: flex; gap: 8px; flex-wrap: wrap; }
.applic label { margin: 0; } .applic input { display: none; }
.applic span { display: inline-flex; align-items: center; gap: 5px; border-radius: 6px; background: #EEF2F7; padding: 3px 10px; font-size: 11px; font-weight: 700; color: var(--ink-2); cursor: pointer; }
.applic input:checked + span.non_appliquee { background: #FEE2E2; color: var(--red-ink); }
.applic input:checked + span.partielle { background: #FEF3C7; color: var(--amber-ink); }
.applic input:checked + span.appliquee { background: #DCFCE7; color: var(--green-ink); }
.applic input:checked + span.non_applicable { background: #E2E8F0; color: var(--ink); }
.applic input:checked + span::before { content: "●"; font-size: 9px; }
.trace { display: flex; flex-wrap: wrap; gap: 8px; }
.trace a { border-radius: 6px; padding: 3px 10px; font-size: 11px; font-weight: 700; }
.trace a:hover { text-decoration: none; filter: brightness(.96); }
.trace .info { background: var(--blue-soft); color: var(--blue-ink); } .trace .crit { background: #FEE2E2; color: var(--red-ink); }
.trace .ok { background: #DCFCE7; color: var(--green-ink); } .trace .warn { background: #FEF3C7; color: #B45309; }
.files-list div { display: flex; align-items: center; gap: 6px; padding: 4px 0; font-size: 12px; }
.files-list a { color: var(--ink); }
.qa { display: flex; flex-direction: column; padding: 0; min-height: 700px; }
.qa .qa-h { padding: 16px 18px 12px; border-bottom: 1px solid var(--line); }
.qa .qa-h h3 { font-size: 14px; display: flex; align-items: center; gap: 8px; }
.qa .qa-body { flex: 1; padding: 18px; display: flex; flex-direction: column; gap: 14px; overflow-y: auto; max-height: 640px; }
.qa .qa-foot { border-top: 1px solid var(--line); padding: 14px 16px; display: flex; gap: 10px; }
.qa .qa-foot input { flex: 1; height: 44px; }
.qa .qa-foot .btn { width: 48px; height: 44px; justify-content: center; padding: 0; }
.qa .bubble { white-space: pre-line; }
.qa .bubble.them { max-width: 100%; align-self: stretch; }
.qa .disclaimer { background: #FFFBEB; border: 1px solid #FDE68A; color: var(--amber-ink); border-radius: 10px; padding: 10px 14px; font-size: 11px; display: flex; gap: 8px; }
.rep-list a { display: block; padding: 10px 12px; border-radius: 9px; color: var(--ink); margin-bottom: 6px; }
.rep-list a.on { background: var(--blue-soft); } .rep-list a.on .t { color: var(--blue); font-weight: 700; }
.rep-list a:hover { text-decoration: none; background: #F5F8FC; }
.niveau { border-radius: 8px; color: #fff; font-weight: 700; font-size: 11px; padding: 6px 12px; line-height: 1.3; min-width: 110px; }
.niveau.l1 { background: #DC2626; } .niveau.l2 { background: #EA580C; } .niveau.l3 { background: #F59E0B; } .niveau.l4 { background: #16A34A; } .niveau.l5 { background: #64748B; }
.paper.pdf .bandeau { background: var(--navy); color: #fff; font-weight: 700; font-size: 9px; padding: 6px 8px; border-radius: 3px; margin-bottom: 12px; }
/* ---------------- Gouvernance (E29–E30) ---------------- */
.dropdown .btn { width: auto; display: inline-flex; padding: 6px 12px; }
.dropdown .btn.primary { background: var(--blue-2); color: #fff; } .dropdown .btn.primary:hover { background: var(--blue); }
.dropdown label.small { display: block; margin: 0; color: var(--ink-2); }
.orgchart { position: relative; min-height: 400px; }
.orgchart svg.edges { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.orgchart .onode { min-width: 0; width: max-content; padding: 8px 14px; white-space: nowrap; }
.orgchart .onode .t { font-size: 12px; } .orgchart .onode .s { font-size: 9.5px; }
.direct-lbl { position: absolute; color: #C2410C; font-weight: 700; font-size: 12px; white-space: nowrap; }
.checks .ck { display: flex; gap: 10px; align-items: flex-start; padding: 10px 0; border-bottom: 1px solid var(--line); line-height: 1.5; }
.checks .ck:last-child { border-bottom: 0; }
.checks .ck > span:first-child { margin-top: 2px; }
.val.amber { color: var(--orange); }
/* ---------------- Risques (E31–E32) ---------------- */
.badge { display: inline-flex; align-items: center; justify-content: center; min-width: 18px; height: 18px; border-radius: 9px; background: var(--red); color: #fff; font-size: 10px; font-weight: 700; padding: 0 5px; }
.synth div { padding: 4px 0; line-height: 1.5; } .synth a { color: inherit; text-decoration: underline dotted; }
.heat-x { text-align: center; font-size: 10.5px; color: var(--muted); margin-top: 6px; }
.heat .c .mk.inh { background: #DC2626; } .heat .c .mk.resi { background: #F59E0B; }
.heat.mid .c { height: 46px; }
.wsteps { display: flex; flex-direction: column; gap: 4px; }
.wsteps .ws { display: flex; align-items: center; gap: 12px; padding: 10px; border-radius: 9px; color: var(--ink); font-size: 12.5px; }
.wsteps .ws:hover { background: #F5F8FC; text-decoration: none; }
.wsteps .ws .n { width: 24px; height: 24px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: 10.5px; font-weight: 700; background: #F1F4F8; color: var(--muted); border: 1px solid var(--line); }
.wsteps .ws.done .n { background: var(--green-btn, #16A34A); color: #fff; border-color: transparent; }
.wsteps .ws.on { background: var(--blue-soft); color: var(--blue); font-weight: 700; }
.wsteps .ws.on .n { background: var(--blue-2); color: #fff; border-color: transparent; }
.eyebrow { font-size: 11px; font-weight: 700; letter-spacing: 1.2px; color: var(--blue); text-transform: uppercase; }
.radio-line { padding: 5px 0; }
tr.sel td { background: var(--blue-soft); }
/* ---------------- Signalements (E33–E36) ---------------- */
.wbars { display: flex; gap: 8px; margin: 4px 0 18px; }
.wbars span { flex: 1; height: 5px; border-radius: 3px; background: #E2E8F0; }
.wbars span.done { background: var(--green); } .wbars span.on { background: var(--blue-2); }
.chips.modes { flex-wrap: nowrap; } .chips.modes label { flex: 1; } .chips.modes .chip { width: 100%; padding: 7px 10px; line-height: 1.3; min-height: 34px; }
.filebox { display: flex; align-items: center; gap: 8px; height: 44px; border: 1px solid var(--line); border-radius: 9px; padding: 0 14px; color: var(--blue); cursor: pointer; font-weight: 400; margin: 0; }
.filebox:hover { background: #F7FAFE; }
.ticket-box { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 16px 0; }
.ticket-box > div { border: 2px dashed #BFDBFE; background: #F5F9FF; border-radius: 12px; padding: 14px 18px; }
.ticket-box .tk { font-size: 22px; font-weight: 700; color: var(--navy); letter-spacing: 1px; margin-top: 4px; }
.pub-box.wide { max-width: 680px; }
.track { margin: 14px 0; }
.track-bar { height: 4px; background: #E2E8F0; border-radius: 3px; } .track-bar span { display: block; height: 100%; background: var(--blue-2); border-radius: 3px; }
.track-lbl { display: grid; grid-template-columns: repeat(4, 1fr); text-align: center; font-size: 11.5px; color: var(--muted); margin-top: 8px; }
.track-lbl .on { color: var(--ink); }
.info-box { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; border: 1px solid var(--line); border-radius: 12px; padding: 12px 16px; font-size: 12px; background: #FAFBFD; }
.thread { border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; margin-top: 12px; display: flex; flex-direction: column; gap: 12px; min-height: 200px; }
.thread .bubble { font-size: 12px; }
.dl-read > div { padding: 4px 0; line-height: 1.6; }
/* ---------------- Enquêtes (E37–E38) ---------------- */
.timeline .tl { display: flex; gap: 12px; padding: 6px 0; align-items: flex-start; }
.timeline .dot { width: 12px; height: 12px; border-radius: 50%; background: #9AA6B8; margin-top: 4px; flex-shrink: 0; }
.timeline .tl.fait .dot { background: var(--green); } .timeline .tl.encours .dot { background: var(--blue-2); }
select.sel-pill { width: auto; height: 26px; padding: 0 24px 0 10px; border-radius: 6px; font-size: 11px; font-weight: 700; border: 0; background-color: #EEF2F7; background-position: right 6px center; }
select.sel-pill.ok { background-color: #DCFCE7; color: var(--green-ink); } select.sel-pill.warn { background-color: #FEF3C7; color: var(--amber-ink); }
select.sel-pill.crit { background-color: #FEE2E2; color: var(--red-ink); } select.sel-pill.info { background-color: var(--blue-soft); color: var(--blue-ink); }
.circuit { padding-left: 18px; line-height: 1.9; margin: 0; } .circuit li.done { color: var(--green-ink); } .circuit li.done::marker { content: "✓ "; }
/* ---------------- Communication & culture (E39–E41) ---------------- */
.calbar { display: block; height: 14px; border-radius: 8px; background: var(--blue-2); width: 100%; }
.calbar.navy { background: var(--navy); } .calbar.orange { background: #F28C13; } .calbar.green { background: var(--green); }
.dimrow { display: grid; grid-template-columns: 220px 1fr 50px; gap: 14px; align-items: center; padding: 6px 0; font-size: 12.5px; }
.dimrow b { text-align: right; }
.linkbtn { background: none; border: 0; padding: 0; font: inherit; color: inherit; text-decoration: underline; cursor: pointer; }
.likert .chips .chip { font-weight: 400; }
.up { color: var(--green); } .down { color: var(--red); }
/* ---------------- Performance & PDCA (E42–E48) ---------------- */
.stepband { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; margin-bottom: 16px; }
.stepband span { text-align: center; padding: 9px 6px; border-radius: 8px; background: #F1F4F8; color: var(--ink-2); font-size: 12px; }
.stepband span.done { background: var(--green); color: #fff; } .stepband span.on { background: var(--blue-2); color: #fff; font-weight: 700; }
.whys { padding-left: 20px; line-height: 2; margin: 0; } .whys li::marker { color: var(--blue); font-weight: 700; }
.entrees td { padding: 10px 6px; border-bottom: 1px solid var(--line); vertical-align: top; }
.legend { display: flex; gap: 18px; font-size: 11.5px; color: var(--ink-2); }
.legend .lg { display: inline-block; width: 11px; height: 11px; border-radius: 3px; margin-right: 5px; vertical-align: -1px; }
.legend .lg.realise { background: var(--green-btn, #16A34A); } .legend .lg.en_cours { background: var(--blue-2); } .legend .lg.planifie { background: #9AA6B8; }
.gantt a.seg { display: block; }
.graph-filters { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 6px; }
.dotc-crit { color: var(--red); } .dotc-warn { color: var(--orange); }
input[type=range] { width: 100%; accent-color: var(--blue-2); }
/* ---------------- Veille juridique ---------------- */
.prio { display: inline-flex; align-items: center; justify-content: center; width: 22px; height: 22px; border-radius: 6px; font-size: 11px; font-weight: 700; color: #fff; background: #9AA6B8; }
.prio.p1 { background: var(--red); } .prio.p2 { background: #EA580C; } .prio.p3 { background: var(--orange); } .prio.p4 { background: var(--green); }
.an-bloc { margin-top: 12px; } .an-bloc h4 { font-size: 12.5px; display: flex; gap: 6px; align-items: center; margin-bottom: 4px; color: var(--ink); }
.an-bloc ul { margin: 0; padding-left: 18px; font-size: 12px; line-height: 1.6; }
.cite { display: inline-block; background: var(--blue-soft); color: var(--blue-ink); font-size: 10.5px; font-weight: 700; border-radius: 5px; padding: 0 6px; margin-left: 4px; }
.texte-officiel { max-height: 520px; overflow: auto; white-space: pre-line; line-height: 1.6; background: #FAFBFD; border: 1px solid var(--line); border-radius: 8px; padding: 12px 14px; }
/* ---------------- Expérience utilisateur : accessibilité, chargement, messages, tri, mobile ---------------- */
.skip { position: absolute; left: -9999px; top: 8px; z-index: 1000; background: var(--navy); color: #fff; padding: 8px 14px; border-radius: 8px; }
.skip:focus { left: 12px; }
:focus-visible { outline: 2px solid var(--blue-2); outline-offset: 2px; }
.content:focus { outline: none; }
.loadbar { position: fixed; top: 0; left: 0; height: 3px; width: 0; background: linear-gradient(90deg, var(--blue-2), #64A6FA); z-index: 999; opacity: 0; transition: opacity .2s; }
.loadbar.on { opacity: 1; animation: charge 2.2s ease-out forwards; }
@keyframes charge { 0% { width: 0; } 50% { width: 65%; } 100% { width: 90%; } }
.btn.busy { position: relative; color: transparent !important; pointer-events: none; }
.btn.busy::after { content: ""; position: absolute; inset: 0; margin: auto; width: 15px; height: 15px; border-radius: 50%; border: 2px solid currentColor;
  border-color: var(--blue-2) var(--blue-2) transparent transparent; animation: tourne .7s linear infinite; }
.btn.primary.busy::after { border-color: #fff #fff transparent transparent; }
@keyframes tourne { to { transform: rotate(360deg); } }
.flash { position: relative; padding-right: 38px; animation: entre .25s ease-out; }
.flash.out { opacity: 0; transform: translateY(-6px); transition: all .25s; }
.flash-x { position: absolute; right: 8px; top: 8px; background: none; border: 0; cursor: pointer; color: inherit; opacity: .6; padding: 2px; border-radius: 4px; }
.flash-x:hover { opacity: 1; }
@keyframes entre { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
th.sortable { cursor: pointer; user-select: none; }
th.sortable:hover { color: var(--blue); }
th.sortable[aria-sort="ascending"]::after { content: " ▲"; font-size: 8px; } th.sortable[aria-sort="descending"]::after { content: " ▼"; font-size: 8px; }
.burger { display: none; }
.card, .btn, .pill, .chip { transition: box-shadow .15s, background-color .15s, border-color .15s; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }
@media (max-width: 900px) {
  .burger { display: inline-flex; }
  .side { position: fixed !important; top: 0; bottom: 0; left: 0; width: 270px !important; height: 100% !important; z-index: 200; transform: translateX(-100%); transition: transform .2s; overflow-y: auto; }
  .side.open { transform: none; box-shadow: 0 0 0 100vmax rgba(15,23,42,.45); }
  .tbl-card { overflow-x: auto; }
  .page-head .actions { margin-left: 0; width: 100%; }
}

@media (max-width: 1200px) {
  .g-53, .g-veille { grid-template-columns: 1fr; }
  .g4, .g5 { grid-template-columns: repeat(2, minmax(0,1fr)); } .g-311, .g-wiz, .g-side, .g-21, .g-12 { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  .side { position: static; width: 100%; height: auto; } .app { flex-direction: column; } .main { margin-left: 0; }
  .search { display: none; } .pub { grid-template-columns: 1fr; } .pub-hero { min-height: 280px; } .pub-main { padding: 24px 18px; }
  .g2, .g3 { grid-template-columns: 1fr; }
}
@media print { .side, .top, .status-bar, .page-head .actions { display: none !important; } .main { margin: 0; } }

/* =====================================================================================================
   v3 — « Le Bureau de Conformité » : scène plein écran, motion design, plaques gravées
   Les tailles de la scène suivent la largeur de l'image (unités cqw) : tout reste net et proportionné.
   ===================================================================================================== */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
/* ---------------- Marques : CONFORM'AREA (produit) et AUDIT 404 CONSEILS (éditeur) ---------------- */
.side-brand { flex-direction: column; align-items: flex-start; gap: 7px; padding: 18px 8px 14px; }
.brand-top { display: flex; align-items: center; gap: 11px; }
.brand-top .logo-shield { width: 32px; height: 36px; }
.wordmark { display: flex; flex-direction: column; }
.side-brand .wordmark .t1 { color: #fff; font-weight: 700; font-size: 17px; letter-spacing: 1.2px; line-height: 1.1; }
.side-brand .wordmark .t2 { color: #8FA3C8; font-size: 9.5px; letter-spacing: .6px; }
/* Signature de l'éditeur, sous le bouclier */
.by-a404 { display: block; font-size: 9.5px; font-weight: 600; letter-spacing: .14em; color: var(--gold-2); white-space: nowrap; }
.brand-row { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.pub-hero .by-a404 { font-size: 10.5px; }
.porte-plaque .by-a404 { color: #3A4458; font-size: 11px; margin-top: 6px; }
.ts-in .by-a404 { margin-top: -6px; }
/* ---------------- Navigation ---------------- */
.side-nav .grp { display: flex; align-items: center; gap: 7px; }
.side-nav .grp .num { display: inline-flex; align-items: center; justify-content: center; width: 17px; height: 17px; border-radius: 5px;
  background: rgba(201,164,106,.16); color: var(--gold-2); font-size: 9.5px; letter-spacing: 0; }
.side-nav .grp .cl { margin-left: auto; color: #5F7196; letter-spacing: .2px; text-transform: none; }
.side-nav a.active { background: linear-gradient(90deg, #2A63E0, #1550D2); box-shadow: inset 3px 0 0 var(--gold-2), 0 6px 16px rgba(21,80,210,.35); }
.btn-bureau { display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 14px; border-radius: 10px; white-space: nowrap;
  background: linear-gradient(180deg, #16295E, #0B1D4F); color: #F3E3C2; border: 1px solid rgba(201,164,106,.5); font-weight: 600; font-size: 12.5px;
  box-shadow: 0 4px 14px rgba(11,29,79,.28); transition: filter .2s, box-shadow .2s; }
.btn-bureau:hover { text-decoration: none; filter: brightness(1.15); box-shadow: 0 6px 20px rgba(11,29,79,.4); }
/* Arrivée sur un module : la page apparaît depuis le dossier ouvert */
body.arrivee .content { animation: recompose .55s cubic-bezier(.2,.8,.2,1) both; }
@keyframes recompose { from { opacity: 0; transform: translateY(8px) scale(.992); } to { opacity: 1; transform: none; } }

/* ---------------- Mode scène : le Bureau occupe tout l'écran ---------------- */
body.scene-mode { overflow: hidden; background: #03060F; }
body.scene-mode .side { transform: translateX(-100%); transition: transform .3s cubic-bezier(.2,.8,.2,1); z-index: 200; }
body.scene-mode .side.open { transform: none; box-shadow: 0 0 0 100vmax rgba(3,6,15,.6); }
body.scene-mode .main { margin-left: 0; }
body.scene-mode .burger { display: inline-flex; }
body.scene-mode .top { position: fixed; left: 0; right: 0; top: 0; z-index: 30; border: 0; height: 64px; backdrop-filter: none;
  background: linear-gradient(180deg, rgba(3,6,15,.92) 0%, rgba(3,6,15,.55) 62%, rgba(3,6,15,0) 100%); }
body.scene-mode .top .search, body.scene-mode .top .icon-btn, body.scene-mode .org-chip { background: rgba(255,255,255,.07); border-color: rgba(255,255,255,.14); color: #C9D3E6; backdrop-filter: blur(8px); }
body.scene-mode .top .search input { color: #fff; }
body.scene-mode .org-chip .sg { background: rgba(255,255,255,.12); color: #fff; }
body.scene-mode .me .n1 { color: #fff; } body.scene-mode .me .n2, body.scene-mode .me > .ic { color: #9FB0CF; }
body.scene-mode .content { padding: 0; }
body.scene-mode .crumbs, body.scene-mode .status-bar { display: none; }
body.scene-mode .flashes { position: fixed; top: 72px; left: 50%; transform: translateX(-50%); z-index: 40; width: min(640px, 92vw); }
.bureau { position: fixed; inset: 0; z-index: 1; overflow: hidden; background: #03060F; }
.scene { position: absolute; inset: 0; }
.scene-cam { position: absolute; left: 50%; top: 0; width: max(100vw, 150vh); height: max(100vh, calc(100vw / 1.5)); transform: translateX(-50%); }
.scene-zoom { position: absolute; inset: 0; transform-origin: 0 0; container-type: size; will-change: transform; }
.scene-zoom.anim { transition: transform .95s cubic-bezier(.65,0,.35,1); }
.scene-zoom.anim.court { transition-duration: .5s; }
.scene-img { width: 100%; height: 100%; display: block; user-select: none; -webkit-user-drag: none; transition: filter 2.4s cubic-bezier(.4,0,.2,1);
  animation: eclaire 1.2s ease-out both; }
@keyframes eclaire { from { filter: brightness(.55); } }
.scene.penombre .scene-img { filter: brightness(.36) saturate(.7); animation: none; }
.balayage { position: absolute; inset: 0; z-index: 2; pointer-events: none; opacity: 0;
  background: linear-gradient(105deg, transparent 38%, rgba(255,238,205,.13) 50%, transparent 62%); }
.scene.revele .balayage { animation: balaye 1.8s cubic-bezier(.4,0,.2,1) .15s both; }
@keyframes balaye { from { transform: translateX(-70%); opacity: 1; } to { transform: translateX(70%); opacity: 1; } }
/* Apparition progressive des éléments après l'entrée */
.scene.attente .rail, .scene.attente .etiq, .scene.attente .hs, .scene.attente .pli, .scene.attente .lampe { opacity: 0; }
.scene .rail, .scene .etiq, .scene .hs, .scene .lampe { transition: opacity .8s ease; }
.scene.revele .etiq { transition-delay: .2s; } .scene.revele .hs { transition-delay: .45s; } .scene.revele .lampe { transition-delay: .6s; }

/* Bandeau des modules, net et lisible */
.rail { position: absolute; z-index: 4; display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; padding: 0 .45cqw; border-radius: .4cqw;
  background: linear-gradient(180deg, #0C1222 0%, #05080F 100%); border: 1px solid rgba(226,196,142,.3);
  box-shadow: 0 .5cqw 1.8cqw rgba(0,0,0,.6), inset 0 1px 0 rgba(255,255,255,.06); }
.rail-item { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .32cqw; padding: 0 .3cqw;
  color: #EEF2F9; font-size: clamp(11px, .8cqw, 17px); font-weight: 600; line-height: 1.12; text-align: center; letter-spacing: .01em;
  border-radius: .3cqw; transition: background-color .3s, color .3s; }
.rail-item .ic { width: clamp(16px, 1.3cqw, 26px); height: clamp(16px, 1.3cqw, 26px); color: var(--gold-2); stroke-width: 1.6; transition: transform .3s; }
.rail-item + .rail-item::before { content: ""; position: absolute; left: 0; top: 26%; bottom: 26%; width: 1px; background: linear-gradient(transparent, rgba(226,196,142,.35), transparent); }
.rail-item:hover, .rail-item:focus-visible { background: rgba(226,196,142,.1); color: #fff; text-decoration: none; outline: none; }
.rail-item:hover .ic, .rail-item:focus-visible .ic { transform: translateY(-2px); }
.rail-item.locked { color: #7D889E; } .rail-item.locked .ic { color: #646E83; }
.rail .vivant { top: .3cqw; right: .55cqw; }
/* Titres des étagères, réécrits en grand */
.etiq { position: absolute; z-index: 3; pointer-events: none; display: flex; align-items: center; padding: 0 .6cqw;
  background: linear-gradient(180deg, #0F1524, #080B14); border-bottom: 1px solid rgba(226,196,142,.5); box-shadow: 0 .2cqw .7cqw rgba(0,0,0,.5); }
.etiq span { color: #F4EAD5; font-size: clamp(10px, .74cqw, 16px); font-weight: 700; letter-spacing: .07em; text-transform: uppercase;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.etiq.long span { letter-spacing: .04em; }
.etiq.locked span { color: #8C93A3; }
/* Objets interactifs */
.hs { position: absolute; z-index: 5; display: block; border-radius: .35cqw; transition: background .35s, box-shadow .35s, opacity .8s; }
.hs::after { content: ""; position: absolute; inset: 0; border-radius: inherit; border: 1px solid rgba(226,196,142,0); transition: border-color .35s; }
.hs:hover, .hs:focus-visible { outline: none; text-decoration: none; box-shadow: 0 0 2.6cqw rgba(226,196,142,.3);
  background: radial-gradient(120% 120% at 50% 0%, rgba(255,232,190,.17), rgba(255,232,190,.04) 60%, transparent); }
.hs:hover::after, .hs:focus-visible::after { border-color: rgba(226,196,142,.9); }
.scene.penombre .hs:not(.locked) { backdrop-filter: brightness(2.4) saturate(1.15); animation: appel 2.8s ease-in-out infinite; }
.scene.penombre .hs:not(.locked)::after { border-color: rgba(226,196,142,.6); }
@keyframes appel { 50% { box-shadow: 0 0 2.4cqw rgba(226,196,142,.55); } }
.hs .cadenas { position: absolute; right: .35cqw; top: .35cqw; width: clamp(18px, 1.3cqw, 26px); height: clamp(18px, 1.3cqw, 26px); border-radius: 50%;
  background: rgba(6,11,30,.85); color: var(--gold-2); display: flex; align-items: center; justify-content: center; }
.hs-tag { position: absolute; left: 50%; bottom: calc(100% + .6cqw); z-index: 8; width: max-content; max-width: clamp(200px, 17cqw, 340px); pointer-events: none;
  opacity: 0; transform: translate(-50%, 6px); transition: opacity .25s ease, transform .25s ease; text-align: center;
  padding: .55cqw .9cqw; border-radius: .6cqw; background: rgba(6,10,22,.86); backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,.12); border-top: 2px solid var(--gold-2); box-shadow: 0 1cqw 2.6cqw rgba(0,0,0,.55); color: #fff; }
.hs.tag-bas .hs-tag { bottom: auto; top: calc(100% + .6cqw); }
.hs-culture .hs-tag, .hs-certification .hs-tag, .hs-armoire .hs-tag { left: auto; right: 0; transform: translateY(6px); }
.hs-tag strong { display: block; font-size: clamp(12px, .85cqw, 17px); font-weight: 600; line-height: 1.3; }
.hs-tag em { display: block; font-style: normal; font-size: clamp(10px, .66cqw, 13px); color: var(--gold-2); margin-top: .2cqw; letter-spacing: .02em; }
.hs-tag em.v { color: #C9D6EC; }
.hs:hover .hs-tag, .hs:focus-visible .hs-tag { opacity: 1; transform: translate(-50%, 0); }
.hs-culture:hover .hs-tag, .hs-certification:hover .hs-tag, .hs-armoire:hover .hs-tag,
.hs-culture:focus-visible .hs-tag, .hs-certification:focus-visible .hs-tag, .hs-armoire:focus-visible .hs-tag { transform: none; }
.scene.focus .hs-tag { opacity: 0 !important; }
.vivant { position: absolute; top: -.55cqw; right: -.55cqw; z-index: 6; min-width: clamp(18px, 1.35cqw, 28px); height: clamp(18px, 1.35cqw, 28px);
  padding: 0 .4cqw; border-radius: 99px; display: flex; align-items: center; justify-content: center; font-style: normal;
  font-size: clamp(10px, .75cqw, 14px); font-weight: 700; color: #fff; background: var(--blue); border: 2px solid rgba(8,12,24,.95);
  box-shadow: 0 .3cqw .8cqw rgba(0,0,0,.5); animation: pastille .5s cubic-bezier(.2,1.4,.4,1) 1.1s both; }
.vivant.critique { background: var(--red); } .vivant.vigilance { background: #D98A0B; } .vivant.info { background: var(--blue); }
@keyframes pastille { from { transform: scale(0); } }
.lampe { position: absolute; z-index: 3; }
.lampe .halo { position: absolute; left: 6%; top: -2%; width: 66%; aspect-ratio: 1; border-radius: 50%; filter: blur(3px);
  background: radial-gradient(circle, rgba(255,246,224,.8), rgba(255,226,170,.22) 45%, transparent 70%); animation: respire 5s ease-in-out infinite; }
.lampe.vigilance .halo { background: radial-gradient(circle, rgba(255,214,140,.9), rgba(245,158,11,.36) 45%, transparent 70%); }
.lampe.critique .halo { background: radial-gradient(circle, rgba(255,226,200,.9), rgba(227,27,35,.46) 45%, transparent 72%); }
@keyframes respire { 50% { opacity: .75; transform: scale(.93); } }
/* Le pli officiel, cacheté */
.pli { position: absolute; z-index: 6; display: flex; align-items: center; gap: .5cqw; transform: translate(-50%, -50%) rotate(-5deg);
  padding: .45cqw .8cqw .45cqw .5cqw; border-radius: .25cqw; background: linear-gradient(180deg, #F8F3E7, #EDE4CF); color: #3B2F1A;
  font-size: clamp(10px, .72cqw, 14px); box-shadow: 0 .7cqw 1.6cqw rgba(0,0,0,.55); animation: pli-arrive 1.1s cubic-bezier(.2,.9,.3,1.15) 1.4s both; transition: transform .3s; }
.pli b { font-weight: 800; }
.pli-sceau { display: inline-flex; align-items: center; justify-content: center; width: clamp(20px, 1.5cqw, 30px); height: clamp(20px, 1.5cqw, 30px); border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #F0444A, #B4151B 70%); color: #fff; box-shadow: inset 0 -2px 3px rgba(0,0,0,.3); }
.pli:hover, .pli:focus-visible { text-decoration: none; outline: none; transform: translate(-50%, -58%) rotate(-2deg); }
@keyframes pli-arrive { from { opacity: 0; transform: translate(-50%, -190%) rotate(-24deg); } }
/* Profondeur de champ pendant le geste : tout est flou sauf l'objet visé */
.dof { position: absolute; inset: 0; z-index: 9; pointer-events: none; opacity: 0; transition: opacity .7s ease;
  backdrop-filter: blur(8px) brightness(.45) saturate(.8); -webkit-backdrop-filter: blur(8px) brightness(.45) saturate(.8);
  -webkit-mask-image: radial-gradient(var(--rx, 20%) var(--ry, 20%) at var(--fx, 50%) var(--fy, 50%), transparent 62%, #000 100%);
  mask-image: radial-gradient(var(--rx, 20%) var(--ry, 20%) at var(--fx, 50%) var(--fy, 50%), transparent 62%, #000 100%); }
.dof.on { opacity: 1; }
/* Indicateurs flottants (verre fumé) */
.hud { position: fixed; z-index: 25; bottom: 22px; display: flex; align-items: center; gap: 12px; padding: 10px 16px; border-radius: 16px;
  background: rgba(6,10,22,.68); backdrop-filter: blur(16px) saturate(1.25); -webkit-backdrop-filter: blur(16px) saturate(1.25);
  border: 1px solid rgba(255,255,255,.1); box-shadow: 0 14px 40px rgba(0,0,0,.45); color: #D7DFEE; font-size: 12.5px; transition: opacity .6s; }
.hud-gauche { left: 22px; } .hud-droite { right: 22px; padding: 6px; gap: 6px; }
.hud-centre { left: 50%; transform: translateX(-50%); color: #F3E3C2; max-width: min(620px, 90vw); }
.hud-etat { display: flex; align-items: center; gap: 12px; }
.hud-etat b { display: block; color: #fff; font-weight: 600; font-size: 13px; } .hud-etat span { font-size: 11.5px; color: #9FB0CF; }
.hud-etat .dot { width: 10px; height: 10px; border-radius: 50%; background: #22C55E; box-shadow: 0 0 0 4px rgba(34,197,94,.18), 0 0 14px #22C55E; }
.hud-etat.vigilance .dot { background: #F59E0B; box-shadow: 0 0 0 4px rgba(245,158,11,.18), 0 0 14px #F59E0B; }
.hud-etat.critique .dot { background: var(--red); box-shadow: 0 0 0 4px rgba(227,27,35,.2), 0 0 14px var(--red); }
.hud-btn { display: inline-flex; align-items: center; gap: 7px; height: 34px; padding: 0 13px; border-radius: 11px; cursor: pointer; white-space: nowrap;
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); color: #E6ECF7; font: 12.5px var(--font); transition: background .2s; }
.hud-btn:hover { background: rgba(255,255,255,.14); text-decoration: none; }
body.entree-active .hud { opacity: 0; }

/* ---------------- Séquence d'entrée : contrôle d'accès, porte, travelling ---------------- */
.entree { position: fixed; inset: 0; z-index: 60; display: none; }
body.entree-active .entree { display: block; }
.porte-cadre { position: absolute; inset: 0; perspective: 2000px; perspective-origin: 20% 50%; overflow: hidden; }
.porte { position: absolute; inset: 0; transform-origin: 0 50%; backface-visibility: hidden; will-change: transform, filter; }
.porte.ouvre { transform: rotateY(-100deg); filter: brightness(.5); transition: transform 1.9s cubic-bezier(.7,0,.22,1), filter 1.9s ease-in; }
.porte-bois { position: absolute; inset: 0;
  background:
    radial-gradient(70% 55% at 78% 18%, rgba(255,214,160,.18), transparent 70%),
    linear-gradient(90deg, rgba(0,0,0,.45), rgba(0,0,0,0) 7%, rgba(0,0,0,0) 90%, rgba(0,0,0,.55)),
    repeating-linear-gradient(90deg, rgba(255,255,255,.02) 0 2px, rgba(0,0,0,.035) 2px 6px, rgba(255,255,255,.012) 6px 11px),
    linear-gradient(180deg, #3B2617 0%, #2B1B10 45%, #1D120A 100%); }
.porte-bois::before, .porte-bois::after { content: ""; position: absolute; left: 11%; right: 11%; border-radius: 4px;
  border: 2px solid rgba(0,0,0,.4); box-shadow: inset 0 0 0 1px rgba(255,255,255,.05), inset 0 24px 50px rgba(0,0,0,.28), 0 1px 0 rgba(255,255,255,.04); }
.porte-bois::before { top: 7%; height: 38%; } .porte-bois::after { top: 52%; height: 41%; }
.porte-plaque { position: absolute; left: 50%; top: 27%; transform: translate(-50%, -50%); display: flex; flex-direction: column; align-items: center; gap: 8px;
  padding: 24px 40px 18px; border-radius: 6px; color: #152038; text-align: center;
  background: linear-gradient(135deg, #EEF1F5 0%, #AFB8C5 46%, #E3E7EC 52%, #B8C0CB 100%);
  box-shadow: 0 14px 34px rgba(0,0,0,.6), inset 0 1px 0 #fff, inset 0 -1px 0 rgba(0,0,0,.25); }
.porte-plaque .logo-shield { width: 46px; height: 52px; }
.porte-plaque b { font-size: clamp(18px, 1.7vw, 26px); letter-spacing: .34em; font-weight: 700; padding-left: .34em; }
.porte-plaque em { font-style: normal; font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: #3A4458; }
.porte-lecteur { position: absolute; right: 6.2%; top: 34%; width: clamp(38px, 3vw, 56px); height: clamp(70px, 9vh, 104px); border-radius: 8px;
  display: flex; justify-content: center; padding-top: 12px; background: linear-gradient(180deg, #1C1F27, #0B0D12);
  border: 1px solid rgba(255,255,255,.08); box-shadow: 0 8px 20px rgba(0,0,0,.55), inset 0 1px 0 rgba(255,255,255,.06); }
.led { width: 9px; height: 9px; border-radius: 50%; background: #2B6BFF; box-shadow: 0 0 12px #2B6BFF; transition: background .35s, box-shadow .35s; }
.led.ok { background: #22C55E; box-shadow: 0 0 16px #22C55E; }
.porte-poignee { position: absolute; right: 6.8%; top: 48%; width: clamp(12px, 1vw, 18px); height: 24vh; border-radius: 9px;
  background: linear-gradient(90deg, #5E6570, #E6E9EE 42%, #A4ABB6 58%, #5A616C); box-shadow: -8px 10px 22px rgba(0,0,0,.55); }
.porte-lumiere { position: absolute; top: 0; bottom: 0; right: 0; width: 3px; opacity: 0; transition: opacity .5s;
  background: linear-gradient(180deg, transparent, rgba(255,228,180,.95) 30%, rgba(255,228,180,.95) 70%, transparent);
  box-shadow: 0 0 60px 18px rgba(255,214,150,.35); }
.porte-lumiere.on { opacity: 1; }
.acces { position: absolute; left: 50%; top: 66%; display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 26px 44px 22px;
  border-radius: 20px; color: #fff; opacity: 0; transform: translate(-50%, -50%) scale(.96);
  background: rgba(6,10,22,.62); backdrop-filter: blur(20px) saturate(1.3); -webkit-backdrop-filter: blur(20px) saturate(1.3);
  border: 1px solid rgba(255,255,255,.14); box-shadow: 0 30px 90px rgba(0,0,0,.6); transition: opacity .5s ease, transform .5s cubic-bezier(.2,.8,.2,1); }
.acces.on { opacity: 1; transform: translate(-50%, -50%) scale(1); }
.acces.off { opacity: 0; transform: translate(-50%, -58%) scale(.98); }
.acces-anneau { width: 78px; height: 78px; }
.a-fond { fill: none; stroke: rgba(255,255,255,.12); stroke-width: 4; }
.a-trace { fill: none; stroke: #22C55E; stroke-width: 4; stroke-linecap: round; stroke-dasharray: 327; stroke-dashoffset: 327;
  transform: rotate(-90deg); transform-origin: 60px 60px; transition: stroke-dashoffset 1s cubic-bezier(.65,0,.35,1); }
.a-coche { fill: none; stroke: #fff; stroke-width: 6; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 64; stroke-dashoffset: 64;
  transition: stroke-dashoffset .4s ease-out .85s; }
.acces.trace .a-trace, .acces.trace .a-coche { stroke-dashoffset: 0; }
.acces-titre { font-size: 21px; font-weight: 600; letter-spacing: .01em; margin-top: 8px; }
.acces-nom { font-size: 14px; color: #DCE4F2; }
.acces-sub { font-size: 10.5px; letter-spacing: .18em; text-transform: uppercase; color: var(--gold-2); margin-top: 2px; }
.entree-passer, .transit-passer { position: absolute; right: 24px; bottom: 24px; display: flex; align-items: center; gap: 8px; padding: 9px 14px; border-radius: 11px;
  cursor: pointer; background: rgba(255,255,255,.08); backdrop-filter: blur(10px); border: 1px solid rgba(255,255,255,.2); color: #E6ECF7; font: 12.5px var(--font); }
.entree-passer:hover { background: rgba(255,255,255,.16); }
.entree-passer .kbd { color: #C9D6EC; border-color: rgba(255,255,255,.25); }

/* ---------------- Transition « le dossier devient la page » ---------------- */
.transit { position: fixed; inset: 0; z-index: 950; visibility: hidden; pointer-events: none; }
.transit.on { visibility: visible; pointer-events: auto; cursor: progress; }
.transit-veil { position: absolute; inset: 0; background: #03060F; opacity: 0; transition: opacity .35s ease, background-color .01s; }
.transit.voile .transit-veil { opacity: 1; }
.transit.papier .transit-veil { background: var(--bg); opacity: 1; transition: opacity .28s ease; }
.transit-sheet { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; opacity: 0; overflow: hidden; transform-origin: 0 0;
  background: radial-gradient(90% 70% at 50% 40%, #173377 0%, #0B1D4F 55%, #050E2C 100%); box-shadow: 0 40px 120px rgba(0,0,0,.6), inset 0 0 0 1px rgba(226,196,142,.3); }
.transit-sheet.sombre { background: radial-gradient(90% 70% at 50% 40%, #241019 0%, #12080D 60%, #05030A 100%); }
.ts-in { display: flex; flex-direction: column; align-items: center; gap: 14px; opacity: 0; transform: translateY(12px); transition: opacity .35s ease, transform .45s cubic-bezier(.2,.8,.2,1); }
.transit.titre .ts-in { opacity: 1; transform: none; }
.ts-logo .logo-shield { width: 50px; height: 56px; }
.ts-kicker { font-size: 12px; letter-spacing: .24em; text-transform: uppercase; color: var(--gold-2); }
.ts-title { font-size: clamp(26px, 3.1vw, 48px); font-weight: 300; color: #fff; letter-spacing: .01em; text-align: center; max-width: 80vw; line-height: 1.15; }
.ts-line { display: block; width: 0; height: 1px; background: linear-gradient(90deg, transparent, var(--gold-2), transparent); transition: width .6s cubic-bezier(.2,.8,.2,1) .1s; }
.transit.titre .ts-line { width: 240px; }

/* ---------------- La porte : écrans de connexion et de double authentification ---------------- */
.pub.porte .pub-hero { background: #05091A url(/static/scenes/bureau.webp) 0% 46% / 330% auto no-repeat; }
.pub.porte.porte-badge .pub-hero { background-position: 91% 34%; background-size: 300% auto; }
.pub.porte .pub-hero::before { content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(3,6,15,.78) 0%, rgba(3,6,15,.25) 32%, rgba(3,6,15,.35) 55%, rgba(3,6,15,.94) 82%); }
.pub.porte .pub-hero > *:not(.ph-fx) { position: relative; z-index: 1; }
.pub.porte .pub-hero .illu { min-height: 140px; }
.pub-hero .porte-plaque { position: static; transform: none; align-self: flex-start; margin-top: 30px; padding: 12px 22px; gap: 2px; flex-direction: column; align-items: flex-start; }
.pub-hero .porte-plaque span { display: block; font-weight: 700; letter-spacing: .3em; font-size: 14px; }
.pub-hero .porte-plaque em { font-size: 10.5px; }
@media (max-width: 900px) {
  .hs-tag { display: none; }
  .hud-gauche { left: 10px; right: 10px; bottom: 64px; } .hud-droite { right: 10px; bottom: 10px; } .hud-centre { bottom: 120px; }
  .btn-bureau { padding: 0 10px; }
}
/* Ajustements de la séquence d'entrée */
body.entree-active .top { opacity: 0; pointer-events: none; }
body.scene-mode .top { transition: opacity .6s ease; }
.scene.attente .pli { visibility: hidden; animation: none; }
.scene.attente .vivant { animation: none; transform: scale(0); }
.etiq span { font-size: var(--fs, clamp(10px, .7cqw, 15px)); }
.etiq.deux-lignes { height: auto !important; min-height: 2.2cqw; padding-top: .25cqw; padding-bottom: .25cqw; }
.etiq.deux-lignes span { white-space: normal; line-height: 1.15; overflow: visible; }
/* Veille juridique : document « Journal officiel » posé sur le bureau, devant le dossier de revue */
.doc-veille { position: absolute; inset: 0; display: flex; align-items: center; gap: .45cqw; padding: 0 .5cqw; border-radius: .15cqw;
  transform: rotate(-2.5deg) skewX(-7deg); transform-origin: 50% 50%;
  background: linear-gradient(180deg, #F7F2E6 0%, #E9DFC9 100%); color: #14204A;
  box-shadow: 0 .35cqw .9cqw rgba(0,0,0,.55), inset 0 0 0 1px rgba(255,255,255,.5), inset 0 -.15cqw 0 rgba(0,0,0,.08);
  border-left: .3cqw solid var(--navy); transition: transform .35s cubic-bezier(.2,.8,.2,1), box-shadow .35s; }
.doc-veille.nouveau { border-left-color: var(--red); }
.dv-sceau { display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; width: 1.35cqw; height: 1.35cqw; min-width: 16px; min-height: 16px;
  border-radius: 50%; color: #fff; background: radial-gradient(circle at 35% 35%, #2A63E0, #0B1D4F 75%); box-shadow: inset 0 -2px 3px rgba(0,0,0,.3); }
.doc-veille.nouveau .dv-sceau { background: radial-gradient(circle at 35% 35%, #F0444A, #B4151B 72%); }
.dv-sceau .ic { width: 62%; height: 62%; }
.dv-txt { display: flex; flex-direction: column; line-height: 1.08; min-width: 0; }
.dv-txt b { font-size: clamp(9px, .66cqw, 14px); font-weight: 800; letter-spacing: .08em; text-transform: uppercase; white-space: nowrap; }
.dv-txt em { font-style: normal; font-size: clamp(7.5px, .46cqw, 10px); color: #5A5141; white-space: nowrap; letter-spacing: .02em; }
.hs-veille:hover .doc-veille, .hs-veille:focus-visible .doc-veille { transform: rotate(-1deg) skewX(-7deg) translateY(-.25cqw); box-shadow: 0 .7cqw 1.4cqw rgba(0,0,0,.6); }
.hs-veille .hs-tag { left: auto; right: 0; transform: translateY(6px); }
.hs-veille:hover .hs-tag, .hs-veille:focus-visible .hs-tag { transform: none; }
.scene.attente .doc-veille { opacity: 0; }
.scene .doc-veille { animation: doc-pose .9s cubic-bezier(.2,.9,.3,1.1) 1.2s backwards; }
.scene.attente .doc-veille { animation: none; }
@keyframes doc-pose { from { opacity: 0; transform: translateY(-2.2cqw) rotate(-9deg) skewX(-7deg); } }
/* ---------------- Assistant CONFORM'AREA (assistant IA intégré) ---------------- */
.assist-fab { position: fixed; right: 22px; bottom: 22px; z-index: 120; display: inline-flex; align-items: center; gap: 9px; height: 48px; padding: 0 18px 0 8px;
  border-radius: 99px; border: 1px solid rgba(226,196,142,.55); cursor: pointer; color: #fff; font: 600 13px var(--font);
  background: linear-gradient(135deg, #16295E, #0B1D4F 60%, #081436); box-shadow: 0 12px 30px rgba(11,29,79,.4), 0 0 0 4px rgba(42,99,224,.12);
  transition: transform .25s cubic-bezier(.2,.8,.2,1), box-shadow .25s; }
.assist-fab:hover { transform: translateY(-2px); box-shadow: 0 16px 36px rgba(11,29,79,.5), 0 0 0 6px rgba(42,99,224,.16); }
.af-ic { width: 34px; height: 34px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; color: #0B1D4F;
  background: radial-gradient(circle at 30% 30%, #FFF4DE, var(--gold-2) 55%, var(--gold)); }
body.scene-mode .assist-fab, body.assistant-ouvert .assist-fab { opacity: 0; pointer-events: none; transform: scale(.9); }
.assist { position: fixed; top: 12px; right: 12px; bottom: 12px; z-index: 130; width: min(440px, calc(100vw - 24px)); display: flex; flex-direction: column;
  border-radius: 20px; overflow: hidden; color: #E6ECF7; background: rgba(7,12,28,.94); backdrop-filter: blur(20px) saturate(1.3);
  -webkit-backdrop-filter: blur(20px) saturate(1.3); border: 1px solid rgba(255,255,255,.1); box-shadow: 0 30px 90px rgba(0,0,0,.5);
  transform: translateX(calc(100% + 24px)); opacity: 0; transition: transform .45s cubic-bezier(.2,.8,.2,1), opacity .3s; }
.assist.on { transform: none; opacity: 1; }
.as-tete { display: flex; align-items: center; gap: 10px; padding: 14px 14px 12px 16px; border-bottom: 1px solid rgba(255,255,255,.08);
  background: linear-gradient(180deg, rgba(42,99,224,.16), transparent); }
.as-logo { width: 32px; height: 32px; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center; color: #0B1D4F;
  background: radial-gradient(circle at 30% 30%, #FFF4DE, var(--gold-2) 55%, var(--gold)); flex-shrink: 0; }
.as-titre { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.as-titre b { font-size: 14px; color: #fff; font-weight: 600; } .as-titre span { font-size: 11px; color: #9FB0CF; }
.assist.mode-ia .as-titre span { color: var(--gold-2); }
.as-btn { width: 32px; height: 32px; border-radius: 9px; border: 1px solid rgba(255,255,255,.1); background: rgba(255,255,255,.05); color: #C9D3E6; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; }
.as-btn:hover { background: rgba(255,255,255,.12); color: #fff; }
.as-fil { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 12px; scroll-behavior: smooth; }
.as-accueil p { font-size: 13px; line-height: 1.55; color: #C9D3E6; margin: 0 0 12px; } .as-accueil b { color: #fff; }
.as-suggestions { display: flex; flex-direction: column; gap: 7px; }
.as-sugg { text-align: left; padding: 9px 12px; border-radius: 11px; cursor: pointer; font: 12.5px var(--font); color: #E6ECF7;
  background: rgba(255,255,255,.05); border: 1px solid rgba(226,196,142,.28); transition: background .2s, border-color .2s; }
.as-sugg:hover { background: rgba(226,196,142,.1); border-color: rgba(226,196,142,.6); }
.as-msg { max-width: 92%; font-size: 13px; line-height: 1.55; border-radius: 14px; padding: 10px 13px; animation: as-entre .3s cubic-bezier(.2,.8,.2,1); }
@keyframes as-entre { from { opacity: 0; transform: translateY(6px); } }
.as-msg.moi { align-self: flex-end; background: linear-gradient(135deg, #2A63E0, #1550D2); color: #fff; border-bottom-right-radius: 4px; white-space: pre-wrap; }
.as-msg.ia { align-self: flex-start; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.08); border-bottom-left-radius: 4px; }
.as-corps p { margin: 0 0 7px; } .as-corps p:last-child { margin-bottom: 0; }
.as-corps ul { margin: 4px 0 8px; padding-left: 18px; } .as-corps li { margin-bottom: 4px; }
.as-corps b { color: #fff; }
.as-ref { display: inline-flex; align-items: center; justify-content: center; min-width: 16px; height: 16px; padding: 0 4px; margin-left: 2px; border-radius: 5px;
  font-size: 10px; font-weight: 700; color: #0B1D4F; background: var(--gold-2); vertical-align: 1px; text-decoration: none; }
.as-sources { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; padding-top: 9px; border-top: 1px solid rgba(255,255,255,.08); }
.as-src { display: inline-flex; align-items: center; gap: 6px; max-width: 100%; padding: 4px 9px 4px 4px; border-radius: 8px; font-size: 11px; color: #C9D3E6;
  background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.as-src:hover { color: #fff; border-color: rgba(226,196,142,.6); text-decoration: none; }
.as-src i { font-style: normal; display: inline-flex; align-items: center; justify-content: center; min-width: 18px; height: 18px; border-radius: 5px; font-weight: 700;
  font-size: 10px; color: #0B1D4F; background: var(--gold-2); }
.as-pied { margin-top: 8px; font-size: 10.5px; color: #7F90B2; letter-spacing: .02em; }
.as-msg.attente { display: inline-flex; gap: 5px; padding: 13px 14px; }
.as-msg.attente span { width: 7px; height: 7px; border-radius: 50%; background: var(--gold-2); animation: as-points 1.2s infinite ease-in-out; }
.as-msg.attente span:nth-child(2) { animation-delay: .15s; } .as-msg.attente span:nth-child(3) { animation-delay: .3s; }
@keyframes as-points { 0%, 80%, 100% { opacity: .25; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-4px); } }
.as-saisie { display: flex; align-items: flex-end; gap: 8px; margin: 0 12px; padding: 8px 8px 8px 14px; border-radius: 14px;
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); }
.as-saisie:focus-within { border-color: rgba(226,196,142,.7); box-shadow: 0 0 0 3px rgba(226,196,142,.12); }
.as-saisie textarea { flex: 1; resize: none; border: 0; outline: 0; background: transparent; color: #fff; font: 13px/1.5 var(--font); max-height: 140px; padding: 6px 0; }
.as-saisie textarea::placeholder { color: #7F90B2; }
.as-envoyer { width: 36px; height: 36px; border-radius: 10px; border: 0; cursor: pointer; color: #fff; flex-shrink: 0;
  background: linear-gradient(135deg, #2A63E0, #1550D2); display: inline-flex; align-items: center; justify-content: center; }
.as-envoyer:hover { filter: brightness(1.12); }
.as-mention { margin: 8px 16px 12px; font-size: 10.5px; color: #7F90B2; line-height: 1.4; }
.hud-ia { border-color: rgba(226,196,142,.55); color: #F3E3C2; }
@media (max-width: 900px) { .assist { top: 0; right: 0; bottom: 0; width: 100vw; border-radius: 0; } .assist-fab .af-txt { display: none; } .assist-fab { padding: 0 7px; } }

/* ---------------- Panneau d'accueil des pages publiques : composition et effets (v3.1) ---------------- */
.pub-hero { background: #040815; padding: 40px 52px 28px; isolation: isolate; --mx: 0; --my: 0; }
.pub.porte .pub-hero, .pub.porte.porte-badge .pub-hero { background: #040815; }
.pub.porte .pub-hero::before { display: none; }
.pub-hero > *:not(.ph-fx) { position: relative; z-index: 1; }

/* Fond : scène du bureau en mouvement lent, voile, lumières, sol en perspective, particules, balayage */
.ph-fx { position: absolute; inset: -3%; z-index: 0; pointer-events: none; overflow: hidden;
  transform: translate3d(calc(var(--mx) * -12px), calc(var(--my) * -9px), 0); transition: transform .7s cubic-bezier(.2,.8,.2,1); }
.ph-fx::before { content: ""; position: absolute; inset: 0; z-index: 0; background: url(/static/scenes/bureau.webp) 0% 46% / 330% auto no-repeat;
  filter: saturate(1.05) brightness(.78) blur(2.5px); animation: ph-zoom 30s ease-in-out infinite alternate; }
.pub.porte-badge .ph-fx::before { background-position: 91% 34%; background-size: 300% auto; }
.ph-fx::after { content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(180deg, rgba(3,7,20,.94) 0%, rgba(3,7,20,.7) 22%, rgba(3,7,20,.5) 40%, rgba(3,7,20,.62) 58%, rgba(3,7,20,.97) 90%),
              radial-gradient(ellipse 90% 60% at 0% 100%, rgba(3,7,20,.85), transparent 70%); }
@keyframes ph-zoom { from { transform: scale(1); } to { transform: scale(1.08) translate(-1.5%, -1%); } }
.ph-aurore { position: absolute; z-index: 2; border-radius: 50%; filter: blur(60px); mix-blend-mode: screen; aspect-ratio: 1; }
.ph-aurore.a1 { width: 62%; left: -16%; top: -20%; opacity: .55; background: radial-gradient(circle, #1F67E8, transparent 66%); animation: ph-derive1 18s ease-in-out infinite alternate; }
.ph-aurore.a2 { width: 48%; right: -16%; top: 26%; opacity: .3; background: radial-gradient(circle, #C9A46A, transparent 66%); animation: ph-derive2 23s ease-in-out infinite alternate; }
.ph-aurore.a3 { width: 72%; left: 8%; bottom: -42%; opacity: .42; background: radial-gradient(circle, #2A3FD8, transparent 66%); animation: ph-derive3 27s ease-in-out infinite alternate; }
@keyframes ph-derive1 { to { transform: translate(20%, 16%) scale(1.15); } }
@keyframes ph-derive2 { to { transform: translate(-26%, -18%) scale(1.2); } }
@keyframes ph-derive3 { to { transform: translate(-14%, -10%) scale(.9); } }
.ph-grille { position: absolute; z-index: 3; left: -25%; right: -25%; bottom: -8%; height: 46%;
  background-image: linear-gradient(rgba(120,160,255,.16) 1px, transparent 1px), linear-gradient(90deg, rgba(120,160,255,.16) 1px, transparent 1px);
  background-size: 46px 46px; transform: perspective(520px) rotateX(64deg); transform-origin: 50% 100%;
  -webkit-mask-image: linear-gradient(0deg, #000 8%, transparent 88%); mask-image: linear-gradient(0deg, #000 8%, transparent 88%);
  animation: ph-sol 7s linear infinite; }
@keyframes ph-sol { to { background-position: 0 46px, 0 0; } }
.ph-particules { position: absolute; z-index: 3; left: 0; right: 0; top: 0; bottom: -220px; opacity: .6;
  background-image: radial-gradient(1.6px 1.6px at 20px 30px, rgba(226,196,142,.95), transparent), radial-gradient(1px 1px at 120px 80px, rgba(255,255,255,.85), transparent),
                    radial-gradient(1.3px 1.3px at 200px 160px, rgba(160,190,255,.95), transparent), radial-gradient(1px 1px at 60px 190px, rgba(255,255,255,.6), transparent);
  background-size: 240px 220px; animation: ph-monte 38s linear infinite; }
.ph-particules.p2 { bottom: -300px; opacity: .35; background-size: 330px 300px; animation: ph-monte2 64s linear infinite; }
@keyframes ph-monte { to { transform: translateY(-220px); } }
@keyframes ph-monte2 { to { transform: translateY(-300px); } }
.ph-balayage { position: absolute; z-index: 4; top: -20%; bottom: -20%; width: 34%; left: -45%; transform: skewX(-14deg);
  background: linear-gradient(100deg, transparent, rgba(255,255,255,.06) 42%, rgba(226,196,142,.11) 50%, transparent 60%); animation: ph-balaye 10s ease-in-out 1.8s infinite; }
@keyframes ph-balaye { 0% { left: -45%; } 42%, 100% { left: 135%; } }

/* Marque : bouclier dans un anneau lumineux */
.pub-hero .brand-row { gap: 6px; }
.pub-hero .brand { gap: 14px; }
.ph-sceau { position: relative; display: inline-grid; place-items: center; width: 54px; height: 54px; flex-shrink: 0; }
.ph-sceau::before { content: ""; position: absolute; inset: 0; border-radius: 50%;
  background: conic-gradient(from 0deg, transparent 0 55%, rgba(226,196,142,.95) 72%, rgba(42,99,224,.95) 88%, transparent 100%);
  -webkit-mask: radial-gradient(circle, transparent 62%, #000 64%); mask: radial-gradient(circle, transparent 62%, #000 64%); animation: ph-tourne 5s linear infinite; }
.ph-sceau::after { content: ""; position: absolute; inset: 9px; border-radius: 50%; background: radial-gradient(circle, rgba(42,99,224,.55), transparent 70%);
  filter: blur(6px); animation: ph-pulse 3.2s ease-in-out infinite; }
.pub-hero .ph-sceau .logo-shield { position: relative; z-index: 1; width: 30px; height: 35px; filter: drop-shadow(0 4px 12px rgba(31,103,232,.7)); }
@keyframes ph-tourne { to { transform: rotate(360deg); } }
@keyframes ph-pulse { 50% { opacity: .45; transform: scale(.85); } }
.pub-hero .brand .t1 { font-size: 19px; letter-spacing: .22em; }
.pub-hero .brand .t2 { font-size: 10px; letter-spacing: .04em; }
.pub-hero .by-a404 { margin-left: 68px; letter-spacing: .2em; }

/* Composition centrale */
.ph-scene { flex: 1; display: flex; flex-direction: column; justify-content: center; gap: 30px; padding: 28px 0 22px; }
.ph-kicker { display: inline-flex; align-items: center; gap: 12px; margin-bottom: 18px; font-size: 11px; font-weight: 600; letter-spacing: .3em;
  text-transform: uppercase; color: #E2C48E; }
.ph-kicker span { width: 40px; height: 1px; background: linear-gradient(90deg, transparent, #E2C48E); }
.pub-hero h1 { font-size: clamp(30px, 2.95vw, 48px); line-height: 1.1; font-weight: 700; letter-spacing: -.02em; max-width: 580px; margin-bottom: 16px;
  text-shadow: 0 2px 30px rgba(0,0,0,.5); }
.pub-hero h1 em { font-style: normal; color: transparent; -webkit-background-clip: text; background-clip: text; background-size: 220% 100%;
  background-image: linear-gradient(100deg, #E2C48E 0%, #FFF4DA 22%, #C9A46A 45%, #FFF4DA 70%, #E2C48E 100%); animation: ph-or 6s linear infinite; }
@keyframes ph-or { to { background-position: -220% 0; } }
.pub-hero .lead { font-size: 14px; line-height: 1.65; max-width: 500px; color: #C9D5EC; }

/* Cartes de verre flottantes */
.ph-cartes { display: grid; gap: 12px; max-width: 440px; transform: translate3d(calc(var(--mx) * 16px), calc(var(--my) * 11px), 0);
  transition: transform .6s cubic-bezier(.2,.8,.2,1); }
.ph-carte { position: relative; overflow: hidden; display: flex; align-items: center; gap: 14px; padding: 12px 16px; border-radius: 14px;
  background: linear-gradient(135deg, rgba(255,255,255,.13), rgba(255,255,255,.04)); border: 1px solid rgba(255,255,255,.15);
  -webkit-backdrop-filter: blur(14px) saturate(1.3); backdrop-filter: blur(14px) saturate(1.3);
  box-shadow: 0 18px 40px rgba(0,0,0,.38), inset 0 1px 0 rgba(255,255,255,.16); }
.ph-carte::after { content: ""; position: absolute; inset: 0; transform: translateX(-120%);
  background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,.14) 50%, transparent 70%); animation: ph-reflet 8s ease-in-out infinite; }
.ph-carte.c2 { margin-left: 36px; } .ph-carte.c3 { margin-left: 72px; }
.ph-carte.c2::after { animation-delay: 1.2s; } .ph-carte.c3::after { animation-delay: 2.4s; }
@keyframes ph-reflet { 0%, 55% { transform: translateX(-120%); } 85%, 100% { transform: translateX(120%); } }
.ph-carte b { display: block; font-size: 13px; color: #fff; margin-bottom: 2px; }
.ph-carte em { font-style: normal; font-size: 11px; color: #AFC0E0; }
.ph-ico { display: grid; place-items: center; flex-shrink: 0; width: 38px; height: 38px; border-radius: 10px; color: #fff;
  background: linear-gradient(135deg, #2A63E0, #0F3AA8); box-shadow: 0 6px 16px rgba(42,99,224,.45); }
.ph-ico.or { color: #1B1405; background: linear-gradient(135deg, #F0D7A6, #A8803F); box-shadow: 0 6px 16px rgba(201,164,106,.45); }
.ph-direct { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; font-size: 10px; letter-spacing: .08em; text-transform: uppercase; color: #9EF0C0; white-space: nowrap; }
.ph-direct i { width: 7px; height: 7px; border-radius: 50%; background: #2BD47D; animation: ph-ping 1.8s ease-out infinite; }
@keyframes ph-ping { 0% { box-shadow: 0 0 0 0 rgba(43,212,125,.65); } 70%, 100% { box-shadow: 0 0 0 9px rgba(43,212,125,0); } }

/* Pied : garanties et ruban des référentiels */
.ph-bas { display: grid; gap: 14px; }
.pub-hero .ph-bas .feats { margin-top: 0; }
.ph-ruban { overflow: hidden; padding-top: 13px; border-top: 1px solid rgba(255,255,255,.09);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.ph-defile { display: flex; width: max-content; animation: ph-defile 40s linear infinite; }
.ph-defile span { position: relative; padding: 0 20px; white-space: nowrap; font-size: 10.5px; letter-spacing: .18em; text-transform: uppercase; color: rgba(215,225,242,.6); }
.ph-defile span::after { content: ""; position: absolute; right: -3px; top: 50%; width: 5px; height: 5px; transform: translateY(-50%) rotate(45deg); background: rgba(226,196,142,.7); }
@keyframes ph-defile { to { transform: translateX(-50%); } }

/* Entrée en scène échelonnée, puis flottement des cartes */
.pub-hero .brand-row, .ph-kicker, .pub-hero h1, .pub-hero .lead, .ph-bas { animation: ph-entre 1s cubic-bezier(.2,.8,.2,1) backwards; }
.pub-hero .brand-row { animation-delay: .05s; } .ph-kicker { animation-delay: .2s; } .pub-hero h1 { animation-delay: .32s; }
.pub-hero .lead { animation-delay: .48s; } .ph-bas { animation-delay: 1.05s; }
.pub-hero h1 em { animation: ph-or 6s linear 1.4s infinite; }
.ph-carte { animation: ph-entre-carte 1s cubic-bezier(.2,.8,.2,1) backwards, ph-flotte 7s ease-in-out 2.2s infinite alternate; }
.ph-carte.c1 { animation-delay: .65s, 2.2s; } .ph-carte.c2 { animation-delay: .8s, 3.1s; } .ph-carte.c3 { animation-delay: .95s, 4s; }
@keyframes ph-entre { from { opacity: 0; transform: translateY(18px); filter: blur(6px); } }
@keyframes ph-entre-carte { from { opacity: 0; transform: translateX(-28px) scale(.97); filter: blur(5px); } }
@keyframes ph-flotte { to { transform: translateY(-7px); } }

@media (max-height: 760px) { .ph-carte.c3 { display: none; } .ph-scene { gap: 22px; } }
@media (max-width: 900px) { .ph-cartes, .ph-ruban, .ph-grille { display: none; } .pub-hero { padding: 28px 20px; } .pub-hero .by-a404 { margin-left: 0; } }
@media (prefers-reduced-motion: reduce) {
  .pub-hero *, .pub-hero *::before, .pub-hero *::after, .ph-fx::before { animation: none !important; transition: none !important; }
}

.pub-hero h1 em { text-shadow: none; filter: drop-shadow(0 2px 14px rgba(201,164,106,.35)); }

/* ---------------- Registres réglementaires (espaces de rangement) ---------------- */
.espace-card { display: flex; gap: 16px; align-items: flex-start; color: var(--ink); transition: transform .2s, box-shadow .2s; }
.espace-card:hover { transform: translateY(-2px); box-shadow: 0 14px 30px rgba(15,23,42,.12); }
.espace-card h3 { margin: 0 0 4px; font-size: 16px; }
.ec-ico { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; flex-shrink: 0; color: #fff;
  background: linear-gradient(135deg, #2A63E0, #0F3AA8); box-shadow: 0 6px 16px rgba(42,99,224,.3); }
.reg-card { display: flex; flex-direction: column; gap: 6px; color: var(--ink); transition: transform .2s, box-shadow .2s; }
.reg-card:hover { transform: translateY(-2px); box-shadow: 0 14px 30px rgba(15,23,42,.12); }
.reg-card h3 { margin: 4px 0 0; font-size: 15px; }
.reg-card p { margin: 0; }
.rc-top { display: flex; justify-content: space-between; align-items: center; }
.rc-ico { width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center; background: var(--blue-soft); color: var(--blue); }
.rc-refs { color: var(--muted-2); font-size: 10.5px; }
.rc-kpi { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-top: auto; padding-top: 8px; border-top: 1px solid var(--line); }
.essentiel { padding: 12px 16px; }
.essentiel summary { cursor: pointer; display: flex; gap: 8px; align-items: center; list-style: none; }
.essentiel summary::-webkit-details-marker { display: none; }
.essentiel p { line-height: 1.6; color: var(--ink-2); margin-bottom: 0; }
.reg-section { font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--blue); margin: 16px 0 8px;
  padding-bottom: 6px; border-bottom: 1px solid var(--line); }
.reg-grid { margin-bottom: 0; }
.reg-grid .field.full { grid-column: 1 / -1; }
.seg-on, .multi-on { display: flex; gap: 14px; flex-wrap: wrap; padding: 6px 0; }
.multi-on { gap: 6px 16px; }
.reg-alerte { max-width: 340px; margin-top: 3px; line-height: 1.35; }
.modal.wide { width: 860px; max-height: calc(100vh - 48px); overflow-y: auto; }
tr.clickable { cursor: pointer; }
tr.clickable:hover td { background: #F5F8FF; }
.action-ligne + .action-ligne { margin-top: 10px; }
.foot-inline { display: flex; justify-content: flex-end; margin-top: 14px; }
.inline-block { display: inline-block; }
.reg-histo { list-style: none; margin: 0; padding: 0; max-height: 280px; overflow-y: auto; }
.reg-histo li { padding: 7px 0; border-bottom: 1px solid var(--line); line-height: 1.45; }
.declarations-cta { display: flex; gap: 14px; align-items: center; color: var(--ink); }
.declarations-cta > div { flex: 1; }

/* ---------------- Bureau : horloge réelle, logo de l'organisme, Code OHADA ---------------- */
.ecran-horloge { position: absolute; z-index: 3; pointer-events: none; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: .12cqw; border-radius: .2cqw; color: #fff; text-shadow: 0 1px 4px rgba(0,0,0,.35);
  background: linear-gradient(180deg, #0B4C83 0%, #3F7BB4 45%, #6A9FD3 100%); }
.ecran-horloge b { font-size: 1.55cqw; font-weight: 300; letter-spacing: .02em; line-height: 1; font-variant-numeric: tabular-nums; }
.ecran-horloge span { font-size: .48cqw; opacity: .95; white-space: nowrap; }
.porte-logo { position: absolute; z-index: 3; pointer-events: none; display: grid; place-items: center; padding: .45cqw;
  border-radius: .35cqw; background: linear-gradient(160deg, rgba(255,255,255,.96), rgba(232,236,243,.92));
  box-shadow: 0 .4cqw 1.2cqw rgba(0,0,0,.55), inset 0 0 0 1px rgba(201,164,106,.55); }
.porte-logo img { max-width: 100%; max-height: 100%; object-fit: contain; }
.porte-logo-entree { position: absolute; left: 50%; top: 9%; transform: translateX(-50%); width: clamp(90px, 9vw, 150px); height: clamp(60px, 6vw, 100px);
  display: grid; place-items: center; padding: 8px; border-radius: 8px; background: rgba(255,255,255,.95); box-shadow: 0 8px 24px rgba(0,0,0,.45); }
.porte-logo-entree img { max-width: 100%; max-height: 100%; object-fit: contain; }
.hs-code_ohada { overflow: visible; }
.code-ohada { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .3cqw;
  transform: rotate(-5deg); transform-origin: 50% 100%; border-radius: .18cqw .35cqw .35cqw .18cqw; overflow: hidden;
  background: linear-gradient(100deg, #0E5A27 0%, #17803A 18%, #1B8F42 60%, #146C31 100%);
  box-shadow: .35cqw .4cqw .9cqw rgba(0,0,0,.6), inset -.25cqw 0 0 rgba(0,0,0,.25), inset .18cqw 0 0 rgba(255,255,255,.12);
  transition: transform .35s cubic-bezier(.2,.8,.2,1), box-shadow .35s; }
.code-ohada::after { content: ""; position: absolute; right: -.12cqw; top: 2%; bottom: 2%; width: .28cqw;
  background: repeating-linear-gradient(180deg, #F3EEDF 0 1px, #D6CFBC 1px 2px); }
.co-bande { position: absolute; top: 0; bottom: 0; left: 38%; width: 24%; background: linear-gradient(180deg, #A8ECE6, #7FD8D2); opacity: .92; }
.co-titre { position: relative; font-size: .95cqw; font-weight: 800; letter-spacing: .06em; color: #F4E04D; text-shadow: 0 1px 2px rgba(0,0,0,.45); }
.co-sous { position: relative; font-size: .36cqw; line-height: 1.15; color: #fff; text-align: center; padding: 0 .3cqw; }
.co-pied { position: absolute; bottom: 6%; font-size: .34cqw; font-weight: 700; color: #F4E04D; letter-spacing: .08em; }
.hs-code_ohada:hover .code-ohada, .hs-code_ohada:focus-visible .code-ohada { transform: rotate(-2deg) translateY(-.4cqw); box-shadow: .5cqw .9cqw 1.6cqw rgba(0,0,0,.65); }
.scene.attente .code-ohada, .scene.attente .ecran-horloge, .scene.attente .porte-logo { opacity: 0; }
.scene .code-ohada, .scene .ecran-horloge, .scene .porte-logo { transition: opacity .8s ease .5s, transform .35s cubic-bezier(.2,.8,.2,1); }

/* Légende de la matrice des risques */
.heat-legende { display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: center; margin-top: 10px; font-size: 11px; color: var(--ink-2); }
.heat-legende .hl-titre { width: 100%; font-weight: 700; font-size: 10.5px; letter-spacing: .04em; text-transform: uppercase; color: var(--muted-2); }
.heat-legende span { display: inline-flex; align-items: center; gap: 6px; }
.heat-legende i.c { display: inline-block; width: 14px; height: 14px; border-radius: 3px; }

.diffusion-liste { max-height: 220px; overflow-y: auto; border: 1px solid var(--line); border-radius: 10px; padding: 8px 12px; display: grid; gap: 4px; }

.config-logo { display: flex; gap: 18px; align-items: center; }
.cl-apercu { width: 120px; height: 90px; border-radius: 12px; border: 1px dashed var(--line); display: grid; place-items: center; color: var(--muted-2); background: #F7F9FC; padding: 8px; }
.cl-apercu img { max-width: 100%; max-height: 100%; object-fit: contain; }

/* Références cliquables (clauses ISO, articles AUSCGIE) */
.ref-lien { all: unset; cursor: pointer; color: var(--blue); border-bottom: 1px dotted currentColor; font: inherit; line-height: inherit; }
.ref-lien:hover, .ref-lien:focus-visible { color: #0F3AA8; background: rgba(42,99,224,.08); border-radius: 3px; }
.ref-pop { position: absolute; z-index: 9999; max-width: 380px; background: #fff; color: var(--ink); border: 1px solid var(--line); border-radius: 12px;
  box-shadow: 0 18px 44px rgba(15,23,42,.22); padding: 14px 16px; font-size: 12.5px; line-height: 1.55; animation: refpop .18s ease-out; }
.ref-pop b { display: block; color: #0B1D4F; margin-bottom: 6px; font-size: 12.5px; }
.ref-pop p { margin: 0 0 8px; }
.ref-pop small { display: block; color: var(--muted-2); font-size: 10.5px; }
@keyframes refpop { from { opacity: 0; transform: translateY(-4px); } }

/* Code OHADA couché à plat sur le bureau (perspective, tranche des pages, ombre portée) */
.hs-code_ohada { perspective: 34cqw; perspective-origin: 50% 0%; }
.code-ohada { inset: auto; left: 50%; top: 50%; width: 5.4cqw; height: 7.6cqw; margin: -3.8cqw 0 0 -2.7cqw;
  transform: rotateX(62deg) rotateZ(-24deg); transform-origin: 50% 50%; transform-style: preserve-3d; border-radius: .14cqw .3cqw .3cqw .14cqw;
  box-shadow: 0 .14cqw 0 #EFE9D8, 0 .28cqw 0 #DDD5C0, 0 .42cqw 0 #CFC6AE, .5cqw 1.6cqw 1.2cqw rgba(0,0,0,.55); }
.code-ohada::after { right: -.1cqw; top: 1.5%; bottom: 1.5%; width: .22cqw; }
.co-titre { font-size: 1.05cqw; }
.co-sous { font-size: .4cqw; }
.co-pied { font-size: .36cqw; }
.hs-code_ohada:hover .code-ohada, .hs-code_ohada:focus-visible .code-ohada {
  transform: rotateX(56deg) rotateZ(-24deg) translateZ(.5cqw);
  box-shadow: 0 .14cqw 0 #EFE9D8, 0 .28cqw 0 #DDD5C0, 0 .42cqw 0 #CFC6AE, .8cqw 2.4cqw 1.8cqw rgba(0,0,0,.6); }

.code-ohada { width: 5cqw; height: 7cqw; margin: -3.5cqw 0 0 -2.5cqw; }

/* Code OHADA : à plat sur le plateau, parallèle aux bords du bureau (comme le dossier de revue), entre la tasse et le bord avant */
.hs-code_ohada { perspective: 40cqw; perspective-origin: 50% -40%; }
.code-ohada { width: 5.6cqw; height: 8.2cqw; margin: -4.1cqw 0 0 -2.8cqw; transform: rotateX(66deg) rotateZ(-5deg); }
.hs-code_ohada:hover .code-ohada, .hs-code_ohada:focus-visible .code-ohada { transform: rotateX(60deg) rotateZ(-5deg) translateZ(.4cqw); }

.code-ohada { height: 7.4cqw; margin-top: -3.7cqw; }

.code-ohada { height: 7cqw; margin-top: -3.6cqw; }

/* Code OHADA réduit, posé à plat devant le mug (entre le tapis de souris et le stylo) */
.code-ohada { width: 3.9cqw; height: 5.2cqw; margin: -2.6cqw 0 0 -1.95cqw; }
.code-ohada .co-titre { font-size: .62cqw; } .code-ohada .co-sous, .code-ohada .co-pied { font-size: .32cqw; }

/* Langue et thème : sélecteurs du menu utilisateur et de la page de connexion */
.me-apparence { margin: 0; padding: 4px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.me-choix { display: flex; align-items: center; gap: 6px; padding: 6px 12px; font-size: 13px; color: var(--ink-2); }
.me-choix > span { flex: 1; }
.dropdown .me-choix button, .lang-choix button { width: auto; padding: 3px 8px; border: 1px solid var(--line); border-radius: 6px; background: transparent;
  font-size: 11.5px; font-weight: 600; color: var(--muted); cursor: pointer; line-height: 1.4; }
.dropdown .me-choix button:hover, .lang-choix button:hover { border-color: var(--blue); color: var(--blue); }
.dropdown .me-choix button.on, .lang-choix button.on { background: var(--blue); border-color: var(--blue); color: #fff; }
.lang-choix { display: inline-flex; align-items: center; gap: 4px; margin: 0; color: var(--muted); }
html[data-theme="sombre"] .dropdown { background: var(--card); border-color: var(--line); }
html[data-theme="sombre"] .top { background: #0D1526; border-color: var(--line); }
html[data-theme="sombre"] .card, html[data-theme="sombre"] .modal, html[data-theme="sombre"] .drawer, html[data-theme="sombre"] .palette { background: var(--card); color: var(--ink); border-color: var(--line); }
html[data-theme="sombre"] .status-bar { background: #0B1322; border-color: var(--line); color: var(--muted); }
html[data-theme="sombre"] .pub-main { background: var(--bg); color: var(--ink); }

/* Audits : suites des constats dans les modules, évaluation de la liste de contrôle */
.suites { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 6px; }
.suite { display: inline-flex; align-items: center; padding: 2px 8px; border-radius: 999px; background: var(--blue-soft); color: var(--blue-ink);
  font-size: 11px; font-weight: 600; text-decoration: none; white-space: nowrap; }
.suite:hover { background: var(--blue); color: #fff; }
.suite.muted { background: #EEF2F7; color: var(--muted); }
.check-eval { display: flex; gap: 6px; align-items: center; }
.check-eval select { width: 130px; flex: none; } .check-eval input[type=text] { flex: 1; min-width: 0; }
.encadre { background: #F6F8FC; border: 1px solid var(--line); border-left: 3px solid var(--blue); border-radius: 8px; padding: 12px 14px; }
html[data-theme="sombre"] .encadre { background: #0E1728; }

/* Vérificateur des obligations */
.verif-form { border: 1px dashed var(--line); border-radius: 10px; padding: 12px 14px; background: #FAFBFD; }
.verif-form h4 { margin: 0 0 8px; font-size: 13px; display: flex; gap: 6px; align-items: center; }
.verif-points { display: grid; gap: 4px; margin-bottom: 10px; }
html[data-theme="sombre"] .verif-form { background: #0E1728; }

/* Carnets IA */
.carnet { display: grid; grid-template-columns: 300px minmax(0, 1fr) 280px; gap: 16px; align-items: start; }
.carnet-sources, .carnet-notes { position: sticky; top: 76px; max-height: calc(100vh - 120px); overflow-y: auto; }
.src-liste { display: grid; gap: 6px; margin-top: 10px; }
.src { display: flex; gap: 8px; align-items: flex-start; padding: 8px; border: 1px solid var(--line); border-radius: 10px; }
.src.off { opacity: .55; }
.src-ic { color: var(--blue); margin-top: 2px; }
.src-txt { flex: 1; min-width: 0; }
.src-nom { font-size: 12.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.src-act { color: var(--muted); background: none; border: 0; cursor: pointer; padding: 2px; }
.src-act:hover { color: var(--red); }
.carnet-chat { display: flex; flex-direction: column; min-height: 70vh; }
.carnet-fil { flex: 1; display: flex; flex-direction: column; gap: 12px; padding-bottom: 12px; }
.bulle { border-radius: 12px; padding: 12px 14px; max-width: 92%; }
.bulle.moi { align-self: flex-end; background: var(--blue); color: #fff; }
.bulle.moi .muted { color: rgba(255,255,255,.75); }
.bulle.ia { align-self: flex-start; background: #F4F6FA; border: 1px solid var(--line); }
html[data-theme="sombre"] .bulle.ia { background: #0E1728; }
.reponse p { margin: 0 0 8px; line-height: 1.55; } .reponse ul { margin: 0 0 8px 18px; padding: 0; } .reponse li { margin: 2px 0; line-height: 1.5; }
.reponse h4 { margin: 10px 0 6px; font-size: 13.5px; }
.cit { display: inline-flex; align-items: center; justify-content: center; min-width: 17px; height: 17px; padding: 0 4px; margin: 0 1px; border-radius: 9px;
  background: var(--blue-soft); color: var(--blue-ink); font-size: 10.5px; font-weight: 700; text-decoration: none; vertical-align: 1px; }
.cit:hover { background: var(--blue); color: #fff; }
.citations { margin: 10px 0 0 18px; padding: 0; font-size: 12px; display: grid; gap: 4px; }
.citations li:target { background: #FFF7D6; border-radius: 6px; }
.citations blockquote { margin: 6px 0; padding: 8px 10px; border-left: 3px solid var(--blue); background: var(--card); font-size: 12px; white-space: pre-line; max-height: 240px; overflow: auto; }
.web-sources { margin-top: 8px; padding-top: 8px; border-top: 1px dashed var(--line); }
.carnet-accueil { text-align: center; margin: auto; max-width: 420px; padding: 40px 0; }
.carnet-raccourcis { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0; }
.carnet-saisie { border-top: 1px solid var(--line); padding-top: 10px; display: grid; gap: 8px; }
.carnet-saisie textarea { resize: vertical; }
.note { border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; margin-bottom: 8px; }
.note summary { cursor: pointer; list-style: none; }
.carnet-carte { text-decoration: none; color: var(--ink); transition: transform .15s, box-shadow .15s; }
.carnet-carte:hover { transform: translateY(-2px); }
@media (max-width: 1200px) { .carnet { grid-template-columns: 260px minmax(0, 1fr); } .carnet-notes { grid-column: 1 / -1; position: static; max-height: none; } }
@media (max-width: 820px) { .carnet { grid-template-columns: 1fr; } .carnet-sources { position: static; max-height: none; } }

.carnet-sources { overflow-x: hidden; } .src { min-width: 0; } .src-nom { max-width: 100%; }
.carnet-accueil .mico { width: 46px; height: 46px; margin: 0 auto 10px; }

/* Enseigne du logiciel sur l'écran du Bureau */
.ecran-enseigne { position: absolute; z-index: 3; pointer-events: none; display: flex; align-items: center; gap: .6cqw; padding-left: .5cqw;
  background: linear-gradient(90deg, #052145 0%, #062043 70%, rgba(4,34,66,.0) 100%); color: #fff; }
.ecran-enseigne .ee-logo svg { width: 2.1cqw; height: 2.1cqw; }
.ecran-enseigne .ee-txt { display: flex; flex-direction: column; gap: .25cqw; line-height: 1; }
.ecran-enseigne b { font-size: 1.15cqw; font-weight: 700; letter-spacing: .04em; white-space: nowrap; }
.ecran-enseigne em { font-style: normal; font-size: .72cqw; opacity: .9; white-space: nowrap; }
.scene.attente .ecran-enseigne { opacity: 0; } .scene .ecran-enseigne { transition: opacity .8s ease .5s; }

/* ---------------- Aide à la prise en main (programme J1–J365, pilote automatique) ---------------- */
.pm-liste { margin: 8px 0 12px; padding-left: 18px; line-height: 1.6; }
.pm-pilote { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 16px; border-left: 4px solid var(--muted-2); }
.pm-pilote.on { border-left-color: var(--green); }
.pm-pilote-ic { width: 42px; height: 42px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: var(--line-2); color: var(--muted); }
.pm-pilote.on .pm-pilote-ic { background: var(--green-soft); color: var(--green-ink); }
.pm-mois { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 10px; }
.pm-mois a { display: flex; flex-direction: column; align-items: center; min-width: 52px; padding: 6px 8px; border: 1px solid var(--line); border-top: 3px solid var(--mc); border-radius: 8px; font-weight: 700; font-size: 12px; color: var(--ink); background: var(--card); }
.pm-mois a span { font-weight: 400; font-size: 10.5px; color: var(--muted); }
.pm-mois a.on { background: var(--mc); color: #fff; } .pm-mois a.on span { color: rgba(255,255,255,.85); }
.pm-mois a:hover { text-decoration: none; }
.pm-phase { padding: 10px 14px; border-radius: 9px; border-left: 4px solid var(--mc); background: var(--card); margin-bottom: 14px; font-size: 12.5px; box-shadow: var(--shadow); }
.pm-routines { padding: 10px 16px 14px; font-size: 12px; }
.pm-graphe-zone { overflow-x: auto; padding: 4px 0 8px; }
.pm-graphe { display: block; font-family: var(--font); }
.pm-graphe .pm-arc { stroke: #E5A51A; stroke-width: 2; }
.pm-graphe .pm-pointe { fill: #E5A51A; }
.pm-graphe .pm-duree { font-size: 10px; fill: var(--ink-2); }
.pm-graphe circle { fill: var(--card); stroke-width: 3.5; }
.pm-graphe .pm-noeud.fait circle { fill: var(--green-soft); }
.pm-graphe .pm-noeud.encours circle { fill: var(--blue-soft); }
.pm-graphe .pm-noeud.retard circle { fill: var(--red-soft); stroke-dasharray: 6 3; }
.pm-graphe .pm-noeud:hover circle { stroke-width: 5; }
.pm-graphe .pm-id { font-size: 11px; font-weight: 700; fill: var(--ink); }
.pm-graphe .pm-lib { font-size: 9.5px; fill: var(--ink-2); }
.pm-graphe .pm-dates { font-size: 9.5px; fill: var(--muted); }
.pm-graphe .pm-ext { font-size: 9px; fill: var(--blue); font-style: italic; }
.pm-legende { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; color: var(--muted); margin-bottom: 8px; }
.pm-l { display: inline-block; width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--muted-2); background: var(--card); margin-left: 8px; }
.pm-l.fait { background: var(--green-soft); } .pm-l.encours { background: var(--blue-soft); } .pm-l.retard { background: var(--red-soft); border-style: dashed; }
.pm-gantt-zone { overflow-x: auto; }
.pm-gantt { border-collapse: collapse; font-size: 11px; }
.pm-gantt th, .pm-gantt td { border: 1px solid var(--line-2); padding: 0; text-align: center; min-width: 26px; height: 30px; }
.pm-gantt th { font-weight: 600; font-size: 9.5px; color: var(--ink-2); padding: 3px 0; }
.pm-gantt th span { display: block; line-height: 1.25; }
.pm-gantt .pm-g-fix { position: sticky; left: 0; z-index: 1; background: var(--card); text-align: left; min-width: 280px; max-width: 280px; padding: 4px 8px; }
.pm-gantt .we { background: var(--line-2); } .pm-gantt .fe { background: #FDE2C8; }
.pm-gantt .auj { box-shadow: inset 0 0 0 2px var(--blue); }
.pm-g-on { display: flex; align-items: center; justify-content: center; height: 18px; margin: 0 1px; border-radius: 4px; background: var(--mc); color: #fff; font-size: 10px; }
.pm-g-on.ok { background: var(--green); } .pm-g-on.crit { background: var(--red); }
.gantt .pm-auj { position: absolute; top: -3px; bottom: -3px; width: 2px; background: var(--red); }
.pm-jour td { vertical-align: top; }
.pm-jour tr.pm-weekend td { background: var(--line-2); color: var(--muted); }
.pm-jour tr.pm-ferie td { background: #FFF1E3; }
.pm-jour tr.auj td { box-shadow: inset 0 2px 0 var(--blue), inset 0 -2px 0 var(--blue); }
.pm-dl { display: grid; grid-template-columns: 190px 1fr; gap: 8px 14px; margin: 14px 0; font-size: 12.5px; }
.pm-dl dt { color: var(--muted); font-weight: 600; } .pm-dl dd { margin: 0; }
html[data-theme="sombre"] .pm-gantt .fe, html[data-theme="sombre"] .pm-jour tr.pm-ferie td { background: #3A2A16; }
@media (max-width: 700px) { .pm-dl { grid-template-columns: 1fr; } .pm-gantt .pm-g-fix { min-width: 170px; max-width: 170px; } }
/* ---------------- Aide : foire aux questions ---------------- */
.faq-essentiel .card { padding: 14px 16px; }
.faq-sommaire { display: flex; flex-wrap: wrap; gap: 6px; }
.faq-sommaire a { display: inline-flex; align-items: center; gap: 5px; padding: 5px 10px; border: 1px solid var(--line); border-radius: 16px; font-size: 11.5px; color: var(--ink-2); background: var(--card); }
.faq-sommaire a:hover { text-decoration: none; border-color: var(--blue); color: var(--blue); }
.faq-bloc { scroll-margin-top: 80px; }
.faq-q { border-top: 1px solid var(--line-2); }
.faq-q summary { cursor: pointer; padding: 10px 4px; font-weight: 600; font-size: 13px; color: var(--ink); list-style: none; display: flex; gap: 8px; }
.faq-q summary::-webkit-details-marker { display: none; }
.faq-q summary::before { content: "+"; color: var(--blue); font-weight: 700; width: 12px; flex: none; }
.faq-q[open] summary::before { content: "−"; }
.faq-q summary:hover { color: var(--blue); }
.faq-q p { margin: 0 0 12px 20px; color: var(--ink-2); line-height: 1.55; font-size: 12.5px; max-width: 900px; }
/* ---------------- Espace détente ---------------- */
.dt-jeu-tete { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.dt-num { width: 40px; height: 40px; border-radius: 50%; background: var(--blue-soft); color: var(--blue-ink); display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 18px; }
.dt-scene { display: flex; flex-direction: column; padding: 10px 12px; border: 1px solid var(--line); border-radius: 9px; margin-bottom: 8px; color: var(--ink); }
.dt-scene:hover { text-decoration: none; border-color: var(--blue); }
.dt-barre { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 14px; padding: 12px 16px; }
.dt-chrono { display: inline-flex; align-items: center; gap: 5px; }
.dt-actions { margin-left: auto; display: flex; gap: 6px; }
.dt-images { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.dt-img { margin: 0; border-radius: 12px; overflow: hidden; box-shadow: var(--shadow); background: #fff; }
.dt-img svg { display: block; width: 100%; height: auto; cursor: crosshair; user-select: none; }
.dt-img .dt-ok { fill: none; stroke: #16A34A; stroke-width: 4; }
.dt-img .dt-solution { fill: none; stroke: #F97316; stroke-width: 4; stroke-dasharray: 8 5; }
.dt-img .dt-rate { fill: rgba(220,38,38,.35); stroke: #DC2626; stroke-width: 2; }
.dt-img .dt-indice { fill: rgba(250,204,21,.18); stroke: #EAB308; stroke-width: 3; animation: dt-clignote .4s ease-in-out 4 alternate; }
@keyframes dt-clignote { from { opacity: .2; } to { opacity: 1; } }
.dt-fin { margin-top: 14px; border-left: 4px solid var(--green); }
.hs-souris { border-radius: 50%; }
@media (max-width: 760px) { .dt-images { grid-template-columns: 1fr; } .dt-actions { margin-left: 0; } }
/* ---------------- Corporate governance : schéma capitalistique ---------------- */
.grp-zone { overflow: auto; border: 1px solid var(--line); border-radius: 10px; background: #fff; max-height: 720px; }
.grp-schema { display: block; margin: 0 auto; }
/* ---------------- Téléphones et tablettes : barre du haut et grands tableaux ---------------- */
@media (max-width: 900px) {
  .top { padding: 0 12px; gap: 8px; }
  .top-right { gap: 6px; min-width: 0; }
  .org-chip { display: none; }                         /* nom de l'organisme : déjà en bas du menu */
  .me > div, .me > .ic { display: none; }              /* avatar seul ; nom et rôle dans le menu déroulant */
  .content { padding: 14px 12px 28px; }
  .crumbs { flex-wrap: wrap; row-gap: 2px; }
  .page-head h1 { font-size: 18px; }
  /* Tous les tableaux défilent horizontalement dans leur carte, sans élargir la page */
  .content table { display: block; max-width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .content .card { min-width: 0; }
  .grp-zone, .pm-gantt-zone, .pm-graphe-zone { -webkit-overflow-scrolling: touch; }
}
@media (max-width: 560px) {
  .bb-txt { display: none; }                           /* bouton Bureau / Poste de travail : icône seule */
  .btn-bureau { padding: 0 9px; }
  .g4, .g5 { grid-template-columns: 1fr 1fr; gap: 10px; }
  .kpi .val { font-size: 22px; }
  .page-head .actions .btn { flex: 1 1 auto; justify-content: center; }
  .tabs a { padding: 9px 10px; }
  .form-actions { flex-wrap: wrap; }
}
html, body { max-width: 100%; overflow-x: clip; }   /* clip : pas de conteneur de défilement, la barre du haut reste collante */@media (max-width: 900px) {
  .status-bar { flex-wrap: wrap; padding: 10px 12px; gap: 6px 12px; }
  .status-bar .links { margin-left: 0; flex-wrap: wrap; gap: 6px 12px; }
  .fsearch { min-width: 0; width: 100%; }
  .fsearch input { min-width: 0; width: 100%; height: auto; padding: 0; border: 0; box-shadow: none; }
}