/* =====================================================================
   GDA Local SEO — interface (style GDA Web Factory / Mining, thème bleu)
   Police Hanken Grotesk hébergée localement (aucun appel externe).
   ===================================================================== */
@font-face { font-family: "Hanken Grotesk"; font-style: normal; font-weight: 100 900; font-display: swap; src: url(polices/hanken-grotesk-latin-wght-normal.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Hanken Grotesk"; font-style: normal; font-weight: 100 900; font-display: swap; src: url(polices/hanken-grotesk-latin-ext-wght-normal.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
  --sans: "Hanken Grotesk", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --blue: #1d5bd8; --blue-2: #1a4fb8; --blue-soft: #eef4ff; --blue-line: #c7d7fb;
  --ink: #1d2939; --ink-2: #344054; --muted: #667085; --line: #e4e7ec; --bg: #f5f7fb; --panel: #ffffff;
  --green: #12a150; --green-soft: #e8f7ee; --yellow: #e6b800; --yellow-soft: #fff7db;
  --orange: #ef7d22; --orange-soft: #fff1e6; --red: #d92d20; --red-soft: #fdecea;
  --grey: #98a2b3; --grey-soft: #f2f4f7; --violet: #6941c6; --violet-soft: #f4f0ff;
  --top: 58px; --side: 236px; --shadow: 0 1px 2px rgba(16,24,40,.05);
}
* { box-sizing: border-box; }
body { margin: 0; font: 15px/1.5 var(--sans); background: var(--bg); color: var(--ink); -webkit-font-smoothing: antialiased; }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
h1 { font-size: 27px; line-height: 1.2; font-weight: 700; letter-spacing: -.01em; margin: 2px 0 14px; }
h1 small, h1 .muted { font-weight: 500; font-size: 17px; }
h2 { font-size: 17px; font-weight: 700; margin: 2px 0 12px; }
h3 { font-size: 15px; font-weight: 700; margin: 2px 0 10px; }
small, .small { font-size: 13px; }
.muted { color: var(--muted); }
.mono, code { font-family: var(--mono); font-size: 12.5px; word-break: break-all; }
code { background: var(--grey-soft); padding: 1px 5px; border-radius: 5px; }
.good { color: var(--green); } .bad { color: var(--red); } .center { text-align: center; }

/* ---------- barre du haut */
.topbar { position: fixed; inset: 0 0 auto 0; height: var(--top); z-index: 40; display: flex; align-items: center; gap: 18px; padding: 0 20px; background: #fff; border-bottom: 1px solid var(--line); }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none !important; min-width: calc(var(--side) - 40px); }
.brand__mark { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 8px; background: var(--blue); color: #fff; font: 800 16px var(--sans); flex: none; }
.brand__name { font-size: 16px; font-weight: 600; white-space: nowrap; }
.brand__name b { font-weight: 800; }
.brand--big .brand__mark { width: 44px; height: 44px; font-size: 22px; border-radius: 11px; }
.brand--big .brand__name { font-size: 22px; }
.crumbs { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--muted); min-width: 0; overflow: hidden; white-space: nowrap; }
.crumbs a { color: var(--muted); } .crumbs b { color: var(--ink); font-weight: 600; }
.topbar__right { margin-left: auto; display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--muted); }
.topbar__clock { font-variant-numeric: tabular-nums; min-width: 44px; text-align: right; }
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; font-size: 12.5px; font-weight: 600; background: var(--grey-soft); color: var(--ink-2); white-space: nowrap; }
.point { width: 7px; height: 7px; border-radius: 50%; background: currentColor; display: inline-block; flex: none; }
.pill--ok { background: var(--green-soft); color: #08743a; } .pill--demo { background: var(--violet-soft); color: var(--violet); }
.pill--mode-off { background: var(--red-soft); color: var(--red); } .pill--mode-manuel { background: var(--blue-soft); color: var(--blue-2); } .pill--mode-auto { background: var(--orange-soft); color: #b54708; }
.burger { display: none; flex-direction: column; justify-content: center; gap: 4px; width: 38px; height: 38px; padding: 0 9px; border: 1px solid var(--line); border-radius: 8px; background: #fff; cursor: pointer; }
.burger span { display: block; height: 2px; background: var(--ink); border-radius: 2px; }

/* ---------- menu latéral en groupes */
.side { position: fixed; top: var(--top); bottom: 0; left: 0; width: var(--side); z-index: 30; background: #fff; border-right: 1px solid var(--line); padding: 14px 12px 80px; overflow-y: auto; }
.side__group { font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--grey); padding: 14px 10px 6px; }
.side__link { display: flex; align-items: center; gap: 10px; padding: 8px 10px; margin: 1px 0; border-radius: 8px; color: var(--ink-2); font-weight: 500; font-size: 14.5px; }
.side__link svg { color: var(--grey); flex: none; }
.side__link:hover { background: var(--grey-soft); text-decoration: none; }
.side__link.is-active { background: var(--blue-soft); color: var(--blue-2); font-weight: 650; }
.side__link.is-active svg { color: var(--blue); }
.side__user { position: fixed; bottom: 0; left: 0; width: var(--side); z-index: 31; display: flex; align-items: center; gap: 10px; padding: 12px 14px; background: #fff; border-top: 1px solid var(--line); border-right: 1px solid var(--line); }
.avatar { width: 32px; height: 32px; border-radius: 50%; background: var(--blue-soft); color: var(--blue-2); display: grid; place-items: center; font-weight: 700; flex: none; }
.side__who { display: grid; line-height: 1.2; min-width: 0; flex: 1; }
.side__who b { font-size: 13.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.side__who small { color: var(--muted); font-size: 12px; }
.icon-btn { border: 0; background: none; color: var(--muted); padding: 6px; border-radius: 6px; cursor: pointer; display: grid; }
.icon-btn:hover { background: var(--grey-soft); color: var(--ink); }
.side-fond { display: none; }

/* ---------- zone principale */
.main { margin-left: var(--side); padding: calc(var(--top) + 24px) 32px 30px; max-width: calc(1380px + var(--side)); }
.eyebrow { font-size: 12px; font-weight: 700; letter-spacing: .06em; color: var(--blue); margin-bottom: 2px; }
.foot { color: var(--grey); font-size: 12px; padding: 26px 0 0; }
.note { display: flex; align-items: center; gap: 8px; font-size: 13px; padding: 8px 12px; border-radius: 8px; margin: 4px 0 14px; }
.note--demo { background: var(--violet-soft); color: var(--violet); }
.note--demo code { background: rgba(105,65,198,.1); }

/* ---------- cartes, grilles, indicateurs */
.card { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 18px 20px; margin-bottom: 16px; box-shadow: var(--shadow); }
.head-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.head-row h1 { margin-bottom: 12px; }
.actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.inline { display: inline; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.grid2.wide-left { grid-template-columns: 3fr 2fr; }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; margin-bottom: 16px; }
.kpi { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; display: flex; flex-direction: column; gap: 3px; box-shadow: var(--shadow); }
.kpi span { font-size: 13px; color: var(--muted); font-weight: 500; }
.kpi strong { font-size: 26px; font-weight: 750; letter-spacing: -.01em; line-height: 1.15; }
.kpi strong small { font-size: 14px; color: var(--muted); font-weight: 600; }
.kpi strong.sm { font-size: 15px; font-weight: 650; }
.kpi small { color: var(--muted); }
.bar { height: 6px; background: var(--grey-soft); border-radius: 3px; overflow: hidden; margin: 4px 0; }
.bar i { display: block; height: 100%; background: var(--blue); border-radius: 3px; }
.score strong { font-size: 34px; font-weight: 800; margin-right: 6px; }

/* ---------- boutons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 38px; padding: 0 14px; border: 1px solid var(--line); border-radius: 9px; background: #fff; color: var(--ink); font: 600 14px var(--sans); cursor: pointer; text-decoration: none !important; white-space: nowrap; box-shadow: var(--shadow); }
.btn:hover { border-color: #cfd6e0; background: #fafbfc; }
.btn.primary { background: var(--blue); border-color: var(--blue); color: #fff; }
.btn.primary:hover { background: var(--blue-2); border-color: var(--blue-2); }
.btn[disabled] { opacity: .45; cursor: not-allowed; }
.btn.sm { height: 30px; padding: 0 10px; font-size: 13px; border-radius: 7px; }
.btn--block { width: 100%; }
button.link { background: none; border: 0; color: var(--blue); cursor: pointer; font: inherit; padding: 0; }

/* ---------- tableaux */
.tbl { width: 100%; border-collapse: collapse; font-size: 14px; }
.tbl th { text-align: left; font-size: 11.5px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); border-bottom: 1px solid var(--line); padding: 8px; background: #fbfcfd; }
.tbl td { border-bottom: 1px solid var(--line); padding: 10px 8px; vertical-align: top; }
.tbl tbody tr:hover td { background: #fafbff; }
.tbl tr.total td { font-weight: 700; }
.tbl.compact td { padding: 7px 8px; }
.tbl tbody tr:last-child td { border-bottom: 0; }

/* ---------- pastilles de statut (point + fond doux) */
.badge { display: inline-flex; align-items: center; gap: 5px; padding: 2px 9px; border-radius: 999px; font-size: 12px; font-weight: 600; background: var(--grey-soft); color: var(--ink-2); white-space: nowrap; line-height: 1.6; }
.badge[class*="st-"]::before, .badge[class*="rep-"]::before, .badge[class*="id-"]::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.badge.demo { background: var(--violet-soft); color: var(--violet); }
.kind-client { background: var(--green-soft); color: #08743a; } .kind-prospect { background: var(--orange-soft); color: #b54708; }
.st-succeeded, .st-found, .st-pass, .st-done, .id-verified, .rep-published { background: var(--green-soft); color: #08743a; }
.st-failed, .st-error, .st-fail, .id-rejected, .st-waiting_access { background: var(--red-soft); color: #b42318; }
.st-partial, .st-partial_f, .st-retry_wait, .st-needs_reconciliation, .st-waiting_approval, .st-not_found_within_depth, .rep-draft { background: var(--yellow-soft); color: #9a6700; }
.st-running, .st-in_progress, .st-queued, .st-posted, .st-posting, .rep-approved { background: var(--blue-soft); color: var(--blue-2); }
.st-unknown, .st-cancelled, .rep-superseded, .id-unverified, .st-pending, .st-todo { background: var(--grey-soft); color: var(--ink-2); }
.imp-fort { background: var(--red-soft); color: #b42318; } .imp-moyen { background: var(--yellow-soft); color: #9a6700; } .imp-faible { background: var(--grey-soft); }
.sev-critique { background: var(--red-soft); color: #b42318; } .sev-important { background: var(--orange-soft); color: #b54708; }
.sev-mineur { background: var(--grey-soft); color: var(--ink-2); } .sev-info { background: var(--blue-soft); color: var(--blue-2); }

/* ---------- messages */
.flash { padding: 11px 14px; border-radius: 10px; margin-bottom: 16px; border: 1px solid; font-size: 14px; }
.flash-ok { background: var(--green-soft); border-color: #a6e2bf; color: #05603a; }
.flash-err { background: var(--red-soft); border-color: #f5c2bd; color: #912018; }
.flash-info { background: var(--blue-soft); border-color: var(--blue-line); color: var(--blue-2); }
.alert { border-left: 3px solid var(--red); padding: 8px 12px; margin-bottom: 8px; background: #fffafa; border-radius: 0 8px 8px 0; font-size: 14px; }

/* ---------- formulaires (libellés en gras) */
.form label { display: flex; flex-direction: column; gap: 5px; margin-bottom: 12px; font-size: 13.5px; font-weight: 650; color: var(--ink); flex: 1; }
.form .row { display: flex; gap: 14px; flex-wrap: wrap; }
.form fieldset { border: 1px solid var(--line); border-radius: 10px; margin: 0 0 14px; padding: 10px 14px; }
.form legend { font-size: 13px; font-weight: 700; color: var(--ink-2); padding: 0 6px; }
input, select, textarea { font: 15px var(--sans); color: var(--ink); padding: 9px 11px; border: 1px solid #d0d5dd; border-radius: 8px; background: #fff; width: 100%; font-weight: 400; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(29,91,216,.15); }
input[type=checkbox], input[type=radio] { accent-color: var(--blue); width: auto; }
.check { flex-direction: row !important; align-items: center; gap: 8px !important; font-weight: 500 !important; color: var(--ink-2) !important; margin-bottom: 8px !important; }
.compact select, .compact input { width: auto; padding: 5px 8px; font-size: 13px; margin: 2px 0; }
.filters { display: flex; gap: 8px; align-items: center; margin-bottom: 16px; flex-wrap: wrap; }
.filters input, .filters select { width: auto; min-width: 180px; }
.inline-check { display: inline-flex !important; margin: 0 8px 0 0 !important; font-size: 13.5px; }

/* ---------- onglets soulignés en bleu */
.tabs { display: flex; gap: 2px; flex-wrap: wrap; border-bottom: 1px solid var(--line); margin-bottom: 14px; }
.tab { padding: 9px 14px; color: var(--muted); font-weight: 600; font-size: 14px; border-bottom: 2px solid transparent; margin-bottom: -1px; text-decoration: none !important; }
.tab:hover { color: var(--ink); }
.tab.active { color: var(--blue-2); border-bottom-color: var(--blue); }
.filters .tabs, .head-row .tabs { border-bottom: 0; margin-bottom: 0; }

/* ---------- divers */
.dl { display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; margin: 0 0 12px; font-size: 14px; }
.dl dt { color: var(--muted); } .dl dd { margin: 0; }
.list { list-style: none; margin: 0; padding: 0; }
.list li { padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.list li:last-child { border-bottom: 0; }
.chip { display: inline-block; background: var(--blue-soft); color: var(--blue-2); border-radius: 999px; padding: 3px 11px; margin: 0 6px 6px 0; font-size: 13px; font-weight: 600; }
.finding { border-left: 3px solid var(--line); padding: 10px 14px; margin-bottom: 8px; background: #fbfcfd; border-radius: 0 10px 10px 0; font-size: 14px; }
.finding.sev-critique { border-left-color: var(--red); background: #fffafa; color: inherit; }
.finding.sev-important { border-left-color: var(--orange); background: #fffcf8; color: inherit; }
.finding.sev-mineur { border-left-color: var(--grey); background: #fbfcfd; }
.finding.sev-info { border-left-color: var(--blue); background: #f8fbff; color: inherit; }
.finding .small { margin-top: 3px; }
.sevnum { display: inline-block; min-width: 2rem; text-align: center; border-radius: 7px; padding: 0 6px; }
.sevnum.c { background: var(--red-soft); color: #b42318; } .sevnum.i { background: var(--orange-soft); color: #b54708; } .sevnum.m { background: var(--grey-soft); }

/* ---------- cartes géographiques */
.map { height: 400px; border-radius: 10px; border: 1px solid var(--line); background: #eef1f6; }
.map.tall { height: 540px; }
.legend { display: flex; gap: 14px; flex-wrap: wrap; font-size: 13px; margin-top: 10px; color: var(--ink-2); }
.dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 5px; vertical-align: -1px; }
.dot.green, .pin.green { background: var(--green); } .dot.yellow, .pin.yellow { background: var(--yellow); } .dot.orange, .pin.orange { background: var(--orange); }
.dot.red, .pin.red { background: var(--red); } .dot.grey, .pin.grey { background: var(--grey); }
.pin { width: 30px; height: 30px; border-radius: 50%; color: #fff; font: 700 12px var(--sans); display: flex; align-items: center; justify-content: center; border: 2px solid #fff; box-shadow: 0 1px 5px rgba(16,24,40,.35); }
.pin.yellow { color: #3a3000; }
.pin.preview { background: var(--blue); width: 14px; height: 14px; }

/* ---------- médias, rapports */
.media-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 14px; }
.media-grid figure { margin: 0; background: #fff; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; box-shadow: var(--shadow); }
.media-grid img { width: 100%; height: 145px; object-fit: cover; display: block; background: #e4e7ec; }
.media-grid figcaption { padding: 9px 11px; font-size: 13px; }
.compare { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.compare figure { margin: 0; }
.compare img { width: 100%; border-radius: 10px; border: 1px solid var(--line); }
.slider-row { display: flex; gap: 10px; align-items: center; margin-bottom: 10px; }
.slider-row input[type=range] { flex: 1; padding: 0; border: 0; box-shadow: none; }
iframe.pdf { width: 100%; height: 80vh; border: 1px solid var(--line); border-radius: 12px; background: #fff; margin-bottom: 16px; }

/* ---------- connexion */
body.bare { background: linear-gradient(180deg, #eef4ff 0%, var(--bg) 60%); }
.wrap.narrow { max-width: 430px; margin: 0 auto; padding: 12vh 20px 40px; }
.login .brand { justify-content: center; width: 100%; margin-bottom: 22px; min-width: 0; }
.login .card { padding: 26px 26px 14px; }
.login h1, .bare .card h1 { font-size: 22px; margin-bottom: 4px; }
.login p.muted { margin-top: 0; }

/* ---------- écrans étroits */
@media (max-width: 1100px) { .grid3 { grid-template-columns: 1fr 1fr; } .crumbs { display: none; } }
@media (max-width: 900px) {
  .burger { display: flex; }
  .brand { min-width: 0; }
  .side, .side__user { transform: translateX(-100%); transition: transform .25s; }
  .side { box-shadow: 0 10px 30px rgba(16,24,40,.18); }
  body.menu-ouvert .side, body.menu-ouvert .side__user { transform: none; }
  body.menu-ouvert .side-fond { display: block; position: fixed; inset: var(--top) 0 0 0; background: rgba(16,24,40,.35); z-index: 25; }
  .main { margin-left: 0; padding: calc(var(--top) + 16px) 14px 24px; }
  .grid2, .grid2.wide-left, .grid3, .compare { grid-template-columns: 1fr; }
  .topbar__clock, .pill--ok, .pill--demo { display: none; }
  .tbl { display: block; overflow-x: auto; white-space: nowrap; }
  .map.tall { height: 420px; }
  h1 { font-size: 22px; }
}

/* =====================================================================
   Portail client
   ===================================================================== */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 16px; }
.tile { display: block; color: inherit; text-decoration: none !important; transition: border-color .15s, box-shadow .15s; }
.tile:hover { border-color: var(--blue-line); box-shadow: 0 4px 14px rgba(29,91,216,.08); }
.tile h2 { margin-bottom: 4px; }
.tile-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 12px 0 8px; }
.tile-kpis > div { background: var(--bg); border-radius: 10px; padding: 10px 12px; }
.tile-kpis span { display: block; font-size: 12px; color: var(--muted); font-weight: 500; }
.tile-kpis strong { font-size: 22px; font-weight: 750; }
.tile-kpis strong small { font-size: 13px; color: var(--muted); }
.filters label { display: flex; align-items: center; gap: 8px; font-size: 13.5px; font-weight: 600; color: var(--ink-2); }
.chart { width: 100%; height: auto; }
.chart .grid { stroke: var(--line); stroke-width: 1; }
.chart text { font: 11px var(--sans); fill: var(--muted); }
.chart polyline { stroke-width: 2.5; }
.chart .s-a { stroke: var(--green); fill: var(--green); }
.chart polyline.s-a, .chart polyline.s-b { fill: none; }
.chart .s-b { stroke: var(--blue); fill: var(--blue); }
.dot.sa { background: var(--green); } .dot.sb { background: var(--blue); }
pre.code { background: #0f1b2d; color: #e6edf6; padding: 12px 14px; border-radius: 10px; overflow-x: auto; font: 13px/1.6 var(--mono); }
select[multiple] { min-width: 13rem; }
.side__space { display: flex; align-items: center; gap: 10px; padding: 8px 10px; margin: 1px 0; border-radius: 8px; color: var(--ink-2); font-weight: 500; font-size: 14px; }
.side__space:hover { background: var(--grey-soft); text-decoration: none; }
.side__space.is-active { background: var(--blue-soft); color: var(--blue-2); font-weight: 650; }
.side__space .initiale { width: 24px; height: 24px; border-radius: 6px; background: var(--grey-soft); color: var(--ink-2); display: grid; place-items: center; font-size: 12px; font-weight: 700; flex: none; }
.side__space.is-active .initiale { background: var(--blue); color: #fff; }
.side__space span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hero-client { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 6px; }
@media (max-width: 900px) { .tile-kpis strong { font-size: 18px; } }

/* ---- Vue simple (artisans) ---- */
.simple { max-width: 880px; margin: 0 auto; display: flex; flex-direction: column; gap: 16px; }
.simple .card { margin: 0; }
.simple__hello h1 { margin: 0; font-size: 30px; }
.simple__hello p { margin: 4px 0 0; font-size: 16px; }
.verdict { text-align: center; padding: 26px 20px; border-top: 6px solid var(--c, #c3cad5); }
.verdict--green { --c: #12b76a; } .verdict--yellow { --c: #f5b70a; } .verdict--orange { --c: #f17b2c; } .verdict--red { --c: #e5484d; }
.verdict__label { margin: 0; color: var(--muted); font-weight: 600; font-size: 15px; }
.verdict__word { margin: 4px 0 10px; font-size: 42px; font-weight: 800; letter-spacing: -.02em; color: var(--c, var(--ink)); line-height: 1.1; }
.gauge { display: flex; gap: 6px; justify-content: center; margin-bottom: 14px; }
.gauge i { width: 44px; height: 10px; border-radius: 99px; background: #e8ecf2; }
.gauge i.on { background: var(--c, #c3cad5); }
.verdict__text { font-size: 18px; margin: 0 auto; max-width: 520px; line-height: 1.45; }
.trend { display: inline-block; margin: 12px 0 0; padding: 5px 12px; border-radius: 99px; font-weight: 650; font-size: 14px; }
.trend--up { background: #d1fadf; color: #067647; } .trend--down { background: #fee4e2; color: #b42318; } .trend--flat { background: #eef1f6; color: var(--ink-2); }
.simple__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.simple h2 { font-size: 19px; margin: 0 0 12px; }
.searches { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.searches li { display: grid; grid-template-columns: 16px 1fr auto; gap: 10px; align-items: center; font-size: 16px; }
.dot-lg { width: 14px; height: 14px; border-radius: 50%; }
.searches__lvl { font-weight: 700; font-size: 14px; white-space: nowrap; }
.lvl--green { color: #067647; } .lvl--yellow { color: #93370d; } .lvl--orange { color: #b54708; } .lvl--red { color: #b42318; } .lvl--grey { color: var(--muted); }
.zone { width: 100%; max-width: 260px; display: block; margin: 0 auto 10px; }
.zone__legend { display: flex; flex-wrap: wrap; gap: 6px 12px; justify-content: center; font-size: 13px; margin: 0 0 6px; }
.zone__legend span { display: inline-flex; align-items: center; gap: 5px; } .zone__legend i { width: 11px; height: 11px; border-radius: 50%; display: inline-block; }
.done { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 10px; }
.done li { display: flex; align-items: center; gap: 12px; padding: 12px 14px; background: #f6f8fc; border-radius: 12px; font-size: 15px; }
.done__ico { width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center; background: var(--blue-soft); color: var(--blue); flex: none; }
.done strong { font-size: 24px; min-width: 26px; }
.btn--xl { height: 56px; font-size: 17px; border-radius: 14px; width: 100%; }
.contact { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.contact__btns { display: flex; gap: 8px; }
.simple__more { text-align: center; margin: 4px 0 10px; } .simple__more a { font-weight: 650; }
@media (max-width: 760px) { .simple__grid { grid-template-columns: 1fr; } .verdict__word { font-size: 36px; } .gauge i { width: 36px; } .simple__hello h1 { font-size: 26px; } .contact__btns { width: 100%; } .contact__btns .btn { flex: 1; } }

/* sous-navigation de l'espace client */
.subnav { display: flex; gap: 4px; overflow-x: auto; padding: 4px; background: #fff; border: 1px solid var(--line); border-radius: 12px; margin-bottom: 16px; box-shadow: var(--shadow); scrollbar-width: none; }
.subnav__item { padding: 7px 13px; border-radius: 8px; font-weight: 600; font-size: 14px; color: var(--ink-2); white-space: nowrap; text-decoration: none !important; }
.subnav__item:hover { background: #f3f6fb; }
.subnav__item.is-on { background: var(--blue-soft); color: var(--blue); }
.simple .subnav { margin: 0; }
.morelinks { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.morelinks a { display: flex; flex-direction: column; gap: 2px; padding: 14px 16px; background: #fff; border: 1px solid var(--line); border-radius: 12px; color: var(--ink); text-decoration: none !important; box-shadow: var(--shadow); }
.morelinks a:hover { border-color: var(--blue); }
.morelinks strong { color: var(--blue-2); } .morelinks span { font-size: 13px; color: var(--muted); }
@media (max-width: 760px) { .morelinks { grid-template-columns: 1fr; } }

/* 1.5.0 : compte, réinitialisation, reCAPTCHA */
.grecaptcha-badge { visibility: hidden; }
details.reset { display: inline-block; margin-right: 6px; }
details.reset summary { list-style: none; cursor: pointer; }
details.reset summary::-webkit-details-marker { display: none; }
details.reset form { margin-top: 6px; display: flex; gap: 6px; }
@media (max-width: 760px) {
  .tbl { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .grid2 { grid-template-columns: 1fr !important; }
  .form input, .form select, .btn { min-height: 44px; font-size: 16px; } /* pas de zoom iOS, cible tactile */
  details.reset form { flex-direction: column; }
}
.tiny { font-size: 12px; line-height: 1.4; }
body.bare { min-height: 100vh; }

/* 1.5.2 : sélecteur d'établissement (clients multi-établissements) */
.switch { position: relative; margin: 2px 0 8px; }
.switch__btn { width: 100%; display: flex; align-items: center; gap: 10px; padding: 10px; border: 1px solid var(--blue-line); background: var(--blue-soft); border-radius: 12px; cursor: pointer; text-align: left; font: inherit; color: var(--ink); }
.switch__btn:hover { border-color: var(--blue); }
.switch__ico { width: 32px; height: 32px; flex: none; border-radius: 8px; background: #fff; color: var(--blue-2); display: grid; place-items: center; font-weight: 800; font-size: 14px; border: 1px solid var(--blue-line); }
.switch__txt { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.25; }
.switch__txt b { font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.switch__txt small { font-size: 12px; color: var(--grey); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.switch__chev { flex: none; color: var(--grey); transition: transform .15s; }
.switch.is-open .switch__chev { transform: rotate(180deg); }
.switch__menu { display: none; position: absolute; left: 0; right: 0; top: calc(100% + 6px); z-index: 40; background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 12px 32px rgba(16,24,40,.14); padding: 6px; max-height: 60vh; overflow-y: auto; }
.switch.is-open .switch__menu { display: block; }
.switch__item { display: flex; align-items: center; gap: 10px; padding: 8px; border-radius: 8px; color: var(--ink-2); font-weight: 550; font-size: 14px; }
.switch__item:hover { background: var(--grey-soft); text-decoration: none; }
.switch__item.is-on { background: var(--blue-soft); color: var(--blue-2); }
.switch__item span:nth-child(2) { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.switch__item i { font-style: normal; color: var(--blue); font-weight: 700; }
.switch__item .switch__ico { width: 26px; height: 26px; font-size: 12px; }

/* 1.5.3 : cartes colorées (vert / orange / rouge) */
.kpi--good, .kpi--warn, .kpi--bad { border-top: 4px solid; }
.kpi--good { border-top-color: #16a34a; } .kpi--good strong { color: #15803d; }
.kpi--warn { border-top-color: #f59e0b; } .kpi--warn strong { color: #b45309; }
.kpi--bad  { border-top-color: #dc2626; } .kpi--bad strong  { color: #b91c1c; }
.kpi .lvl { font-style: normal; font-size: 11px; font-weight: 700; padding: 1px 7px; border-radius: 99px; margin-left: 6px; vertical-align: 1px; }
.kpi--good .lvl { background: #dcfce7; color: #15803d; }
.kpi--warn .lvl { background: #fef3c7; color: #b45309; }
.kpi--bad .lvl  { background: #fee2e2; color: #b91c1c; }

.finding-detail { display: inline-block; margin-top: 4px; padding: 4px 8px; background: var(--grey-soft); border-radius: 6px; font-size: 13px; color: var(--ink-2); }
