/* Compteur des adhérents — feuille de style unique (aussi utilisée par la page privée des visites).
   Parti pris : une page de « une » de journal de données. Un chiffre géant, puis des cartes
   sobres, des filets fins plutôt que des boîtes, des chiffres toujours alignés (tabulaires). */

:root {
  color-scheme: light;
  --page: #f6f5f1;
  --surface: #fffefb;
  --surface-2: #f0efe9;
  --ink: #121211;
  --ink-2: #54524c;
  --muted: #86837a;
  --grid: #e5e3db;
  --axis: #c6c3b8;
  --border: rgba(18, 18, 17, 0.09);
  --s1: #1f6fd1;
  --s1-soft: #d6e5f9;
  --s2: #e2622e;
  --ref: #b8b6ad;
  --good: #0b7a32;
  --good-soft: #dcf1e2;
  --bad: #b3261e;
  --warn-bg: #fff3d1;
  --warn-ink: #5c4300;
  --ombre: 0 1px 2px rgba(18, 18, 17, 0.04), 0 4px 16px rgba(18, 18, 17, 0.04);
  --chiffres: "Segoe UI Variable Display", "SF Pro Display", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --texte: "Segoe UI Variable Text", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --page: #0e0e0d;
    --surface: #171716;
    --surface-2: #1f1f1d;
    --ink: #f3f2ee;
    --ink-2: #bcbab2;
    --muted: #8a877f;
    --grid: #2a2a27;
    --axis: #3a3a36;
    --border: rgba(255, 255, 255, 0.09);
    --s1: #4b93ec;
    --s1-soft: #1a3d69;
    --s2: #ec7444;
    --ref: #66655f;
    --good: #3fc06a;
    --good-soft: #143521;
    --bad: #f07b72;
    --warn-bg: #3a2f10;
    --warn-ink: #fbe3a1;
    --ombre: none;
  }
}

/* ------------------------------------------------------------------ socle */
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  padding: 0 clamp(16px, 3vw, 40px) 48px;
  background: var(--page);
  color: var(--ink);
  font: 15px/1.5 var(--texte);
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { font-family: var(--chiffres); }
h1 { margin: 0; font-size: 22px; font-weight: 700; letter-spacing: -0.01em; }
h2 { margin: 0; font-size: 17px; font-weight: 650; letter-spacing: -0.005em; }
p { margin: 0; }
.sub, .note { color: var(--ink-2); font-size: 13.5px; }
.note { margin-top: 3px; max-width: 70ch; }
:focus-visible { outline: 2px solid var(--s1); outline-offset: 2px; }

/* ----------------------------------------------------------------- en-tête */
.top {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 12px;
  max-width: 1200px; margin: 0 auto; padding: 22px 0 18px;
  border-top: 4px solid var(--s1);
}
.marque { display: flex; align-items: center; gap: 18px; min-width: 0; }
.logo { flex: none; display: block; line-height: 0; }
.logo img { display: block; height: 68px; width: auto; }
.marque-texte { min-width: 0; padding-left: 18px; border-left: 1px solid var(--grid); }
.kicker { font-size: 12px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
main, .alerte, .attente { max-width: 1200px; margin: 0 auto; }
main { display: grid; gap: 16px; }

.etat { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--ink-2); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--muted); flex: none; }
.dot.ok { background: var(--good); }
.dot.ko { background: var(--bad); }

.alerte { background: var(--warn-bg); color: var(--warn-ink); border-radius: 10px; padding: 12px 16px; margin-bottom: 16px; font-size: 14px; }
.alerte code { font: inherit; font-weight: 600; }

/* Chargement : trois blocs gris qui pulsent, à la place de la page. */
.attente { display: grid; gap: 16px; }
.attente div { height: 140px; border-radius: 14px; background: var(--surface-2); animation: pulse 1.4s ease-in-out infinite; }
.attente div:first-child { height: 300px; }
@keyframes pulse { 50% { opacity: 0.5; } }
.attente[hidden] { display: none; }

/* ------------------------------------------------------------------ cartes */
.card {
  --pad: 22px;
  background: var(--surface); border: 1px solid var(--border); border-radius: 14px;
  padding: var(--pad); min-width: 0; box-shadow: var(--ombre);
}
.card-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 16px; }
.grid2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 440px), 1fr)); gap: 16px; }

/* ------------------------------------------------------------------- héros */
.hero {
  position: relative; overflow: hidden;
  display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); grid-template-areas:
    "etat   etat"
    "valeur jauges"
    "label  jauges"
    "gains  jauges"
    "tend   jauges"
    "pied   pied";
  column-gap: 56px; align-items: start;
  padding: 26px 28px 22px; border-radius: 18px;
  background: var(--surface); border: 1px solid var(--border); box-shadow: var(--ombre);
}
/* Halo discret derrière le chiffre. */
.hero::before {
  content: ""; position: absolute; inset: -40% auto auto -10%; width: 70%; height: 140%;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--s1) 12%, transparent), transparent);
  pointer-events: none;
}
.hero > * { position: relative; }
.hero .etat { grid-area: etat; margin-bottom: 14px; padding: 5px 11px 5px 9px; border-radius: 999px; background: var(--surface-2); justify-self: start; font-size: 12.5px; }
.hero .dot.ok { box-shadow: 0 0 0 0 color-mix(in srgb, var(--good) 60%, transparent); animation: battement 2s ease-out infinite; }
@keyframes battement { 70% { box-shadow: 0 0 0 7px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }
.hero-label { grid-area: label; font-size: 16px; color: var(--ink-2); font-weight: 500; margin-bottom: 16px; }
.hero-value {
  grid-area: valeur;
  font-family: var(--chiffres); font-size: clamp(64px, 9vw, 112px); font-weight: 750;
  line-height: 0.95; letter-spacing: -0.035em; font-variant-numeric: tabular-nums; margin: 4px 0 8px;
}
.hero-value.bouge { color: var(--s1); transition: color 1.2s ease; }
.hero-gains { grid-area: gains; display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 15px; color: var(--ink-2); }
.hero-gains b { font-family: var(--chiffres); font-size: 22px; font-weight: 700; color: var(--good); font-variant-numeric: tabular-nums; margin-right: 5px; letter-spacing: -0.01em; }
.tendance { grid-area: tend; margin-top: 10px; font-size: 13.5px; color: var(--ink-2); }
.up { color: var(--good); font-weight: 650; }
.down { color: var(--bad); font-weight: 650; }

.jauges { grid-area: jauges; display: grid; gap: 22px; align-self: center; }
.jauge-top { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 8px; }
.jauge-top strong { font-family: var(--chiffres); font-size: 16px; font-weight: 650; }
.jauge-top span { color: var(--ink-2); font-size: 13.5px; font-variant-numeric: tabular-nums; }
.track { height: 12px; border-radius: 6px; background: var(--s1-soft); overflow: hidden; }
.fill { height: 100%; border-radius: 6px; background: var(--s1); transition: width 0.8s ease; }
.jauge-sub { margin-top: 7px; font-size: 13.5px; color: var(--ink-2); }
.jauge-sub b { color: var(--ink); font-weight: 650; font-variant-numeric: tabular-nums; }
.jauge-faite { display: flex; align-items: center; gap: 10px; font-size: 13.5px; color: var(--ink-2); }
.jauge-faite::before {
  content: "✓"; flex: none; display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%;
  background: var(--good-soft); color: var(--good); font-weight: 700; font-size: 13px;
}
.jauge-faite b { color: var(--ink); font-weight: 650; }

.hero-pied { grid-area: pied; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; margin-top: 22px; padding-top: 16px; border-top: 1px solid var(--grid); }
.arrivee { font-size: 13.5px; color: var(--ink-2); min-height: 1.5em; }
.arrivee b { color: var(--good); font-weight: 700; font-variant-numeric: tabular-nums; }
.partager {
  display: inline-flex; align-items: center; gap: 8px; margin-left: auto;
  font: inherit; font-size: 14.5px; font-weight: 600; color: #fff; background: var(--s1);
  border: 0; border-radius: 999px; padding: 10px 18px 10px 15px; cursor: pointer;
  transition: transform 0.15s ease, filter 0.15s ease;
}
.partager:hover { filter: brightness(1.08); }
.partager:active { transform: scale(0.97); }
.partager svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* --------------------------------------------- chiffres clés (grille à filets) */
.stats {
  display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 1px;
  background: var(--grid); border: 1px solid var(--grid); border-radius: 12px; overflow: hidden;
}
.stat { background: var(--surface); padding: 14px 16px 15px; min-width: 0; }
.stat .label { font-size: 12.5px; color: var(--ink-2); font-weight: 500; }
.stat .v { font-family: var(--chiffres); font-size: 26px; font-weight: 700; line-height: 1.15; margin-top: 4px; font-variant-numeric: tabular-nums; letter-spacing: -0.015em; white-space: nowrap; }
.stat .v small { font-size: 0.55em; font-weight: 600; color: var(--ink-2); margin-left: 2px; letter-spacing: 0; }
.stat .d { font-size: 12.5px; color: var(--muted); margin-top: 3px; line-height: 1.35; }
@media (max-width: 980px) { .stats { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* Ancienne grille de tuiles (page privée des visites). */
.tuiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; }
.tuile { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 14px 16px; }
.tuile .v { font-size: 26px; font-weight: 650; line-height: 1.2; margin-top: 2px; font-variant-numeric: tabular-nums; }
.tuile .d { font-size: 12.5px; color: var(--ink-2); margin-top: 2px; }
.label { color: var(--ink-2); font-size: 13px; }

/* ----------------------------------------------------- boutons à segments */
.seg { display: inline-flex; padding: 3px; gap: 2px; border-radius: 10px; background: var(--surface-2); }
.seg button { border: 0; border-radius: 7px; background: transparent; color: var(--ink-2); font: inherit; font-size: 13px; font-weight: 550; padding: 6px 12px; cursor: pointer; white-space: nowrap; }
.seg button:hover:not(:disabled):not([aria-pressed="true"]) { color: var(--ink); }
.seg button[aria-pressed="true"] { background: var(--surface); color: var(--ink); box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12); }
.seg button:disabled { opacity: 0.4; cursor: not-allowed; }

/* ------------------------------------------------------------- légendes */
.legend { list-style: none; display: flex; flex-wrap: wrap; gap: 6px 16px; margin: 0; padding: 0; font-size: 13px; color: var(--ink-2); }
.legend li { display: flex; align-items: center; gap: 6px; }
.sw { display: inline-block; flex: none; }
.sw-bar { width: 10px; height: 10px; border-radius: 2px; background: var(--s1); }
.sw-line { width: 16px; height: 3px; border-radius: 2px; background: var(--s2); }
.sw-band { width: 14px; height: 10px; border-radius: 2px; background: var(--s2); }
.sw-band.b50 { opacity: 0.4; }
.sw-band.b80 { opacity: 0.18; }
.sous { margin: 0 0 10px; font-size: 14px; font-weight: 650; color: var(--ink); }
.hyp { font-size: 13.5px; color: var(--ink-2); }
.hyp h3 { margin: 0 0 6px; font-size: 14px; font-weight: 650; color: var(--ink); }
.hyp ul { margin: 0 0 12px; padding-left: 18px; }
.hyp li + li { margin-top: 3px; }

/* ------------------------------------------------------------ graphiques */
.chart { position: relative; width: 100%; }
.chart svg { display: block; width: 100%; overflow: visible; touch-action: pan-y; -webkit-tap-highlight-color: transparent; }
.chart text { fill: var(--muted); font-size: 11.5px; font-variant-numeric: tabular-nums; font-family: var(--texte); }
.chart text.end { fill: var(--ink); font-size: 12.5px; font-weight: 650; }
.chart .gl { stroke: var(--grid); stroke-width: 1; }
.chart .bl { stroke: var(--axis); stroke-width: 1; }
.chart .cross { stroke: var(--axis); stroke-width: 1; }
.empty { display: grid; place-items: center; min-height: 180px; padding: 16px; text-align: center; color: var(--ink-2); font-size: 14px; border: 1px dashed var(--axis); border-radius: 10px; }

.tip { position: fixed; z-index: 10; pointer-events: none; background: var(--ink); color: var(--surface); border-radius: 9px; padding: 8px 11px; font-size: 12.5px; line-height: 1.45; max-width: 260px; box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2); font-variant-numeric: tabular-nums; }
.tip b { font-weight: 650; }
.tip .k { display: inline-block; width: 8px; height: 8px; border-radius: 2px; margin-right: 6px; }

/* -------------------------------------------------------------- tableaux */
.table-wrap { overflow: auto; max-height: 520px; border: 1px solid var(--grid); border-radius: 10px; -webkit-overflow-scrolling: touch; }
.table-wrap.short { max-height: 340px; }
table { border-collapse: collapse; width: 100%; font-size: 13.5px; font-variant-numeric: tabular-nums; }
th, td { padding: 8px 12px; text-align: right; white-space: nowrap; }
th:first-child, td:first-child, th.l, td.l { text-align: left; }
thead th { position: sticky; top: 0; background: var(--surface); color: var(--ink-2); font-weight: 600; font-size: 12.5px; border-bottom: 1px solid var(--grid); z-index: 1; }
thead th button { all: unset; cursor: pointer; }
thead th button:focus-visible { outline: 2px solid var(--s1); outline-offset: 2px; }
tbody tr + tr td { border-top: 1px solid var(--grid); }
td.dim { color: var(--muted); }
td.fort { color: var(--good); font-weight: 600; }
/* Première colonne figée quand on fait défiler horizontalement. */
tbody td:first-child { position: sticky; left: 0; background: var(--surface); }
thead th:first-child { left: 0; z-index: 2; }


input[type="search"] { font: inherit; font-size: 14px; padding: 8px 12px; border-radius: 10px; border: 1px solid var(--border); background: var(--surface-2); color: var(--ink); }
input[type="search"]:focus { outline: 2px solid var(--s1); outline-offset: 0; background: var(--surface); }

/* ------------------------------------------------------------------ pied */
.pied { display: grid; gap: 6px; color: var(--muted); font-size: 12.5px; text-align: center; padding: 12px 0 0; max-width: 72ch; margin: 0 auto; }

/* ----------------------------------------- menu des sections, collé en haut */
.menu {
  position: sticky; top: 0; z-index: 5;
  display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none;
  margin: 0 -4px; padding: 6px 4px;
  background: color-mix(in srgb, var(--page) 88%, transparent);
  -webkit-backdrop-filter: saturate(1.4) blur(10px); backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--grid);
}
.menu::-webkit-scrollbar { display: none; }
.menu a {
  flex: none; padding: 7px 12px; border-radius: 8px;
  color: var(--ink-2); text-decoration: none; font-size: 13.5px; font-weight: 550; white-space: nowrap;
}
.menu a:hover { background: var(--surface-2); color: var(--ink); }
.menu a[aria-current] { background: var(--ink); color: var(--page); }
/* Le titre d'une section atteinte par le menu ne doit pas finir sous le menu. */
main > [id] { scroll-margin-top: 64px; }

/* ------------------------------------- sections repliables (<details class="card pli">) */
/* Le titre occupe toute la carte fermée : on peut toucher n'importe où pour l'ouvrir. */
.pli > summary {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  margin: calc(-1 * var(--pad)); padding: var(--pad);
  border-radius: inherit; cursor: pointer; list-style: none;
  -webkit-tap-highlight-color: transparent; user-select: none;
}
.pli > summary::-webkit-details-marker { display: none; }
.pli[open] > summary { margin-bottom: 0; padding-bottom: 4px; }
.pli > summary:hover { background: var(--surface-2); }
.pli[open] > summary:hover { background: transparent; }
.pli > summary:focus-visible { outline: 2px solid var(--s1); outline-offset: -2px; }
.pli-titre { display: grid; gap: 2px; min-width: 0; }
.pli .resume { color: var(--ink-2); font-size: 13.5px; }
.pli[open] .resume { display: none; }
/* Bouton rond avec une flèche vers le bas, qui se retourne une fois la section ouverte. */
.chev {
  flex: none; position: relative; width: 34px; height: 34px; border-radius: 50%;
  background: var(--surface-2);
  transition: transform 0.25s ease, background 0.2s ease;
}
.chev::before {
  content: ""; position: absolute; left: 50%; top: 50%; width: 8px; height: 8px;
  border-right: 2px solid var(--ink); border-bottom: 2px solid var(--ink);
  transform: translate(-50%, -70%) rotate(45deg);
}
.pli > summary:hover .chev { background: var(--s1-soft); }
.pli[open] > summary .chev { transform: rotate(180deg); }
.pli[open] > :not(summary) { animation: deplie 0.25s ease; }
@keyframes deplie { from { opacity: 0; transform: translateY(-4px); } }
/* Deux sections repliables côte à côte : ouvrir l'une n'étire pas l'autre. */
.grid2.plis { align-items: start; }

/* ------------------------------------------- départements : classement en barres */
.depts-outils { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.depts-outils input[type="search"] { min-width: 240px; }
.depts-legende { display: flex; flex-wrap: wrap; gap: 4px 14px; align-items: center; margin: 0 0 6px; font-size: 12.5px; color: var(--ink-2); }
.depts-legende .repere { display: inline-flex; align-items: center; gap: 6px; }
.depts-legende .repere::before { content: ""; width: 2px; height: 12px; background: var(--ink-2); border-radius: 1px; }
.classement { list-style: none; margin: 0; padding: 0; columns: 2 380px; column-gap: 28px; }
.classement li { break-inside: avoid; display: grid; grid-template-columns: 2.2em 1fr; align-items: start; padding: 8px 6px; border-bottom: 1px solid var(--grid); border-radius: 6px; }
.classement li:hover { background: var(--page); }
.classement .rg { font-variant-numeric: tabular-nums; color: var(--muted); font-size: 13px; padding-top: 1px; }
.classement li.podium .rg { color: var(--ink); font-weight: 700; }
.classement .haut { display: flex; justify-content: space-between; gap: 10px; font-size: 14px; }
.classement .nom { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.classement .val { font-variant-numeric: tabular-nums; font-weight: 650; white-space: nowrap; }
.classement .piste { position: relative; height: 8px; margin: 5px 0 4px; }
.classement .piste i { position: absolute; left: 0; top: 0; bottom: 0; min-width: 2px; background: var(--s1); border-radius: 0 4px 4px 0; }
.classement .piste b { position: absolute; top: -3px; bottom: -3px; width: 2px; margin-left: -1px; background: var(--ink-2); border-radius: 1px; }
.classement .det { font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.classement .vide { padding: 14px 6px; color: var(--muted); font-size: 13.5px; }
.plus-de { display: block; margin: 14px auto 0; font: inherit; font-size: 14px; font-weight: 550; color: var(--s1); background: none; border: 1px solid var(--border); border-radius: 10px; padding: 9px 18px; cursor: pointer; }
.plus-de:hover { background: var(--surface-2); }
.plus-de[hidden] { display: none; }
.depts-tableau { margin-top: 16px; }
.depts-tableau summary { cursor: pointer; font-size: 13.5px; color: var(--ink-2); padding: 6px 0; }
.depts-tableau .table-wrap { margin-top: 8px; }

/* -------------------------------------------- écrans tactiles : cibles de 40 px */
@media (pointer: coarse) {
  .seg button { padding: 9px 14px; }
  input[type="search"] { padding: 10px 14px; }
  thead th button { padding: 4px 0; }
  .menu a { padding: 9px 13px; }
}

/* ---------------------------------------------------------- tablette */
@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; grid-template-areas: "etat" "valeur" "label" "gains" "tend" "jauges" "pied"; }
  .jauges { margin-top: 22px; padding-top: 20px; border-top: 1px solid var(--grid); }
}

/* --------------------------------------------------------------- téléphone */
@media (max-width: 600px) {
  body { padding: 0 12px 32px; font-size: 14.5px; }
  .top { padding: 16px 0 14px; }
  h1 { font-size: 19px; }
  .kicker { font-size: 11px; }
  .marque { gap: 12px; }
  .logo img { height: 52px; }
  .marque-texte { padding-left: 12px; }
  main { gap: 12px; }
  .grid2 { gap: 12px; }
  .card { --pad: 15px; border-radius: 12px; }
  .card-head { margin-bottom: 12px; gap: 10px; }
  .card-head > div:first-child { flex: 1 1 100%; }
  h2 { font-size: 16px; }
  .note { font-size: 13px; }

  .hero { padding: 16px 16px 14px; border-radius: 16px; }
  .hero .etat { margin-bottom: 12px; }
  .hero-value { font-size: clamp(56px, 18.5vw, 84px); margin: 2px 0 6px; }
  .hero-label { font-size: 15px; margin-bottom: 12px; }
  .hero-gains { gap: 4px 16px; font-size: 14px; }
  .hero-gains b { font-size: 19px; }
  .jauges { gap: 18px; margin-top: 18px; padding-top: 16px; }
  .jauge-top { flex-wrap: wrap; gap: 2px 12px; }
  .hero-pied { margin-top: 18px; padding-top: 14px; }
  .partager { flex: 1 1 100%; justify-content: center; padding: 12px 18px; font-size: 15px; }
  .arrivee:empty { display: none; }

  /* Six chiffres en 3 × 2 : tout le rythme tient sur un écran. */
  .stat { padding: 11px 10px 12px; }
  .stat .label { font-size: 11.5px; }
  .stat .v { font-size: 19px; }
  .stat .d { font-size: 11px; }

  .seg { display: flex; width: 100%; }
  .seg button { flex: 1; padding-left: 4px; padding-right: 4px; }
  .legend { gap: 6px 12px; font-size: 12px; }

  table { font-size: 12.5px; }
  th, td { padding: 7px 9px; }
  thead th { font-size: 11.5px; white-space: normal; vertical-align: bottom; }
  .table-wrap { max-height: 440px; }
  /* 16 px minimum : en dessous, iOS zoome sur le champ au toucher. */
  input[type="search"] { font-size: 16px; width: 100%; }
  .depts-outils input[type="search"] { min-width: 0; }
  .tip { max-width: min(280px, calc(100vw - 16px)); }

  /* Menu : bande pleine largeur qu'on fait défiler du doigt, estompée au bord droit. */
  .menu { margin: 0 -12px; padding: 6px 12px; -webkit-mask-image: linear-gradient(90deg, #000 88%, transparent); mask-image: linear-gradient(90deg, #000 88%, transparent); }
  main > [id] { scroll-margin-top: 58px; }

  .pli .resume { font-size: 12.5px; }
  .chev { width: 32px; height: 32px; }
  .classement li { padding: 9px 2px; }
  .plus-de { width: 100%; padding: 12px; }
  .depts-tableau summary { padding: 10px 0; }
  .pied { font-size: 12px; }

  /* Page privée des visites. */
  .tuiles { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .tuile { padding: 10px 12px; border-radius: 10px; }
  .tuile .v { font-size: 21px; }
}
@media (max-width: 380px) { .etat .large { display: none; } }
@media (max-width: 360px) {
  .logo img { height: 44px; }
  .marque { gap: 10px; }
  .marque-texte { padding-left: 10px; }
  .kicker { font-size: 10px; letter-spacing: 0.05em; }
  h1 { font-size: 17px; }
  .stat .v { font-size: 17px; }
  .stat { padding: 10px 8px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
