/* V5 · PAGES ARTICLES, CONTACTS, BIBLIOTHÈQUE, ABONNEMENT (PC) — aux cotes du kit Apple « macOS 27 ».
   Articles : vue en liste du Finder (en-tête de colonnes, lignes de 40 arrondies, une sur deux teintée).
   Contacts : deux colonnes façon Contacts / Mail (liste à gauche, fiche à droite en groupe de lignes).
   Bibliothèque : onglets en contrôle segmenté, modèles en groupe de lignes (vignette, nom, « Par défaut », actions).
   Abonnement : groupes de lignes des Réglages (formule, jauge de crédits, changer de formule, barème repliable).
   Présentation seulement : js/articles.js, js/contacts.js, js/prompts-images.js, js/galerie.js, js/abonnement.js ne changent pas. */

/* ================================================================== ARTICLES
   (:where(#article-list) : pas de spécificité d'identifiant sur les lignes, pour que la sélection de css/v5/selection.css passe devant) */
html.v5 #view-list{ box-sizing: border-box; max-width: none; padding: 12px 24px 60px; }   /* 01/11 : 24 px comme le grand titre */
html.v5 .article-table-head{ position: sticky; top: 0; z-index: 2; min-height: 28px; margin: 0; padding: 0 10px; background: var(--v5-fond); border: 0; box-shadow: inset 0 calc(-1 * var(--v5-trait-fort)) 0 var(--v5-separateur); }
html.v5 .article-table-head span{ font-size: var(--v5-t-11); font-weight: var(--v5-g-fort); line-height: 14px; letter-spacing: normal; text-transform: none; color: var(--v5-texte-2); }
html.v5 #article-list{ margin: 4px 0 0; padding: 0; border: 0; border-radius: 0; background: none; box-shadow: none; }
html.v5 :where(#article-list) .article-item{ min-height: 40px; margin: 0; padding: 2px 10px; border: 0; border-radius: var(--v5-r-sel); background: none; box-shadow: none; outline-offset: -3px; font-size: var(--v5-t-13); color: var(--v5-texte); cursor: default; }
html.v5 :where(#article-list) .article-item:nth-child(even){ background: var(--v5-rempli-4); }
html.v5 #article-list .item-main{ display: flex; align-items: center; gap: 10px; min-width: 0; }
html.v5 #article-list .thumb-wrap{ flex: none; width: 28px; height: 28px; border-radius: var(--v5-r-mini); background: var(--v5-rempli-2); overflow: hidden; }
html.v5 #article-list .thumb-wrap img{ width: 100%; height: 100%; border-radius: 0; object-fit: cover; }
/* 25/10 (audit, P3) : sans photo, l'initiale de l'article sur fond gris (comme dans Messages) au lieu d'un carré noir ; la photo, quand elle existe, la recouvre */
html.v5 #article-list .thumb-wrap{ position: relative; display: grid; place-items: center; background: var(--v5-rempli-3); }
html.v5 #article-list .thumb-wrap::before{ content: attr(data-initiale); color: var(--v5-texte-2); font: var(--v5-g-fort) var(--v5-t-12)/1 var(--v5-police); }
html.v5 #article-list .thumb-wrap img{ position: absolute; inset: 0; }
html.v5 #article-list .thumb-wrap img[src=""]{ display: none; }
html.v5 #article-list .meta .n{ font-size: var(--v5-t-13); font-weight: var(--v5-g-normal); line-height: 16px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
html.v5 #article-list .col{ font-size: var(--v5-t-13); color: var(--v5-texte-2); font-variant-numeric: tabular-nums; }
html.v5 #article-list :is(.c-revente, .c-achat){ color: var(--v5-texte); font-weight: var(--v5-g-normal); }
html.v5 #article-list .c-revente b, html.v5 #article-list .c-revente strong{ font-weight: var(--v5-g-moyen); }
html.v5 .col-marge{ margin: 0; font-weight: var(--v5-g-moyen); }
html.v5 .col-marge.pos{ color: var(--v5-vert-texte); }
html.v5 .col-marge.neg{ color: var(--v5-rouge); }
html.v5 .achat-ok{ color: var(--v5-texte-2); }
html.v5 #article-list .row-menu-btn{ opacity: 0; }
html.v5 :where(#article-list) .article-item:is(:hover, :focus-within, .selected) .row-menu-btn, html.v5 #article-list .row-menu-btn[aria-expanded="true"]{ opacity: 1; }

/* ================================================================== CONTACTS */
html.v5 #view-contacts{ box-sizing: border-box; max-width: none; margin: 0; padding: 0; }
html.v5 #view-contacts .ct-split{ display: grid; grid-template-columns: var(--v5-liste-l) minmax(0, 1fr); gap: 0; align-items: stretch; min-height: calc(100vh - var(--v5-barre-h)); }
html.v5 #contacts-list{ box-sizing: border-box; width: 100%; max-width: none; min-width: 0; margin: 0; justify-self: stretch; padding: 8px; box-shadow: inset calc(-1 * var(--v5-trait-fort)) 0 0 var(--v5-separateur); }
html.v5 .ct-ligne{ position: relative; display: grid; grid-template-columns: 32px minmax(0, 1fr) auto; align-items: center; gap: 10px; min-height: 44px; padding: 0 10px; border-radius: var(--v5-r-sel); box-shadow: none; --v5-focus-decalage: -3px; }
html.v5 .ct-ligne + .ct-ligne{ box-shadow: none; }
html.v5 .ct-avatar{ width: 32px; height: 32px; border-radius: 50%; background: var(--v5-rempli-1); color: var(--v5-texte-2); font-size: var(--v5-t-13); font-weight: var(--v5-g-fort); }
html.v5 .ct-avatar--grand{ width: 56px; height: 56px; font-size: var(--v5-t-22); }
html.v5 .ct-nom{ font-size: var(--v5-t-13); font-weight: var(--v5-g-moyen); }
html.v5 .ct-c{ padding: 0; background: none; font-family: var(--v5-police-mono); font-size: var(--v5-t-11); color: var(--v5-texte-3); }
html.v5 #view-contacts .ct-detail{ position: static; box-sizing: border-box; min-width: 0; padding: 28px 40px 60px; }
html.v5 #view-contacts .ct-detail > *{ max-width: 560px; margin-left: auto; margin-right: auto; }
html.v5 .ct-tete{ display: flex; flex-direction: column; align-items: center; gap: 8px; margin-bottom: 22px; text-align: center; }
html.v5 .ct-tete h3{ margin: 0 0 2px; font-size: var(--v5-t-17); font-weight: var(--v5-g-gras); line-height: var(--v5-i-17); }
html.v5 .ct-vide{ padding: 80px 0; font-size: var(--v5-t-13); color: var(--v5-texte-3); }
html.v5 .ct-supprimer{ display: block; height: var(--v5-ctrl-h); margin-top: 4px; padding: 0 14px; border: 0; border-radius: var(--v5-r-ctrl); background: var(--v5-rouge-doux); color: var(--v5-rouge); font: var(--v5-g-moyen) var(--v5-t-13)/16px var(--v5-police); cursor: default; }
html.v5 .ct-supprimer:hover{ text-decoration: none; filter: brightness(.95); }
/* colis partagés avec le contact (js/v5/pages/contacts.js) */
html.v5 .ct-partage-titre{ margin-top: 22px; }
html.v5 .ct-partage-n{ margin-left: 4px; font-weight: var(--v5-g-normal); color: var(--v5-texte-3); }
html.v5 .ct-partage{ margin-bottom: 4px; }
html.v5 #view-contacts .ct-supprimer{ margin-top: 22px; }
/* ajout d'un contact : petit formulaire en groupe */
html.v5 .ct-ajout{ margin: 8px; padding: 10px 12px; border: 0; border-radius: var(--v5-r-groupe); background: var(--v5-fond-groupe); }

/* ================================================================== BIBLIOTHÈQUE */
html.v5 #view-biblio{ box-sizing: border-box; max-width: none; padding: 16px 24px 60px; }
/* 25/10 (audit, P2) : une liste prend toute la largeur, comme Annonces et Colis */
html.v5 #prompts-images-body{ max-width: none; margin: 0; }
html.v5 .pi-onglets{ margin: 0 0 16px; }
html.v5 .pi-depot{ margin: 0; padding: 0; border: 0; border-radius: 0; background: none; box-shadow: none; }
html.v5 .pi-liste{ display: flex; flex-direction: column; gap: 0; margin: 0; border: 0; }
html.v5 .pi-item{ position: relative; margin: 0; padding: 8px 12px; border: 0; border-radius: 0; background: var(--v5-fond-groupe); }
/* ligne cochée : c'est une ligne choisie, dessinée par css/v5/selection.css ; dépliée (en cours de modification), elle garde une teinte pour que ses champs restent lisibles */
html.v5 .pi-item.sel.pi-deplie{ background: var(--v5-violet-doux); }
/* barre « N sélectionnés » : elle ne touche plus la première ligne (« Auto (IA) ») */
html.v5 .pi-carte-tete{ margin: 0 0 10px; }
html.v5 .pi-item + .pi-item::before{ content: ""; position: absolute; top: 0; left: 64px; right: 12px; height: 1px; background: var(--v5-separateur); }
html.v5 .pi-item:first-child{ border-top-left-radius: var(--v5-r-groupe); border-top-right-radius: var(--v5-r-groupe); }
html.v5 .pi-item:last-child{ border-bottom-left-radius: var(--v5-r-groupe); border-bottom-right-radius: var(--v5-r-groupe); }
/* « Auto (IA) » : un groupe à part, au-dessus de la liste */
html.v5 .pi-item.pi-special{ margin-bottom: 14px; border: 0; border-radius: var(--v5-r-groupe); background: var(--v5-fond-groupe); }
html.v5 .pi-item.pi-special + .pi-item{ border-top-left-radius: var(--v5-r-groupe); border-top-right-radius: var(--v5-r-groupe); }
html.v5 .pi-item.pi-special + .pi-item::before{ content: none; }
html.v5 .pi-tete{ display: flex; align-items: center; gap: 10px; min-height: 40px; }
html.v5 .pi-vignette-tete{ width: 40px; height: 40px; border-radius: var(--v5-r-surface); background: var(--v5-rempli-2); color: var(--v5-texte-2); }
html.v5 .pi-nom{ flex: 1; min-width: 0; padding: 0; border: 0; background: none; text-align: left; font: var(--v5-g-moyen) var(--v5-t-13)/16px var(--v5-police); color: var(--v5-texte); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; cursor: default; }
html.v5 .pi-tete:has(.pi-aide) .pi-nom{ flex: none; max-width: 45%; }
html.v5 .pi-aide{ flex: 1; min-width: 0; font-size: var(--v5-t-12); color: var(--v5-texte-2); }
html.v5 .pi-compte{ padding: 0; border: 0; background: none; font-size: var(--v5-t-12); color: var(--v5-texte-3); cursor: default; }
html.v5 .pi-compte.pi-compte-alerte{ color: var(--v5-orange); font-weight: var(--v5-g-moyen); }   /* sans pastille (15/10) */
html.v5 :is(.sel-defaut, .ab4-tag){ display: inline-flex; align-items: center; flex: none; height: 18px; margin: 0; padding: 0 7px; border: 0; border-radius: var(--v5-r-capsule); background: var(--v5-rempli-2); color: var(--v5-texte-2); font-size: var(--v5-t-11); font-weight: var(--v5-g-moyen); }
/* « Définir par défaut » n'apparaît plus au survol : l'action est dans le menu « … » de la ligne et au clic droit (js/v5/selection.js) */
html.v5 .pi-faire-defaut{ display: none; }
/* 22/10 (Lucas) : plus de bouton « Ajouter des photos » sur la ligne : on ajoute au clic droit ou par « … » (« Ajouter des photos… »),
   ou en glissant les photos sur la ligne. Le champ de fichier reste dans la ligne (caché) : c'est lui que le menu ouvre. */
html.v5 label.pi-ajouter{ display: none; }
html.v5 .pi-compte{ font-variant-numeric: tabular-nums; }
html.v5 :is(.pi-depot.survol, .pi-item.pi-visuel.survol){ outline: 2px dashed var(--v5-violet); outline-offset: -2px; border-radius: var(--v5-r-groupe); }
html.v5 .pi-prompt{ font-family: var(--v5-police-mono); font-size: var(--v5-t-12); }

/* ================================================================== ABONNEMENT */
html.v5 #view-abonnement{ box-sizing: border-box; max-width: none; padding: 22px 40px 60px; }
html.v5 #subscription-app{ max-width: 640px; margin: 0 auto; }
html.v5 #subscription-app:has(.abx-stats, .abx-table, .abx-split){ max-width: 1120px; }   /* tableau de bord administrateur (cartes de chiffres, tableau des comptes) : il lui faut la largeur, sinon il est coupé à droite */
html.v5 :is(#subscription-app, #subscription-settings) > .card{ padding: 0; background: none; }
/* .ab4-statut : pastille d'état commune (css/v5/primitives.css) */
html.v5 .ab4-usage{ align-items: flex-end; gap: 5px; min-width: 160px; }
html.v5 .ab4-nb{ font-size: var(--v5-t-13); font-weight: var(--v5-g-fort); font-variant-numeric: tabular-nums; }
html.v5 .ab4-nb small{ font-size: var(--v5-t-12); font-weight: var(--v5-g-normal); color: var(--v5-texte-3); }
/* jauge de crédits : progression du système (6 px, capsule, accent ; orange puis rouge près du plafond) */
html.v5 .ab4-usage .ab-meter{ display: block; width: 160px; height: 6px; border-radius: 3px; background: var(--v5-rempli-1); overflow: hidden; }
html.v5 .ab4-usage .ab-meter > span{ display: block; height: 100%; border-radius: 3px; background: var(--v5-violet); }
html.v5 .ab4-usage.is-moyen .ab-meter > span{ background: var(--v5-orange); }
html.v5 .ab4-usage.is-haut .ab-meter > span{ background: var(--v5-rouge-plein); }
html.v5 .ab4-tag{ padding: 0; border-radius: 0; background: none; color: var(--v5-violet-texte); }   /* « Actuelle » : le mot en violet, sans pastille (15/10) */
html.v5 .ab4-bareme{ margin: 0 0 20px; padding: 0 12px; border-radius: var(--v5-r-groupe); background: var(--v5-fond-groupe); }
html.v5 .ab4-bareme > summary{ display: flex; align-items: center; gap: 8px; height: 40px; padding: 0; list-style: none; font-size: var(--v5-t-13); font-weight: var(--v5-g-normal); color: var(--v5-texte); cursor: default; }
html.v5 .ab4-bareme[open] > summary{ box-shadow: inset 0 calc(-1 * var(--v5-trait-fort)) 0 var(--v5-separateur); }
html.v5 .ab-bareme{ margin: 0; padding: 0; border: 0; background: none; }
html.v5 .ab-bareme-ligne{ display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding: 8px 0; border: 0; box-shadow: inset 0 calc(-1 * var(--v5-trait-fort)) 0 var(--v5-separateur); }
html.v5 .ab-bareme-quoi{ font-size: var(--v5-t-13); color: var(--v5-texte); }
html.v5 .ab-bareme-detail{ font-size: var(--v5-t-12); line-height: 15px; color: var(--v5-texte-2); }
html.v5 .ab-bareme-prix{ flex: none; text-align: right; font-size: var(--v5-t-13); font-variant-numeric: tabular-nums; }
html.v5 .ab-bareme-prix b{ font-weight: var(--v5-g-fort); }
html.v5 .ab-bareme-prix span{ display: block; font-size: var(--v5-t-11); color: var(--v5-texte-3); }
html.v5 .ab-bareme-exemple, html.v5 .ab4-bareme > .status-line{ margin: 8px 0; font-size: var(--v5-t-12); color: var(--v5-texte-2); }

/* ================================================================== chargement d'une page : indicateur d'activité du système, sans bandeau coloré */
html.v5 .status-line.vt-chargement, html.v5 .card:has(> .vt-chargement){ background: none; border: 0; box-shadow: none; animation: none; }
html.v5 .vt-chargement{ gap: 8px; min-height: 120px; font-size: var(--v5-t-13); color: var(--v5-texte-2); }

/* ---- Abonnement : comparatif des formules (js/abonnement.js, abComparatif) — un tableau à quatre colonnes, la formule du compte en évidence */
html.v5 .abc-table{ border-radius: var(--v5-r-groupe); box-shadow: inset 0 0 0 var(--v5-trait-fort) var(--v5-separateur); overflow: hidden; }
html.v5 .abc-ligne{ display: grid; grid-template-columns: minmax(0, 1.5fr) repeat(4, minmax(0, 1fr)); align-items: center; min-height: 34px; box-shadow: inset 0 calc(-1 * var(--v5-trait-fort)) 0 var(--v5-separateur); font-size: var(--v5-t-13); }
html.v5 .abc-ligne:last-child{ box-shadow: none; }
html.v5 .abc-lib{ padding: 7px 12px; color: var(--v5-texte); }
html.v5 .abc-val{ align-self: stretch; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 7px 8px; text-align: center; color: var(--v5-texte-2); font-variant-numeric: tabular-nums; }
html.v5 .abc-val.abc-moi{ background: var(--v5-rempli-4); color: var(--v5-texte); }   /* ta formule : colonne en gris neutre (le violet reste aux actions, à la sélection et au focus) */
html.v5 .abc-tete .abc-val b{ font-weight: var(--v5-g-fort); color: var(--v5-texte); }
html.v5 .abc-tete .abc-val small{ font-size: var(--v5-t-11); color: var(--v5-texte-3); }
html.v5 .abc-oui{ color: var(--v5-vert-texte); font-weight: var(--v5-g-fort); }
html.v5 .abc-non{ color: var(--v5-texte-inactif); }
html.v5 #subscription-app:has(.abc){ max-width: 760px; }

/* ---- Abonnement, vue administrateur : elle s'adapte à la place disponible (fenêtre réduite, barre latérale ouverte).
   Le tableau des comptes imposait 1 080 px : toute la page s'élargissait et se coupait à droite. La page devient un
   conteneur ; en dessous de 900 px le tableau garde l'essentiel (compte, formule, statut, consommation), en dessous de
   600 px la formule s'efface aussi, et les chiffres du haut passent sur deux colonnes. Rien ne déborde plus. */
html.v5 #subscription-app{ container: abonnement / inline-size; }
html.v5 :is(.abx, .abx > div, #ab-admin-content, .abx-pane, .abx-table, .abx-grid){ min-width: 0; max-width: 100%; }
html.v5 .abx-stats > div{ min-width: 0; }
html.v5 .abx-stats :is(span, strong, em){ overflow-wrap: anywhere; }
@container abonnement (max-width: 900px){
  html.v5 .abx-stats, html.v5 .abx-stats-4{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
  html.v5 .abx-stats > div{ border: 0; box-shadow: inset var(--v5-trait-fort) 0 0 var(--v5-separateur), inset 0 var(--v5-trait-fort) 0 var(--v5-separateur); }
  html.v5 .abx-plans{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
  html.v5 .abx-split{ grid-template-columns: minmax(0, 1fr); }
  html.v5 .abx-toolbar{ flex-wrap: wrap; }
  html.v5 .abx-searchgroup{ flex: 1 1 260px; min-width: 0; }
  html.v5 .abx-searchgroup .abx-search{ flex: 1; min-width: 0; max-width: none; }
  html.v5 .abx-grid .abx-item, html.v5 .abx-grid .abx-row{ min-width: 0; }
  html.v5 .abx-grid .abx-row{ grid-template-columns: minmax(0, 1.5fr) 92px 104px minmax(0, 1fr) 32px; }
  html.v5 .abx-grid .abx-row > :is(:nth-child(2), :nth-child(5), :nth-child(7)){ display: none; }
  html.v5 .abx-grid .abx-row :is(.abx-who, .abx-use){ grid-column: auto; }
  html.v5 .abx-grid .abx-row > *{ padding: 0 10px; }
  html.v5 .abx-req{ grid-template-columns: minmax(0, 1fr) auto; }
  html.v5 .abx-assign{ grid-template-columns: minmax(0, 1fr); }
}
@container abonnement (max-width: 600px){
  html.v5 .abx-grid .abx-row{ grid-template-columns: minmax(0, 1.3fr) 96px minmax(0, 1fr) 28px; }
  html.v5 .abx-grid .abx-row > :nth-child(3){ display: none; }
}

/* ---- Abonnement, vue administrateur : la recherche est un vrai champ de recherche (un seul cadre, loupe dedans) à côté
   de son menu « Tous les champs », au lieu d'un champ encadré dans un autre cadre ; en étroit elle prend toute la ligne */
html.v5 .abx-toolbar{ display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
html.v5 .abx-searchgroup{ display: flex; align-items: center; gap: 8px; min-width: 0; }
html.v5 .abx-searchgroup .abx-search{ display: flex; align-items: center; gap: 6px; box-sizing: border-box; flex: 1 1 220px; min-width: 0; max-width: 320px; height: var(--v5-ctrl-l); margin: 0; padding: 0 9px; border: 0; border-radius: var(--v5-r-capsule); background: var(--v5-surface-inset); box-shadow: inset 0 0 0 var(--v5-trait-fort) var(--v5-bord-champ); }
html.v5 .abx-searchgroup .abx-search:focus-within{ outline: var(--v5-focus-l) solid var(--v5-focus); }
html.v5 .abx-searchgroup .abx-search svg{ flex: none; width: 14px; height: 14px; color: var(--v5-texte-3); }
html.v5 .abx-searchgroup .abx-search input{ flex: 1; min-width: 0; width: auto; height: 100%; margin: 0; padding: 0; border: 0; border-radius: 0; background: none; box-shadow: none; outline: none; font: var(--v5-g-normal) var(--v5-t-13)/16px var(--v5-police); color: var(--v5-texte); }
html.v5 .abx-searchgroup .abx-search input::placeholder{ color: var(--v5-texte-3); }
@container abonnement (max-width: 900px){
  html.v5 .abx-searchgroup{ flex: 1 1 100%; order: 2; }
  html.v5 .abx-searchgroup .abx-search{ max-width: none; }
}

/* ---- « Chargement… » (11/10) : le texte doit se LIRE. L’ancienne règle le rendait transparent pour y découper un dégradé ; sans ce
   dégradé sur PC il disparaissait, et il ne restait qu’un petit logo décentré dans un cadre vide. Texte gris, centré, sans cadre. */
html.v5 .vt-chargement.status-line, html.v5 .vt-chargement.empty, html.v5 .vt-chargement{ justify-content: center; color: var(--v5-texte-2); -webkit-text-fill-color: currentColor; background: none; animation: none; }
html.v5 #main-app#main-app .card:has(> .vt-chargement){   /* identifiant doublé : la règle des blocs de nettete.css pèse deux identifiants */ background: none; border: 0; box-shadow: none; }
html.v5 .vt-chargement > :is(.ac-boite, .bdrd-charge){ flex: none; color: var(--v5-violet); }

/* tableau des abonnements (11/10) : la pastille de formule tient sur une ligne ; le panneau d’un compte ne couvre plus la barre d’outils (js/abonnement.js) */
html.v5 :is(.abx-tag, .abx-pill){ display: inline-block; max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; vertical-align: middle; }

/* colonne « Achat » de la liste des articles (11/10) : « Acheté » en petite pastille verte (coche dans un rond teinté + mot), au lieu
   d’un rectangle gris avec un « ✓ » en caractère ; le tiret des articles pas encore achetés est en gris clair pour ne pas attirer l’œil */
/* 2e version (11/10) : la pastille verte pleine n'était pas dans le style de BDRD. Un état s'écrit ici comme partout ailleurs
   (« ● Connectée », « ● Échec ») : un point de couleur, puis le mot en texte neutre, sans fond. */
html.v5 #view-list#view-list .c-achat .achat-ok{ display: inline-flex; align-items: center; gap: 6px; height: auto; padding: 0; border: 0; border-radius: 0; background: none; box-shadow: none; color: var(--v5-texte-2); font-size: var(--v5-t-12); font-weight: var(--v5-g-normal); line-height: 16px; white-space: nowrap; }
html.v5 #view-list .c-achat .achat-ok svg{ display: none; }
html.v5 #view-list .c-achat .achat-ok::before{ content: ""; flex: none; width: 7px; height: 7px; border-radius: 50%; background: var(--v5-vert); }
html.v5 #view-list .c-achat .achat-ok::first-letter{ color: inherit; }
html.v5 :is(#view-list, #article-list) :is(.achat-vide, .col-vide){ color: var(--v5-texte-3); }   /* « pas de valeur » : toujours le même tiret gris, quelle que soit la colonne */

/* « 5 colis à déposer · 2 urgents » : un point rouge et le mot, sans fond ni capsule (15/10, Lucas : plus de pastilles nulle part) */
html.v5 .envoi-resume-tete{ display: flex; align-items: center; gap: 10px; }
html.v5 .envoi-resume-tete strong{ font-size: var(--v5-t-13); font-weight: var(--v5-g-fort); color: var(--v5-texte); }
html.v5 .envoi-resume-tete .badge-destructive.badge-destructive{ display: inline-flex; align-items: center; gap: 6px; height: auto; margin: 0; padding: 0; border: 0; border-radius: 0; background: none; box-shadow: none; color: var(--v5-rouge); font-size: var(--v5-t-12); font-weight: var(--v5-g-moyen); line-height: 16px; white-space: nowrap; }
html.v5 .envoi-resume-tete .badge-destructive.badge-destructive::before{ content: ""; flex: none; width: 6px; height: 6px; margin: 0; border-radius: 50%; background: var(--v5-rouge-plein); }

/* ================================================================== GALERIE de la Bibliothèque (11/10, demande de Lucas)
   Une phrase d'introduction, puis UNE ligne : les catégories à gauche (pastilles, celle choisie en relief neutre), le tri et
   « Publier » à droite — plus de pastille qui tombe à la ligne. Cartes en grille régulière (photo carrée, catégorie en
   étiquette sur la photo, nom, nombre d'ajouts, actions). État vide : titre, phrase et bouton, au centre. */
html.v5 .gal-intro{ margin: 0 2px 14px; max-width: 640px; font-size: var(--v5-t-13); line-height: 1.45; color: var(--v5-texte-2); }
html.v5 .gal-tete{ display: flex; align-items: center; flex-wrap: wrap; gap: 8px 10px; margin: 0 0 16px; }
html.v5 .gal-filtres{ display: flex; flex-wrap: nowrap; gap: 6px; flex: 1 1 auto; min-width: 0; margin: 0; }
html.v5 .gal-filtre{ flex: none; height: var(--v5-ctrl-l); padding: 0 12px; border: 0; border-radius: var(--v5-r-capsule); background: none; box-shadow: inset 0 0 0 var(--v5-trait-fort) var(--v5-separateur); color: var(--v5-texte-2); font: var(--v5-g-moyen) var(--v5-t-13)/1 var(--v5-police); white-space: nowrap; cursor: default; }
html.v5 .gal-filtre.actif{ background: var(--v5-rempli-2); box-shadow: none; color: var(--v5-texte); }
html.v5 .gal-tete :is(.sel-btn, select.gal-tri){ flex: none; width: 180px; }
html.v5 .gal-tete #gal-publier{ flex: none; }
html.v5 .gal-grille{ display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px; margin: 0; }
html.v5 .gal-carte{ display: flex; flex-direction: column; overflow: hidden; border: 0; border-radius: var(--v5-r-groupe); background: var(--v5-fond); box-shadow: inset 0 0 0 var(--v5-trait-fort) var(--v5-separateur); }
html.v5 .gal-carte.masque{ opacity: var(--v5-opacite-inactif); }
html.v5 .gal-photo{ position: relative; aspect-ratio: 1 / 1; background: var(--v5-surface-inset); }
html.v5 .gal-photo img{ display: block; width: 100%; height: 100%; object-fit: cover; }
html.v5 .gal-cat{ position: absolute; left: 8px; top: 8px; height: 20px; padding: 0 8px; border-radius: var(--v5-r-capsule); background: var(--v5-photo-voile); color: var(--v5-sur-photo); font-size: var(--v5-t-11); font-weight: var(--v5-g-moyen); line-height: 20px; }
html.v5 .gal-corps{ display: flex; flex-direction: column; gap: 2px; padding: 10px 12px 12px; }
html.v5 .gal-corps b{ font-size: var(--v5-t-13); font-weight: var(--v5-g-moyen); color: var(--v5-texte); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
html.v5 .gal-corps small{ font-size: var(--v5-t-12); color: var(--v5-texte-2); }
html.v5 .gal-actions{ display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
html.v5 .gal-actions button{ height: var(--v5-ctrl-h); padding: 0 10px; }
html.v5 .gal-actions .gal-signaler{ margin-left: auto; color: var(--v5-texte-3); }
html.v5 .gal-vide{ display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 72px 16px; text-align: center; }
html.v5 .gal-vide .primary{ margin-top: 10px; }

/* ================================================================== ACHATS, état vide (11/10) : au lieu d'un bandeau plat collé en haut,
   un état centré dans la page — titre, phrase, les trois étapes numérotées, et le bouton qui ouvre la page des commandes. */
html.v5 #main-app#main-app .ach-vide{ display: flex; flex-direction: column; align-items: center; gap: 0; box-sizing: border-box; width: 100%; max-width: 520px; margin: 12vh auto 0; padding: 0 16px; border: 0; border-radius: 0; background: none; box-shadow: none; text-align: center; }
html.v5 .ach-vide .card-title{ margin: 0 0 6px; font-size: var(--v5-t-17); font-weight: var(--v5-g-gras); line-height: 22px; color: var(--v5-texte); }
html.v5 .ach-vide > .status-line{ margin: 0; font-size: var(--v5-t-13); line-height: 1.45; color: var(--v5-texte-2); }
html.v5 .ach-vide-etapes{ counter-reset: etape; display: flex; flex-direction: column; gap: 0; width: 100%; margin: 22px 0 0; padding: 0; list-style: none; border-radius: var(--v5-r-groupe); background: var(--v5-fond); box-shadow: inset 0 0 0 var(--v5-trait-fort) var(--v5-separateur); text-align: left; }
html.v5 .ach-vide-etapes li{ counter-increment: etape; display: flex; align-items: flex-start; gap: 10px; padding: 11px 14px; font-size: var(--v5-t-13); line-height: 19px; color: var(--v5-texte); }
html.v5 .ach-vide-etapes li + li{ box-shadow: inset 0 var(--v5-trait-fort) 0 var(--v5-separateur); }
html.v5 .ach-vide-etapes li::before{ content: counter(etape); display: grid; place-items: center; flex: none; width: 20px; height: 20px; border-radius: 50%; background: var(--v5-rempli-2); color: var(--v5-texte-2); font-size: var(--v5-t-11); font-weight: var(--v5-g-fort); line-height: 1; }
html.v5 .ach-vide .ach-vide-btn{ display: inline-flex; align-items: center; justify-content: center; margin: 20px 0 0; height: var(--v5-ctrl-xl); padding: 0 18px; text-decoration: none; }

/* 11/10 — Contacts sans contact choisi : le message est au centre du volet de détail (il flottait en haut, à 80 px), comme
   l'état sans conversation de Messages */
html.v5 #view-contacts .ct-detail:has(> .ct-vide){ display: grid; place-content: center; padding-bottom: 28px; }
html.v5 #view-contacts .ct-detail > .ct-vide{ max-width: 320px; padding: 0; text-align: center; line-height: 1.45; color: var(--v5-texte-2); }

/* 12/10 — Articles, largeur réduite : le nom de l'article l'identifie, il avait 140 px (« Jean baggy bie… ») pendant que « Statut » en réservait 180 même vide.
   Sous 720 px de liste, le transporteur, l'achat, la marge et la date cèdent (ils sont dans le détail de l'article) ; le statut garde 120 px au plus. */
html.v5 #view-list{ container-type: inline-size; }
@container (max-width: 780px){   /* 01/11 : 720 → 780 — la grille à 8 colonnes du palier suivant demande 776 px : à 748 px (panneau ouvert à 1400), le « … » sortait de 18 px */
  html.v5 :is(.article-table-head, #view-list .article-item){ grid-template-columns: minmax(150px, 1fr) minmax(0, 120px) 40px 64px 32px; column-gap: 10px; }
  html.v5 :is(.h-carrier, .h-achat, .h-marge, .h-date, #article-list .c-carrier, #article-list .c-achat, #article-list .c-marge, #article-list .c-date){ display: none; }
}

/* 12/10 — Articles entre 720 et 1080 px de liste (fenêtre de 1300 px avec barre latérale ouverte, ou inspecteur ouvert) : les neuf colonnes de la grille d'origine (1 024 px avec les écarts) dépassaient
   la ligne de 16 px, « Ajouté » et le menu « … » sortaient de la page. Le transporteur cède d'abord : il est déjà écrit dans la sous-ligne du nom (« Taille L · Vinted Go »). */
@container (min-width: 781px) and (max-width: 1080px){
  html.v5 :is(.article-table-head, #view-list .article-item){ grid-template-columns: minmax(170px, 1fr) minmax(136px, 168px) 48px 72px 76px 84px 68px 32px; column-gap: 10px; }   /* le statut (pastille « À déposer · 4 j ») garde 136 px : il se lisait tronqué */
  html.v5 :is(.h-carrier, #article-list .c-carrier){ display: none; }
}

/* 12/10 — Contacts sans contact : l'état vide (js/v5/pages/contacts.js) prend toute la page, la colonne de détail vide disparaît */
html.v5 #view-contacts .ct-split:has(#contacts-list > .v5-etat){ grid-template-columns: minmax(0, 1fr); min-height: 0; }
html.v5 #view-contacts .ct-split:has(#contacts-list > .v5-etat) .ct-detail{ display: none; }
html.v5 #view-contacts .ct-split #contacts-list:has(> .v5-etat){ box-shadow: none; }   /* plus de filet : il séparait la liste d'un détail qui n'existe pas encore */
html.v5 #contacts-list > .v5-etat{ min-height: 360px; padding-top: 72px; }
html.v5 .ct-etat-code .v5-btn{ margin-top: 0; }
html.v5 .ct-etat-code{ display: flex; align-items: center; gap: 8px; margin-top: 14px; font-size: var(--v5-t-13); color: var(--v5-texte-2); }
html.v5 .ct-etat-code .v5-pastille{ height: 22px; padding: 0 10px; font-family: var(--v5-police-mono); font-size: var(--v5-t-13); color: var(--v5-texte); letter-spacing: .04em; user-select: all; }
/* 25/10 : la date (alignée à gauche) suivait la marge (alignée à droite) à 10 px : « +13 € » touchait « 24 oct. » */
html.v5 :is(.article-table-head .h-date, #article-list .c-date){ padding-left: 14px; }

/* ================================================================== 26/10 : Bibliothèque façon Notion (gamme choisie le 25/10) — plus de
   boîtes encadrées : les éléments sont posés sur la page, séparés d'un trait fin ; « Auto (IA) » reste à part, souligné. La ligne
   ouverte ou sélectionnée garde son fond violet doux. */
html.v5 #prompts-images-body .pi-depot:not(#_){ background: none; box-shadow: none; }
/* trait sous chaque élément (le filet ::before des éléments visuels est coupé ailleurs) ; pas de trait sous le dernier */
html.v5 #prompts-images-body .pi-item:not(.sel):not(.pi-deplie):not(#_){ background: none; border-radius: 0; box-shadow: inset 0 calc(-1 * var(--v5-trait-fort)) 0 var(--v5-separateur); }
html.v5 #prompts-images-body .pi-item:last-child:not(.sel):not(.pi-deplie):not(#_){ box-shadow: none; }
html.v5 #prompts-images-body .pi-item:is(.sel, .pi-deplie):not(#_){ border-radius: var(--v5-r-sel); }
html.v5 #prompts-images-body .pi-item.pi-special:not(#_){ margin-bottom: 8px; }

/* 26/10 : Achats façon Notion — les chiffres en tête deviennent des tuiles séparées en aplat doux (comme Statistiques et
   Aujourd'hui) au lieu d'une bande d'un seul bloc ; les titres de section (À confirmer, En stock…) sont soulignés */
html.v5 #achats-body > .vt-stats-bar:not(#_):not(#_){ gap: 10px; border-radius: 0; background: none; overflow: visible; }
html.v5 #achats-body > .vt-stats-bar > .vt-stat:not(#_):not(#_){ border-radius: var(--v5-r-sel); background: var(--v5-rempli-3); box-shadow: none; }
html.v5 #achats-body .cl-section-tete:not(#_){ padding-bottom: 8px; box-shadow: inset 0 calc(-1 * var(--v5-trait-fort)) 0 var(--v5-separateur); }

/* 01/11 : Colis très étroit (panneau de détail ouvert dans une fenêtre de 820 px : 168 px de liste) — comme Annonces, le nom et le « … » restent,
   le statut, la taille et la revente sont dans le panneau ; la grille à 5 colonnes débordait de la liste */
@container (max-width: 440px){
  html.v5 :is(.article-table-head, #view-list .article-item):not(#_){ grid-template-columns: minmax(0, 1fr) 32px; column-gap: 6px; }
  html.v5 :is(.h-statut, .h-size, .h-revente, #article-list .c-statut, #article-list .c-size, #article-list .c-revente):not(#_){ display: none; }
}

/* 01/11 : comparatif des formules dans une page étroite (fenêtre de 820 px) — les libellés tenaient sur 3 ou 4 lignes de 133 px pendant que
   chaque formule gardait 89 px pour une coche de 12 px. Les formules passent à 56 px, le libellé prend le reste. Le tiret « non inclus »
   était presque invisible (gris inactif) : il passe au gris tertiaire, lisible sans rivaliser avec les coches. */
@container abonnement (max-width: 600px){
  html.v5 .abc-ligne:not(#_){ grid-template-columns: minmax(0, 1fr) repeat(4, 56px); }
  html.v5 .abc-val:not(#_){ padding-left: 4px; padding-right: 4px; }
}
html.v5 .abc-non:not(#_){ color: var(--v5-texte-3); }

/* 01/11 : barre de sélection de Colis — centrée sur la fenêtre (left: 50 %), elle mordait de 16 px sur la barre latérale à 820 px et se
   décalait de 120 px vers la gauche de la liste en fenêtre large. Elle se centre maintenant sur la zone de contenu. */
html.v5 #selection-bar.selection-bar:not(#_){ --barre-l: var(--v5-lateral-l); left: calc(var(--barre-l) + (100vw - var(--barre-l)) / 2); max-width: calc(100vw - var(--barre-l) - 32px); }   /* hors de .v5-app : la largeur de la barre latérale vient de son état */
html.v5:has(.v5-app:is([data-lateral="reduite"], [data-lateral-survol])) #selection-bar.selection-bar:not(#_){ --barre-l: var(--v5-rail-l); }
