/* NZT-48 : le verre liquide d'Apple, adapté au web.
   Des plaques de verre posées sur un fond d'écran : flou et saturation de ce qui est derrière (backdrop-filter),
   un liseré de lumière sur le bord, un reflet en haut, une ombre douce. Le verre porte les commandes et les widgets,
   jamais du verre dans du verre : à l'intérieur, de simples voiles blancs. */

:root {
  color-scheme: dark;
  --encre: rgba(255, 255, 255, .96);
  --encre-2: rgba(235, 235, 245, .66);
  --encre-3: rgba(235, 235, 245, .40);
  --voile-1: rgba(255, 255, 255, .06);
  --voile-2: rgba(255, 255, 255, .10);
  --voile-3: rgba(255, 255, 255, .16);
  --voile-4: rgba(255, 255, 255, .22);
  --filet: rgba(255, 255, 255, .12);
  --teinte: rgba(22, 24, 31, .30);
  --flou: blur(26px) saturate(185%) brightness(1.04);
  --rayon: 26px;
  --rayon-petit: 12px;
  --ecart: 12px;
  /* Séries de graphiques : palette catégorielle validée (fond sombre), toujours dans cet ordre. */
  --serie-1: #3987e5;
  --serie-2: #d95926;
  --serie-3: #199e70;
  /* Personnes de l'agenda : emplacements 5, 7 et 4 de la même palette, pour ne pas croiser les séries. */
  --personne-1: #d55181;
  --personne-2: #9085e9;
  --personne-3: #c98500;
  --personne-4: #e66767;
  --bon: #80e699;
  --alerte: #ff9e94;
  --attention: #ffb340;
  --chiffres: ui-rounded, "SF Pro Rounded", -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  --texte: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter", system-ui, "Segoe UI", Roboto, sans-serif;
  --ressort: cubic-bezier(.2, .9, .25, 1.12);
  --doux: cubic-bezier(.25, .8, .25, 1);
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
html { -webkit-text-size-adjust: 100%; }
body {
  font: 13px/1.42 var(--texte);
  color: var(--encre);
  background: #15171d;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
button, input, select { font: inherit; color: inherit; }
button { background: none; border: 0; padding: 0; cursor: pointer; text-align: inherit; }
a { color: inherit; text-decoration: none; }
:focus-visible { outline: 2px solid rgba(120, 180, 255, .9); outline-offset: 2px; border-radius: 10px; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.lecteur-seul { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.evitement { position: fixed; left: 12px; top: -60px; z-index: 100; padding: 8px 14px; border-radius: 999px; background: #fff; color: #000; }
.evitement:focus { top: 12px; }
.ico { width: 1.15em; height: 1.15em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; vertical-align: -.2em; }

/* ---------- Le fond d'écran ---------- */

.fond { position: fixed; inset: 0; z-index: -1; overflow: hidden; background: #1a1c24; }
.fond-image { position: absolute; inset: -8%; background-size: cover; background-position: center; transition: opacity .6s var(--doux); }
.fond-voile { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(8, 10, 14, .18), rgba(8, 10, 14, .36)); }
/* Les ambiances : des dégradés qui dérivent lentement, comme les fonds animés de macOS. */
.fond[data-ambiance="aurore"] .fond-image {
  background:
    radial-gradient(42% 52% at 18% 22%, #5b7fd6 0%, transparent 70%),
    radial-gradient(38% 46% at 82% 18%, #b76ac9 0%, transparent 72%),
    radial-gradient(46% 50% at 70% 82%, #e0806a 0%, transparent 70%),
    radial-gradient(40% 44% at 22% 86%, #3ea3a0 0%, transparent 72%),
    linear-gradient(135deg, #2a3157, #3b2a4f 50%, #4a2f3a);
}
.fond[data-ambiance="lagune"] .fond-image {
  background:
    radial-gradient(45% 55% at 20% 20%, #2fb3c8 0%, transparent 70%),
    radial-gradient(40% 50% at 85% 30%, #3a6ee0 0%, transparent 70%),
    radial-gradient(50% 50% at 50% 95%, #1d8f7a 0%, transparent 70%),
    linear-gradient(160deg, #102a3d, #13324a 55%, #0e2b2a);
}
.fond[data-ambiance="braise"] .fond-image {
  background:
    radial-gradient(45% 55% at 15% 25%, #f0975a 0%, transparent 70%),
    radial-gradient(40% 50% at 85% 20%, #d4506b 0%, transparent 70%),
    radial-gradient(50% 55% at 60% 90%, #8e4ab8 0%, transparent 72%),
    linear-gradient(150deg, #3d2230, #4b2328 50%, #2b2140);
}
.fond[data-ambiance="nuit"] .fond-image {
  background:
    radial-gradient(40% 50% at 25% 20%, #34405f 0%, transparent 70%),
    radial-gradient(40% 50% at 80% 80%, #3d3456 0%, transparent 70%),
    linear-gradient(160deg, #15171f, #1c1f2b 60%, #191823);
}
.fond[data-ambiance]:not([data-ambiance="image"]) .fond-image { animation: derive 60s ease-in-out infinite alternate; }
@keyframes derive {
  0% { transform: translate3d(0, 0, 0) scale(1); filter: hue-rotate(0deg); }
  50% { transform: translate3d(-2.5%, 1.5%, 0) scale(1.05); }
  100% { transform: translate3d(2%, -2%, 0) scale(1.03); filter: hue-rotate(-14deg); }
}

/* ---------- Le matériau ---------- */

.verre {
  position: relative;
  isolation: isolate;
  background: var(--teinte);
  -webkit-backdrop-filter: var(--flou);
  backdrop-filter: var(--flou);
  border-radius: var(--rayon);
  box-shadow:
    inset 0 1px .5px rgba(255, 255, 255, .34),
    inset 0 -1px 1px rgba(255, 255, 255, .07),
    0 1px 1px rgba(0, 0, 0, .10),
    0 16px 44px -14px rgba(0, 0, 0, .42);
}
/* Le liseré : la lumière accroche le bord, plus fort en haut à gauche et en bas à droite. */
.verre::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(155deg, rgba(255, 255, 255, .55), rgba(255, 255, 255, .10) 28%, rgba(255, 255, 255, .02) 55%, rgba(255, 255, 255, .10) 78%, rgba(255, 255, 255, .34));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  z-index: 1;
}
/* Le reflet : une lueur en haut de la plaque, et sous le pointeur pour ce qui se clique. */
.verre::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(130% 70% at 50% -20%, rgba(255, 255, 255, .10), transparent 62%);
  pointer-events: none;
  z-index: -1;
}
.verre.interactif::after {
  background:
    radial-gradient(220px circle at var(--mx, 50%) var(--my, -40%), rgba(255, 255, 255, var(--lueur, 0)), transparent 70%),
    radial-gradient(130% 70% at 50% -20%, rgba(255, 255, 255, .10), transparent 62%);
  transition: --lueur .3s;
}
.verre.interactif { transition: transform .35s var(--ressort), box-shadow .35s var(--doux), background-color .2s; }
.verre.interactif:hover { --lueur: .16; }
.verre.interactif:active { transform: scale(.975); }
@property --lueur { syntax: "<number>"; inherits: true; initial-value: 0; }

@media (prefers-reduced-transparency: reduce) {
  :root { --teinte: rgba(30, 32, 40, .94); --flou: none; }
}
@media (prefers-contrast: more) {
  :root { --encre-2: rgba(240, 240, 250, .85); --encre-3: rgba(240, 240, 250, .62); --teinte: rgba(18, 20, 26, .72); }
}

/* ---------- La mise en page ---------- */

.cadre {
  display: grid;
  grid-template-columns: 196px minmax(0, 1fr);
  gap: var(--ecart);
  padding: 12px 12px 0;
  padding-left: max(12px, env(safe-area-inset-left));
  min-height: 100vh;
  min-height: 100dvh;
}
.colonne { min-width: 0; display: flex; flex-direction: column; gap: var(--ecart); }
.contenu { padding-bottom: 96px; outline: none; }

.barre-laterale {
  position: sticky;
  top: 12px;
  height: calc(100dvh - 24px);
  padding: 22px 10px 10px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.marque { display: flex; align-items: baseline; gap: 6px; padding: 0 10px 16px; font: 600 17px/1 var(--chiffres); letter-spacing: -.01em; }
.marque small { font: 500 11px var(--texte); color: var(--encre-3); letter-spacing: .02em; }
.rubrique {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 11px;
  color: var(--encre-2);
  font-size: 13px;
  z-index: 2;
  transition: color .2s;
}
.rubrique .ico { width: 18px; height: 18px; }
.rubrique:hover { color: var(--encre); }
.rubrique[aria-current="page"] { color: var(--encre); font-weight: 600; }
/* La pastille de sélection glisse d'une rubrique à l'autre. */
.pastille-selection {
  position: absolute;
  top: 0;
  left: 10px;
  right: 10px;
  height: 36px;
  border-radius: 11px;
  background: var(--voile-3);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .14);
  transition: transform .45s var(--ressort), height .3s;
  z-index: 1;
}
.nav-bas { margin-top: auto; display: flex; flex-direction: column; gap: 2px; }
.raccourci-clavier { margin-left: auto; font-size: 11px; color: var(--encre-3); }

.barre-haut { display: flex; align-items: center; gap: 10px; padding: 4px 4px 0; min-height: 52px; }
.salut h1 { margin: 0; font: 600 21px/1.15 var(--chiffres); letter-spacing: -.01em; }
.salut p { margin: 2px 0 0; display: flex; gap: 10px; align-items: center; color: var(--encre-2); font-size: 12px; }
.salut p span { display: inline-flex; gap: 5px; align-items: center; }
.espace { flex: 1; }

.capsule {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 13px;
  border-radius: 999px;
  font-size: 12px;
  color: var(--encre-2);
  white-space: nowrap;
}
.capsule .ico { width: 15px; height: 15px; }
.capsule.attention .ico { color: var(--attention); }
.tourne { animation: tourne 1s linear infinite; }
@keyframes tourne { to { transform: rotate(360deg); } }
.avatar {
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font: 600 13px var(--chiffres);
  color: var(--encre);
}

.dock {
  position: fixed;
  left: 50%;
  bottom: max(16px, env(safe-area-inset-bottom));
  transform: translateX(-50%);
  display: flex;
  gap: 2px;
  padding: 5px 6px;
  border-radius: 999px;
  z-index: 20;
}
.dock a {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  color: var(--encre);
  transition: transform .3s var(--ressort), background-color .2s;
}
.dock a .ico { width: 19px; height: 19px; }
.dock a:hover { background: var(--voile-3); transform: translateY(-3px) scale(1.1); }

/* ---------- Les widgets ---------- */

.widget { padding: 18px; display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.widget > .tete { display: flex; align-items: center; gap: 8px; min-height: 18px; }
.widget > .tete h2 { margin: 0; font-size: 13px; font-weight: 600; color: var(--encre-2); flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.action-tete { font-size: 12px; font-weight: 500; color: var(--encre-2); padding: 2px 6px; margin: -2px -6px; border-radius: 8px; }
.action-tete:hover { color: var(--encre); background: var(--voile-2); }

.grille { display: grid; gap: var(--ecart); grid-template-columns: repeat(var(--colonnes, 2), minmax(0, 1fr)); align-items: stretch; }
.pile { display: flex; flex-direction: column; gap: var(--ecart); min-width: 0; }
.deux-colonnes { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--ecart); align-items: start; }

.gros-chiffre { font: 500 34px/1.05 var(--chiffres); font-variant-numeric: tabular-nums; letter-spacing: -.02em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chiffre-moyen { font: 500 26px/1.1 var(--chiffres); font-variant-numeric: tabular-nums; letter-spacing: -.015em; white-space: nowrap; }
.chiffre-titre { font: 500 22px/1.1 var(--chiffres); font-variant-numeric: tabular-nums; }
.negatif { color: var(--alerte); }
.positif { color: var(--bon); }
.note { margin: 0; font-size: 12px; color: var(--encre-2); }
.note-forte { margin: 0; font-size: 12px; font-weight: 500; }
.secondaire { color: var(--encre-2); }
.tertiaire { color: var(--encre-3); }
.num { font-variant-numeric: tabular-nums; }

.chiffres { display: flex; gap: 18px; flex-wrap: wrap; }
.chiffre { flex: 1; min-width: 86px; display: flex; flex-direction: column; gap: 2px; }
.chiffre span:first-child { font-size: 12px; color: var(--encre-2); white-space: nowrap; }
.chiffre strong { font: 500 18px/1.15 var(--chiffres); font-variant-numeric: tabular-nums; white-space: nowrap; }
.chiffre small { font-size: 11px; color: var(--encre-2); }

.jauge { height: 6px; border-radius: 999px; background: var(--voile-3); overflow: hidden; box-shadow: inset 0 1px 1px rgba(0, 0, 0, .25); }
.jauge > i { display: block; height: 100%; border-radius: inherit; background: #fff; transform-origin: left; animation: remplir .9s var(--doux) both; }
.jauge.liberte > i { background: linear-gradient(90deg, #6bcdff, #fff); }
.jauge.fine { height: 5px; }
@keyframes remplir { from { transform: scaleX(0); } }

/* Une ligne de liste : tout le rang réagit au survol et au clic. */
.ligne {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-width: 0;
  padding: 7px 8px;
  border-radius: var(--rayon-petit);
  transition: background-color .15s;
}
a.ligne:hover, button.ligne:hover { background: var(--voile-2); }
.ligne.choisie { background: var(--voile-3); }
.ligne .corps { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.ligne .titre { font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ligne .detail { font-size: 12px; color: var(--encre-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ligne .valeur { font-weight: 500; font-variant-numeric: tabular-nums; white-space: nowrap; }
.ligne .fleche { width: 11px; height: 11px; color: var(--encre-3); stroke-width: 2.4; }
.ligne .pivot { width: 11px; height: 11px; color: var(--encre-3); stroke-width: 2.4; transition: transform .3s var(--ressort); }
.ligne[aria-expanded="true"] .pivot { transform: rotate(90deg); }
.liste { display: flex; flex-direction: column; gap: 2px; margin: 0 -8px; }
.symbole-ligne { width: 24px; display: grid; place-items: center; color: var(--encre-2); }
.symbole-ligne .ico { width: 17px; height: 17px; }
.deplie { padding: 2px 8px 10px 36px; display: flex; flex-direction: column; gap: 6px; animation: fondu .25s var(--doux); }
@keyframes fondu { from { opacity: 0; transform: translateY(-4px); } }

.pilule {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 9px;
  border-radius: 999px;
  background: var(--voile-2);
  font-size: 11px;
  font-weight: 500;
  white-space: nowrap;
}
.pilule.bon { color: var(--bon); }
.pilule.alerte { color: var(--alerte); }
.pilule.attention { color: var(--attention); }
.pilule.discret { color: var(--encre-2); }
.flux { display: flex; flex-wrap: wrap; gap: 6px; }

.bouton {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--voile-2);
  font-size: 12px;
  font-weight: 500;
  white-space: nowrap;
  transition: background-color .15s, transform .3s var(--ressort);
}
.bouton:hover { background: var(--voile-4); }
.bouton:active { transform: scale(.96); }
.bouton .ico { width: 14px; height: 14px; }
.bouton.principal { background: rgba(255, 255, 255, .9); color: #111; }
.bouton.principal:hover { background: #fff; }

.vide { display: flex; gap: 8px; align-items: center; color: var(--encre-2); font-size: 13px; }

/* Le sélecteur segmenté : une capsule de verre, la sélection glisse. */
.selecteur { display: inline-flex; position: relative; padding: 3px; border-radius: 999px; gap: 0; align-self: flex-start; }
.selecteur button { position: relative; z-index: 2; padding: 7px 16px; border-radius: 999px; font-size: 13px; font-weight: 500; color: var(--encre-2); transition: color .2s; white-space: nowrap; }
.selecteur button[aria-pressed="true"] { color: var(--encre); }
.selecteur .curseur {
  position: absolute;
  top: 3px;
  bottom: 3px;
  left: 0;
  border-radius: 999px;
  background: var(--voile-4);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .22), 0 2px 8px rgba(0, 0, 0, .18);
  transition: transform .45s var(--ressort), width .45s var(--ressort);
  z-index: 1;
}

.logo { width: 32px; height: 32px; border-radius: 9px; flex: none; overflow: hidden; display: grid; place-items: center; background: var(--voile-3); font: 600 12px var(--chiffres); }
.logo img { width: 100%; height: 100%; object-fit: contain; padding: 12%; background: #fff; }
.logo.grand { width: 46px; height: 46px; border-radius: 13px; font-size: 16px; }

.champ {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 7px 11px;
  border-radius: 999px;
  background: var(--voile-1);
  box-shadow: inset 0 0 0 1px var(--filet);
}
.champ input { flex: 1; min-width: 0; border: 0; outline: 0; background: none; font-size: 13px; }
.champ input::placeholder { color: var(--encre-3); }
.champ .ico { color: var(--encre-2); width: 14px; height: 14px; }

.menu-deroulant { position: relative; }
.menu-deroulant select {
  appearance: none;
  -webkit-appearance: none;
  border: 0;
  background: var(--voile-2);
  padding: 5px 26px 5px 11px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
}
.menu-deroulant .ico { position: absolute; right: 9px; top: 50%; width: 11px; height: 11px; transform: translateY(-50%); pointer-events: none; stroke-width: 2.4; }
.menu-deroulant select option { background: #23252d; }

.texte-libre .ligne .titre { white-space: normal; font-weight: 400; }
.ligne.forte .titre { font-weight: 600; }
.ligne.premiere .titre { font-weight: 600; }
.tete-graphique { display: flex; align-items: baseline; gap: 8px; }
.tete-graphique { flex-wrap: wrap; }
.tete-graphique .legende { margin-left: auto; }
.legende.gauche { justify-content: flex-start; }
.ligne-detail { display: flex; gap: 8px; align-items: baseline; font-size: 12px; }
.ligne-detail > span:first-child { flex: 1; }
.largeur-montant { width: 96px; text-align: right; }
.largeur-signe { width: 80px; text-align: right; }
.mrr-client { width: 84px; text-align: right; font-size: 12px; }
.bouton.mois { background: transparent; }
.bouton.mois[aria-pressed="true"] { background: var(--voile-4); font-weight: 600; }
.titre-cellule { font-weight: 500; }
.ligne.en-retard .detail { color: var(--alerte); }
.liste.retrait { margin-left: 10px; }
.valeur.compte { min-width: 22px; text-align: right; }
.entete-volet, .entete-canal { display: flex; align-items: flex-start; gap: 12px; }
.entete-canal { align-items: center; gap: 10px; }
.entete-volet .corps, .entete-canal .corps { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.nom-client { font: 600 17px/1.2 var(--chiffres); }
.total-canal { display: flex; flex-direction: column; align-items: flex-end; }
.horaire.court { width: 44px; }
.posts td:first-child { min-width: 260px; max-width: 420px; }
.posts td:first-child .ligne { margin: -4px -8px; }
.regularite-corps { display: flex; gap: 18px; align-items: flex-start; justify-content: space-between; flex-wrap: wrap; }
.pile.serre { gap: 4px; }
.pile.droite { align-items: flex-end; gap: 8px; }
.legende i.cadre-prevu { background: transparent; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .7); }

/* ---------- Les entrées en scène ---------- */

.apparition { animation: apparition .6s var(--ressort) both; animation-delay: calc(var(--ordre, 0) * 45ms); }
@keyframes apparition { from { opacity: 0; transform: translateY(14px) scale(.965); } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0ms !important; transition-duration: .01ms !important; }
}

/* ---------- Les graphiques ---------- */

.graphique { position: relative; width: 100%; min-height: 190px; }
.graphique svg { display: block; overflow: visible; }
.graphique .axe { fill: var(--encre-2); font-size: 11px; font-variant-numeric: tabular-nums; }
.graphique .grille-ligne { stroke: rgba(255, 255, 255, .09); stroke-width: 1; }
.graphique .base { stroke: rgba(255, 255, 255, .22); stroke-width: 1; }
.graphique .zone { fill: transparent; cursor: pointer; }
.graphique .survol { fill: rgba(255, 255, 255, .06); }
.graphique .barres path { transition: opacity .2s; }
.legende { display: flex; gap: 14px; flex-wrap: wrap; justify-content: flex-end; font-size: 12px; color: var(--encre-2); }
.legende span { display: inline-flex; align-items: center; gap: 6px; }
.legende i { width: 10px; height: 10px; border-radius: 3px; }
.bulle {
  position: fixed;
  z-index: 60;
  pointer-events: none;
  min-width: 150px;
  padding: 9px 12px;
  border-radius: 14px;
  background: rgba(28, 30, 38, .82);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  backdrop-filter: blur(20px) saturate(180%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .2), 0 10px 30px rgba(0, 0, 0, .4);
  font-size: 12px;
}
.bulle strong { display: block; margin-bottom: 4px; font-weight: 600; }
.bulle div { display: flex; align-items: center; gap: 8px; }
.bulle div i { width: 8px; height: 8px; border-radius: 2px; flex: none; }
.bulle div span:last-child { margin-left: auto; font-variant-numeric: tabular-nums; padding-left: 12px; }
.bulle .total { margin-top: 4px; padding-top: 4px; border-top: 1px solid var(--filet); font-weight: 600; }

/* ---------- Les tableaux ---------- */

.tableau-chiffres { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.tableau-chiffres th { font-size: 11px; font-weight: 500; color: var(--encre-2); text-align: right; padding: 0 0 8px 14px; white-space: nowrap; }
.tableau-chiffres th:first-child, .tableau-chiffres td:first-child { text-align: left; padding-left: 0; }
.tableau-chiffres td { padding: 6px 0 6px 14px; text-align: right; white-space: nowrap; }
.tableau-chiffres td:first-child { white-space: normal; }
.tableau-chiffres tr + tr td { border-top: 1px solid rgba(255, 255, 255, .05); }
.tableau-chiffres tfoot td { border-top: 1px solid var(--filet); font-weight: 600; padding-top: 9px; }
.tableau-chiffres .zero { color: var(--encre-3); }
.defile-x { overflow-x: auto; margin: 0 -4px; padding: 0 4px; }

/* ---------- Clients ---------- */

.clients { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--ecart); align-items: start; }
.clients.avec-volet { grid-template-columns: minmax(0, 1fr) minmax(340px, 430px); }
.liste-clients { max-height: calc(100dvh - 210px); overflow-y: auto; scrollbar-width: none; margin: 0 -8px; padding: 0 0 6px; }
.liste-clients::-webkit-scrollbar { display: none; }
.volet { position: sticky; top: 12px; max-height: calc(100dvh - 130px); overflow-y: auto; scrollbar-width: none; animation: volet .45s var(--ressort); }
@keyframes volet { from { opacity: 0; transform: translateX(24px); } }
.volet .widget { gap: 16px; }
.bloc { display: flex; flex-direction: column; gap: 8px; }
.bloc > h3 { margin: 0; font-size: 13px; font-weight: 600; color: var(--encre-2); }
.fermer { width: 26px; height: 26px; display: grid; place-items: center; border-radius: 50%; background: var(--voile-2); flex: none; }
.fermer .ico { width: 12px; height: 12px; stroke-width: 2.4; }
.fermer:hover { background: var(--voile-4); }
.progression-client { width: 96px; display: flex; flex-direction: column; gap: 3px; align-items: flex-end; font-size: 11px; color: var(--encre-2); }
.progression-client .jauge { width: 100%; }

/* ---------- Commercial ---------- */

.tuile-pipeline { padding: 18px; display: flex; flex-direction: column; gap: 4px; text-align: left; }
.tuile-pipeline[aria-pressed="true"] { background: rgba(255, 255, 255, .16); }
.tuile-pipeline .nom { font-size: 13px; font-weight: 600; color: var(--encre-2); }

/* ---------- Visibilité ---------- */

.calendrier { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.calendrier .jour-semaine { font-size: 11px; font-weight: 500; color: var(--encre-2); text-align: center; padding-bottom: 2px; }
.case {
  min-height: 52px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 6px 2px;
  border-radius: 10px;
  background: rgba(255, 255, 255, .03);
  transition: background-color .15s;
}
.case:hover { background: var(--voile-2); }
.case[aria-pressed="true"] { background: var(--voile-3); }
.case .numero { font-size: 11px; font-variant-numeric: tabular-nums; }
.case.passe .numero { color: var(--encre-2); }
.case.aujourdhui .numero { background: #fff; color: #000; font-weight: 700; padding: 1px 6px; border-radius: 999px; }
.case .points { display: flex; gap: 2px; align-items: center; min-height: 18px; }
.pastille-reseau {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font: 700 8.5px var(--chiffres);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .65);
}
.pastille-reseau.plein { background: rgba(255, 255, 255, .92); color: #000; box-shadow: none; }
.regularite { display: flex; gap: 3px; }
.regularite > div { display: flex; flex-direction: column; gap: 3px; }
.regularite i { width: 13px; height: 13px; border-radius: 3.5px; background: rgba(255, 255, 255, .08); }
.regularite i.un { background: rgba(255, 255, 255, .6); }
.regularite i.plus { background: rgba(255, 255, 255, .95); }
.regularite i.prevu { background: transparent; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .7); }
.mini-barres { height: 36px; min-height: 36px; }

/* ---------- Réunions ---------- */

.jour-agenda { display: flex; flex-direction: column; gap: 2px; }
.jour-agenda > h3 { margin: 6px 0 2px; font-size: 12px; font-weight: 600; color: var(--encre-2); }
.jour-agenda > h3.aujourdhui { color: var(--encre); }
.horaire { width: 92px; flex: none; font-size: 12px; font-weight: 500; color: var(--encre-2); font-variant-numeric: tabular-nums; }
.qui { display: inline-flex; flex: none; }
.qui i {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font: 700 9px var(--chiffres);
  font-style: normal;
  color: #fff;
  box-shadow: 0 0 0 2px rgba(25, 27, 34, .85);
}
.qui i + i { margin-left: -5px; }
.filtres { display: flex; gap: 6px; flex-wrap: wrap; }
.filtre { display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px 5px 6px; border-radius: 999px; background: var(--voile-1); font-size: 12px; font-weight: 500; color: var(--encre-2); box-shadow: inset 0 0 0 1px var(--filet); }
.filtre[aria-pressed="true"] { background: var(--voile-3); color: var(--encre); box-shadow: none; }
.filtre i { width: 16px; height: 16px; border-radius: 50%; }

/* ---------- Les calques : recherche, menus ---------- */

.calque { position: fixed; inset: 0; z-index: 40; display: flex; justify-content: center; align-items: flex-start; padding-top: 12vh; background: rgba(5, 6, 10, .18); animation: fondu .2s var(--doux); }
.palette { width: min(640px, calc(100vw - 24px)); display: flex; flex-direction: column; animation: palette .35s var(--ressort); --teinte: rgba(18, 20, 26, .55); }
@keyframes palette { from { opacity: 0; transform: translateY(-10px) scale(.97); } }
.palette .saisie { display: flex; align-items: center; gap: 10px; padding: 15px 18px; border-bottom: 1px solid var(--filet); }
.palette .saisie .ico { width: 18px; height: 18px; color: var(--encre-2); }
.palette .saisie input { flex: 1; border: 0; outline: 0; background: none; font-size: 18px; }
.palette .resultats { max-height: min(440px, 60vh); overflow-y: auto; padding: 8px; scrollbar-width: thin; }
.palette .groupe { font-size: 11px; font-weight: 600; color: var(--encre-2); padding: 9px 10px 3px; }
.palette .ligne .symbole-ligne { width: 22px; }
.palette .ligne.active { background: var(--voile-3); }
.touche { font-size: 11px; color: var(--encre-3); padding: 1px 6px; border-radius: 6px; box-shadow: inset 0 0 0 1px var(--filet); }

.menu-flottant {
  position: fixed;
  z-index: 45;
  min-width: 250px;
  padding: 8px;
  border-radius: 20px;
  animation: palette .3s var(--ressort);
  --teinte: rgba(20, 22, 28, .6);
}
.menu-flottant .ligne { font-size: 13px; }
.menu-flottant .entete { padding: 8px 10px 10px; border-bottom: 1px solid var(--filet); margin-bottom: 6px; }
.menu-flottant .entete strong { display: block; font-size: 14px; }
.ambiances { display: flex; gap: 8px; padding: 6px 10px 10px; flex-wrap: wrap; }
.ambiance-choix { width: 38px; height: 38px; border-radius: 12px; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .2); background-size: cover; }
.ambiance-choix[aria-pressed="true"] { box-shadow: 0 0 0 2px #fff; }
.ambiance-choix.aurore { background: linear-gradient(135deg, #5b7fd6, #b76ac9 55%, #e0806a); }
.ambiance-choix.lagune { background: linear-gradient(135deg, #2fb3c8, #3a6ee0 55%, #1d8f7a); }
.ambiance-choix.braise { background: linear-gradient(135deg, #f0975a, #d4506b 55%, #8e4ab8); }
.ambiance-choix.nuit { background: linear-gradient(135deg, #34405f, #1c1f2b 55%, #3d3456); }
.ambiance-choix.image { display: grid; place-items: center; background: var(--voile-2); }

/* ---------- Le mur : une colonne pour un écran vertical, sans navigation ---------- */

body.mur .barre-laterale, body.mur .dock { display: none; }
body.mur .cadre { grid-template-columns: minmax(0, 1fr); max-width: 1100px; margin: 0 auto; padding: 32px 24px 24px; }
body.mur .contenu { padding-bottom: 24px; }
body.mur .pied-mur { display: flex; justify-content: center; margin-top: var(--ecart); }
.pied-mur { display: none; }
.pied-mur .dock { position: static; transform: none; display: flex; }

/* ---------- Connexion ---------- */

.page-connexion { min-height: 100dvh; display: grid; place-items: center; padding: 24px; }
.carte-connexion { width: min(380px, 100%); padding: 34px 30px 28px; display: flex; flex-direction: column; gap: 14px; animation: apparition .7s var(--ressort) both; }
.carte-connexion h1 { margin: 0; font: 600 30px/1 var(--chiffres); letter-spacing: -.02em; text-align: center; }
.carte-connexion .sous-titre { margin: 0 0 8px; text-align: center; color: var(--encre-2); font-size: 13px; }
.carte-connexion label { display: flex; flex-direction: column; gap: 6px; font-size: 12px; font-weight: 500; color: var(--encre-2); }
.carte-connexion input {
  padding: 11px 14px;
  border-radius: 14px;
  border: 0;
  outline: 0;
  background: rgba(255, 255, 255, .08);
  box-shadow: inset 0 0 0 1px var(--filet);
  font-size: 15px;
  color: var(--encre);
  transition: box-shadow .2s, background-color .2s;
}
.carte-connexion input:focus { background: rgba(255, 255, 255, .12); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .4); }
.carte-connexion .bouton { justify-content: center; padding: 11px; font-size: 14px; margin-top: 6px; }
.carte-connexion .bouton[disabled] { opacity: .6; cursor: default; }
.erreur { min-height: 18px; margin: 0; color: var(--alerte); font-size: 12px; text-align: center; }
.secoue { animation: secoue .4s; }
@keyframes secoue { 20%, 60% { transform: translateX(-7px); } 40%, 80% { transform: translateX(7px); } }

/* ---------- Écrans moyens et téléphones ---------- */

@media (max-width: 1180px) {
  .grille.quatre { --colonnes: 2 !important; }
  .grille.cinq { --colonnes: 3 !important; }
  .clients.avec-volet { grid-template-columns: minmax(0, 1fr) minmax(320px, 380px); }
  .progression-client, .mrr-client { display: none; }
}
@media (max-width: 900px) {
  .cadre { grid-template-columns: minmax(0, 1fr); padding-top: max(12px, env(safe-area-inset-top)); }
  .barre-laterale {
    position: fixed;
    top: auto;
    left: 50%;
    bottom: max(12px, env(safe-area-inset-bottom));
    transform: translateX(-50%);
    height: auto;
    width: min(560px, calc(100vw - 20px));
    flex-direction: row;
    justify-content: space-between;
    padding: 6px;
    border-radius: 999px;
    z-index: 25;
  }
  .barre-laterale .marque, .barre-laterale .nav-bas { display: none; }
  .rubrique { flex-direction: column; gap: 2px; padding: 6px 4px; font-size: 10px; flex: 1; border-radius: 999px; }
  .rubrique .ico { width: 20px; height: 20px; }
  .pastille-selection { left: 0; right: auto; top: 6px; height: calc(100% - 12px); border-radius: 999px; transition: transform .45s var(--ressort), width .3s; }
  .dock { display: none; }
  .contenu { padding-bottom: 110px; }
  .deux-colonnes, .clients.avec-volet { grid-template-columns: minmax(0, 1fr); }
  .grille { --colonnes: 1 !important; }
  .grille.quatre, .grille.cinq, .grille.paire { --colonnes: 2 !important; }
  .volet { position: fixed; inset: auto 8px 92px; max-height: 72dvh; z-index: 30; }
  .salut h1 { font-size: 18px; }
  .capsule .etiquette { display: none; }
}
@media (max-width: 560px) {
  .grille.quatre, .grille.cinq, .grille.paire { --colonnes: 1 !important; }
  .gros-chiffre { font-size: 30px; }
  .rubrique span { display: none; }
  .horaire { width: 70px; }
}
