/* classes préfixées vd-; aucune couleur en dur, uniquement les jetons de tokens.css. */

/* graisse fixe: bolder est relatif au parent et produirait 600/700/900 selon le contexte. */
b, strong { font-weight: var(--graisse-forte); }

/* fond clair = var(--surface); seul le trait de tête porte l'accent produit. */
.vd-topbar {
  display: flex;
  align-items: center;
  gap: var(--espace-m);
  background: var(--surface);
  color: var(--texte);
  padding: 12px 26px;
  border-top: 3px solid var(--accent);
  border-bottom: 1px solid var(--bordure);
  font-family: var(--police-interface);
}
/* colonnes latérales à base égale: sinon le centre se décale. */
/* vd-topbar--grille = répartition en grille (ex vd-appbar), vd-topbar = boîte flexible. */
/* grille seulement ≥720px; en dessous elle déborde, boîte flexible. */
@media (min-width: 720px) {
  .vd-topbar--grille {
    display: grid;
    grid-template-columns: 1fr minmax(0, var(--vd-topbar-centre, 460px)) 1fr;
  }
  .vd-topbar--grille > .vd-topbar__debut,
  .vd-topbar--grille > .vd-topbar__centre,
  .vd-topbar--grille > .vd-topbar__fin { flex: none; }
}

.vd-topbar__debut { display: flex; align-items: center; gap: var(--espace-m); min-inline-size: 0; flex: 1 1 0; }
/* recherche centrée sans largeur figée: borne de lisibilité, côtés de poids égal. */
.vd-topbar__centre {
  display: flex; align-items: center; justify-content: center; min-inline-size: 0;
  flex: 1 1 auto;
  max-inline-size: var(--vd-topbar-recherche, 720px);
  margin-inline: auto;
}
.vd-topbar__centre > * { inline-size: 100%; }
.vd-topbar__fin { display: flex; align-items: center; justify-content: flex-end; gap: var(--espace-s); min-inline-size: 0; flex: 1 1 0; }
.vd-topbar__langue { display: flex; align-items: center; flex: none; }
/* color-scheme:dark + fond des options: la liste native hérite la couleur mais pas le fond. */
.vd-topbar__langue .vd-champ__saisie, .vd-topbar__langue select {
  inline-size: auto; min-inline-size: 0;
  background: rgb(255 255 255 / .1); border-color: rgb(255 255 255 / .18); color: #fff;
  color-scheme: dark;
}
.vd-topbar__langue select option {
  background: var(--navy); color: #fff;
}
.vd-topbar__compte > summary { border-radius: 999px; inline-size: auto; block-size: auto; }
.vd-topbar__compte .vd-carte__menu__liste { min-inline-size: 230px; }
.vd-topbar .vd-recherche__saisie {
  background: var(--surface-haute);
  border-color: var(--bordure);
  color: var(--texte);
}
.vd-topbar .vd-recherche__saisie::placeholder { color: var(--texte-attenue); }
.vd-topbar .vd-recherche__icone { color: var(--texte-attenue); }
.vd-topbar .vd-avatar { border: 2px solid var(--surface); }

/* mobile: compte en tête par order; marque et langue déplacées dans le menu par topbar.js, pas masquées. */
@media (max-width: 719px) {
  .vd-topbar { gap: var(--espace-s); padding-inline: var(--espace-m); }
  .vd-topbar__fin { order: -1; margin-inline-start: 0; flex: none; }
  /* au doigt: côtés au contenu, recherche prend le reste. */
  .vd-topbar__debut { flex: 0 1 auto; }
  .vd-topbar__centre { max-inline-size: none; }
  /* grille sans petite largeur: redevient flex sous 720px. */
  .vd-topbar--grille { display: flex; grid-template-columns: none; }
  /* enfants de la grille: rendre la souplesse (flex:none écrit hors media). */
  .vd-topbar--grille > .vd-topbar__debut,
  .vd-topbar--grille > .vd-topbar__centre { flex: 1 1 0; min-inline-size: 0; }
  .vd-topbar__debut:empty { display: none; }
  .vd-topbar__compte .vd-carte__menu__liste .vd-wordmark { display: block; padding: var(--espace-s) 10px; font-size: var(--texte-interface); color: var(--texte); }
  .vd-topbar__compte .vd-carte__menu__liste .vd-topbar__langue { padding: var(--espace-xs) 10px; }
  .vd-topbar__compte .vd-carte__menu__liste .vd-avatar-groupe { display: flex; padding: var(--espace-s) 10px; }
  .vd-topbar__compte .vd-carte__menu__liste .vd-topbar__langue select,
  .vd-topbar__compte .vd-carte__menu__liste .vd-topbar__langue .vd-champ__saisie {
    inline-size: 100%; background: var(--surface-haute); border-color: var(--bordure); color: var(--texte);
  }
}

.vd-wordmark { font-weight: var(--graisse-forte); letter-spacing: .01em; font-size: var(--texte-titre); }

/* point de marque unique: 0.18em, margin-left 0.06em, margin-bottom 0.12em; .vd-point élément, ::after après texte. */
.vd-point,
.vd-wordmark::after {
  content: '';
  display: inline-block;
  width: .18em; height: .18em;
  border-radius: 50%;
  background: var(--accent);
  margin-inline-start: .06em;
  vertical-align: baseline;
}
/* marque client posée par le build, juste après le wordmark. */
.vd-topbar__client { display: flex; align-items: center; gap: var(--espace-s); font-size: var(--texte-interface); color: var(--texte-attenue); }
/* hauteur du logo via --marque-hauteur uniquement, pas de height en dur. */
.vd-topbar__client img { width: auto; display: block; }

.vd-card {
  background: var(--surface);
  border: 1px solid var(--bordure);
  border-radius: var(--accent-rayon, var(--courant-rayon-moyen));
  padding: var(--espace-l);
  color: var(--texte);
}
.vd-card__title { margin: 0 0 var(--espace-s); font-size: var(--texte-titre); font-weight: var(--graisse-forte); }
.vd-card__note { margin: 0; color: var(--texte-attenue); font-size: var(--texte-interface); }
/* liseré toujours coloré: accent par défaut, --vd-lisere pour une couleur sémantique. */
.vd-card--lisere {
  border-block-start: 3px solid var(--vd-lisere, var(--accent));
  border-start-start-radius: 0; border-start-end-radius: 0;
}

.vd-kpi { display: grid; gap: var(--espace-xxxs); }
.vd-kpi__value { font-family: var(--police-donnee); font-variant-numeric: tabular-nums; font-size: var(--texte-affiche); font-weight: var(--graisse-forte); color: var(--texte); }
/* intitulé réserve la hauteur du menu de tuile, qu'il en porte un ou non (alignement des chiffres). */
.vd-kpi__label {
  font-size: var(--texte-legende); text-transform: uppercase; letter-spacing: .08em;
  color: var(--texte-attenue);
  display: flex; align-items: center; gap: var(--espace-s);
  min-block-size: var(--controle-hauteur-compacte);
}

/* couleur d'état jamais seule: toujours icône + libellé. */
.vd-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  /* padding horizontal 13px compense l'arrondi; vertical fixe (hauteur 24px). */
  padding: 3px var(--espace-m);
  border-radius: 999px;
  font-size: var(--texte-legende);
  font-weight: var(--graisse-appuyee);
  /* forme pleine seule; fond dérivé de l'encre à 12%; bord transparent garde la taille. */
  border: 1px solid transparent;
  background: color-mix(in srgb, currentColor 12%, var(--surface-haute));
  /* nowrap seulement en contexte dense (cellule), pas sur le composant. */
  max-inline-size: 100%;
}
/* encre assombrie 15% pour le contraste AA sur fond à 12%. */
.vd-pill--succes { color: color-mix(in srgb, var(--succes) 85%, #000); }
.vd-pill--danger { color: color-mix(in srgb, var(--danger) 85%, #000); }
.vd-pill--alerte { color: color-mix(in srgb, var(--alerte) 85%, #000); }
.vd-pill--information { color: color-mix(in srgb, var(--information) 85%, #000); }
.vd-pill--accent { color: var(--accent-encre, var(--accent)); }
/* icône de pastille dans un carré fixe d'une hauteur de texte: garde symétrique. */

/* réduction de mouvement globale; 0.01ms et non none: transitionend doit encore partir. */
/* ne couper que les propriétés de déplacement, pas les couleurs. */
@media (prefers-reduced-motion: reduce) {
  [class^='vd-'], [class*=' vd-'], [class^='vd-']::before, [class*=' vd-']::before,
  [class^='vd-']::after, [class*=' vd-']::after {
    transition-property: color, background-color, border-color, outline-color, opacity, fill, stroke !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
  }
}

/* focus visible par défaut sur tout élément focalisable; moins spécifique que ceux des composants. */
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible,
textarea:focus-visible, summary:focus-visible, [tabindex]:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.vd-pill__icone {
  font-style: normal;
  flex: none;
  inline-size: 1em; block-size: 1em;
  display: inline-flex; align-items: center; justify-content: center;
  line-height: 1;
}
/* nowrap en cellule de tableau: hauteur de rangée stable. */
td .vd-pill, th .vd-pill { white-space: nowrap; }

/* les contrôles n'héritent pas la police par défaut. */
button, input, select, textarea, optgroup { font-family: inherit; }
/* défaut maison pour h1-h6; les règles locales, plus spécifiques, gardent la main. */
h1 { font-size: var(--texte-affiche); }
h2 { font-size: var(--texte-titre); }
h3, h4, h5, h6 { font-size: var(--texte-corps); }

/* small/sup/sub: taille fixe au lieu d'un facteur du parent; l'exposant garde sa position. */
small { font-size: var(--texte-legende); }
sup, sub { font-size: var(--texte-mention); line-height: 0; position: relative; vertical-align: baseline; }
sup { inset-block-start: -0.4em; }
sub { inset-block-start: 0.2em; }

/* lien ≠ bouton; souligné obligatoire (couleur seule ne suffit pas), décalé sous les jambages. */
.vd-lien {
  color: var(--accent-encre, var(--accent));
  font-weight: var(--graisse-appuyee);
  text-decoration: underline;
  text-underline-offset: 2px;
  text-decoration-thickness: 1px;
  cursor: pointer;
  background: none; border: 0; padding: 0; font-size: inherit; font-family: inherit;
}
.vd-lien:hover { text-decoration-thickness: 2px; }
.vd-lien:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: var(--carbone-rayon-petit); }
.vd-lien:disabled, .vd-lien[aria-disabled='true'] {
  cursor: not-allowed; color: var(--texte-attenue); text-decoration: none;
}
/* point de tête indépendant du fond; aria inutile, le libellé porte l'information. */
.vd-pill--point::before {
  content: ''; inline-size: 6px; block-size: 6px; border-radius: 999px;
  background: var(--vd-pastille-point, currentColor); flex: none;
}
.vd-pill--neutre { color: var(--texte-attenue); }

/* tableau défile dans son enveloppe, jamais la page; enveloppe obligatoire au-delà de trois colonnes. */
.vd-table-enveloppe { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.vd-table { width: 100%; border-collapse: collapse; font-size: var(--texte-corps); color: var(--texte); }
.vd-table th {
  text-align: start;
  font-size: var(--texte-mention);
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--texte-attenue);
  padding: var(--espace-s) var(--espace-m);
  border-bottom: 1px solid var(--bordure);
  font-weight: var(--graisse-appuyee);
}
.vd-table td { padding: var(--espace-m); border-bottom: 1px solid var(--bordure); }
/* th de colonne chiffrée aligné en fin, bouton de tri compris. */
.vd-table th.vd-num { text-align: end; }
.vd-table th.vd-num .vd-table__tri { margin-inline-start: auto; }
.vd-table td.vd-num { font-variant-numeric: tabular-nums; text-align: end; }
/* cellule numérique: tabular-nums seulement, police du produit gardée. */
.vd-table tbody tr:hover { background: var(--surface-haute); }

/* palette ancrée au tiers supérieur: le champ ne bouge pas quand la liste s'allonge. */
.vd-palette {
  position: fixed; inset: 0; z-index: var(--plan-flottant);
  display: flex; justify-content: center; align-items: flex-start;
  padding: max(8vh, var(--espace-xl)) var(--espace-m) var(--espace-m);
  background: rgb(10 12 20 / .42);
}
.vd-palette[hidden] { display: none; }
.vd-palette__boite {
  inline-size: min(100%, 640px); max-block-size: 70vh;
  display: flex; flex-direction: column;
  background: var(--surface-haute);
  border: 1px solid var(--bordure);
  border-radius: var(--accent-rayon, var(--courant-rayon-moyen));
  box-shadow: var(--ombre-flottante);
  overflow: hidden;
}
.vd-palette__champ { padding: var(--espace-s); border-block-end: 1px solid var(--bordure); }
.vd-palette__resultats { overflow-y: auto; padding: var(--espace-xs); }
.vd-palette__categorie {
  margin: var(--espace-s) 0 2px; padding-inline: var(--espace-s);
  font-size: var(--texte-mention); text-transform: uppercase; letter-spacing: .08em;
  color: var(--texte-attenue);
}
.vd-palette__option {
  box-sizing: border-box;
  display: flex; align-items: baseline; gap: var(--espace-s);
  min-block-size: var(--controle-hauteur);
  padding-block: 0; padding-inline: var(--espace-s);
  border-radius: var(--courant-rayon-petit);
  color: var(--texte); text-decoration: none;
}
/* survol et sélection clavier dessinés pareil. */
.vd-palette__option:hover,
.vd-palette__option[aria-selected='true'] { background: color-mix(in srgb, var(--accent) 12%, transparent); }
.vd-palette__titre { font-size: var(--texte-interface); font-weight: var(--graisse-appuyee); }
.vd-palette__detail { font-size: var(--texte-legende); color: var(--texte-attenue); }
.vd-palette__repli {
  margin: var(--espace-xs) 0; padding: var(--espace-s) 10px;
  font-size: var(--texte-legende); color: var(--alerte);
  background: color-mix(in srgb, var(--alerte) 10%, transparent);
  border-radius: var(--courant-rayon-petit);
}
.vd-palette__vide { margin: var(--espace-m) 10px; }
.vd-palette__pied {
  margin: 0; padding: var(--espace-s) var(--espace-m);
  border-block-start: 1px solid var(--bordure);
  font-size: var(--texte-legende); color: var(--texte-attenue);
}
.vd-palette__pied kbd {
  font-family: var(--police-donnee); font-size: var(--texte-mention);
  padding: 1px var(--espace-xs); margin-inline-end: var(--espace-xxs);
  border: 1px solid var(--bordure); border-radius: var(--carbone-rayon-petit); background: var(--surface);
}

/* ton = couleur + icône + mot; rôle aria écrit par message.js. */
.vd-message {
  display: flex; align-items: flex-start; gap: var(--espace-s);
  padding: var(--espace-m);
  border-radius: var(--accent-rayon, var(--courant-rayon-moyen));
  /* aucun liseré coloré sur un message: bordure fine à la couleur du ton. */
  border: 1px solid color-mix(in srgb, var(--ton, var(--information)) 34%, transparent);
  background: color-mix(in srgb, var(--ton, var(--information)) 8%, var(--surface-haute));
  color: var(--texte);
  font-size: var(--texte-interface);
}
.vd-message__icone { flex: none; color: var(--ton, var(--information)); margin-block-start: 1px; }
.vd-message__corps { flex: 1 1 auto; min-inline-size: 0; }
/* mot du ton jamais masqué à la synthèse vocale. */
.vd-message__ton { font-weight: var(--graisse-appuyee); }
.vd-message__ton::after { content: ' · '; font-weight: var(--graisse-courante); color: var(--texte-attenue); }
/* croix hors flux, centrée en absolu: la hauteur du bandeau vient du texte seul; dégagement de fin conditionnel. */
.vd-message { position: relative; }
.vd-message__fermer {
  position: absolute; inset-inline-end: var(--espace-s);
  inset-block-start: 50%; translate: 0 -50%;
  inline-size: var(--controle-hauteur-compacte); block-size: var(--controle-hauteur-compacte);
}
.vd-message:has(.vd-message__fermer) { padding-inline-end: calc(var(--controle-hauteur-compacte) + var(--espace-m)); }
.vd-message--succes { --ton: var(--succes); }
.vd-message--information { --ton: var(--information); }
.vd-message--alerte { --ton: var(--alerte); }
.vd-message--danger { --ton: var(--danger); }
.vd-messages { display: flex; flex-direction: column; gap: var(--espace-s); }

/* navigation basse: 5 entrées max (la 5e « plus »), marge de sécurité env(safe-area-inset-bottom). */
/* border-box: posée dans le flux, elle ne dépasse pas son hôte. */
.vd-barre-basse {
  box-sizing: border-box; max-inline-size: 100%;
  position: fixed; inset-block-end: 0; inset-inline: 0; z-index: var(--plan-fixe);
  display: none; align-items: center; justify-content: space-around;
  block-size: calc(56px + env(safe-area-inset-bottom, 0px));
  padding-block-end: env(safe-area-inset-bottom, 0px);
  padding-inline: var(--espace-xs);
  background: var(--surface-haute);
  border-block-start: 1px solid var(--bordure);
}
@media (max-width: 899px) { .vd-barre-basse { display: flex; } }
/* dégagement du corps via l'attribut posé par barre-basse.js (barre dérivée seulement). */
/* éléments flottants en bas (widget de retours) s'écartent de la barre. */
@media (max-width: 899px) {
  [data-vd-barre-basse='presente'] .vd-retours-bouton { bottom: calc(80px + env(safe-area-inset-bottom, 0px)); }
  [data-vd-barre-basse='presente'] .vd-retours-panneau { bottom: calc(130px + env(safe-area-inset-bottom, 0px)); }
}
@media screen and (max-width: 899px) {
  [data-vd-barre-basse-posee='oui'] body {
    padding-block-end: calc(56px + env(safe-area-inset-bottom, 0px));
  }
}
.vd-barre-basse__entree {
  display: flex; flex-direction: column; align-items: center; gap: var(--espace-xxxs);
  /* entrées en parts égales, min-inline-size 0: le libellé se coupe avant que la barre déborde. */
  flex: 1 1 0; min-inline-size: 0; overflow: hidden;
  min-block-size: var(--controle-hauteur-ample);
  justify-content: center;
  padding-inline: var(--espace-xs);
  border: 0; border-radius: var(--courant-rayon-petit);
  background: none; cursor: pointer; text-decoration: none;
  color: var(--texte-attenue); font: inherit; font-size: var(--texte-mention);
}
.vd-barre-basse__entree:hover { color: var(--texte); }
/* état courant lu sur aria-current. */
.vd-barre-basse__entree[aria-current='page'] {
  color: var(--accent);
  background: color-mix(in srgb, var(--accent) 12%, transparent);
}
.vd-barre-basse__libelle { white-space: nowrap; max-inline-size: 100%; overflow: hidden; text-overflow: ellipsis; }
/* action principale jamais marquée courante. */
.vd-barre-basse__action {
  /* --action-flottante (56px): seule exception nommée à l'échelle des contrôles. */
  inline-size: var(--action-flottante); block-size: var(--action-flottante); flex: none;
  display: inline-flex; align-items: center; justify-content: center;
  border: 0; border-radius: 16px; cursor: pointer;
  background: var(--accent); color: #fff;
  box-shadow: 0 4px 14px color-mix(in srgb, var(--accent) 38%, transparent);
}

/* compteur = quantité, pastille = état. line-height 1 pour centrer le chiffre. */
/* ton sobre par défaut, --alerte en variante. */
.vd-compteur {
  box-sizing: border-box;
  flex: none; display: inline-flex; align-items: center; justify-content: center;
  min-inline-size: 18px; block-size: 18px; padding-inline: var(--espace-xs);
  border-radius: 999px;
  /* encre pleine, pas atténuée: marge de contraste. */
  background: color-mix(in srgb, var(--texte) 12%, transparent); color: var(--texte);
  font-family: var(--police-donnee); font-size: var(--texte-mention); font-weight: var(--graisse-appuyee);
  font-variant-numeric: tabular-nums;
  line-height: 1;
}
.vd-compteur[hidden] { display: none; }
.vd-compteur--alerte { background: var(--alerte, #B4232A); color: #fff; }

/* sur une entrée de barre basse: au coin de l'icône, hors flux. */
.vd-barre-basse__entree { position: relative; }
.vd-barre-basse__entree > .vd-compteur {
  position: absolute; inset-block-start: 2px;
  inset-inline-start: 50%; margin-inline-start: var(--espace-xxxs);
}

/* feuille du bas limitée à 60% de la hauteur. */
.vd-feuille { position: fixed; inset: 0; z-index: var(--plan-flottant); display: flex; align-items: flex-end; }
.vd-feuille[hidden] { display: none; }
.vd-feuille__voile { position: absolute; inset: 0; border: 0; padding: 0; background: rgb(10 12 20 / .42); }
.vd-feuille__panneau {
  position: relative; inline-size: 100%; max-block-size: 60vh; overflow-y: auto;
  background: var(--surface-haute);
  border-start-start-radius: 16px;
  border-start-end-radius: 16px;
  padding: var(--espace-l);
  padding-block-end: calc(var(--espace-l) + env(safe-area-inset-bottom, 0px));
}
.vd-feuille__tete { display: flex; align-items: center; justify-content: space-between; margin-block-end: var(--espace-m); }
.vd-feuille__titre { margin: 0; font-size: var(--texte-titre); }
.vd-feuille__grille { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: var(--espace-s); }

/* porte son chiffre et les attributs aria de valeur. */
.vd-progression { display: flex; align-items: center; gap: var(--espace-s); }
.vd-progression__piste {
  flex: 1 1 auto; block-size: 8px; border-radius: 999px;
  background: var(--surface); overflow: hidden;
}
.vd-progression__part { display: block; block-size: 100%; border-radius: 999px; background: var(--accent); }
.vd-progression__valeur { flex: none; font-size: var(--texte-legende); color: var(--texte-attenue); font-variant-numeric: tabular-nums; }
/* indéterminée: traversée continue, pas d'aller-retour. */
.vd-progression--inconnue .vd-progression__part {
  inline-size: 34%; animation: vd-progression-traverse 1.4s linear infinite;
}
@keyframes vd-progression-traverse {
  from { translate: -110% 0; } to { translate: 320% 0; }
}
@media (prefers-reduced-motion: reduce) {
  .vd-progression--inconnue .vd-progression__part { animation: none; inline-size: 100%; opacity: .5; }
}

/* interrupteur = effet immédiat; case à cocher = attend un envoi. radio jamais seul. */
.vd-interrupteur { display: inline-flex; align-items: center; gap: var(--espace-s); cursor: pointer; font-size: var(--texte-corps); }
.vd-interrupteur input {
  appearance: none; margin: 0; flex: none; cursor: pointer;
  inline-size: 40px; block-size: 24px; border-radius: 999px;
  background: var(--bordure); position: relative;
  transition: background .14s ease-out;
}
.vd-interrupteur input::after {
  content: ""; position: absolute; inset-block-start: 3px; inset-inline-start: 3px;
  inline-size: 18px; block-size: 18px; border-radius: 999px; background: #fff;
  transition: inset-inline-start .14s ease-out;
}
.vd-interrupteur input:checked { background: var(--accent); }
.vd-interrupteur input:checked::after { inset-inline-start: 19px; }
.vd-interrupteur input:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { .vd-interrupteur input, .vd-interrupteur input::after { transition: none; } }
.vd-radios, .vd-interrupteurs { display: flex; flex-direction: column; gap: var(--espace-m); }
/* petit pas entre choix, grand pas entre groupes. */
.vd-groupe-champs { display: flex; flex-direction: column; gap: var(--espace-l); }
.vd-groupe-champs fieldset { border: 0; padding: 0; margin: 0; }
.vd-radio { display: inline-flex; align-items: center; gap: var(--espace-s); cursor: pointer; font-size: var(--texte-corps); }
.vd-radio input[type="radio"] { flex: none; inline-size: 18px; block-size: 18px; margin: 0; accent-color: var(--accent); cursor: pointer; }
.vd-radio input:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* étape franchie = coche, courante = numéro + aria-current; segments: 2 ou 3 choix max. */
/* numéro dans la puce, pas de marqueur de liste. */
.vd-pasapas {
  display: flex; align-items: flex-start; gap: var(--espace-s);
  list-style: none; margin: 0; padding: 0;
}
.vd-pasapas__etape { display: flex; align-items: center; gap: var(--espace-s); flex: 1 1 0; min-inline-size: 0; }
.vd-pasapas__puce {
  flex: none; inline-size: var(--controle-hauteur-compacte); block-size: var(--controle-hauteur-compacte);
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 999px; border: 1px solid var(--bordure);
  background: var(--surface-haute); color: var(--texte-attenue);
  font-size: var(--texte-legende); font-weight: var(--graisse-forte); font-variant-numeric: tabular-nums;
}
.vd-pasapas__libelle { font-size: var(--texte-legende); color: var(--texte-attenue); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vd-pasapas__etape--franchie .vd-pasapas__puce { background: var(--succes); border-color: var(--succes); color: #fff; }
.vd-pasapas__etape[aria-current="step"] .vd-pasapas__puce { background: var(--accent); border-color: var(--accent); color: #fff; }
.vd-pasapas__etape[aria-current="step"] .vd-pasapas__libelle { color: var(--texte); font-weight: var(--graisse-appuyee); }
.vd-pasapas__filet { flex: 1 1 auto; block-size: 1px; background: var(--bordure); margin-block-start: var(--espace-m); }
@media (max-width: 620px) {
  .vd-pasapas__etape:not([aria-current="step"]) .vd-pasapas__libelle { display: none; }
}

/* zone de touche invisible étendue au seuil tactile, taille visible inchangée; zéro si déjà au seuil. proposé, non déployé. */
/* :where() spécificité nulle: ne pas écraser un positionnement absolu existant. */
:where(.vd-cible-etendue) { position: relative; }
.vd-cible-etendue::after {
  content: '';
  position: absolute;
  inset-inline: 0;
  /* retrait négatif = extension; min() ramène à zéro au seuil. */
  inset-block: calc(min(0px, (100% - var(--vd-cible-tactile, 24px)) / 2));
}

/* choix unique vertical, pendant de .vd-segments; état via aria-current; bande horizontale au doigt. */
.vd-choix {
  display: grid; gap: var(--espace-s);
  max-block-size: var(--vd-choix-hauteur, 70vh);
  overflow-y: auto;
  padding-inline-end: var(--espace-xxxs);
}
/* état lu sur aria-current, jamais une classe. */
.vd-choix > [aria-current='true'], .vd-choix > [aria-current='page'] {
  border-color: var(--accent);
  box-shadow: inset 0 0 0 1px var(--accent);
}
/* seuils d'échelle uniquement (719/720), pas de quatrième degré. */
@media (max-width: 719px) {
  .vd-choix {
    display: flex; overflow-x: auto; overflow-y: visible;
    max-block-size: none; scrollbar-width: none;
  }
  .vd-choix::-webkit-scrollbar { display: none; }
  .vd-choix > * { flex: none; min-inline-size: var(--vd-choix-largeur, 100px); }
}

/* groupe à la hauteur de commande (40px), la part = hauteur moins dégagement; pas de degré hors échelle. */
.vd-segments {
  display: inline-flex; gap: 0; padding: var(--espace-xxs);
  box-sizing: border-box;
  min-block-size: var(--controle-hauteur);
  background: var(--surface); border-radius: 999px;
}
.vd-segments__part {
  box-sizing: border-box;
  min-block-size: calc(var(--controle-hauteur) - 6px);
  display: inline-flex; align-items: center; justify-content: center;
  padding-block: 0; padding-inline: var(--espace-m);
  border: 0; border-radius: 999px; background: none; cursor: pointer;
  font: inherit; font-size: var(--texte-legende); color: var(--texte-attenue);
}
.vd-segments__part[aria-pressed="true"], .vd-segments__part[aria-selected="true"] {
  background: var(--surface-haute); color: var(--texte); font-weight: var(--graisse-appuyee);
  box-shadow: var(--ombre-posee);
}
.vd-segments__part:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* jetons retirables, champ toujours en fin. cloche: nombre, « 9+ » au-delà de neuf. */
.vd-etiquettes {
  display: flex; flex-wrap: wrap; align-items: center; gap: var(--espace-xs);
  box-sizing: border-box; min-block-size: var(--controle-hauteur);
  padding: 4px var(--espace-s);
  border: 1px solid var(--bordure); border-radius: var(--accent-rayon, var(--courant-rayon-petit));
  background: var(--surface-haute);
}
.vd-etiquettes:focus-within { outline: 2px solid var(--accent); outline-offset: 1px; }
.vd-etiquettes__saisie { flex: 1 1 8ch; min-inline-size: 8ch; border: 0; background: none; font: inherit; font-size: var(--texte-interface); color: var(--texte); }
.vd-etiquettes__saisie:focus { outline: none; }
.vd-etiquette {
  display: inline-flex; align-items: center; gap: 4px;
  padding-block: var(--espace-xxxs); padding-inline: var(--espace-s) 4px;
  border-radius: 999px; background: var(--surface); color: var(--texte);
  font-size: var(--texte-legende);
}
.vd-etiquette__retirer {
  inline-size: var(--vd-cible, 24px); block-size: var(--vd-cible, 24px); flex: none;
  display: inline-flex; align-items: center; justify-content: center;
  border: 0; border-radius: 999px; background: none; cursor: pointer; color: var(--texte-attenue);
}
.vd-etiquette__retirer:hover { color: var(--danger); background: var(--surface-haute); }

.vd-cloche { position: relative; }
.vd-cloche__compte {
  position: absolute; inset-block-start: -2px; inset-inline-end: -2px;
  box-sizing: border-box;
  min-inline-size: 18px; block-size: 18px; padding-inline: 4px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 999px; background: var(--danger); color: #fff;
  font-family: var(--police-donnee); font-size: var(--texte-mention); font-weight: var(--graisse-appuyee);
  font-variant-numeric: tabular-nums;
}
.vd-cloche__compte[hidden] { display: none; }

/* aria-busy + texte hors écran; pulsation coupée en reduced-motion. */
.vd-squelette {
  /* fond = texte à 9%: visible sur tout hôte. */
  background: color-mix(in srgb, var(--texte) 9%, transparent);
  border-radius: var(--courant-rayon-petit);
  animation: vd-squelette-pulsation 1.5s ease-in-out infinite;
  block-size: 14px;
}
@keyframes vd-squelette-pulsation {
  0%, 100% { opacity: .4; }
  50% { opacity: .8; }
}
@media (prefers-reduced-motion: reduce) {
  .vd-squelette { animation: none; opacity: .55; }
}
/* forme du contenu remplacé (texte, graphique, image) pour éviter le saut de mise en page. */
.vd-squelette--titre { block-size: 20px; inline-size: 40%; }
.vd-squelette--rond { border-radius: 999px; inline-size: var(--controle-hauteur); block-size: var(--controle-hauteur); }
.vd-squelette--texte { block-size: 16px; }
.vd-squelette-texte { display: flex; flex-direction: column; gap: var(--espace-s); }
.vd-squelette-texte .vd-squelette:last-child { inline-size: 62%; }
.vd-squelette--bloc { block-size: auto; aspect-ratio: 3 / 2; border-radius: var(--courant-rayon-petit); }
.vd-squelette-graphe { display: flex; align-items: flex-end; gap: 6px; block-size: 96px; }
.vd-squelette-graphe .vd-squelette { flex: 1 1 0; block-size: auto; align-self: flex-end; }
.vd-squelette-ligne {
  display: flex; align-items: center; gap: var(--espace-m);
  padding-block: var(--espace-m);
  border-block-end: 1px solid var(--bordure);
}
.vd-squelette-ligne:last-child { border-block-end: 0; }
.vd-squelette-ligne__texte { display: flex; flex-direction: column; gap: 6px; flex: 1 1 auto; }

/* utilitaires limités à mono, attenue, hors-écran; un rôle ou une place appartient au composant. */
/* .vd-tabulaire: tabular-nums dans la police courante; ≠ .vd-mono qui change de police. */
.vd-tabulaire { font-variant-numeric: tabular-nums; }

.vd-mono {
  font-family: var(--police-donnee);
  font-variant-numeric: tabular-nums;
}
.vd-attenue { color: var(--texte-attenue); }

/* liste = énumération, tableau = tri/comparaison; dernier filet supprimé. */
.vd-liste { list-style: none; margin: 0; padding: 0; }
/* état en fin de ligne, pas sous le nom. */
.vd-ligne {
  display: grid; gap: 2px var(--espace-m);
  grid-template-columns: 1fr auto;
  align-items: center;
  padding-block: var(--espace-m);
  border-block-end: 1px solid var(--bordure);
}
.vd-ligne__principal, .vd-ligne__meta, .vd-ligne__date { grid-column: 1; }
.vd-ligne .vd-pill { grid-column: 2; grid-row: 1 / -1; justify-self: end; align-self: center; }
.vd-ligne:last-child { border-block-end: 0; }
.vd-ligne__principal { font-size: var(--texte-corps); font-weight: var(--graisse-appuyee); }
.vd-ligne__meta { font-size: var(--texte-legende); color: var(--texte-attenue); }
.vd-ligne__date { font-size: var(--texte-legende); color: var(--texte-attenue); font-variant-numeric: tabular-nums; }

/* deux colonnes au large, une au doigt. */
.vd-attributs {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: var(--espace-s) var(--espace-m); margin-block: var(--espace-s);
}
.vd-attributs--pleine { grid-template-columns: 1fr; }
.vd-attributs dt {
  font-size: var(--texte-mention); text-transform: uppercase; letter-spacing: .06em;
  color: var(--texte-attenue);
}
/* overflow-wrap:break-word, jamais anywhere (réduit la largeur min, colonnes écrasées); min-inline-size:0 évite le débordement. */
.vd-attributs dd { margin: 0; font-size: var(--texte-corps); font-variant-numeric: tabular-nums;
  min-inline-size: 0; overflow-wrap: break-word; }
@media (max-width: 620px) { .vd-attributs { grid-template-columns: 1fr; } }

/* bord de fin en logique; état par hidden, pas aria-hidden; dialogue modal nommé. */
.vd-tiroir { position: fixed; inset: 0; z-index: var(--plan-flottant); }
.vd-tiroir[hidden] { display: none; }
.vd-tiroir__voile { position: absolute; inset: 0; border: 0; padding: 0; background: rgb(10 12 20 / .42); }
.vd-tiroir__panneau {
  position: absolute; inset-block: 0; inset-inline-end: 0;
  inline-size: min(720px, 96vw); block-size: 100%;
  overflow-y: auto; padding: var(--espace-xl);
  background: var(--surface-haute);
  box-shadow: -12px 0 40px rgb(0 0 0 / .18);
}
.vd-tiroir__tete { display: flex; align-items: center; gap: var(--espace-m); margin-block-end: var(--espace-l); }
.vd-tiroir__titre { flex: 1 1 auto; min-inline-size: 0; font-size: var(--texte-affiche); margin: 0; }

/* border-inline-end, jamais border-right. */
.vd-facettes {
  overflow-y: auto; padding: var(--espace-m);
  background: var(--surface);
  border-inline-end: 1px solid var(--bordure);
  inline-size: var(--vd-facettes-largeur, 264px); flex: none;
}
.vd-facettes__groupe { margin-block-end: var(--espace-l); }
.vd-facettes__titre {
  font-size: var(--texte-mention); letter-spacing: .1em; text-transform: uppercase;
  color: var(--texte-attenue); font-weight: var(--graisse-forte); margin-block-end: var(--espace-s);
}
.vd-facettes__ligne { display: flex; gap: var(--espace-s); }
.vd-facettes .vd-champ__saisie { inline-size: 100%; min-inline-size: 0; }
@media (max-width: 899px) {
  /* au doigt: au-dessus de la liste, bande repliable. */
  .vd-facettes { inline-size: auto; border-inline-end: 0; border-block-end: 1px solid var(--bordure); }
}

/* seul liseré gauche légitime: code la nature, doublé du libellé; border-inline-start. */
.vd-fil { list-style: none; margin: 0; padding: 0; }
.vd-fil__item {
  display: flex; gap: var(--espace-m);
  padding-block: var(--espace-s); padding-inline: var(--espace-m) 0;
  border-inline-start: 3px solid var(--vd-fil-ton, var(--bordure));
}
.vd-fil__item + .vd-fil__item { border-block-start: 1px solid var(--bordure); }
.vd-fil__date {
  flex: none; inline-size: 82px; font-size: var(--texte-legende);
  color: var(--texte-attenue); font-variant-numeric: tabular-nums;
}
.vd-fil__quoi { display: flex; flex-direction: column; gap: var(--espace-xxxs); min-inline-size: 0; }
.vd-fil__quoi strong { font-size: var(--texte-corps); font-weight: var(--graisse-appuyee); }
.vd-fil__detail { font-size: var(--texte-legende); color: var(--texte-attenue); }

/* réutilise l'avatar du socle. */
.vd-personne { display: flex; align-items: center; gap: var(--espace-s); min-inline-size: 0; }
.vd-personne__texte { display: flex; flex-direction: column; min-inline-size: 0; }
.vd-personne__nom { font-size: var(--texte-interface); font-weight: var(--graisse-appuyee); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vd-personne__role { font-size: var(--texte-legende); color: var(--texte-attenue); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* plage en clair « 1 à 20 sur 342 ». */
.vd-pagination {
  display: flex; align-items: center; gap: var(--espace-s); flex-wrap: wrap;
  margin-block-start: var(--espace-m);
  font-size: var(--texte-legende); color: var(--texte-attenue);
}
.vd-pagination__plage { font-variant-numeric: tabular-nums; }
.vd-pagination__gouverne { display: flex; align-items: center; gap: var(--espace-s); margin-inline-start: auto; }
.vd-pagination__page { font-variant-numeric: tabular-nums; min-inline-size: 96px; text-align: center; }
@media (max-width: 620px) {
  .vd-pagination { gap: var(--espace-xs); }
  .vd-pagination__gouverne { margin-inline-start: 0; inline-size: 100%; justify-content: space-between; }
  .vd-pagination__page { min-inline-size: 0; }
}

/* barres jamais camembert; valeur écrite à côté. */
.vd-barres { display: flex; flex-direction: column; }
.vd-barre {
  display: grid;
  grid-template-columns: minmax(0, 170px) minmax(24px, 1fr) 76px;
  gap: var(--espace-s); align-items: center;
  font-size: var(--texte-legende); padding-block: 6px;
}
.vd-barre__nom { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vd-barre__piste { block-size: 10px; border-radius: 999px; background: var(--surface); overflow: hidden; }
.vd-barre__part { display: block; block-size: 100%; border-radius: 999px; background: var(--accent); }
.vd-barre__valeur { text-align: end; font-variant-numeric: tabular-nums; color: var(--texte-attenue); }
@media (max-width: 620px) {
  .vd-barre { grid-template-columns: 1fr 76px; }
  .vd-barre__nom { grid-column: 1 / -1; }
}

/* liste ordonnée gardée, marqueur natif retiré. */
.vd-frise {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: var(--espace-m);
  list-style: none; margin: 0; padding: 0;
}
.vd-jalon {
  background: var(--surface-haute); border: 1px solid var(--bordure);
  border-block-start: 3px solid var(--accent);
  border-start-start-radius: 0; border-start-end-radius: 0;
  border-end-start-radius: var(--accent-rayon, var(--courant-rayon-petit));
  border-end-end-radius: var(--accent-rayon, var(--courant-rayon-petit));
  padding: var(--espace-m);
}
.vd-jalon__date { font-size: var(--texte-legende); color: var(--vd-jalon-ton, var(--accent)); font-weight: var(--graisse-forte); }
/* coche après le titre. */
.vd-jalon__quoi {
  font-size: var(--texte-corps); font-weight: var(--graisse-appuyee); margin-block: 4px var(--espace-xxs);
  display: flex; align-items: center; gap: var(--espace-s);
}
.vd-jalon__quoi [data-icone] { margin-inline-start: auto; color: var(--vd-jalon-ton, var(--accent)); }
.vd-jalon__note { font-size: var(--texte-legende); color: var(--texte-attenue); }
/* --vd-jalon-ton porte liseré, date et coche. */
.vd-jalon { border-block-start-color: var(--vd-jalon-ton, var(--bordure)); }
/* six états: clos (franchi, annulé), ouverts (en cours, en retard), bloqués (erreur, en attente); annulé barré. */
.vd-jalon--franchi { --vd-jalon-ton: var(--succes); }
.vd-jalon--courant { --vd-jalon-ton: var(--accent); }
.vd-jalon--retard { --vd-jalon-ton: var(--alerte); }
.vd-jalon--erreur { --vd-jalon-ton: var(--danger); }
.vd-jalon--attente { --vd-jalon-ton: var(--information); }
.vd-jalon--annule { --vd-jalon-ton: var(--bordure); }
.vd-jalon--annule .vd-jalon__quoi { text-decoration: line-through; color: var(--texte-attenue); }
.vd-jalon--annule .vd-jalon__note { font-style: italic; }

/* arrondis logiques; hauteur de case sur l'échelle; couleurs sémantiques; état jamais par la couleur seule. */
.vd-calendrier { display: block; }
.vd-calendrier__tete {
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--espace-m); margin-block-end: var(--espace-m);
}
.vd-calendrier__mois { font-size: var(--texte-titre); text-transform: capitalize; }
.vd-calendrier__pas {
  inline-size: var(--controle-hauteur); block-size: var(--controle-hauteur);
  display: grid; place-items: center;
  border: 1px solid var(--bordure); border-radius: 999px;
  background: var(--surface-haute); color: var(--texte); cursor: pointer;
}
.vd-calendrier__pas:hover { border-color: var(--texte-attenue); }
.vd-calendrier__pas:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
/* plafond de largeur: le ruban doit rester plus près de son jour que de celui du dessus. */
.vd-calendrier__grille {
  display: grid; grid-template-columns: repeat(7, 1fr); gap: var(--espace-xxs);
  max-inline-size: 380px;
  padding: var(--espace-m);
  background: var(--surface-haute);
  border: 1px solid var(--bordure);
  border-radius: var(--accent-rayon, var(--courant-rayon-moyen));
}
.vd-jour {
  display: grid; place-items: center; aspect-ratio: 1;
  font: 400 var(--texte-interface)/1 var(--police-interface);
  font-variant-numeric: tabular-nums;
  color: var(--texte); border-radius: var(--courant-rayon-petit);
}
.vd-jour--entete {
  font-size: var(--texte-mention); font-weight: var(--graisse-forte); color: var(--texte-attenue);
  aspect-ratio: auto; padding-block: 4px;
}
.vd-jour--vide { visibility: hidden; }
/* période = ruban de 4px, pas fond plein: plusieurs par jour. */
/* border-box obligatoire: cases carrées. */
/* chiffre en haut, bande rubans réservée même vide: alignement des chiffres. */
.vd-jour {
  position: relative; align-content: start; box-sizing: border-box; padding-block-start: 12px;
}
.vd-jour--aujourdhui { box-shadow: inset 0 0 0 2px var(--accent); font-weight: var(--graisse-forte); }
/* rubans en haut, sans retrait: alignement entre jours. */
.vd-jour__rubans {
  position: absolute; inset-inline: 2px; inset-block-start: 3px;
  display: flex; flex-direction: column; gap: var(--espace-xxxs);
}
/* title converti par infobulle; aria-hidden voulu (la case porte le libellé complet). */
.vd-jour__ruban { block-size: 4px; background: var(--vd-ruban, var(--accent)); }
.vd-jour__ruban, .vd-jour__point { cursor: help; }
.vd-jour__ruban--debut { border-start-start-radius: 999px; border-end-start-radius: 999px; }
.vd-jour__ruban--fin { border-start-end-radius: 999px; border-end-end-radius: 999px; }
/* points = ponctuel, rubans = durée. */
.vd-jour__points { display: flex; gap: var(--espace-xxs); margin-block-start: var(--espace-xxs); line-height: 1; }
.vd-jour__point {
  inline-size: 5px; block-size: 5px; border-radius: 999px;
  background: var(--vd-point, currentColor);
}
.vd-calendrier__legende {
  display: flex; flex-wrap: wrap; gap: var(--espace-s);
  margin-block: var(--espace-m) 0;
}

/* état via aria-current, jamais une classe; pastille = nombre, jamais point nu. */
.vd-rail {
  display: flex; flex-direction: column; gap: var(--espace-xxxs);
  inline-size: var(--vd-rail-largeur, 248px); flex: none;
  padding: var(--espace-m);
  background: var(--surface-haute);
  border-inline-end: 1px solid var(--bordure);
  font-family: var(--police-interface);
  /* fond et encre posés ensemble. */
  color: var(--texte-attenue);
}
/* tête en ligne: marque au début, fermeture au bord de fin. */
.vd-rail__tete {
  display: flex; align-items: center; gap: var(--espace-s);
  padding: var(--espace-s) var(--espace-s) var(--espace-m);
}
/* le rail pose l'encre de sa marque avec son fond. */
.vd-rail__tete > .vd-rail__marque { flex: 1 1 auto; min-inline-size: 0; color: var(--texte); }
.vd-rail__marque h1, .vd-rail__marque > :first-child {
  margin: 0; color: inherit; font-size: var(--texte-corps); font-weight: var(--graisse-appuyee); line-height: 1.25;
}
.vd-rail__client { display: block; font-size: var(--texte-legende); color: var(--texte-attenue); margin-block-start: var(--espace-xxxs); }
.vd-rail__lien {
  box-sizing: border-box;
  display: flex; align-items: center; gap: var(--espace-s);
  min-block-size: var(--controle-hauteur);
  padding-block: 6px; padding-inline: var(--espace-s);
  border: 0; border-radius: var(--accent-rayon, var(--courant-rayon-petit));
  background: none; cursor: pointer;
  font: inherit; font-size: var(--texte-interface); text-align: start;
  color: var(--texte-attenue); text-decoration: none;
  inline-size: 100%;
}
.vd-rail__lien:hover { background: var(--surface); color: var(--texte); }
.vd-rail__lien:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
/* état via aria-current, pas de classe active. */
.vd-rail__lien[aria-current='page'] {
  background: color-mix(in srgb, var(--accent) 14%, transparent);
  color: var(--texte); font-weight: var(--graisse-appuyee);
}
.vd-rail__lien[aria-current='page'] .vd-rail__icone { color: var(--accent); }
.vd-rail__icone { flex: none; display: inline-flex; color: currentColor; }

/* variante sombre: le produit ne fournit que --vd-rail-fond; actif en aplat plein. non déployée. */
.vd-rail--sombre {
  --surface-haute: var(--vd-rail-fond);
  --fond: var(--vd-rail-fond);
  --surface: rgb(255 255 255 / .09);
  --bordure: rgb(255 255 255 / .09);
  --texte: #fff;
  --texte-attenue: #C9CCD9;
  color: var(--texte-attenue);
}
.vd-rail--sombre .vd-rail__lien:hover { background: rgb(255 255 255 / .09); color: #fff; }
/* focus blanc rentré: dehors il se perd sur la page. */
.vd-rail--sombre .vd-rail__lien:focus-visible { outline: 2px solid #fff; outline-offset: -2px; }
.vd-rail--sombre .vd-rail__lien[aria-current='page'] {
  background: var(--accent); color: #fff;
}
.vd-rail--sombre .vd-rail__lien[aria-current='page'] .vd-rail__icone { color: currentColor; }
/* libellé de navigation jamais tronqué: retour à la ligne, hauteur de contrôle = plancher. */
.vd-rail__libelle { flex: 1 1 auto; min-inline-size: 0; overflow-wrap: break-word; }
/* compteur du rail = .vd-compteur. */
.vd-rail__groupe { display: flex; flex-direction: column; gap: var(--espace-xxxs); }
.vd-rail__groupe[hidden] { display: none; }
/* chevron piloté par aria-expanded, jamais une classe. */
.vd-rail__chevron { flex: none; inline-size: 8px; block-size: 8px; transition: rotate .12s linear; }
.vd-rail__chevron::before {
  content: ''; display: block; inline-size: 6px; block-size: 6px;
  border-inline-end: 1.5px solid currentColor; border-block-end: 1.5px solid currentColor;
  rotate: -45deg;
}
[aria-expanded='true'] > .vd-rail__chevron { rotate: 90deg; }
/* croix visible seulement au doigt; spécificité voulue contre .vd-iconbtn déclaré plus bas. */
.vd-rail .vd-rail__fermer { display: none; flex: none; align-self: center; }

/* au doigt, rail entier par-dessus; reste dans le flux tant que rail.js n'a pas posé data-vd-rail, sauf rail « attendu » (socle #317). */
@media (max-width: 899px) {
  .vd-rail:is([data-vd-rail='pose'], [data-vd-rail='attendu']) {
    position: fixed; inset-block: 0; inset-inline-start: 0; z-index: var(--plan-fixe);
    inline-size: min(84vw, 320px);
    translate: -100% 0; transition: translate .18s ease-out;
    overflow-y: auto;
    box-shadow: var(--ombre-flottante);
  }
  .vd-rail[data-vd-rail='pose'][data-vd-ouvert='oui'] { translate: 0 0; }
  .vd-rail .vd-rail__fermer { display: inline-flex; margin-inline-start: auto; }
  .vd-rail__voile {
    position: fixed; inset: 0; z-index: var(--plan-voile); border: 0; padding: 0;
    background: rgb(0 0 0 / .38);
  }
}
@media (prefers-reduced-motion: reduce) {
  .vd-rail[data-vd-rail='pose'] { transition: none; }
}

/* PDF jamais incrusté: type, nom, poids et ouverture système; images affichées. */
.vd-apercus {
  display: grid;
  /* auto-fill: colonnes selon la place, pas de rupture. */
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: var(--espace-m);
}
.vd-apercu {
  display: flex; flex-direction: column;
  border: 1px solid var(--bordure);
  border-radius: var(--accent-rayon, var(--courant-rayon-moyen));
  background: var(--surface-haute);
  overflow: hidden;
  color: inherit; text-decoration: none;
}
a.vd-apercu:hover, a.vd-apercu:focus-visible { border-color: var(--accent); }
a.vd-apercu:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
/* rapport 3:2 constant. */
.vd-apercu__vignette {
  aspect-ratio: 3 / 2;
  display: flex; align-items: center; justify-content: center;
  background: var(--surface);
  border-block-end: 1px solid var(--bordure);
  color: var(--texte-attenue);
}
.vd-apercu__vignette img {
  inline-size: 100%; block-size: 100%;
  object-fit: cover; display: block;
}
.vd-apercu__corps { padding: var(--espace-m); display: flex; flex-direction: column; gap: var(--espace-xxxs); }
.vd-apercu__nom {
  font-size: var(--texte-interface); font-weight: var(--graisse-appuyee); color: var(--texte);
  /* nom tronqué sur une ligne: ne pousse pas la grille. */
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.vd-apercu__meta { font-size: var(--texte-legende); color: var(--texte-attenue); font-variant-numeric: tabular-nums; }
/* --liste: arrangement en ligne pour documents, mêmes classes internes. */
.vd-apercus--liste { display: flex; flex-direction: column; gap: var(--espace-s); }
.vd-apercu--ligne {
  flex-direction: row; align-items: center; gap: var(--espace-m);
  padding: var(--espace-m); border-radius: var(--accent-rayon, var(--courant-rayon-moyen));
}
/* marque de fichier partagée par aperçu et dépôt. */
.vd-fichier-marque {
  display: inline-flex; align-items: center; justify-content: center;
  aspect-ratio: 1; inline-size: var(--controle-hauteur); flex: none;
  border-radius: var(--courant-rayon-petit);
  background: color-mix(in srgb, var(--accent) 12%, transparent);
  color: var(--accent);
}
.vd-fichier-marque--petite { inline-size: var(--controle-hauteur-compacte); }
.vd-apercu--ligne .vd-apercu__vignette { border: 0; }
.vd-apercu--ligne .vd-apercu__corps { padding: 0; flex: 1 1 auto; min-inline-size: 0; }
.vd-apercu__surtitre {
  font-size: var(--texte-mention); text-transform: uppercase; letter-spacing: .06em;
  color: var(--texte-attenue);
}
.vd-apercu__resume {
  font-size: var(--texte-legende); color: var(--texte-attenue);
  /* résumé limité à deux lignes. */
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden;
}
.vd-apercu--ligne .vd-apercu__nom { white-space: normal; font-size: var(--texte-corps); }
.vd-apercu__fin { flex: none; margin-inline-start: auto; display: flex; align-items: center; gap: var(--espace-s); }

.vd-apercu__type {
  align-self: flex-start; margin-block-start: var(--espace-xs);
  font-size: var(--texte-mention); text-transform: uppercase; letter-spacing: .06em;
  padding: var(--espace-xxxs) 6px; border-radius: var(--carbone-rayon-petit);
  background: var(--surface); color: var(--texte-attenue);
}

/* tri par bouton dans le th; flèche dessinée depuis aria-sort, jamais une classe. */
.vd-table__tri {
  font: inherit; color: inherit; letter-spacing: inherit; text-transform: inherit;
  display: inline-flex; align-items: center; gap: var(--espace-xs);
  padding: 0; border: 0; background: none; cursor: pointer;
}
.vd-table__tri:hover { color: var(--texte); }
.vd-table__tri:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: var(--carbone-rayon-petit); }
@media (max-width: 620px) {
  /* bouton de tri à la hauteur compacte au doigt. */
  .vd-table__tri { min-block-size: var(--controle-hauteur-compacte); }
}
.vd-table__fleche { inline-size: 8px; block-size: 8px; opacity: .35; }
/* flèche en css, pas en caractère. */
.vd-table__fleche::before {
  content: ''; display: block; inline-size: 6px; block-size: 6px;
  border-inline-end: 1.5px solid currentColor; border-block-end: 1.5px solid currentColor;
  transform: rotate(45deg);
}
th[aria-sort='ascending'] .vd-table__fleche { opacity: 1; transform: rotate(180deg); }
th[aria-sort='descending'] .vd-table__fleche { opacity: 1; }
th[aria-sort='ascending'], th[aria-sort='descending'] { color: var(--texte); }
.vd-table__vide { padding: var(--espace-l); text-align: center; }
.vd-table tbody tr[hidden] { display: none; }
/* cellule d'actions en fin, sans repli ni participation à la répartition des largeurs. */
/* actions toujours visibles, jamais au survol; menu sur une ligne. */
.vd-table__actions {
  inline-size: 1%;
  white-space: nowrap;
  text-align: end;
  vertical-align: middle;
}
.vd-table__groupe {
  display: flex; align-items: center; justify-content: flex-end; gap: var(--espace-xs);
}
/* réserve invisible quand la ligne n'a pas de menu: colonne tenue. */
.vd-table__reserve { display: block; block-size: 1px; flex: none; pointer-events: none; }
/* hors écran mais lu par la synthèse vocale. */
.vd-hors-ecran {
  position: absolute; inline-size: 1px; block-size: 1px;
  overflow: hidden; clip-path: inset(50%); white-space: nowrap;
}

/* border-box et vertical-align:middle: alignement des contrôles voisins. */
.vd-button, .vd-iconbtn, .vd-champ__saisie, .vd-recherche__saisie,
.vd-carte__menu > summary {
  box-sizing: border-box;
  vertical-align: middle;
}

/* hauteur unique --controle-hauteur pour tout contrôle. */
.vd-button {
  text-decoration: none;
  font: inherit;
  font-weight: var(--graisse-appuyee);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-block-size: var(--controle-hauteur);
  padding-block: 0;
  padding-inline: var(--espace-l);
  border-radius: var(--accent-rayon, var(--courant-rayon-petit));
  border: 1px solid var(--accent-plein, var(--accent));
  /* fond plein = --accent-plein (variante contrastée calculée au build), repli --accent. */
  background: var(--accent-plein, var(--accent));
  color: #fff;
}
/* discret: encre --accent-encre, pas l'accent brut. */
.vd-button--discret { background: transparent; color: var(--accent-encre, var(--accent)); }
/* retrait = ambre, gestes réversibles; rouge réservé à l'irréversible. */
.vd-button--retrait { background: transparent; color: var(--alerte); border-color: var(--alerte); }
.vd-button--retrait:hover { background: color-mix(in srgb, var(--alerte) 8%, transparent); }
.vd-button--retrait:focus-visible { outline-color: var(--alerte); }
.vd-button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* widget de retours injecté partout, jamais copié. */
.vd-retours-bouton {
  position: fixed;
  inset-inline-end: 18px;
  bottom: 18px;
  z-index: var(--plan-au-dessus-de-tout);
  display: inline-flex;
  align-items: center;
  gap: var(--espace-s);
  padding: var(--espace-s) var(--espace-m);
  border-radius: 999px;
  border: 1px solid var(--accent);
  background: var(--navy);
  color: #fff;
  font: 600 var(--texte-interface)/1 var(--police-interface);
  cursor: pointer;
  box-shadow: var(--ombre-levee);
}
.vd-retours-bouton[aria-pressed='true'] { background: var(--accent); }
.vd-retours-cible { outline: 2px dashed var(--accent) !important; outline-offset: 2px; cursor: crosshair !important; }
/* border-box obligatoire: sinon le panneau sort de l'écran sur téléphone. */
.vd-retours-panneau {
  box-sizing: border-box;
  position: fixed;
  inset-inline-end: 18px;
  bottom: 68px;
  z-index: var(--plan-au-dessus-de-tout);
  width: min(340px, calc(100vw - 36px));
  background: var(--surface);
  color: var(--texte);
  border: 1px solid var(--bordure);
  /* sans liseré de tête: outil VAIATA hors produit. */
  border-radius: var(--courant-rayon-moyen);
  padding: var(--espace-l);
  font: var(--texte-corps)/1.45 var(--police-interface);
  box-shadow: var(--ombre-flottante);
}
.vd-retours-panneau h2 { margin: 0 0 4px; font-size: var(--texte-titre); }
.vd-retours-panneau p { margin: 0 0 var(--espace-m); font-size: var(--texte-legende); color: var(--texte-attenue); word-break: break-word; }
/* saisie = .vd-champ__saisie; ne pas réintroduire de règle textarea locale (plus spécifique). */
.vd-retours-actions { display: flex; gap: var(--espace-s); margin-top: var(--espace-m);
  align-items: center; }
/* lien de suivi sans classe propre, poussé en fin. */
.vd-retours-actions > a { margin-inline-start: auto; font-size: var(--texte-legende); }
.vd-retours-etat { margin-top: var(--espace-s); font-size: var(--texte-legende); }

@media (prefers-reduced-motion: reduce) {
  .vd-retours-bouton, .vd-retours-panneau { transition: none; }
}

.vd-provenance {
  margin: 0;
  padding: 8px var(--espace-l);
  background: var(--surface-haute);
  border-bottom: 1px solid var(--bordure);
  color: var(--texte-attenue);
  font: var(--texte-legende)/1.4 var(--police-interface);
}
.vd-provenance code { font-family: var(--police-donnee); }

/* liseré en haut, couleur produit, jamais à gauche. */
/* conteneur .vd-tuiles fixe largeur et hauteur des cellules (auto-fill). */
.vd-tuiles {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: var(--espace-m);
  align-items: stretch;
}
.vd-tuiles > .vd-tuile { block-size: 100%; }

.vd-tuile {
  background: var(--surface-haute);
  border: 1px solid var(--bordure);
  border-top: 3px solid var(--accent);
  border-radius: 0 0 var(--accent-rayon, var(--courant-rayon-moyen)) var(--accent-rayon, var(--courant-rayon-moyen));
  padding: var(--espace-m);
  color: var(--texte);
  text-align: start;
}
/* variante discrète déclarée après sa base: même spécificité, l'ordre tranche. */
.vd-tuile--discrete {
  border-block-start: 1px solid var(--bordure);
  border-start-start-radius: var(--accent-rayon, var(--courant-rayon-moyen));
  border-start-end-radius: var(--accent-rayon, var(--courant-rayon-moyen));
}

/* --marque-hauteur (40px) commune logo et monogramme: la marque ne dicte pas la hauteur du bandeau. */
.vd-client { display: inline-flex; align-items: center; gap: 9px; }
/* plate blanche, rembourrage compris dans la hauteur. */
.vd-client__logo {
  height: var(--marque-hauteur);
  box-sizing: border-box;
  width: auto;
  display: block;
  background: #fff;
  border-radius: var(--carbone-rayon-petit);
  padding: var(--espace-xxs) 7px;
}
.vd-client__monogramme {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  min-width: var(--marque-hauteur);
  height: var(--marque-hauteur);
  padding: 0 6px;
  /* badge plein navy + encre blanche: lisible sur tout fond. */
  border: 0;
  border-radius: var(--accent-rayon, var(--courant-rayon-petit));
  background: var(--navy);
  font: 700 var(--texte-mention)/1 var(--police-interface);
  letter-spacing: .06em;
  color: #fff;
}
/* nom sur une ligne, tronqué, entier dans title. */
.vd-client__nom {
  font-size: var(--texte-interface); color: var(--texte);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.vd-topbar__client { min-inline-size: 0; }
.vd-topbar__client .vd-client { min-inline-size: 0; }

/* posé par le build, fin de barre, visible en mobile. */
.vd-langues { display: inline-flex; align-items: center; gap: var(--espace-xxxs); margin-inline-start: auto; flex: none; }
.vd-langues__choix {
  box-sizing: border-box;
  min-block-size: var(--controle-hauteur-compacte);
  padding-block: 0;
  font: inherit;
  font-size: var(--texte-legende);
  font-weight: var(--graisse-appuyee);
  letter-spacing: .04em;
  text-transform: uppercase;
  color: #C9CCD9;
  background: transparent;
  border: 0;
  border-radius: var(--carbone-rayon-petit);
  padding-inline: 7px;
  cursor: pointer;
}
.vd-langues__choix:hover { color: #fff; background: rgb(255 255 255 / .1); }
.vd-langues__choix[aria-pressed='true'] { color: #fff; background: rgb(255 255 255 / .18); }
.vd-langues__choix:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }

/* traduction en retard signalée, jamais présentée comme à jour. */
.vd-langues__retard {
  font-size: var(--texte-mention);
  color: var(--alerte);
  background: color-mix(in srgb, var(--alerte) 18%, transparent);
  border-radius: var(--carbone-rayon-petit);
  padding: var(--espace-xxxs) 6px;
  margin-inline-start: var(--espace-s);
}

/* marque client masquée sous 720px. */
@media (max-width: 719px) {
  .vd-topbar__client, .vd-client { display: none; }
}

/* tracés dans icones.js uniquement. */
.vd-icone {
  display: block;
  flex: none;
  color: inherit;
}

/* espacement entre voisins par gap du conteneur, jamais de marge sur le composant. */
.vd-button + .vd-button { margin-inline-start: var(--espace-s); }

/* titre au début, action principale en fin, même ligne. */
.vd-entete {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--espace-m);
  flex-wrap: wrap;
  margin-bottom: var(--espace-m);
}
.vd-entete > :first-child { margin: 0; }
.vd-actions { display: flex; align-items: center; gap: var(--espace-s); margin-inline-start: auto; flex-wrap: wrap; }

/* filtres secondaires repliés derrière leur bouton. */
/* une seule ligne au large: pastilles au début, compte et outils en fin, sans repli. */
.vd-outils { display: flex; align-items: center; gap: var(--espace-m); flex-wrap: nowrap; margin-bottom: var(--espace-m); }
/* sous 420px la ligne se replie. */
/* ≤620px: recherche de liste retirée (recherche transverse), outils derrière les trois points, 3 pastilles max. */
@media (max-width: 620px) {
  .vd-outils { flex-wrap: nowrap; gap: var(--espace-s); }
  .vd-outils__recherche, .vd-outils [data-vd-bascule-ligne] { display: none; }
  .vd-outils__droite > .vd-iconbtn:not(.vd-outils__plus) { display: none; }
  /* pastilles fondues en plateau segmenté à parts égales. */
  .vd-chips {
    flex: 1 1 auto; gap: 0; padding: var(--espace-xxs);
    background: var(--surface); border-radius: 999px;
  }
  .vd-chips .vd-chip {
    flex: 1 1 0; min-inline-size: 0; justify-content: center;
    border: 0; background: none; padding-inline: var(--espace-s);
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: block;
    line-height: var(--controle-hauteur-compacte);
    font-size: var(--texte-legende);
  }
  .vd-chips .vd-chip.is-actif, .vd-chips .vd-chip[aria-pressed='true'] {
    background: var(--surface-haute); color: var(--texte);
    box-shadow: var(--ombre-posee);
  }
  .vd-chips .vd-chip:nth-of-type(n + 4) { display: none; }
  .vd-outils .vd-compte { display: none; }
}
.vd-outils__plus { display: none; }
@media (max-width: 620px) { .vd-outils__plus { display: inline-flex; } }
.vd-outils__droite { display: flex; align-items: center; gap: var(--espace-s); margin-inline-start: auto; flex: none; }

/* recherche ouverte dans la ligne: largeur animée depuis zéro, jamais de changement de hauteur. */
/* overflow:hidden seulement fermé, sinon halo de focus rogné. */
.vd-outils__recherche {
  flex: 0 1 0; inline-size: 0; min-inline-size: 0; overflow: hidden;
  transition: flex-grow .16s ease-out, flex-basis .16s ease-out;
}
.vd-outils__recherche[data-vd-ouvert='oui'] {
  /* base nulle, plancher 20ch : le champ ouvert prend la place libre au lieu de faire passer la barre à la ligne (socle, design-vaiata #268). */
  flex: 1 1 0; min-inline-size: min(20ch, 100%); inline-size: auto; overflow: visible;
  /* borne et écart avec le compte. */
  max-inline-size: 52ch;
  margin-inline-end: var(--espace-s);
}
/* compte jamais comprimé. */
.vd-outils .vd-compte { flex: none; white-space: nowrap; }
.vd-outils__recherche .vd-recherche { inline-size: 100%; }
@media (prefers-reduced-motion: reduce) { .vd-outils__recherche { transition: none; } }
.vd-compte { font-size: var(--texte-legende); color: var(--texte-attenue); font-variant-numeric: tabular-nums; }

/* au-dessus de 620 px les puces prennent leur propre ligne au lieu de défiler sous une barre masquée ; la barre garde sa hauteur quand la recherche s'ouvre ou que la vue change le nombre d'outils (socle T-059, design-vaiata #267). */
.vd-chips { display: flex; gap: var(--espace-s); flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; flex: 1 1 0; min-width: 0; }
@media (width > 620px) {
  .vd-outils:has(.vd-chips) { flex-wrap: wrap; }
  .vd-chips { flex: 1 1 100%; max-width: 100%; flex-wrap: wrap; overflow-x: visible; }
}
.vd-chips::-webkit-scrollbar { display: none; }
.vd-chip {
  /* hauteur compacte de l'échelle. */
  box-sizing: border-box;
  flex: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  min-block-size: var(--controle-hauteur-compacte);
  border: 1px solid transparent;
  border-radius: 999px;
  padding-block: 0;
  padding-inline: 14px;
  background: var(--surface);
  color: var(--texte-attenue);
  font: 600 var(--texte-legende)/1 var(--police-interface);
}
.vd-chip:hover { color: var(--texte); }
.vd-chip.is-actif { background: var(--navy); color: #fff; }
.vd-chip:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.vd-iconbtn {
  /* même jeton que le bouton, rayon du registre. */
  inline-size: var(--controle-hauteur);
  block-size: var(--controle-hauteur);
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--bordure);
  border-radius: var(--accent-rayon, var(--courant-rayon-petit));
  background: var(--surface-haute);
  color: var(--texte-attenue);
  cursor: pointer;
}
.vd-iconbtn:hover { color: var(--texte); border-color: var(--texte-attenue); }
.vd-iconbtn[aria-pressed='true'] { background: var(--navy); border-color: var(--navy); color: #fff; }
.vd-iconbtn--discret {
  border-color: transparent;
  background: transparent;
}
.vd-iconbtn--discret:hover { border-color: transparent; background: var(--panel-2, rgb(0 0 0 / .05)); }
/* degré compact imposé par le contexte (.vd-carte__tete), pas par une variante de bouton. */
.vd-iconbtn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* pied de carte: actions en fin, secondaires avant la principale; filet si contenu au-dessus. */
/* tête de tuile: impose le degré compact; rembourrage horizontal partagé avec le corps et la carte. */
.vd-carte__tete {
  display: flex; align-items: center; gap: var(--espace-s);
  padding: var(--espace-m) var(--espace-l);
  border-block-end: 1px solid var(--bordure);
  font-size: var(--texte-legende); font-weight: var(--graisse-appuyee);
  letter-spacing: .08em; text-transform: uppercase;
  color: var(--texte-attenue);
}
/* tête au-dessus d'un tableau: s'aligne sur la première cellule. */
.vd-carte__tete:has(+ table),
.vd-carte__tete:has(+ * table) { padding-inline: var(--espace-m); }

.vd-carte__tete__fin { margin-inline-start: auto; text-transform: none; letter-spacing: 0; font-weight: var(--graisse-appuyee); }
/* contrôles de la tête prennent la hauteur compacte sans variante. */
.vd-carte__tete :where(.vd-iconbtn, .vd-button, .vd-select__champ, .vd-champ__saisie) {
  min-block-size: var(--controle-hauteur-compacte);
  block-size: var(--controle-hauteur-compacte);
}

.vd-carte__pied { display: flex; align-items: center; justify-content: flex-end; gap: var(--espace-s);
  flex-wrap: wrap; margin-top: var(--espace-m); }
.vd-carte__pied--separe { padding-top: var(--espace-m); border-top: 1px solid var(--bordure); }
.vd-carte__pied > .vd-carte__note { margin-inline-end: auto; text-align: start; }

/* actions rares derrière trois points en haut à droite. */
.vd-carte__menu { position: relative; margin-inline-start: auto; flex: none; }
/* hauteur compacte. */
.vd-carte__menu > summary { list-style: none; cursor: pointer;
  inline-size: var(--controle-hauteur-compacte); block-size: var(--controle-hauteur-compacte);
  display: flex; align-items: center; justify-content: center; border-radius: var(--accent-rayon, var(--courant-rayon-petit));
  color: var(--texte-attenue); font-size: var(--texte-titre); line-height: 1; }
.vd-carte__menu > summary::-webkit-details-marker { display: none; }
.vd-carte__menu > summary:hover { background: var(--panel-2, rgb(0 0 0 / .05)); color: var(--texte); }
.vd-carte__menu > summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.vd-carte__menu[open] > summary { background: var(--panel-2, rgb(0 0 0 / .05)); color: var(--texte); }
/* la liste suit son contenu: min-inline-size plancher, max pour rester à l'écran. */
.vd-carte__menu__liste { position: absolute; inset-inline-end: 0; top: calc(100% + 4px); z-index: var(--plan-surnage);
  min-inline-size: 190px; inline-size: max-content;
  max-inline-size: min(320px, calc(100dvw - 2 * var(--espace-m)));
  /* grille: entrées à largeur utile exacte. */
  display: grid; gap: var(--espace-xxxs);
  padding: 4px; border: 1px solid var(--bordure); border-radius: var(--accent-rayon, var(--courant-rayon-petit));
  background: var(--surface, #fff); box-shadow: var(--ombre-levee); }
/* hauteur courante (cible au pouce). */
.vd-carte__menu__liste button { box-sizing: border-box; display: flex; align-items: center;
  text-align: start; min-block-size: var(--controle-hauteur);
  padding-block: 0; padding-inline: var(--espace-s);
  border: 0; border-radius: var(--accent-rayon, var(--courant-rayon-petit)); background: none; cursor: pointer; font: inherit;
  font-size: var(--texte-interface); color: var(--texte); }
.vd-carte__menu__liste button:hover { background: var(--panel-2, rgb(0 0 0 / .06)); }

/* panneau frère de la barre, piloté par aria-expanded/aria-controls via accordeon.js; sans script il reste ouvert. */
.vd-filtres-repli { gap: 6px; inline-size: auto; padding-inline: var(--espace-s); }
.vd-filtres-repli[aria-expanded='true'] { background: var(--navy); border-color: var(--navy); color: #fff; }
/* compte calculé sur les filtres réellement actifs, jamais écrit à la main. */
/* [hidden] explicite: un display d'auteur l'emporterait. */
.vd-filtres__compte[hidden] { display: none; }
.vd-filtres__compte {
  /* border-box: rond pour un chiffre, s'allonge ensuite. */
  box-sizing: border-box;
  display: inline-flex; align-items: center; justify-content: center;
  min-inline-size: 18px; block-size: 18px; padding-inline: var(--espace-xs);
  font-family: var(--police-donnee); font-size: var(--texte-mention); font-weight: var(--graisse-appuyee);
  font-variant-numeric: tabular-nums; line-height: 1;
  border-radius: 999px;
  background: var(--accent); color: #fff;
}

/* le panneau contraint la largeur des champs; colonne sous 720px. */
.vd-filtres { display: flex; flex-wrap: wrap; align-items: center; gap: var(--espace-s); margin-bottom: var(--espace-m); }
.vd-filtres > * { flex: 0 1 auto; }
.vd-filtres .vd-champ__saisie { inline-size: auto; min-inline-size: 14ch; }
.vd-filtres[hidden] { display: none; }
/* rétablit le masquage d'un details fermé, battu par un display d'auteur. */

/* garde globale [hidden] !important: les feuilles produit chargées après à spécificité égale l'écraseraient. */
[hidden] { display: none !important; }

/* pont pour contrôles nus des panneaux de filtres; exclut case et radio (.vd-case); hauteur par jeton. */
.vd-filtres :is(select, input):not([type='checkbox']):not([type='radio']) {
  box-sizing: border-box;
  min-block-size: var(--controle-hauteur);
  padding-block: 0;
  padding-inline: var(--espace-m);
  border: 1px solid var(--bordure);
  border-radius: var(--courant-rayon-moyen);
  background: var(--surface-haute);
  color: var(--texte);
  font: 400 var(--texte-interface)/1 var(--police-interface);
  vertical-align: middle;
}
.vd-filtres select { cursor: pointer; }

/* modale = <dialog> natif (Échap, piège de tabulation, focus, voile). fermeture d'entête = .vd-iconbtn icône fermer. */
.vd-modale {
  /* margin:auto explicite: un reset produit *{margin:0} décentre le dialog. */
  margin: auto;
  border: 1px solid var(--bordure);
  border-radius: var(--accent-rayon, var(--courant-rayon-moyen));
  box-shadow: var(--ombre-flottante);
  background: var(--surface-haute);
  color: var(--texte);
  padding: 0;
  width: min(36rem, calc(100vw - 2 * var(--espace-l)));
  max-height: min(80vh, 44rem);
  overflow: auto;
}
.vd-modale::backdrop { background: rgb(20 21 31 / .45); }

/* plein écran: voile peint par la modale, ::backdrop transparent; jamais de display sur le dialog fermé. */
.vd-modale--pleine {
  position: fixed;
  inset: 0;
  z-index: var(--plan-flottant);
  margin: 0;
  /* border-box: le dégagement tient dans les 100%. */
  box-sizing: border-box;
  inline-size: 100%; max-inline-size: 100%;
  block-size: 100%; max-block-size: 100%;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  /* pas d'overflow ici: le contenu défile dans sa boîte, sinon deux barres. */
  /* valeur de voile unique, celle de .vd-modale::backdrop. */
  background: rgb(20 21 31 / .45);
}
.vd-modale--pleine::backdrop { background: transparent; }
.vd-modale__entete {
  display: flex;
  align-items: center;
  gap: var(--espace-m);
  padding: var(--espace-m) var(--espace-l);
  border-block-end: 1px solid var(--bordure);
}
.vd-modale__titre { margin: 0; font-size: var(--texte-titre); font-weight: var(--graisse-forte); }
.vd-modale__entete .vd-iconbtn { margin-inline-start: auto; }
.vd-modale__corps { padding: var(--espace-l); }
.vd-modale__pied {
  display: flex;
  align-items: center;
  gap: var(--espace-s);
  padding: var(--espace-m) var(--espace-l);
  border-block-start: 1px solid var(--bordure);
}
/* action qui engage en fin, secondaire avant. */
.vd-modale__pied .vd-button:last-child { margin-inline-start: auto; }
.vd-modale__pied .vd-button { margin-block-end: 0; }

/* role="status" requis. */
.vd-fugace {
  position: fixed;
  inset-block-end: var(--espace-l);
  inset-inline: 0;
  margin-inline: auto;
  width: fit-content;
  max-width: calc(100vw - 2 * var(--espace-l));
  z-index: var(--plan-flottant);
  display: flex;
  align-items: center;
  gap: var(--espace-s);
  background: var(--navy);
  color: #fff;
  font-size: var(--texte-interface);
  font-weight: var(--graisse-appuyee);
  padding: var(--espace-m) var(--espace-l);
  border-radius: var(--accent-rayon, var(--courant-rayon-moyen));
  box-shadow: var(--ombre-flottante);
  opacity: 0;
  transform: translateY(20px);
  pointer-events: none;
  transition: opacity .2s, transform .2s;
}
.vd-fugace.est-visible { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
  .vd-fugace { transition: none; }
}

/* un vide dit pourquoi et quoi faire. */
/* phrase du vide définie une fois; vide d'absence (créer) ≠ vide de filtre (revenir en arrière). */
.vd-table__vide, .vd-palette__vide, .vd-select__vide, .vd-vide__phrase {
  font-size: var(--texte-interface); color: var(--texte-attenue);
}

.vd-vide {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--espace-s);
  text-align: center;
  padding: var(--espace-xl) var(--espace-l);
  color: var(--texte-attenue);
}
.vd-vide .vd-icone { color: var(--bordure); }
.vd-vide__titre { margin: 0; font-size: var(--texte-titre); font-weight: var(--graisse-forte); color: var(--texte); }
.vd-vide__note { margin: 0; font-size: var(--texte-interface); max-width: 30rem; }

/* complète, ne porte jamais l'information seule. */
.vd-infobulle { position: relative; display: inline-flex; }
.vd-infobulle__texte {
  position: absolute;
  inset-block-end: calc(100% + 6px);
  inset-inline-start: 50%;
  translate: -50% 0;
  z-index: var(--plan-flottant);
  width: max-content;
  max-width: 16rem;
  background: var(--navy);
  color: #fff;
  /* police déclarée, pas héritée. */
  font-family: var(--police-interface);
  font-size: var(--texte-legende);
  font-weight: var(--graisse-courante);
  line-height: 1.4;
  padding: 6px 9px;
  border-radius: var(--carbone-rayon-petit);
  opacity: 0;
  pointer-events: none;
  transition: opacity .12s;
  /* content-visibility:hidden: la bulle masquée ne crée pas de débordement. */
  content-visibility: hidden;
}
.vd-infobulle:hover .vd-infobulle__texte,
.vd-infobulle:focus-within .vd-infobulle__texte,
.vd-infobulle-cible:hover > .vd-infobulle__texte,
.vd-infobulle-cible:focus-within > .vd-infobulle__texte { opacity: 1; content-visibility: visible; }
@media (prefers-reduced-motion: reduce) {
  .vd-infobulle__texte { transition: none; }
}

/* erreur: aria-invalid + message avec symbole et mots; obligation écrite en toutes lettres, pas d'astérisque seule. */
.vd-champ { display: block; margin-block-end: var(--espace-m); max-width: 34rem; }
.vd-champ__etiquette {
  display: block;
  font-size: var(--texte-interface);
  font-weight: var(--graisse-appuyee);
  color: var(--texte);
  margin-block-end: var(--espace-xs);
}
.vd-champ__requis { font-size: var(--texte-mention); font-weight: var(--graisse-courante); color: var(--texte-attenue); margin-inline-start: var(--espace-xs); }
.vd-champ__saisie {
  font: inherit;
  font-size: var(--texte-corps);
  display: block;
  inline-size: 100%;
  box-sizing: border-box;
  min-block-size: var(--controle-hauteur);
  color: var(--texte);
  background: var(--surface-haute);
  border: 1px solid var(--bordure);
  border-radius: var(--accent-rayon, var(--courant-rayon-petit));
  padding-block: 0;
  padding-inline: var(--espace-m);
}
textarea.vd-champ__saisie { padding-block: 9px; min-block-size: calc(var(--controle-hauteur) * 2); }
.vd-champ__saisie:hover { border-color: var(--texte-attenue); }
.vd-champ__saisie:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.vd-champ__saisie:disabled { background: var(--surface); color: var(--texte-attenue); cursor: not-allowed; }
/* hauteur minimale en rem, jamais figée en px. */
textarea.vd-champ__saisie { min-height: 6rem; resize: vertical; }
.vd-champ__aide { margin: var(--espace-xs) 0 0; font-size: var(--texte-legende); color: var(--texte-attenue); }
.vd-champ__erreur { margin: var(--espace-xs) 0 0; font-size: var(--texte-legende); color: var(--danger); display: flex; align-items: center; gap: var(--espace-xs); }
.vd-champ__erreur .vd-icone { flex: none; }
.vd-champ.est-en-erreur .vd-champ__saisie { border-color: var(--danger); }
.vd-champ.est-en-erreur .vd-champ__saisie:focus-visible { outline-color: var(--danger); }

/* tous les sélecteurs cherchables; natif masqué, garde la valeur. */
/* déclencheur interdit de dépasser: max-inline-size 100%, libellé tronqué. */
.vd-select { position: relative; display: inline-block; min-width: 0; max-inline-size: 100%; }
.vd-select__declencheur {
  inline-size: 100%; min-inline-size: 0;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
/* natif neutralisé (padding, bordure, marge à 0), reste dans l'arbre d'accessibilité. */
.vd-select__natif {
  /* ancré au coin par inset: ne déborde pas même si un produit lui impose un padding; ne pas monter la spécificité. */
  position: absolute;
  inset-inline-start: 0; inset-block-start: 0;
  inline-size: 1px; block-size: 1px;
  padding: 0; border: 0; margin: 0;
  overflow: hidden; clip-path: inset(50%); white-space: nowrap;
}
.vd-select__declencheur {
  box-sizing: border-box;
  min-block-size: var(--controle-hauteur);
  padding-block: 0;
  font: inherit;
  font-size: var(--texte-interface);
  text-align: start;
  color: var(--texte);
  background: var(--surface-haute);
  border: 1px solid var(--bordure);
  border-radius: var(--accent-rayon, var(--courant-rayon-petit));
  padding-inline: var(--espace-m);
  cursor: pointer;
  /* min-width borné à 100%. */
  min-width: min(8rem, 100%);
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.vd-select__declencheur:hover { border-color: var(--texte-attenue); }
.vd-select__declencheur:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.vd-select__panneau {
  position: absolute;
  inset-inline-start: 0;
  top: calc(100% + 4px);
  z-index: var(--plan-surnage);
  /* panneau max-content: largeur de la plus longue option, plancher déclencheur, plafond écran. */
  inline-size: max-content;
  min-width: 100%;
  max-width: min(22rem, 90vw);
  background: var(--surface-haute);
  border: 1px solid var(--bordure);
  border-radius: var(--accent-rayon, var(--courant-rayon-petit));
  box-shadow: var(--ombre-levee);
  padding: var(--espace-s);
}
.vd-select__panneau[hidden] { display: none; }
/* parties adressées par leur bloc (.vd-select .x) pour battre les règles génériques des produits. */
.vd-select .vd-select__champ {
  font: inherit;
  font-size: var(--texte-interface);
  width: 100%;
  box-sizing: border-box;
  color: var(--texte);
  background: var(--surface);
  border: 1px solid var(--bordure);
  border-radius: var(--accent-rayon, var(--courant-rayon-petit));
  /* hauteur compacte. */
  min-block-size: var(--controle-hauteur-compacte);
  padding-block: 0;
  padding-inline: 9px;
}
.vd-select__champ:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.vd-select__liste { max-height: 15rem; overflow-y: auto; margin-block-start: var(--espace-s); }
/* option: hauteur compacte, adressée par son bloc. */
.vd-select .vd-select__option {
  box-sizing: border-box;
  min-block-size: var(--controle-hauteur-compacte);
  display: flex;
  align-items: center;
  font: inherit;
  font-size: var(--texte-interface);
  display: block;
  width: 100%;
  text-align: start;
  color: var(--texte);
  background: transparent;
  border: 0;
  border-radius: var(--carbone-rayon-petit);
  padding: 6px 9px;
  cursor: pointer;
}
.vd-select__option:hover, .vd-select__option[data-survole='oui'] { background: color-mix(in srgb, var(--accent) 10%, transparent); }
.vd-select__option[aria-selected='true'] { font-weight: var(--graisse-forte); }
@media (pointer: coarse) { .vd-select .vd-select__option { min-block-size: 44px; padding-block: 12px; } }
/* gouttière de coche réservée même vide. */
.vd-select__coche {
  display: inline-block;
  inline-size: 1.1em;
  flex: none;
  color: var(--accent);
  font-weight: var(--graisse-forte);
}
.vd-select__vide { margin: var(--espace-s) 0 0; }
.vd-select__repli { margin: 0 0 var(--espace-s); font-size: var(--texte-legende); color: var(--alerte); }
.vd-filtres :is(select, input):focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
@media (max-width: 719px) {
  .vd-filtres { flex-direction: column; align-items: stretch; }
  .vd-filtres :is(select, input):not([type='checkbox']):not([type='radio']) { inline-size: 100%; }
}

/* vd-appbar dépréciée, gardée pour les espaces qui l'emploient encore; utiliser vd-topbar--grille. */
.vd-appbar {
  display: grid;
  grid-template-columns: 1fr minmax(0, var(--vd-appbar-centre, 460px)) 1fr;
  align-items: center;
  gap: var(--espace-m);
}
.vd-appbar__gauche { display: flex; align-items: center; gap: var(--espace-m); min-width: 0; }
.vd-appbar__centre { display: flex; align-items: center; justify-content: center; min-width: 0; }
.vd-appbar__droite { display: flex; align-items: center; justify-content: flex-end; gap: var(--espace-s); min-width: 0; }

@media (max-width: 900px) {
  .vd-appbar { grid-template-columns: auto minmax(0, 1fr) auto; gap: var(--espace-s); }
  .vd-appbar__centre { justify-content: flex-end; }
}

/* type="search", autocomplete, enterkeyhint; jamais de glyphe loupe dans le placeholder; placeholder ≠ étiquette. */
.vd-recherche { position: relative; display: flex; align-items: center; gap: var(--espace-s); }

/* lanceur = bouton qui ouvre la palette, pas un champ; affiche le raccourci; hauteur ample. */
.vd-lanceur {
  box-sizing: border-box;
  display: flex; align-items: center; gap: var(--espace-s);
  inline-size: 100%; min-inline-size: 0;
  min-block-size: var(--controle-hauteur-ample);
  padding-block: 0; padding-inline: var(--espace-m);
  border: 1px solid var(--bordure); border-radius: 999px;
  background: var(--surface-haute); color: var(--texte-attenue);
  font: 400 var(--texte-corps)/1 var(--police-interface); text-align: start; cursor: text;
  /* rogne son contenu (min-inline-size 0) au lieu de déborder. */
  overflow: hidden;
}
.vd-lanceur > * { min-inline-size: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* raccourci masqué ≤720px. */
@media (max-width: 720px) { .vd-lanceur__touche { display: none; } }
.vd-lanceur:hover { border-color: var(--texte-attenue); }
.vd-lanceur:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.vd-lanceur__invite { flex: 1 1 auto; min-inline-size: 0; overflow: hidden;
  text-overflow: ellipsis; white-space: nowrap; }
.vd-lanceur__touche {
  flex: none; font: 600 var(--texte-mention)/1 var(--police-donnee); letter-spacing: .04em;
  color: var(--texte-attenue); border: 1px solid var(--bordure); border-radius: var(--carbone-rayon-petit);
  padding: 3px var(--espace-xs);
}
/* une ligne par famille, ordre du balisage; les familles ne s'enroulent jamais ensemble. */
.vd-pilules { display: grid; gap: var(--espace-s); margin-block-start: var(--espace-s); }
.vd-pilules__famille { display: flex; flex-wrap: wrap; gap: var(--espace-xs); align-items: center; }

.vd-recherche__icone {
  position: absolute; inset-inline-start: 10px;
  display: inline-flex; color: var(--texte-attenue); pointer-events: none;
}
.vd-recherche__saisie {
  flex: 1; min-width: 0;
  font: inherit; font-size: var(--texte-corps);
  /* dégagement d'icône en propriété logique. */
  min-block-size: var(--controle-hauteur);
  padding-block: 0;
  padding-inline: var(--espace-xl) 12px;
  border: 1px solid var(--bordure);
  border-radius: var(--accent-rayon, var(--courant-rayon-petit));
  background: var(--surface-haute); color: var(--texte);
}
/* accent-color: contrôles natifs à la couleur du produit. */
.vd-champ__saisie, .vd-recherche__saisie { accent-color: var(--accent); }
.vd-recherche__saisie:hover { border-color: var(--texte-attenue); }
.vd-recherche__saisie:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
/* croix native retirée, remplacée par celle du socle; type="search" gardé. */
.vd-recherche__saisie::-webkit-search-cancel-button,
.vd-recherche__saisie::-webkit-search-decoration { -webkit-appearance: none; appearance: none; }
.vd-recherche__vider {
  position: absolute; inset-inline-end: 4px;
  inline-size: var(--controle-hauteur-compacte); block-size: var(--controle-hauteur-compacte);
}
.vd-recherche__vider[hidden] { display: none; }
.vd-recherche:has(.vd-recherche__vider:not([hidden])) .vd-recherche__saisie { padding-inline-end: 38px; }
/* role="status" requis sur le compte. */
.vd-recherche__compte { font-size: var(--texte-legende); color: var(--texte-attenue); font-variant-numeric: tabular-nums; white-space: nowrap; }

/* date bornée par min et max, bornes aussi écrites dans l'aide; base .vd-champ. */
.vd-champ__saisie[type="date"], .vd-champ__saisie[type="datetime-local"],
.vd-champ__saisie[type="month"], .vd-champ__saisie[type="week"] {
  font-variant-numeric: tabular-nums;
  /* sélecteur natif de date gardé; hauteur par jeton. */
  min-block-size: var(--controle-hauteur);
}

/* input file masqué par découpe (jamais display:none), focus visible sur la zone; glisser-déposer en plus, jamais seul. */
.vd-depot { position: relative; }
.vd-depot__saisie {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0; border: 0;
  clip-path: inset(50%);
  overflow: hidden; white-space: nowrap;
}
.vd-depot__zone {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  padding: var(--espace-l);
  border: 1px dashed var(--bordure);
  border-radius: var(--accent-rayon, var(--courant-rayon-petit));
  background: var(--surface);
  color: var(--texte-attenue);
  cursor: pointer;
  text-align: center;
}
.vd-depot__zone b { color: var(--texte); font-weight: var(--graisse-appuyee); font-size: var(--texte-corps); }
.vd-depot__regle { font-size: var(--texte-legende); }
.vd-depot__zone:hover { border-color: var(--accent); }
.vd-depot__saisie:focus-visible + .vd-depot__zone { outline: 2px solid var(--accent); outline-offset: 2px; }
.vd-depot.est-survole .vd-depot__zone { border-color: var(--accent); background: var(--surface-haute); }
.vd-depot__liste { list-style: none; margin: var(--espace-s) 0 0; padding: 0; font-size: var(--texte-interface); }
.vd-depot__liste li { display: flex; align-items: center; gap: var(--espace-s); padding: var(--espace-xs) 0; border-block-end: 1px solid var(--bordure); }
.vd-depot__liste li:last-child { border-block-end: 0; }
.vd-depot__poids { margin-inline-start: auto; color: var(--texte-attenue); font-variant-numeric: tabular-nums; }

/* aria-controls obligatoire; panneau role="tabpanel" + aria-labelledby. */
.vd-onglets {
  display: flex; gap: var(--espace-xxxs);
  border-block-end: 1px solid var(--bordure);
  /* overflow-y explicite: overflow-x seul rend y auto (barre verticale parasite). */
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
}
.vd-onglets::-webkit-scrollbar { display: none; }
.vd-onglet {
  box-sizing: border-box;
  min-block-size: var(--controle-hauteur);
  padding-block: 0;
  font: inherit; font-size: var(--texte-interface); font-weight: var(--graisse-appuyee);
  padding-inline: 14px;
  border: 0; background: transparent;
  color: var(--texte-attenue);
  cursor: pointer;
  white-space: nowrap;
  border-block-end: 2px solid transparent;
  margin-block-end: -1px;
}
.vd-onglet:hover { color: var(--texte); }
.vd-onglet:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.vd-onglet[aria-selected="true"] { color: var(--texte); border-block-end-color: var(--accent); }
/* état: graisse + aria-selected, pas la couleur seule. */
.vd-onglet[aria-selected="true"] { font-weight: var(--graisse-forte); }
.vd-panneau:not([hidden]) { padding-block-start: var(--espace-m); }

/* case enveloppée dans son étiquette: nom et cible agrandie. */
.vd-case {
  display: inline-flex; align-items: flex-start; gap: var(--espace-s);
  cursor: pointer; font-size: var(--texte-corps); line-height: 1.45;
}
.vd-case input[type="checkbox"] {
  flex: none;
  inline-size: 16px; block-size: 16px;
  margin: var(--espace-xxxs) 0 0;
  accent-color: var(--accent);
  cursor: pointer;
}
.vd-case input[type="checkbox"]:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.vd-case input[type="checkbox"]:disabled { cursor: not-allowed; }
.vd-case:has(input:disabled) { color: var(--texte-attenue); cursor: not-allowed; }
.vd-case__aide { display: block; font-size: var(--texte-legende); color: var(--texte-attenue); margin-block-start: var(--espace-xxxs); }

/* tâches: base .vd-case, texte barré coché; bouton d'archive via .vd-carte__tete__fin; saisies .vd-champ__saisie. */
.vd-taches__entete { display: flex; align-items: center; gap: var(--espace-s); font-size: var(--texte-interface); font-weight: var(--graisse-appuyee); margin-block-end: var(--espace-xs); }
.vd-taches { list-style: none; margin: 0; padding: 0; }
.vd-taches__ligne { border-block-end: 1px solid var(--bordure); padding: var(--espace-s) 0; }
.vd-taches__ligne:last-child { border-block-end: 0; }
.vd-taches__ligne .vd-case { inline-size: 100%; }
.vd-taches__ligne .vd-case input:checked ~ span { text-decoration: line-through; color: var(--texte-attenue); }
.vd-taches__ajout { display: flex; gap: var(--espace-s); flex-wrap: wrap; align-items: center; margin-block-start: var(--espace-m); }
.vd-taches__ajout > .vd-champ__saisie:first-child { flex: 1; min-inline-size: 200px; }
.vd-taches__ajout select.vd-champ__saisie { flex: none; inline-size: auto; cursor: pointer; }

/* inputmode requis sur type=number; base .vd-champ. */
.vd-champ__saisie[type="number"] {
  font-variant-numeric: tabular-nums;
  text-align: end;
  /* flèches natives visibles en permanence, place réservée. */
  padding-inline-end: 4px;
}
.vd-champ__saisie[type="number"]::-webkit-inner-spin-button { opacity: 1; margin-inline-start: 6px; }
/* largeur en ch + largeur fixe du compteur natif. */
.vd-champ__saisie[type="number"].vd-champ__saisie--court { inline-size: calc(9ch + 34px); }

/* piloté par accordeon.js (aria-expanded, aria-controls); animation par grid-template-rows, jamais max-height. */
.vd-accordeon {
  border: 1px solid var(--bordure);
  border-radius: var(--accent-rayon, var(--courant-rayon-petit));
  background: var(--surface-haute);
}
.vd-accordeon + .vd-accordeon { margin-block-start: var(--espace-s); }
.vd-accordeon__bouton {
  box-sizing: border-box;
  min-block-size: var(--controle-hauteur-ample);
  padding-block: 0;
  font: inherit;
  inline-size: 100%;
  text-align: start;
  display: flex;
  align-items: center;
  gap: var(--espace-s);
  padding-inline: var(--espace-m);
  background: none;
  color: inherit;
  border: 0;
  font-weight: var(--graisse-forte);
  font-size: var(--texte-corps);
  cursor: pointer;
}
.vd-accordeon__bouton:hover { background: var(--surface); }
.vd-accordeon__bouton:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.vd-accordeon__bouton::before {
  content: "";
  inline-size: 0; block-size: 0; flex: none;
  border-inline-start: 6px solid currentColor;
  border-block: 4px solid transparent;
  transition: transform .2s;
}
.vd-accordeon__bouton[aria-expanded="true"]::before { transform: rotate(90deg); }
.vd-accordeon__volet {
  display: grid;
  grid-template-rows: 0fr;
  overflow: hidden;
  transition: grid-template-rows .2s ease;
}
.vd-accordeon__bouton[aria-expanded="true"] + .vd-accordeon__volet { grid-template-rows: 1fr; }
/* min-block-size:0 requis sinon le volet ne se ferme pas. */
.vd-accordeon__volet > * { min-block-size: 0; }
/* le remplissage bloque 0fr: retiré à l'état replié, animé avec la piste. */
.vd-accordeon__volet > * { transition: padding .2s ease; }
.vd-accordeon__bouton[aria-expanded="false"] + .vd-accordeon__volet > * { padding-block: 0; }
.vd-accordeon__corps { padding: 0 var(--espace-m) var(--espace-m); font-size: var(--texte-interface); }
@media (prefers-reduced-motion: reduce) {
  .vd-accordeon__volet, .vd-accordeon__volet > *, .vd-accordeon__bouton::before { transition: none; }
}

/* nom de la personne dans le balisage, pas dans title. */
.vd-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  inline-size: var(--controle-hauteur-compacte); block-size: var(--controle-hauteur-compacte);
  border-radius: 999px;
  background: var(--accent);
  color: #FFF;
  font-size: var(--texte-mention);
  font-weight: var(--graisse-forte);
  letter-spacing: .02em;
  text-transform: uppercase;
  flex: none;
  user-select: none;
}
.vd-avatar img { inline-size: 100%; block-size: 100%; border-radius: inherit; object-fit: cover; }
/* empilement en margin-inline-start. */
.vd-avatar-groupe { display: inline-flex; align-items: center; }
.vd-avatar-groupe > .vd-avatar { border: 2px solid var(--surface-haute); }
.vd-avatar-groupe > .vd-avatar + .vd-avatar { margin-inline-start: -7px; }
/* « +N » sans accent produit. */
.vd-avatar--reste { background: var(--texte-attenue); }

/* nav nommé par aria-label obligatoire; dernier maillon non cliquable. */
.vd-ariane { font-size: var(--texte-legende); color: var(--texte-attenue); }
.vd-ariane ol {
  display: flex; flex-wrap: wrap; align-items: center; gap: var(--espace-xs);
  margin: 0; padding: 0; list-style: none;
}
.vd-ariane li { display: inline-flex; align-items: center; gap: var(--espace-xs); }
/* séparateur en css: jamais lu. */
.vd-ariane li + li::before { content: "/"; color: var(--bordure); }
.vd-ariane a { color: inherit; text-decoration: none; border-block-end: 1px solid transparent; }
@media (max-width: 620px) {
  /* cible tactile 24px. */
  .vd-ariane a { display: inline-flex; align-items: center; min-block-size: 24px; }
}
.vd-ariane a:hover { color: var(--texte); border-block-end-color: var(--bordure); }
.vd-ariane a:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.vd-ariane [aria-current="page"] { color: var(--texte); font-weight: var(--graisse-forte); }

/* posée sur la cible sans enveloppe; title interdit, converti par infobulle.js. */
.vd-infobulle-cible { position: relative; }
.vd-infobulle-cible > .vd-infobulle__texte { inset-block-end: calc(100% + 6px); }
.vd-infobulle-cible:hover > .vd-infobulle__texte,
.vd-infobulle-cible:focus-visible > .vd-infobulle__texte,
.vd-infobulle-cible:focus-within > .vd-infobulle__texte { opacity: 1; }
[data-vd-infobulle-input='touch'] .vd-infobulle__texte,
[data-vd-infobulle-input='mouse'] .vd-infobulle-cible:not(:hover) > .vd-infobulle__texte,
[data-vd-infobulle-input='mouse'] .vd-infobulle:not(:hover) .vd-infobulle__texte { opacity: 0 !important; visibility: hidden; content-visibility: hidden !important; }
/* bord haut non mesuré: modificateur --dessous posé à la main. */
.vd-infobulle__texte--dessous {
  inset-block-end: auto;
  inset-block-start: calc(100% + 6px);
}

/* habille Leaflet (feuille tierce chargée avant): pas de !important. */
.vd-carte-geo {
  position: relative;
  block-size: 420px;
  border: 1px solid var(--bordure);
  border-radius: var(--accent-rayon, var(--courant-rayon-moyen));
  overflow: hidden;
  background: var(--surface);
}
.vd-carte-geo--haute { block-size: 620px; }
.vd-carte-geo--basse { block-size: 260px; }
/* pleine hauteur: le parent doit avoir une hauteur. */
.vd-carte-geo--pleine { block-size: 100%; }
/* fond d'attente posé par cartepage.js (fond.eau); aucune couleur en dur ici. */
.vd-carte-geo .leaflet-container { font: inherit; background: var(--surface); }
.vd-carte-geo .leaflet-popup-content-wrapper {
  background: var(--surface-haute);
  color: var(--texte);
  border-radius: var(--accent-rayon, var(--courant-rayon-petit));
  box-shadow: var(--ombre-levee);
}
.vd-carte-geo .leaflet-popup-content { margin: var(--espace-m); font-size: var(--texte-interface); line-height: 1.45; }
.vd-carte-geo .leaflet-popup-tip { background: var(--surface-haute); }
.vd-carte-geo .leaflet-bar { border: 0; box-shadow: var(--ombre-posee); }
.vd-carte-geo .leaflet-bar a {
  background: var(--surface-haute);
  color: var(--texte);
  border-block-end-color: var(--bordure);
}
.vd-carte-geo .leaflet-bar a:hover { background: var(--surface); }
.vd-carte-geo .leaflet-bar a:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
/* couleur via --accent. */
.vd-carte-geo__marqueur {
  /* display requis: un span inline ignore ses dimensions. */
  display: inline-block;
  vertical-align: -2px;
  inline-size: 14px; block-size: 14px;
  border-radius: 999px;
  background: var(--accent);
  border: 2px solid var(--surface-haute);
  box-shadow: var(--ombre-posee);
}
.vd-carte-geo__legende {
  position: absolute;
  inset-block-end: var(--espace-s);
  inset-inline-start: var(--espace-s);
  z-index: var(--plan-flottant);
  background: var(--surface-haute);
  border: 1px solid var(--bordure);
  border-radius: var(--accent-rayon, var(--courant-rayon-petit));
  padding: var(--espace-s) var(--espace-m);
  font-size: var(--texte-legende);
}

/* cartouche frère de l'hôte Leaflet, plan de l'échelle, aucun z-index chiffré; hauteur via --vd-cartepage-retrait. */
.vd-cartepage {
  display: grid;
  grid-template-columns: 1fr minmax(300px, 30%);
  block-size: calc(100dvh - var(--vd-cartepage-retrait, 220px));
  min-block-size: 420px;
  border: 1px solid var(--bordure);
  border-radius: var(--accent-rayon, var(--courant-rayon-moyen));
  overflow: clip;
}
.vd-cartepage__carte { position: relative; block-size: 100%; }
.vd-cartepage__hote {
  position: absolute; inset: 0;
  isolation: isolate;
  block-size: 100%;
  z-index: var(--plan-contenu);
}
.vd-cartepage__colonne {
  overflow-y: auto;
  border-inline-start: 1px solid var(--bordure);
  background: var(--fond);
}
.vd-cartepage__ligne {
  display: flex; align-items: center; gap: var(--espace-xxxs);
  border-block-end: 1px solid var(--bordure);
  padding-inline-end: var(--espace-xxxs);
}
.vd-cartepage__vol {
  flex: 1; min-inline-size: 0;
  display: flex; align-items: center; gap: var(--espace-s);
  padding: var(--espace-s) var(--espace-m);
  border: 0; background: transparent; cursor: pointer;
  font: inherit; color: inherit; text-align: start;
}
.vd-cartepage__vol:hover { background: var(--surface); }
.vd-cartepage__vol:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.vd-cartepage__texte { display: grid; min-inline-size: 0; }
.vd-cartepage__nom {
  font-weight: var(--graisse-appuyee); font-size: var(--texte-interface);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.vd-cartepage__lieu { font-size: var(--texte-mention); color: var(--texte-attenue); }

/* cartouche défile dans sa boîte au-delà de la hauteur de la carte. */
.vd-cartouche {
  position: absolute;
  inset-inline-start: var(--espace-m);
  inset-block-end: var(--espace-m);
  z-index: var(--plan-releve);
  display: grid; gap: var(--espace-xs);
  max-inline-size: min(520px, calc(100% - 96px));
  max-block-size: calc(100% - 2 * var(--espace-m));
  overflow-y: auto;
  /* pointer-events:none sur la boîte, rétabli sur les enfants: sinon la carte perd la molette. */
  pointer-events: none;
}
.vd-cartouche > * { pointer-events: auto; }
.vd-cartouche__groupe { display: flex; flex-wrap: wrap; gap: var(--espace-xxs); align-items: center; }
.vd-cartouche__tuile {
  display: inline-flex; align-items: center; gap: var(--espace-xxs);
  background: var(--surface-haute);
  border: 1px solid var(--bordure);
  border-radius: var(--accent-rayon, var(--courant-rayon-petit));
  box-shadow: var(--ombre-posee);
  padding: var(--espace-xxs) var(--espace-s);
  font: var(--graisse-appuyee) var(--texte-legende) var(--police-interface);
  color: var(--texte); cursor: pointer;
}
.vd-cartouche__tuile:hover { border-color: var(--accent); color: var(--accent); }
.vd-cartouche__tuile:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.vd-cartouche__tuile--active,
.vd-cartouche__tuile[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: #fff; }
.vd-cartouche__compte { font-variant-numeric: tabular-nums; opacity: .7; }
@media (max-width: 719px) {
  .vd-cartepage { grid-template-columns: 1fr; grid-template-rows: 1fr minmax(180px, 34%); }
  .vd-cartepage__colonne { border-inline-start: 0; border-block-start: 1px solid var(--bordure); }
  /* cartouche masqué sous 720px. */
  .vd-cartouche { display: none; }
}

/* lignes .vd-champ__saisie + retrait .vd-iconbtn discret + ajout .vd-button discret; comportement dans le produit. */
.vd-multi { display: grid; gap: var(--espace-xs); }
.vd-multi__ligne { display: flex; gap: var(--espace-xs); align-items: center; }
.vd-multi__ligne > .vd-champ__saisie { flex: 1; margin-block-end: 0; }

/* désactivé: couleurs nommées, not-allowed, survol neutre; ni opacity ni pointer-events:none; aria-disabled reste tabulable. */

.vd-button:disabled, .vd-button[aria-disabled='true'],
.vd-iconbtn:disabled, .vd-iconbtn[aria-disabled='true'],
.vd-chip:disabled, .vd-chip[aria-disabled='true'],
.vd-onglet:disabled, .vd-onglet[aria-disabled='true'],
.vd-segments__part:disabled, .vd-segments__part[aria-disabled='true'],
.vd-rail__lien:disabled, .vd-rail__lien[aria-disabled='true'],

.vd-lanceur:disabled, .vd-lanceur[aria-disabled='true'],
.vd-select__declencheur:disabled, .vd-select__declencheur[aria-disabled='true'],
.vd-recherche__saisie:disabled,
.vd-barre-basse__entree:disabled, .vd-barre-basse__entree[aria-disabled='true'],
.vd-table__tri:disabled, .vd-table__tri[aria-disabled='true'],
.vd-pasapas__etape[aria-disabled='true'],
.vd-calendrier__pas:disabled, .vd-calendrier__pas[aria-disabled='true'],
.vd-etiquette__retirer:disabled, .vd-etiquette__retirer[aria-disabled='true'] {
  cursor: not-allowed;
  color: var(--texte-attenue);
  border-color: var(--bordure);
  background: var(--surface);
  box-shadow: none;
}
/* annule le survol à spécificité égale. */
.vd-button:disabled:hover, .vd-button[aria-disabled='true']:hover,
.vd-iconbtn:disabled:hover, .vd-iconbtn[aria-disabled='true']:hover,
.vd-chip:disabled:hover, .vd-chip[aria-disabled='true']:hover,
.vd-onglet:disabled:hover, .vd-onglet[aria-disabled='true']:hover,
.vd-segments__part:disabled:hover, .vd-segments__part[aria-disabled='true']:hover,
.vd-rail__lien:disabled:hover, .vd-rail__lien[aria-disabled='true']:hover,
.vd-lanceur:disabled:hover, .vd-lanceur[aria-disabled='true']:hover,
.vd-select__declencheur:disabled:hover, .vd-select__declencheur[aria-disabled='true']:hover,
.vd-champ__saisie:disabled:hover,
.vd-recherche__saisie:disabled:hover,
.vd-barre-basse__entree:disabled:hover, .vd-barre-basse__entree[aria-disabled='true']:hover,
.vd-table__tri:disabled:hover, .vd-table__tri[aria-disabled='true']:hover,
.vd-calendrier__pas:disabled:hover, .vd-calendrier__pas[aria-disabled='true']:hover,
.vd-etiquette__retirer:disabled:hover, .vd-etiquette__retirer[aria-disabled='true']:hover {
  color: var(--texte-attenue);
  border-color: var(--bordure);
  background: var(--surface);
}
/* l'étiquette enveloppante suit la saisie désactivée. */
.vd-interrupteur:has(input:disabled),
.vd-radio:has(input:disabled) { color: var(--texte-attenue); cursor: not-allowed; }
.vd-interrupteur input:disabled, .vd-radio input:disabled { cursor: not-allowed; }
/* entrée courante désactivée garde son liseré. */
.vd-rail__lien[aria-disabled='true'][aria-current='page'],
.vd-onglet[aria-disabled='true'][aria-selected='true'],
.vd-barre-basse__entree[aria-disabled='true'][aria-current='page'] {
  color: var(--texte-attenue);
}

/* valeur toujours affichée en tabular-nums; poignée 24px; règles webkit et moz séparées (sinon règle entière rejetée). */
.vd-curseur { display: flex; align-items: center; gap: var(--espace-m); }
.vd-curseur__piste {
  flex: 1 1 auto; min-inline-size: 0;
  appearance: none; -webkit-appearance: none;
  block-size: var(--vd-cible-tactile, 24px);
  background: none; cursor: pointer;
}
.vd-curseur__piste::-webkit-slider-runnable-track {
  block-size: 4px; border-radius: 999px; background: var(--surface);
  border: 1px solid var(--bordure);
}
.vd-curseur__piste::-moz-range-track {
  block-size: 4px; border-radius: 999px; background: var(--surface);
  border: 1px solid var(--bordure);
}
.vd-curseur__piste::-webkit-slider-thumb {
  appearance: none; -webkit-appearance: none;
  inline-size: var(--vd-cible-tactile, 24px); block-size: var(--vd-cible-tactile, 24px);
  margin-block-start: -11px;
  border-radius: 999px; border: 2px solid var(--surface-haute);
  background: var(--accent); cursor: grab;
  box-shadow: var(--ombre-posee);
}
.vd-curseur__piste::-moz-range-thumb {
  inline-size: var(--vd-cible-tactile, 24px); block-size: var(--vd-cible-tactile, 24px);
  border-radius: 999px; border: 2px solid var(--surface-haute);
  background: var(--accent); cursor: grab;
  box-shadow: var(--ombre-posee);
}
.vd-curseur__piste:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
.vd-curseur__piste:disabled { cursor: not-allowed; }
.vd-curseur__piste:disabled::-webkit-slider-thumb { background: var(--texte-attenue); cursor: not-allowed; }
.vd-curseur__piste:disabled::-moz-range-thumb { background: var(--texte-attenue); cursor: not-allowed; }
.vd-curseur__valeur {
  flex: none; min-inline-size: 6ch; text-align: end;
  font-family: var(--police-donnee); font-size: var(--texte-interface);
  font-variant-numeric: tabular-nums; color: var(--texte);
}
