/* analyses-re.css : Tableau de bord, Analytics (leads et marketing, ventes). Préfixe .an-*
   Couleurs des graphiques : palette validée (dataviz, validate_palette.js) sur la surface claire #ffffff et sombre #0f1b2d.
   Catégories (canaux) dans un ordre fixe : 1 bleu (Meta), 2 aqua (Google Ads), 3 violet (autres) ; une seule série = bleu.
   Gris de contexte (an passé, période précédente). Les statuts (rouge, orange, jaune, vert) viennent de statuts-re.jsx
   (--st-*) et ne servent jamais de couleur de série. Le mode sombre a ses propres pas, pas une inversion. */

.an-root {
  --an-surface: #ffffff;
  --an-plan: #f8fafc;
  --an-ink: #0f172a;
  --an-ink-2: #475569;
  --an-muted: #64748b;
  --an-grid: #e8eaee;
  --an-axe: #c3c7cf;
  --an-ligne: #e2e8f0;
  --an-s1: #2a78d6;
  --an-s2: #1baf7a;
  --an-s3: #6250d6;
  --an-ctx: #a3a9b3;
  --an-hover: rgba(42, 120, 214, .07);
  --an-bon: #15803d;
  --an-mauvais: #b42318;
  --an-neutre: #475569;
  --an-ombre: 0 1px 2px rgba(15, 23, 42, .05);
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--an-ink);
  max-width: 1920px; margin: 0 auto; padding: 16px 24px 56px; box-sizing: border-box;
  /* Les grilles suivent la largeur réelle de la zone d'analyse (barre latérale déduite), pas celle de l'écran */
  container: an / inline-size;
}
@media (prefers-color-scheme: dark) {
  :root:where(:not([data-theme="light"])) .an-root.an-auto {
    --an-surface: #0f1b2d; --an-plan: #0b1526; --an-ink: #e8edf5; --an-ink-2: #c3cad6; --an-muted: #94a3b8;
    --an-grid: #1c2a40; --an-axe: #31415a; --an-ligne: #1e2d44;
    --an-s1: #3987e5; --an-s2: #199e70; --an-s3: #9085e9; --an-ctx: #6b7686; --an-hover: rgba(57, 135, 229, .12);
    --an-bon: #4ade80; --an-mauvais: #f87171; --an-neutre: #c3cad6; --an-ombre: none;
  }
}
:root[data-theme="dark"] .an-root {
  --an-surface: #0f1b2d; --an-plan: #0b1526; --an-ink: #e8edf5; --an-ink-2: #c3cad6; --an-muted: #94a3b8;
  --an-grid: #1c2a40; --an-axe: #31415a; --an-ligne: #1e2d44;
  --an-s1: #3987e5; --an-s2: #199e70; --an-s3: #9085e9; --an-ctx: #6b7686; --an-hover: rgba(57, 135, 229, .12);
  --an-bon: #4ade80; --an-mauvais: #f87171; --an-neutre: #c3cad6; --an-ombre: none;
  color-scheme: dark;
}
.an-root *, .an-root *::before, .an-root *::after { box-sizing: border-box; }

/* ─── En-tête ─── */
.an-tete { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px 16px; flex-wrap: wrap; margin-bottom: 14px; }
.an-tete h1 { margin: 0; font-size: 26px; font-weight: 800; letter-spacing: -.02em; }
.an-tete p { margin: 4px 0 0; color: var(--an-ink-2); font-size: 13.5px; }
.an-actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.an-btn { font: inherit; font-size: 13px; font-weight: 600; padding: 8px 14px; border-radius: 10px; border: 1px solid var(--an-ligne); background: var(--an-surface); color: var(--an-ink); cursor: pointer; }
.an-btn:hover { border-color: var(--an-s1); }
.an-btn.primaire { background: #0a2540; border-color: #0a2540; color: #fff; }
:root[data-theme="dark"] .an-btn.primaire { background: #2a78d6; border-color: #2a78d6; }
.an-lien { background: none; border: 0; padding: 0; font: inherit; font-size: 12.5px; font-weight: 600; color: var(--an-s1); cursor: pointer; }
.an-lien:hover { text-decoration: underline; }

/* ─── Filtres : une seule rangée, au-dessus de tout ce qu'ils filtrent ─── */
.an-filtres { display: flex; gap: 10px 14px; align-items: center; flex-wrap: wrap; margin: 0 0 16px; }
.an-seg { display: inline-flex; flex-wrap: wrap; border: 1px solid var(--an-ligne); border-radius: 10px; background: var(--an-surface); padding: 3px; gap: 2px; }
.an-seg button { font: inherit; font-size: 12.5px; font-weight: 600; border: 0; background: none; color: var(--an-ink-2); padding: 6px 11px; border-radius: 7px; cursor: pointer; white-space: nowrap; }
.an-seg button:hover { background: var(--an-hover); }
.an-seg button[aria-pressed="true"] { background: var(--an-ink); color: var(--an-surface); }
.an-periode-lib { font-size: 12.5px; color: var(--an-muted); }
.an-onglets { display: flex; gap: 4px; border-bottom: 1px solid var(--an-ligne); margin: 0 0 16px; overflow-x: auto; }
.an-onglets button { font: inherit; font-size: 14px; font-weight: 700; color: var(--an-muted); background: none; border: 0; border-bottom: 2px solid transparent; padding: 10px 12px; cursor: pointer; white-space: nowrap; }
.an-onglets button[aria-selected="true"] { color: var(--an-ink); border-bottom-color: var(--an-s1); }

/* ─── Constats : ce qui doit sauter aux yeux ─── */
.an-constats { display: grid; gap: 8px; margin: 0 0 16px; }
.an-constat { display: flex; gap: 10px; align-items: flex-start; padding: 11px 14px; border-radius: 12px; border: 1px solid var(--st-orange-bord, #fdba74); background: var(--st-orange-fond, #ffedd5); color: var(--st-orange-texte, #9a3412); font-size: 13.5px; line-height: 1.45; }
.an-constat[data-ton="rouge"] { border-color: var(--st-rouge-bord, #fca5a5); background: var(--st-rouge-fond, #fee2e2); color: var(--st-rouge-texte, #991b1b); }
.an-constat[data-ton="bleu"] { border-color: var(--st-bleu-bord, #93c5fd); background: var(--st-bleu-fond, #dbeafe); color: var(--st-bleu-texte, #1e40af); }
.an-constat-ico { flex: 0 0 auto; font-weight: 800; width: 18px; height: 18px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: 12px; border: 1.5px solid currentColor; margin-top: 1px; }
.an-constat b { font-weight: 700; }
.an-constat .an-lien { color: inherit; text-decoration: underline; margin-left: 4px; }

/* ─── Indicateurs (grille groupée) ─── */
.an-groupes { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-bottom: 18px; }
.an-groupes.trois { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.an-groupes.un { grid-template-columns: minmax(0, 1fr) !important; }
.an-tuiles.rangee { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
@container an (max-width: 1179px) { .an-groupes, .an-groupes.trois { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@container an (max-width: 639px) { .an-groupes, .an-groupes.trois { grid-template-columns: minmax(0, 1fr); } }
/* Grand écran : 4 groupes → 2 colonnes de 3 indicateurs côte à côte (6 par rangée) ; 3 groupes → 9 par rangée */
@container an (min-width: 1600px) { .an-groupes:not(.trois):not(.un) { grid-template-columns: repeat(2, minmax(0, 1fr)); } .an-groupes:not(.un) .an-tuiles { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@container an (min-width: 1180px) and (max-width: 1599px) { .an-groupes.trois .an-tuiles { grid-template-columns: minmax(0, 1fr); } }
.an-groupe { background: var(--an-surface); border: 1px solid var(--an-ligne); border-radius: 16px; padding: 12px; box-shadow: var(--an-ombre); min-width: 0; }
.an-groupe h2 { margin: 2px 4px 8px; font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--an-muted); font-weight: 700; }
.an-tuiles { display: grid; gap: 6px; }
@container an (max-width: 639px) { .an-tuiles, .an-tuiles.rangee { grid-template-columns: repeat(2, minmax(0, 1fr)); } .an-tuiles > :first-child { grid-column: 1 / -1; } }
.an-tuile { text-align: left; font: inherit; color: inherit; background: none; border: 1px solid transparent; border-radius: 12px; padding: 9px 10px 10px; cursor: pointer; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.an-tuile:hover, .an-tuile:focus-visible { background: var(--an-hover); border-color: var(--an-ligne); outline: none; }
.an-tuile[aria-pressed="true"] { border-color: var(--an-s1); background: var(--an-hover); }
.an-tuile-lib { font-size: 12.5px; font-weight: 600; color: var(--an-ink-2); }
.an-tuile-val { font-size: 25px; font-weight: 700; letter-spacing: -.02em; line-height: 1.15; color: var(--an-ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.an-tuile-val small { font-size: 13px; font-weight: 600; color: var(--an-muted); margin-left: 4px; letter-spacing: 0; }
.an-tuile-sub { font-size: 12px; color: var(--an-muted); }
.an-delta { font-size: 12px; font-weight: 600; color: var(--an-neutre); display: block; line-height: 1.45; }
.an-delta[data-sens="bon"] { color: var(--an-bon); }
.an-delta[data-sens="mauvais"] { color: var(--an-mauvais); }
.an-delta[data-sens="nd"] { color: var(--an-muted); font-weight: 500; }
.an-delta span { font-weight: 500; color: var(--an-muted); }
.an-src { font-size: 11px; color: var(--an-muted); margin-top: 3px; display: inline-flex; gap: 4px; align-items: center; }
.an-src::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--an-axe); }

/* ─── Panneaux ─── */
.an-grille { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-bottom: 14px; }
.an-grille.un { grid-template-columns: minmax(0, 1fr); }
@container an (max-width: 979px) { .an-grille { grid-template-columns: minmax(0, 1fr); } }
/* Graphiques côte à côte quand il y a la place, jamais plus larges que lisible (une colonne fait au moins 520 px) */
.an-grille.auto { grid-template-columns: repeat(auto-fit, minmax(min(100%, 520px), 1fr)); }
@container an (min-width: 1700px) { .an-grille.auto.trois-max { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.an-panneau { background: var(--an-surface); border: 1px solid var(--an-ligne); border-radius: 16px; padding: 16px 18px 18px; box-shadow: var(--an-ombre); min-width: 0; }
.an-panneau.large { grid-column: 1 / -1; }
.an-panneau-tete { display: flex; justify-content: space-between; gap: 8px 12px; align-items: flex-start; flex-wrap: wrap; margin-bottom: 12px; }
.an-panneau h2, .an-panneau h3 { margin: 0; font-size: 15px; font-weight: 700; letter-spacing: -.01em; color: var(--an-ink); }
.an-panneau-tete p { margin: 3px 0 0; font-size: 12.5px; color: var(--an-muted); }
.an-vide { font-size: 13px; color: var(--an-muted); padding: 10px 0; }
.an-nd { font-size: 12.5px; color: var(--an-muted); border: 1px dashed var(--an-axe); border-radius: 10px; padding: 10px 12px; }
.an-nd b { color: var(--an-ink-2); }
.an-legende { display: flex; gap: 6px 14px; flex-wrap: wrap; font-size: 12px; color: var(--an-ink-2); margin: 0 0 8px; }
.an-legende span { display: inline-flex; align-items: center; gap: 6px; }
.an-cle { width: 10px; height: 10px; border-radius: 2px; display: inline-block; }
.an-cle.ligne { width: 14px; height: 2px; border-radius: 1px; }
.an-cle.s1 { background: var(--an-s1); } .an-cle.s2 { background: var(--an-s2); } .an-cle.s3 { background: var(--an-s3); } .an-cle.ctx { background: var(--an-ctx); }

/* ─── Graphiques (SVG mesuré à la largeur réelle : le texte garde sa taille sur mobile) ─── */
.an-graph { position: relative; width: 100%; }
.an-graph svg { display: block; overflow: visible; }
.an-graph svg:focus-visible { outline: 2px solid var(--an-s1); outline-offset: 4px; border-radius: 4px; }
.an-grid-l { stroke: var(--an-grid); stroke-width: 1; }
.an-axe-l { stroke: var(--an-axe); stroke-width: 1; }
.an-axe-t { fill: var(--an-muted); font-size: 11px; font-variant-numeric: tabular-nums; }
.an-val-t { fill: var(--an-ink-2); font-size: 11.5px; font-weight: 600; }
.an-trait { fill: none; stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.an-trait.s1 { stroke: var(--an-s1); } .an-trait.ctx { stroke: var(--an-ctx); }
.an-pt.s1 { fill: var(--an-s1); } .an-pt.ctx { fill: var(--an-ctx); }
.an-pt { stroke: var(--an-surface); stroke-width: 2; }
.an-mark.s1 { fill: var(--an-s1); } .an-mark.s2 { fill: var(--an-s2); } .an-mark.s3 { fill: var(--an-s3); } .an-mark.ctx { fill: var(--an-ctx); }
.an-col:hover .an-mark, .an-col.on .an-mark { filter: brightness(1.12); }
.an-col { cursor: pointer; }
.an-viseur { stroke: var(--an-axe); stroke-width: 1; }
.an-bulle { position: absolute; z-index: 5; pointer-events: none; background: var(--an-surface); color: var(--an-ink); border: 1px solid var(--an-ligne); border-radius: 10px; box-shadow: 0 6px 20px rgba(15, 23, 42, .14); padding: 8px 10px; font-size: 12px; min-width: 150px; max-width: 260px; }
.an-bulle-t { font-weight: 700; margin-bottom: 4px; color: var(--an-ink-2); }
.an-bulle-r { display: flex; align-items: center; gap: 7px; line-height: 1.6; }
.an-bulle-r b { font-weight: 700; color: var(--an-ink); font-variant-numeric: tabular-nums; }
.an-bulle-r span { color: var(--an-muted); }
.an-bulle-note { margin-top: 4px; color: var(--an-muted); font-size: 11.5px; }
.an-table { margin-top: 10px; font-size: 12.5px; }
.an-table summary { cursor: pointer; color: var(--an-s1); font-weight: 600; font-size: 12px; }
.an-table table { width: 100%; border-collapse: collapse; margin-top: 6px; }
.an-table th, .an-table td { text-align: left; padding: 5px 6px; border-bottom: 1px solid var(--an-ligne); }
.an-table td.n, .an-table th.n { text-align: right; font-variant-numeric: tabular-nums; }

/* ─── Barres horizontales (classement, entonnoir) ─── */
.an-barres { display: grid; gap: 4px; }
.an-barre { display: grid; grid-template-columns: minmax(110px, 34%) minmax(0, 1fr); gap: 4px 12px; align-items: center; padding: 6px 6px; border-radius: 8px; cursor: pointer; border: 0; background: none; font: inherit; color: inherit; text-align: left; width: 100%; }
.an-barre:hover, .an-barre:focus-visible, .an-barre[aria-pressed="true"] { background: var(--an-hover); outline: none; }
.an-barre-lib { font-size: 13px; font-weight: 600; color: var(--an-ink); min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.an-barre-lib small { display: block; font-size: 11.5px; font-weight: 500; color: var(--an-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.an-barre-piste { display: flex; align-items: center; gap: 8px; min-width: 0; }
.an-barre-plein { height: 12px; border-radius: 0 4px 4px 0; background: var(--an-s1); min-width: 2px; flex: 0 0 auto; }
.an-barre-plein.ctx { background: var(--an-ctx); }
.an-barre-v { font-size: 12.5px; font-weight: 700; color: var(--an-ink); white-space: nowrap; font-variant-numeric: tabular-nums; }
.an-barre-v span { font-weight: 500; color: var(--an-muted); margin-left: 4px; }
@container an (max-width: 639px) { .an-barre { grid-template-columns: minmax(0, 1fr); gap: 3px; } }

/* ─── Tableau de comparaison des pages ─── */
.an-comp { width: 100%; border-collapse: collapse; font-size: 13px; }
.an-comp th { font-size: 11.5px; font-weight: 600; color: var(--an-muted); text-align: right; padding: 6px 8px; border-bottom: 1px solid var(--an-ligne); white-space: nowrap; }
.an-comp th:first-child, .an-comp td:first-child { text-align: left; }
.an-comp td { padding: 8px; border-bottom: 1px solid var(--an-ligne); text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.an-comp tr.ligne { cursor: pointer; }
.an-comp tr.ligne:hover td, .an-comp tr.ligne[aria-selected="true"] td { background: var(--an-hover); }
.an-comp tr.sys td { font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--an-muted); padding-top: 14px; background: none; cursor: default; }
.an-comp .page { font-weight: 600; }
.an-comp .mini { display: inline-block; height: 8px; border-radius: 0 3px 3px 0; background: var(--an-s1); vertical-align: middle; margin-right: 6px; }
.an-comp .faible { color: var(--an-muted); }
@container an (max-width: 759px) {
  .an-comp thead { display: none; }
  .an-comp, .an-comp tbody, .an-comp tr, .an-comp td { display: block; width: 100%; }
  .an-comp tr.ligne { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2px 8px; padding: 8px 6px; border-bottom: 1px solid var(--an-ligne); }
  .an-comp tr.ligne td { border: 0; padding: 0; text-align: left; white-space: normal; }
  .an-comp tr.ligne td:first-child { grid-column: 1 / -1; font-size: 14px; }
  .an-comp tr.ligne td[data-lib]::before { content: attr(data-lib); display: block; font-size: 10.5px; color: var(--an-muted); font-weight: 500; }
  .an-comp tr.sys td { padding: 14px 6px 4px; border: 0; }
}

/* ─── À faire aujourd'hui ─── */
.an-afaire { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.an-afaire.quatre { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@container an (max-width: 1179px) { .an-afaire, .an-afaire.quatre { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@container an (max-width: 639px) { .an-afaire, .an-afaire.quatre { grid-template-columns: minmax(0, 1fr); } }
.an-liste { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 2px; }
.an-liste > li { min-width: 0; }
.an-item { display: flex; gap: 10px; align-items: center; justify-content: space-between; padding: 8px 8px; border-radius: 9px; cursor: pointer; border: 0; background: none; width: 100%; font: inherit; color: inherit; text-align: left; }
.an-item:hover, .an-item:focus-visible { background: var(--an-hover); outline: none; }
.an-item-corps { min-width: 0; flex: 1 1 auto; }
.an-item-t { font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.an-item-s { font-size: 11.5px; color: var(--an-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.an-item-v { font-size: 12.5px; font-weight: 700; white-space: nowrap; font-variant-numeric: tabular-nums; flex: 0 0 auto; text-align: right; display: flex; flex-direction: column; align-items: flex-end; gap: 2px; }
.an-compte { display: inline-block; min-width: 22px; padding: 0 7px; border-radius: 999px; font-size: 12px; font-weight: 700; text-align: center; background: var(--an-plan); color: var(--an-ink-2); border: 1px solid var(--an-ligne); margin-left: 6px; }

/* ─── Liste filtrée (clic sur un indicateur, une barre, un mois) ─── */
.an-detail { border: 1px solid var(--an-s1); }
.an-detail .an-liste { max-height: 460px; overflow-y: auto; }
.an-pill { font-size: 11px; font-weight: 700; padding: 1px 8px; border-radius: 999px; white-space: nowrap; background: var(--st-gris-fond, #f1f5f9); color: var(--st-gris-texte, #475569); box-shadow: inset 0 0 0 1px var(--st-gris-bord, #cbd5e1); }
.an-pill[data-ton="vert"] { background: var(--st-vert-fond, #dcfce7); color: var(--st-vert-texte, #166534); box-shadow: inset 0 0 0 1px var(--st-vert-bord, #86efac); }
.an-pill[data-ton="orange"] { background: var(--st-orange-fond, #ffedd5); color: var(--st-orange-texte, #9a3412); box-shadow: inset 0 0 0 1px var(--st-orange-bord, #fdba74); }
.an-pill[data-ton="jaune"] { background: var(--st-jaune-fond, #fef9c3); color: var(--st-jaune-texte, #854d0e); box-shadow: inset 0 0 0 1px var(--st-jaune-bord, #fde047); }
.an-pill[data-ton="rouge"] { background: var(--st-rouge-fond, #fee2e2); color: var(--st-rouge-texte, #991b1b); box-shadow: inset 0 0 0 1px var(--st-rouge-bord, #fca5a5); }
.an-pill[data-ton="bleu"] { background: var(--st-bleu-fond, #dbeafe); color: var(--st-bleu-texte, #1e40af); box-shadow: inset 0 0 0 1px var(--st-bleu-bord, #93c5fd); }

.an-attente { opacity: .55; transition: opacity .2s; }
.an-erreur { font-size: 13px; padding: 10px 14px; border-radius: 10px; margin: 0 0 12px; border: 1px solid var(--st-orange-bord, #fdba74); background: var(--st-orange-fond, #ffedd5); color: var(--st-orange-texte, #9a3412); }
.an-kv { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 12px; font-size: 13px; margin: 0; }
.an-kv dt { color: var(--an-ink-2); }
.an-kv dd { margin: 0; font-weight: 700; text-align: right; font-variant-numeric: tabular-nums; }
.an-kv dd span { font-weight: 500; color: var(--an-muted); margin-left: 6px; }
details.an-repli > summary { cursor: pointer; font-weight: 700; font-size: 14px; padding: 4px 0; }
@media (max-width: 640px) {
  .an-root { padding: 12px 16px 48px; }
  .an-tete h1 { font-size: 22px; }
  .an-panneau { padding: 14px 12px 14px; }
}

/* ─── Pages de pub : compteur des pages (lp_stats_jour) et entonnoir d'une page ─── */
.an-lp-filtres { margin: 0 0 10px; }
.an-lp-var { display: block; font-size: 11px; font-weight: 500; color: var(--an-muted); }
.an-lp-detail { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--an-ligne); }
.an-lp-detail h3 { font-size: 14px; }
.an-lp-detail h4 { margin: 0 0 8px; font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--an-muted); font-weight: 700; }
.an-lp-etapes { display: grid; gap: 3px; }
.an-lp-etape { display: grid; grid-template-columns: minmax(150px, 30%) minmax(0, 1fr) 92px 64px; gap: 4px 12px; align-items: center; padding: 6px 8px; border-radius: 8px; border-left: 3px solid transparent; }
.an-lp-etape.decroche { background: var(--st-orange-fond, #ffedd5); border-left-color: var(--st-orange-bord, #fb923c); }
.an-lp-lib { font-size: 13px; font-weight: 600; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.an-lp-lib small { display: block; font-size: 11px; font-weight: 700; color: var(--st-orange-texte, #9a3412); }
.an-lp-piste { height: 12px; background: var(--an-plan); border-radius: 0 4px 4px 0; min-width: 0; }
.an-lp-plein { display: block; height: 12px; border-radius: 0 4px 4px 0; background: var(--an-s1); }
.an-lp-etape.decroche .an-lp-plein { background: var(--an-s1); }
.an-lp-n { font-size: 13px; font-weight: 700; text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.an-lp-n small { display: block; font-size: 11px; font-weight: 500; color: var(--an-muted); }
.an-lp-pass { font-size: 12px; font-weight: 600; color: var(--an-ink-2); text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.an-lp-etape.decroche .an-lp-pass { color: var(--st-orange-texte, #9a3412); font-weight: 800; }
.an-lp-note { font-size: 12.5px; color: var(--an-ink-2); margin: 10px 0 0; }
.an-lp-note.faible { color: var(--an-muted); }
.an-lp-cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 24px; margin-top: 16px; }
.an-lp-cols .an-kv dd { white-space: normal; }
@container an (max-width: 759px) {
  .an-lp-cols { grid-template-columns: minmax(0, 1fr); }
  .an-lp-etape { grid-template-columns: minmax(0, 1fr) 76px 56px; }
  .an-lp-piste { grid-column: 1 / -1; grid-row: 2; }
  .an-lp-comp tr.ligne { grid-template-columns: repeat(4, minmax(0, 1fr)); border-radius: 8px; }
  .an-lp-comp tr.ligne:hover td, .an-lp-comp tr.ligne[aria-selected="true"] td { background: none; }
  .an-lp-comp tr.ligne:hover, .an-lp-comp tr.ligne[aria-selected="true"] { background: var(--an-hover); }
  .an-lp-lib { white-space: normal; }
}
:root[data-theme="dark"] .an-lp-etape.decroche { background: rgba(251, 146, 60, .12); }
:root[data-theme="dark"] .an-lp-lib small, :root[data-theme="dark"] .an-lp-etape.decroche .an-lp-pass { color: #fdba74; }
@media (prefers-color-scheme: dark) {
  :root:where(:not([data-theme="light"])) .an-root.an-auto .an-lp-etape.decroche { background: rgba(251, 146, 60, .12); }
}
