/* V5 · PAGE NOUVELLE FICHE (PC) — un formulaire du système (kit Apple « macOS 27 / Forms ») : une colonne centrée,
   des groupes de lignes arrondis (r12, remplissage quaternaire), le choix du mode en contrôle segmenté, la zone de dépôt
   en puits d'image, et l'action par défaut en capsule à droite. Le balisage et la logique (js/creer-fiche.js,
   js/vinted-annonces.js, js/conseils-ia.js) ne changent pas. */

html.v5 #vt-creer{ box-sizing: border-box; width: auto; max-width: 780px; margin: 0 auto; padding: 20px 24px 60px; }
html.v5 #vt-creer > .card{ display: flex; flex-direction: column; gap: 14px; margin: 0; padding: 0; border: 0; border-radius: 0; background: none; box-shadow: none; }
html.v5 #vt-creer #brouillon-mode-segmented{ align-self: center; margin: 0 0 4px; }

/* compte Vinted : une ligne de formulaire (libellé à gauche, liste déroulante à droite) */
html.v5 #vt-creer #brouillon-champ-compte-wrap{
  position: static; grid-column: auto; justify-self: stretch; align-items: center; justify-content: space-between; gap: 16px; box-sizing: border-box; width: auto; min-height: 40px; margin: 0; padding: 8px 12px;
  border-radius: var(--v5-r-groupe); background: var(--v5-fond-groupe);
}
html.v5 #vt-creer #brouillon-champ-compte-wrap .lbl{ margin: 0; font-weight: var(--v5-g-normal); white-space: nowrap; }
html.v5 #vt-creer #brouillon-champ-compte-wrap :is(.sel-btn, select){ width: auto; min-width: 150px; max-width: 260px; }

/* « Brouillon Vinted » : la liste des brouillons et l'identifiant forment un groupe, comme les blocs des deux autres onglets */
html.v5 #vt-creer #brouillon-fields-existant:not(.hidden){ display: flex; flex-direction: column; gap: 14px; box-sizing: border-box; margin: 0; padding: 14px; border-radius: var(--v5-r-groupe); }
html.v5 #vt-creer #brouillon-fields-existant .field{ margin: 0; }
html.v5 #vt-creer #brouillon-fields-existant .field > .lbl{ display: block; margin: 0 0 8px; font-weight: var(--v5-g-normal); }
html.v5 #vt-creer #brouillon-fields-existant .field:first-child > .lbl{ font-weight: var(--v5-g-fort); }
html.v5 #vt-creer #brouillon-fields-creer{ grid-template-columns: minmax(280px, 1fr) minmax(320px, 1.15fr); gap: 14px; align-items: start; margin: 0; }
html.v5 #vt-creer .vt-etape{
  position: static; box-sizing: border-box; width: auto; max-width: none; margin: 0; padding: 12px; border: 0; border-radius: var(--v5-r-groupe);
  background: var(--v5-fond-groupe); box-shadow: none;
}
html.v5 #vt-creer .vt-etape > .lbl:first-child{ margin: 0 0 8px; font-weight: var(--v5-g-fort); }
html.v5 #vt-creer .vt-etape label.field:last-child{ margin-bottom: 0; }

/* zone de dépôt : puits d'image (fond de saisie, bord en pointillé, r8) avec le champ de lien et le bouton d'import */
html.v5 #vt-creer .vt-entree{
  display: flex; align-items: center; gap: 8px; box-sizing: border-box; min-height: 96px; margin: 0 0 12px; padding: 12px;
  border: 1px dashed var(--v5-separateur-fort); border-radius: var(--v5-r-sel); background: var(--v5-surface-inset); box-shadow: none;
}
html.v5 #vt-creer .vt-entree.survol, html.v5 #vt-creer .vt-entree.drag, html.v5 #vt-creer .vt-entree.dragover{ border-color: var(--v5-violet); background: var(--v5-violet-doux); }
html.v5 #vt-creer .vt-entree input{ flex: 1; min-width: 0; }
html.v5 #vt-creer .vt-entree-btn{
  display: grid; place-items: center; flex: none; width: var(--v5-ctrl-h); height: var(--v5-ctrl-h); padding: 0; border: 0; border-radius: var(--v5-r-ctrl);
  background: var(--v5-bouton); color: var(--v5-texte); cursor: default;
}
html.v5 #vt-creer .vt-entree-btn:hover{ filter: brightness(.96); }
html.v5 #vt-creer .vt-entree-btn:active{ background: var(--v5-bouton-presse); filter: none; }
html.v5 #vt-creer .vt-entree-btn svg{ width: 15px; height: 15px; }
html.v5 #vt-creer #brouillon-taille-champ{ display: flex; align-items: center; justify-content: space-between; gap: 16px; margin: 0; }
html.v5 #vt-creer #brouillon-taille-champ .lbl{ margin: 0; font-weight: var(--v5-g-normal); }
html.v5 #vt-creer #brouillon-taille-champ input{ width: 200px; }

/* réglages de la fiche : groupe repliable (triangle de dépliage), puis l'action par défaut */
html.v5 #vt-creer .vt-etape.ia{ padding: 0; background: none; }
html.v5 #vt-creer .vt-ia-options{ margin: 0; padding: 0 12px; border: 0; border-radius: var(--v5-r-groupe); background: var(--v5-fond-groupe); }
html.v5 #vt-creer .vt-ia-options > summary{
  display: flex; align-items: center; justify-content: flex-start; gap: 8px; height: 40px; padding: 0; list-style: none; cursor: default;
  font-size: var(--v5-t-13); font-weight: var(--v5-g-fort); color: var(--v5-texte);
}
html.v5 #vt-creer .vt-ia-options > summary::-webkit-details-marker{ display: none; }
html.v5 #vt-creer .vt-ia-options[open] > summary{ box-shadow: inset 0 -1px 0 var(--v5-separateur); margin-bottom: 12px; }
html.v5 #vt-creer .vt-ia-options[open]{ padding-bottom: 12px; }
html.v5 #vt-creer .vt-gen{ margin: 0; padding: 0; border: 0; background: none; }
html.v5 #vt-creer .vt-gen-ligne{ display: flex; align-items: flex-end; gap: 10px; margin: 0 0 12px; }
html.v5 #vt-creer .vt-gen-ligne > label.field{ flex: 1; min-width: 0; margin: 0; }
html.v5 #vt-creer .vt-etape.ia > .vt-gen-ligne{ justify-content: flex-end; margin: 14px 0 0; }
html.v5 #vt-creer :is(.vt-creer-ia-btn, #brouillon-submit-btn){ width: auto; height: var(--v5-ctrl-l); padding: 0 18px; border-radius: var(--v5-r-bouton); }

/* programmation (modes « À la main » et « Brouillon Vinted ») : deux listes côte à côte, action à droite */
html.v5 #vt-creer #brouillon-champs-communs{ align-items: flex-end; flex-wrap: wrap; gap: 12px; }
html.v5 #vt-creer #brouillon-champs-communs > label.field{ flex: 1 1 160px; min-width: 0; margin: 0; }
html.v5 #vt-creer #brouillon-champs-communs :is(.sel-btn, select, input){ width: 100%; }
html.v5 #vt-creer #brouillon-champs-communs > button.primary{ margin-left: auto; }
html.v5 #vt-creer .sel-btn{ width: 100%; }
html.v5 #vt-creer #brouillon-champ-compte-wrap .sel-btn{ width: auto; }

/* ================================================================== 10/10, demande de Lucas : UNE SEULE COLONNE, de haut en bas
   On déroule la page pour arriver à la confirmation, au lieu de deux blocs côte à côte : compte → photos ou lien → taille →
   réglages → estimation → bouton de création en pleine largeur, puis la programmation. Les règles ci-dessus restent ; celles-ci
   passent après et ne changent que la disposition. */
html.v5 #vt-creer{ max-width: 600px; padding: 24px 24px 80px; }
html.v5 #vt-creer > .card{ gap: 16px; }
html.v5 #vt-creer #brouillon-fields-creer{ display: flex; flex-direction: column; gap: 16px; }
html.v5 #vt-creer #brouillon-fields-creer > *, html.v5 #vt-creer > .card > *{ box-sizing: border-box; width: 100%; max-width: none; margin-left: 0; margin-right: 0; align-self: stretch; justify-self: stretch; }
html.v5 #vt-creer #brouillon-mode-segmented{ width: auto; align-self: center; }
html.v5 #vt-creer #brouillon-champ-compte-wrap{ min-height: 44px; padding: 8px 14px; }
html.v5 #vt-creer .vt-etape{ padding: 14px; }
html.v5 #vt-creer .vt-entree{ min-height: 132px; }
html.v5 #vt-creer #brouillon-taille-champ input{ width: 220px; }
/* la confirmation, en bas : un bouton large sur toute la colonne */
html.v5 #vt-creer .vt-etape.ia > .vt-gen-ligne{ justify-content: stretch; margin: 16px 0 0; }
html.v5 #vt-creer :is(.vt-creer-ia-btn, #brouillon-submit-btn){ width: 100%; height: var(--v5-ctrl-xl); font-size: var(--v5-t-13); }
html.v5 #vt-creer #brouillon-champs-communs{ padding: 14px; border-radius: var(--v5-r-groupe); background: var(--v5-fond-groupe); }
html.v5 #vt-creer #brouillon-champs-communs > button.primary{ flex: 1 1 100%; width: 100%; height: var(--v5-ctrl-l); margin: 4px 0 0; }

/* ---- état d'une génération : libellé fixe, sans balayage animé. */
html.v5 :is(#flash-status, #gen-photos-status):empty{ display: none; }
html.v5 :is(#flash-status, #gen-photos-status).bdrd-en-cours{
  display: flex; align-items: center; gap: 8px; min-height: 20px; margin: 10px 0 0; padding: 0; border: 0; border-radius: 0; box-shadow: none;
  font-size: var(--v5-t-13); line-height: 18px; color: var(--v5-texte-2); -webkit-text-fill-color: currentColor; background: none;
}

/* ================================================================== 11/10, retouches demandées par Lucas sur captures
   - zone de dépôt moins haute (elle laissait un grand vide autour du champ) ;
   - libellés des réglages en graisse normale (13 px, cote du kit) : seul le titre du groupe reste fort ;
   - pastille « Par défaut » collée au nom choisi, au lieu de flotter au milieu de la liste ;
   - bloc « Détail » (qualité des images) sur toute la largeur, en puits clair comme la zone de dépôt, plus de carte sombre étroite. */
html.v5 #vt-creer .vt-entree{ min-height: 0; padding: 4px 4px 4px 12px; }   /* 15/10 (Lucas : « la zone de texte est trop grande ») : une ligne pour coller un lien, sans vide en dessous */
/* 15/10 (Lucas : « des trucs qui se superposent ») : le champ n'a plus son propre cadre dans la zone en pointillés, c'est la zone qui sert de champ */
html.v5 #vt-creer .vt-entree.vt-entree > input{ height: 32px; padding: 0; border: 0; border-radius: 0; background: none; box-shadow: none; outline: none; }
html.v5 #vt-creer .vt-entree:has(> input:focus-visible){ border-style: solid; border-color: var(--v5-violet); }
html.v5 #vt-creer #brouillon-photos-status:not(:empty){ margin: 0 0 8px; }
html.v5 #vt-creer #brouillon-taille-champ{ padding-top: 12px; box-shadow: inset 0 1px 0 var(--v5-separateur); }

html.v5 #vt-creer .vt-ia-options .field{ margin: 0 0 14px; }
html.v5 #vt-creer .vt-ia-options .field > .lbl{ display: block; margin: 0 0 6px; font-size: var(--v5-t-13); line-height: 16px; font-weight: var(--v5-g-normal); color: var(--v5-texte); }
html.v5 #vt-creer .vt-ia-options textarea{ display: block; width: 100%; box-sizing: border-box; min-height: 58px; }
html.v5 #vt-creer .vt-gen-ligne{ align-items: flex-start; margin: 0 0 14px; }
html.v5 #vt-creer .vt-gen-ligne > label.field{ margin: 0; }

html.v5 #vt-creer .sel-btn .sel-label{ flex: 0 1 auto; min-width: 0; }
html.v5 #vt-creer .sel-btn .sel-defaut{ flex: none; height: 18px; margin: 0 auto 0 8px; padding: 0 6px; border: 0; border-radius: var(--v5-r-petit); background: var(--v5-rempli-2); color: var(--v5-texte-2); font-size: var(--v5-t-11); font-weight: var(--v5-g-moyen); line-height: 18px; }
html.v5 #vt-creer .sel-btn .sel-chev{ margin-left: auto; }
html.v5 #vt-creer .sel-btn .sel-defaut + .sel-chev{ margin-left: 6px; }

html.v5 #vt-creer .vt-gen-qualite{ margin-bottom: 0; }
html.v5 #vt-creer .conso{ max-width: none; margin-top: 4px; padding: 12px 0 0; border: 0; border-radius: 0; background: none; box-shadow: inset 0 var(--v5-trait-fort) 0 var(--v5-separateur); }   /* un seul niveau de cadre : un filet, comme Réglages › IA */
html.v5 #vt-creer .conso-tete{ margin: 0 0 8px; font-size: var(--v5-t-13); }
html.v5 #vt-creer .conso-lbl, html.v5 #vt-creer .conso-bornes{ color: var(--v5-texte-2); }
html.v5 #vt-creer .conso-bornes{ font-size: var(--v5-t-12); }
html.v5 #vt-creer .conso-piste{ height: 20px; border-radius: var(--v5-r-ctrl); background: var(--v5-rempli-2); }
html.v5 #vt-creer .conso-notes{ font-size: var(--v5-t-12); color: var(--v5-texte-2); }
html.v5 #vt-creer .conso-mode{ margin-top: 12px; padding-top: 12px; box-shadow: inset 0 1px 0 var(--v5-separateur); }
html.v5 #vt-creer .conso-garde{ display: flex; align-items: center; gap: 8px; margin-top: 10px; font-size: var(--v5-t-12); color: var(--v5-texte-2); }
html.v5 #vt-creer .vt-gen-qualite .vt-aide{ display: block; margin: 8px 2px 0; font-size: var(--v5-t-12); line-height: 16px; color: var(--v5-texte-3); }
html.v5 #vt-creer .vt-estimation:not(:empty){ padding: 0 2px; }
html.v5 #vt-creer :is(#flash-status, #gen-photos-status):not(.bdrd-en-cours):not(:empty){ margin: 10px 2px 0; font-size: var(--v5-t-12); line-height: 16px; color: var(--v5-texte-2); }
/* dans la rangée à trois listes, la place manque : le nom choisi passe avant la pastille (elle reste visible dans le menu ouvert) */
html.v5 #vt-creer .vt-gen-ligne .sel-btn .sel-defaut{ display: none; }

/* 12/10 — actions du formulaire : en bas à droite, à la taille de leur libellé (feuilles de macOS, formulaires de ChatGPT), au lieu de barres
   violettes pleine largeur (style iOS) qui, à deux sur la même page, se disputaient le rôle d'action principale. */
html.v5 #vt-creer :is(.vt-creer-ia-btn, #brouillon-submit-btn){ flex: 0 0 auto; width: auto; min-width: 180px; height: var(--v5-ctrl-l); padding: 0 18px; align-self: flex-end; margin-left: auto; display: flex; }
html.v5 #vt-creer #brouillon-champs-communs > button.primary{ flex: 0 0 auto; width: auto; margin: 6px 0 0 auto; }
/* 13/10 — un libellé de champ est en graisse normale (formulaires macOS, Réglages de ChatGPT) ; seul le titre d'un groupe est en gras.
   Avant : « Titre », « Prix »… en gras, « Compte Vinted », « Taille » en normal, dans le même formulaire. */
html.v5 #vt-creer #brouillon-champs-communs .field > .lbl,
html.v5 #vt-creer #brouillon-fields-creer .field > .lbl{ display: block; margin: 0 0 6px; font-size: var(--v5-t-13); line-height: 16px; font-weight: var(--v5-g-normal); color: var(--v5-texte); }
html.v5 #vt-creer #brouillon-prix{ max-width: 160px; }   /* un prix tient en quelques chiffres : champ à sa mesure (13/10) */

/* ================================================================== 13/10 — « Avec l'IA » : un composeur, façon ChatGPT
   Une seule carte (r20) : la saisie en grand, les photos ou les liens, puis un pied avec photos · taille · « Créer ». Les réglages de la fiche
   restent dessous, en retrait. L'ancienne pile de cartes (compte, photos, taille, réglages, action…) disparaît : ce que fait l'IA se résume à
   « coller ou déposer, puis créer ». Seul ce mode est touché ; « À la main » et « Brouillon Vinted » gardent leurs formulaires. */
html.v5 #vt-creer.vt-creer:not(.remplissage-manuel):not(.mode-existant) #brouillon-fields-creer{ display: block; max-width: 720px; margin: 7vh auto 0; }
html.v5 #vt-creer.vt-creer:not(.remplissage-manuel):not(.mode-existant) #brouillon-champs-communs{ display: none; }   /* Action / Quand / Programmer : pour publier une fiche déjà écrite, pas pour en créer une */
html.v5 .vt-creer-titre{ display: none; }
html.v5 #vt-creer.vt-creer:not(.remplissage-manuel):not(.mode-existant) .vt-creer-titre{ display: block; margin: 0 0 22px; text-align: center; font-size: var(--v5-t-26); font-weight: var(--v5-g-gras); line-height: var(--v5-i-26); letter-spacing: -.02em; color: var(--v5-texte); }
html.v5 #vt-creer.vt-creer:not(.remplissage-manuel):not(.mode-existant) .vt-depart{
  display: block; margin: 0; padding: 16px 18px 12px; border-radius: var(--v5-r-fenetre); background: var(--v5-fond);
  box-shadow: inset 0 0 0 var(--v5-trait-fort) var(--v5-separateur-fort), var(--v5-ombre-ctrl);
}
html.v5 #vt-creer.vt-creer:not(.remplissage-manuel):not(.mode-existant) .vt-depart:has(.survol){ box-shadow: inset 0 0 0 2px var(--v5-violet); }
html.v5 #vt-creer.vt-creer:not(.remplissage-manuel):not(.mode-existant) .vt-depart > .lbl{ display: none; }
/* la saisie : sans cadre dans la carte, grande */
html.v5 #vt-creer.vt-creer:not(.remplissage-manuel):not(.mode-existant) .vt-entree{ display: block; margin: 0; padding: 0; border: 0; border-radius: 0; background: none; box-shadow: none; }
html.v5 #vt-creer.vt-creer:not(.remplissage-manuel):not(.mode-existant) :is(#lien-url, .vt-lien-extra input){
  box-sizing: border-box; width: 100%; height: 40px; padding: 0; border: 0; border-radius: 0; background: none; box-shadow: none; outline: none;
  font: var(--v5-g-normal) var(--v5-t-15)/22px var(--v5-police); color: var(--v5-texte);
}
html.v5 #vt-creer.vt-creer :is(#lien-url, .vt-lien-extra input)::placeholder{ color: var(--v5-texte-3); }
/* lignes de liens ajoutées avec Entrée */
html.v5 .vt-liens-extra{ display: block; }
html.v5 .vt-liens-extra:empty{ display: none; }
/* liens rangés (Entrée) : une petite ligne encadrée par lien, au-dessus du champ — site, adresse, compte à droite, croix */
html.v5 .vt-lien-pret{ display: flex; align-items: center; gap: 10px; min-height: 40px; margin: 0 0 6px; padding: 4px 6px 4px 12px; border-radius: var(--v5-r-groupe); background: var(--v5-fond-groupe); box-shadow: inset 0 0 0 var(--v5-trait) var(--v5-separateur); }
html.v5 .vt-lien-site{ flex: none; max-width: 120px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: var(--v5-t-12); font-weight: var(--v5-g-moyen); color: var(--v5-texte-2); }
html.v5 .vt-lien-adr{ flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: var(--v5-t-13); color: var(--v5-texte); }
html.v5 .vt-lien-compte{ flex: none; max-width: 190px; }
html.v5 .vt-lien-compte > span{ min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
html.v5 .vt-lien-retirer{ flex: none; display: grid; place-items: center; width: 24px; height: 24px; padding: 0; border: 0; border-radius: 50%; background: none; color: var(--v5-texte-3); cursor: default; }
html.v5 .vt-lien-retirer:hover{ background: var(--v5-rempli-3); color: var(--v5-texte); }
html.v5 .vt-lien-retirer svg{ width: 12px; height: 12px; }
html.v5 .vt-lien-suivre{ margin-left: 4px; padding: 0; border: 0; background: none; color: var(--v5-violet-texte); font: inherit; font-weight: var(--v5-g-moyen); cursor: default; }
html.v5 .vt-lien-suivre:hover{ text-decoration: underline; }
html.v5 #vt-creer.vt-creer #brouillon-photos-status:empty{ display: none; }
/* le pied : photos · taille · Créer */
html.v5 .vt-compo-pied{ display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 8px; }
html.v5 .vt-compo-pied #vt-entree-photos{ position: static; flex: none; display: grid; place-items: center; width: 32px; height: 32px; margin: 0; padding: 0; border: 0; border-radius: 50%; background: var(--v5-rempli-3); color: var(--v5-texte-2); }
html.v5 .vt-compo-pied #vt-entree-photos:hover{ background: var(--v5-rempli-2); color: var(--v5-texte); }
html.v5 #vt-creer.vt-creer .vt-compo-pied #brouillon-taille-champ{ display: block; flex: none; margin: 0; padding: 0; border: 0; box-shadow: none; background: none; }
html.v5 .vt-compo-pied #brouillon-taille-champ.hidden{ display: none; }
html.v5 #vt-creer.vt-creer .vt-compo-pied #brouillon-taille-champ > .lbl, html.v5 #vt-creer.vt-creer .vt-compo-pied #brouillon-champ-compte-wrap > .lbl{ display: none; }
/* 24/10 : même précision que les règles plus anciennes de #vt-creer (champ de 220 px, bouton de 180 px au moins), qui passaient devant :
   dans une fenêtre étroite, le pied débordait (bouton coupé, page qui défilait en largeur) */
html.v5 #vt-creer.vt-creer .vt-compo-pied #brouillon-taille{ width: 104px; height: var(--v5-ctrl-l); }
html.v5 .vt-compo-ia{ margin-left: auto; }
html.v5 .vt-compo-ia .vt-gen-ligne{ display: flex; align-items: center; gap: 8px; margin: 0; }
html.v5 #vt-creer.vt-creer .vt-compo-ia #ia-generer-btn{ flex: 0 0 auto; width: auto; min-width: 0; height: var(--v5-ctrl-l); margin: 0; padding: 0 18px; border-radius: var(--v5-r-capsule); }   /* le bouton d'envoi du composeur : capsule, comme ChatGPT */
/* la section « Réglages de la fiche » : sous la carte, discrète */
html.v5 #vt-creer.vt-creer:not(.remplissage-manuel):not(.mode-existant) .vt-etape.ia{ margin: 10px 0 0; padding: 0 6px; }
html.v5 #vt-creer.vt-creer .vt-etape.ia .vt-ia-options:not(#_):not(#_):not(#_){ margin: 0; padding: 0; border-radius: 0; background: none; box-shadow: none; }
html.v5 #vt-creer.vt-creer .vt-etape.ia .vt-ia-options > summary{ height: 32px; font-weight: var(--v5-g-normal); color: var(--v5-texte-2); box-shadow: none; }
html.v5 #vt-creer.vt-creer .vt-etape.ia .vt-ia-options[open]{ padding-bottom: 12px; }
html.v5 #vt-creer.vt-creer .vt-etape.ia .vt-ia-options[open] > summary{ margin-bottom: 8px; box-shadow: none; }
html.v5 #gen-estimation{ font-size: var(--v5-t-12); color: var(--v5-texte-3); }
/* le grand cadre d'origine autour de tout le formulaire disparaît : le composeur EST la carte */
html.v5 #vt-creer.vt-creer:not(.remplissage-manuel):not(.mode-existant) > .card:not(#_):not(#_):not(#_){ background: none; box-shadow: none; padding: 0; border-radius: 0; }
/* 15/10 (Lucas : « un cadre autour d'un cadre, ça fait des angles bizarres ») : dans les autres modes aussi (brouillon déjà sur Vinted, remplissage
   à la main), seuls les groupes arrondis portent un cadre ; la grande carte carrée qui les entourait disparaît */
html.v5 #vt-creer.vt-creer:is(.remplissage-manuel, .mode-existant) > .card:not(#_):not(#_):not(#_){ background: none; box-shadow: none; padding: 0; border-radius: 0; }
/* le compte Vinted : un choix du pied, pas une ligne à part */
html.v5 #vt-creer.vt-creer .vt-compo-pied #brouillon-champ-compte-wrap:not(#_):not(#_):not(#_){ display: flex; flex: none; width: auto; min-height: 0; margin: 0; padding: 0; border: 0; border-radius: 0; background: none; box-shadow: none; }
html.v5 #vt-creer.vt-creer .vt-compo-pied #brouillon-champ-compte-wrap :is(.sel-btn, select){ width: auto; min-width: 0; max-width: 200px; height: var(--v5-ctrl-l); }
html.v5 #vt-creer.vt-creer .vt-compo-pied #brouillon-champ-compte-wrap.hidden{ display: none; }
/* Compte (15/10, Lucas : « pas fan de la case ») : comme le choix du modèle dans la barre de saisie de Claude, du texte et une
   flèche simple, sans case ; une capsule légère n'apparaît qu'au survol et à l'ouverture, assortie au bouton photo rond. */
html.v5 #vt-creer.vt-creer .vt-compo-pied #brouillon-champ-compte-wrap .sel-btn:not(#_){ padding: 0 8px 0 10px; gap: 4px; border: 0; border-radius: var(--v5-r-capsule); background: none; box-shadow: none; color: var(--v5-texte-2); font-weight: 400; }
html.v5 #vt-creer.vt-creer .vt-compo-pied #brouillon-champ-compte-wrap .sel-btn:not(#_):is(:hover, [aria-expanded="true"]){ background: var(--v5-rempli-3); color: var(--v5-texte); }
html.v5 #vt-creer.vt-creer .vt-compo-pied #brouillon-champ-compte-wrap .sel-chev{ background: none; color: var(--v5-texte-3); }
html.v5 #vt-creer.vt-creer .vt-compo-pied #brouillon-champ-compte-wrap .sel-chev > *{ visibility: visible; }

/* Carte de choix de la variante, version compacte (17/10, Lucas : « prendre moins de place en hauteur ») — Nouvelle fiche (même carte que la page Liens, css/v5/pages/liens.css) :
   titre sur une ligne avec « Valider » à droite, puis une rangée par choix (libellé à gauche, pastilles qui défilent sur le côté) */
:is(#creer-lien-choix, #vt-capsules) .liens-choix{ position: relative; padding: 10px 12px; border: 0; border-radius: var(--v5-r-groupe); background: var(--v5-fond-groupe); }
:is(#creer-lien-choix, #vt-capsules) .liens-choix-tete{ display: flex; align-items: center; gap: 10px; margin: 0 30px 6px 0; padding: 0; }
:is(#creer-lien-choix, #vt-capsules) .liens-choix-img{ width: 36px; height: 36px; border-radius: var(--v5-r-photo); object-fit: cover; flex: none; background: var(--v5-surface-inset); }
:is(#creer-lien-choix, #vt-capsules) .liens-choix-titre{ flex: 1; min-width: 0; font-size: var(--v5-t-13); font-weight: var(--v5-g-moyen); line-height: 1.3; }
:is(#creer-lien-choix, #vt-capsules) .liens-choix-titre > div:first-child{ display: block; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
:is(#creer-lien-choix, #vt-capsules) .liens-choix-sub{ margin: 0; font-size: var(--v5-t-12); font-weight: var(--v5-g-normal); color: var(--v5-texte-2); }
:is(#creer-lien-choix, #vt-capsules) .liens-choix-x{ position: absolute; top: 10px; right: 8px; }
:is(#creer-lien-choix, #vt-capsules) .liens-choix-valider{ flex: none; margin: 0; }
:is(#creer-lien-choix, #vt-capsules) .liens-rangee{ display: flex; align-items: center; gap: 10px; margin-top: 6px; min-width: 0; }
:is(#creer-lien-choix, #vt-capsules) .liens-rangee > .lbl{ flex: none; width: 52px; margin: 0; font-size: var(--v5-t-11); font-weight: var(--v5-g-fort); letter-spacing: 0; text-transform: none; color: var(--v5-texte-3); }
:is(#creer-lien-choix, #vt-capsules) :is(.liens-couleurs, .liens-tailles){ display: flex; flex-wrap: nowrap; gap: 6px; min-width: 0; margin: 0; padding: 2px; overflow-x: auto; scrollbar-width: none; }
:is(#creer-lien-choix, #vt-capsules) .liens-couleur{ flex: none; width: 28px; height: 28px; padding: 0; overflow: hidden; border: 0; border-radius: var(--v5-r-sel); background: var(--v5-surface-inset); }
:is(#creer-lien-choix, #vt-capsules) .liens-couleur img{ width: 100%; height: 100%; object-fit: cover; display: block; }
:is(#creer-lien-choix, #vt-capsules) .liens-taille-btn{ flex: none; min-width: 34px; height: 28px; padding: 0 9px; border: 0; border-radius: var(--v5-r-ctrl); background: var(--v5-survol); color: var(--v5-texte); font-size: var(--v5-t-12); }
:is(#creer-lien-choix, #vt-capsules) .liens-taille-btn:disabled{ opacity: var(--v5-opacite-inactif); text-decoration: line-through; }
:is(#creer-lien-choix, #vt-capsules) :is(.liens-couleur, .liens-taille-btn).active{ outline: var(--v5-focus-l) solid var(--v5-photo-selection); outline-offset: -2px; }
:is(#creer-lien-choix, #vt-capsules) .liens-taille-libre{ width: 140px; margin: 6px 0 0 62px; }

/* 18/10 (Lucas : « améliore le panneau pour choisir le modèle et la taille ») — même carte dans Nouvelle fiche et dans Liens :
   grande photo de la couleur choisie, titre sur deux lignes, couleur et taille choisies écrites sous leur libellé, pastilles de couleur
   de 40 px (anneau violet autour de celle choisie), tailles en capsules (violet plein pour celle choisie), « Valider » en capsule,
   grisé tant qu'aucune taille n'est choisie. :not(#_) passe devant les deux anciennes versions (ci-dessus et css/v5/pages/liens.css). */
:is(#creer-lien-choix, #vt-capsules, #liens-file) .liens-choix:not(#_){ padding: 14px 16px 16px; }
:is(#creer-lien-choix, #vt-capsules, #liens-file) .liens-choix-tete:not(#_){ display: flex; align-items: center; gap: 14px; margin: 0 32px 4px 0; }
:is(#creer-lien-choix, #vt-capsules, #liens-file) .liens-choix-img:not(#_){ width: 56px; height: 72px; border-radius: var(--v5-r-photo); object-fit: cover; background: var(--v5-surface-inset); }
:is(#creer-lien-choix, #vt-capsules, #liens-file) .liens-choix-titre:not(#_){ flex: 1; min-width: 0; font-size: var(--v5-t-13); font-weight: var(--v5-g-moyen); line-height: 1.35; }
:is(#creer-lien-choix, #vt-capsules, #liens-file) .liens-choix-titre > div:first-child:not(#_){ display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; white-space: normal; }
:is(#creer-lien-choix, #vt-capsules, #liens-file) .liens-choix-sub:not(#_){ margin-top: 2px; font-size: var(--v5-t-12); color: var(--v5-texte-2); }
:is(#creer-lien-choix, #vt-capsules, #liens-file) .liens-choix-pref:not(#_){ margin: 4px 0 0; font-size: var(--v5-t-12); font-weight: var(--v5-g-moyen); color: var(--v5-violet-texte); }
:is(#creer-lien-choix, #vt-capsules, #liens-file) .liens-choix-valider:not(#_){ flex: none; display: inline-flex; align-items: center; height: var(--v5-ctrl-l); margin: 0; padding: 0 16px; border-radius: var(--v5-r-presse); }
/* 25/10 (audit, P3) : tant qu'aucune taille n'est choisie, un bouton gris (pas un violet délavé qui faisait croire à un bug) */
:is(#creer-lien-choix, #vt-capsules, #liens-file) .liens-choix-valider[aria-disabled="true"]:not(#_){ opacity: 1; background: var(--v5-rempli-2); color: var(--v5-texte-3); box-shadow: none; cursor: default; }
:is(#creer-lien-choix, #vt-capsules, #liens-file) .liens-choix-x:not(#_){ top: 12px; right: 10px; }
:is(#creer-lien-choix, #vt-capsules, #liens-file) .liens-rangee:not(#_){ display: grid; grid-template-columns: 96px minmax(0, 1fr); align-items: start; gap: 12px; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--v5-separateur); }
:is(#creer-lien-choix, #vt-capsules, #liens-file) .liens-rangee > .lbl:not(#_){ display: flex; flex-direction: column; gap: 2px; width: auto; margin: 0; padding-top: 7px; font-size: var(--v5-t-12); font-weight: var(--v5-g-moyen); color: var(--v5-texte-2); }
:is(#creer-lien-choix, #vt-capsules, #liens-file) .liens-choix-val:not(#_){ overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-weight: var(--v5-g-fort); color: var(--v5-texte); }
:is(#creer-lien-choix, #vt-capsules, #liens-file) :is(.liens-couleurs, .liens-tailles):not(#_){ display: flex; flex-wrap: wrap; gap: 8px; min-width: 0; margin: 0; padding: 3px; overflow: visible; }
:is(#creer-lien-choix, #vt-capsules, #liens-file) .liens-couleur:not(#_){ flex: none; width: 40px; height: 40px; padding: 0; overflow: hidden; border: 0; border-radius: var(--v5-r-sel); background: var(--v5-surface-inset); box-shadow: inset 0 0 0 1px var(--v5-separateur); outline: none; transition: transform .15s ease; }
:is(#creer-lien-choix, #vt-capsules, #liens-file) .liens-couleur:hover:not(#_){ transform: scale(1.06); }
:is(#creer-lien-choix, #vt-capsules, #liens-file) .liens-couleur.active:not(#_){ outline: 2px solid var(--v5-violet); outline-offset: 2px; transform: none; }
:is(#creer-lien-choix, #vt-capsules, #liens-file) .liens-tailles:not(#_){ gap: 6px; }
:is(#creer-lien-choix, #vt-capsules, #liens-file) .liens-taille-btn:not(#_){ flex: none; min-width: 42px; height: var(--v5-ctrl-l); padding: 0 12px; border: 0; border-radius: var(--v5-r-presse); background: var(--v5-survol); box-shadow: inset 0 0 0 1px var(--v5-separateur); color: var(--v5-texte); font-size: var(--v5-t-13); font-weight: var(--v5-g-moyen); outline: none; transition: background-color .15s ease, transform .1s ease; }
:is(#creer-lien-choix, #vt-capsules, #liens-file) .liens-taille-btn:active:not(#_){ transform: scale(.95); }
:is(#creer-lien-choix, #vt-capsules, #liens-file) .liens-taille-btn.active:not(#_){ background: var(--v5-violet); box-shadow: none; color: var(--v5-sur-violet); }
:is(#creer-lien-choix, #vt-capsules, #liens-file) .liens-taille-btn:disabled:not(#_){ opacity: var(--v5-opacite-inactif); text-decoration: line-through; }
:is(#creer-lien-choix, #vt-capsules, #liens-file) :is(.liens-couleur, .liens-taille-btn):focus-visible:not(#_){ outline: var(--v5-focus-l) solid var(--v5-focus); outline-offset: 2px; }
:is(#creer-lien-choix, #vt-capsules, #liens-file) .liens-taille-libre:not(#_){ width: 180px; height: var(--v5-ctrl-l); margin: 8px 0 0 111px; border-radius: var(--v5-r-presse); }

/* File d'attente des fiches (17/10, js/creer-file.js) : sous le formulaire, une ligne par fiche qui attend son tour */
#vt-file-attente{ margin: 10px 0 0; padding: 8px 12px; border-radius: var(--v5-r-groupe); background: var(--v5-fond-groupe); font-size: var(--v5-t-12); color: var(--v5-texte-2); }
#vt-file-attente .vt-file-tete{ font-weight: var(--v5-g-moyen); color: var(--v5-texte); margin-bottom: 4px; }
#vt-file-attente .vt-file-ligne{ display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 26px; }
#vt-file-attente .vt-file-texte{ flex: 1 1 auto; min-width: 0; margin: 0; }
#vt-file-attente .vt-file-ligne > button{ flex: none; width: auto; margin: 0; }
#vt-file-attente .vt-file-note{ margin-top: 4px; color: var(--v5-texte-3); }

/* Liens en cours en capsules (17/10, js/creer-capsules.js) : une capsule par lien (vignette, nom, point + mot d'état) ; la capsule
   ouverte est légèrement plus claire, le choix couleur / taille se déplie dessous (une seule à la fois) */
#vt-capsules{ margin: 10px 0 0; }
#vt-capsules .vt-capsules-liste{ display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }   /* 18/10 (Lucas) : toujours l’une sous l’autre */
#vt-capsules .vt-capsule{ display: inline-flex; align-items: center; max-width: 100%; height: 32px; border-radius: 999px; background: var(--v5-rempli-2); box-shadow: var(--v5-filet-bouton); }
#vt-capsules .vt-capsule.ouverte{ background: var(--v5-rempli-1); box-shadow: inset 0 0 0 var(--v5-trait-fort) var(--v5-texte-3); }
#vt-capsules .vt-capsule-corps{ display: inline-flex; align-items: center; gap: 7px; min-width: 0; height: 100%; padding: 0 10px 0 4px; border: 0; background: none; color: var(--v5-texte); font-size: var(--v5-t-12); cursor: default; }
#vt-capsules .vt-capsule-corps img, #vt-capsules .vt-capsule-vide{ width: 24px; height: 24px; flex: none; border-radius: 50%; object-fit: cover; background: var(--v5-surface-inset); }
#vt-capsules .vt-capsule-nom{ max-width: 320px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-weight: var(--v5-g-moyen); }
#vt-capsules .vt-capsule-etat{ display: inline-flex; align-items: center; gap: 5px; flex: none; color: var(--v5-texte-2); }
#vt-capsules .vt-capsule-etat i{ width: 7px; height: 7px; border-radius: 50%; background: var(--v5-texte-3); }
#vt-capsules [data-etat="cours"] .vt-capsule-etat i{ background: var(--v5-bleu); }
#vt-capsules [data-etat="choisir"] .vt-capsule-etat i{ background: var(--v5-orange); }
#vt-capsules [data-etat="fait"] .vt-capsule-etat i{ background: var(--v5-vert); }
#vt-capsules [data-etat="echec"] .vt-capsule-etat i{ background: var(--v5-rouge-plein); }
#vt-capsules .vt-capsule-x{ flex: none; width: 24px; height: 24px; margin-right: 4px; padding: 0; border: 0; border-radius: 50%; background: none; color: var(--v5-texte-3); font-size: 16px; line-height: 1; cursor: default; }
#vt-capsules .vt-capsule-detail{ margin-top: 8px; }
#vt-capsules .vt-capsule-detail-echec{ padding: 10px 12px; border-radius: var(--v5-r-groupe); background: var(--v5-fond-groupe); font-size: var(--v5-t-12); color: var(--v5-texte-2); }

/* ================================================================== 17/10 — « Réglages de la fiche » façon Cursor / Claude (demande de Lucas)
   Fermé : une ligne discrète, chevron à gauche, puis le résumé des choix en gris (« Auto · Studio clair · 3 vues · Moyen »).
   Ouvert : UN cadre fin, une ligne par réglage (nom + aide à gauche, contrôle à droite), séparées par des filets, comme les
   réglages de Claude et de Cursor ; ouverture en douceur. Résumé, aides et cadre posés par js/v5/pages/creer.js. */
html.v5 #vt-creer.vt-creer .vt-etape.ia .vt-ia-options:not(#_):not(#_):not(#_){ interpolate-size: allow-keywords; margin: 0; padding: 0; background: none; box-shadow: none; }
html.v5 #vt-creer.vt-creer .vt-etape.ia .vt-ia-options > summary:not(#_){
  display: flex; align-items: center; gap: 6px; height: 30px; margin: 0; padding: 0 6px; border-radius: var(--v5-r-ctrl);
  font-size: var(--v5-t-13); font-weight: var(--v5-g-moyen); color: var(--v5-texte-2); box-shadow: none;
  transition: background-color var(--v5-duree) var(--v5-courbe), color var(--v5-duree) var(--v5-courbe);
}
html.v5 #vt-creer.vt-creer .vt-etape.ia .vt-ia-options > summary:not(#_):hover{ background: var(--v5-survol); color: var(--v5-texte); }
html.v5 #vt-creer.vt-creer .vt-etape.ia .vt-ia-options > summary > span{ flex: none; }
html.v5 #vt-creer.vt-creer .vt-ia-options .vt-ia-chev{ order: -1; flex: none; width: 14px; height: 14px; color: var(--v5-texte-3); transform: rotate(-90deg); transition: transform var(--v5-duree-inspecteur) var(--v5-courbe); }
html.v5 #vt-creer.vt-creer .vt-ia-options[open] .vt-ia-chev{ transform: rotate(0deg); }
/* 24/10 : « .vt-etape.ia .vt-ia-options > summary > span » (flex 0 0 auto) passait devant : le résumé ne rétrécissait pas et la page défilait en largeur */
html.v5 #vt-creer.vt-creer .vt-etape.ia .vt-ia-options > summary > .vt-reg-resume, html.v5 #vt-creer.vt-creer .vt-ia-options .vt-reg-resume{ flex: 1 1 auto; min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-weight: var(--v5-g-normal); color: var(--v5-texte-3); }
html.v5 #vt-creer.vt-creer .vt-ia-options[open] .vt-reg-resume{ visibility: hidden; }
/* ouverture en douceur (Chromium récent ; ailleurs, ouverture immédiate) */
html.v5 #vt-creer .vt-ia-options::details-content{ block-size: 0; overflow: clip; opacity: 0; transition: block-size var(--v5-duree-feuille) var(--v5-courbe), opacity var(--v5-duree-feuille) var(--v5-courbe), content-visibility var(--v5-duree-feuille) allow-discrete; }
html.v5 #vt-creer .vt-ia-options[open]::details-content{ block-size: auto; opacity: 1; }
@media (prefers-reduced-motion: reduce){ html.v5 #vt-creer .vt-ia-options::details-content{ transition: none; } }

/* 22/10 (Lucas : « ni Claude ni Notion : pas ergonomique, pas confortable ») — les réglages deviennent des PROPRIÉTÉS, comme
   en tête d'une page Notion : pas de cadre ni de filets ; une colonne de noms en gris (l'aide passe en bulle au survol du nom) ;
   la valeur juste à côté, alignée à gauche, sans contour, qui s'éclaire au survol ; toute la ligne s'éclaire aussi. Les vues
   sont des pastilles alignées à gauche ; les consignes, un texte libre qui grandit avec ce qu'on écrit. */
html.v5 #vt-creer .vt-reg-carte{ margin: 2px 0 0; padding: 0; border-radius: 0; background: none; box-shadow: none; }
html.v5 #vt-creer .vt-reg-carte #vt-gen:not(#_){ display: contents; }
html.v5 #vt-creer .vt-reg-carte .vt-gen-ligne:not(#_){ display: contents; }
/* une ligne = une propriété : nom (160) · valeur */
html.v5 #vt-creer .vt-reg-carte :is(label.field, div.field):not(#_):not(#_){
  display: grid; grid-template-columns: 160px minmax(0, 1fr); align-items: start; column-gap: 8px;
  min-height: 34px; margin: 0; padding: 3px 4px; box-sizing: border-box; border: 0; border-radius: var(--v5-r-sel); background: none;
  transition: background-color var(--v5-duree-survol) ease-in;
}
html.v5 #vt-creer .vt-reg-carte :is(label.field, div.field):not(#_):not(#_):hover{ background: var(--v5-fond-groupe); }
html.v5 #vt-creer .vt-reg-carte .field > .lbl:not(#_){
  display: flex; align-items: center; min-height: 28px; margin: 0; padding: 0 6px;
  font-size: var(--v5-t-13); line-height: 16px; font-weight: var(--v5-g-normal); color: var(--v5-texte-2); cursor: default;
}
/* valeur d'une liste : le texte seul, sans contour ; la flèche n'apparaît qu'au survol de la ligne */
html.v5 #vt-creer .vt-reg-carte .sel-btn:not(#_):not(#_){
  justify-self: start; width: auto; max-width: 100%; height: 28px; padding: 0 6px; gap: 6px; border: 0; border-radius: var(--v5-r-sel);
  background: none; box-shadow: none; filter: none; color: var(--v5-texte); font-weight: var(--v5-g-normal);
}
html.v5 #vt-creer .vt-reg-carte .sel-btn:not(#_):not(#_):is(:hover, [aria-expanded="true"]){ background: var(--v5-survol); }
html.v5 #vt-creer .vt-reg-carte .sel-btn .sel-chev{ opacity: 0; color: var(--v5-texte-3); transition: opacity var(--v5-duree-survol) ease-in; }
html.v5 #vt-creer .vt-reg-carte .field:hover .sel-btn .sel-chev, html.v5 #vt-creer .vt-reg-carte .sel-btn[aria-expanded="true"] .sel-chev{ opacity: 1; }
html.v5 #vt-creer .vt-reg-carte .sel-btn .sel-defaut{ display: none; }
/* consignes : texte libre sur la ligne, « vide » en gris, qui grandit avec le contenu ; un fond seulement pendant la saisie */
html.v5 #vt-creer .vt-reg-carte textarea#flash-instructions:not(#_):not(#_){
  display: block; width: 100%; min-height: 28px; box-sizing: border-box; margin: 0; padding: 6px 6px; border: 0; border-radius: var(--v5-r-sel);
  background: none; box-shadow: none; resize: none; field-sizing: content; max-height: 160px;
  font: var(--v5-g-normal) var(--v5-t-13)/16px var(--v5-police); color: var(--v5-texte);
}
html.v5 #vt-creer .vt-reg-carte textarea#flash-instructions::placeholder{ color: var(--v5-texte-3); }
html.v5 #vt-creer .vt-reg-carte textarea#flash-instructions:not(#_):not(#_):hover{ background: var(--v5-survol); }
html.v5 #vt-creer .vt-reg-carte textarea#flash-instructions:not(#_):not(#_):focus{ outline: none; background: var(--v5-surface-inset); box-shadow: inset 0 0 0 var(--v5-trait-fort) var(--v5-separateur-fort); }
/* vues : pastilles compactes, à gauche, à la suite ; choisie = pleine, non choisie = texte gris qui s'éclaire au survol */
html.v5 #vt-creer .vt-reg-carte .vt-gen-vues:not(#_){ display: flex; flex-wrap: wrap; justify-content: flex-start; gap: 4px; padding: 3px 2px; }
html.v5 #vt-creer .vt-reg-carte .vt-gen-vues .vt-couleur:not(#_):not(#_){ height: 22px; padding: 0 9px; border: 0; background: var(--v5-rempli-4); box-shadow: none; color: var(--v5-texte-2); font-size: var(--v5-t-12); font-weight: var(--v5-g-normal); }
html.v5 #vt-creer .vt-reg-carte .vt-gen-vues .vt-couleur:not(#_):not(#_):hover{ --v5-texte-3: var(--v5-texte-2); background: var(--v5-survol); color: var(--v5-texte); }
html.v5 #vt-creer .vt-reg-carte .vt-gen-vues .vt-couleur.active:not(#_):not(#_){ background: var(--v5-rempli-1); color: var(--v5-texte); font-weight: var(--v5-g-moyen); }

/* ================================================================== 18/10 — « À la main » et « Brouillon Vinted » (Lucas : « applique bien le style partout »)
   Même présentation que « Réglages de la fiche » et que la ligne Taille : une ligne par champ, nom à gauche, champ à droite,
   filets entre les lignes ; la description et les couleurs gardent toute la largeur. */
html.v5 #vt-creer :is(.vt-etape.manuel-seul, #brouillon-champs-communs, #brouillon-fields-existant) > .field:not(#_):not(#_){
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(200px, 340px); align-items: center; column-gap: 16px; row-gap: 8px;
  position: relative; margin: 0; padding: 10px 0; border: 0; background: none; box-shadow: none;
}
html.v5 #vt-creer :is(.vt-etape.manuel-seul, #brouillon-champs-communs, #brouillon-fields-existant) > .field + .field:not(#_):not(#_){ box-shadow: inset 0 var(--v5-trait-fort) 0 var(--v5-separateur); }
html.v5 #vt-creer :is(.vt-etape.manuel-seul, #brouillon-champs-communs, #brouillon-fields-existant) > .field > .lbl:not(#_){ margin: 0; font-size: var(--v5-t-13); font-weight: var(--v5-g-moyen); color: var(--v5-texte); }
html.v5 #vt-creer :is(.vt-etape.manuel-seul, #brouillon-champs-communs, #brouillon-fields-existant) > .field > :is(input, select, .sel-btn, .vt-couleurs):not(#_){ width: 100%; min-width: 0; box-sizing: border-box; }
html.v5 #vt-creer :is(.vt-etape.manuel-seul, #brouillon-fields-existant) > .field:has(> textarea):not(#_):not(#_){ grid-template-columns: minmax(0, 1fr); }
html.v5 #vt-creer :is(.vt-etape.manuel-seul, #brouillon-fields-existant) > .field:has(.vt-couleurs):not(#_):not(#_){ grid-template-columns: minmax(0, 1fr); }   /* 01/11 : même poids que la règle des deux colonnes (l'identifiant dans :is()) : le nuancier restait tassé dans 340 px, sur 9 rangs */
html.v5 #vt-creer .vt-etape.manuel-seul .vt-couleurs{ display: flex; flex-wrap: wrap; gap: 6px; }
html.v5 #vt-creer .vt-etape.manuel-seul > .vt-cat-wrap > .vt-cat-liste{ grid-column: 2; }
html.v5 #vt-creer .vt-etape.manuel-seul > .vt-aide{ padding: 10px 0 0; font-size: var(--v5-t-12); color: var(--v5-texte-3); box-shadow: inset 0 var(--v5-trait-fort) 0 var(--v5-separateur); }
html.v5 #vt-creer.vt-creer:is(.remplissage-manuel, .mode-existant) #brouillon-champs-communs:not(#_){ display: flex; flex-direction: column; align-items: stretch; gap: 0; }
html.v5 #vt-creer.vt-creer:is(.remplissage-manuel, .mode-existant) #brouillon-champs-communs > button.primary:not(#_){ align-self: flex-end; flex: none; width: auto; margin: 12px 0 0; }

/* 18/10 : un seul bouton pendant la création, « Arrêter » : rond, carré plein bien visible au centre (comme l'arrêt d'une réponse de Claude) */
html.v5 #vt-creer .vt-gen-ctrl.vt-gen-stop:not(#_){ width: var(--v5-ctrl-l); height: var(--v5-ctrl-l); border: 0; border-radius: 50%; background: var(--v5-texte); color: var(--v5-fond); box-shadow: none; }
html.v5 #vt-creer .vt-gen-ctrl.vt-gen-stop:not(#_):hover{ background: var(--v5-texte-2); }
html.v5 #vt-creer .vt-gen-ctrl.vt-gen-stop svg{ width: 21px; height: 21px; }   /* 18/10 : carré ≈ 13 px */
html.v5 #vt-creer #gen-pause:not(#_){ display: none; }
#vt-capsules .vt-capsules-plus{ height: 28px; margin-top: 2px; padding: 0 12px; border: 0; border-radius: 999px; background: none; box-shadow: var(--v5-filet-bouton); color: var(--v5-texte-2); font: var(--v5-g-moyen, 500) var(--v5-t-12)/1 var(--v5-police); cursor: pointer; }
#vt-capsules .vt-capsules-plus:hover{ color: var(--v5-texte); background: var(--v5-rempli-2); }
/* 24/10 : sous les vues cochées, ce qu'elles couvrent (vêtements) ; un objet a ses propres vues, choisies par l'IA */
html.v5 #vt-creer .vt-gen-vues-note{ grid-column: 2 / -1; flex-basis: 100%; margin: 6px 0 0; font-size: var(--v5-t-12); line-height: 1.4; color: var(--v5-texte-3); }

/* 25/10 : bouton principal de Créer pendant qu'une fiche se crée (js/v5/pages/creer.js, data-etat) : grisé, sans effet — il ne relance
   jamais la même création ; « Valider la taille » et « Ajouter à la file » gardent l'aspect normal */
html.v5 #ia-generer-btn[data-etat="occupe"]{ opacity: var(--v5-opacite-inactif); cursor: default; }
/* 25/10 : résumé d'une ligne au-dessus des capsules (« 1 à choisir · 3 en échec · 2 en création… », js/creer-capsules.js) */
html.v5 .vt-capsules-resume{ margin: 0 0 8px 2px; font-size: var(--v5-t-12); line-height: 16px; color: var(--v5-texte-3); }
html.v5 .vt-capsules-resume:empty{ display: none; }
/* une carte de choix est ouverte : un seul endroit pour la taille (la carte), le champ « Taille » du composeur se cache */
html.v5 #vt-creer.vt-creer.vt-choix-ouvert .vt-compo-pied #brouillon-taille-champ{ display: none; }

/* ================================================================== 26/10 : liens en cours façon Notion (gamme choisie le 25/10) — une vraie
   liste sous le composeur au lieu de pastilles empilées : une ligne par lien, pleine largeur (vignette carrée, nom, état aligné à droite,
   croix), séparée d'un trait fin ; la ligne ouverte (choix de taille) a un fond doux. */
html.v5 #vt-capsules .vt-capsules-liste{ align-items: stretch; gap: 0; }
html.v5 #vt-capsules .vt-capsule{ display: flex; width: 100%; height: 40px; border-radius: 0; background: none; box-shadow: inset 0 calc(-1 * var(--v5-trait-fort)) 0 var(--v5-separateur); }
html.v5 #vt-capsules .vt-capsule:last-child{ box-shadow: none; }
html.v5 #vt-capsules .vt-capsule.ouverte{ border-radius: var(--v5-r-sel); background: var(--v5-survol); box-shadow: none; }
html.v5 #vt-capsules .vt-capsule:hover{ border-radius: var(--v5-r-sel); background: var(--v5-survol); --v5-texte-3: var(--v5-texte-2); }
html.v5 #vt-capsules .vt-capsule-corps{ flex: 1; gap: 10px; padding: 0 8px 0 6px; font-size: var(--v5-t-13); }
html.v5 #vt-capsules .vt-capsule-corps img, html.v5 #vt-capsules .vt-capsule-vide{ width: 28px; height: 28px; border-radius: var(--v5-r-photo); }
html.v5 #vt-capsules .vt-capsule-nom{ flex: 1; max-width: none; text-align: left; }
html.v5 #vt-capsules .vt-capsule-etat{ font-size: var(--v5-t-12); }
/* 26/10 (Lucas) : la croix d'un lien n'apparaît qu'au survol de sa ligne (ou au clavier) ; les autres actions sont au clic droit */
html.v5 #vt-capsules .vt-capsule .vt-capsule-x{ opacity: 0; }
html.v5 #vt-capsules .vt-capsule:is(:hover, :focus-within, .ouverte) .vt-capsule-x{ opacity: 1; }

/* ================================================================== 30/10 : Nouvelle fiche façon Notion — « Réglages de la fiche » n'est
   plus une boîte grise : un bloc dépliable posé sur la page, un trait fin au-dessus (comme les groupes de Réglages). */
html.v5 #vt-creer .vt-ia-options:not(#_){ padding-left: 2px; padding-right: 2px; border-radius: 0; background: none; box-shadow: inset 0 var(--v5-trait-fort) 0 var(--v5-separateur); }

/* 01/11 : liste des liens sous le composeur — une ligne terminée n'a pas de croix : « Voir dans Fiches » se collait au bord, 28 px plus loin
   que l'état des autres lignes (dont la croix invisible garde sa place) */
html.v5 #vt-capsules .vt-capsule:not(:has(.vt-capsule-x)) .vt-capsule-etat{ margin-right: 28px; }
/* 01/11 : « Réglages de la fiche » ouvert — les noms des réglages commençaient 12 px à gauche du titre du dépliant (sous le chevron) */
html.v5 #vt-creer.vt-creer .vt-etape.ia .vt-ia-options[open] > :not(summary):not(#_){ margin-left: 12px; }
/* Lot de photos rangé par article (18/11, js/creer-lot.js) */
#vt-lot-bouton{ display: block; width: auto; margin: 6px 0 0; font-size: var(--v5-t-12); }
.vt-lot{ margin: 10px 0 0; padding: 10px 12px; border-radius: var(--v5-r-groupe); background: var(--v5-fond-groupe); font-size: var(--v5-t-12); color: var(--v5-texte-2); }
.vt-lot-tete{ font-weight: var(--v5-g-moyen); color: var(--v5-texte); margin-bottom: 6px; }
.vt-lot-note{ margin: 0 0 8px; color: var(--v5-texte-3); }
.vt-lot-tailles{ border: 0; margin: 0 0 8px; padding: 0; display: grid; gap: 6px; }
.vt-lot-tailles legend{ padding: 0; margin-bottom: 4px; color: var(--v5-texte); }
.vt-lot-tailles label{ display: flex; align-items: center; gap: 8px; }
.vt-lot-tailles input[type="text"], .vt-lot-taille-article{ width: 90px; margin: 0 0 0 4px; }
.vt-lot-article{ padding: 8px 0; border-top: 1px solid var(--v5-trait); }
.vt-lot-article-tete{ display: flex; align-items: center; gap: 6px; flex-wrap: wrap; color: var(--v5-texte); }
.vt-lot-doute{ margin: 4px 0 0; color: var(--v5-orange); }
.vt-lot-photos{ display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.vt-lot-photos figure{ margin: 0; width: 84px; display: grid; gap: 4px; }
.vt-lot-photos img{ width: 84px; height: 112px; object-fit: cover; border-radius: 6px; background: var(--v5-fond); }
.vt-lot-photos select{ width: 84px; font-size: 11px; padding: 2px; }
.vt-lot-actions{ display: flex; gap: 8px; margin-top: 10px; }
.vt-lot-actions > button{ width: auto; margin: 0; }
