/* V5 · FINITION DES BOUTONS (17/10/2026, avant la publication de l'appli de bureau ; demande de Lucas : « améliore les boutons
   de la version PC »). Relevé fait sur toutes les pages du compte démo (150 boutons) :
   - dans le bandeau, les boutons secondaires (« Toutes les fiches », « Prix à revoir », tri, filtres) avaient un fond à 3 %
     sans bord : on les distinguait à peine de la barre ;
   - les petits boutons de contenu (« Tout expédier », « Étiquette », « Ajouter des photos ») descendaient à 20 px et 11 px ;
   - l'action principale violette n'avait aucun relief.
   Règle : un bouton secondaire = fond neutre visible + filet fin (macOS « Bordered ») ; l'action principale = violet plein
   avec un reflet clair en haut et une ombre douce ; 26 px au moins pour tout ce qui se clique dans le contenu, 12,5 px de texte.
   Chargée juste avant formes.css (qui reste la dernière feuille V5, sur PC) : la V5 l'emporte toujours sur les anciennes feuilles (couche « ancien »). */
/* couleurs : jetons --v5-filet-bouton, --v5-relief-principal, --v5-relief-enfonce (css/v5/tokens.css, clair et sombre) */

/* ---- bandeau : boutons secondaires visibles, avec filet ---- */
html.v5 .v5-barre :is(.v5-btn:not(.v5-btn-principal):not(.v5-barre-nu), .v5-segmente, .v5-barre-groupe, .v5-groupe){
  background: var(--v5-rempli-2); box-shadow: var(--v5-filet-bouton);
}
html.v5 .v5-barre .v5-btn:not(.v5-btn-principal):not(.v5-barre-nu):hover{ background: var(--v5-rempli-1); }
html.v5 .v5-barre .v5-btn:not(.v5-btn-principal):not(.v5-barre-nu):is(:active, [aria-expanded="true"], [aria-pressed="true"]){ background: var(--v5-bouton-presse); }
/* les boutons À L'INTÉRIEUR d'un groupe ou d'un segmenté restent sans fond : c'est le groupe qui porte le filet */
html.v5 .v5-barre :is(.v5-barre-groupe, .v5-groupe) .v5-btn{ background: none; box-shadow: none; }

/* ---- action principale : violet plein, reflet en haut, ombre douce ; enfoncée = sans reflet ---- */
html.v5 :is(.v5-btn-principal, button.primary, a.primary){ box-shadow: var(--v5-relief-principal); }
html.v5 :is(.v5-btn-principal, button.primary, a.primary):active{ box-shadow: var(--v5-relief-enfonce); }
html.v5 :is(.v5-btn-principal, button.primary, a.primary):disabled{ box-shadow: none; }

/* ---- boutons secondaires du contenu (gris, liste déroulante, « ghost ») : même filet ---- */
html.v5 :is(.v5-btn-gris, .v5-btn-popover, button.ghost, a.ghost, label.ghost){ box-shadow: var(--v5-filet-bouton); }

/* ---- petits boutons : jamais sous 24 px, texte de 12 px ---- */
html.v5 .v5-btn-s{ height: 24px; padding: 0 10px; font-size: var(--v5-t-12); }
html.v5 .v5-btn-icone.v5-btn-s{ width: 24px; padding: 0; }

/* Aujourd'hui : « Tout expédier » (action du bloc, violet) et « Étiquette / Imprimer » (secondaire) */
html.v5 #aj-corps .aj-mini{ display: inline-flex; align-items: center; height: 26px; padding: 0 12px; border: 0; border-radius: var(--v5-r-presse);
  font-size: 12.5px; font-weight: 600; line-height: 1; white-space: nowrap; cursor: default; }
html.v5 #aj-corps .aj-mini.primary{ background: var(--v5-violet); color: var(--v5-sur-violet); box-shadow: var(--v5-relief-principal); }
html.v5 #aj-corps .aj-mini.primary:hover{ background: var(--v5-violet-survol); }
html.v5 #aj-corps .aj-mini.ghost{ background: var(--v5-rempli-2); color: var(--v5-texte); box-shadow: var(--v5-filet-bouton); }
html.v5 #aj-corps .aj-mini.ghost:hover{ background: var(--v5-rempli-1); }

/* Bibliothèque : « Ajouter des photos » est une action, pas un lien gris */
html.v5 .pi-ajouter{ display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 12px; border-radius: var(--v5-r-presse);
  background: var(--v5-rempli-2); box-shadow: var(--v5-filet-bouton); color: var(--v5-texte); font-size: 12.5px; font-weight: 550; white-space: nowrap; cursor: default; }
html.v5 .pi-ajouter:hover{ background: var(--v5-rempli-1); }
html.v5 .pi-ajouter svg{ width: 14px; height: 14px; }

/* transitions communes, sans bouger les boutons (pas de zoom, comme macOS) */
html.v5 :is(.v5-btn, button.primary, button.ghost, .aj-mini, .pi-ajouter){ transition: background-color .15s, box-shadow .15s, color .15s, filter .15s; }

/* 17/10 (Lucas : « pas besoin de ronds autour des flèches et du bouton de la barre latérale ») : barre repliée, les outils de
   fenêtre restent des symboles seuls, comme dans l'en-tête de la barre latérale ; un léger fond au survol seulement */
html.v5 .v5-barre .v5-fenetre-outils .v5-fenetre-nav .v5-btn:not(#_){ background: none; box-shadow: none; }
html.v5 .v5-barre .v5-fenetre-outils .v5-fenetre-nav .v5-btn:not(#_):hover{ background: var(--v5-survol); }
html.v5 .v5-barre .v5-fenetre-outils .v5-fenetre-nav .v5-btn:not(#_):active{ background: var(--v5-presse); }
html.v5 .v5-barre .v5-fenetre-outils .v5-fenetre-nav .v5-btn:not(#_):disabled{ background: none; }
/* 17/10 (Lucas : « avant c'était une seule capsule avec un plus et un moins ») : dans un groupe de la barre (zoom…), seule la
   capsule porte le fond et le filet ; les boutons à l'intérieur sont nus, un petit rond n'apparaît qu'au survol et au clic */
html.v5 .v5-barre .v5-groupe .v5-btn:not(#_){ background: none; box-shadow: none; }
html.v5 .v5-barre .v5-groupe .v5-btn:not(#_):hover{ background: var(--v5-survol); }
html.v5 .v5-barre .v5-groupe .v5-btn:not(#_):active{ background: var(--v5-presse); }

/* 18/10 (Lucas : « pas de rond autour des trois points, mets-les en vertical, corrige ce genre de bug partout ») : tout bouton qui ne
   porte que l'icône « ⋮ » (menus d'une ligne, d'une carte, de la barre) est un symbole seul ; un léger fond au survol seulement */
html.v5 button:has(> svg:only-child > circle[cx="12"][cy="5"] + circle[cx="12"][cy="12"]):not(#_):not(#_){ border: 0; background: none; box-shadow: none; }
html.v5 button:has(> svg:only-child > circle[cx="12"][cy="5"] + circle[cx="12"][cy="12"]):not(#_):not(#_):hover{ background: var(--v5-survol); }
html.v5 button:has(> svg:only-child > circle[cx="12"][cy="5"] + circle[cx="12"][cy="12"]):not(#_):not(#_):is(:active, [aria-expanded="true"]){ background: var(--v5-presse); }

/* 18/10 (Lucas : « croix avec un rond autour, et Fermer au survol », puis « le rond seulement au survol, et bien centré ») : toutes les
   croix de fermeture (fenêtres, panneaux, tiroirs, inspecteur) sont une croix seule, centrée au pixel ; un rond apparaît au survol ; la bulle « Fermer » est posée par js/v5/ui.js */
html.v5 :is(.detail-close, .tiroir-x, .abx-panel-x, .sel-close-btn, .search-overlay-close, .vt-drawer-close, .v5-dialogue-fermer, .v5-btn-icone[aria-label="Fermer"], button[aria-label="Fermer"]):not(#_):not(#_):not(#_):not(#_){
  display: inline-grid; place-items: center; width: 28px; height: 28px; min-width: 28px; padding: 0; border: 0; border-radius: 50%;
  background: none; color: var(--v5-texte-2); box-shadow: none; filter: none; line-height: 0; font-size: 0;   /* 18/10 : rond seulement au survol */
}
html.v5 :is(.detail-close, .tiroir-x, .abx-panel-x, .sel-close-btn, .search-overlay-close, .vt-drawer-close, .v5-dialogue-fermer, .v5-btn-icone[aria-label="Fermer"], button[aria-label="Fermer"]):not(#_):not(#_):not(#_):not(#_):hover{ background: var(--v5-rempli-2); color: var(--v5-texte); }
html.v5 :is(.detail-close, .tiroir-x, .abx-panel-x, .sel-close-btn, .search-overlay-close, .vt-drawer-close, .v5-dialogue-fermer, .v5-btn-icone[aria-label="Fermer"], button[aria-label="Fermer"]):not(#_):not(#_):not(#_):not(#_) svg{ display: block; width: 14px; height: 14px; margin: 0; }

/* 18/10 : onglets segmentés trop larges pour la place (écran étroit) : ils défilent toujours, mais sans barre de défilement visible
   (elle dessinait un trait en plus sous les onglets, la « double barre ») */
html.v5 :is(.segmented, .v5-segmente):not(#_){ scrollbar-width: none; }
html.v5 :is(.segmented, .v5-segmente)::-webkit-scrollbar{ display: none; }
