/* Les composants partagés par les écrans, portés de Composants.swift. Une couleur variable passe par --c, un rayon par --rayon. */

* { box-sizing: border-box; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
input { font: inherit; color: inherit; }
img { display: block; }

.doux { background: color-mix(in srgb, var(--c, var(--texte)) 14%, transparent); }
.chiffres { font-variant-numeric: tabular-nums; }

/* verre : fond, reflet, ombre, filet et arête */
.verre {
  position: relative;
  background: var(--reflet), var(--carte);
  border-radius: var(--rayon, var(--r-panneau));
  box-shadow: var(--ombre-verre);
  isolation: isolate;
}
.verre::before, .verre::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  z-index: -1;
}
.verre::before { border: var(--filet) solid var(--blanc-bord); }
.verre::after {
  padding: var(--filet);
  background: var(--arete);
  mask: linear-gradient(var(--noir) 0 0) content-box exclude, linear-gradient(var(--noir) 0 0);
}
.capsule { --rayon: var(--r-capsule); }

.survolable {
  transition: transform var(--duree-survol) var(--ressort-survol), background-color var(--duree-survol) var(--ressort-survol);
}
.survolable:hover { transform: scale(var(--survol-echelle)); }
.survolable:active { transform: scale(var(--appui-carte)); }

.surtitre {
  font: var(--f-surtitre);
  letter-spacing: var(--i-surtitre);
  text-transform: uppercase;
  color: var(--tertiaire);
}

.heros {
  font: var(--f-heros);
  letter-spacing: var(--i-heros);
  background: var(--degrade-heros);
  background-clip: text;
  color: transparent;
  filter: drop-shadow(var(--halo-heros));
}

.pastille {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--e-s);
  padding: var(--e-pastille-v) var(--e-pastille-h);
  border-radius: var(--r-capsule);
  font: var(--f-mini-gras);
  font-variant-numeric: tabular-nums;
  color: var(--c, var(--secondaire));
  white-space: nowrap;
}
.pastille.neutre { background: var(--blanc-survol); }

.point {
  display: inline-block;
  flex: none;
  width: var(--t-point);
  height: var(--t-point);
  border-radius: 50%;
  background: var(--c, var(--secondaire));
  box-shadow: 0 0 var(--halo-point) color-mix(in srgb, var(--c, var(--secondaire)) 80%, transparent);
}
.point.mini { width: var(--t-point-mini); height: var(--t-point-mini); }
.point.en-cours { animation: pulsation var(--duree-rotation) ease-in-out infinite alternate; }
@keyframes pulsation { to { opacity: .35; } }

.vide {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: var(--t-vide);
  font: var(--f-petit);
  color: var(--tertiaire);
  text-align: center;
}

/* panneaux */
.panneau {
  --rayon: var(--r-panneau);
  display: flex;
  flex-direction: column;
  gap: var(--e-xl);
  padding: var(--e-panneau);
  min-width: 0;
}
.bloc {
  --rayon: var(--r-bloc);
  display: flex;
  flex-direction: column;
  gap: var(--e-bloc-bas);
  padding: var(--e-bloc-haut) var(--e-panneau) var(--e-bloc-bas);
  min-width: 0;
}
.entete-panneau {
  display: flex;
  align-items: center;
  gap: var(--e-m);
  min-height: calc(var(--t-segment) - var(--e-s));
}
.entete-panneau > .espace { flex: 1; }
.h2 { font: var(--f-h2); color: var(--texte); }

/* page : en-tête fixe, contenu qui défile */
.page {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 0;
}
.entete {
  display: flex;
  align-items: flex-end;
  gap: var(--e-l);
  padding: var(--e-xl) 0 var(--e-m);
  flex: none;
}
.entete .titres { display: flex; flex-direction: column; gap: var(--e-xs); flex: 1; min-width: 0; }
.entete .titre { margin: 0; font: var(--f-titre); letter-spacing: var(--i-titre); color: var(--texte); }
.entete .sous-titre { font: var(--f-corps); color: var(--secondaire); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.entete .outils { display: flex; align-items: center; gap: var(--e-l); flex: none; }
.contenu {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: var(--e-xl);
  padding-bottom: var(--e-page);
  overflow-y: auto;
  scrollbar-width: none;
}
.contenu::-webkit-scrollbar { display: none; }
.contenu.fixe { overflow: hidden; }
.contenu > * { flex: none; }
.contenu.fixe > .remplit { flex: 1; min-height: 0; }

/* rangée à poids : les suiveurs prennent la hauteur du meneur et défilent */
.rangee {
  display: grid;
  grid-template-columns: var(--colonnes);
  gap: var(--e-xl);
  align-items: stretch;
  min-width: 0;
}
.rangee > * { min-width: 0; }
.rangee.meneur > :not(.mene) { height: 0; min-height: 100%; overflow-y: auto; scrollbar-width: none; }
.rangee.meneur > :not(.mene)::-webkit-scrollbar { display: none; }

/* segmenté */
.segmente {
  --rayon: var(--r-capsule);
  display: inline-flex;
  gap: var(--e-xs);
  padding: var(--e-segment);
  box-shadow: none;
}
.segmente > button {
  position: relative;
  z-index: 2;
  height: var(--t-segment);
  padding: 0 var(--e-xl);
  border-radius: var(--r-capsule);
  font: var(--f-ligne);
  color: var(--secondaire);
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: var(--e-s);
  transition: color var(--duree-survol) var(--ressort-survol);
}
.segmente > button:hover { color: var(--texte); }
.segmente > button.actif { color: var(--fond); }
.glisseur {
  position: absolute;
  z-index: 1;
  top: 0;
  left: 0;
  border-radius: var(--r-capsule);
  background: var(--texte);
  box-shadow: var(--halo-actif);
  pointer-events: none;
  transition: transform var(--duree-navigation) var(--ressort-navigation), width var(--duree-navigation) var(--ressort-navigation), height var(--duree-navigation) var(--ressort-navigation), opacity var(--duree-fondu);
}

.pilule {
  display: inline-flex;
  align-items: center;
  gap: var(--e-s);
  padding: var(--e-s) var(--e-l);
  border-radius: var(--r-ligne);
  background: var(--blanc-pilule);
  font: var(--f-mini-gras);
  color: var(--texte);
  white-space: nowrap;
  transition: background-color var(--duree-survol) var(--ressort-survol), transform var(--duree-survol) var(--ressort-survol);
}
.pilule:hover { background: var(--blanc-actif); }
.pilule:active { transform: scale(var(--appui)); }

/* KPI */
.grille-kpi { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--e-xl); }
.kpi {
  --rayon: var(--r-carte);
  display: flex;
  align-items: flex-end;
  gap: var(--e-xl);
  padding: var(--e-xxl) var(--e-panneau);
  min-width: 0;
}
.kpi.grande { flex-direction: column; align-items: stretch; }
.kpi .gauche { display: flex; flex-direction: column; gap: var(--e-s); flex: 1; min-width: 0; }
.kpi .haut { display: flex; align-items: center; justify-content: space-between; gap: var(--e-m); }
.kpi .valeur { font: var(--f-kpi); letter-spacing: var(--i-kpi); color: var(--texte); }
.kpi .note { font: var(--f-petit); color: var(--tertiaire); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* chiffre qui roule */
.chiffre { display: inline-flex; white-space: pre; font-variant-numeric: tabular-nums; }
.chiffre span { display: inline-block; }
.chiffre .roule { position: relative; }
.chiffre .sortant { position: absolute; left: 0; top: 0; }

/* graphiques */
.sparkline { position: relative; width: var(--t-sparkline-l); height: var(--t-sparkline-h); flex: none; }
.sparkline.large { width: 100%; }
.sparkline svg, .courbe svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.sparkline path, .courbe .serie {
  fill: none;
  stroke: var(--c, var(--blanc-trait));
  stroke-width: var(--trait);
  stroke-linecap: round;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
}
.sparkline .bout, .courbe .bout {
  position: absolute;
  width: var(--t-point-mini);
  height: var(--t-point-mini);
  margin: calc(var(--t-point-mini) / -2) 0 0 calc(var(--t-point-mini) / -2);
  border-radius: 50%;
  background: var(--c, var(--blanc-trait));
}

.courbe { position: relative; display: grid; grid-template-columns: auto 1fr; grid-template-rows: 1fr auto; column-gap: var(--e-m); row-gap: var(--e-s); height: var(--hauteur, var(--t-graphique)); }
.courbe .axe-y { display: flex; flex-direction: column; justify-content: space-between; font: var(--f-axe); color: var(--tertiaire); text-align: right; }
.courbe .trace { position: relative; min-width: 0; }
.courbe .grille { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: space-between; pointer-events: none; }
.courbe .grille > i { display: block; height: var(--filet); background: var(--blanc-grille); }
.courbe .axe-x { grid-column: 2; display: flex; justify-content: space-between; font: var(--f-axe); color: var(--tertiaire); }
.courbe .viseur {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 0;
  border-left: var(--viseur) dashed var(--blanc-repere);
  pointer-events: none;
  opacity: 0;
  transition: opacity var(--duree-fondu);
}
.courbe .vise { position: absolute; width: var(--t-point); height: var(--t-point); margin: calc(var(--t-point) / -2) 0 0 calc(var(--t-point) / -2); border-radius: 50%; background: var(--c); box-shadow: var(--contour-vise); pointer-events: none; opacity: 0; transition: opacity var(--duree-fondu); }
.bulle-graphique {
  position: absolute;
  top: 0;
  z-index: 5;
  padding: var(--e-m) var(--e-l);
  border-radius: var(--r-ligne);
  background: var(--releve);
  border: var(--filet) solid var(--blanc-bord-fort);
  box-shadow: var(--ombre-verre);
  font: var(--f-mini);
  color: var(--secondaire);
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transition: opacity var(--duree-fondu);
}
.bulle-graphique b { font: var(--f-mini-gras); color: var(--texte); }
.bulle-graphique .ligne { display: flex; align-items: center; gap: var(--e-s); }
.trace:hover .viseur, .trace:hover .vise, .trace:hover .bulle-graphique { opacity: 1; }

.barres { position: relative; display: flex; flex-direction: column; gap: var(--e-s); height: var(--hauteur, var(--t-barres-heure)); }
.barres .colonnes { flex: 1; display: flex; align-items: flex-end; gap: var(--ecart, var(--e-s)); min-height: 0; }
.barres .colonne { position: relative; flex: 1; height: 100%; display: flex; align-items: flex-end; }
.barres .colonne > i { position: absolute; left: 0; right: 0; bottom: 0; border-radius: var(--r-barre); transform-origin: bottom; }
.barres .fantome { background: var(--blanc-fantome); }
.barres .valeur { background: var(--blanc-barre); }
.barres .courante .valeur { background: var(--accent); box-shadow: var(--halo-barre); }
.barres .apres .valeur { visibility: hidden; }
.barres .colonne:hover .valeur { background: var(--texte); }
.barres .axe-x { display: flex; justify-content: space-between; font: var(--f-axe); color: var(--tertiaire); }

.legende { display: flex; flex-wrap: wrap; gap: var(--e-m) var(--e-xxl); font: var(--f-petit); color: var(--secondaire); }
.legende span { display: inline-flex; align-items: center; gap: var(--e-m); }
.legende i { width: var(--t-legende); height: var(--t-legende); border-radius: var(--r-legende); background: var(--c); }

/* avatars et miniatures */
.avatar {
  --t: var(--t-avatar);
  width: var(--t);
  height: var(--t);
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: calc(var(--r-avatar) * var(--t) / var(--t-avatar));
  overflow: hidden;
  color: var(--c);
  font: var(--f-lettre);
}
.avatar.petit { font: var(--f-mini-gras); }
.avatar.image { box-shadow: inset 0 0 0 var(--filet) var(--blanc-bord-fort); }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar.marque { color: var(--texte); }
.avatar.marque svg { width: var(--t-marque-avatar); height: var(--t-marque-avatar); }

.miniature {
  position: relative;
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: var(--rayon, var(--r-avatar));
  background: var(--blanc-pilule);
}
.miniature img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.miniature img.logo { position: static; width: var(--t-logo); height: var(--t-logo); object-fit: contain; }

.marque-svg { width: var(--t-marque); height: var(--t-marque); color: var(--texte); flex: none; }
.icone { width: var(--t-icone); height: var(--t-icone); flex: none; stroke: currentColor; fill: none; stroke-width: var(--trait-icone); stroke-linecap: round; stroke-linejoin: round; }

/* fil */
.fil { display: flex; flex-direction: column; }
.ligne-fil {
  display: flex;
  align-items: center;
  gap: var(--e-l);
  height: var(--t-ligne-fil);
  padding: 0 var(--e-m);
  border-radius: var(--r-ligne);
  font: var(--f-petit);
  color: var(--texte);
  text-align: left;
}
.ligne-fil:first-child { background: var(--blanc-survol); }
.ligne-fil.lien:hover { background: var(--blanc-actif); }
.ligne-fil .heure { min-width: var(--t-heure); font: var(--f-mini); color: var(--secondaire); font-variant-numeric: tabular-nums; }
.ligne-fil.jour .heure { min-width: var(--t-heure-jour); }
.ligne-fil .pastille { min-width: var(--t-tag); font: var(--f-tag); }
.ligne-fil .texte { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fleche { font: var(--f-fleche); color: var(--tertiaire); }

/* table des vidéos */
.table-videos { display: flex; flex-direction: column; min-width: 0; }
.table-videos .rang {
  display: grid;
  grid-template-columns: var(--colonnes-videos);
  align-items: center;
  column-gap: var(--e-m);
  height: var(--t-ligne-video);
  padding: 0 var(--e-m);
  border-radius: var(--r-ligne);
  font: var(--f-petit);
  color: var(--secondaire);
  font-variant-numeric: tabular-nums;
  text-align: left;
}
.table-videos .rang > :nth-child(n+3) { text-align: right; }
.table-videos .rang.tete { font: var(--f-mini-gras); color: var(--secondaire); height: auto; padding-bottom: var(--e-s); }
.table-videos .rang.tete .vues { color: var(--texte); }
.table-videos .rang:not(.tete):nth-child(odd) { background: var(--blanc-ligne); }
.table-videos .rang:not(.tete):hover { background: var(--blanc-survol); }
.table-videos .rang.choisie { background: var(--blanc-actif); }
.table-videos .titre { color: var(--texte); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* tâches */
.taches { display: flex; flex-direction: column; }
.tache {
  display: flex;
  align-items: center;
  gap: var(--e-l);
  min-height: var(--t-ligne-tache);
  padding: 0 var(--e-m);
  border-radius: var(--r-tache);
}
.tache:hover { background: var(--blanc-survol); }
.tache .corps { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.tache .texte { font: var(--f-ligne); color: var(--texte); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tache.faite .texte { text-decoration: line-through; color: var(--tertiaire); }
.tache .detail { font: var(--f-mini); color: var(--tertiaire); }
.tache .supprimer { color: var(--tertiaire); font: var(--f-symbole); opacity: 0; transition: opacity var(--duree-fondu); }
.tache:hover .supprimer { opacity: 1; }
.tache .supprimer:hover { color: var(--danger); }
.case {
  width: var(--t-case-tache);
  height: var(--t-case-tache);
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: var(--trait-case) solid var(--blanc-serie);
  font: var(--f-coche);
  color: var(--fond);
  transition: background-color var(--duree-survol) var(--ressort-survol), transform var(--duree-survol) var(--ressort-survol);
}
.case:active { transform: scale(var(--appui)); }
.case.alerte { border-color: color-mix(in srgb, var(--ambre) 70%, transparent); }
.case.faite { border-color: var(--succes); background: var(--succes); }

/* champ */
.champ {
  height: var(--t-bouton);
  padding: 0 var(--e-xl);
  border-radius: var(--r-bouton);
  border: var(--filet) solid var(--blanc-bord);
  background: var(--blanc-bloc);
  font: var(--f-corps);
  outline: none;
  transition: border-color var(--duree-fondu);
}
.champ:focus { border-color: var(--blanc-bord-fort); }
.champ::placeholder { color: var(--tertiaire); }

/* Réglages : un onglet en formulaire groupé, dans une colonne centrée */
.reglages { display: flex; flex-direction: column; gap: var(--e-panneau); width: 100%; max-width: var(--t-reglages-l); margin: 0 auto; }
.groupe-reglages { display: flex; flex-direction: column; gap: var(--e-m); }
.groupe-reglages > .surtitre { padding: 0 var(--e-xl); }
.groupe-reglages > .lignes { --rayon: var(--r-bloc); display: flex; flex-direction: column; padding: 0 var(--e-xl); }
.ligne-reglage { display: flex; align-items: center; gap: var(--e-xl); min-height: var(--t-segment); padding: var(--e-m) 0; }
.ligne-reglage + .ligne-reglage { border-top: var(--filet) solid var(--blanc-grille); }
.ligne-reglage .libelle { flex: 1; min-width: min-content; font: var(--f-ligne); color: var(--texte); }
.ligne-reglage .controles { display: flex; align-items: center; justify-content: flex-end; gap: var(--e-m); min-width: 0; }
.ligne-reglage.seule .controles { justify-content: flex-start; }
.ligne-reglage .champ { width: var(--t-champ-reglage); height: var(--t-bouton-reglage); }
.ligne-reglage select.champ { padding-right: var(--e-m); }
.ligne-reglage .valeur { font: var(--f-petit); color: var(--secondaire); text-align: right; overflow-wrap: anywhere; }
.ligne-reglage .valeur.ok { color: var(--succes); }
.ligne-reglage .valeur.absente { color: var(--tertiaire); }
.ligne-reglage .valeur.chemin { font: var(--f-axe); user-select: text; }
.groupe-reglages .pied, .confirmation .pied { padding: 0 var(--e-xl); font: var(--f-petit); color: var(--secondaire); }
.reglages .actions, .reglages .confirmation { display: flex; align-items: center; gap: var(--e-m); padding: 0 var(--e-xl); }
.reglages .actions .espace { flex: 1; }
.reglages .message { font: var(--f-petit); color: var(--succes); }
.reglages .message.erreur { color: var(--danger); }
.reglages .confirmation .textes { flex: 1; display: flex; flex-direction: column; gap: var(--e-xs); }
.reglages .confirmation .pied { padding: 0; }
.bouton-reglage {
  height: var(--t-bouton-reglage);
  padding: 0 var(--e-xl);
  border-radius: var(--r-ligne);
  background: var(--blanc-pilule);
  font: var(--f-ligne);
  color: var(--texte);
  white-space: nowrap;
  transition: background-color var(--duree-survol) var(--ressort-survol), transform var(--duree-survol) var(--ressort-survol);
}
.bouton-reglage:hover { background: var(--blanc-actif); }
.bouton-reglage:active { transform: scale(var(--appui)); }
.bouton-reglage.principal { background: var(--texte); color: var(--fond); box-shadow: var(--halo-actif); }
.bouton-reglage.danger { color: var(--danger); }
.bouton-reglage:disabled { opacity: .4; pointer-events: none; }
.interrupteur {
  position: relative;
  flex: none;
  width: var(--t-interrupteur-l);
  height: var(--t-interrupteur-h);
  border-radius: var(--r-capsule);
  background: var(--blanc-actif);
  transition: background-color var(--duree-survol) var(--ressort-survol);
}
.interrupteur::after {
  content: "";
  position: absolute;
  top: var(--e-xs);
  left: var(--e-xs);
  width: calc(var(--t-interrupteur-h) - 2 * var(--e-xs));
  height: calc(var(--t-interrupteur-h) - 2 * var(--e-xs));
  border-radius: 50%;
  background: var(--texte);
  transition: transform var(--duree-survol) var(--ressort-survol);
}
.interrupteur[aria-checked="true"] { background: var(--succes); }
.interrupteur[aria-checked="true"]::after { transform: translateX(calc(var(--t-interrupteur-l) - var(--t-interrupteur-h))); }

/* Barre de menus : la petite fenêtre du clic gauche sur l'icône */
html:has(.page-barre), .page-barre { margin: 0; overflow: hidden; }
.page-barre { background: var(--reflet), var(--carte); color: var(--texte); font: var(--f-corps); user-select: none; cursor: default; }
.barre-menus { display: flex; flex-direction: column; gap: var(--e-xl); width: var(--t-barre-menus); padding: var(--e-xxl); box-sizing: border-box; }
.barre-menus .tete { display: flex; align-items: baseline; justify-content: space-between; gap: var(--e-m); }
.barre-menus .collecte { font: var(--f-mini); color: var(--secondaire); }
.chiffres-barre { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--e-l) var(--e-xl); }
.chiffre-barre { display: flex; flex-direction: column; gap: var(--e-xs); min-width: 0; }
.chiffre-barre .libelle { font: var(--f-label); color: var(--secondaire); }
.chiffre-barre .valeur { font: var(--f-grand); color: var(--texte); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ligne-sav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--t-item-nav);
  padding: 0 var(--e-l);
  border-radius: var(--r-ligne);
  background: var(--blanc-ligne);
  font: var(--f-ligne);
  transition: transform var(--duree-survol) var(--ressort-survol), background-color var(--duree-survol) var(--ressort-survol);
}
.ligne-sav:hover { background: var(--blanc-survol); }
.ligne-sav:active { transform: scale(var(--appui-carte)); }
.barre-menus .boutons { display: flex; align-items: center; gap: var(--e-m); }
.barre-menus .boutons .espace { flex: 1; }

/* Santé */
.corps-panneau { display: contents; }
.tableau { display: flex; flex-direction: column; min-width: 0; }
.tableau .rang {
  display: grid;
  align-items: center;
  column-gap: var(--e-l);
  row-gap: var(--e-xs);
  padding: 0 var(--e-l);
  border-radius: var(--r-ligne);
  font: var(--f-petit);
  color: var(--secondaire);
  font-variant-numeric: tabular-nums;
}
.table-sources .rang { grid-template-columns: var(--colonnes-sources); min-height: var(--t-ligne-video); padding-block: var(--e-s); }
.table-ia .rang { grid-template-columns: var(--colonnes-ia); height: var(--t-ligne-video); }
.table-journal .rang { grid-template-columns: var(--colonnes-journal); height: var(--t-ligne-fil); }
.tableau .rang.tete { font: var(--f-tete-tableau); height: auto; min-height: 0; padding-block: 0 var(--e-s); }
.tableau .rang:not(.tete):nth-child(even) { background: var(--blanc-ligne); }
.tableau .cellule { min-width: 0; text-align: right; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tableau .cellule.gauche { text-align: left; }
.tableau .nom { font: var(--f-ligne); color: var(--texte); }
.tableau .fort { color: var(--texte); }
.nom-point { display: inline-flex; align-items: center; gap: var(--e-m); max-width: 100%; }
.nom-point .nom { font: inherit; color: var(--texte); overflow: hidden; text-overflow: ellipsis; }
.table-sources .nom-point .nom { font: var(--f-ligne); }
.sous-ligne { grid-column: 1 / -1; }
.erreur-passage {
  padding-left: calc(var(--t-point) + var(--e-m));
  font: var(--f-mini);
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  overflow: hidden;
  user-select: text;
}
.relancer-source {
  display: inline-flex;
  align-items: center;
  gap: var(--e-s);
  padding: var(--e-s) var(--e-l);
  border-radius: var(--r-ligne);
  background: var(--blanc-pilule);
  font: var(--f-mini-gras);
  color: var(--texte);
}
.relancer-source:hover:not(:disabled) { background: var(--blanc-actif); }
.relancer-source:active:not(:disabled) { transform: scale(var(--appui)); }
.relancer-source:disabled { color: var(--secondaire); cursor: default; }
.relancer-source .icone { width: var(--t-legende); height: var(--t-legende); }
.bascule { display: inline-flex; align-items: center; gap: var(--e-m); font: var(--f-petit); color: var(--secondaire); cursor: pointer; }
.bascule.oui { color: var(--ambre); }
.bascule input { position: absolute; opacity: 0; pointer-events: none; }
.bascule i {
  position: relative;
  width: var(--t-bascule-l);
  height: var(--t-bascule-h);
  border-radius: var(--r-capsule);
  background: var(--blanc-actif);
  transition: background var(--duree-fondu);
}
.bascule i::after {
  content: "";
  position: absolute;
  top: var(--e-xs);
  left: var(--e-xs);
  width: calc(var(--t-bascule-h) - 2 * var(--e-xs));
  height: calc(var(--t-bascule-h) - 2 * var(--e-xs));
  border-radius: 50%;
  background: var(--texte);
  transition: translate var(--duree-fondu);
}
.bascule.oui i { background: var(--ambre); }
.bascule.oui i::after { translate: calc(var(--t-bascule-l) - var(--t-bascule-h)) 0; }
.bascule input:focus-visible + i { box-shadow: var(--halo-actif); }
.menu-source {
  appearance: none;
  padding: var(--e-s) var(--e-l);
  border: 0;
  border-radius: var(--r-ligne);
  background: var(--blanc-pilule);
  font: var(--f-mini-gras);
  color: var(--texte);
  cursor: pointer;
}
.menu-source:hover { background: var(--blanc-actif); }
.menu-source option { background: var(--releve); color: var(--texte); }
.graphique-barres {
  display: grid;
  grid-template-columns: var(--t-axe-y) minmax(0, 1fr);
  grid-template-rows: var(--t-graphique) auto;
  column-gap: var(--e-m);
  row-gap: var(--e-s);
}
.graphique-barres .axe-y { position: relative; font: var(--f-axe); color: var(--tertiaire); }
.graphique-barres .axe-y span { position: absolute; right: 0; translate: 0 50%; white-space: nowrap; }
.graphique-barres .trace { position: relative; display: flex; align-items: flex-end; gap: var(--e-s); }
.graphique-barres .repere { position: absolute; left: 0; right: 0; height: var(--filet); background: var(--blanc-grille); pointer-events: none; }
.graphique-barres .colonne { position: relative; flex: 1; height: 100%; display: flex; flex-direction: column; justify-content: flex-start; }
.graphique-barres .colonne > i { position: absolute; left: 0; right: 0; bottom: 0; border-radius: var(--r-barre); background: var(--blanc-barre); }
.graphique-barres .colonne.vue > i { background: var(--accent); box-shadow: var(--halo-barre); }
.graphique-barres .colonne.empilee { flex-direction: column-reverse; justify-content: flex-start; }
.graphique-barres .colonne.empilee > i { position: static; flex: none; border-radius: 0; background: var(--c); }
.graphique-barres .axe-x { grid-column: 2; display: flex; gap: var(--e-s); font: var(--f-axe); color: var(--tertiaire); }
.graphique-barres .axe-x span { flex: 1; min-width: 0; display: flex; justify-content: center; white-space: nowrap; }
.notes-cout { display: flex; flex-direction: column; gap: var(--e-xs); }
.texte-cout { font: var(--f-petit); color: var(--texte); font-variant-numeric: tabular-nums; }
.note-cout { font: var(--f-mini); color: var(--secondaire); }
.erreur-journal { user-select: text; }

/* SAV */
.outils-sav { display: flex; align-items: center; gap: var(--e-m); }
.outils-sav .lu { font: var(--f-petit); color: var(--secondaire); }
.rangee.haut { align-items: start; }
.colonne-sav { display: flex; flex-direction: column; gap: var(--e-xl); min-width: 0; }
.fils-sav { display: flex; flex-direction: column; gap: var(--e-xs); }
.fil-sav {
  display: flex;
  flex-direction: column;
  gap: var(--e-s);
  padding: var(--e-m) var(--e-l);
  border-radius: var(--r-ligne);
  text-align: left;
  transition: background-color var(--duree-survol) var(--ressort-survol);
}
.fil-sav:hover { background: var(--blanc-survol); }
.fil-sav.choisi { background: var(--blanc-selection); }
.fil-sav .haut, .fil-sav .bas { display: flex; align-items: center; gap: var(--e-m); min-width: 0; }
.fil-sav .bas { align-items: flex-start; }
.fil-sav .nom { flex: 1; min-width: 0; font: var(--f-ligne); color: var(--texte); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fil-sav .quand { font: var(--f-mini); color: var(--tertiaire); white-space: nowrap; }
.fil-sav .apercu {
  flex: 1;
  min-width: 0;
  font: var(--f-petit);
  color: var(--secondaire);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.entete-conv { display: flex; flex-direction: column; gap: var(--e-xs); }
.entete-conv .ident { font: var(--f-mini); color: var(--tertiaire); user-select: text; }
.conv-vide { display: flex; align-items: center; justify-content: center; min-height: var(--t-conversation); }
.bulles { display: flex; flex-direction: column; gap: var(--e-m); height: var(--t-conversation); overflow-y: auto; }
.bulle-sav { display: flex; flex-direction: column; align-items: flex-start; gap: var(--e-xs); max-width: 80%; }
.bulle-sav.equipe { align-self: flex-end; align-items: flex-end; }
.bulle-sav .texte {
  padding: var(--e-m) var(--e-l);
  border-radius: var(--r-bloc);
  background: var(--blanc-pilule);
  font: var(--f-corps);
  color: var(--texte);
  white-space: pre-wrap;
  user-select: text;
}
.bulle-sav.equipe .texte { background: var(--blanc-selection); }
.bulle-sav .quand { font: var(--f-mini); color: var(--tertiaire); }
.zone-reponse { display: flex; flex-direction: column; gap: var(--e-m); }
.reponse-sav {
  height: var(--t-reponse);
  padding: var(--e-m) var(--e-l);
  border-radius: var(--r-ligne);
  border: none;
  background: var(--blanc-pilule);
  font: var(--f-corps);
  color: var(--texte);
  resize: none;
  outline: none;
}
.reponse-sav::placeholder { color: var(--tertiaire); }
.pied-reponse, .pied-ajout, .carte-retour .pied, .carte-retour .haut, .source-lue { display: flex; align-items: center; gap: var(--e-m); min-width: 0; }
.pied-reponse .espace, .pied-ajout .espace, .carte-retour .espace, .source-lue .espace { flex: 1; }
.compteur-sav, .pour-sav { font: var(--f-mini); color: var(--secondaire); white-space: nowrap; }
.compteur-sav.trop, .resultat-sav.erreur, .erreur-sav { color: var(--danger); }
.resultat-sav, .erreur-sav { font: var(--f-mini); color: var(--secondaire); min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pied-reponse .pilule:disabled, .carte-retour .pilule:disabled { opacity: var(--inactif); cursor: default; }
.bouton-principal {
  padding: var(--e-s) var(--e-xxl);
  border-radius: var(--r-capsule);
  background: color-mix(in srgb, var(--accent) 14%, transparent);
  font: var(--f-corps-gras);
  color: var(--accent);
  white-space: nowrap;
  transition: background-color var(--duree-survol) var(--ressort-survol), transform var(--duree-survol) var(--ressort-survol);
}
.bouton-principal:hover:not(:disabled) { background: color-mix(in srgb, var(--accent) 22%, transparent); }
.bouton-principal:active:not(:disabled) { transform: scale(var(--appui)); }
.bouton-principal:disabled { opacity: var(--inactif); cursor: default; }
.retours { display: flex; flex-direction: column; gap: var(--e-m); }
.carte-retour { display: flex; flex-direction: column; gap: var(--e-m); padding: var(--e-xl); border-radius: var(--r-bloc); background: var(--blanc-ligne); }
.carte-retour .quand { font: var(--f-mini); color: var(--tertiaire); white-space: nowrap; }
.carte-retour .citation { font: var(--f-citation); color: var(--secondaire); user-select: text; }
.carte-retour .message { font: var(--f-corps); color: var(--texte); white-space: pre-wrap; user-select: text; }
.carte-retour .detail { min-width: 0; font: var(--f-mini); color: var(--tertiaire); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.voir-tout { align-self: flex-start; padding: var(--e-s) 0; font: var(--f-petit); color: var(--accent); }
.tache .fleche:hover { color: var(--texte); }
.note-sav { font: var(--f-petit); color: var(--secondaire); }
.source-lue .nom { font: var(--f-ligne); color: var(--texte); }
.source-lue .lu { font: var(--f-petit); color: var(--secondaire); }
.echeance-sav { display: flex; align-items: center; gap: var(--e-l); min-height: var(--t-bouton); }
.echeance-sav label { display: inline-flex; align-items: center; gap: var(--e-s); font: var(--f-petit); color: var(--secondaire); cursor: pointer; }
.date-sav { padding: var(--e-s) var(--e-m); border-radius: var(--r-ligne); border: var(--filet) solid var(--blanc-bord); background: var(--blanc-bloc); font: var(--f-petit); color: var(--texte); color-scheme: dark; }
.deplier { display: inline-flex; align-items: center; gap: var(--e-s); color: var(--secondaire); }
.deplier .chevron { font: var(--f-symbole); transform: rotate(-90deg); transition: transform var(--duree-survol) var(--ressort-survol); }
.deplier.ouvert .chevron { transform: none; }
.zone-reponse[hidden], .pied-reponse .pilule[hidden], .date-sav[hidden] { display: none; }
.rien-sav { display: flex; flex-direction: column; gap: var(--e-m); }

/* Apps de potes */
.choix-apps { display: flex; gap: var(--e-m); }
.table-apps { display: flex; flex-direction: column; gap: var(--e-xs); --colonnes-apps: var(--t-avatar) minmax(0, 1fr) repeat(var(--pays), var(--t-colonne-pays)); }
.rang-tete, .ligne-app { display: grid; grid-template-columns: var(--colonnes-apps); align-items: center; column-gap: var(--e-l); padding: 0 var(--e-l); }
.rang-tete { padding-bottom: var(--e-s); font: var(--f-mini-gras); color: var(--secondaire); text-align: right; }
.rang-tete .nom-colonne { grid-column: 1 / 3; text-align: left; }
.rang-tete span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ligne-app { padding-block: var(--e-m); border-radius: var(--r-ligne); text-align: left; transition: transform var(--duree-survol) var(--ressort-survol); }
.ligne-app.paire { background: var(--blanc-ligne); }
.ligne-app.choisie { background: var(--blanc-actif); }
.ligne-app:active { transform: scale(var(--appui-carte)); }
.icone-app { width: var(--t-avatar); height: var(--t-avatar); border-radius: var(--r-avatar); overflow: hidden; background: var(--blanc-ligne); box-shadow: inset 0 0 0 var(--filet) var(--blanc-bord-fort); }
.icone-app img { width: 100%; height: 100%; object-fit: cover; }
.nom-app { display: flex; flex-direction: column; gap: var(--e-xs); min-width: 0; }
.nom-app .haut { display: flex; align-items: center; gap: var(--e-m); min-width: 0; }
.nom-app .nom { font: var(--f-ligne); color: var(--texte); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nom-app .pastille { font: var(--f-tag); }
.nom-app .infos { font: var(--f-mini); color: var(--secondaire); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rang-app { display: flex; flex-direction: column; align-items: flex-end; font-variant-numeric: tabular-nums; }
.rang-app .place { font: var(--f-corps-gras); color: var(--texte); }
.rang-app .gain { font: var(--f-mini); }
.rang-app.absent { font: var(--f-petit); color: var(--secondaire); }
.ajout-app { display: flex; flex-direction: column; gap: var(--e-m); padding-top: var(--e-s); }
.rangee-ajout { display: flex; gap: var(--e-m); }
.champ-app { flex: 1; display: flex; align-items: center; height: var(--t-bouton); padding: 0 var(--e-xxl); box-shadow: none; }
.champ-app input { flex: 1; min-width: 0; border: 0; outline: none; background: none; font: var(--f-ligne); color: var(--texte); }
.champ-app input::placeholder { color: var(--tertiaire); }
.suivre-app { display: flex; align-items: center; gap: var(--e-s); height: var(--t-bouton); padding: 0 var(--e-xxl); font: var(--f-label); color: var(--accent); box-shadow: none; }
.suivre-app .plus { font: var(--f-icone); }
.suivre-app:disabled { color: var(--secondaire); cursor: default; }
.retour-app { font: var(--f-petit); color: var(--secondaire); user-select: text; }
.retour-app.erreur { color: var(--ambre); }
.retour-app[hidden] { display: none; }
.legende-courbe { font: var(--f-petit); color: var(--secondaire); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.courbe-vide { height: var(--t-graphique); display: flex; flex-direction: column; justify-content: center; }
.courbe-rang { display: grid; grid-template-columns: var(--t-axe-y) minmax(0, 1fr); grid-template-rows: var(--t-graphique) auto; column-gap: var(--e-m); row-gap: var(--e-s); }
.courbe-rang .axe-y { position: relative; font: var(--f-axe); color: var(--tertiaire); }
.courbe-rang .axe-y span { position: absolute; right: 0; translate: 0 -50%; white-space: nowrap; }
.courbe-rang .trace { position: relative; }
.courbe-rang .repere { position: absolute; left: 0; right: 0; height: var(--filet); background: var(--blanc-grille); }
.courbe-rang .dessin { position: absolute; inset: 0 var(--e-panneau); }
.courbe-rang svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.courbe-rang polyline { fill: none; stroke: var(--accent); stroke-width: var(--trait); vector-effect: non-scaling-stroke; stroke-linejoin: round; stroke-linecap: round; }
.point-rang { position: absolute; width: var(--t-point); height: var(--t-point); margin: calc(var(--t-point) / -2) 0 0 calc(var(--t-point) / -2); border-radius: 50%; background: var(--accent); }
.courbe-rang .axe-x { grid-column: 2; position: relative; height: 1lh; margin: 0 var(--e-panneau); font: var(--f-axe); color: var(--tertiaire); }
.courbe-rang .axe-x span { position: absolute; translate: -50% 0; white-space: nowrap; }
.genre-app { font: var(--f-mini); color: var(--secondaire); white-space: nowrap; }
.grille-classements { display: grid; grid-template-columns: auto repeat(3, auto); justify-content: start; column-gap: var(--e-l); row-gap: var(--e-m); align-items: center; }
.grille-classements .tete { font: var(--f-mini-gras); color: var(--secondaire); text-align: right; }
.grille-classements .pays { font: var(--f-petit); color: var(--texte); white-space: nowrap; }
.retirer-app { align-self: flex-start; margin-top: auto; height: var(--t-segment); padding: 0 var(--e-xl); font: var(--f-label); color: var(--secondaire); box-shadow: none; }

/* Vidéos et Veille */
.menu button.danger { color: var(--danger); }
.popover {
  --rayon: var(--r-bloc);
  position: fixed;
  z-index: 30;
  padding: var(--e-panneau);
  background: var(--reflet), var(--releve);
}
.formulaire-ajout { display: flex; flex-direction: column; gap: var(--e-l); }
.formulaire-ajout .champs { display: flex; gap: var(--e-m); }
.champ-ajout {
  width: var(--t-champ);
  height: var(--t-bouton);
  padding: 0 var(--e-xl);
  border: 0;
  border-radius: var(--r-ligne);
  outline: none;
  background: var(--blanc-pilule);
  font: var(--f-corps);
  color: var(--texte);
}
.champ-ajout.seuil { width: var(--t-champ-seuil); }
.champ-ajout::placeholder { color: var(--tertiaire); }
.choix-ajout { align-self: flex-start; font: var(--f-corps); color: var(--texte); }
.formulaire-ajout .pied { display: flex; align-items: center; justify-content: space-between; gap: var(--e-xl); }
.formulaire-ajout .pied .note { font: var(--f-mini); color: var(--secondaire); }
.bouton-ajout {
  --c: var(--accent);
  padding: var(--e-s) var(--e-xxl);
  border-radius: var(--r-capsule);
  background: color-mix(in srgb, var(--c) 14%, transparent);
  font: var(--f-corps-gras);
  color: var(--accent);
}
.bouton-ajout:disabled { opacity: .5; cursor: default; }

/* comptes suivis */
.rangee-comptes { display: flex; gap: var(--e-xl); overflow-x: auto; scrollbar-width: none; }
.rangee-comptes::-webkit-scrollbar { display: none; }
.carte-compte {
  --rayon: var(--r-carte);
  flex: none;
  width: var(--t-carte-compte);
  display: flex;
  flex-direction: column;
  gap: var(--e-l);
  padding: var(--e-xl) var(--e-xxl);
  text-align: left;
}
.carte-compte.choisie { outline: var(--contour-choisi) solid var(--accent); }
.carte-compte.en-pause { opacity: .6; }
.carte-compte .haut, .carte-compte .bas { display: flex; align-items: center; gap: var(--e-m); }
.carte-compte .bas { align-items: flex-end; justify-content: space-between; }
.carte-compte .nom { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.carte-compte .handle { font: var(--f-label); color: var(--texte); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.carte-compte .note, .detail-video .note { font: var(--f-mini); color: var(--secondaire); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.carte-compte img.logo, .detail-veille .compte img.logo { width: var(--t-logo-mini); height: var(--t-logo-mini); }
.carte-compte .abonnes { display: flex; flex-direction: column; min-width: 0; }
.carte-compte .tendance { display: flex; flex-direction: column; align-items: flex-end; gap: var(--e-s); }
.grand { font: var(--f-grand); color: var(--texte); font-variant-numeric: tabular-nums; }
.carte-ajout {
  --rayon: var(--r-carte);
  flex: none;
  width: var(--t-ajout-compte);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--e-s);
  font: var(--f-mini-gras);
  color: var(--secondaire);
}
.carte-ajout:hover { color: var(--texte); }
.carte-ajout .plus { font: var(--f-symbole-grand); }

/* panneau des vidéos */
.panneau-videos { --rayon: var(--r-panneau); display: flex; flex-direction: column; min-width: 0; padding: var(--e-xxl) 0 var(--e-l); }
.panneau-videos .marge { padding: 0 var(--e-panneau); margin-bottom: var(--e-l); }
.panneau-videos .marge.filtres { display: flex; align-items: center; gap: var(--e-m); margin-bottom: var(--e-m); }
.panneau-videos .espace { flex: 1; }
.panneau-videos .defile { flex: 1; min-height: 0; overflow: auto; scrollbar-width: none; }
.panneau-videos .defile::-webkit-scrollbar { display: none; }
.panneau-videos > .vide { padding: 0 var(--e-panneau); }
.grille-videos {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(var(--t-case), 100%), 1fr));
  gap: var(--e-xl) var(--e-l);
  padding: var(--e-s) var(--e-panneau);
}
.case-video { display: flex; flex-direction: column; gap: var(--e-s); min-width: 0; text-align: left; }
.case-video .affiche {
  position: relative;
  display: block;
  aspect-ratio: 9 / 16;
  overflow: hidden;
  border-radius: var(--r-ligne);
  border: var(--filet) solid var(--blanc-grille);
}
.case-video.choisie .affiche { border: var(--contour-choisi) solid var(--accent); }
.case-video .affiche .miniature { position: absolute; inset: 0; }
.case-video .voile-bas { position: absolute; inset: 0; background: linear-gradient(transparent 50%, var(--voile)); }
.case-video .vues {
  position: absolute;
  left: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  gap: var(--e-s);
  padding: var(--e-m);
  font: var(--f-mini-gras);
  color: var(--texte);
  font-variant-numeric: tabular-nums;
}
.case-video .lecture { font: var(--f-coche); }
.case-video .logo-coin {
  position: absolute;
  right: var(--e-m);
  bottom: var(--e-m);
  display: flex;
  padding: var(--e-s);
  border-radius: 50%;
  background: var(--voile);
}
.case-video .logo-coin img.logo { width: var(--t-logo-mini); height: var(--t-logo-mini); }
.case-video .badge { position: absolute; top: var(--e-s); left: var(--e-s); background: var(--voile); font: var(--f-tag); }
.case-video .legende {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: var(--lignes);
  line-clamp: var(--lignes);
  overflow: hidden;
  height: calc(var(--lignes) * 1.3em);
  font: var(--f-mini);
  color: var(--secondaire);
}
.case-video.choisie .legende { color: var(--texte); }
.panneau-videos .table-videos { padding: 0 var(--e-panneau); }
.panneau-videos .table-videos .lignes { display: flex; flex-direction: column; }
.panneau-videos .table-videos .rang { column-gap: var(--e-l); padding: 0 var(--e-l); }
.panneau-videos .table-videos .lignes .rang:nth-child(odd) { background: var(--blanc-ligne); }
.panneau-videos .table-videos .lignes .rang:nth-child(even) { background: none; }
.panneau-videos .table-videos .lignes .rang:hover { background: var(--blanc-survol); }
.panneau-videos .table-videos .lignes .rang.choisie { background: var(--blanc-actif); }
.panneau-videos .table-videos .rang:not(.tete) .vues { font: var(--f-corps-gras); color: var(--texte); }
.panneau-videos .table-videos .gain.positif { color: var(--succes); }

/* détail d'une vidéo */
.detail-video { display: flex; flex-direction: column; gap: var(--e-xl); }
.detail-video .entete-detail { display: flex; flex-direction: column; gap: var(--e-s); }
.detail-video .ligne-titre { display: flex; align-items: flex-start; gap: var(--e-m); }
.detail-video .titre-video {
  flex: 1;
  min-width: 0;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  overflow: hidden;
  min-height: 2.8em;
  font: var(--f-corps-gras);
  color: var(--texte);
}
.lien-detail {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: var(--e-s);
  height: var(--t-segment);
  padding: 0 var(--e-xl);
  font: var(--f-label);
  color: var(--texte);
}
.lien-detail:disabled { color: var(--secondaire); cursor: default; }
.fleche-lien { font: var(--f-fleche); }
.detail-video .meta { font: var(--f-petit); color: var(--secondaire); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.detail-video .ligne-vues { display: flex; align-items: center; gap: var(--e-l); }
.detail-video .vues { display: flex; align-items: baseline; gap: var(--e-s); }
.titre-section { font: var(--f-mini-gras); color: var(--secondaire); }
.section-detail { display: flex; flex-direction: column; gap: var(--e-m); min-width: 0; }
.percee { display: flex; flex-direction: column; gap: var(--e-s); padding: var(--e-l) var(--e-xl); border-radius: var(--r-ligne); }
.percee .valeur { font: var(--f-corps-gras); }
.percee .explication { font: var(--f-petit); color: var(--secondaire); }
.compteurs { display: grid; grid-template-columns: repeat(auto-fill, minmax(var(--t-compteur), 1fr)); gap: var(--e-m); }
.case-compteur { display: flex; flex-direction: column; gap: var(--e-xs); min-width: 0; padding: var(--e-m) var(--e-l); border-radius: var(--r-ligne); background: var(--blanc-ligne); }
.case-compteur.levier { box-shadow: inset 0 0 0 var(--contour-choisi) var(--c); }
.case-compteur .libelle { font: var(--f-mini); color: var(--secondaire); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.case-compteur .valeur { font: var(--f-ligne); font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.note-privee { font: var(--f-mini); color: var(--secondaire); min-height: 2.6em; }
.cadre-graphique { position: relative; height: var(--t-graphique); }
.sept-jours .barres .valeur { background: var(--accent); }
.rangee-parts { display: flex; gap: var(--e-xl); }
.rangee-parts > * { flex: 1; }
.lignes-parts { position: relative; display: flex; flex-direction: column; gap: var(--e-s); }
.lignes-parts > .absent { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font: var(--f-mini); color: var(--tertiaire); }
.ligne-part { display: flex; align-items: center; gap: var(--e-m); font: var(--f-mini); color: var(--secondaire); }
.ligne-part.absente { visibility: hidden; }
.ligne-part .nom { width: var(--t-nom-part); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ligne-part .piste { flex: 1; height: var(--t-barre-part); border-radius: var(--r-capsule); background: var(--blanc-pilule); overflow: hidden; }
.ligne-part .piste i { display: block; height: 100%; border-radius: inherit; background: var(--accent); }
.ligne-part .valeur { width: var(--t-valeur-part); text-align: right; font-variant-numeric: tabular-nums; }
.sans-fiche { font: var(--f-petit); color: var(--secondaire); }

/* veille */
/* curseur des vidéos par mot-clé */
.curseur { display: inline-flex; align-items: center; gap: var(--e-m); font: var(--f-mini-gras); color: var(--secondaire); white-space: nowrap; }
.curseur .valeur { min-width: 3ch; text-align: right; font-variant-numeric: tabular-nums; color: var(--texte); }
.curseur input {
  appearance: none;
  -webkit-appearance: none;
  width: var(--t-curseur);
  height: var(--t-jauge);
  margin: 0;
  border-radius: var(--r-capsule);
  background: linear-gradient(to right, var(--secondaire) var(--rempli), var(--blanc-pilule) var(--rempli));
  cursor: pointer;
}
.curseur input::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: var(--t-poignee);
  height: var(--t-poignee);
  border-radius: 50%;
  background: var(--texte);
  box-shadow: var(--halo-actif);
  transition: transform var(--duree-survol) var(--ressort-survol);
}
.curseur input:active::-webkit-slider-thumb { transform: scale(var(--appui)); }

.passage { display: inline-flex; align-items: center; gap: var(--e-m); font: var(--f-label); color: var(--secondaire); }
/* bank : la grille, ses filtres à droite */
.veille-bank { display: grid; grid-template-columns: minmax(0, 1fr) var(--t-filtres); gap: var(--e-xl); }
.compteur-bank { font: var(--f-label); color: var(--secondaire); font-variant-numeric: tabular-nums; white-space: nowrap; }
.compteur-bank .total { font: var(--f-h2); color: var(--texte); }
.compteur-bank .sur { color: var(--tertiaire); }
.panneau-videos .marge.jetons { display: flex; flex-wrap: wrap; align-items: center; gap: var(--e-s); margin-bottom: var(--e-m); }
.jeton-filtre {
  display: inline-flex;
  align-items: center;
  gap: var(--e-s);
  max-width: 100%;
  padding: var(--e-s) var(--e-m) var(--e-s) var(--e-l);
  border-radius: var(--r-capsule);
  background: var(--blanc-selection);
  font: var(--f-mini-gras);
  color: var(--texte);
  transition: background-color var(--duree-survol) var(--ressort-survol), transform var(--duree-survol) var(--ressort-survol);
}
.jeton-filtre:hover { background: var(--blanc-actif); }
.jeton-filtre:active { transform: scale(var(--appui)); }
.jeton-filtre .icone { width: var(--e-xl); height: var(--e-xl); color: var(--secondaire); }
.lien-filtre { padding: var(--e-xs) var(--e-s); font: var(--f-mini-gras); color: var(--tertiaire); transition: color var(--duree-survol); }
.lien-filtre:hover { color: var(--texte); }
.sentinelle { height: var(--filet); }
.app-case {
  align-self: flex-start;
  max-width: 100%;
  padding: var(--e-pastille-v) var(--e-pastille-h);
  border-radius: var(--r-capsule);
  background: color-mix(in srgb, var(--violet) 18%, transparent);
  font: var(--f-tag);
  color: var(--violet);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.panneau-filtres { --rayon: var(--r-panneau); display: flex; flex-direction: column; min-width: 0; min-height: 0; padding: var(--e-xxl) 0 0; }
.recherche-bank {
  display: flex;
  align-items: center;
  gap: var(--e-m);
  height: var(--t-bouton);
  margin: 0 var(--e-xxl) var(--e-xl);
  padding: 0 var(--e-l);
  border: var(--filet) solid var(--blanc-bord);
  border-radius: var(--r-bouton);
  background: var(--blanc-bloc);
  color: var(--tertiaire);
  transition: border-color var(--duree-survol), color var(--duree-survol);
}
.recherche-bank:focus-within { border-color: var(--blanc-bord-fort); color: var(--secondaire); }
.champ-recherche { flex: 1; min-width: 0; border: 0; outline: none; background: none; font: var(--f-corps); color: var(--texte); }
.champ-recherche::placeholder { color: var(--tertiaire); }
.champ-recherche::-webkit-search-cancel-button { -webkit-appearance: none; appearance: none; }
.recherche-bank .vider { display: flex; color: var(--secondaire); }
.recherche-bank .vider:hover { color: var(--texte); }
.recherche-bank .vider .icone { width: var(--e-xl); height: var(--e-xl); }
.panneau-filtres .defile {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: var(--e-panneau);
  padding: var(--e-s) var(--e-xxl) var(--e-panneau);
  overflow: auto;
  scrollbar-width: none;
}
.panneau-filtres .defile::-webkit-scrollbar { display: none; }
.facette { display: flex; flex-direction: column; align-items: flex-start; gap: var(--e-m); }
.tete-facette { align-self: stretch; display: flex; align-items: center; justify-content: space-between; min-height: var(--t-ligne-facette); }
.options { display: flex; flex-wrap: wrap; gap: var(--e-s); }
.option {
  display: inline-flex;
  align-items: baseline;
  gap: var(--e-s);
  max-width: 100%;
  padding: var(--e-s) var(--e-m);
  border-radius: var(--r-ligne);
  background: var(--blanc-pilule);
  font: var(--f-mini-gras);
  color: var(--secondaire);
  transition: background-color var(--duree-survol) var(--ressort-survol), color var(--duree-survol), transform var(--duree-survol) var(--ressort-survol);
}
.option .libelle { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.option .n { font: var(--f-tag); color: var(--tertiaire); font-variant-numeric: tabular-nums; }
.option:not(:disabled):hover { background: var(--blanc-actif); color: var(--texte); }
.option:not(:disabled):active { transform: scale(var(--appui)); }
.option.choisie, .option.choisie:not(:disabled):hover { background: var(--texte); color: var(--fond); }
.option.choisie .n { color: color-mix(in srgb, var(--fond) 60%, transparent); }
.option:disabled { opacity: .35; cursor: default; }

/* popover des mots-clés */
.popover-mots { display: flex; flex-direction: column; gap: var(--e-xl); width: var(--t-popover-mots); }
.titre-popover { font: var(--f-h2); color: var(--texte); }
.popover-mots > .note { font: var(--f-mini); color: var(--secondaire); }
.liste-mots { display: flex; flex-direction: column; max-height: var(--t-liste-mots); overflow: auto; scrollbar-width: none; }
.liste-mots::-webkit-scrollbar { display: none; }
.ligne-mot { display: flex; align-items: center; gap: var(--e-s); }
.ligne-mot + .ligne-mot { border-top: var(--filet) solid var(--blanc-grille); }
.ligne-mot .mot { flex: 1; min-width: 0; padding: var(--e-m) 0; text-align: left; font: var(--f-label); color: var(--texte); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ligne-mot .mot:hover { text-decoration: underline; }
.ligne-mot.en-pause .mot { color: var(--tertiaire); }
.ligne-mot .n { margin-right: var(--e-s); font: var(--f-mini-gras); color: var(--secondaire); font-variant-numeric: tabular-nums; }
.action-mot { display: flex; padding: var(--e-s); border-radius: var(--r-avatar); color: var(--secondaire); transition: background-color var(--duree-survol), color var(--duree-survol); }
.action-mot:hover { background: var(--blanc-actif); color: var(--texte); }
.action-mot.danger:hover { color: var(--danger); }
.action-mot .icone { width: var(--e-xxl); height: var(--e-xxl); }
.popover-mots .champ-ajout:not(.seuil) { flex: 1; width: auto; min-width: 0; }
.popover-mots .curseur input { flex: 1; width: auto; }
.nombre-pilule { font: var(--f-tag); color: var(--secondaire); font-variant-numeric: tabular-nums; }

/* conversation avec Claude */
.veille-chat { display: grid; grid-template-columns: var(--t-fils) minmax(0, 1fr); gap: var(--e-xl); }
.panneau-fils { --rayon: var(--r-panneau); display: flex; flex-direction: column; gap: var(--e-m); min-height: 0; padding: var(--e-l); }
.nouveau-fil {
  display: flex;
  align-items: center;
  gap: var(--e-m);
  height: var(--t-bouton);
  padding: 0 var(--e-l);
  border-radius: var(--r-bouton);
  background: var(--blanc-pilule);
  font: var(--f-label);
  color: var(--texte);
  transition: background-color var(--duree-survol), transform var(--duree-survol) var(--ressort-survol);
}
.nouveau-fil:hover { background: var(--blanc-actif); }
.nouveau-fil:active { transform: scale(var(--appui)); }
.nouveau-fil.choisi { background: var(--blanc-selection); }
.panneau-fils .defile { flex: 1; min-height: 0; display: flex; flex-direction: column; gap: var(--e-xs); overflow: auto; scrollbar-width: none; }
.panneau-fils .defile::-webkit-scrollbar { display: none; }
.panneau-fils .attente { padding: var(--e-m) var(--e-l); }
.fil { display: flex; flex-direction: column; gap: var(--e-xs); padding: var(--e-m) var(--e-l); border-radius: var(--r-ligne); text-align: left; transition: background-color var(--duree-survol); }
.fil:hover { background: var(--blanc-survol); }
.fil.choisi { background: var(--blanc-actif); }
.fil .titre { font: var(--f-label); color: var(--texte); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fil .meta { display: flex; align-items: center; gap: var(--e-s); font: var(--f-mini); color: var(--tertiaire); white-space: nowrap; overflow: hidden; }
.panneau-chat { --rayon: var(--r-panneau); display: flex; flex-direction: column; min-width: 0; min-height: 0; }
.fil-chat { flex: 1; min-height: 0; display: flex; flex-direction: column; overflow: auto; scrollbar-width: none; }
.fil-chat::-webkit-scrollbar { display: none; }
.fil-chat > * { align-self: center; width: 100%; }
.messages { display: flex; flex-direction: column; gap: var(--e-page); max-width: var(--t-chat); padding: var(--e-page) var(--e-panneau); }
.echange { display: flex; flex-direction: column; gap: var(--e-xxl); }
.bulle-moi {
  align-self: flex-end;
  max-width: var(--t-bulle-moi);
  padding: var(--e-l) var(--e-xxl);
  border-radius: var(--r-carte) var(--r-carte) var(--r-barre) var(--r-carte);
  background: var(--blanc-selection);
  font: var(--f-corps);
  color: var(--texte);
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  user-select: text;
}
.reponse { display: flex; flex-direction: column; gap: var(--e-l); }
.reponse > :not(.auteur) { margin-left: var(--retrait-reponse); }
.auteur { display: flex; align-items: center; gap: var(--e-m); font: var(--f-label); color: var(--texte); }
.auteur .meta { font: var(--f-mini); color: var(--tertiaire); }
.avatar-claude {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  width: var(--t-avatar-claude);
  height: var(--t-avatar-claude);
  border-radius: 50%;
  background: color-mix(in srgb, var(--orange) 20%, transparent);
  color: var(--orange);
}
.avatar-claude .icone { width: 60%; height: 60%; }
.avatar-claude.grand { width: var(--t-avatar-claude-grand); height: var(--t-avatar-claude-grand); }
.deroule { display: flex; flex-direction: column; align-items: flex-start; gap: var(--e-s); }
.bascule-deroule { display: inline-flex; align-items: center; gap: var(--e-s); font: var(--f-mini-gras); color: var(--tertiaire); transition: color var(--duree-survol); }
.bascule-deroule:hover { color: var(--secondaire); }
.bascule-deroule .icone { width: var(--e-xl); height: var(--e-xl); transition: transform var(--duree-survol) var(--ressort-survol); }
.bascule-deroule.ouvert .icone { transform: rotate(90deg); }
.liste-deroule { display: flex; flex-direction: column; gap: var(--e-s); margin-left: var(--e-s); padding: var(--e-xs) 0 var(--e-xs) var(--e-l); border-left: var(--filet) solid var(--blanc-grille); }
.pas-deroule { display: flex; align-items: flex-start; gap: var(--e-m); font: var(--f-mini); color: var(--secondaire); user-select: text; }
.pas-deroule .icone { width: var(--e-xl); height: var(--e-xl); margin-top: var(--e-xs); color: var(--tertiaire); }
.pas-deroule.retenue .icone { color: var(--succes); }
.pas-deroule.echec .icone { color: var(--danger); }
.pas-deroule.courante { font: var(--f-label); color: var(--texte); }
.pas-deroule.courante .icone { color: var(--orange); }
.reponse .synthese { font: var(--f-corps); color: var(--texte); white-space: pre-line; user-select: text; }
.retenues { display: flex; flex-direction: column; gap: var(--e-m); }
.retenues .grille-videos { padding: 0; }
.reponse .erreur { font: var(--f-petit); color: var(--danger); user-select: text; }
.reponse .relance { align-self: flex-start; }
.accueil-chat { flex: 1 0 auto; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: var(--e-xl); max-width: var(--t-chat-accueil); padding: var(--e-page); text-align: center; }
.accueil-chat .note { font: var(--f-petit); color: var(--secondaire); }
.exemples { align-self: stretch; display: flex; flex-direction: column; gap: var(--e-m); margin-top: var(--e-l); }
.exemple {
  --rayon: var(--r-bloc);
  padding: var(--e-l) var(--e-xxl);
  border: var(--filet) solid var(--blanc-bord);
  border-radius: var(--r-bloc);
  background: var(--blanc-bloc);
  font: var(--f-petit);
  color: var(--secondaire);
  text-align: left;
}
.exemple:hover { background: var(--blanc-survol); color: var(--texte); }
.barre-saisie { display: flex; justify-content: center; padding: 0 var(--e-panneau) var(--e-panneau); }
.cadre-saisie {
  display: flex;
  flex-direction: column;
  gap: var(--e-m);
  width: 100%;
  max-width: calc(var(--t-chat) - 2 * var(--e-panneau));
  padding: var(--e-l) var(--e-l) var(--e-m) var(--e-xxl);
  border: var(--filet) solid var(--blanc-bord);
  border-radius: var(--r-carte);
  background: var(--blanc-bloc);
  transition: border-color var(--duree-survol);
}
.cadre-saisie:focus-within { border-color: var(--blanc-bord-fort); }
.saisie-chat { width: 100%; max-height: var(--t-saisie-max); padding: var(--e-s) 0; border: 0; outline: none; resize: none; background: none; font: var(--f-corps); color: var(--texte); }
.saisie-chat::placeholder { color: var(--tertiaire); }
.pied-saisie { display: flex; align-items: center; gap: var(--e-m); }
.pied-saisie .note { flex: 1; min-width: 0; font: var(--f-mini); color: var(--tertiaire); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.envoyer {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  width: var(--t-segment);
  height: var(--t-segment);
  border-radius: 50%;
  background: var(--texte);
  color: var(--fond);
  transition: transform var(--duree-survol) var(--ressort-survol), opacity var(--duree-fondu);
}
.envoyer:not(:disabled):hover { transform: scale(var(--survol-echelle)); }
.envoyer:not(:disabled):active { transform: scale(var(--appui)); }
.envoyer:disabled { opacity: .35; cursor: default; }
.voir-sur { font: var(--f-petit); color: var(--secondaire); }
.voir-sur:hover { color: var(--texte); }
.analyse { display: flex; flex-direction: column; gap: var(--e-l); }
.analyse .pastilles { display: flex; gap: var(--e-s); min-width: 0; }
.analyse .pastille { flex: none; }
.analyse .pastille:nth-child(3) { display: block; flex: 0 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.section-analyse { display: flex; flex-direction: column; gap: var(--e-xs); }
.section-analyse .texte { font: var(--f-petit); color: var(--secondaire); white-space: pre-line; user-select: text; }
.section-analyse .texte.fort { color: var(--texte); }
.attente { font: var(--f-mini); color: var(--tertiaire); }
.etiquettes { display: flex; flex-wrap: wrap; gap: var(--e-s); }
/* carte d'une vidéo au survol ; elle ne capte pas la souris, la case dessous reste survolée */
.carte-survol {
  --rayon: var(--r-carte);
  position: fixed;
  z-index: 35;
  pointer-events: none;
  width: var(--t-carte-survol);
  display: flex;
  flex-direction: column;
  gap: var(--e-xxl);
  padding: var(--e-xxl);
  background: var(--reflet), var(--releve);
}
.carte-survol .tete, .tete-fiche { display: flex; align-items: center; gap: var(--e-l); min-width: 0; }
.carte-survol .tete img.logo, .logo-fiche img.logo { width: var(--t-logo-grand); height: var(--t-logo-grand); }
.carte-survol .qui, .tete-fiche .qui { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: var(--e-xs); }
.carte-survol .compte, .tete-fiche .compte { font: var(--f-corps-gras); color: var(--texte); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.carte-survol .meta, .tete-fiche .meta { font: var(--f-mini); color: var(--secondaire); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.carte-survol .chiffres { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--e-m); }
.carte-survol .chiffre { display: flex; flex-direction: column; gap: var(--e-s); min-width: 0; white-space: nowrap; }
.carte-survol .chiffre .valeur { font: var(--f-h2); color: var(--texte); font-variant-numeric: tabular-nums; overflow: hidden; text-overflow: ellipsis; }
.carte-survol .filet { height: var(--filet); background: var(--blanc-grille); }
.carte-survol .indice { font: var(--f-mini); color: var(--tertiaire); }
.section-carte { display: flex; flex-direction: column; gap: var(--e-l); }
/* viralité : les vues sur la médiane du compte, en grand, colorée par son verdict (--c) */
.viralite { display: flex; flex-direction: column; align-items: flex-start; gap: var(--e-s); min-width: 0; }
.viralite .coef { display: flex; flex-wrap: wrap; align-items: baseline; column-gap: var(--e-m); }
.viralite .coef .valeur { font: var(--f-engagement); letter-spacing: var(--i-kpi); color: var(--c); font-variant-numeric: tabular-nums; }
.viralite .verdict { font: var(--f-corps-gras); color: var(--c); }
.viralite .detail { font: var(--f-mini); color: var(--secondaire); }
/* anatomie du script : une barre segmentée et sa légende */
.anatomie { display: flex; flex-direction: column; gap: var(--e-l); }
.barre-anatomie { display: flex; gap: var(--e-xs); height: var(--t-barre-anatomie); }
.barre-anatomie span { flex-basis: 0; border-radius: var(--r-capsule); background: var(--c); }
.legende-anatomie { display: flex; flex-wrap: wrap; gap: var(--e-s) var(--e-xl); }
.bloc-anatomie { display: flex; align-items: center; gap: var(--e-s); font: var(--f-mini); color: var(--secondaire); }
.bloc-anatomie .part { font: var(--f-mini-gras); color: var(--texte); font-variant-numeric: tabular-nums; }
.anatomie.detaillee .legende-anatomie { flex-direction: column; flex-wrap: nowrap; gap: var(--e-l); }
.anatomie.detaillee .bloc-anatomie { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; column-gap: var(--e-m); row-gap: var(--e-xs); }
.anatomie.detaillee .bloc-anatomie .nom { font: var(--f-mini-gras); color: var(--texte); }
.anatomie.detaillee .bloc-anatomie .texte { grid-column: 2 / -1; font: var(--f-petit); color: var(--secondaire); user-select: text; }
/* fiche d'une vidéo au clic : la vidéo à gauche, les onglets à droite */
.voile.fiche { align-items: center; padding: var(--e-page); }
/* la colonne vidéo garde le 9:16 de la hauteur, sans passer 42 % de la largeur */
.fenetre-fiche {
  --rayon: var(--r-panneau);
  --h-fiche: min(var(--t-fiche-h), 100vh - 2 * var(--e-page));
  width: min(var(--t-fiche-l), 100%);
  height: var(--h-fiche);
  display: grid;
  grid-template-columns: min(var(--h-fiche) * 9 / 16, var(--part-video-fiche)) minmax(0, 1fr);
  grid-template-rows: minmax(0, 1fr);
  overflow: hidden;
  background: var(--reflet), var(--releve);
}
.colonne-video {
  position: relative;
  min-width: 0;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--noir);
}
.colonne-video .miniature { position: absolute; inset: 0; }
.colonne-video .passage { position: relative; padding: var(--e-s) var(--e-l); border-radius: var(--r-capsule); background: var(--voile); color: var(--texte); }
.colonne-video video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; background: var(--noir); }
.colonne-infos { display: flex; flex-direction: column; gap: var(--e-xxl); min-width: 0; min-height: 0; padding: var(--e-panneau); }
.logo-fiche { flex: none; display: flex; padding: var(--e-m); border-radius: var(--r-ligne); background: var(--blanc-pilule); }
.tete-fiche .pastille { flex: 0 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fermer-fiche {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  width: var(--t-bouton);
  height: var(--t-bouton);
  border-radius: 50%;
  background: var(--blanc-pilule);
  color: var(--secondaire);
}
.fermer-fiche:hover { background: var(--blanc-actif); color: var(--texte); }
.onglets-fiche { display: flex; }
.corps-fiche { flex: 1; min-height: 0; display: flex; flex-direction: column; gap: var(--e-panneau); overflow-y: auto; scrollbar-width: none; }
.corps-fiche::-webkit-scrollbar { display: none; }
.corps-fiche .voir-sur { align-self: flex-start; }
.corps-fiche .analyse { gap: var(--e-xxl); }
.corps-fiche .section-analyse { gap: var(--e-s); }
.corps-fiche .section-analyse > .texte { font: var(--f-corps); }
.kpis-fiche { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--e-m); }
.kpis-fiche .viralite { gap: var(--e-m); padding: var(--e-xl); border-radius: var(--r-bloc); background: var(--blanc-pilule); }
.tuiles-fiche { display: grid; grid-template-columns: repeat(auto-fill, minmax(var(--t-tuile-fiche), 1fr)); gap: var(--e-m); }
.tuiles-fiche .tuile { display: flex; flex-direction: column; gap: var(--e-s); padding: var(--e-l) var(--e-xl); border-radius: var(--r-bloc); background: var(--blanc-pilule); }
.tuiles-fiche .valeur { font: var(--f-h2); color: var(--texte); font-variant-numeric: tabular-nums; white-space: nowrap; }
.similaires { display: flex; flex-direction: column; gap: var(--e-m); }
/* une rangée qui se partage la largeur, chaque vignette plafonnée */
.grille-similaires { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, var(--t-similaire)); gap: var(--e-m); }
.similaire { display: flex; flex-direction: column; gap: var(--e-xs); min-width: 0; text-align: left; }
.similaire .affiche { position: relative; display: block; aspect-ratio: 9 / 16; overflow: hidden; border-radius: var(--r-ligne); border: var(--filet) solid var(--blanc-grille); }
.similaire .miniature { position: absolute; inset: 0; }
.similaire .badge { position: absolute; top: var(--e-xs); left: var(--e-xs); background: var(--voile); font: var(--f-tag); }
.similaire .vues { font: var(--f-mini-gras); color: var(--secondaire); font-variant-numeric: tabular-nums; }
.legende-fiche { font: var(--f-corps); color: var(--texte); white-space: pre-line; user-select: text; }

/* ===== Accueil / Data ===== */

.grille-kpi.trois { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.espace { flex: 1; }
.pousse { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; min-height: 0; }
.accessoire-tag { font: var(--f-tag); color: var(--tertiaire); }
.accessoire-texte { font: var(--f-mini); color: var(--secondaire); }
.lien-secondaire { display: inline-flex; align-items: center; gap: var(--e-s); font: var(--f-petit); color: var(--secondaire); white-space: nowrap; }
.lien-secondaire:hover { color: var(--texte); }
.lien-secondaire .fleche-lien { font: var(--f-fleche); }
.bouton-panneau {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: var(--t-segment);
  height: var(--t-segment);
  flex: none;
  border-radius: var(--r-ligne);
  color: var(--secondaire);
}
.bouton-panneau:hover { background: var(--blanc-survol); color: var(--texte); }

/* l'écran : réseaux, page, plan */
.ecran.accueil { display: flex; gap: var(--e-xl); }
.ecran.accueil > .page { flex: 1; min-width: 0; }
.lateral { flex: none; display: flex; flex-direction: column; margin: var(--e-xl) 0 var(--e-page); min-height: 0; }
.lateral.rail { width: var(--t-rail); align-items: center; gap: var(--e-xl); padding: var(--e-xxl) 0; }
.marge-m { padding: 0 var(--e-m); }

/* réseaux */
.reseau-lateral.ouvert { width: var(--t-panneau-reseau); gap: var(--e-xl); padding: var(--e-xxl) var(--e-l); }
.rail-compte { display: flex; flex-direction: column; align-items: center; gap: var(--e-xs); }
.jauge-jour { display: flex; flex-direction: column; gap: var(--e-m); }
.jauge-tete { display: flex; align-items: baseline; justify-content: space-between; gap: var(--e-m); }
.jauge-texte { font: var(--f-label); font-variant-numeric: tabular-nums; color: var(--texte); }
.jauge-texte.tenue { color: var(--succes); }
.jauge-jour .jauge { height: var(--t-jauge); border-radius: var(--r-capsule); background: var(--blanc-fantome); overflow: hidden; }
.jauge-jour .jauge > i { display: block; height: 100%; border-radius: inherit; background: var(--accent); transition: width var(--duree-chiffre) var(--ressort-chiffre); }
.jauge-jour .jauge > i.tenue { background: var(--succes); }
.comptes { flex: 1; min-height: 0; display: flex; flex-direction: column; gap: var(--e-xs); overflow-y: auto; scrollbar-width: none; }
.comptes::-webkit-scrollbar { display: none; }
.ligne-compte { display: flex; align-items: center; gap: var(--e-l); padding: var(--e-m); border-radius: var(--r-ligne); text-align: left; }
.ligne-compte:hover { background: var(--blanc-survol); }
.ligne-compte.en-pause { opacity: var(--en-pause); }
.avatar-compte { position: relative; flex: none; display: inline-flex; }
.avatar-compte .badge-plateforme {
  position: absolute;
  right: calc(-1 * var(--e-s));
  bottom: calc(-1 * var(--e-s));
  display: inline-flex;
  padding: var(--e-xs);
  border-radius: 50%;
  background: var(--fond);
}
.avatar-compte .badge-plateforme img, .avatar-compte .badge-plateforme svg { width: var(--t-logo-mini); height: var(--t-logo-mini); }
.compte-texte { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.compte-texte .handle { font: var(--f-label); color: var(--texte); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.compte-texte .detail { font: var(--f-mini); color: var(--secondaire); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.compte-texte .detail.tenu { color: var(--succes); }
.compte-chiffres { display: flex; flex-direction: column; align-items: flex-end; font-variant-numeric: tabular-nums; }
.compte-chiffres .abonnes { font: var(--f-label); color: var(--texte); }
.compte-chiffres .gain { font: var(--f-mini); }

/* plan et « À traiter » */
.plan-lateral.ouvert { width: var(--t-panneau-plan); gap: var(--e-xl); }
.plan-lateral .plan { flex: 1; min-height: 0; }
.plan-date { font: var(--f-grand); color: var(--texte); }
.plan-sections { flex: 1; min-height: 0; display: flex; flex-direction: column; gap: var(--e-panneau); overflow-y: auto; scrollbar-width: none; }
.plan-sections::-webkit-scrollbar { display: none; }
.plan-section { display: flex; flex-direction: column; gap: var(--e-m); }
.plan-tete { display: flex; align-items: baseline; justify-content: space-between; gap: var(--e-m); }
.plan-compte { font: var(--f-tag); font-variant-numeric: tabular-nums; color: var(--tertiaire); }
.plan-ligne { display: flex; align-items: baseline; gap: var(--e-m); }
.plan-coche { flex: none; width: var(--t-icone); display: inline-flex; justify-content: center; }
.plan-coche .rond {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: var(--t-coche-plan);
  height: var(--t-coche-plan);
  border-radius: 50%;
  border: var(--trait-case) solid var(--tertiaire);
  font: var(--f-coche);
  color: var(--fond);
}
.plan-coche .rond.fait { border-color: var(--succes); background: var(--succes); }
.plan-coche .puce { width: var(--t-point-mini); height: var(--t-point-mini); border-radius: 50%; background: var(--tertiaire); }
.plan-texte { font: var(--f-petit); color: var(--texte); }
.plan-ligne.fait .plan-texte { color: var(--tertiaire); }
.rail-restantes { display: flex; flex-direction: column; align-items: center; gap: var(--e-xs); color: var(--secondaire); }
.rail-restantes span { font: var(--f-label); font-variant-numeric: tabular-nums; color: var(--texte); }
.panneau-taches { --rayon: var(--r-panneau); flex: none; display: flex; flex-direction: column; gap: var(--e-m); padding: var(--e-xxl) var(--e-l); }
/* sans plan (le web), les tâches tiennent toute la colonne */
.panneau-taches:only-child { flex: 1; min-height: 0; }
.panneau-taches .tache .texte { font: var(--f-petit); white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.fleche-tache { font: var(--f-fleche); color: var(--tertiaire); padding: var(--e-s); }
.fleche-tache:hover { color: var(--texte); }
.voir-taches { align-self: flex-start; padding: var(--e-s) var(--e-m); font: var(--f-petit); color: var(--secondaire); }
.voir-taches:hover { color: var(--texte); }

/* le héros du revenu */
.heros-panneau { gap: var(--e-m); }
.heros-valeur { display: flex; align-items: baseline; gap: var(--e-xxl); min-width: 0; }
.heros-valeur .heros { white-space: nowrap; }
.heros-valeur .pastille { font: var(--f-label); }
.heros-detail { display: flex; align-items: center; gap: var(--e-m); font: var(--f-corps); color: var(--secondaire); }
.heros-courbe {
  display: grid;
  grid-template-columns: var(--t-heros-axe) minmax(0, 1fr);
  grid-template-rows: minmax(0, 1fr) auto;
  column-gap: var(--e-m);
  row-gap: var(--e-s);
  height: var(--t-graphique-heros);
}
.heros-courbe.vide-courbe { display: flex; align-items: center; justify-content: center; }
.heros-axe-y, .heros-axe-x { position: relative; font: var(--f-axe); color: var(--tertiaire); font-variant-numeric: tabular-nums; }
.heros-axe-y span { position: absolute; right: 0; transform: translateY(-50%); white-space: nowrap; }
.heros-axe-x { grid-column: 2; height: calc(var(--e-xxl) - var(--e-s)); }
.heros-axe-x span { position: absolute; top: 0; transform: translateX(-50%); white-space: nowrap; }
.heros-axe-x span:first-child { transform: none; }
.heros-trace { position: relative; min-width: 0; }
.heros-trace svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.heros-grille { stroke: var(--blanc-grille); stroke-width: var(--filet); vector-effect: non-scaling-stroke; }
.heros-trait { fill: none; stroke: var(--accent); stroke-width: var(--trait); stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.lavis-haut { stop-color: var(--texte); stop-opacity: .14; }
.lavis-bas { stop-color: var(--texte); stop-opacity: 0; }
.heros-point {
  position: absolute;
  width: var(--t-point);
  height: var(--t-point);
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 var(--halo-point) var(--accent), var(--contour-vise);
  transform: translate(-50%, -50%);
  pointer-events: none;
}
.heros-point:not(.dernier), .heros-viseur, .heros-bulle { opacity: 0; transition: opacity var(--duree-fondu); }
.heros-trace:hover .heros-point:not(.dernier), .heros-trace:hover .heros-viseur, .heros-trace:hover .heros-bulle { opacity: 1; }
.heros-trace:hover .heros-point.dernier { opacity: 0; }
.heros-viseur { position: absolute; top: 0; bottom: 0; border-left: var(--viseur) dashed var(--blanc-serie); pointer-events: none; }
.heros-bulle {
  position: absolute;
  top: 0;
  display: flex;
  flex-direction: column;
  gap: var(--e-xs);
  padding: var(--e-m) var(--e-l);
  border-radius: var(--r-ligne);
  background: var(--releve);
  border: var(--filet) solid var(--blanc-bord-fort);
  pointer-events: none;
  white-space: nowrap;
}
.heros-bulle .jour { font: var(--f-tag); color: var(--tertiaire); }
.heros-bulle b { font: var(--f-corps-gras); font-variant-numeric: tabular-nums; color: var(--texte); }
.heros-pied { font: var(--f-tag); color: var(--tertiaire); }

/* la semaine et le score */
.mini-chiffres { display: flex; align-items: flex-start; gap: var(--e-panneau); }
.mini-chiffre { display: flex; flex-direction: column; gap: var(--e-s); }
.mini-chiffre .valeur { font: var(--f-grand); font-variant-numeric: tabular-nums; color: var(--texte); }
.radar { position: relative; height: var(--t-radar); --r: calc(var(--t-radar) / 2 - var(--e-xxl) - var(--e-xl)); }
.radar svg {
  position: absolute;
  left: 50%;
  top: 50%;
  width: calc(2 * var(--r));
  height: calc(2 * var(--r));
  transform: translate(-50%, -50%);
  overflow: visible;
}
.radar-grille { fill: none; stroke: var(--blanc-grille); stroke-width: var(--filet); vector-effect: non-scaling-stroke; }
.radar-notes { fill: var(--blanc-selection); stroke: var(--accent); stroke-width: var(--trait); stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.radar-nom {
  position: absolute;
  left: calc(50% + var(--x) * (var(--r) + var(--e-xl)));
  top: calc(50% + var(--y) * (var(--r) + var(--e-xl)));
  transform: translate(calc(-100% * var(--ax)), calc(-100% * var(--ay)));
  font: var(--f-tag);
  color: var(--secondaire);
  white-space: nowrap;
}
.radar-nom.absent { color: var(--tertiaire); }
.score-pied { display: flex; align-items: baseline; gap: var(--e-m); }
.score-global { font: var(--f-kpi); font-variant-numeric: tabular-nums; color: var(--texte); }
.score-sur { font: var(--f-petit); color: var(--tertiaire); white-space: nowrap; flex-shrink: 0; }
.score-faible {
  font: var(--f-petit);
  color: var(--secondaire);
  text-align: right;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* le fil en direct et les vidéos */
.panneau-fil { --rayon: var(--r-panneau); display: flex; flex-direction: column; gap: var(--e-l); padding: var(--e-xxl) var(--e-l) var(--e-l); }
.fil-tete { display: flex; align-items: center; gap: var(--e-m); padding: 0 var(--e-m); }
.fil-compte { font: var(--f-mini); color: var(--secondaire); }
.panneau-top { --rayon: var(--r-panneau); display: flex; flex-direction: column; padding: var(--e-xxl) var(--e-l) var(--e-l); }
.panneau-top .videos-tete { padding: 0 var(--e-l) var(--e-l); }
.table-videos .gagne { color: var(--succes); }
.table-videos .rang:not(.tete) .vues { font: var(--f-corps-gras); color: var(--texte); }

/* Data : sections, objectif, tables */
.titre-data { display: flex; flex-direction: column; gap: var(--e-xs); padding-top: var(--e-xl); }
.titre-data .titre { font: var(--f-grand); color: var(--texte); }
.titre-data .texte { font: var(--f-petit); color: var(--secondaire); }
.pile { display: flex; flex-direction: column; gap: var(--e-xl); }
.objectif-ligne { display: flex; align-items: baseline; gap: var(--e-m); }
.objectif-mrr { font: var(--f-kpi); letter-spacing: var(--i-objectif); font-variant-numeric: tabular-nums; color: var(--texte); }
.objectif-de { font: var(--f-corps); color: var(--secondaire); }
.objectif-reste { font: var(--f-ligne); font-variant-numeric: tabular-nums; color: var(--texte); }
.objectif-jauge { padding: var(--e-s); }
.objectif-jauge > i {
  display: block;
  height: var(--t-objectif-jauge);
  width: max(calc(var(--part) * 100%), var(--t-objectif-jauge));
  border-radius: var(--r-capsule);
  background: var(--accent);
}
.objectif-rythme { font: var(--f-petit); color: var(--secondaire); }
.entete-table { font: var(--f-mini); color: var(--secondaire); }
.table-portes .taux, .cellule-arbre .taux { font: var(--f-mini); font-variant-numeric: tabular-nums; color: var(--texte); }
.table-portes .taux.meilleur, .cellule-arbre .taux.meilleur { font: var(--f-mini-gras); color: var(--accent); }
.table-portes .taux.fragile, .cellule-arbre .taux.fragile { color: var(--secondaire); }
.table-portes {
  display: grid;
  grid-template-columns: minmax(0, 1fr) repeat(4, auto);
  grid-auto-rows: minmax(var(--t-ligne-table), auto);
  align-items: center;
  gap: var(--e-xs) var(--e-m);
  font: var(--f-mini);
  font-variant-numeric: tabular-nums;
  color: var(--texte);
  text-align: right;
}
.table-portes .nom, .table-portes .entete-table:first-child { text-align: left; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.table-cohortes {
  display: grid;
  grid-template-columns: auto auto repeat(4, minmax(0, 1fr));
  align-items: center;
  gap: var(--e-xs) var(--e-s);
  max-height: var(--t-table-cohortes);
  overflow-y: auto;
  scrollbar-width: none;
  font: var(--f-mini);
  font-variant-numeric: tabular-nums;
}
.table-cohortes::-webkit-scrollbar { display: none; }
.table-cohortes .entete-table:nth-child(n+3) { text-align: center; }
.table-cohortes .entete-table:nth-child(2), .table-cohortes .jour:nth-child(6n+2) { text-align: right; }
.table-cohortes .jour { color: var(--texte); }
.table-cohortes .jour.ouverte { color: var(--secondaire); font-style: italic; }
.case-cohorte {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: var(--t-ligne-table);
  border-radius: var(--r-barre);
  background: color-mix(in srgb, var(--accent) calc(var(--opacite) * 100%), transparent);
  color: var(--texte);
}

/* Data : l'arbre des installs */
.arbre { display: flex; flex-direction: column; gap: var(--e-xl); }
.fil-ariane { display: flex; align-items: center; gap: var(--e-m); padding: var(--e-s); }
.miettes { flex: 1; min-width: 0; display: flex; align-items: center; gap: var(--e-s); overflow-x: auto; scrollbar-width: none; }
.miettes::-webkit-scrollbar { display: none; }
.chevron-miette { font: var(--f-fleche); color: var(--secondaire); }
.miette {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: var(--e-m);
  height: var(--t-segment);
  padding: 0 var(--e-xl);
  border-radius: var(--r-capsule);
  background: var(--blanc-pilule);
  white-space: nowrap;
}
.miette.courante { background: color-mix(in srgb, var(--accent) 14%, transparent); }
.miette > button:first-child { display: inline-flex; align-items: center; gap: var(--e-m); }
.miette .libelle { font: var(--f-ligne); color: var(--secondaire); }
.miette .installs { font: var(--f-mini-gras); font-variant-numeric: tabular-nums; color: var(--secondaire); }
.miette.courante .libelle { font: var(--f-corps-gras); color: var(--texte); }
.miette.courante .installs { color: var(--accent); }
.miette:hover .libelle { color: var(--texte); }
.miette .retirer { font: var(--f-coche); color: var(--secondaire); }
.miette .retirer:hover { color: var(--texte); }
.tout-effacer { flex: none; height: var(--t-segment); padding: 0 var(--e-xl); font: var(--f-label); color: var(--secondaire); white-space: nowrap; }
.tout-effacer:hover { color: var(--texte); }

.marches { display: flex; flex-direction: column; gap: var(--e-xs); }
.marche { display: flex; flex-direction: column; gap: var(--e-m); padding: var(--e-l) var(--e-xl); border-radius: var(--r-tache); background: var(--blanc-ligne); text-align: left; }
.marche.posee { background: var(--blanc-actif); }
button.marche:hover { background: var(--blanc-survol); }
button.marche.posee:hover { background: var(--blanc-actif); }
.marche-haut { display: flex; align-items: center; gap: var(--e-l); }
.marche-noms { display: flex; flex-direction: column; gap: var(--e-xs); min-width: 0; }
.marche-noms .nom { font: var(--f-label); color: var(--secondaire); }
.marche-nombre { display: flex; align-items: baseline; gap: var(--e-m); }
.marche-nombre .nombre { font: var(--f-grand); font-variant-numeric: tabular-nums; color: var(--texte); }
.marche-nombre .sous { font: var(--f-mini); color: var(--secondaire); }
.marche-taux { display: flex; flex-direction: column; align-items: flex-end; gap: var(--e-xs); }
.taux-marche { font: var(--f-h2); font-variant-numeric: tabular-nums; }
.coche-marche {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: var(--t-icone);
  height: var(--t-icone);
  flex: none;
  border-radius: 50%;
  font: var(--f-coche);
  color: var(--secondaire);
}
.coche-marche:not(.posee) { font: var(--f-icone); }
.coche-marche.posee { background: var(--c); color: var(--fond); }
.barre-marche { height: var(--t-arbre-barre); border-radius: var(--r-capsule); background: var(--blanc-pilule); }
.barre-marche > i { display: block; height: 100%; width: max(calc(var(--part) * 100%), var(--t-arbre-barre)); border-radius: inherit; }
.passage-arbre { display: flex; align-items: center; gap: var(--e-m); padding: var(--e-xs) var(--e-xl); font: var(--f-mini); font-variant-numeric: tabular-nums; color: var(--secondaire); }
.tuiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--e-m); }
.tuile { display: flex; flex-direction: column; gap: var(--e-xs); padding: var(--e-m) var(--e-l); border-radius: var(--r-ligne); background: var(--blanc-ligne); min-width: 0; }
.tuile .libelle { font: var(--f-tag); color: var(--secondaire); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tuile .valeur { font: var(--f-ligne); font-variant-numeric: tabular-nums; color: var(--texte); }

.etapes { display: flex; flex-direction: column; gap: var(--e-xs); }
.etape {
  display: flex;
  align-items: center;
  gap: var(--e-m);
  height: var(--t-ligne-fil);
  padding: 0 var(--e-m);
  border-radius: var(--r-ligne);
  font: var(--f-mini);
  font-variant-numeric: tabular-nums;
  color: var(--texte);
  text-align: left;
}
button.etape:hover { background: var(--blanc-survol); }
.etape.choisie, button.etape.choisie:hover { background: var(--blanc-actif); }
.nom-etape { flex: none; width: var(--t-etape-nom); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.barre-etape { flex: 1; height: var(--t-etape-barre); border-radius: var(--r-capsule); background: var(--blanc-pilule); overflow: hidden; }
.barre-etape > i { display: block; height: 100%; border-radius: inherit; background: var(--accent); }
.barre-etape > i.pire { background: var(--ambre); }
.etape .nombre { min-width: var(--t-etape-nombre); text-align: right; }
.etape .pourcent { min-width: var(--t-etape-pourcent); text-align: right; color: var(--secondaire); }
.etape .perte { min-width: var(--t-etape-perte); text-align: right; color: var(--secondaire); }
.etape .perte.pire { font: var(--f-mini-gras); color: var(--ambre); }

.dimensions { display: grid; grid-template-columns: repeat(var(--colonnes-dimensions), minmax(0, 1fr)); gap: var(--e-s); }
.dimension {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: var(--t-bouton);
  padding: 0 var(--e-l);
  border-radius: var(--r-ligne);
  background: var(--blanc-ligne);
  text-align: left;
  white-space: nowrap;
  min-width: 0;
}
.dimension:hover { background: var(--blanc-survol); }
.dimension.actif { background: var(--blanc-actif); }
.dimension .nom { font: var(--f-ligne); color: var(--secondaire); overflow: hidden; text-overflow: ellipsis; }
.dimension.actif .nom { font: var(--f-corps-gras); color: var(--texte); }
.dimension .posees { font: var(--f-tag); color: var(--accent); overflow: hidden; text-overflow: ellipsis; }

.table-decoupe { display: flex; flex-direction: column; }
.rang-decoupe {
  display: grid;
  grid-template-columns: var(--colonnes-decoupe);
  align-items: center;
  column-gap: var(--e-m);
  width: 100%;
  height: var(--t-ligne-video);
  padding: 0 var(--e-l);
  font: var(--f-petit);
  font-variant-numeric: tabular-nums;
  color: var(--texte);
  text-align: left;
  white-space: nowrap;
}
.rang-decoupe.tete { height: auto; padding: var(--e-s) calc(var(--e-l) + var(--t-arbre-ecarter)) var(--e-tete-decoupe) var(--e-l); font: var(--f-mini-gras); font-weight: 700; color: var(--secondaire); }
.rang-decoupe.tete > button { display: inline-flex; align-items: center; justify-content: flex-end; gap: var(--e-xs); color: var(--secondaire); }
.rang-decoupe.tete > button:hover, .rang-decoupe.tete > button.actif { color: var(--texte); }
.chevron-tri { font: var(--f-coche); }
.nom-decoupe { overflow: hidden; text-overflow: ellipsis; }
.ligne-decoupe { display: flex; align-items: center; border-radius: var(--r-ligne); }
.ligne-decoupe.paire { background: var(--blanc-ligne); }
.ligne-decoupe.posee { background: var(--blanc-actif); }
.ligne-decoupe:not(.posee):hover { background: var(--blanc-survol); }
.ligne-decoupe > .rang-decoupe { flex: 1; min-width: 0; }
.valeur-decoupe {
  position: relative;
  display: flex;
  align-items: center;
  gap: var(--e-m);
  align-self: stretch;
  padding: var(--e-s) var(--e-m);
  min-width: 0;
  isolation: isolate;
}
.valeur-decoupe::before {
  content: "";
  position: absolute;
  left: 0;
  top: var(--e-s);
  bottom: var(--e-s);
  width: calc(min(var(--part), 1) * 100%);
  border-radius: var(--r-barre);
  background: var(--blanc-pilule);
  z-index: -1;
}
.valeur-decoupe .libelle { overflow: hidden; text-overflow: ellipsis; color: var(--texte); }
.valeur-decoupe .libelle.pas-mesure { color: var(--secondaire); }
.valeur-decoupe .pourcent { font: var(--f-mini); color: var(--secondaire); }
.cellule-arbre { display: flex; align-items: baseline; justify-content: flex-end; gap: var(--e-s); }
.cellule-arbre .n { font: var(--f-mini); color: var(--secondaire); }
.cellule-arbre .n.seul { font: var(--f-petit); color: var(--texte); }
.ecarter {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: var(--t-arbre-ecarter);
  height: var(--t-ligne-video);
  color: var(--secondaire);
}
.ecarter .icone { width: var(--e-xl); height: var(--e-xl); }
.ecarter:hover { color: var(--texte); }
.ecarter:disabled { visibility: hidden; }
.plus-valeurs { height: var(--t-ligne-fil); font: var(--f-label); color: var(--secondaire); }
.plus-valeurs:hover { color: var(--texte); }
.rang-decoupe.total { padding-right: calc(var(--e-l) + var(--t-arbre-ecarter)); border-top: var(--filet) solid var(--blanc-grille); }
.rang-decoupe.total .nom-decoupe { padding: 0 var(--e-m); color: var(--secondaire); }
