/* ════════════════════════════════════════════════════════════════════════
   VAPO-UI — la feuille de style commune à tous les outils (v86, puis v94.2)
   ────────────────────────────────────────────────────────────────────────
   S'inspirer de Nextore, pour que tout soit uniforme et cohérent entre
   tous les outils (consigne de la v86). Jusqu'ici chaque outil avait son
   thème sombre, ses polices (sept familles en tout) et ses couleurs : on
   changeait de logiciel en changeant d'onglet.

   Désormais :
     · UN thème clair, celui de l'écran de caisse que les équipes ont sous
       les yeux toute la journée — barre noire à gauche, bleu Nextore pour ce
       qui se clique et pour les en-têtes de tableau, cartes blanches sur
       fond gris clair ;
     · UNE police (Inter), chiffres à chasse fixe partout ;
     · des jetons (--vp-…) que chaque outil reprend au lieu de ses couleurs.

   Chaque outil charge cette feuille AVANT son propre <style> : ses règles
   restent maîtresses de sa mise en page, les jetons d'ici décident des
   couleurs et des polices. La barre latérale et le bandeau de page sont
   posés par vapo-nav.js.
   ════════════════════════════════════════════════════════════════════════ */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500&display=swap');

:root{
  color-scheme: light;

  /* ── Surfaces ── */
  --vp-bg:        #edf0f4;   /* le fond de page, gris clair */
  --vp-surface:   #ffffff;   /* cartes, panneaux, tableaux */
  --vp-surface-2: #f6f8fa;   /* zones calmes, lignes alternées, champs en lecture */
  --vp-surface-3: #e8edf2;   /* survol, appuyé */
  --vp-border:    #dde2e8;
  --vp-border-2:  #c7ced7;   /* bordures de champ, séparateurs marqués */

  /* ── Texte ── */
  --vp-text:   #1f2933;
  --vp-text-2: #4f5d6b;      /* secondaire */
  --vp-text-3: #5f6a75;      /* discret : légendes, unités — 4,5:1 au moins sur blanc et sur le fond gris */

  /* ── Couleurs de sens ── texte foncé lisible sur blanc, fond pâle assorti.
     Bleu, vert, rouge, orange, turquoise et or légèrement foncés : 4,5:1 au
     moins sur blanc, sur le fond gris et sur leur fond pâle (petits textes). */
  --vp-blue:   #2a6ea6;  --vp-blue-h:  #235d8d;  --vp-blue-soft:   #e4eff8;
  --vp-green:  #197942;  --vp-green-soft:  #e1f3e8;
  --vp-red:    #c03528;  --vp-red-soft:    #fbe6e3;
  --vp-orange: #9d5809;  --vp-orange-soft: #fdf0dc;
  --vp-violet: #6a55b8;  --vp-violet-soft: #ece8f8;
  --vp-teal:   #0d7389;  --vp-teal-soft:   #def2f6;
  --vp-gold:   #836311;  --vp-gold-soft:   #f8f0d9;

  /* Les mêmes en version « remplissage » : barres de graphique, pastilles,
     jauges — là où la couleur n'a pas à porter un texte. */
  --vp-c1: #3584c6;  /* bleu    */
  --vp-c2: #ec9a35;  /* orange  */
  --vp-c3: #34a466;  /* vert    */
  --vp-c4: #8068cc;  /* violet  */
  --vp-c5: #22a5bf;  /* turquoise */
  --vp-c6: #dd5544;  /* rouge   */
  --vp-c7: #98a3af;  /* gris    */
  --vp-c8: #e3b93f;  /* jaune   */

  /* ── La barre de gauche, noire comme celle de Nextore ── */
  --vp-side-w:   232px;
  --vp-side-bg:  #111418;
  --vp-side-txt: #e9edf1;
  --vp-side-dim: #8b95a1;

  /* ── Typographie ── */
  --vp-sans: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  --vp-code: 'JetBrains Mono', ui-monospace, Menlo, Consolas, monospace;   /* collages, code */

  /* ── Formes ── */
  --vp-r:    4px;
  --vp-r-lg: 6px;
  --vp-ombre: 0 1px 2px rgba(16, 24, 40, .05);
  --vp-ombre-haute: 0 10px 30px rgba(16, 24, 40, .16);
  --vp-max: 1360px;          /* largeur maximale du contenu */
  --vp-pad: 20px 24px 80px;  /* marges intérieures du contenu */
}
@media (max-width: 700px){ :root{ --vp-pad: 14px 12px 84px; } }

/* ── Base ── */
html{ background: var(--vp-bg); -webkit-text-size-adjust: 100%; }
body{
  margin: 0 !important; padding: 0 !important;
  background: var(--vp-bg); color: var(--vp-text);
  font-family: var(--vp-sans); font-size: 14px; line-height: 1.45;
  font-variant-numeric: tabular-nums;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
}
::selection{ background: #cfe3f4; }
:focus-visible{ outline: 2px solid var(--vp-blue); outline-offset: 2px; }
a{ color: var(--vp-blue); }
textarea, pre, code, kbd{ font-family: var(--vp-code); }

/* ════════════════════════════════════════════════════════════════════════
   LA COQUILLE — barre latérale, bandeau de page, bouton Menu
   ────────────────────────────────────────────────────────────────────────
   Toutes ses règles passent par un IDENTIFIANT (#vp-side, #vp-bandeau,
   #vp-fab, #vp-voile). Les feuilles des outils se chargent après celle-ci et
   gardent des règles larges — `button:hover`, `input[type=search]`, `th`,
   `label` — qui repeignaient la barre au survol : un identifiant l'emporte
   sur elles sans `!important`.

   L'échelle des z-index :
     35          la barre latérale, en grand écran ;
     36          le bouton Menu — sous les modales des outils (40 et plus),
                 qui doivent pouvoir le recouvrir ;
     40 … 1000   ce que les outils ouvrent : barres collantes, tiroirs, modales ;
     2147482500+ le menu ouvert en tiroir sur téléphone, au-dessus de tout. */
@media (min-width: 1080px){
  html.vp-menu:not(.vp-replie){ padding-left: var(--vp-side-w); }
}

#vp-side{
  position: fixed; left: 0; top: 0; bottom: 0; width: var(--vp-side-w); z-index: 35;
  display: flex; flex-direction: column; background: var(--vp-side-bg); color: var(--vp-side-txt);
  font: 400 13px/1.35 var(--vp-sans); box-shadow: 1px 0 0 rgba(0,0,0,.25);
  transform: translateX(-100%); transition: transform .18s ease; visibility: hidden;
}
@media (min-width: 1080px){
  html.vp-menu:not(.vp-replie) #vp-side{ transform: none; visibility: visible; }
}
html.vp-tiroir #vp-side{ transform: none; visibility: visible; z-index: 2147482600; box-shadow: var(--vp-ombre-haute); }

#vp-side svg{ width: 16px; height: 16px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8;
  stroke-linecap: round; stroke-linejoin: round; }
#vp-side .vp-tete{ display: flex; align-items: center; gap: 8px; padding: 14px 12px 12px 16px; border-bottom: 1px solid #23282f; }
#vp-side .vp-marque{ flex: 1; min-width: 0; color: #fff; text-decoration: none; line-height: 1.15; display: flex; align-items: center; gap: 9px; }
#vp-side .vp-marque > span{ min-width: 0; display: flex; flex-direction: column; }
#vp-side .vp-marque b{ display: block; font-size: 13.5px; font-weight: 700; letter-spacing: .04em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#vp-side .vp-marque small{ display: block; font-size: 11px; color: var(--vp-side-dim); margin-top: 2px; }
/* Solvance — la marque (le soleil sur l'horizon), en couleur, devant le nom de la boutique. */
#vp-side .vp-marque .vp-logo{ width: 28px; height: 21px; stroke: none; flex: none; }
#vp-side .vp-marque:focus-visible{ outline: 2px solid #6fb0e6; outline-offset: 2px; border-radius: 3px; }
#vp-side .vp-replier{ all: unset; cursor: pointer; color: var(--vp-side-dim); width: 28px; height: 28px; border-radius: 4px;
  display: flex; align-items: center; justify-content: center; }
#vp-side .vp-replier:hover{ color: #fff; background: #23282f; }
#vp-side .vp-replier:focus-visible{ outline: 2px solid #6fb0e6; }

#vp-side .vp-cherche{ padding: 10px 12px; border-bottom: 1px solid #23282f; }
#vp-side .vp-cherche input{ all: unset; box-sizing: border-box; width: 100%; padding: 7px 10px; border-radius: 4px;
  background: #1d2228; color: #fff; font: 400 13px var(--vp-sans); border: 1px solid #2b3139; }
#vp-side .vp-cherche input::placeholder{ color: #77818d; }
#vp-side .vp-cherche input:focus{ border-color: #4f97d3; }

#vp-side .vp-nav{ flex: 1; overflow-y: auto; overscroll-behavior: contain; padding-bottom: 8px; }
#vp-side .vp-nav::-webkit-scrollbar{ width: 6px; } #vp-side .vp-nav::-webkit-scrollbar-thumb{ background: #2b3139; border-radius: 3px; }

/* Les rubriques : un TITRE de section, sur le fond noir de la barre, et
   sous lui la liste des outils sur fond blanc — la grammaire du menu de
   Nextore.
   v87.1 — « on ne sait pas où on est » : le titre de rubrique et l'outil
   ouvert étaient tous deux des lignes noires. Le titre devient un intitulé
   en capitales, gras, bleu-gris (8,7:1 sur la barre) : il range, il ne se
   clique pas comme un outil. L'outil ouvert est la SEULE ligne pleine en
   bleu de toute la liste. La rubrique qui le contient porte un trait bleu. */
#vp-side .vp-rub-tete{ all: unset; box-sizing: border-box; cursor: pointer; width: 100%; display: flex; align-items: center; gap: 10px;
  padding: 12px 12px 8px 16px; color: #9fb4c9; font-weight: 700; font-size: 10.5px; letter-spacing: .05em; text-transform: uppercase;
  border-left: 3px solid transparent; }
#vp-side .vp-rub-tete svg{ width: 14px; height: 14px; }
#vp-side .vp-rub-tete:hover{ color: #fff; background: #1a1f25; }
#vp-side .vp-rub-tete:focus-visible{ outline: 2px solid #6fb0e6; outline-offset: -2px; }
#vp-side .vp-rub-tete .vp-chev{ margin-left: auto; width: 12px; height: 12px; color: var(--vp-side-dim); transition: transform .15s; }
#vp-side .vp-rub.ouverte .vp-rub-tete .vp-chev{ transform: rotate(90deg); }
#vp-side .vp-rub.active > .vp-rub-tete{ color: #fff; border-left-color: #4f97d3; }
#vp-side .vp-rub.active > .vp-rub-tete .vp-chev{ color: #dbe9f5; }
#vp-side .vp-rub-corps{ display: none; background: #fff; margin: 0 0 6px; }
#vp-side .vp-rub.ouverte .vp-rub-corps{ display: block; }
#vp-side .vp-it{ display: flex; align-items: center; gap: 10px; padding: 8px 14px 8px 18px; color: #26313c; text-decoration: none;
  border-bottom: 1px solid #eceff3; font-size: 13px; }
#vp-side .vp-it svg{ color: #5d6a77; width: 15px; height: 15px; }
#vp-side .vp-it:hover{ background: #eef4fa; }
/* L'outil ouvert : la seule ligne pleine en bleu de la liste, blanc sur bleu (5,4:1), avec
   un trait plus foncé. */
#vp-side .vp-it.ici{ background: var(--vp-blue); color: #fff; font-weight: 700; box-shadow: inset 4px 0 0 #1c5687; border-bottom-color: var(--vp-blue); }
#vp-side .vp-it.ici:hover{ background: var(--vp-blue-h); }
#vp-side .vp-it.ici svg{ color: #fff; }
#vp-side .vp-it:focus-visible{ outline: 2px solid var(--vp-blue); outline-offset: -2px; }
#vp-side .vp-it .vp-note{ margin-left: auto; font-size: 10px; font-weight: 600; color: var(--vp-orange); background: var(--vp-orange-soft);
  border-radius: 3px; padding: 1px 5px; }
#vp-side .vp-it.ici .vp-note{ background: #fff; color: var(--vp-orange); }
#vp-side button.vp-it{ all: unset; box-sizing: border-box; cursor: pointer; width: 100%; display: flex; align-items: center; gap: 10px;
  padding: 8px 14px 8px 18px; color: #26313c; border-bottom: 1px solid #eceff3; font-size: 13px; }
#vp-side button.vp-it:hover{ background: #eef4fa; }
#vp-side .vp-boutiques{ display: none; background: #f6f8fa; padding: 4px 0 6px; border-bottom: 1px solid #eceff3; }
#vp-side .vp-boutiques.on{ display: block; }
#vp-side .vp-boutiques a{ display: block; padding: 5px 14px 5px 44px; color: #2f3b47; text-decoration: none; font-size: 12.5px; }
#vp-side .vp-boutiques a:hover{ background: #e8f0f8; color: var(--vp-blue-h); }
#vp-side .vp-boutiques .vp-boutiques-tete{ padding: 4px 14px 4px 44px; font-size: 11px; color: var(--vp-text-3); }
#vp-side .vp-vide{ padding: 16px; color: var(--vp-side-dim); font-size: 12.5px; }
#vp-side .vp-cache{ display: none !important; }

#vp-side .vp-pied{ border-top: 1px solid #23282f; padding: 10px 12px 12px; display: flex; flex-direction: column; gap: 8px; background: #0d1013; }
#vp-side .vp-moi{ display: flex; align-items: center; gap: 9px; min-width: 0; }
#vp-side .vp-moi .vp-compte{ margin-left: auto; flex: none; color: var(--vp-side-dim); font-size: 11.5px; font-weight: 600; text-decoration: none;
  padding: 3px 7px; border: 1px solid #2b3139; border-radius: 4px; white-space: nowrap; }
#vp-side .vp-moi .vp-compte:hover{ color: #fff; border-color: #4f97d3; }
#vp-side .vp-moi .vp-compte.ici{ color: #fff; border-color: #4f97d3; background: #1d2228; }
#vp-side .vp-moi .vp-compte:focus-visible{ outline: 2px solid #6fb0e6; outline-offset: 1px; }
#vp-side .vp-moi .vp-av{ width: 28px; height: 28px; border-radius: 50%; background: #23282f; display: flex; align-items: center;
  justify-content: center; color: #cfd6dd; flex: none; }
#vp-side .vp-moi span{ min-width: 0; display: flex; flex-direction: column; }
#vp-side .vp-moi b{ font-weight: 600; font-size: 12px; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#vp-side .vp-moi small{ font-size: 11px; color: var(--vp-side-dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#vp-side label{ all: unset; font-size: 11.5px; color: var(--vp-side-dim); }
#vp-side .vp-vue{ display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 6px 8px; font-size: 11.5px; color: var(--vp-side-dim); }
#vp-side .vp-vue select{ color-scheme: dark; min-width: 0; width: 100%; font: 500 12px var(--vp-sans); color: #fff; background: #1d2228;
  border: 1px solid #2b3139; border-radius: 4px; padding: 4px 6px; }
#vp-side .vp-vue select:focus{ border-color: #4f97d3; outline: none; }
#vp-side .vp-vue.vp-ailleurs select{ border-color: #c98a1d; background: #2a2114; }
#vp-side .vp-pied-liens{ display: flex; align-items: center; justify-content: space-between; gap: 8px; }
#vp-side .vp-sortir, #vp-side .vp-aide{ all: unset; cursor: pointer; display: flex; align-items: center; gap: 8px; color: var(--vp-side-dim); font-size: 12px; padding: 3px 0; }
#vp-side .vp-sortir:hover, #vp-side .vp-aide:hover{ color: #fff; }
#vp-side .vp-sortir:focus-visible, #vp-side .vp-aide:focus-visible{ outline: 2px solid #6fb0e6; }
#vp-side .vp-aide.ici{ color: #fff; font-weight: 600; }

/* Le bandeau de page : le nom de l'outil, toujours au même endroit. */
#vp-bandeau{ display: flex; align-items: center; gap: 10px 12px; flex-wrap: wrap; min-height: 52px; box-sizing: border-box;
  padding: 10px 24px; background: var(--vp-surface); border-bottom: 1px solid var(--vp-border); font-family: var(--vp-sans); }
/* Page publique sans session (aide, pages légales) : la marque, qui mène à la connexion. */
#vp-bandeau .vp-b-marque{ display: inline-flex; align-items: center; padding-right: 14px; margin-right: 2px; border-right: 1px solid var(--vp-border); }
#vp-bandeau .vp-b-marque img{ height: 22px; width: auto; display: block; }
#vp-bandeau .vp-b-ico{ width: 30px; height: 30px; border-radius: 6px; background: var(--vp-blue-soft); color: var(--vp-blue);
  display: flex; align-items: center; justify-content: center; flex: none; }
#vp-bandeau .vp-b-ico svg{ width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
/* Le titre garde sa ligne : la zone du nom part de sa largeur naturelle (et
   non de zéro) ; quand la vue « voir comme » et la démo ne tiennent plus à
   côté, elles passent dessous au lieu d'écraser le nom sur plusieurs lignes. */
#vp-bandeau .vp-b-txt{ display: flex; flex-direction: column; min-width: 0; flex: 1 1 auto; }
#vp-bandeau h1.vp-b-nom{ margin: 0; font: 600 17px/1.2 var(--vp-sans); color: var(--vp-text); letter-spacing: -.01em; }
#vp-bandeau .vp-b-desc{ font-size: 12.5px; color: var(--vp-text-3); margin-top: 1px; }
#vp-bandeau .vp-b-vue{ font-size: 12px; font-weight: 600; color: var(--vp-orange); background: var(--vp-orange-soft);
  border: 1px solid #f1d4a4; border-radius: 4px; padding: 4px 9px; }
#vp-bandeau .vp-b-vue a{ color: inherit; margin-left: 8px; font-weight: 500; }
#vp-bandeau .vp-b-vue-note{ font-weight: 400; }
@media (max-width: 900px){ #vp-bandeau .vp-b-vue-note{ display: none; } }
@media (max-width: 700px){
  #vp-bandeau{ padding: 8px 12px; min-height: 46px; }
  #vp-bandeau .vp-b-desc{ display: none; }
  #vp-bandeau h1.vp-b-nom{ font-size: 16px; }
  /* La vue « voir comme » passe sous le nom : côte à côte, elle l'écrasait. */
  #vp-bandeau .vp-b-vue{ flex-basis: 100%; box-sizing: border-box; }
}

/* Le bouton Menu : sur téléphone, et quand la barre est repliée. */
#vp-fab{ all: unset; box-sizing: border-box; position: fixed; left: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); z-index: 36;
  display: none; align-items: center; gap: 8px; cursor: pointer; background: var(--vp-side-bg); color: #fff; border-radius: 999px;
  padding: 10px 15px; font: 600 13px var(--vp-sans); box-shadow: 0 6px 20px rgba(16,24,40,.28); }
#vp-fab svg{ width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
#vp-fab:hover{ background: #1f252c; color: #fff; }
#vp-fab:focus-visible{ outline: 2px solid #6fb0e6; }
html.vp-menu #vp-fab{ display: inline-flex; }
@media (min-width: 1080px){ html.vp-menu:not(.vp-replie) #vp-fab{ display: none; } }
html.vp-tiroir #vp-fab{ display: none; }
/* Le lexique : un bouton discret au bout du bandeau, un panneau à droite. */
#vp-bandeau .vp-b-lex{ all: unset; box-sizing: border-box; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; flex: none;
  font: 600 12px/1 var(--vp-sans); color: var(--vp-text-2); padding: 6px 10px; border: 1px solid var(--vp-border); border-radius: var(--vp-r); background: var(--vp-surface); }
#vp-bandeau .vp-b-lex:hover{ background: var(--vp-surface-2); color: var(--vp-text); }
#vp-bandeau .vp-b-lex:focus-visible{ outline: 2px solid var(--vp-blue); outline-offset: 2px; }
#vp-bandeau .vp-b-lex svg{ width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
@media (max-width: 700px){ #vp-bandeau .vp-b-lex{ order: 1; padding: 5px 8px; } #vp-bandeau .vp-b-vue, #vp-bandeau .ds-mode{ order: 2; } }
#vp-lex-voile{ position: fixed; inset: 0; z-index: 2147482700; background: rgba(15,20,26,.45); display: none; }
#vp-lexique{ position: fixed; top: 0; right: 0; bottom: 0; width: min(440px, 100%); box-sizing: border-box; z-index: 2147482800; overflow-y: auto;
  overscroll-behavior: contain; background: var(--vp-surface); color: var(--vp-text); font: 400 14px/1.5 var(--vp-sans); padding: 0 20px 28px;
  box-shadow: var(--vp-ombre-haute); display: none; }
html.vp-lex-ouvert #vp-lexique, html.vp-lex-ouvert #vp-lex-voile{ display: block; }
#vp-lexique .vp-lex-tete{ position: sticky; top: 0; display: flex; align-items: center; justify-content: space-between; gap: 10px;
  background: var(--vp-surface); padding: 16px 0 8px; border-bottom: 1px solid var(--vp-border); }
#vp-lexique h2{ margin: 0; font: 600 17px/1.2 var(--vp-sans); }
#vp-lexique .vp-lex-fermer{ all: unset; cursor: pointer; width: 32px; height: 32px; border-radius: var(--vp-r); display: flex; align-items: center; justify-content: center;
  font: 400 24px/1 var(--vp-sans); color: var(--vp-text-2); }
#vp-lexique .vp-lex-fermer:hover{ background: var(--vp-surface-3); color: var(--vp-text); }
#vp-lexique .vp-lex-fermer:focus-visible{ outline: 2px solid var(--vp-blue); }
#vp-lexique .vp-lex-intro{ margin: 10px 0 4px; color: var(--vp-text-2); font-size: 13px; }
#vp-lexique h3{ margin: 18px 0 6px; font: 600 11.5px/1.3 var(--vp-sans); text-transform: uppercase; letter-spacing: .05em; color: var(--vp-text-3); }
#vp-lexique dl{ margin: 0; }
#vp-lexique dt{ font-weight: 600; font-size: 13.5px; margin-top: 10px; }
#vp-lexique dt:first-child{ margin-top: 0; }
#vp-lexique dd{ margin: 1px 0 0; font-size: 13px; color: var(--vp-text-2); }
@media print{ #vp-lexique, #vp-lex-voile, #vp-bandeau .vp-b-lex{ display: none !important; } }
/* La place du bouton Menu : sous 1080 px (et barre repliée), le bas de page
   reçoit une marge pour que la fin du contenu remonte au-dessus du bouton. */
@media (max-width: 1079.98px){ html.vp-menu body{ padding-bottom: calc(64px + env(safe-area-inset-bottom)) !important; } }
html.vp-menu.vp-replie body{ padding-bottom: calc(64px + env(safe-area-inset-bottom)) !important; }
#vp-voile{ position: fixed; inset: 0; z-index: 2147482500; background: rgba(15,20,26,.45); display: none; }
html.vp-tiroir #vp-voile{ display: block; }

/* v91 — « Mettre à jour » : un gros bouton en tête de la barre latérale, et sur
   téléphone un second bouton flottant, à droite. Solvance : le dépôt du soir pour le
   gérant et le responsable, le collage du jour de Mon Récap pour un conseiller. */
#vp-side .vp-maj{ display: flex; align-items: center; justify-content: center; gap: 8px; margin: 12px 12px 2px; padding: 11px 12px;
  border-radius: var(--vp-r); background: var(--vp-blue); color: #fff; text-decoration: none; font: 700 14px var(--vp-sans);
  box-shadow: 0 2px 8px rgba(47,122,184,.35); }
#vp-side .vp-maj svg{ width: 17px; height: 17px; stroke-width: 2.2; }
#vp-side .vp-maj:hover{ background: var(--vp-blue-h); color: #fff; }
#vp-side .vp-maj.ici{ box-shadow: inset 0 0 0 2px #fff, 0 2px 8px rgba(47,122,184,.35); }
#vp-side .vp-maj:focus-visible{ outline: 2px solid #6fb0e6; outline-offset: 2px; }
/* Lecture seule (abonnement suspendu ou résilié) : le bouton s'efface dans la barre. */
#vp-side .vp-maj.vp-ro{ background: #1d2228; color: #c7d0d9; box-shadow: inset 0 0 0 1px #2b3139; font-weight: 600; }
#vp-side .vp-maj.vp-ro:hover{ background: #23282f; color: #fff; }
.vp-fab-maj{ box-sizing: border-box; position: fixed; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); z-index: 36;
  display: none; align-items: center; gap: 8px; text-decoration: none; background: var(--vp-blue); color: #fff; border-radius: 999px;
  padding: 10px 16px; font: 700 13.5px var(--vp-sans); box-shadow: 0 6px 20px rgba(47,122,184,.4); }
.vp-fab-maj svg{ width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.vp-fab-maj:hover{ background: var(--vp-blue-h); color: #fff; }
.vp-fab-maj:focus-visible{ outline: 2px solid #6fb0e6; outline-offset: 2px; }
@media (max-width: 1079px){ html.vp-menu .vp-fab-maj{ display: inline-flex; } html.vp-tiroir .vp-fab-maj{ display: none; }
  /* Un bouton de page au même coin (le « haut de page » de Ma Commande) se pose au-dessus. */
  html.vp-menu:not(.vp-tiroir):has(.vp-fab-maj) #haut{ bottom: calc(64px + env(safe-area-inset-bottom)); } }
/* Le bandeau d'une mission conseillers nouvelle. */
.vp-notif{ display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 0; padding: 10px 16px; background: var(--vp-orange-soft);
  border-bottom: 1px solid #f1d4a4; color: #6b3d05; font: 500 14px/1.45 var(--vp-sans); }
.vp-notif svg{ width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 2; flex: none; }
.vp-notif span{ flex: 1 1 260px; }
.vp-notif a{ font-weight: 700; color: #8a4d06; }
.vp-notif button{ all: unset; cursor: pointer; font-size: 20px; line-height: 1; padding: 0 4px; color: #8a4d06; }
.vp-notif button:focus-visible{ outline: 2px solid var(--vp-blue); }

@media print{ #vp-side, #vp-fab, #vp-voile, #vp-bandeau, #vp-statut, .vp-fab-maj, .vp-notif{ display: none !important; } html.vp-menu{ padding-left: 0 !important; } }

/* ════════════════════════════════════════════════════════════════════════
   LES BRIQUES COMMUNES — à employer telles quelles, ou à recopier dans les
   règles propres d'un outil : c'est ce « vocabulaire » qui fait que tous
   les outils se ressemblent.
   ════════════════════════════════════════════════════════════════════════ */
.vp-page{ max-width: var(--vp-max); padding: var(--vp-pad); box-sizing: border-box; }

.vp-carte{ background: var(--vp-surface); border: 1px solid var(--vp-border); border-radius: var(--vp-r-lg);
  box-shadow: var(--vp-ombre); padding: 16px 18px; }
.vp-carte-titre{ font: 600 15px/1.3 var(--vp-sans); color: var(--vp-text); margin: 0; }
.vp-sur{ font: 600 11px/1.3 var(--vp-sans); text-transform: uppercase; letter-spacing: .05em; color: var(--vp-text-3); }
.vp-discret{ color: var(--vp-text-3); font-size: 12.5px; }

.vp-btn{ display: inline-flex; align-items: center; justify-content: center; gap: 6px; cursor: pointer; text-decoration: none;
  font: 600 13px/1.2 var(--vp-sans); padding: 7px 14px; border-radius: var(--vp-r); border: 1px solid var(--vp-border-2);
  background: var(--vp-surface); color: var(--vp-text); }
.vp-btn:hover{ background: var(--vp-surface-2); border-color: #b3bcc7; }
.vp-btn:disabled{ opacity: .5; cursor: not-allowed; }
.vp-btn-bleu{ background: var(--vp-blue); border-color: var(--vp-blue); color: #fff; }
.vp-btn-bleu:hover{ background: var(--vp-blue-h); border-color: var(--vp-blue-h); }
.vp-btn-rouge{ background: var(--vp-red); border-color: var(--vp-red); color: #fff; }
.vp-btn-petit{ font-size: 12px; padding: 4px 10px; }

.vp-champ{ font: 400 14px var(--vp-sans); color: var(--vp-text); background: var(--vp-surface); border: 1px solid var(--vp-border-2);
  border-radius: var(--vp-r); padding: 7px 10px; }
.vp-champ:focus{ outline: none; border-color: var(--vp-blue); box-shadow: 0 0 0 3px rgba(47,122,184,.16); }

.vp-table{ width: 100%; border-collapse: collapse; font-size: 13px; background: var(--vp-surface); }
.vp-table th{ background: var(--vp-blue); color: #fff; font-weight: 600; font-size: 12px; text-align: left; padding: 8px 10px; white-space: nowrap; }
.vp-table td{ padding: 7px 10px; border-bottom: 1px solid #e6eaef; }
.vp-table tbody tr:nth-child(even) td{ background: #fafbfc; }
.vp-table tbody tr:hover td{ background: #eef4fa; }

.vp-kpi{ background: var(--vp-surface); border: 1px solid var(--vp-border); border-radius: var(--vp-r-lg); padding: 12px 14px; }
.vp-kpi .vp-sur{ margin-bottom: 4px; }
.vp-kpi .vp-v{ font: 600 24px/1.15 var(--vp-sans); color: var(--vp-text); letter-spacing: -.01em; }
.vp-kpi .vp-u{ font-size: 13px; font-weight: 500; color: var(--vp-text-3); }

.vp-tag{ display: inline-flex; align-items: center; gap: 4px; font: 600 11px/1.3 var(--vp-sans); padding: 2px 7px; border-radius: 3px;
  background: var(--vp-surface-3); color: var(--vp-text-2); }
.vp-tag.ok{ background: var(--vp-green-soft); color: var(--vp-green); }
.vp-tag.ko{ background: var(--vp-red-soft); color: var(--vp-red); }
.vp-tag.att{ background: var(--vp-orange-soft); color: var(--vp-orange); }
.vp-tag.info{ background: var(--vp-blue-soft); color: var(--vp-blue); }

.vp-alerte{ background: var(--vp-blue-soft); border: 1px solid #c4dcef; border-left: 3px solid var(--vp-blue); border-radius: var(--vp-r);
  padding: 10px 14px; font-size: 13px; color: var(--vp-text); }
.vp-alerte.att{ background: var(--vp-orange-soft); border-color: #f1d4a4; border-left-color: #d98a1c; }
.vp-alerte.ko{ background: var(--vp-red-soft); border-color: #f0c3bd; border-left-color: var(--vp-red); }
.vp-alerte.ok{ background: var(--vp-green-soft); border-color: #bfe3cd; border-left-color: var(--vp-green); }

.vp-seg{ display: inline-flex; border: 1px solid var(--vp-border-2); border-radius: var(--vp-r); overflow: hidden; background: var(--vp-surface); }
.vp-seg button{ all: unset; cursor: pointer; font: 500 12.5px var(--vp-sans); padding: 6px 12px; color: var(--vp-text-2); border-right: 1px solid var(--vp-border); }
.vp-seg button:last-child{ border-right: 0; }
.vp-seg button[aria-pressed="true"], .vp-seg button.on{ background: var(--vp-blue); color: #fff; }

/* ════════════════════════════════════════════════════════════════════════
   SOLVANCE — ajouts à la coquille du portail
   ════════════════════════════════════════════════════════════════════════ */
/* La pastille d'Aujourd'hui : les missions du jour qui restent
   (posée par vapo-nav.js). Sur le bouton Menu aussi, pour le téléphone. La même,
   en orange, pour une mission conseillers nouvelle ; en bleu pâle, les missions en cours. */
.vp-pastille{ display: inline-flex; align-items: center; justify-content: center; min-width: 18px; height: 18px; box-sizing: border-box;
  padding: 0 5px; border-radius: 999px; background: var(--vp-orange); color: #fff; font: 700 11px/1 var(--vp-sans); font-variant-numeric: tabular-nums; }
#vp-side .vp-it .vp-pastille{ margin-left: auto; }
#vp-side .vp-it .vp-pastille.vp-pastille-info{ background: var(--vp-blue-soft); color: var(--vp-blue); }
#vp-side .vp-it.ici .vp-pastille{ background: #fff; color: var(--vp-blue-h); }
#vp-fab .vp-pastille{ margin-left: 2px; background: #e8962e; color: #111418; }
/* Démo et bac à sable, dans le bandeau. */
#vp-bandeau .ds-mode:empty{ display: none; }
#vp-bandeau .ds-demo{ display: inline-flex; align-items: center; flex-wrap: wrap; gap: 6px 10px; font-size: 12px; color: var(--vp-text-2);
  background: var(--vp-orange-soft); border: 1px solid #f1d4a4; border-radius: 4px; padding: 4px 9px; }
#vp-bandeau .ds-demo b{ color: var(--vp-orange); font-weight: 700; }
@media (max-width: 700px){ #vp-bandeau .ds-demo-note{ display: none; } #vp-bandeau .ds-mode{ flex-basis: 100%; } }
/* Le bandeau de statut (vapo-nav.js) : une ligne discrète sous le bandeau de page.
   Essai et lecture seule en bleu calme, paiement en attente en orange pâle ; texte
   foncé (≥ 4,5:1 sur chaque fond), jamais de rouge ni de compte à rebours. */
.vp-statut{ display: flex; align-items: center; gap: 8px 12px; flex-wrap: wrap; margin: 0; padding: 8px 24px; box-sizing: border-box;
  font: 400 13px/1.45 var(--vp-sans); color: var(--vp-text); border-bottom: 1px solid var(--vp-border); background: var(--vp-surface-2); }
.vp-statut > svg{ width: 16px; height: 16px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; color: var(--vp-blue); }
.vp-statut > span{ flex: 1 1 260px; }
.vp-statut b{ font-weight: 600; }
.vp-statut a{ font-weight: 600; color: var(--vp-blue); white-space: nowrap; }
.vp-statut button{ all: unset; cursor: pointer; font-size: 18px; line-height: 1; padding: 0 4px; color: var(--vp-text-2); }
.vp-statut button:hover{ color: var(--vp-text); }
.vp-statut button:focus-visible{ outline: 2px solid var(--vp-blue); }
.vp-statut.info{ background: var(--vp-blue-soft); border-bottom-color: #c4dcef; }
.vp-statut.att{ background: var(--vp-orange-soft); border-bottom-color: #f1d4a4; color: #6b3d05; }
.vp-statut.att > svg{ color: #8a4d06; }
.vp-statut.att a{ color: #8a4d06; }
.vp-statut.ro{ box-shadow: inset 3px 0 0 var(--vp-blue); }
@media (max-width: 700px){ .vp-statut{ padding: 8px 12px; } }
