/* Tableau de bord Vigie : une interface produit calme. Fond #FAFAF8, blocs blancs à filet de 1 px et rayon de 12 px,
   sans ombre portée, violet pour l'état actif, citron réservé au surligneur, chasse fixe réservée aux adresses. */

.db-page {
  --db-bg: #FAFAF8; --db-line: #E9E9E4; --db-act: #F4F1FF; --db-track: #EFEFEA; --db-hover: #F2F2EE; --db-r: 12px;
  min-height: 70vh; background: var(--db-bg);
}
.db { --stick: 68px; font-size: 14px; line-height: 1.45; width: 100%; max-width: 1480px; margin-inline: auto; }
.db h1, .db-screen h1 { font-size: 24px; font-weight: 700; line-height: 1.15; letter-spacing: -.025em; text-wrap: balance; }
.db h1:focus { outline: none; }
.db h2 { font-size: 15px; font-weight: 700; line-height: 1.3; letter-spacing: -.012em; }
.db h3 { font-size: 13.5px; font-weight: 650; line-height: 1.3; letter-spacing: -.005em; }
.db code { font-family: var(--mono); font-size: 12px; color: var(--mute); overflow-wrap: anywhere; }
.db select, .db-screen input { font: inherit; color: var(--ink); }
.db-noscript { padding: 48px 16px; text-align: center; }
.db-sym { display: inline-flex; color: var(--violet); }
.db-sym .vmark { margin: 0; }
.db-sym .vmark-ring, .db-sym .vmark-dot { animation: none; }
.db-padlock { width: 15px; height: 15px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linejoin: round; }

/* ─ Boutons et liens ─ */
.db-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 38px; padding: 7px 16px; background: var(--ink); color: #fff; border: 1px solid var(--ink); border-radius: 8px; font-size: 13.5px; font-weight: 600; line-height: 1.2; letter-spacing: -.005em; text-decoration: none; text-align: center; cursor: pointer; transition: background-color .15s, border-color .15s, color .15s; }
.db-btn:hover { background: var(--violet); border-color: var(--violet); color: #fff; }
.db-btn-line { background: #fff; color: var(--ink); border-color: var(--db-line); }
.db-btn-line:hover { background: #fff; border-color: var(--ink); color: var(--ink); }
.db-link { padding: 0; background: none; border: 0; font: inherit; font-size: 13px; color: var(--mute); text-decoration: underline; text-underline-offset: .18em; flex: none; cursor: pointer; }
.db-link:hover { color: var(--ink); }
.db-acts-link { margin-top: 12px; }
.db-config-cta { margin-top: 0; }

/* ─ Bandeau de démonstration : trois offres, un sélecteur segmenté ─ */
.db-demo { position: sticky; top: 68px; z-index: 7; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 16px; min-height: 44px; padding: 5px 28px; background: #fff; border-bottom: 1px solid var(--db-line); font-size: 13px; }
.db-demo-t { display: inline-flex; align-items: center; gap: 8px; color: var(--mute); }
.db-demo-t b { padding: 2px 8px; background: var(--db-act); border-radius: 6px; color: var(--violet); font-size: 12px; font-weight: 650; }
.db-seg { display: inline-flex; align-items: center; gap: 10px; margin: 0; padding: 0; border: 0; min-width: 0; }
.db-seg legend { float: left; padding: 0; margin-right: 10px; color: var(--mute); }
.db-seg-o { display: inline-flex; padding: 2px; background: var(--db-bg); border: 1px solid var(--db-line); border-radius: 8px; }
.db-seg label { position: relative; display: inline-flex; align-items: center; min-height: 28px; padding: 0 12px; border-radius: 6px; color: var(--mute); font-weight: 500; white-space: nowrap; cursor: pointer; transition: background-color .15s, color .15s; }
.db-seg label:hover { color: var(--ink); }
.db-seg input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.db-seg label:has(input:checked) { background: #fff; color: var(--ink); font-weight: 650; outline: 1px solid var(--db-line); }
.db-seg label:has(input:focus-visible) { outline: 2px solid var(--ink); outline-offset: 1px; }
.db-demo a { margin-left: auto; font-weight: 600; color: var(--ink); }
.db-demo a:hover { color: var(--violet); }
@media (min-width: 901px) { .db.is-demo { --stick: 112px; } }

/* ─ En-tête : le client, son logo, son offre ─ */
.db-top { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; padding: 24px 28px 20px; }
.db-top-id { display: flex; align-items: center; gap: 14px; min-width: 0; }
.db-top-n { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.db-top-b { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; }
.db-top-b b { font-size: 20px; font-weight: 750; line-height: 1.15; letter-spacing: -.022em; }
.db-top-n code { font-size: 12.5px; }
.db-top-m { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; margin-left: auto; font-size: 13px; color: var(--mute); }
.db-top-e { display: inline-flex; align-items: center; gap: 6px; }
.db-top-e > span { display: inline-grid; place-items: center; width: 28px; height: 28px; background: #fff; border: 1px solid var(--db-line); border-radius: 8px; }
.db-logo { width: 16px; height: 16px; flex: none; }
.db-eng { display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; }
.db-tag { display: inline-block; padding: 2px 8px; background: #fff; border: 1px solid var(--db-line); border-radius: 6px; font-family: var(--sans); font-size: 11.5px; font-weight: 550; line-height: 1.45; color: var(--mute); white-space: nowrap; letter-spacing: 0; }
.db-tag-you { background: var(--db-act); border-color: var(--db-act); color: var(--violet); font-weight: 650; }

/* Les logos de sites : tuile blanche, filet fin ; l'initiale du client en violet tant que son logo n'est pas là */
.db-page .slogo { background: #fff; border-color: var(--db-line); }
.db-page .slogo b { font-weight: 750; color: var(--ink); }
.db-page .slogo.db-mine b { color: var(--violet); }

/* ─ Charpente ─ */
.db-body { display: grid; grid-template-columns: 236px minmax(0, 1fr); gap: 0 8px; padding: 0 28px 0 16px; }
.db-side { position: sticky; top: var(--stick); align-self: start; max-height: calc(100dvh - var(--stick)); overflow-y: auto; padding: 4px 0 24px; }
.db-side-g { margin-bottom: 18px; }
.db-side-g > p { padding: 0 12px 6px; font-size: 11.5px; font-weight: 600; letter-spacing: .01em; color: var(--mute); }
.db-side a[data-view] { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 36px; padding: 6px 12px; border-radius: 8px; color: var(--ink); font-size: 13.5px; line-height: 1.25; text-decoration: none; transition: background-color .15s, color .15s; }
.db-side a[data-view]:hover { background: var(--db-hover); color: var(--ink); }
.db-side a[aria-current="page"], .db-side a[aria-current="page"]:hover { background: var(--db-act); color: var(--violet); font-weight: 650; }
.db-side small { display: inline-flex; align-items: center; gap: 4px; font-size: 11.5px; font-weight: 500; color: var(--mute); flex: none; }
.db-side small .db-padlock { width: 12px; height: 12px; }
.db-side-n { min-width: 22px; padding: 0 6px; background: #fff; border: 1px solid var(--db-line); border-radius: 6px; justify-content: center; color: var(--ink) !important; font-variant-numeric: tabular-nums; }
.db-side-help { margin-top: 4px; padding: 12px 12px 0; border-top: 1px solid var(--db-line); font-size: 12.5px; color: var(--mute); }
.db-main { display: flex; flex-direction: column; gap: 16px; min-width: 0; min-height: calc(100dvh - 160px); padding: 4px 0 56px; }
.db-main > * { min-width: 0; }
.db-main.is-in > * { animation: db-in .22s var(--out) both; }
@keyframes db-in { from { opacity: 0; transform: translateY(4px); } }
.db-head { margin-bottom: 2px; }
.db-head p { margin-top: 6px; color: var(--mute); max-width: 62em; text-wrap: pretty; }

.db-block { padding: 20px; border: 1px solid var(--db-line); border-radius: var(--db-r); background: #fff; min-width: 0; }
.db-block > h2 { margin-bottom: 14px; }
.db-block > h3 { margin-bottom: 12px; }
.db-two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.db-two-in { gap: 24px; }
.db-two-in h3 { margin-bottom: 8px; }
.db-note { margin-top: 12px; font-size: 12.5px; color: var(--mute); text-wrap: pretty; }
.db-empty { color: var(--mute); }
.db-notice { display: block; text-wrap: pretty; padding: 10px 14px; background: #fff; border: 1px solid var(--db-line); border-left: 3px solid var(--violet); border-radius: 8px; font-size: 13.5px; }
.db-notice a { color: var(--ink); font-weight: 600; }
.db-none { display: flex; align-items: flex-start; gap: 14px; }
.db-none p { margin-top: 4px; color: var(--mute); }

/* ─ Indicateurs : le chiffre, et l'anneau de jauge à sa droite ─ */
.db-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(176px, 1fr)); gap: 12px; }
.db-k { display: flex; flex-direction: column; gap: 4px; min-width: 0; padding: 16px 18px 18px; background: #fff; border: 1px solid var(--db-line); border-radius: var(--db-r); }
.db-k-h { font-size: 13px; font-weight: 600; color: var(--mute); }
.db-k-v { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 52px; margin: 2px 0 6px; }
.db-k strong { font-size: 32px; font-weight: 750; line-height: 1.05; letter-spacing: -.035em; }
.db-k em { font-size: 16px; font-style: normal; font-weight: 500; letter-spacing: 0; color: var(--mute); }
.db-k-lock { display: inline-flex; align-items: center; gap: 6px; font-size: 15px; font-weight: 650; letter-spacing: -.005em; color: var(--ink); text-decoration: underline; text-decoration-color: var(--db-line); text-underline-offset: .2em; }
.db-k-lock:hover { color: var(--violet); text-decoration-color: currentColor; }
.db-k-l, .db-k-d { display: block; font-size: 12.5px; line-height: 1.4; }
.db-k-l { color: var(--mute); }
.db-k-d { color: var(--ink); margin-top: 4px; padding-top: 8px; border-top: 1px solid var(--db-line); }
.db-gauge { width: 46px; height: 46px; flex: none; }
.db-g-track, .db-g-fill { fill: none; stroke-width: 6; }
.db-g-track { stroke: var(--db-track); }
.db-g-fill { stroke: var(--violet); }
.db-g-dot { fill: var(--ink); }
.is-first .db-g-fill { animation: db-gauge .6s var(--out) both; }
@keyframes db-gauge { from { stroke-dasharray: 0 100; } }

.db-go { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 14px; padding: 14px 18px; background: #fff; border: 1px solid var(--db-line); border-radius: var(--db-r); color: var(--ink); text-decoration: none; transition: border-color .15s; }
.db-go:hover { border-color: var(--ink); color: var(--ink); }
.db-go b { font-weight: 700; }
.db-go span { color: var(--mute); font-size: 13px; flex: 1 1 200px; }
.db-arrow { width: 16px; height: 16px; flex: none; transition: transform .2s var(--out); }
.db-go:hover .db-arrow { transform: translateX(3px); }

/* ─ Barres fines ─ */
.db-bar { display: block; height: 6px; background: var(--db-track); border-radius: 3px; min-width: 24px; overflow: hidden; }
.db-bar i { display: block; height: 100%; background: var(--violet); border-radius: 3px; transform-origin: left; }
.is-first .db-bar i { animation: db-grow .5s var(--out) both; }
@keyframes db-grow { from { transform: scaleX(0); } }
/* La grille est portée par la liste : toutes les barres ont la même longueur, quelle que soit la valeur à droite. */
.db-bars { display: grid; grid-template-columns: minmax(96px, 34%) minmax(0, 1fr) minmax(44px, auto); gap: 12px 14px; }
.db-r { display: grid; grid-column: 1 / -1; grid-template-columns: minmax(96px, 34%) minmax(0, 1fr) minmax(44px, auto); grid-template-columns: subgrid; align-items: center; font-size: 13.5px; }
.db-r-n { min-width: 0; overflow-wrap: anywhere; line-height: 1.25; }
.db-r small { color: var(--mute); font-size: 12px; margin-left: 4px; }
.n { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.db-barline { display: grid; grid-template-columns: minmax(0, 1fr) 44px; align-items: center; gap: 12px; }

/* ─ Tableaux ─ */
.db-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.db-t { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.db-t th, .db-t td { padding: 10px 10px; border-bottom: 1px solid var(--db-line); text-align: left; vertical-align: middle; font-weight: 400; }
.db-t th:first-child, .db-t td:first-child { padding-left: 0; }
.db-t th:last-child, .db-t td:last-child { padding-right: 0; }
.db-t thead th { padding-top: 0; padding-bottom: 8px; font-size: 12px; font-weight: 550; color: var(--mute); white-space: nowrap; }
.db-t tbody tr:last-child > * { border-bottom: 0; }
.db-t .n { text-align: right; }
.db-t .w { width: 32%; min-width: 150px; }
.db-t code { display: block; margin-top: 1px; }
.db-t-rank td.n:first-child { width: 36px; color: var(--mute); font-weight: 600; text-align: left; }
.db-t-rank .is-you td.n:first-child { color: var(--violet); }
/* Un logo de site et son nom, alignés */
.db-who { display: flex; align-items: center; gap: 10px; min-width: 0; }
.db-who > :last-child { min-width: 0; }
.db-chips { display: inline-flex; flex-wrap: wrap; gap: 6px; vertical-align: middle; }
.db-named { display: inline-flex; align-items: center; gap: 6px; min-height: 26px; padding: 2px 8px 2px 3px; background: #fff; border: 1px solid var(--db-line); border-radius: 8px; color: var(--ink); font-size: 12.5px; font-weight: 550; white-space: nowrap; }
.db-named .slogo { margin: 0; }
.db-rows-c li { align-items: center; }
.db-brand { font-weight: 550; }
.is-you .db-brand { font-weight: 750; }
.db-state { color: var(--mute); }
.db-wrap { overflow-wrap: anywhere; }
.db-t .db-wrap a { color: var(--ink); text-decoration-color: var(--db-line); text-underline-offset: .18em; }
.db-t .db-wrap a:hover { text-decoration-color: var(--ink); }
.db-data { font-size: 13px; }
.db-data summary { cursor: pointer; min-height: 28px; color: var(--mute); }
.db-data summary:hover { color: var(--ink); }
.db-data .db-scroll { margin-top: 8px; padding: 16px 20px; background: #fff; border: 1px solid var(--db-line); border-radius: var(--db-r); }
.db-more { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--db-line); }
.db-more .sk { flex: 0 0 110px; margin: 0; }
.db-more p { flex: 1 1 160px; }

/* ─ Graphiques ─ */
.db-chart { position: relative; min-height: 170px; }
.db-chart svg { display: block; max-width: 100%; touch-action: pan-y; }
.ch-grid { stroke: var(--db-line); stroke-width: 1; }
.ch-t { fill: var(--mute); font: 400 11px var(--sans); }
.ch-v { fill: var(--ink); font: 650 12px var(--sans); paint-order: stroke; stroke: #fff; stroke-width: 4px; stroke-linejoin: round; }
.ch-line { fill: none; stroke: var(--violet); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.ch-area { fill: var(--violet); opacity: .08; }
.ch-dot { fill: var(--violet); stroke: #fff; stroke-width: 2; }
.ch-cross { stroke: var(--ink); stroke-width: 1; opacity: .3; }
.ch-tip { position: absolute; top: 0; padding: 6px 10px; background: #fff; border: 1px solid var(--db-line); border-radius: 8px; pointer-events: none; white-space: nowrap; z-index: 2; }
.ch-tip b { display: block; font-size: 15px; font-weight: 750; line-height: 1.2; letter-spacing: -.02em; }
.ch-tip span { font-size: 11.5px; color: var(--mute); }

/* ─ Verrou : sobre et lisible, rien de réel derrière ─ */
.lock { position: relative; display: grid; place-items: center; min-height: 260px; padding: 28px 16px; border: 1px solid var(--db-line); border-radius: var(--db-r); background: #fff; overflow: hidden; }
.lock-small { min-height: 200px; padding: 18px; }
.lock-ghost { position: absolute; inset: 20px; opacity: .5; pointer-events: none; }
.lock-in { position: relative; display: flex; flex-direction: column; align-items: center; gap: 6px; width: min(100%, 410px); padding: 18px 22px 20px; background: #fff; border: 1px solid var(--db-line); border-radius: var(--db-r); text-align: center; }
.lock-o { display: inline-flex; align-items: center; gap: 6px; margin-bottom: 2px; font-size: 12px; font-weight: 650; color: var(--violet); }
.db .lock-in h3, .lock-in h3 { font-size: 15px; font-weight: 700; letter-spacing: -.012em; }
.lock-in p { font-size: 13px; color: var(--mute); text-wrap: pretty; }
.lock-in .db-btn { margin-top: 8px; }
.sk { display: block; height: 10px; margin-bottom: 12px; background: var(--db-track); border-radius: 5px; }
.sk-thick { height: 14px; margin-bottom: 18px; }
.sk-big { height: 26px; border-radius: 6px; }
.sk-logo { flex: none; width: 40px; height: 40px; margin: 0; border-radius: 10px; }
.sk-chart { display: block; width: 100%; height: 100%; }
.sk-grid { fill: none; stroke: var(--db-line); stroke-width: 1; vector-effect: non-scaling-stroke; }
.sk-line { fill: none; stroke: #DADAD3; stroke-width: 2; vector-effect: non-scaling-stroke; }
.db-k-sk .sk { margin-bottom: 10px; }
.db-side-sk { padding-top: 8px; }
.db-side-sk .sk { margin-left: 12px; margin-bottom: 18px; }
/* Chargement : une légère pulsation d'opacité, sans dégradé */
.db-is-loading .sk { animation: db-pulse 1.3s ease-in-out infinite alternate; }
@keyframes db-pulse { to { opacity: .45; } }

/* ─ Questions et réponses ─ */
.db-filters { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px 12px; }
.db-sel span { display: block; margin-bottom: 4px; font-size: 12px; font-weight: 500; color: var(--mute); }
.db-sel select { height: 40px; min-width: 200px; font-size: 14px; }
.db-count { margin-left: auto; padding-bottom: 9px; font-size: 13px; color: var(--mute); }
.db-legend { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 12.5px; color: var(--mute); }
.db-legend .v { min-width: 0; height: 22px; margin-left: 10px; }
.db-legend .v:first-child { margin-left: 0; }

.v { display: inline-flex; align-items: center; justify-content: center; gap: 5px; min-width: 62px; height: 28px; padding: 0 9px; border: 1px solid transparent; border-radius: 6px; font: inherit; font-size: 12.5px; font-weight: 650; line-height: 1; white-space: nowrap; font-variant-numeric: tabular-nums; }
.v-both { background: var(--violet); color: #fff; }
.v-both .db-logo { color: #fff !important; }
.v-named { background: #E9E5FC; color: var(--ink); }
.v-cited { background: #fff; border-color: var(--violet); color: var(--ink); }
.v-absent { background: var(--db-bg); border-color: var(--db-line); color: var(--mute); font-weight: 500; }
.v-wait { color: var(--mute); font-weight: 400; }
button.v { cursor: pointer; transition: border-color .15s, outline-color .15s; }
button.v:hover, button.v[aria-expanded="true"] { border-color: var(--ink); }
button.v[aria-expanded="true"] { outline: 1px solid var(--ink); }

.db-q { overflow-x: auto; }
.q-t { width: 100%; border-collapse: collapse; }
.q-t thead th { padding: 0 6px 10px; border-bottom: 1px solid var(--db-line); font-size: 12px; font-weight: 550; color: var(--mute); text-align: left; vertical-align: bottom; }
.q-t thead th:first-child { padding-left: 0; }
.q-h, .q-c { width: 92px; text-align: center !important; }
.q-h .db-eng { flex-direction: column; gap: 4px; white-space: normal; line-height: 1.15; }
.q-row > th, .q-row > td { padding: 10px 6px; border-bottom: 1px solid var(--db-line); vertical-align: middle; }
.q-row > th { padding-left: 0; font-weight: 400; text-align: left; }
.q-t tbody tr:last-child > * { border-bottom: 0; }
.q-text { display: block; font-weight: 550; text-wrap: pretty; overflow-wrap: anywhere; }
.q-sub { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 8px; margin-top: 4px; font-size: 12px; color: var(--mute); }
.q-c .db-logo { display: none; }
.q-p > td { padding: 0 0 14px; border-bottom: 1px solid var(--db-line); }
.q-panel { padding: 16px; background: var(--db-bg); border: 1px solid var(--db-line); border-radius: 10px; animation: db-in .2s var(--out) both; }
.q-panel-h { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.q-panel-q { font-weight: 650; overflow-wrap: anywhere; }
.q-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 8px; margin-top: 6px; font-size: 13px; color: var(--mute); }
.q-meta .db-eng { color: var(--ink); font-weight: 550; }
.q-sent { margin-top: 8px; }
.q-sent b { font-weight: 650; }
.q-brands { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; margin-top: 6px; font-size: 13px; color: var(--mute); overflow-wrap: anywhere; }
.q-ex { margin-top: 12px; padding: 14px; background: #fff; border: 1px solid var(--db-line); border-radius: 8px; white-space: pre-line; overflow-wrap: anywhere; }
.q-panel .lock { margin-top: 12px; }

/* ─ Listes ─ */
.db-list li { padding: 8px 0; border-bottom: 1px solid var(--db-line); }
.db-list li:last-child { border-bottom: 0; }
.db-rows li { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 2px 16px; padding: 10px 0; border-bottom: 1px solid var(--db-line); }
.db-rows li:last-child { border-bottom: 0; }
.db-rows-m { font-size: 12.5px; color: var(--mute); }
.db-acts { display: grid; gap: 10px; }
.db-act { display: flex; gap: 14px; padding: 18px 20px; background: #fff; border: 1px solid var(--db-line); border-radius: var(--db-r); }
.db-act > div { min-width: 0; }
.db-act-n { display: inline-grid; place-items: center; flex: none; width: 26px; height: 26px; background: var(--db-act); border-radius: 8px; font-size: 12.5px; font-weight: 700; color: var(--violet); font-variant-numeric: tabular-nums; }
.db-act p { margin-top: 4px; overflow-wrap: anywhere; }
.db-act .db-act-m { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 18px; margin-top: 10px; font-size: 12.5px; color: var(--mute); }
.db-act-m b { font-weight: 650; color: var(--ink); }
.db-act-m a { color: var(--ink); font-weight: 600; }
.db-arts { display: grid; gap: 10px; }
.db-art { background: #fff; border: 1px solid var(--db-line); border-radius: var(--db-r); }
.db-art summary { padding: 14px 18px; cursor: pointer; }
.db-art summary b { font-weight: 650; }
.db-art summary span { display: block; margin-top: 3px; font-size: 12.5px; color: var(--mute); }
.db-art .db-btn { margin: 0 18px 12px; }
.db-art pre { padding: 14px 18px 18px; border-top: 1px solid var(--db-line); font-family: var(--sans); font-size: 13.5px; line-height: 1.55; white-space: pre-wrap; overflow-wrap: anywhere; }

/* ─ États du relevé ─ */
.db-run { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; padding: 14px 18px; background: #fff; border: 1px solid var(--db-line); border-radius: var(--db-r); }
.db-run > .vmark { color: var(--violet); margin: 0; }
.db-run-t { flex: 1 1 240px; min-width: 0; }
.db-run b { font-weight: 650; }
.db-run .db-bar { height: 4px; margin-top: 10px; }
.db-run .db-bar i { transition: width .6s var(--out); }
.db-load { display: inline-flex; align-items: center; gap: 8px; color: var(--mute); }
.db-load .vmark { color: var(--violet); margin: 0; }

/* ─ Écrans sans tableau : une carte au centre ─ */
.db-screen { width: min(100% - 32px, 560px); margin: 0 auto; padding: 72px 0 96px; font-size: 15px; line-height: 1.5; }
.db-screen-c { padding: 32px; background: #fff; border: 1px solid var(--db-line); border-radius: var(--db-r); }
.db-screen-c > .db-sym { margin-bottom: 18px; }
.db-screen-c > p { margin-top: 10px; color: var(--mute); text-wrap: pretty; }
.db-screen .db-acts-link { margin-top: 18px; }
.db-key { margin-top: 24px; }
.db-key label { display: block; margin-bottom: 6px; font-size: 13.5px; font-weight: 650; }
.db-key-r { display: flex; gap: 8px; }
.db-key-r input { flex: 1; min-width: 0; height: 44px; padding: 0 14px; background: #fff; border: 1px solid var(--db-line); border-radius: 8px; font-size: 16px; transition: border-color .15s; }
.db-key-r input:hover { border-color: var(--mute); }
.db-key-r input:focus { border-color: var(--ink); outline: 2px solid var(--ink); outline-offset: 1px; }
.db-key-r .db-btn { min-height: 44px; }
.db-key-e { margin-top: 8px; font-size: 13.5px; color: var(--red); }
.db-links { margin-top: 24px; border-top: 1px solid var(--db-line); }
.db-links li { border-bottom: 1px solid var(--db-line); }
.db-links li:last-child { border-bottom: 0; }
.db-links a { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 46px; color: var(--ink); font-weight: 550; text-decoration: none; }
.db-links a:hover { color: var(--violet); }

/* ─ Tablette et téléphone ─ */
@media (max-width: 1100px) {
  .db-two { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 900px) {
  .db-demo { position: static; padding: 10px 16px; gap: 10px 16px; }
  .db-seg { flex-wrap: wrap; width: 100%; }
  .db-seg legend { float: none; width: 100%; margin: 0 0 6px; }
  .db-seg-o { width: 100%; }
  .db-seg label { flex: 1 1 0; justify-content: center; min-height: 40px; padding: 0 6px; }
  .db-demo a { margin-left: 0; min-height: 44px; display: inline-flex; align-items: center; }
  .db-top { padding: 18px 16px 16px; gap: 12px 16px; }
  .db-top-m { margin-left: 0; width: 100%; }
  .db-top .db-btn { width: 100%; }
  .db-btn { min-height: 44px; }
  .db-body { grid-template-columns: minmax(0, 1fr); padding: 0; }
  /* Onglets : une rangée qui défile, l'onglet actif souligné en violet */
  .db-side { z-index: 6; top: 68px; display: flex; gap: 2px; max-height: none; padding: 0 10px; overflow-x: auto; overflow-y: hidden; overscroll-behavior-x: contain; background: #fff; border-top: 1px solid var(--db-line); border-bottom: 1px solid var(--db-line); scrollbar-width: none; }
  .db-side::-webkit-scrollbar { display: none; }
  .db-side-g { display: contents; }
  .db-side-g > p, .db-side-help { display: none; }
  .db-side a[data-view] { flex: none; gap: 6px; min-height: 48px; padding: 8px 10px; border-radius: 0; border-bottom: 2px solid transparent; color: var(--mute); white-space: nowrap; }
  .db-side a[data-view]:hover { background: none; color: var(--ink); }
  .db-side a[aria-current="page"], .db-side a[aria-current="page"]:hover { background: none; color: var(--ink); border-bottom-color: var(--violet); }
  .db-side a[data-view]:focus-visible { outline-offset: -3px; }
  .db-main { padding: 16px 16px 48px; min-height: 60vh; gap: 12px; }
  .db-block { padding: 16px; }
  .db-sel { flex: 1 1 100%; }
  .db-sel select { width: 100%; height: 44px; font-size: 16px; }
  .db-count { margin-left: 0; padding-bottom: 0; }
  .db-data summary { min-height: 0; padding-block: 12px; line-height: 20px; }
  .db-data .db-scroll { padding: 12px 14px; }
  .db-art summary { min-height: 44px; }
  .db-link { min-height: 44px; display: inline-flex; align-items: flex-start; }
  .db-side-sk { display: none; }
  .db-screen { padding: 32px 0 64px; }
  .db-screen-c { padding: 24px 20px; }

  /* Les questions deviennent des cartes : la question, puis un bouton par moteur */
  .db-q { overflow-x: visible; }
  .q-t, .q-t tbody { display: block; }
  .q-t thead { display: none; }
  .q-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; padding: 12px 0; border-bottom: 1px solid var(--db-line); }
  .q-t tbody tr:last-child.q-row { border-bottom: 0; padding-bottom: 0; }
  .q-row > th { grid-column: 1 / -1; padding: 0 0 4px; border: 0; }
  .q-row > td { padding: 0; border: 0; }
  .q-c { width: auto; }
  .q-c .v { width: 100%; height: 44px; }
  .q-c .db-logo { display: block; }
  .q-p { display: block; }
  .q-p > td { display: block; padding: 8px 0 12px; }
}
@media (max-width: 640px) {
  .db h1, .db-screen h1 { font-size: 22px; }
  .db-k strong { font-size: 28px; }
  .db-gauge { width: 40px; height: 40px; }
  /* Les tableaux tiennent dans la largeur : le chiffre reste, la barre s'efface. */
  .db-t { min-width: 0 !important; }
  .db-t th, .db-t td { padding-inline: 5px; }
  .db-t thead th { white-space: normal; line-height: 1.2; vertical-align: bottom; }
  .db-t .w { width: auto; min-width: 0; text-align: right; }
  .db-barline { display: block; text-align: right; }
  .db-barline .db-bar { display: none; }
  .db-t-rank code { display: none; }
  .db-t-rank td.n:first-child { width: 22px; }
  .db-t-rank .db-who { gap: 8px; }
  .db-t-rank .slogo { --s: 24px !important; }
  .db-t-sites th[scope="row"] { width: 60%; }
  .db-t-stack thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .db-t-stack, .db-t-stack tbody, .db-t-stack tr { display: block; }
  .db-t-stack tr { padding: 12px 0; border-bottom: 1px solid var(--db-line); }
  .db-t-stack tbody tr:last-child { border-bottom: 0; padding-bottom: 0; }
  .db-t-stack th, .db-t-stack td { display: block; padding: 0; border: 0; }
  .db-t-stack td { margin-top: 6px; font-size: 13px; color: var(--mute); }
  .db-t-stack .db-eng { color: var(--ink); }
  .db-act { padding: 16px; gap: 12px; }
  .db-act .db-act-m a { display: inline-flex; align-items: center; min-height: 44px; }
  .db-k-lock { min-height: 44px; }
}
@media (max-width: 520px) {
  .db-bars { grid-template-columns: minmax(84px, 38%) minmax(0, 1fr) auto; column-gap: 8px; }
  .db-r { grid-template-columns: minmax(84px, 38%) minmax(0, 1fr) auto; grid-template-columns: subgrid; }
  .db-key-r { flex-direction: column; }
  .db-key-r input { flex: none; width: 100%; }
  .db-key-r .db-btn { width: 100%; }
  .db-top-b b { font-size: 18px; }
}

@media (prefers-reduced-motion: reduce) {
  .db-page *, .db-page *::before, .db-page *::after { animation: none !important; transition: none !important; }
}

/* Indicateurs : un chiffre fort, une ligne d'explication, l'écart */
.db-k { padding: 18px 18px 16px; }
.db-k-v strong { font-size: clamp(2rem, 2.6vw, 2.6rem); font-weight: 800; letter-spacing: -.04em; }
.db-k .db-gauge { width: 44px; height: 44px; }
.db-k .db-k-l + .db-k-l { display: none; }
.db-k-l, .db-k-d { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
.db-k-d { margin-top: 8px; padding-top: 8px; border-top: 1px solid var(--line); font-weight: 600; color: var(--ink); }

/* ═ Coquille d'application : colonne de navigation pleine hauteur, barre du haut, contenu sur fond clair ═ */
body:has(.db-page) > .top, body:has(.db-page) > .foot { display: none; }
.db-page { min-height: 100dvh; }
.db { --stick: 61px; display: grid; grid-template-columns: 252px minmax(0, 1fr); max-width: none; min-height: 100dvh; }
.db-rail { position: sticky; top: 0; align-self: start; display: flex; flex-direction: column; gap: 14px; height: 100dvh; padding: 16px 12px 16px; background: #fff; border-right: 1px solid var(--db-line); overflow-y: auto; }
.db-rail-brand { display: inline-flex; align-items: center; gap: 9px; min-height: 36px; padding: 0 8px; color: var(--ink); text-decoration: none; }
.db-rail-brand b { font-size: 19px; font-weight: 750; letter-spacing: -.03em; }
.db-client { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 10px; background: var(--db-bg); border: 1px solid var(--db-line); border-radius: 10px; }
.db-client-n { display: flex; flex-direction: column; min-width: 0; }
.db-client-n b { font-weight: 700; line-height: 1.2; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.db-client-n code { font-size: 11.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.db-rail .db-side { position: static; max-height: none; overflow: visible; padding: 0; }
.db-side-g { margin-bottom: 14px; }
.db-side-g > p { padding: 0 10px 6px; font-size: 11px; font-weight: 650; letter-spacing: .06em; text-transform: uppercase; color: #8A8A94; }
.db-side a[data-view] { justify-content: flex-start; gap: 10px; min-height: 36px; padding: 6px 10px; }
.db-side a[data-view] > span { flex: 1; min-width: 0; }
.db-ico { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.db-side a[data-view] .db-ico { color: #8A8A94; transition: color .15s; }
.db-side a[data-view]:hover .db-ico { color: var(--ink); }
.db-side a[aria-current="page"] .db-ico { color: var(--violet); }
.db-rail-foot { display: flex; flex-direction: column; gap: 12px; margin-top: auto; padding-top: 14px; border-top: 1px solid var(--db-line); }
.db-rail-h { padding: 0 10px; font-size: 11px; font-weight: 650; letter-spacing: .06em; text-transform: uppercase; color: #8A8A94; }
.db-rail-e li { display: flex; align-items: center; gap: 9px; min-height: 30px; padding: 0 10px; font-size: 13px; }
.db-rail-e span { flex: 1; }
.db-rail-e i { font-style: normal; font-size: 11.5px; color: var(--mute); }
.db-rail-e i.is-on { color: #1E7A4C; font-weight: 600; }
.db-rail-e i.is-on::before { content: ""; display: inline-block; width: 6px; height: 6px; margin-right: 6px; border-radius: 50%; background: #22A06B; vertical-align: 1px; }
.db-rail-cta { padding: 14px; background: var(--db-act); border-radius: 10px; }
.db-rail-cta b { display: block; font-size: 13.5px; font-weight: 700; letter-spacing: -.01em; }
.db-rail-cta p { margin: 4px 0 10px; font-size: 12.5px; color: var(--mute); text-wrap: pretty; }
.db-rail-cta .db-btn { width: 100%; }

.db-body { display: flex; flex-direction: column; min-width: 0; padding: 0; }
.db-demo { top: 0; }
.db-tb { position: sticky; top: 0; z-index: 6; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 20px; min-height: 61px; padding: 10px 32px; background: rgba(255, 255, 255, .96); border-bottom: 1px solid var(--db-line); }
.db.is-demo .db-tb { top: 44px; }
.db-crumb { display: flex; align-items: center; gap: 6px; min-width: 0; font-size: 14px; color: var(--mute); }
.db-crumb svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.db-crumb b { font-weight: 650; color: var(--ink); }
.db-tb .db-top-m { margin-left: auto; }
.db-tb-a { display: flex; gap: 8px; }
.db-tb .db-btn { min-height: 36px; padding: 6px 14px; }
.db-tb .db-btn .db-ico { width: 16px; height: 16px; }
.db-main { width: 100%; max-width: 1320px; padding: 28px 32px 64px; gap: 18px; }
.db h1 { font-size: 28px; letter-spacing: -.03em; }

/* Indicateurs : la jauge plus discrète, le chiffre au premier plan */
.db-k { padding: 18px 20px 18px; }
.db-k-h { font-size: 12.5px; color: var(--mute); }

/* Moteurs : une carte chacun */
.db-engs { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 12px; }
.db-eng-c { display: flex; flex-direction: column; gap: 10px; padding: 16px; background: var(--db-bg); border: 1px solid var(--db-line); border-radius: 10px; }
.db-eng-h { display: flex; align-items: center; gap: 8px; }
.db-eng-h .db-logo { width: 18px; height: 18px; }
.db-eng-h b { font-weight: 700; }
.db-eng-h > span { margin-left: auto; font-size: 12px; color: var(--mute); }
.db-eng-v { display: flex; align-items: baseline; gap: 8px; }
.db-eng-v strong { font-size: 28px; font-weight: 800; letter-spacing: -.04em; line-height: 1; font-variant-numeric: tabular-nums; }
.db-eng-v span { font-size: 12.5px; color: var(--mute); }
.db-eng-m { display: flex; justify-content: space-between; gap: 8px; font-size: 12.5px; color: var(--mute); }
.db-eng-m b { color: var(--ink); font-weight: 650; font-variant-numeric: tabular-nums; }
.db-eng-c.is-off { background: #fff; }
.db-eng-c.is-off .db-eng-m { display: block; }

/* Part de voix : barre empilée, filet blanc de 2 px entre les marques */
.db-sov { display: flex; gap: 2px; height: 14px; overflow: hidden; border-radius: 4px; }
.db-sov i { display: block; min-width: 4px; }
.is-first .db-sov i { animation: db-grow .6s var(--out) both; transform-origin: left; }
.db-sov-l { display: grid; gap: 2px; margin-top: 14px; }
.db-sov-l li { display: grid; grid-template-columns: 10px auto minmax(0, 1fr) auto; align-items: center; gap: 10px; min-height: 34px; font-size: 13.5px; }
.db-sov-k { width: 10px; height: 10px; border-radius: 3px; }
.db-sov-n { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.db-sov-l .is-you .db-sov-n { font-weight: 700; }
.db-sov-l .slogo { margin: 0; }

/* Classement : vous en violet, les autres en gris */
.db-t-rank tr:not(.is-you) .db-bar i { background: #9B9BA6; }
.db-t-rank .is-you > * { background: #FBFAFF; }

@media (max-width: 900px) {
  .db { grid-template-columns: minmax(0, 1fr); --stick: 0px; }
  .db-rail { position: static; height: auto; gap: 10px; padding: 12px 0 0; border-right: 0; overflow: visible; }
  .db-rail-brand { margin: 0 16px; }
  .db-client { margin: 0 16px; }
  .db-rail-foot { display: none; }
  .db-rail .db-side { position: sticky; top: 0; }
  .db-tb { position: static; padding: 12px 16px; }
  .db-tb .db-top-m { margin-left: 0; }
  .db-tb-a { width: 100%; }
  .db-tb-a .db-btn { flex: 1; }
  .db-main { padding: 16px 16px 48px; }
}
@media print {
  .db-rail, .db-tb-a, .db-demo, .db-run { display: none !important; }
  .db { display: block; }
  .db-tb { position: static; }
}
/* Colonne de gauche : tient sur un écran de 800 px de haut */
.db-rail { gap: 12px; }
.db-side-g { margin-bottom: 10px; }
.db-side a[data-view] { min-height: 33px; padding-block: 5px; }
.db-rail-foot { gap: 10px; padding-top: 12px; }
.db-rail-e li { min-height: 27px; }
.db-rail-cta { padding: 12px; }
.db-rail-cta p { margin: 3px 0 8px; }
/* Moteurs simulés pour la démonstration : une étiquette ambre, jamais confondue avec une vraie mesure */
.db-tag-sim { background: #FFF6E0; border-color: #F1D9A0; color: #8A5A00; font-weight: 650; }
.db-rail-e i.is-sim { color: #8A5A00; font-weight: 650; }
.q-sim { display: block; font-size: 10.5px; font-weight: 650; color: #8A5A00; text-transform: uppercase; letter-spacing: .04em; }
.db-eng-h .db-tag-sim { margin-left: 2px; }
.db-main { max-width: 1480px; margin-inline: auto; }
/* Téléphone : la colonne ne s'élargit pas, les onglets défilent dans la largeur de l'écran */
@media (max-width: 900px) {
  .db-rail { min-width: 0; max-width: 100%; }
  .db-rail .db-side { max-width: 100%; overflow-x: auto; }
}

/* ═ Refonte du 20 novembre 2026 : colonne sombre, indicateurs à mini-courbe, courbe et moteurs côte à côte ═ */
.db-rail { background: #16131F; border-right: 0; color: #CFCBDD; }
.db-rail-brand { color: #fff; }
.db-client { background: rgba(255, 255, 255, .06); border-color: rgba(255, 255, 255, .1); }
.db-client-n b { color: #fff; }
.db-client-n code { color: #9A95AD; }
.db-side-g > p, .db-rail-h { color: #77718C; }
.db-side a[data-view] { color: #D6D2E3; }
.db-side a[data-view] .db-ico { color: #9A95AD; }
.db-side a[data-view]:hover { background: rgba(255, 255, 255, .07); color: #fff; }
.db-side a[data-view]:hover .db-ico { color: #fff; }
.db-side a[aria-current="page"], .db-side a[aria-current="page"]:hover { background: var(--violet); color: #fff; }
.db-side a[aria-current="page"] .db-ico { color: #fff; }
.db-side small { color: #9A95AD; }
.db-side-n { background: rgba(255, 255, 255, .1) !important; border: 0 !important; color: #fff !important; }
.db-rail-foot { border-top-color: rgba(255, 255, 255, .08); }
.db-rail-e li { color: #D6D2E3; }
.db-rail-e i { color: #9A95AD; }
.db-rail-e i.is-on { color: #6BD69F; }
.db-rail-cta { background: rgba(255, 255, 255, .06); }
.db-rail-cta b { color: #fff; }
.db-rail-cta p { color: #B9B3CF; }
.db-rail-cta .db-btn { background: var(--lime); border-color: var(--lime); color: var(--ink); }
.db-rail-cta .db-btn:hover { background: #fff; border-color: #fff; color: var(--ink); }

.db-block { border-radius: 18px; }
.db-kpis .db-k { position: relative; overflow: hidden; border-radius: 18px; transition: transform .2s, box-shadow .2s, border-color .2s; }
.db-kpis .db-k:hover { transform: translateY(-4px); box-shadow: 0 16px 30px -22px rgba(67, 38, 201, .6); border-color: #CFC6FA; }
.db-k.has-sp { padding-bottom: 0; }
.db-k-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.db-chip { flex: none; padding: 2px 8px; border-radius: 99px; background: var(--db-bg); color: var(--mute); font-size: 11.5px; font-weight: 650; font-variant-numeric: tabular-nums; white-space: nowrap; }
.db-chip.is-up { background: #E3F5EC; color: #067A52; }
.db-chip.is-down { background: #FCE9E5; color: #C8290F; }
.db-k-sp { display: block; width: calc(100% + 36px); height: 46px; margin: 10px -18px 0; }
.db-k-sp .sp-a { fill: var(--c); opacity: .14; }
.db-k-sp .sp-l { fill: none; stroke: var(--c); stroke-width: 2; vector-effect: non-scaling-stroke; }

.db-row2 { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.db-row3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; align-items: start; }
.db-evo-h { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 16px; margin-bottom: 8px; }
.db-evo-h h2 { margin: 0; }
.db-legend { display: flex; gap: 14px; font-size: 12.5px; color: var(--mute); }
.db-legend i, .ch-tip-r i { display: inline-block; width: 10px; height: 10px; margin-right: 6px; border-radius: 3px; vertical-align: -1px; }
.ch-tip-r { display: block; white-space: nowrap; }
.db-evo .db-filters { margin-bottom: 4px; }

.db-elist { display: grid; }
.db-elist li { display: grid; grid-template-columns: minmax(0, 132px) minmax(0, 1fr) 46px; align-items: center; gap: 2px 12px; padding: 9px 0; border-bottom: 1px solid var(--db-line); }
.db-elist li:last-child { border-bottom: 0; }
.db-el-n { display: inline-flex; align-items: center; gap: 8px; min-width: 0; }
.db-el-n b { font-weight: 650; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.db-el-n .db-logo { width: 18px; height: 18px; flex: none; }
.db-elist .n { text-align: right; font-weight: 650; font-variant-numeric: tabular-nums; }
.db-elist small { grid-column: 1 / -1; font-size: 11.5px; color: var(--mute); }
.db-elist li.is-sim .db-bar i { background: #C9C2E8; }
.db-elist li.is-off { grid-template-columns: minmax(0, 1fr) auto; }
.db-elist .db-tag-sim { margin-left: 2px; padding: 0 6px; font-size: 10.5px; }

.db-mini { display: grid; }
.db-mini li { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--db-line); }
.db-mini li:last-child { border-bottom: 0; }
.db-mini li > span:not(.n):not(.slogo) { display: flex; flex-direction: column; min-width: 0; }
.db-mini b { font-weight: 650; overflow-wrap: anywhere; }
.db-mini small { font-size: 12px; color: var(--mute); }
.db-mini .n { margin-left: auto; font-weight: 700; font-variant-numeric: tabular-nums; }
.db-mini-a li { display: block; padding: 12px 14px; margin-bottom: 10px; border: 1px solid var(--db-line); border-radius: 14px; }
.db-mini-a li:last-child { margin-bottom: 0; border-bottom: 1px solid var(--db-line); }
.db-mini-a li.is-first { border-color: #CFC6FA; background: #FBFAFF; }
.db-mini-a small { display: block; margin: 4px 0 8px; line-height: 1.45; }
.db-mini-m { display: flex; flex-wrap: wrap; gap: 6px; }
.db-more { margin-top: 14px; }

@media (max-width: 1100px) {
  .db-row2, .db-row3 { grid-template-columns: minmax(0, 1fr); }
}
