/* StatMemory — feuille de style unique (refonte 21/10/2026).
   Remplace theme.css + AdminLTE + morris + jvectormap + ionicons + reset.
   Quelques classes Bootstrap 3 (container/row/col-*, btn, form-control, alert,
   pagination) sont reprises a minima pour login.php / oauth.php. */

:root {
  --bg: #f6f8fc;
  --surface: #ffffff;
  --surface-2: #f1f4fa;
  --border: #e3e8f2;
  --text: #172033;
  --muted: #5d6882;
  --brand: #2f6fed;
  --brand-ink: #1f56c8;
  --brand-soft: #e8f0ff;
  --ok: #17915a;
  --ok-soft: #e3f6ec;
  --warn: #b7791f;
  --warn-soft: #fdf3e1;
  --bad: #d23f3f;
  --bad-soft: #fde9e9;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(16, 24, 40, .05), 0 4px 16px rgba(16, 24, 40, .06);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f141f;
    --surface: #161d2b;
    --surface-2: #1c2536;
    --border: #2a3448;
    --text: #e6eaf2;
    --muted: #9aa5bd;
    --brand: #6b9bff;
    --brand-ink: #8fb3ff;
    --brand-soft: #1d2a47;
    --ok: #4cc38a;
    --ok-soft: #15301f;
    --warn: #e2b04a;
    --warn-soft: #33290f;
    --bad: #ff7b7b;
    --bad-soft: #3a1a1a;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 4px 16px rgba(0, 0, 0, .25);
    color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 16px/1.6 var(--font); overflow-x: hidden;
}
img { max-width: 100%; height: auto; }
a { color: var(--brand); text-decoration: none; }
a:hover { color: var(--brand-ink); text-decoration: underline; }
h1, h2, h3, h4 { line-height: 1.25; margin: 0 0 .5em; font-weight: 700; letter-spacing: -.01em; }
h1 { font-size: clamp(1.6rem, 3.2vw, 2.3rem); }
h2 { font-size: 1.3rem; }
h3 { font-size: 1.08rem; }
p { margin: 0 0 1em; }
code, pre { font-family: var(--mono); font-size: .85em; }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; border-radius: 4px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--brand); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }

.wrap, .container { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 16px; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.center, .text-center { text-align: center; }
.nowrap { white-space: nowrap; }
.mt0 { margin-top: 0; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--surface) 92%, transparent);
  backdrop-filter: saturate(160%) blur(8px);
  border-bottom: 1px solid var(--border);
}
.site-header .wrap { display: flex; align-items: center; gap: 16px; min-height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.2rem; color: var(--text); letter-spacing: -.02em; }
.brand:hover { text-decoration: none; color: var(--text); }
.brand-mark { width: 32px; height: 32px; border-radius: 9px; background: linear-gradient(135deg, #2f6fed, #7b5cff); display: grid; place-items: center; flex: none; }
.brand-mark svg { width: 20px; height: 20px; }
.brand b { color: var(--brand); }
.hsearch { flex: 1; max-width: 420px; margin-left: auto; }
.nav { display: flex; gap: 4px; margin-left: auto; }
.hsearch + .nav { margin-left: 0; }
.nav a { color: var(--muted); font-weight: 600; font-size: .94rem; padding: 8px 12px; border-radius: 9px; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--text); background: var(--surface-2); text-decoration: none; }
.nav-toggle { display: none; margin-left: auto; background: none; border: 1px solid var(--border); border-radius: 9px; padding: 7px 10px; color: var(--text); cursor: pointer; }
@media (max-width: 860px) {
  .site-header .wrap { flex-wrap: wrap; }
  .nav-toggle { display: inline-flex; }
  .hsearch { order: 3; flex-basis: 100%; max-width: none; margin: 0 0 10px; }
  .nav { display: none; order: 4; flex-basis: 100%; flex-direction: column; padding-bottom: 10px; }
  .nav.open { display: flex; }
}

/* ---------- Search ---------- */
.search { display: flex; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; overflow: hidden; box-shadow: var(--shadow); }
.search input {
  flex: 1; min-width: 0; border: 0; background: transparent; color: var(--text);
  padding: 0 14px; font: inherit; height: 44px; outline: none;
}
.search button {
  border: 0; background: var(--brand); color: #fff; font: inherit; font-weight: 700;
  padding: 0 18px; cursor: pointer; display: inline-flex; align-items: center; gap: 8px;
}
.search button:hover { background: var(--brand-ink); }
.search:focus-within { border-color: var(--brand); box-shadow: 0 0 0 4px var(--brand-soft); }
.search.lg input { height: 58px; font-size: 1.08rem; padding: 0 20px; }
.search.lg button { padding: 0 26px; font-size: 1.02rem; }
.hsearch .search { box-shadow: none; }
.hsearch .search input { height: 38px; font-size: .95rem; }
.hsearch .search button { padding: 0 12px; }

/* ---------- Hero ---------- */
.hero {
  background:
    radial-gradient(1200px 400px at 10% -10%, rgba(123, 92, 255, .18), transparent 60%),
    radial-gradient(900px 400px at 100% 0%, rgba(47, 111, 237, .20), transparent 60%),
    var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 64px 0 56px; text-align: center;
}
.hero h1 { max-width: 820px; margin: 0 auto 14px; }
.hero .lead { color: var(--muted); font-size: 1.12rem; max-width: 700px; margin: 0 auto 28px; }
.hero form { max-width: 680px; margin: 0 auto; }
.hero .examples { margin-top: 14px; color: var(--muted); font-size: .92rem; }
.hero .examples a { display: inline-block; margin: 2px 4px; padding: 2px 10px; border-radius: 99px; background: var(--surface-2); border: 1px solid var(--border); color: var(--text); }
.hero .examples a:hover { border-color: var(--brand); text-decoration: none; }
.loading { display: none; margin-top: 18px; color: var(--muted); }
.loading.on { display: block; }
.spinner { width: 22px; height: 22px; border: 3px solid var(--border); border-top-color: var(--brand); border-radius: 50%; display: inline-block; vertical-align: middle; animation: spin .8s linear infinite; margin-right: 8px; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Sections / cards ---------- */
main { display: block; }
.section { padding-top: 44px; padding-bottom: 44px; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 18px; flex-wrap: wrap; }
.section-head h2 { margin: 0; }
.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 20px; min-width: 0;
}
.card > h2, .card > h3 { display: flex; align-items: center; gap: 10px; }
.card > h2 .fa, .card > h3 .fa { color: var(--brand); width: 1.1em; text-align: center; }
.card + .card { margin-top: 20px; }
.grid > .card + .card { margin-top: 0; }
.grid { display: grid; gap: 20px; }
.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)); }
@media (max-width: 960px) { .g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .g3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .g2, .g3 { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 420px) { .g4 { grid-template-columns: minmax(0, 1fr); } }

.feature .fa { font-size: 1.3rem; color: var(--brand); background: var(--brand-soft); width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; margin-bottom: 12px; }
.feature h3 { margin-bottom: .35em; }
.feature p { color: var(--muted); margin: 0; font-size: .95rem; }

/* Site tiles (home, top, category) */
.tile { display: flex; flex-direction: column; padding: 0; overflow: hidden; transition: transform .15s ease, box-shadow .15s ease; }
.tile:hover { transform: translateY(-2px); box-shadow: 0 8px 28px rgba(16, 24, 40, .12); }
.tile .shot { display: block; aspect-ratio: 4 / 3; background: var(--surface-2); border-bottom: 1px solid var(--border); overflow: hidden; }
.tile .shot img { width: 100%; height: 100%; object-fit: cover; object-position: top; display: block; }
.tile .body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.tile .name { font-weight: 700; color: var(--text); display: flex; align-items: center; gap: 8px; min-width: 0; }
.tile .name span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tile .name img { width: 16px; height: 16px; flex: none; }
.tile .meta { display: flex; gap: 8px; flex-wrap: wrap; font-size: .85rem; }
.tile .rank-n { position: absolute; }

.chip { display: inline-flex; align-items: center; gap: 5px; padding: 2px 10px; border-radius: 99px; font-size: .82rem; font-weight: 600; background: var(--surface-2); color: var(--muted); border: 1px solid var(--border); white-space: nowrap; }
.chip.ok { background: var(--ok-soft); color: var(--ok); border-color: transparent; }
.chip.warn { background: var(--warn-soft); color: var(--warn); border-color: transparent; }
.chip.bad { background: var(--bad-soft); color: var(--bad); border-color: transparent; }
.chip.brand { background: var(--brand-soft); color: var(--brand-ink); border-color: transparent; }
a.chip:hover { text-decoration: none; border-color: var(--brand); }

/* Category list */
.cat-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }
.cat-list a { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 14px 16px; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; color: var(--text); font-weight: 600; }
.cat-list a:hover { border-color: var(--brand); text-decoration: none; box-shadow: var(--shadow); }
.cat-list .n { color: var(--muted); font-weight: 500; font-size: .85rem; }

/* ---------- Report page ---------- */
.crumbs { font-size: .88rem; color: var(--muted); margin: 18px 0 10px; display: flex; flex-wrap: wrap; gap: 6px; }
.crumbs a { color: var(--muted); }
.crumbs span[aria-hidden] { opacity: .6; }
.report-head { display: grid; grid-template-columns: 340px minmax(0, 1fr); gap: 24px; align-items: start; }
@media (max-width: 860px) { .report-head { grid-template-columns: minmax(0, 1fr); } }
.report-head .shot { border-radius: 12px; overflow: hidden; border: 1px solid var(--border); background: var(--surface-2); aspect-ratio: 4 / 3; }
.report-head .shot img { width: 100%; height: 100%; object-fit: cover; object-position: top; display: block; }
.report-head h1 { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; word-break: break-word; }
.report-head h1 img { width: 32px; height: 32px; border-radius: 6px; }
.report-head .site-title { font-size: 1.05rem; font-weight: 600; margin-bottom: 4px; }
.report-head .summary { color: var(--muted); }
.actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; align-items: center; }

.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 14px; margin: 22px 0; }
.kpi { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px 18px; box-shadow: var(--shadow); min-width: 0; }
.kpi .label { color: var(--muted); font-size: .82rem; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; display: flex; align-items: center; gap: 6px; }
.kpi .value { font-size: 1.5rem; font-weight: 800; margin-top: 4px; letter-spacing: -.02em; overflow-wrap: anywhere; line-height: 1.25; }
.kpi .sub { color: var(--muted); font-size: .85rem; margin-top: 2px; }
.kpi .value img { width: 26px; vertical-align: -3px; margin-right: 6px; border-radius: 3px; }
.trend-up { color: var(--ok); }
.trend-down { color: var(--bad); }

.toc { display: flex; gap: 8px; overflow-x: auto; padding: 4px 0 12px; margin-bottom: 8px; scrollbar-width: thin; }
.toc a { flex: none; font-size: .88rem; padding: 6px 12px; border-radius: 99px; background: var(--surface); border: 1px solid var(--border); color: var(--muted); font-weight: 600; }
.toc a:hover { color: var(--brand); border-color: var(--brand); text-decoration: none; }
.report section { scroll-margin-top: 80px; }

/* Tables */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
table.t, .table { width: 100%; border-collapse: collapse; font-size: .94rem; }
table.t th, table.t td, .table th, .table td { padding: 10px 12px; border-bottom: 1px solid var(--border); text-align: left; vertical-align: top; }
table.t th, .table th { color: var(--muted); font-weight: 600; font-size: .82rem; text-transform: uppercase; letter-spacing: .03em; background: var(--surface-2); }
table.t tr:last-child td { border-bottom: 0; }
table.t td.num, table.t th.num { text-align: right; font-variant-numeric: tabular-nums; }
table.kv th { width: 34%; text-transform: none; font-size: .9rem; letter-spacing: 0; background: transparent; color: var(--muted); }
table.kv td { overflow-wrap: anywhere; }

/* Bars */
.bars { display: grid; gap: 10px; }
.bar { display: grid; grid-template-columns: 110px minmax(0, 1fr) 60px; gap: 10px; align-items: center; font-size: .9rem; }
.bar .track { height: 10px; background: var(--surface-2); border-radius: 99px; overflow: hidden; }
.bar .fill { height: 100%; background: linear-gradient(90deg, var(--brand), #7b5cff); border-radius: 99px; }
.bar .n { text-align: right; font-variant-numeric: tabular-nums; color: var(--muted); }

/* Rank chart */
.chart { width: 100%; height: auto; display: block; }
.chart .grid-line { stroke: var(--border); stroke-width: 1; }
.chart .line { fill: none; stroke: var(--brand); stroke-width: 2.5; stroke-linejoin: round; stroke-linecap: round; }
.chart .area { fill: var(--brand-soft); opacity: .8; }
.chart .dot { fill: var(--surface); stroke: var(--brand); stroke-width: 2; }
.chart text { fill: var(--muted); font-size: 11px; font-family: var(--font); }

/* Checklist */
.checks { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.checks li { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface-2); }
.checks .fa { margin-top: 4px; }
.checks .fa-check-circle { color: var(--ok); }
.checks .fa-times-circle { color: var(--bad); }
.checks b { display: block; }
.checks small { color: var(--muted); }
.score { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.score .ring { --p: 0; width: 64px; height: 64px; border-radius: 50%; background: conic-gradient(var(--c, var(--brand)) calc(var(--p) * 1%), var(--surface-2) 0); display: grid; place-items: center; flex: none; }
.score .ring span { width: 48px; height: 48px; border-radius: 50%; background: var(--surface); display: grid; place-items: center; font-weight: 800; font-size: .95rem; }

/* Similar list */
.similar { display: grid; gap: 12px; }
.similar a.item { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 14px; align-items: center; padding: 10px; border: 1px solid var(--border); border-radius: 12px; color: var(--text); background: var(--surface); }
.similar a.item:hover { border-color: var(--brand); text-decoration: none; }
.similar .thumb { aspect-ratio: 4 / 3; border-radius: 8px; overflow: hidden; background: var(--surface-2); }
.similar .thumb img { width: 100%; height: 100%; object-fit: cover; object-position: top; display: block; }
.similar .d { font-weight: 700; display: flex; gap: 8px; align-items: center; }
.similar .d img { width: 16px; height: 16px; }
.similar .ttl { color: var(--muted); font-size: .88rem; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }

details.raw { border: 1px solid var(--border); border-radius: 10px; background: var(--surface-2); }
details.raw summary { cursor: pointer; padding: 10px 14px; font-weight: 600; }
details.raw pre { margin: 0; padding: 14px; max-height: 480px; overflow: auto; white-space: pre-wrap; word-break: break-word; border-top: 1px solid var(--border); }

.faq h3 { font-size: 1rem; margin: 1.1em 0 .3em; }
.faq h3:first-of-type { margin-top: 0; }
.faq p { color: var(--muted); }
.note { font-size: .86rem; color: var(--muted); background: var(--surface-2); border-left: 3px solid var(--brand); padding: 10px 14px; border-radius: 0 8px 8px 0; }

/* Ads */
.ad-slot { margin: 26px auto; text-align: center; min-height: 100px; }
.ad-slot ins { display: block; }

/* Prose (pages) */
.prose { max-width: 780px; }
.prose h1 { font-size: 1.8rem; }
.prose h2 { font-size: 1.25rem; margin-top: 1.6em; }
.prose ul { padding-left: 1.2em; }
.prose header h1 { margin-top: 0; }

/* ---------- Buttons / forms (incl. Bootstrap compat) ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: inherit; font-weight: 700; font-size: .94rem; line-height: 1.2;
  padding: 10px 16px; border-radius: 10px; border: 1px solid var(--border);
  background: var(--surface); color: var(--text); cursor: pointer; text-decoration: none;
}
.btn:hover { text-decoration: none; border-color: var(--brand); color: var(--brand); }
.btn-primary { background: var(--brand); border-color: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-ink); border-color: var(--brand-ink); color: #fff; }
.btn-success { background: var(--ok); border-color: var(--ok); color: #fff; }
.btn-danger { background: var(--bad); border-color: var(--bad); color: #fff; }
.btn-sm { padding: 6px 12px; font-size: .86rem; }
.btn[disabled], .btn.disabled { opacity: .6; pointer-events: none; }
.form-group { margin-bottom: 14px; }
label { font-weight: 600; font-size: .92rem; display: block; margin-bottom: 6px; }
.form-control, .form-input, input[type=text], input[type=email], input[type=password], textarea {
  width: 100%; font: inherit; color: var(--text); background: var(--surface);
  border: 1px solid var(--border); border-radius: 10px; padding: 10px 12px;
}
.form-control:focus, textarea:focus, input:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px var(--brand-soft); }
.search input:focus { box-shadow: none; }
textarea { min-height: 160px; resize: vertical; }
.alert { padding: 12px 16px; border-radius: 10px; margin-bottom: 14px; border: 1px solid transparent; }
.alert-success { background: var(--ok-soft); color: var(--ok); }
.alert-danger, .alert-warning { background: var(--bad-soft); color: var(--bad); }
.captcha-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.captcha-row img { border-radius: 8px; border: 1px solid var(--border); background: #fff; }
.captcha-row input { max-width: 140px; }
.row { display: flex; flex-wrap: wrap; margin: 0 -10px; }
.row > [class*="col-"] { padding: 0 10px; flex: 1 1 100%; min-width: 0; }
@media (min-width: 768px) {
  .col-md-3 { flex: 0 0 25% !important; } .col-md-4 { flex: 0 0 33.333% !important; }
  .col-md-6 { flex: 0 0 50% !important; } .col-md-12 { flex: 0 0 100% !important; }
}
.pull-left { float: left; } .pull-right { float: right; }
.hidden-xs { } @media (max-width: 640px) { .hidden-xs { display: none !important; } }

/* Pagination (core/pagination.php emits Bootstrap markup) */
.pagination, .pagination-normal { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; padding: 0; margin: 28px 0 0; }
.pagination-normal li a, .pagination li a, .pagination-normal li span { display: inline-flex; min-width: 40px; height: 40px; align-items: center; justify-content: center; padding: 0 10px; border-radius: 10px; background: var(--surface); border: 1px solid var(--border); color: var(--text); font-weight: 600; }
.pagination-normal li.active a, .pagination li.active a { background: var(--brand); border-color: var(--brand); color: #fff; }
.pagination-normal li.disabled a { opacity: .45; pointer-events: none; }
.pagination-normal li a:hover { border-color: var(--brand); text-decoration: none; }
.glyphicon-backward::before { content: "\00AB"; } .glyphicon-forward::before { content: "\00BB"; }
.glyphicon-chevron-left::before { content: "\2039"; } .glyphicon-chevron-right::before { content: "\203A"; }
.glyphicon { font-style: normal; }

/* ---------- Footer ---------- */
.site-footer { margin-top: 56px; background: var(--surface); border-top: 1px solid var(--border); padding: 40px 0 26px; font-size: .92rem; color: var(--muted); }
.site-footer .cols { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 28px; }
@media (max-width: 760px) { .site-footer .cols { grid-template-columns: 1fr 1fr; } .site-footer .about { grid-column: 1 / -1; } }
.site-footer h3 { font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; color: var(--text); margin-bottom: 10px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.site-footer a { color: var(--muted); }
.site-footer a:hover { color: var(--brand); }
.site-footer .legal { border-top: 1px solid var(--border); margin-top: 28px; padding-top: 18px; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: .85rem; }

/* Status pages (analyzing / not found) */
.status-page { min-height: 55vh; display: grid; place-items: center; text-align: center; padding: 48px 0; }
.status-page .card { max-width: 560px; margin: 0 auto; padding: 32px; }

@media print {
  .site-header, .site-footer, .ad-slot, .toc, .actions, .adsbygoogle { display: none !important; }
  body { background: #fff; color: #000; }
  .card, .kpi { box-shadow: none; break-inside: avoid; }
}
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }

/* ---------- Fiche domaine v2 (enrichissement 21/10/2026) ---------- */
.report-band { background: linear-gradient(180deg, color-mix(in srgb, var(--brand) 9%, var(--bg)) 0%, var(--bg) 100%); padding-bottom: 4px; }
.h1-sub { font-size: .9rem; font-weight: 600; color: var(--muted); letter-spacing: 0; }
.chips-row { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 6px; }
.shot-ph, .thumb-ph { width: 100%; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; color: var(--muted); text-align: center; padding: 12px;
  background: radial-gradient(circle at 30% 20%, var(--brand-soft), transparent 60%), var(--surface-2); }
.shot-ph b { color: var(--text); font-size: 1.1rem; word-break: break-all; }
.kpi { position: relative; overflow: hidden; }
.kpi::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 4px; background: var(--k, var(--brand)); }
.kpi .ico { width: 26px; height: 26px; border-radius: 8px; display: inline-grid; place-items: center; background: color-mix(in srgb, var(--k, var(--brand)) 14%, transparent); color: var(--k, var(--brand)); font-size: .85rem; }
.k-green { --k: #17915a; } .k-blue { --k: #2f6fed; } .k-violet { --k: #7b5cff; } .k-amber { --k: #d08a12; } .k-teal { --k: #0f9aa8; } .k-red { --k: #d23f3f; }
.kpi .value.v-sm { font-size: 1.15rem; }
.toc { position: sticky; top: 64px; z-index: 20; background: var(--bg); padding-top: 10px; margin-top: 6px; }
@media (max-width: 860px) { .toc { top: 0; position: relative; } }
.facts dl { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 28px; margin: 0; }
.facts dl > div { display: grid; grid-template-columns: 170px minmax(0, 1fr); gap: 12px; padding: 9px 0; border-bottom: 1px dashed var(--border); }
.facts dt { color: var(--muted); font-weight: 600; font-size: .9rem; }
.facts dd { margin: 0; overflow-wrap: anywhere; }
@media (max-width: 760px) { .facts dl { grid-template-columns: minmax(0, 1fr); } .facts dl > div { grid-template-columns: 130px minmax(0, 1fr); } }
.worth-big { font-size: 2.2rem; font-weight: 800; letter-spacing: -.03em; color: var(--ok); margin-bottom: 4px; }
table.compare tr.self td { background: var(--brand-soft); }
.neighbors { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.neighbors li { display: grid; grid-template-columns: 90px 18px minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 8px 12px; border-radius: 10px; border: 1px solid var(--border); }
.neighbors li.self { background: var(--brand-soft); border-color: transparent; }
.neighbors .r { font-variant-numeric: tabular-nums; color: var(--muted); font-weight: 700; }
.neighbors .w { color: var(--ok); font-weight: 700; font-size: .9rem; }
.badge-row { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 16px; align-items: center; }
@media (max-width: 640px) { .badge-row { grid-template-columns: minmax(0, 1fr); } }
textarea.code { min-height: 0; font-family: var(--mono); font-size: .8rem; }

/* ---------- Accueil v2 (21/10/2026) ---------- */
.hero-v2 {
  text-align: left; padding: 64px 0 72px; color: #e9eefc; border-bottom: 0;
  background:
    radial-gradient(700px 380px at 85% 10%, rgba(123, 92, 255, .45), transparent 60%),
    radial-gradient(800px 420px at 0% 100%, rgba(47, 111, 237, .45), transparent 60%),
    linear-gradient(160deg, #0d1530 0%, #14214a 55%, #1a1f4a 100%);
}
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .85fr); gap: 48px; align-items: center; }
@media (max-width: 960px) { .hero-grid { grid-template-columns: minmax(0, 1fr); gap: 32px; } }
.hero-v2 h1 { margin: 14px 0; font-size: clamp(2rem, 4.6vw, 3.2rem); letter-spacing: -.03em; color: #fff; max-width: none; }
.hero-v2 .lead { color: #b9c4e4; margin: 0 0 26px; max-width: 600px; }
.hero-v2 form { margin: 0; max-width: 620px; }
.hero-v2 .search { border-color: transparent; box-shadow: 0 10px 40px rgba(0, 0, 0, .35); }
.hero-v2 .examples { color: #9aa8d0; }
.hero-v2 .examples a { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .14); color: #e9eefc; }
.hero-v2 .loading { color: #b9c4e4; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: .82rem; font-weight: 700; letter-spacing: .02em; color: #c9d5ff; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .14); padding: 5px 12px; border-radius: 99px; }
.eyebrow .fa { color: #ffd166; }

.sample { display: grid; gap: 16px; padding: 22px; color: var(--text); border: 0; box-shadow: 0 24px 60px rgba(0, 0, 0, .35); transform: rotate(-1.2deg); transition: transform .2s ease; }
.sample:hover { transform: rotate(0) translateY(-3px); text-decoration: none; color: var(--text); }
.sample-head { display: flex; align-items: center; gap: 12px; }
.sample-head img { border-radius: 6px; }
.sample-head > span:nth-child(2) { display: grid; flex: 1; line-height: 1.2; }
.sample-head small { color: var(--muted); font-size: .8rem; }
.sample-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.sample-kpis > span { background: var(--surface-2); border-radius: 10px; padding: 10px 12px; display: grid; }
.sample-kpis small, .sample-chart small { color: var(--muted); font-size: .72rem; text-transform: uppercase; letter-spacing: .04em; font-weight: 700; }
.sample-kpis b { font-size: 1.15rem; letter-spacing: -.02em; }
.sample-chart { display: grid; gap: 4px; }
.spark { width: 100%; height: 60px; }
.spark polyline { fill: none; stroke: var(--brand); stroke-width: 3; stroke-linejoin: round; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.sample-rows { display: grid; gap: 6px; font-size: .9rem; color: var(--muted); }
.sample-rows .fa { width: 18px; color: var(--brand); }
.sample-cta { font-weight: 700; color: var(--brand); font-size: .92rem; }

.stats-strip { background: var(--surface); border-bottom: 1px solid var(--border); }
.stats-strip .wrap { display: grid; grid-template-columns: repeat(4, 1fr); text-align: center; }
.stats-strip .wrap > div { padding: 22px 8px; display: grid; gap: 2px; }
.stats-strip .wrap > div + div { border-left: 1px solid var(--border); }
.stats-strip b { font-size: 1.6rem; letter-spacing: -.03em; background: linear-gradient(90deg, var(--brand), #7b5cff); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stats-strip span { color: var(--muted); font-size: .88rem; }
@media (max-width: 640px) { .stats-strip .wrap { grid-template-columns: repeat(2, 1fr); } .stats-strip .wrap > div:nth-child(3) { border-left: 0; } .stats-strip .wrap > div:nth-child(n+3) { border-top: 1px solid var(--border); } }

.home-split { grid-template-columns: minmax(0, .9fr) minmax(0, 1.3fr); gap: 28px; align-items: start; }
@media (max-width: 960px) { .home-split { grid-template-columns: minmax(0, 1fr); } }
.leaders ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.leaders li a { display: grid; grid-template-columns: 28px 20px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 9px 10px; border-radius: 10px; color: var(--text); }
.leaders li a:hover { background: var(--surface-2); text-decoration: none; }
.leaders .pos { width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; font-weight: 800; font-size: .85rem; background: var(--surface-2); color: var(--muted); }
.leaders li:nth-child(1) .pos { background: #ffd166; color: #5a4300; }
.leaders li:nth-child(2) .pos { background: #d9dee8; color: #3b4252; }
.leaders li:nth-child(3) .pos { background: #f0b88a; color: #5c2f0c; }
.leaders .d { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.leaders .w { font-weight: 700; color: var(--ok); font-variant-numeric: tabular-nums; }
.features-compact { gap: 14px; }
.features-compact .feature { display: flex; gap: 14px; align-items: flex-start; padding: 14px; border-radius: 12px; border: 1px solid var(--border); background: var(--surface); }
.features-compact .feature .fa { margin: 0; flex: none; }
.features-compact h3 { font-size: .98rem; margin: 0 0 2px; }
.features-compact p { font-size: .88rem; }

.steps-section { background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; counter-reset: s; }
@media (max-width: 760px) { .steps { grid-template-columns: 1fr; } }
.steps li { text-align: center; padding: 8px 12px; }
.steps li span { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; margin: 0 auto 12px; font-weight: 800; font-size: 1.2rem; color: #fff; background: linear-gradient(135deg, var(--brand), #7b5cff); box-shadow: 0 8px 20px rgba(47, 111, 237, .3); }
.steps p { color: var(--muted); margin: 0; }
.live-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--ok); margin-right: 4px; box-shadow: 0 0 0 0 rgba(23, 145, 90, .6); animation: pulse 1.8s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 8px rgba(23, 145, 90, 0); } 100% { box-shadow: 0 0 0 0 rgba(23, 145, 90, 0); } }

.cat-icons a { justify-content: flex-start; }
.cat-icons a .fa { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand); flex: none; }
.cat-icons a span:not(.n) { flex: 1; }

.faq-wrap { max-width: 860px; }
details.qa { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; margin-bottom: 10px; }
details.qa summary { cursor: pointer; padding: 16px 18px; font-weight: 700; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
details.qa summary::-webkit-details-marker { display: none; }
details.qa summary::after { content: "+"; color: var(--brand); font-size: 1.3rem; line-height: 1; }
details.qa[open] summary::after { content: "\2212"; }
details.qa p { padding: 0 18px 16px; margin: 0; color: var(--muted); }

.cta-band { margin-top: 20px; padding: 56px 0; text-align: center; color: #fff;
  background: radial-gradient(600px 300px at 20% 0%, rgba(123, 92, 255, .5), transparent 60%), linear-gradient(135deg, #1f56c8, #3b2db8); }
.cta-band h2 { font-size: clamp(1.4rem, 3vw, 2rem); margin-bottom: 18px; }
.cta-band form { max-width: 620px; margin: 0 auto; }
.cta-band .search { border-color: transparent; }
.cta-band + .site-footer { margin-top: 0; }
.checks .fa-exclamation-circle { color: var(--warn); }
.checks li.st-ok { border-left: 3px solid var(--ok); }
.checks li.st-warn { border-left: 3px solid var(--warn); }
.checks li.st-bad { border-left: 3px solid var(--bad); }
