/* Q-Review365 : système de design « clair et aéré » (fond dégradé violet, grand conteneur blanc, cartes arrondies, accent violet).
   Clair par défaut ; mode sombre assorti par bascule (theme.js). Aucun style en ligne n'est autorisé par la politique de sécurité : tout passe par ces classes. */
:root { color-scheme: light dark; --font: "Inter", ui-sans-serif, system-ui, -apple-system, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
        --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace; --r-xl: 38px; --r-lg: 26px; --r-md: 16px; --r-sm: 12px; }
:root, :root[data-theme="light"] {
  --page: linear-gradient(135deg, #cdb0ff 0%, #a78bfa 42%, #7c5cf0 100%); --frame: #ffffff; --canvas: #eef1fb; --card: #ffffff; --card-2: #f6f7fd;
  --text: #1b1744; --muted: #666d8f; --faint: #9aa0bf; --border: #e7eaf6; --border-strong: #d6dbee;
  --accent: #6d3df5; --accent-2: #8b5cf6; --accent-grad: linear-gradient(135deg, #8b4dff 0%, #4f2cdc 100%); --accent-soft: #efe9ff; --accent-ink: #ffffff; --accent-line: rgba(109, 61, 245, .35);
  --crit: #e11d48; --high: #f97316; --mid: #d99a06; --low: #64748b; --ok: #16a34a; --warn: #d97706; --bad: #e11d48; --info: #2563eb;
  --ok-soft: #e1f7e8; --bad-soft: #ffe4ea; --warn-soft: #fff0d3; --info-soft: #e3edff; --tip: #12102e;
  --shadow: 0 1px 2px rgba(60, 40, 160, .05), 0 22px 44px -28px rgba(60, 40, 160, .28); --shell-shadow: 0 40px 90px -40px rgba(40, 20, 120, .55); --input: #f6f7fd;
}
:root[data-theme="dark"] {
  --page: linear-gradient(135deg, #2a1d6b 0%, #1a1346 45%, #0d0a26 100%); --frame: #141029; --canvas: #0f0c22; --card: #1b1740; --card-2: #221d4d;
  --text: #f1efff; --muted: #aaa6d3; --faint: #7c78a8; --border: rgba(255, 255, 255, .08); --border-strong: rgba(255, 255, 255, .16);
  --accent: #a78bfa; --accent-2: #c4b5fd; --accent-grad: linear-gradient(135deg, #8b4dff 0%, #5b3cf0 100%); --accent-soft: rgba(139, 92, 246, .18); --accent-ink: #ffffff; --accent-line: rgba(167, 139, 250, .45);
  --crit: #fb7185; --high: #fb923c; --mid: #fbbf24; --low: #94a3b8; --ok: #4ade80; --warn: #fbbf24; --bad: #fb7185; --info: #60a5fa;
  --ok-soft: rgba(74, 222, 128, .14); --bad-soft: rgba(251, 113, 133, .15); --warn-soft: rgba(251, 191, 36, .15); --info-soft: rgba(96, 165, 250, .15); --tip: #08061a;
  --shadow: 0 1px 0 rgba(255, 255, 255, .04) inset, 0 22px 44px -28px rgba(0, 0, 0, .6); --shell-shadow: 0 40px 90px -30px rgba(0, 0, 0, .7); --input: rgba(255, 255, 255, .05);
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font: 14.5px/1.55 var(--font); color: var(--text); background: var(--page); background-attachment: fixed; -webkit-font-smoothing: antialiased; }
a { color: var(--accent); text-decoration: none; } a:hover { text-decoration: underline; text-underline-offset: 3px; }
h1 { font-size: 1.85rem; line-height: 1.15; margin: 0; letter-spacing: -.03em; font-weight: 750; }
h2 { font-size: 1.12rem; margin: 0 0 16px; letter-spacing: -.015em; font-weight: 720; }
h3 { font-size: .72rem; margin: 22px 0 8px; color: var(--faint); text-transform: uppercase; letter-spacing: .1em; font-weight: 700; }
p { margin: .5rem 0 1rem; } small, .muted { color: var(--muted); }
code { font: .85em var(--mono); background: var(--card-2); border: 1px solid var(--border); padding: .1em .45em; border-radius: 7px; }
:focus-visible { outline: 3px solid var(--accent-line); outline-offset: 2px; border-radius: 8px; }
::selection { background: var(--accent-soft); }
.ico { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

/* --- cadre : fond dégradé + grand conteneur arrondi --- */
.stage { min-height: 100vh; padding: clamp(0px, 2.4vw, 34px); }
.shell { display: grid; grid-template-columns: 296px minmax(0, 1fr); background: var(--frame); border-radius: var(--r-xl); box-shadow: var(--shell-shadow); min-height: calc(100vh - 2 * clamp(0px, 2.4vw, 34px)); overflow: hidden; }
.sidebar { padding: 30px 22px 22px; display: flex; flex-direction: column; gap: 6px; position: sticky; top: 0; height: 100vh; max-height: 100%; overflow-y: auto; }
.brand { display: flex; align-items: center; gap: 12px; padding: 4px 12px 28px; font-weight: 780; font-size: 1.28rem; letter-spacing: -.035em; color: var(--accent); }
.brand-mark { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; color: #fff; font-weight: 800; font-size: 1.05rem; background: var(--accent-grad); box-shadow: 0 10px 22px -8px var(--accent-line); }
.brand small { display: block; font-size: .62rem; letter-spacing: .18em; text-transform: uppercase; color: var(--faint); font-weight: 650; margin-top: -2px; }
.nav-title { font-size: .66rem; text-transform: uppercase; letter-spacing: .14em; color: var(--faint); padding: 18px 16px 8px; font-weight: 700; }
.nav a { display: flex; align-items: center; gap: 14px; padding: 13px 18px; border-radius: 999px; color: var(--muted); font-weight: 560; text-decoration: none; transition: background .15s, color .15s, box-shadow .2s; }
.nav a .go { margin-left: auto; width: 16px; height: 16px; opacity: .55; }
.nav a:hover { background: var(--accent-soft); color: var(--accent); text-decoration: none; }
.drawer { display: contents; } .menu-btn.icon-btn, .menu-btn .m-close { display: none; }
.nav a.active { background: var(--accent-grad); color: #fff; box-shadow: 0 16px 30px -14px rgba(109, 61, 245, .75); } .nav a.active .go { opacity: .9; }
.userbox { margin-top: auto; padding: 14px 8px 0; display: flex; align-items: center; gap: 12px; border-top: 1px solid var(--border); }
.avatar { width: 40px; height: 40px; border-radius: 50%; flex: none; display: grid; place-items: center; font-weight: 750; font-size: .82rem; color: #fff; text-transform: uppercase; background: var(--accent-grad); }
.userbox .who { min-width: 0; flex: 1; line-height: 1.25; } .userbox .name { font-weight: 650; font-size: .84rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.userbox .role { font-size: .75rem; color: var(--faint); } .userbox form { margin: 0; }
.icon-btn { width: 40px; height: 40px; display: inline-grid; place-items: center; padding: 0; border-radius: 50%; background: var(--card-2); border: 1px solid var(--border); color: var(--muted); cursor: pointer; transition: all .15s; }
.icon-btn:hover { color: var(--accent); border-color: var(--accent-line); background: var(--accent-soft); }
.main { min-width: 0; display: flex; flex-direction: column; }
.topbar { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 30px clamp(18px, 3vw, 44px) 22px; }
.topbar h1 { font-size: 1.7rem; } .topbar .crumbs { color: var(--faint); font-size: .8rem; font-weight: 600; margin-bottom: 4px; }
.topbar .actions { gap: 10px; } .theme-dark, .theme-light { display: none; }
:root[data-theme="dark"] .theme-dark { display: block; } :root:not([data-theme="dark"]) .theme-light { display: block; }
.content { background: var(--canvas); border-top-left-radius: var(--r-xl); padding: 30px clamp(18px, 3vw, 44px) 70px; flex: 1; animation: rise .5s both; }
.page-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 24px; }
.page-sub { color: var(--muted); margin: 8px 0 0; max-width: 72ch; }

/* --- cartes --- */
.card, .kpi, .kpi2 { background: var(--card); border-radius: var(--r-lg); box-shadow: var(--shadow); border: 1px solid var(--border); }
.card { padding: 26px 28px; display: block; } .card h2 { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.card-sub { color: var(--faint); font-size: .8rem; font-weight: 550; letter-spacing: 0; }
.select-pill { display: inline-flex; align-items: center; gap: 8px; padding: 8px 16px; border-radius: 12px; background: var(--card-2); color: var(--muted); font-size: .85rem; font-weight: 600; border: 0; }
.grid { display: grid; gap: 20px; margin-bottom: 20px; } .g-kpi { grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }
.g-2 { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } .g-3 { grid-template-columns: repeat(3, 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); }
.note { background: var(--accent-soft); border-radius: var(--r-md); padding: 14px 18px; margin: 16px 0; color: var(--text); border: 1px solid var(--accent-line); }
.rise { animation: rise .55s both; } .rise:nth-child(2) { animation-delay: .05s; } .rise:nth-child(3) { animation-delay: .1s; } .rise:nth-child(4) { animation-delay: .15s; } .rise:nth-child(5) { animation-delay: .2s; }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }

/* --- indicateurs --- */
.kpi2 { padding: 22px 24px; position: relative; transition: transform .2s, box-shadow .2s; } .kpi2:hover { transform: translateY(-2px); box-shadow: var(--shadow), 0 26px 50px -30px rgba(109, 61, 245, .4); }
.kicon { width: 42px; height: 42px; border-radius: 13px; display: grid; place-items: center; color: var(--accent); border: 1.5px solid var(--accent); margin-bottom: 14px; }
.kicon .ico { width: 22px; height: 22px; } .klabel { color: var(--muted); font-weight: 560; font-size: .95rem; }
.kvalue { font-size: 2.35rem; font-weight: 780; letter-spacing: -.04em; line-height: 1.15; margin: 4px 0 12px; font-variant-numeric: tabular-nums; color: var(--text); }
.kmeta { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; color: var(--faint); font-size: .85rem; }
.pill { display: inline-flex; align-items: center; gap: 5px; padding: 3px 11px; border-radius: 999px; font-size: .8rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.pill.good { background: var(--ok-soft); color: var(--ok); } .pill.bad { background: var(--bad-soft); color: var(--bad); } .pill.flat { background: var(--card-2); color: var(--muted); } .pill.info { background: var(--info-soft); color: var(--info); }
.pill .ico { width: 13px; height: 13px; stroke-width: 2.4; }
.kpi { padding: 18px 20px; } .kpi b { display: block; font-size: 1.9rem; line-height: 1.1; font-variant-numeric: tabular-nums; letter-spacing: -.03em; font-weight: 760; } .kpi span { color: var(--muted); font-size: .84rem; }
.kpi.sev-critique b { color: var(--crit); } .kpi.sev-eleve b { color: var(--high); } .kpi.sev-moyen b { color: var(--mid); }
.kpi.k-ok b { color: var(--ok); } .kpi.k-warn b { color: var(--warn); } .kpi.k-bad b { color: var(--bad); } .kpi.k-na b { color: var(--muted); }
.ring-sm { position: absolute; right: 18px; top: 18px; width: 64px; height: 64px; } .ring-sm svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.ring-sm .track { fill: none; stroke: var(--border-strong); stroke-width: 9; } .ring-sm .value { fill: none; stroke-width: 9; stroke-linecap: round; stroke: var(--ok); }
.ring-sm .value.warn { stroke: var(--warn); } .ring-sm .value.high { stroke: var(--high); } .ring-sm .value.bad { stroke: var(--bad); }

/* --- graphiques --- */
.chart { width: 100%; height: auto; display: block; overflow: visible; font: 500 9px var(--font); }
.chart .grid-line { stroke: var(--border); stroke-width: 1; } .chart .axis { fill: var(--faint); } .chart .xlabel { fill: var(--muted); text-anchor: middle; font-weight: 550; }
.chart .bar rect.b { fill: var(--accent-soft); stroke: var(--border-strong); stroke-width: .6; transition: fill .15s; } .chart .bar.active rect.b { fill: url(#g-bar); stroke: none; }
.chart .bar:hover rect.b { fill: url(#g-bar); stroke: none; }
.chart .tip { opacity: 0; pointer-events: none; transition: opacity .15s; } .chart .bar:hover .tip { opacity: 1; } .chart .tip rect { fill: var(--tip); } .chart .tip text { fill: #fff; font: 600 8.5px var(--font); }
.chart .tip .up { fill: #f87171; } .chart .tip .down { fill: #4ade80; } .chart .hit { fill: transparent; }
.chart .line { fill: none; stroke-width: 1.8; stroke-linejoin: round; stroke-linecap: round; } .chart .mark { stroke-width: 1.6; fill: var(--card); }
.chart .l-critique { stroke: var(--crit); } .chart .l-eleve { stroke: var(--high); } .chart .l-moyen { stroke: var(--mid); } .chart .l-faible { stroke: var(--low); }
.chart .pt:hover .mark { r: 5; } .chart .pt .tip { opacity: 0; } .chart .pt:hover .tip { opacity: 1; }
.legend-row { display: flex; flex-wrap: wrap; gap: 8px 22px; justify-content: center; margin-top: 12px; color: var(--muted); font-size: .86rem; font-weight: 560; }
.legend-row i { display: inline-block; width: 11px; height: 11px; border-radius: 4px; margin-right: 8px; vertical-align: -1px; }
i.s-critique, i.d-critique { background: var(--crit); } i.s-eleve, i.d-eleve { background: var(--high); } i.s-moyen, i.d-moyen { background: var(--mid); } i.s-faible, i.d-faible { background: var(--low); } i.d-accent { background: var(--accent); }
.donut-wrap { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.donut { position: relative; width: 160px; height: 160px; flex: none; } .donut svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.donut circle { fill: none; stroke-width: 4.8; } .donut .base { stroke: var(--card-2); }
.donut .s-critique { stroke: var(--crit); } .donut .s-eleve { stroke: var(--high); } .donut .s-moyen { stroke: var(--mid); } .donut .s-faible { stroke: var(--low); }
.donut .num { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; line-height: 1.05; } .donut .num b { font-size: 2.1rem; letter-spacing: -.04em; font-weight: 780; }
.donut .num span { font-size: .68rem; color: var(--faint); text-transform: uppercase; letter-spacing: .12em; font-weight: 650; }
.legend { list-style: none; margin: 0; padding: 0; display: grid; gap: 11px; flex: 1; min-width: 140px; } .legend li { display: flex; align-items: center; gap: 10px; color: var(--muted); font-weight: 560; }
.legend b { margin-left: auto; color: var(--text); font-variant-numeric: tabular-nums; } .legend i { width: 11px; height: 11px; border-radius: 4px; flex: none; }
.heat { width: 100%; border-collapse: separate; border-spacing: 6px; margin: -6px; } .heat th { background: transparent; border: 0; padding: 2px 4px; font-size: .68rem; text-align: center; letter-spacing: .08em; color: var(--faint); }
.heat td { padding: 0; border: 0; } .heat td.cat { padding: 0 8px 0 0; width: 36%; font-weight: 600; font-size: .86rem; } .heat td.cat a { color: var(--text); }
.heat .cell { display: grid; place-items: center; height: 40px; border-radius: 12px; font-weight: 740; font-variant-numeric: tabular-nums; color: var(--muted); background: var(--card-2); transition: transform .12s; }
.heat a.cell:hover { transform: scale(1.06); text-decoration: none; } .heat .cell.l0 { color: var(--faint); font-weight: 500; }
.heat .h-critique.l1 { background: color-mix(in srgb, var(--crit) 16%, transparent); color: var(--crit); } .heat .h-critique.l2 { background: color-mix(in srgb, var(--crit) 32%, transparent); color: var(--crit); } .heat .h-critique.l3 { background: color-mix(in srgb, var(--crit) 55%, transparent); color: #fff; } .heat .h-critique.l4 { background: var(--crit); color: #fff; }
.heat .h-eleve.l1 { background: color-mix(in srgb, var(--high) 16%, transparent); color: var(--high); } .heat .h-eleve.l2 { background: color-mix(in srgb, var(--high) 32%, transparent); color: var(--high); } .heat .h-eleve.l3 { background: color-mix(in srgb, var(--high) 58%, transparent); color: #fff; } .heat .h-eleve.l4 { background: var(--high); color: #fff; }
.heat .h-moyen.l1 { background: color-mix(in srgb, var(--mid) 16%, transparent); color: var(--mid); } .heat .h-moyen.l2 { background: color-mix(in srgb, var(--mid) 32%, transparent); color: var(--mid); } .heat .h-moyen.l3 { background: color-mix(in srgb, var(--mid) 58%, transparent); color: #fff; } .heat .h-moyen.l4 { background: var(--mid); color: #fff; }
.heat .h-faible.l1 { background: color-mix(in srgb, var(--low) 16%, transparent); color: var(--low); } .heat .h-faible.l2 { background: color-mix(in srgb, var(--low) 30%, transparent); color: var(--low); } .heat .h-faible.l3 { background: color-mix(in srgb, var(--low) 55%, transparent); color: #fff; } .heat .h-faible.l4 { background: var(--low); color: #fff; }
.hbars { display: grid; gap: 14px; } .hbar .row { display: flex; justify-content: space-between; font-size: .88rem; font-weight: 600; margin-bottom: 6px; } .hbar .row span:last-child { color: var(--muted); font-variant-numeric: tabular-nums; }
.hbar svg { width: 100%; height: 10px; display: block; border-radius: 999px; background: var(--card-2); overflow: hidden; } .hbar rect.fill { fill: url(#g-bar); } .hbar rect.high { fill: var(--crit); }

/* --- badges --- */
.sev, .badge, .tag { display: inline-flex; align-items: center; gap: 6px; padding: 3px 11px; border-radius: 999px; font-size: .74rem; font-weight: 700; line-height: 1.5; white-space: nowrap; text-transform: capitalize; }
.sev::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.sev-critique { color: var(--crit); background: color-mix(in srgb, var(--crit) 12%, transparent); } .sev-eleve { color: var(--high); background: color-mix(in srgb, var(--high) 13%, transparent); }
.sev-moyen { color: var(--mid); background: color-mix(in srgb, var(--mid) 14%, transparent); } .sev-faible { color: var(--low); background: color-mix(in srgb, var(--low) 15%, transparent); }
.kpi.sev-critique, .kpi.sev-eleve, .kpi.sev-moyen, .kpi.sev-faible { background: var(--card); }
.badge { color: var(--accent); background: var(--accent-soft); margin-left: 8px; font-size: .64rem; text-transform: uppercase; letter-spacing: .07em; padding: 1px 9px; }
.tag { color: var(--muted); background: var(--card-2); border: 1px solid var(--border); font-weight: 600; text-transform: none; }
.s-ok, .s-warn, .s-bad, .s-na { display: inline-flex; align-items: center; padding: 3px 11px; border-radius: 999px; font-size: .76rem; font-weight: 700; white-space: nowrap; }
.s-ok { color: var(--ok); background: var(--ok-soft); } .s-warn { color: var(--warn); background: var(--warn-soft); } .s-bad { color: var(--bad); background: var(--bad-soft); } .s-na { color: var(--muted); background: var(--card-2); }
.btn-view { display: inline-flex; padding: 5px 16px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); font-weight: 700; font-size: .8rem; border: 0; } .btn-view:hover { background: var(--accent); color: #fff; text-decoration: none; }

/* --- tableaux --- */
.table-wrap { background: var(--card); border: 1px solid var(--border); border-radius: var(--r-lg); box-shadow: var(--shadow); overflow: auto; max-height: 76vh; }
table { border-collapse: collapse; width: 100%; } .table-wrap table { margin: 0; }
th, td { padding: 15px 22px; text-align: left; vertical-align: middle; border-bottom: 1px solid var(--border); }
th { font-size: .72rem; text-transform: uppercase; letter-spacing: .09em; color: var(--faint); font-weight: 700; white-space: nowrap; background: var(--card); position: sticky; top: 0; z-index: 2; }
tbody tr { transition: background .12s; } tbody tr:hover { background: var(--card-2); } tbody tr:last-child td { border-bottom: 0; }
td a { font-weight: 650; } .finding-title { font-weight: 650; color: var(--text); } a.finding-title:hover { color: var(--accent); text-decoration: none; }
.finding-obj { display: block; color: var(--muted); font-size: .8rem; margin-top: 3px; font-family: var(--mono); word-break: break-all; font-weight: 450; }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }
tr.row-critique td:first-child { box-shadow: inset 4px 0 0 var(--crit); } tr.row-eleve td:first-child { box-shadow: inset 4px 0 0 var(--high); }
tr.row-moyen td:first-child { box-shadow: inset 4px 0 0 var(--mid); } tr.row-faible td:first-child { box-shadow: inset 4px 0 0 var(--low); }
table.kv th { width: 210px; text-transform: none; letter-spacing: 0; font-size: .88rem; color: var(--muted); font-weight: 600; position: static; } table.kv td { color: var(--text); }
.empty { text-align: center; color: var(--muted); padding: 36px 16px; }
.priority { list-style: none; margin: 0; padding: 0; } .priority li { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 14px 10px; border-bottom: 1px solid var(--border); border-radius: 14px; transition: background .12s; }
.priority li:hover { background: var(--card-2); } .priority li:last-child { border-bottom: 0; } .priority a.t { color: var(--text); font-weight: 650; display: block; } .priority a.t:hover { color: var(--accent); text-decoration: none; }
.priority small { display: block; margin-top: 2px; font-family: var(--mono); font-size: .76rem; } .priority .go { color: var(--faint); } .priority li:hover .go { color: var(--accent); }
.stat-line { display: flex; justify-content: space-between; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--border); font-size: .92rem; color: var(--muted); font-weight: 560; } .stat-line:last-child { border-bottom: 0; } .stat-line b { color: var(--text); font-variant-numeric: tabular-nums; font-weight: 700; }
.empty-hero { text-align: center; padding: 60px 24px; } .empty-hero h1, .empty-hero h2 { margin: 0 0 6px; justify-content: center; } .empty-hero p { color: var(--muted); max-width: 56ch; margin: 8px auto 20px; }
.empty-art { width: 92px; height: 92px; margin: 0 auto 20px; display: grid; place-items: center; border-radius: 30px; background: var(--accent-soft); color: var(--accent); } .empty-art .ico { width: 44px; height: 44px; stroke-width: 1.4; }
.verdict { display: inline-flex; align-items: center; gap: 8px; padding: 4px 13px; border-radius: 999px; font-size: .78rem; font-weight: 700; } .verdict.ok { background: var(--ok-soft); color: var(--ok); } .verdict.warn { background: var(--warn-soft); color: var(--warn); }
.verdict.high { background: color-mix(in srgb, var(--high) 13%, transparent); color: var(--high); } .verdict.bad { background: var(--bad-soft); color: var(--bad); }

/* --- formulaires et boutons --- */
.filters { display: flex; gap: 14px; flex-wrap: wrap; align-items: flex-end; margin: 0 0 20px; padding: 18px 22px; background: var(--card); border: 1px solid var(--border); border-radius: var(--r-lg); box-shadow: var(--shadow); }
.filters label, .field { display: flex; flex-direction: column; gap: 6px; font-size: .72rem; color: var(--faint); font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }
input, select, textarea { font: inherit; font-size: .92rem; color: var(--text); background: var(--input); border: 1.5px solid var(--border); border-radius: 14px; padding: 11px 14px; min-width: 0; text-transform: none; letter-spacing: 0; font-weight: 500; }
input::placeholder, textarea::placeholder { color: var(--faint); } select { cursor: pointer; } input:focus, select:focus, textarea:focus { border-color: var(--accent); outline: 3px solid var(--accent-soft); }
input[type="checkbox"] { width: 18px; height: 18px; padding: 0; accent-color: var(--accent); flex: none; margin-top: 2px; } textarea { width: 100%; max-width: 680px; min-height: 100px; resize: vertical; }
.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; align-items: end; max-width: 860px; }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: .88rem; color: var(--muted); font-weight: 450; line-height: 1.5; text-transform: none; letter-spacing: 0; }
button, .btn { font: inherit; font-weight: 680; font-size: .88rem; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 11px 20px; border-radius: 999px; border: 1.5px solid var(--border-strong); background: var(--card); color: var(--text); text-decoration: none; transition: transform .12s, box-shadow .2s, background .15s, border-color .15s; }
button:hover, .btn:hover { border-color: var(--accent); color: var(--accent); background: var(--accent-soft); text-decoration: none; } button:active, .btn:active { transform: translateY(1px); }
button[type="submit"]:not(.btn-quiet):not(.btn-danger):not(.btn-sm):not(.icon-btn), .btn-primary { color: #fff; border-color: transparent; background: var(--accent-grad); box-shadow: 0 14px 28px -12px var(--accent-line); }
button[type="submit"]:not(.btn-quiet):not(.btn-danger):not(.btn-sm):not(.icon-btn):hover, .btn-primary:hover { filter: brightness(1.08); color: #fff; background: var(--accent-grad); box-shadow: 0 18px 32px -12px var(--accent-line); }
button:disabled { opacity: .5; cursor: not-allowed; filter: none; transform: none; } .btn-sm { padding: 6px 14px; font-size: .78rem; } .btn-quiet { background: transparent; } .btn-danger { color: var(--bad); background: transparent; border-color: color-mix(in srgb, var(--bad) 40%, transparent); }
.btn-danger:hover { border-color: var(--bad); background: var(--bad-soft); color: var(--bad); }
.actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; } .inline-form { display: inline; } .card .actions { margin-top: 18px; }
details.disclosure { border: 1px solid var(--border); border-radius: var(--r-md); padding: 12px 18px; background: var(--card-2); max-width: 580px; } details.disclosure summary { cursor: pointer; font-weight: 700; font-size: .88rem; color: var(--accent); } details.disclosure[open] summary { margin-bottom: 14px; }
.messages { list-style: none; padding: 0; margin: 0 0 22px; display: grid; gap: 12px; }
.messages li { padding: 14px 20px; border-radius: var(--r-md); background: var(--card); border: 1px solid var(--border); border-left: 4px solid var(--accent); box-shadow: var(--shadow); word-break: break-word; }
.messages .error { border-left-color: var(--bad); background: var(--bad-soft); } .messages .warning { border-left-color: var(--warn); }
.back { display: inline-flex; align-items: center; gap: 6px; margin-bottom: 18px; font-weight: 650; font-size: .86rem; color: var(--muted); } .back:hover { color: var(--accent); text-decoration: none; }

/* --- conformité --- */
.domain-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(350px, 1fr)); gap: 20px; margin-bottom: 28px; align-items: start; }
.domain { padding: 0; overflow: hidden; } .domain header { padding: 18px 24px; font-weight: 730; font-size: 1.02rem; border-bottom: 1px solid var(--border); }
.metric { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 14px; padding: 16px 24px; border-bottom: 1px solid var(--border); align-items: center; } .metric:last-child { border-bottom: 0; }
.metric .label { font-weight: 600; } .metric .value { font-weight: 780; font-variant-numeric: tabular-nums; text-align: right; font-size: 1.25rem; letter-spacing: -.02em; }
.metric .meta { grid-column: 1 / -1; color: var(--faint); font-size: .8rem; display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.control-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 18px; }
.control { position: relative; overflow: hidden; padding-top: 28px; } .control::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 5px; background: var(--faint); }
.control.c-conforme::before, .control.c-traite::before { background: var(--ok); } .control.c-a_traiter::before { background: var(--bad); } .control.c-partiel::before { background: var(--warn); }
.control .ref { font-size: .72rem; color: var(--faint); font-weight: 700; letter-spacing: .04em; } .control h3 { margin: 6px 0 14px; text-transform: none; letter-spacing: 0; font-size: 1.04rem; color: var(--text); font-weight: 700; }
.control .foot { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: .84rem; color: var(--muted); }

/* --- connexion --- */
.auth { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(380px, 520px); padding: clamp(0px, 2.4vw, 34px); gap: 0; }
.auth-hero { padding: clamp(32px, 6vw, 84px); display: flex; flex-direction: column; justify-content: center; gap: 28px; color: #fff; }
.auth-hero .brand { color: #fff; padding: 0; } .auth-hero .brand-mark { background: #fff; color: var(--accent); box-shadow: 0 12px 30px -10px rgba(20, 0, 80, .5); }
.auth-hero h1 { font-size: clamp(2.2rem, 4.4vw, 3.5rem); line-height: 1.04; letter-spacing: -.045em; max-width: 13ch; color: #fff; } .auth-hero h1 em { font-style: normal; color: #ffe08a; }
.auth-hero p { color: rgba(255, 255, 255, .85); max-width: 46ch; font-size: 1.05rem; margin: 0; }
.auth-points { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; } .auth-points li { display: flex; gap: 14px; align-items: flex-start; color: rgba(255, 255, 255, .8); font-size: .94rem; } .auth-points b { color: #fff; display: block; }
.auth-points .ico { width: 42px; height: 42px; padding: 10px; border-radius: 14px; background: rgba(255, 255, 255, .16); color: #fff; border: 1px solid rgba(255, 255, 255, .28); backdrop-filter: blur(6px); }
.auth-side { display: grid; place-items: center; padding: 20px; } .auth-card { width: 100%; max-width: 430px; background: var(--frame); border-radius: var(--r-xl); padding: 42px 38px; box-shadow: var(--shell-shadow); }
.auth-card h1 { font-size: 1.75rem; } .auth-card .lead { color: var(--muted); margin: 12px 0 26px; } .auth-card button { width: 100%; padding: 15px 18px; font-size: .98rem; }
.auth-card .fine { font-size: .8rem; color: var(--faint); margin: 22px 0 0; text-align: center; } .ms-logo { width: 18px; height: 18px; flex: none; }

@media (max-width: 1180px) { .g-2, .g-3, .g-21, .g-12 { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 960px) {
  .stage { padding: 0; } .shell { grid-template-columns: minmax(0, 1fr); border-radius: 0; box-shadow: none; } .sidebar { position: static; height: auto; flex-direction: row; flex-wrap: wrap; align-items: center; padding: 14px 16px; gap: 6px 10px; }
  .brand { padding: 2px 8px; font-size: 1.1rem; } .nav-title, .nav a .go { display: none; } .nav { display: flex; flex-wrap: wrap; gap: 4px; width: 100%; order: 3; } .nav a { padding: 9px 14px; }
  .userbox { margin: 0 0 0 auto; border: 0; padding: 0; } .userbox .who { display: none; } .topbar { padding: 8px 18px 16px; } .content { border-top-left-radius: 28px; padding: 22px 16px 60px; }
  .card { padding: 20px 18px; } th, td { padding: 12px 14px; } .form-grid { grid-template-columns: minmax(0, 1fr); } .filters > * { flex: 1 1 140px; }
  .auth { grid-template-columns: minmax(0, 1fr); padding: 0; } .auth-hero { padding: 32px 22px 12px; } .auth-hero h1 { max-width: none; } .auth-card { padding: 30px 22px; border-radius: 28px; }
}
@media print {
  .sidebar, .topbar .actions, .filters, form, button { display: none !important; } .stage { padding: 0; background: #fff !important; } .shell { display: block; box-shadow: none; border-radius: 0; }
  body { background: #fff !important; color: #000; } .content { padding: 0; background: #fff; border-radius: 0; animation: none; } .card, .kpi, .kpi2, .table-wrap { box-shadow: none; border-color: #ccc; } tr { break-inside: avoid; } * { color: #000 !important; }
}

.hbar .row { gap: 14px; align-items: center; } .hbar .row span:first-child { min-width: 0; } .hbar .cnt { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; color: var(--muted); font-variant-numeric: tabular-nums; }
.hbar .cnt .pill { padding: 1px 9px; font-size: .72rem; }
.grid.g-21 > .card, .grid.g-2 > .card { display: flex; flex-direction: column; } .grid .card > .chart { margin: auto 0; }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 20px; margin: 0 0 24px; }
.content .page-head h1 { font-size: 1.3rem; letter-spacing: -.02em; }
.page-head + .cards { margin-top: -4px; }

/* Pages d'audit, de revue et de comparaison : respiration entre un tableau et la rubrique suivante, colonnes étroites lisibles. */
.table-wrap + h2, .table-wrap + h3, form + h2, details + h2, .cards + h2, .note + h2 { margin-top: 36px; }
td.who { min-width: 190px; overflow-wrap: anywhere; }
td.cell-comment input { width: 170px; min-width: 0; }
.table-wrap + section, .table-wrap + details, .table-wrap + form { margin-top: 24px; }
.inline-form select { width: 210px; max-width: 100%; margin-bottom: 6px; }
section.card + h2, .card + h2, .card + .table-wrap { margin-top: 32px; }
section.card ul { list-style: none; padding: 0; margin: 12px 0; }
section.card ul li { margin: 4px 0; }
.nav .badge { margin-left: auto; white-space: nowrap; }

.auth-plans { display: grid; gap: 12px; max-width: 46ch; }
.auth-plan { background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .28); border-radius: 18px; padding: 16px 18px; backdrop-filter: blur(6px); color: #fff; }
.auth-plan-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; } .auth-plan-head b { font-size: 1.05rem; } .auth-plan-head span { font-weight: 700; color: #ffe08a; }
.auth-hero .auth-plan p { margin: 8px 0 0; font-size: .9rem; color: rgba(255, 255, 255, .85); max-width: none; }
.auth-plan ul { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 6px; font-size: .88rem; } .auth-plan li { display: flex; gap: 8px; align-items: center; } .auth-plan .ico { width: 16px; height: 16px; flex: none; }
.auth-plans small { color: rgba(255, 255, 255, .7); }

.site-footer { margin-top: 22px; text-align: center; font-size: .8rem; color: var(--faint); } .site-footer p { margin: 4px 0; } .site-footer a { color: inherit; text-decoration: underline; }
.auth-side { flex-direction: column; } .auth-hero ~ .auth-side .site-footer { color: rgba(255, 255, 255, .8); }
.page-public { background: var(--bg, inherit); } .public-wrap { max-width: 760px; margin: 0 auto; padding: 28px 18px 40px; }
.public-wrap .brand a { color: inherit; text-decoration: none; display: inline-flex; align-items: center; gap: 10px; font-weight: 700; }
.public-card { background: var(--frame); border-radius: var(--r-xl); padding: 34px clamp(20px, 4vw, 42px); box-shadow: var(--shell-shadow); margin-top: 18px; }
.public-card h1 { font-size: 1.75rem; margin: 0 0 8px; } .public-card h2 { font-size: 1.1rem; margin: 26px 0 8px; } .public-card .lead { color: var(--muted); margin: 8px 0 22px; }
.public-card ul { padding-left: 20px; } .public-card li { margin: 6px 0; } .public-card textarea { width: 100%; resize: vertical; }
.public-card .field { margin-bottom: 14px; } .public-card .check { display: flex; gap: 10px; align-items: flex-start; font-size: .88rem; margin: 6px 0 16px; }
.public-card .err { display: block; color: var(--bad, #c0392b); margin-top: 4px; } .public-card .alert { color: var(--bad, #c0392b); }
.trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Téléphone : même site, mise en page adaptée (menu défilant, tableaux défilants, champs à 16 px pour éviter le zoom iOS, cibles tactiles confortables). */
@media (max-width: 720px) {
  body { overflow-x: hidden; } h1 { font-size: 1.45rem; } h2 { font-size: 1.1rem; }
  /* Menu : en-tête collant (marque + bouton), panneau déroulant avec toutes les rubriques, le compte et la déconnexion. Sans JavaScript, il reste déployé. */
  .shell { overflow: visible; } .stage::before { content: none; } body.menu-open { overflow: hidden; } body.menu-open .stage::before { content: ""; position: fixed; inset: 0; z-index: 40; background: rgba(10, 5, 40, .5); }
  .sidebar { position: sticky; top: 0; z-index: 45; flex-direction: row; flex-wrap: nowrap; justify-content: space-between; align-items: center; height: auto; max-height: none; overflow: visible; padding: 10px 14px; gap: 8px; background: var(--frame); border-bottom: 1px solid var(--border); }
  .brand { padding: 0; font-size: 1.1rem; } .menu-btn.icon-btn { display: inline-grid; width: 44px; height: 44px; } .menu-open .menu-btn .m-open { display: none; } .menu-open .menu-btn .m-close { display: block; }
  .drawer { display: flex; flex-direction: column; position: absolute; top: 100%; left: 0; right: 0; max-height: calc(100dvh - 66px); overflow-y: auto; -webkit-overflow-scrolling: touch; background: var(--frame); padding: 4px 12px 18px; border-bottom: 1px solid var(--border); border-radius: 0 0 22px 22px; box-shadow: 0 30px 50px -22px rgba(10, 5, 40, .55); }
  html.js .drawer { display: none; } html.js .menu-open .drawer { display: flex; }
  .nav { display: flex; flex-direction: column; flex-wrap: nowrap; overflow: visible; width: 100%; max-width: none; margin: 0; padding: 0; order: 0; gap: 2px; } .nav-title { display: block; padding: 10px 14px 4px; }
  .nav a { flex: none; white-space: normal; padding: 10px 16px; font-size: .95rem; min-height: 44px; } .nav a .ico:not(.go) { width: 20px; height: 20px; } .nav a .go { display: block; }
  .userbox { margin: 10px 0 0; padding: 14px 4px 0; border-top: 1px solid var(--border); } .userbox .who { display: block; }
  .topbar { flex-wrap: wrap; padding: 6px 16px 12px; } .topbar h1 { font-size: 1.35rem; } .content { border-top-left-radius: 22px; padding: 18px 12px 48px; }
  .page-head { align-items: stretch; } .page-head .actions, .page-head form { width: 100%; } .page-head .actions > *, .page-head .btn { flex: 1 1 auto; }
  .grid { gap: 12px; } .g-kpi { grid-template-columns: repeat(2, minmax(0, 1fr)); } .kpi2 { padding: 16px; } .kpi b { font-size: 1.5rem; }
  .card { padding: 16px 14px; border-radius: var(--r-md); } .card h2 { flex-wrap: wrap; } .filters { padding: 14px; gap: 10px; } .filters > * { flex: 1 1 100%; }
  .table-wrap { border-radius: var(--r-md); max-height: none; -webkit-overflow-scrolling: touch; } th, td { padding: 10px 12px; font-size: .86rem; } table.kv th { width: auto; } td.who { min-width: 150px; }
  input, select, textarea { font-size: 16px; } button, .btn { min-height: 44px; } .btn-sm { min-height: 36px; } textarea { max-width: none; } .form-grid { max-width: none; }
  .actions { gap: 8px; } .card .actions > .btn, .card .actions > button, .card .actions > form { flex: 1 1 100%; } .card .actions form button { width: 100%; }
  .auth-side { order: -1; padding-bottom: 0; } .auth-hero { padding: 24px 16px 8px; } .auth-hero h1 { font-size: 1.6rem; } .auth-side { padding: 12px; } .auth-card { padding: 26px 18px; border-radius: 24px; } .auth-card h1 { font-size: 1.45rem; }
  .public-wrap { padding: 16px 12px 28px; } .public-card { padding: 22px 16px; border-radius: var(--r-lg); } .public-card h1 { font-size: 1.4rem; }
  .cards, .domain-grid, .control-grid { grid-template-columns: minmax(0, 1fr); gap: 12px; } .heat { border-spacing: 4px; margin: -4px 0; } .heat .cell { height: 36px; border-radius: 10px; }
  .cards:has(> .kpi) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .demo { max-width: 100%; } .demo-facts { gap: 12px; } .site-footer { padding: 0 8px; }
}
@media (max-width: 420px) { .heat th { font-size: .56rem; letter-spacing: .02em; padding: 2px 0; } .heat td.cat { width: 32%; font-size: .78rem; padding-right: 4px; } .heat .cell { height: 32px; border-radius: 8px; font-size: .82rem; } }
@media (max-width: 380px) { .g-kpi { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 720px) { label, .field { min-width: 0; } select, input { max-width: 100%; } table.kv td { overflow-wrap: anywhere; } }

/* --- Page d'accueil : illustration, arguments, appel à l'action --- */
.demo { margin: 4px 0 0; max-width: 520px; } .demo svg { width: 100%; height: auto; display: block; filter: drop-shadow(0 18px 30px rgba(20, 0, 80, .35)); }
.demo figcaption { font-size: .74rem; color: rgba(255, 255, 255, .65); margin-top: 6px; }
.d-win { fill: rgba(255, 255, 255, .96); stroke: rgba(255, 255, 255, .5); } .d-dot { fill: #d6d1ef; }
.d-title { font: 700 12px system-ui, sans-serif; fill: #3a2f7a; } .d-score { font: 800 30px system-ui, sans-serif; fill: #3a2f7a; } .d-sub { font: 11px system-ui, sans-serif; fill: #7a73a6; }
.d-lab { font: 11.5px system-ui, sans-serif; fill: #4b4380; } .d-track { fill: none; stroke: #e7e3f7; stroke-width: 11; } .d-ring { fill: none; stroke: #6c4df0; stroke-width: 11; stroke-linecap: round; }
.d-bar-bg { fill: #ece9f9; } .d-bar.a { fill: #6c4df0; } .d-bar.b { fill: #f2a93b; } .d-bar.c { fill: #e4577a; }
.d-trend { fill: none; stroke: #6c4df0; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; } .d-row { fill: #f4f2fc; }
.d-sev.a { fill: #6c4df0; } .d-sev.b { fill: #f2a93b; } .d-sev.c { fill: #e4577a; }
.demo-facts { list-style: none; margin: 22px 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 18px; max-width: 520px; }
.demo-facts li { display: flex; gap: 10px; align-items: flex-start; font-size: .84rem; color: rgba(255, 255, 255, .8); } .demo-facts b { display: block; color: #fff; font-size: .9rem; }
.demo-facts .ico { width: 34px; height: 34px; padding: 8px; flex: none; border-radius: 11px; background: rgba(255, 255, 255, .16); border: 1px solid rgba(255, 255, 255, .28); color: #fff; }
.cta { display: inline-flex; align-items: center; gap: 10px; align-self: flex-start; margin-top: 22px; padding: 14px 22px; border-radius: 999px; background: #ffe08a; color: #3a2f00; font-weight: 700; text-decoration: none; box-shadow: 0 12px 26px -12px rgba(20, 0, 80, .6); }
.cta:hover { background: #ffd35c; } .cta .ico { width: 18px; height: 18px; } .cta-note { margin: 8px 0 0; font-size: .82rem; color: rgba(255, 255, 255, .75); }
@media (max-width: 1100px) { .demo-facts { grid-template-columns: minmax(0, 1fr); } }
.auth-card .invite-link { margin: 16px 0 0; font-size: .9rem; color: var(--muted); } .auth-card .invite-link a { font-weight: 700; }

/* --- Avancement d'une collecte --- */
.progress-card { margin: 14px 0; padding: 16px 18px; border-radius: 16px; background: var(--card-soft, rgba(108, 77, 240, .06)); border: 1px solid rgba(108, 77, 240, .18); }
.progress-card h3 { margin: 0 0 10px; font-size: 1rem; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.step { display: flex; align-items: center; gap: 12px; font-size: .92rem; color: var(--muted); }
.step .step-label { flex: 0 1 auto; } .step .step-note { font-size: .8rem; color: var(--faint); margin-left: auto; text-align: right; }
.step-ico { width: 20px; height: 20px; flex: none; border-radius: 50%; border: 2px solid #cfc9ee; box-sizing: border-box; display: grid; place-items: center; font-size: 12px; line-height: 1; font-weight: 800; }
.step.running { color: var(--text, inherit); font-weight: 600; } .step.running .step-ico { border-color: #d9d3f7; border-top-color: #6c4df0; animation: step-spin .9s linear infinite; }
.step.done { color: var(--text, inherit); } .step.done .step-ico { background: #2ea36b; border-color: #2ea36b; color: #fff; } .step.done .step-ico::after { content: "✓"; }
.step.limit .step-ico { background: #f2a93b; border-color: #f2a93b; color: #fff; } .step.limit .step-ico::after { content: "–"; }
.step.error { color: #b3261e; } .step.error .step-ico { background: #e4577a; border-color: #e4577a; color: #fff; } .step.error .step-ico::after { content: "✕"; }
@keyframes step-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .step.running .step-ico { animation: none; border-top-color: #6c4df0; } }

/* --- Décision groupée sur la liste des constats --- */
th.pick, td.pick { width: 44px; text-align: center; padding-inline: 8px; } td.pick input, th.pick input { margin: 0; cursor: pointer; }
.bulk-bar { margin-top: 16px; scroll-margin-top: 80px; } .bulk-bar[hidden], .bulk-chip[hidden] { display: none; } .bulk-bar h2 { margin-top: 0; }
.bulk-chip { position: sticky; bottom: 14px; z-index: 5; display: inline-flex; align-items: center; gap: 8px; margin: 12px 0 0; padding: 12px 18px; min-height: 44px; border-radius: 999px; background: var(--accent-grad); color: #fff; font-weight: 650; text-decoration: none; box-shadow: 0 18px 34px -12px rgba(109, 61, 245, .8); } .bulk-chip:hover { color: #fff; text-decoration: none; filter: brightness(1.08); } .bulk-chip .ico { width: 16px; height: 16px; }
@media (max-width: 720px) { th.pick, td.pick { width: 48px; } td.pick input, th.pick input { width: 22px; height: 22px; } .bulk-chip { bottom: 10px; } }

/* --- Écran de connexion : contraste (WCAG AA), bouton Microsoft conforme, deux colonnes équilibrées, autorisations --- */
/* Seul le petit texte gris de la carte blanche est foncé (contraste AA) ; le reste des couleurs de l'écran reste celui d'origine (écritures blanches). */
.auth-card .fine, .auth-card .invite-link { color: var(--muted); }
/* Bouton de connexion Microsoft : charte Microsoft (fond blanc, bordure grise, logo à gauche, texte gris foncé, sans dégradé). */
body .auth-card button.ms-btn[type="submit"]:not(.btn-quiet):not(.btn-danger):not(.btn-sm):not(.icon-btn) { background: #fff; color: #5e5e5e; border: 1px solid #8c8c8c; border-radius: 4px; box-shadow: none; filter: none; min-height: 44px; font: 600 15px/1 "Segoe UI", system-ui, -apple-system, sans-serif; display: flex; align-items: center; justify-content: center; gap: 12px; }
body .auth-card button.ms-btn[type="submit"]:not(.btn-quiet):not(.btn-danger):not(.btn-sm):not(.icon-btn):hover { background: #f3f3f3; color: #5e5e5e; box-shadow: none; filter: none; }
.auth-card button.ms-btn:focus-visible { outline: 3px solid #3b20ad; outline-offset: 2px; }
details.perms { margin: 14px 0 0; font-size: .88rem; color: var(--muted); } details.perms summary { cursor: pointer; font-weight: 650; color: var(--accent); padding: 6px 0; min-height: 32px; }
details.perms p, details.perms ul { margin: 8px 0; } details.perms ul { padding-left: 20px; }
.site-footer .trademark { font-size: .76rem; opacity: .95; max-width: 60ch; margin: 6px auto 0; }
@media (min-width: 961px) {
  .auth { max-width: 1240px; margin: 0 auto; grid-template-columns: minmax(0, 1fr) minmax(380px, 460px); column-gap: clamp(32px, 6vw, 96px); align-items: start; padding: 0 clamp(16px, 3vw, 40px); }
  .auth-hero { padding: clamp(32px, 6vw, 72px) 0 40px; } .auth-side { place-items: start center; padding: clamp(32px, 6vw, 72px) 0 24px; position: sticky; top: 0; }
}

/* --- Documents juridiques publics --- */
.legal-doc h2 { margin-top: 1.8em; } .legal-doc h3 { margin-top: 1.2em; } .legal-doc table { font-size: .84rem; } .legal-doc blockquote { margin: 14px 0; padding: 10px 14px; border-left: 3px solid var(--accent-line); background: var(--accent-soft); border-radius: 8px; }
.closing-note { border-color: var(--bad, #c0392b); }
/* Résultat de la dernière recherche (page « Journal d'audit ») */
.outcome { margin: 14px 0; padding: 12px 16px; border-radius: 16px; border-left: 4px solid var(--muted); background: var(--card-2); }
.outcome ul { margin: 6px 0 0; padding-left: 20px; }
.outcome-ok { border-left-color: var(--ok); background: var(--ok-soft); } .outcome-warn { border-left-color: var(--warn); background: var(--warn-soft); } .outcome-bad { border-left-color: var(--bad); background: var(--bad-soft); }
