/* =============================================================================
   Litiges - système UI repris de DESIGN_UI.md (Célestine)
   Classes préfixées autonomes posées par-dessus Tabler. Couleur d'entité via
   var(--main-*, repli) ; vert / orange / rouge de sens jamais modifiés.
   ========================================================================== */

:root {
  --main-color: #1ab394;
  --main-color-dark: #179f85;
  --main-soft: #ebf8f5;
  --main-tint: #d8f2ec;
  --main-line: #a8e2d6;
  --main-ink: #106b58;
  --main-rgb: 26, 179, 148;
  /* Tailles de texte : valeurs DESIGN_UI sur téléphone et tablette,
     agrandies sur ordinateur (bloc « Ordinateur » en fin de feuille) */
  --fs-base: 13px;
  --fs-sm: 12px;
  --fs-xs: 11px;
  --fs-section: 14px;
  --fs-h: 19px;
  --fs-brand: 16px;
  --fs-key: 20px;
  --top-h: 59px; /* hauteur de la barre du haut (éléments collants) */
}

/* ---------- Base ---------------------------------------------------------- */
body {
  background: #f6f8fa;
  color: #26323d;
  font-size: var(--fs-base);
  overflow-x: hidden;
}
a { color: #1c6ca1; }
body::before { /* bande d'entité de 3 px, repère permanent */
  content: ''; position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 2100;
  background: var(--main-color, #1ab394);
}
.st-muted { color: #8a96a3; }
.st-overline {
  font-size: var(--fs-xs); font-weight: 600; text-transform: uppercase; letter-spacing: .3px; color: #8a96a3;
}
.ml-auto { margin-left: auto; }

/* ---------- Compléments celestine-skill (partie 9) ------------------------ */
html { color-scheme: light; scroll-padding-top: calc(var(--top-h) + 12px); }
/* Lien d'évitement : invisible jusqu'au premier Tab */
.st-evitement {
  position: absolute; left: 8px; top: -60px; z-index: 2200; padding: 10px 14px; border-radius: 8px;
  background: #fff; color: #1c6ca1; font-weight: 600; box-shadow: 0 2px 8px rgba(0,0,0,.15); text-decoration: none;
}
.st-evitement:focus { top: 8px; }
main:focus { outline: none; }
/* Boutons Tabler en flex : l'espace du HTML entre l'icône et le texte disparaît */
.btn { gap: 6px; }
/* Tactile : pas de délai de double appui, couleur d'appui aux couleurs de l'entité */
a, button, .btn, .qb-btn-soft, .cmp-btn, .st-row-lien, .lt-preset, .qb-chip, select, label {
  touch-action: manipulation;
  -webkit-tap-highlight-color: rgba(var(--main-rgb, 26, 179, 148), .12);
}

/* ---------- Barre du haut ------------------------------------------------- */
.st-top {
  position: sticky; top: 0; z-index: 1030;
  display: flex; align-items: center; gap: 10px; min-height: 56px; padding: 3px 16px 0;
  background: #fff; border-bottom: 1px solid #e4e8ec;
}
.st-brand { display: flex; align-items: center; gap: 8px; min-height: 44px; font-size: var(--fs-brand); font-weight: 700; color: #26323d; text-decoration: none; }
.st-brand:hover { color: #26323d; text-decoration: none; }
.st-brand-icon {
  display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 50%;
  background: var(--main-tint, #d8f2ec); color: var(--main-color, #1ab394);
}
.st-entity {
  font-size: var(--fs-xs); font-weight: 600; text-transform: uppercase; padding: 2px 8px; border-radius: 14px;
  background: var(--main-soft, #ebf8f5); border: 1px solid var(--main-line, #a8e2d6); color: var(--main-ink, #106b58);
}
/* Menu en onglets soulignés : pas de fond ni d'arrondi, barre sous le lien actif, collée au bas de la barre */
.st-nav { display: flex; align-items: stretch; align-self: stretch; gap: 4px; margin-left: 12px; }
.st-nav a {
  display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 12px;
  color: #5b6875; font-weight: 600; text-decoration: none; white-space: nowrap;
  border-bottom: 3px solid transparent; transition: color .15s, border-color .15s;
}
.st-nav a:hover { color: #26323d; border-bottom-color: #d3dae1; text-decoration: none; }
.st-nav a.is-active { color: var(--main-ink, #106b58); border-bottom-color: var(--main-color, #1ab394); }
.st-user { margin-left: auto; display: flex; align-items: center; gap: 10px; min-width: 0; }
.st-user-text { text-align: right; line-height: 1.2; min-width: 0; }
.st-user-name { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.st-user-role { font-size: var(--fs-xs); color: #8a96a3; }
.cmp-btn.st-burger { display: none; }

/* Menu replié (burger) sous 1200 px : sept entrées ne tiennent pas sur une ligne */
@media (max-width: 1199px) {
  .st-top { flex-wrap: wrap; padding: 3px 12px 0; }
  .cmp-btn.st-burger { display: inline-flex; margin-left: auto; }
  .st-user { margin-left: 0; }
  .st-user-text { display: none; }
  .st-nav {
    display: none; order: 10; flex-basis: 100%; flex-direction: column; align-items: stretch;
    margin: 0 0 8px; padding-top: 6px; border-top: 1px solid #e4e8ec;
  }
  .st-top.is-open .st-nav { display: flex; }
  /* Liste verticale : la barre passe à gauche du lien actif */
  .st-nav a { min-height: 44px; border-bottom: 0; border-left: 3px solid transparent; }
  .st-nav a:hover { border-left-color: #d3dae1; }
  .st-nav a.is-active { border-left-color: var(--main-color, #1ab394); background: var(--main-soft, #ebf8f5); }
}

/* ---------- Page ---------------------------------------------------------- */
.st-page { max-width: none; margin: 0; padding: 4px 0 24px; } /* toute la largeur de la fenêtre */
.st-page.has-bar { padding-bottom: 90px; } /* le contenu ne passe pas sous la barre fixe */

/* En-tête de page avec retour à gauche (4.2) */
.qb-head { display: flex; align-items: center; gap: 12px; margin: 12px; min-width: 0; }
.qb-back {
  flex: 0 0 44px; display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px;
  border: 1px solid #d3dae1; border-radius: 8px; background: #fff; color: #26323d; text-decoration: none;
}
.qb-back:hover { background: #eef2f5; color: #26323d; text-decoration: none; }
.qb-head-text { min-width: 0; }
.qb-head-text h2 { margin: 0; font-size: var(--fs-h); font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.qb-head-text small { color: #5b6875; }
.qb-family {
  display: inline-block; font-size: var(--fs-xs); font-weight: 600; text-transform: uppercase; padding: 1px 8px; border-radius: 14px;
  background: var(--main-soft, #ebf8f5); border: 1px solid var(--main-line, #a8e2d6); color: var(--main-ink, #106b58);
}
@media (max-width: 767px) { .qb-head-text h2 { white-space: normal; } }

/* Section numérotée (4.1) */
.req-section { background: #fff; margin: 12px; padding: 14px 16px; border: 1px solid #e4e8ec; border-radius: 10px; min-width: 0; }
.req-section-title { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; font-size: var(--fs-section); font-weight: 600; color: #26323d; }
.req-step {
  flex: 0 0 22px; display: inline-flex; align-items: center; justify-content: center; width: 22px; height: 22px; border-radius: 50%;
  background: var(--main-color, #1ab394); color: #fff; font-size: var(--fs-sm);
}
.req-section.qb-done .req-step { background: #1e7b34; }
.req-section.qb-missing .req-step { background: #ed5565; }
.req-section-hint { font-size: var(--fs-sm); color: #5b6875; margin: -6px 0 12px; }

/* ---------- Champs (4.3) -------------------------------------------------- */
.qb-grid { display: flex; flex-wrap: wrap; gap: 14px 20px; }
.qb-field { flex: 1 1 220px; min-width: 0; }
.qb-field.qb-narrow { flex: 0 1 170px; }
.qb-field.qb-wide { flex-basis: 100%; }
.qb-field > label, .qb-label { display: block; margin-bottom: 4px; font-size: var(--fs-sm); font-weight: 600; color: #5b6875; }
.qb-hint { margin-top: 4px; font-size: var(--fs-xs); color: #8a96a3; }
.form-control {
  min-height: 38px; border: 1px solid #d3dae1; border-radius: 6px; box-shadow: none; font-size: var(--fs-base); color: #26323d;
}
.form-control:focus { border-color: #7fb5dc; box-shadow: 0 0 0 3px rgba(28, 132, 198, .16); }
.form-control.is-error { border-color: #ed5565; background: #fffafa; }
.is-set { border-color: var(--main-color, #1ab394) !important; box-shadow: inset 0 0 0 1px var(--main-color, #1ab394); }

/* Pastilles de choix (4.4) */
.qb-field-chips { display: flex; align-items: center; gap: 12px; flex-basis: 100%; }
.qb-field-chips > label { flex: 0 0 220px; margin: 0; }
.qb-field-chips + .qb-field-chips { border-top: 1px dashed #edf0f3; padding-top: 12px; }
.qb-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.qb-chip { position: relative; margin: 0; cursor: pointer; }
.qb-chip input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.qb-chip span {
  display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 6px 12px;
  border: 1px solid #d3dae1; border-radius: 18px; background: #fff; color: #26323d; font-size: var(--fs-base);
}
.qb-chip input:checked + span { background: #dceefc; border-color: #96c4e7; color: #1c6ca1; font-weight: 600; }
.qb-chip input:focus-visible + span { box-shadow: 0 0 0 3px rgba(28, 132, 198, .25); }
.qb-chip input:disabled + span { opacity: .45; cursor: not-allowed; }
.qb-chip-none span { color: #8a96a3; border-style: dashed; }
@media (max-width: 767px) {
  .qb-field-chips { flex-direction: column; align-items: flex-start; gap: 6px; }
  .qb-field-chips > label { flex-basis: auto; }
}

/* ---------- Boutons (4.6) ------------------------------------------------- */
.btn { border-radius: 6px; }
.btn:disabled, .btn.disabled { opacity: .45; cursor: not-allowed; }
.btn-primary { background: var(--main-color, #1ab394); border-color: var(--main-color, #1ab394); }
.btn-primary:hover, .btn-primary:focus { background: var(--main-color-dark, #179f85); border-color: var(--main-color-dark, #179f85); }
.qb-btn-soft {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 38px; padding: 0 12px;
  border: 1px solid #d3dae1; border-radius: 8px; background: #fff; color: #1c6ca1; font-weight: 600; cursor: pointer;
}
.qb-btn-soft:hover { background: #eef2f5; }
.cmp-btn {
  display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px;
  border: 1px solid #d3dae1; border-radius: 8px; background: #fff; color: #5b6875; cursor: pointer;
}
.cmp-btn:hover { background: #eef2f5; }
.cmp-btn-danger { color: #a12626; }
.cmp-btn:disabled { opacity: .45; cursor: not-allowed; }

/* ---------- Lignes de liste (4.8) ---------------------------------------- */
.st-list { display: flex; flex-direction: column; gap: 8px; }
.st-row {
  display: flex; align-items: center; gap: 12px; padding: 10px 12px; background: #fff;
  border: 1px solid #e4e8ec; border-left: 4px solid var(--main-color, #1ab394); border-radius: 8px; min-width: 0;
}
.st-row-main { flex: 1 1 auto; min-width: 0; }
.st-row-title { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.st-row-sub { font-size: var(--fs-sm); color: #5b6875; overflow-wrap: anywhere; }
.st-row-actions { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
a.st-row-lien { color: #26323d; text-decoration: none; min-height: 56px; }
a.st-row-lien:hover { background: #eef2f5; color: #26323d; text-decoration: none; }
.st-row.is-responsable { border-left-color: var(--main-ink, #106b58); }
.st-row.is-direction { border-left-color: #1c84c6; }
@media (max-width: 767px) {
  .st-row { flex-wrap: wrap; }
  .st-row-actions { flex-basis: 100%; justify-content: flex-start; }
}
.st-empty { padding: 24px 12px; text-align: center; color: #8a96a3; }
.st-empty .fa { display: block; font-size: 32px; margin-bottom: 8px; color: #d3dae1; }

/* Résultats de recherche (boutons pleine largeur) */
.st-results { display: flex; flex-direction: column; gap: 6px; margin-top: 8px; }
.st-result {
  display: flex; align-items: center; gap: 10px; width: 100%; min-height: 44px; padding: 8px 12px; text-align: left;
  background: #fff; border: 1px solid #e4e8ec; border-radius: 8px; color: #26323d; cursor: pointer;
}
.st-result:hover { background: #eef2f5; }
.st-result.is-selected { background: var(--main-soft, #ebf8f5); border-color: var(--main-color, #1ab394); }
.st-result:disabled { opacity: .45; cursor: not-allowed; }

/* ---------- Pastilles d'état (4.9) ---------------------------------------- */
.st-badge {
  display: inline-flex; align-items: center; gap: 4px; padding: 2px 9px; border-radius: 14px; font-size: var(--fs-sm); font-weight: 600;
  background: #f6f8fa; border: 1px solid #e4e8ec; color: #5b6875; white-space: nowrap;
}
.st-badge.is-main { background: var(--main-soft, #ebf8f5); border-color: var(--main-line, #a8e2d6); color: var(--main-ink, #106b58); }
.st-badge.is-ok { background: #eaf7ee; border-color: #bfe5c9; color: #1e7b34; }
.st-badge.is-warn { background: #fff8e6; border-color: #f3dca0; color: #8a5a00; }
.st-badge.is-error { background: #fdeeee; border-color: #f0b8b8; color: #a12626; }
.st-badge.is-info { background: #eef6fd; border-color: #c9e0f3; color: #1c6ca1; }

/* ---------- Bandeaux (4.10) ---------------------------------------------- */
.st-banner { display: flex; gap: 10px; align-items: flex-start; margin: 12px; padding: 10px 14px; border: 1px solid; border-radius: 8px; }
.st-banner > .fa { font-size: 16px; margin-top: 1px; }
.st-banner.is-info { background: #eef6fd; border-color: #c9e0f3; color: #1c6ca1; }
.st-banner.is-warn { background: #fff8e6; border-color: #f3dca0; color: #8a5a00; }
.st-banner.is-error { background: #fdeeee; border-color: #f0b8b8; color: #a12626; }
.st-banner.is-ok { background: #eaf7ee; border-color: #bfe5c9; color: #1e7b34; }
.st-banner.in-section { margin: 0 0 12px; }

/* ---------- Tuiles d'information (4.11) ----------------------------------- */
.oc-infos { display: flex; flex-wrap: wrap; gap: 10px; }
.oc-info { flex: 1 1 140px; display: flex; align-items: center; gap: 10px; padding: 10px; background: #f6f8fa; border-radius: 8px; min-width: 0; }
.oc-info-icon {
  flex: 0 0 34px; display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: 50%;
  background: var(--main-tint, #d8f2ec); color: var(--main-color, #1ab394);
}
.oc-info-label { font-size: var(--fs-xs); font-weight: 600; text-transform: uppercase; letter-spacing: .3px; color: #8a96a3; }
.oc-info-value { font-weight: 600; overflow-wrap: anywhere; }
@media (max-width: 767px) { .oc-info { flex-basis: calc(50% - 5px); } .oc-info-icon { flex-basis: 28px; width: 28px; height: 28px; } }

/* ---------- Barre d'actions fixe (4.15) ----------------------------------- */
.qb-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 1000; display: flex; align-items: center; justify-content: space-between;
  gap: 10px; padding: 10px 20px; background: #fff; border-top: 1px solid #e4e8ec; box-shadow: 0 -6px 18px rgba(16, 24, 40, .06);
}
.qb-bar .btn { min-height: 44px; padding: 0 18px; }
.qb-state { font-size: var(--fs-sm); font-weight: 600; color: #1e7b34; }
.qb-state.qb-dirty { color: #8a5a00; }
@media (max-width: 767px) { .qb-bar > .btn { flex: 1 1 50%; } .qb-state { display: none; } }

/* ---------- Navigation d'étapes collante (4.16) -------------------------- */
.qb-steps {
  position: sticky; top: var(--top-h); z-index: 900; display: flex; gap: 6px; margin: 0 12px; padding: 8px 0;
  overflow-x: auto; scrollbar-width: none; background: rgba(246, 248, 250, .94); backdrop-filter: blur(4px);
}
.qb-steps::-webkit-scrollbar { display: none; }
.qb-steps a {
  flex: 0 0 auto; display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 4px 12px 4px 6px;
  border: 1px solid #e4e8ec; border-radius: 18px; background: #fff; color: #26323d; font-weight: 600; text-decoration: none; white-space: nowrap;
}
.qb-steps a .req-step { background: #8a96a3; }
.qb-steps a.is-filled .req-step { background: var(--main-color, #1ab394); }
.qb-steps a.is-done .req-step { background: #1e7b34; }
.qb-steps a.is-missing .req-step { background: #ed5565; }
.req-section { scroll-margin-top: 120px; }
.req-section.qb-flash { animation: qbFlash 1s ease-out; }
@keyframes qbFlash { from { box-shadow: 0 0 0 4px rgba(28, 132, 198, .35); } to { box-shadow: 0 0 0 0 rgba(28, 132, 198, 0); } }
@media (pointer: coarse) { .qb-steps a { min-height: 44px; } }

/* ---------- Cartes (4.7) -------------------------------------------------- */
.cmp-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 12px; }
.cmp-card {
  position: relative; display: flex; gap: 10px; padding: 12px; background: #f6f8fa; border: 1px solid #e4e8ec;
  border-left: 4px solid #d3dae1; border-radius: 10px; min-width: 0; cursor: pointer; margin: 0;
}
.cmp-card:hover { box-shadow: 0 2px 8px rgba(0, 0, 0, .08); }
.cmp-card input[type=checkbox] { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.cmp-card .cmp-check {
  flex: 0 0 24px; width: 24px; height: 24px; border: 2px solid #d3dae1; border-radius: 6px; background: #fff;
  display: inline-flex; align-items: center; justify-content: center; color: #fff; font-size: var(--fs-base);
}
.cmp-card input:checked ~ .cmp-check { background: var(--main-color, #1ab394); border-color: var(--main-color, #1ab394); }
.cmp-card:has(input:checked) { border-left-color: var(--main-color, #1ab394); background: #fff; }
.cmp-card.is-checked { border-left-color: var(--main-color, #1ab394); background: #fff; }
.cmp-card input:focus-visible ~ .cmp-check { box-shadow: 0 0 0 3px rgba(28, 132, 198, .25); }
.cmp-card-body { flex: 1 1 auto; min-width: 0; }
.cmp-family { font-size: var(--fs-xs); font-weight: 600; text-transform: uppercase; color: var(--main-ink, #106b58); }
.cmp-name { font-weight: 600; overflow-wrap: anywhere; }
.cmp-meta { font-size: var(--fs-sm); color: #5b6875; overflow-wrap: anywhere; }
.cmp-thumb { flex: 0 0 64px; width: 64px; height: 64px; border-radius: 8px; border: 1px solid #e4e8ec; background: #fff center / contain no-repeat; }
@media (max-width: 767px) { .cmp-grid { grid-template-columns: 1fr; } }

/* ---------- Fichiers par catégorie --------------------------------------- */
.st-files { display: flex; flex-direction: column; gap: 10px; }
.st-file-cat { padding: 10px 12px; border: 1px solid #e4e8ec; border-radius: 8px; background: #fff; }
.st-file-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.st-file-head .qb-label { margin: 0; flex: 1 1 160px; font-size: var(--fs-base); color: #26323d; }
.st-file-list { display: flex; flex-direction: column; gap: 4px; margin-top: 8px; }
.st-file-list:empty { display: none; }
.st-file {
  display: flex; align-items: center; gap: 8px; padding: 4px 4px 4px 10px; border-radius: 8px; background: #f6f8fa; min-width: 0;
}
.st-file-name { flex: 1 1 auto; min-width: 0; overflow-wrap: anywhere; }
.st-file-size { font-size: var(--fs-xs); color: #8a96a3; white-space: nowrap; }
.st-file.is-error { background: #fdeeee; color: #a12626; }
.st-check { display: inline-flex; align-items: center; gap: 8px; min-height: 36px; cursor: pointer; margin: 0; }
.st-check input { width: 18px; height: 18px; }
@media (pointer: coarse) { .st-check { min-height: 44px; } }

/* Liste de ce qui bloque (4.10 .oc-blocking) */
.st-blocking ul { margin: 4px 0 0; padding-left: 18px; }
.st-blocking a { color: inherit; text-decoration: underline; }
@media (pointer: coarse) { .st-blocking li a { display: block; min-height: 44px; padding: 10px 0; } }

/* ---------- Onglets (fond entité, trait haut sur l'actif) ---------------- */
.st-tabs { display: flex; gap: 6px; margin: 12px 12px 0; overflow-x: auto; scrollbar-width: none; }
.st-tabs::-webkit-scrollbar { display: none; }
.st-tabs button {
  flex: 0 0 auto; display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 14px;
  border: 1px solid #e4e8ec; border-radius: 0; background: #fff; color: #5b6875; font-weight: 600; cursor: pointer;
}
.st-tabs button.is-active { background: var(--main-soft, #ebf8f5); color: var(--main-ink, #106b58); border-color: var(--main-line, #a8e2d6); box-shadow: inset 0 3px 0 var(--main-color, #1ab394); }
@media (pointer: coarse) { .st-tabs button { min-height: 44px; } }

/* ---------- Fiche technique dl (4.14) ------------------------------------ */
.st-dl { margin: 0; }
.st-dl > div { display: flex; justify-content: space-between; gap: 12px; padding: 6px 0; border-bottom: 1px dashed #edf0f3; }
.st-dl dt { font-weight: 600; color: #5b6875; font-size: var(--fs-sm); }
.st-dl dd { margin: 0; text-align: right; overflow-wrap: anywhere; min-width: 0; }
.st-brief { padding: 10px 12px; background: #f6f8fa; border-radius: 8px; white-space: normal; overflow-wrap: anywhere; }

/* Lien en pastille (4.9) */
.ord-offer {
  display: inline-flex; align-items: center; gap: 5px; min-height: 30px; padding: 3px 9px; border-radius: 14px;
  background: var(--main-soft, #ebf8f5); border: 1px solid var(--main-line, #a8e2d6); color: var(--main-ink, #106b58); font-weight: 600; text-decoration: none;
}
.ord-offer:hover { background: var(--main-tint, #d8f2ec); border-color: var(--main-color, #1ab394); color: var(--main-ink, #106b58); text-decoration: none; }

/* ---------- Chronologie (4.13) ------------------------------------------- */
.st-timeline { list-style: none; margin: 0; padding: 0 0 0 16px; border-left: 2px solid #e4e8ec; }
.st-timeline li { position: relative; padding: 0 0 12px 24px; }
.st-timeline-dot {
  position: absolute; left: -33px; top: 0; width: 32px; height: 32px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center;
  background: #fff; border: 2px solid #e4e8ec; color: #8a96a3; font-size: var(--fs-base);
}
.st-timeline li.is-last .st-timeline-dot { background: var(--main-color, #1ab394); border-color: var(--main-color, #1ab394); color: #fff; }
.st-timeline-body { padding: 8px 12px; background: #f6f8fa; border-radius: 8px; font-size: var(--fs-base); overflow-wrap: anywhere; }
.st-timeline-body .st-muted { font-size: var(--fs-xs); }

/* ---------- Décision sur un BAT (valider / demander une modification) ---- */
.st-decision { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.st-decision-bloc { padding: 12px; border: 1px solid #e4e8ec; border-radius: 10px; background: #fff; min-width: 0; }
.st-decision-bloc.is-ok { border-top: 4px solid #1e7b34; }
.st-decision-bloc.is-warn { border-top: 4px solid #f8ac59; }
.st-decision .btn { min-height: 44px; }
.st-apercu { display: block; max-width: 100%; max-height: 480px; border: 1px solid #e4e8ec; border-radius: 8px; background: #fff; }
@media (max-width: 767px) { .st-decision { grid-template-columns: 1fr; } }

/* ---------- Barre de filtres (4.18) -------------------------------------- */
.st-filtres { margin: 0 12px; padding: 10px 12px; background: #eef2f5; border-radius: 10px; display: flex; flex-direction: column; gap: 10px; }
.st-filtres-champs { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.st-filtres-champs .st-filtre-q { flex: 1 1 240px; min-width: 0; }
.st-filtres-champs .st-filtre { flex: 0 1 180px; min-width: 150px; }
.st-filtre-mes { padding: 0 10px; background: #fff; border: 1px solid #d3dae1; border-radius: 6px; }
.st-filtres-groupes .st-badge { padding: 0 6px; font-size: var(--fs-xs); }
@media (max-width: 767px) { .st-filtres-champs > * { flex: 1 1 100% !important; } }
.qb-chip span.is-on { background: #dceefc; border-color: #96c4e7; color: #1c6ca1; font-weight: 600; }
a.qb-chip { text-decoration: none; }

/* ---------- Tableau Studio (colonnes) ------------------------------------ */
.st-kanban { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; margin: 12px; align-items: start; }
.st-col { background: #eef2f5; border-radius: 10px; min-width: 0; }
.st-col-head {
  display: flex; align-items: center; gap: 8px; padding: 10px 12px; font-weight: 600; border-bottom: 2px solid var(--main-line, #a8e2d6);
  color: var(--main-ink, #106b58);
}
.st-col-body { display: flex; flex-direction: column; gap: 8px; padding: 8px; }
.st-col-vide { padding: 12px; text-align: center; color: #8a96a3; font-size: var(--fs-sm); }
.st-carte { background: #fff; border: 1px solid #e4e8ec; border-left: 4px solid var(--main-color, #1ab394); border-radius: 8px; min-width: 0; }
.st-carte.prio-urgente { border-left-color: #f8ac59; }
.st-carte.prio-critique { border-left-color: #ed5565; }
.st-carte.is-retard { box-shadow: inset 0 0 0 1px #f0b8b8; }
.st-carte-lien { display: block; padding: 10px; color: #26323d; text-decoration: none; }
.st-carte-lien:hover { background: #f6f8fa; color: #26323d; text-decoration: none; }
.st-carte-haut { display: flex; align-items: center; gap: 6px; justify-content: space-between; }
.st-carte-client { font-weight: 600; overflow-wrap: anywhere; }
.st-carte-meta { font-size: var(--fs-sm); color: #5b6875; overflow-wrap: anywhere; }
.st-carte-attente { font-size: var(--fs-sm); color: #8a5a00; background: #fff8e6; border-radius: 6px; padding: 4px 8px; margin-top: 4px; overflow-wrap: anywhere; }
.st-carte-bas { display: flex; justify-content: space-between; gap: 8px; margin-top: 6px; font-size: var(--fs-sm); color: #5b6875; }
.st-carte-affecter { display: flex; gap: 6px; padding: 0 10px 10px; }
.st-carte-affecter .form-control { flex: 1 1 auto; min-width: 0; }
.st-carte-affecter .btn { flex: 0 0 44px; min-height: 38px; padding: 0; }
@media (pointer: coarse) { .st-carte-affecter .btn { min-height: 44px; } }

/* ---------- Messagerie ---------------------------------------------------- */
.st-badge-menu { padding: 0 6px; font-size: var(--fs-xs); min-width: 20px; justify-content: center; }
.st-pastille-non-lu { display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: #ed5565; flex: 0 0 10px; }
.cmp-btn.st-burger { position: relative; }
.st-pastille-burger { position: absolute; top: 4px; right: 4px; }
.st-avatar {
  flex: 0 0 36px; width: 36px; height: 36px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center;
  background: var(--main-tint, #d8f2ec); color: var(--main-color, #1ab394);
}
.st-row.is-non-lu { background: #fffdf5; border-left-color: #ed5565; }
.st-row.is-non-lu .st-row-title, .st-row.is-non-lu .st-apercu-message { font-weight: 700; color: #26323d; }

/* Fil de discussion (onglet Échanges) */
.st-fil { display: flex; flex-direction: column; gap: 10px; max-height: 60vh; overflow-y: auto; padding: 4px 2px; }
.st-msg { display: flex; flex-direction: column; max-width: min(80%, 760px); align-self: flex-start; } /* lignes lisibles même en pleine largeur */
.st-msg.is-moi { align-self: flex-end; align-items: flex-end; }
.st-msg-bulle { padding: 8px 12px; border-radius: 10px; background: #f6f8fa; border: 1px solid #e4e8ec; overflow-wrap: anywhere; white-space: normal; }
.st-msg.is-moi .st-msg-bulle { background: var(--main-soft, #ebf8f5); border-color: var(--main-line, #a8e2d6); }
.st-msg.is-systeme .st-msg-bulle { background: #fff8e6; border-color: #f3dca0; color: #8a5a00; }
.st-msg-meta { font-size: var(--fs-xs); color: #8a96a3; margin-top: 2px; }
.st-msg-pj { margin-top: 6px; }
.st-saisie { display: flex; flex-direction: column; gap: 8px; margin-top: 12px; padding-top: 12px; border-top: 1px solid #e4e8ec; }
.st-saisie-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
@media (max-width: 767px) { .st-msg { max-width: 92%; } .st-avatar { display: none; } }

/* ---------- Mes actions (liste « À traiter », DESIGN_UI 4.19) ------------- */
.st-actions { display: flex; flex-direction: column; gap: 8px; }
.st-action {
  display: flex; align-items: center; gap: 12px; min-height: 56px; padding: 8px 12px; background: #fff;
  border: 1px solid #e4e8ec; border-radius: 8px; color: #26323d; text-decoration: none; min-width: 0;
}
.st-action:hover { background: #eef2f5; color: #26323d; text-decoration: none; }
.st-action-icone { flex: 0 0 38px; width: 38px; height: 38px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: 16px; }
.st-action.niveau-calme .st-action-icone { background: rgba(26, 179, 148, .12); color: #1ab394; }
.st-action.niveau-surveiller .st-action-icone { background: rgba(248, 172, 89, .16); color: #a85507; }
.st-action.niveau-chaud .st-action-icone { background: rgba(237, 85, 101, .12); color: #b52020; }
.st-action-texte { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; }
.st-action-titre { font-weight: 600; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.st-action-dossier { font-size: var(--fs-sm); color: #5b6875; }
.st-action-detail { font-size: var(--fs-sm); color: #8a96a3; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.st-action-age { flex: 0 0 auto; display: flex; flex-direction: column; align-items: center; line-height: 1; min-width: 44px; }
.st-action-age strong { font-size: var(--fs-key); font-weight: 700; }
.st-action-age small { font-size: var(--fs-xs); color: #8a96a3; }
.st-action.niveau-surveiller .st-action-age strong { color: #a85507; }
.st-action.niveau-chaud .st-action-age strong { color: #b52020; }
.st-pastille { display: inline-block; width: 10px; height: 10px; border-radius: 50%; vertical-align: middle; }
.st-pastille.niveau-calme { background: #1ab394; }
.st-pastille.niveau-surveiller { background: #f8ac59; }
.st-pastille.niveau-chaud { background: #ed5565; }
@media (max-width: 767px) { .st-action-detail { white-space: normal; } }

/* ---------- Mes notifications --------------------------------------------- */
.st-pref { flex-wrap: wrap; }
.st-pref.is-coupe { opacity: .7; }
.st-pref-canaux { display: flex; flex-wrap: wrap; gap: 16px; }
.st-pref-canal { display: flex; flex-direction: column; gap: 4px; }
.cmp-btn.is-active { background: var(--main-soft, #ebf8f5); color: var(--main-ink, #106b58); border-color: var(--main-line, #a8e2d6); }

/* ---------- Connexion ----------------------------------------------------- */
.st-login { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 16px; }
.st-login-box { width: 100%; max-width: 400px; }
.st-login-head { text-align: center; margin-bottom: 4px; }
.st-login-head .st-brand-icon { width: 48px; height: 48px; font-size: 22px; margin-bottom: 8px; }
.st-login-head h1 { font-size: var(--fs-h); font-weight: 600; margin: 0; }
.st-login .req-section { margin: 12px 0; }
.st-login .btn-primary { width: 100%; min-height: 44px; }

/* ---------- Tactile : tout ce qui se touche fait au moins 44 px (6) -------- */
@media (pointer: coarse) {
  .form-control, .btn, .cmp-btn, .qb-btn-soft { min-height: 44px; }
  .cmp-btn { width: 44px; height: 44px; }
  .qb-chip span { min-height: 44px; padding: 8px 14px; }
  .st-nav a { min-height: 44px; }
  .ord-offer { min-height: 44px; padding: 8px 12px; }
}

/* ---------- Ergonomie commune --------------------------------------------- */
/* Focus clavier visible sur tout ce qui se clique (liens-lignes, cartes, menu) */
a.st-row-lien:focus-visible, .st-carte-lien:focus-visible, .st-action:focus-visible,
.st-nav a:focus-visible, .st-tabs button:focus-visible, .qb-back:focus-visible, .cmp-btn:focus-visible, .qb-btn-soft:focus-visible {
  outline: none; box-shadow: 0 0 0 3px rgba(28, 132, 198, .35);
}
/* Onglets de la fiche dossier : restent visibles en faisant défiler */
.st-tabs-collants {
  position: sticky; top: var(--top-h); z-index: 900; margin: 0 12px; padding: 8px 0;
  background: rgba(246, 248, 250, .94); backdrop-filter: blur(4px);
}
.st-onglet { scroll-margin-top: calc(var(--top-h) + 64px); }
/* Grille de sections : une colonne, deux sur grand écran (.st-cols) */
.st-cols { display: grid; grid-template-columns: minmax(0, 1fr); align-items: start; }
.st-col-pile { min-width: 0; }

/* ---------- Ordinateur : texte plus grand, mise en page large ------------- */
@media (min-width: 992px) {
  :root {
    --fs-base: 15px;
    --fs-sm: 13.5px;
    --fs-xs: 12.5px;
    --fs-section: 16.5px;
    --fs-h: 23px;
    --fs-brand: 18px;
    --fs-key: 24px;
    --top-h: 63px;
  }
  body { line-height: 1.5; }
  .st-page { padding: 4px 12px 32px; }
  .st-top { min-height: 60px; padding: 3px 24px 0; }
  .st-brand-icon { width: 36px; height: 36px; }
  .btn { font-size: var(--fs-base); min-height: 40px; }
  .form-control { min-height: 42px; }
  .qb-btn-soft { min-height: 40px; padding: 0 14px; }
  .cmp-btn { width: 38px; height: 38px; }
  .qb-chip span { min-height: 38px; padding: 6px 14px; }
  .req-section { padding: 18px 20px; border-radius: 12px; }
  .req-section-title { margin-bottom: 14px; }
  .req-step { flex-basis: 26px; width: 26px; height: 26px; font-size: var(--fs-sm); }
  .qb-head { margin: 16px 12px 12px; }
  .st-row { padding: 12px 16px; gap: 16px; }
  .st-tabs button { min-height: 44px; padding: 0 16px; }
  .oc-info { padding: 12px 14px; }
  .oc-info-icon { flex-basis: 40px; width: 40px; height: 40px; }
  /* Fiche technique : libellé à gauche, valeur juste à côté (plus besoin de traverser l'écran) */
  .st-dl > div { justify-content: flex-start; }
  .st-dl dt { flex: 0 0 200px; font-size: var(--fs-sm); }
  .st-dl dd { text-align: left; flex: 1 1 auto; }
  /* Listes de dossiers : pastilles de statut alignées en colonne */
  .st-row-lien > .st-badge { min-width: 170px; justify-content: center; }
  .st-kanban { gap: 14px; }
  .st-carte-lien { padding: 12px; }
}

/* Menu : entre 1200 et 1499 px, on garde la place pour les entrées du menu */
@media (min-width: 1200px) and (max-width: 1499px) {
  .st-nav { margin-left: 8px; gap: 2px; }
  .st-nav a { padding: 0 10px; font-size: 14px; }
  .st-user-text, .st-entity { display: none; }
}

/* Grand écran : sections côte à côte */
@media (min-width: 1200px) {
  .st-cols { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .st-cols.is-large-gauche { grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); }
}

/* Tuiles : la tuile Statut prend plus de place, un numéro ne se coupe jamais */
.oc-info.oc-info-wide { flex: 2 1 220px; }
.oc-info > div { min-width: 0; }
.ord-offer { white-space: nowrap; }
@media (min-width: 992px) {
  .oc-info { flex: 1 1 150px; }
  .oc-info.oc-info-wide { flex: 2 1 240px; }
}
@media (min-width: 992px) and (max-width: 1399px) {
  .oc-info { gap: 8px; padding: 10px; flex-basis: 135px; }
  .oc-info.oc-info-wide { flex-basis: 200px; }
  .oc-info-icon { flex-basis: 32px; width: 32px; height: 32px; }
}
.oc-info .ord-offer { padding: 2px 8px; gap: 4px; }
/* Pilotage Studio : quatre réglages répartis sur deux colonnes en grand écran */
@media (min-width: 1200px) {
  #secPilotage .qb-grid { gap: 18px 32px; }
  #secPilotage .qb-grid > .qb-field { flex: 1 1 calc(50% - 32px); }
  #secPilotage .qb-field-chips { flex-direction: column; align-items: flex-start; gap: 4px; }
  #secPilotage .qb-field-chips > label { flex-basis: auto; }
}
@media (min-width: 992px) { .oc-info.oc-info-piece { flex-basis: 175px; } }
/* Tableau Studio : toutes les colonnes sur une rangée en mode ordinateur
   (défilement dans son cadre seulement si la fenêtre est vraiment étroite) */
@media (min-width: 992px) {
  .st-kanban { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: minmax(210px, 1fr); overflow-x: auto; padding-bottom: 4px; }
}

/* =============================================================================
   Litiges - consultation des prix (jetons DESIGN_UI : neutres, entité, sens)
   ========================================================================== */

/* Recherche globale (accueil) */
.ng-recherche { display: flex; align-items: center; gap: 8px; margin: 0 12px; padding: 10px 12px; background: #eef2f5; border-radius: 10px; }
.ng-recherche > .fa { color: #8a96a3; }
.ng-recherche .form-control { flex: 1 1 auto; min-width: 0; }
.ng-recherche .btn { min-height: 38px; }
@media (max-width: 767px) { .ng-recherche { flex-wrap: wrap; } .ng-recherche > .fa { display: none; } .ng-recherche .btn { flex: 1 1 100%; } }

/* Tuiles des familles, avec les pictos de Célestine */
.ng-fams { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }
.ng-fam {
  display: flex; align-items: center; gap: 12px; min-height: 96px; padding: 10px 12px; min-width: 0;
  background: #fff; border: 1px solid #e4e8ec; border-left: 4px solid var(--main-color, #1ab394); border-radius: 10px;
  color: #26323d; text-decoration: none;
}
.ng-fam:hover { background: var(--main-soft, #ebf8f5); box-shadow: 0 2px 8px rgba(0, 0, 0, .08); color: #26323d; text-decoration: none; }
.ng-fam.is-off { border-left-color: #d3dae1; opacity: .6; cursor: not-allowed; }
.ng-fam.is-off:hover { background: #fff; box-shadow: none; }
.ng-fam-picto { flex: 0 0 72px; width: 72px; height: 72px; object-fit: contain; border-radius: 8px; background: #fff; }
.ng-fam-texte { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.ng-fam-nom { font-size: var(--fs-section); font-weight: 600; }
.ng-fam-nb { font-size: var(--fs-sm); font-weight: 600; color: var(--main-ink, #106b58); }
.ng-fam-ex { font-size: var(--fs-xs); color: #8a96a3; }
@media (max-width: 767px) {
  .ng-fams { grid-template-columns: 1fr 1fr; gap: 8px; }
  .ng-fam { flex-direction: column; align-items: flex-start; min-height: 0; }
  .ng-fam-picto { width: 56px; height: 56px; flex-basis: 56px; }
  .ng-fam-ex { display: none; }
}
.ng-version { margin: 4px 12px 0; font-size: var(--fs-sm); overflow-wrap: anywhere; }

/* En-tête : picto de la famille ou du produit */
.ng-head-picto { flex: 0 0 48px; width: 48px; height: 48px; object-fit: contain; border: 1px solid #e4e8ec; border-radius: 8px; background: #fff; }

/* Filtres et coefficient */
.ng-filtres { margin-top: 12px; }
.ng-coef { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.ng-coef label { margin: 0; font-size: var(--fs-sm); font-weight: 600; color: #5b6875; }
.ng-coef .form-control { width: 96px; }
.ng-coef .qb-hint { margin: 0; }
.ng-coef-note { margin: 0; }

/* Lignes de produits */
.ng-ligne { align-items: center; }
.ng-ligne.is-stock { border-left-color: #d3dae1; }
.ng-thumb { flex: 0 0 48px; width: 48px; height: 48px; object-fit: contain; border-radius: 8px; background: #fff; }
.ng-ligne-titre { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; font-weight: 600; min-width: 0; }
.ng-designation { overflow-wrap: anywhere; min-width: 0; }
.ng-prix { flex: 0 0 auto; display: flex; flex-direction: column; align-items: flex-end; text-align: right; max-width: 260px; }
.ng-prix-vente { font-size: var(--fs-key); font-weight: 700; white-space: nowrap; color: #26323d; }
.ng-prix-vente small { font-size: var(--fs-sm); font-weight: 400; color: #5b6875; }
.ng-prix-unite, .ng-prix-revient { font-size: var(--fs-xs); color: #8a96a3; }
.ng-plus { display: flex; margin: 12px auto 0; }
@media (max-width: 767px) {
  .ng-ligne { flex-wrap: wrap; }
  .ng-ligne .st-row-main { flex: 1 1 calc(100% - 60px); }
  .ng-prix { flex-basis: 100%; align-items: flex-start; text-align: left; max-width: none; padding-left: 60px; }
}

/* Fiche produit */
.ng-badges { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 12px; }
.ng-fiche { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); align-items: start; }
.ng-calcul { position: sticky; top: calc(var(--top-h) + 8px); }
.ng-gros {
  margin: 16px 0 4px; padding-left: 12px; border-left: 4px solid var(--main-color, #1ab394);
  font-size: 32px; font-weight: 700; line-height: 1.1; color: #26323d;
}
.ng-gros span { font-size: var(--fs-base); font-weight: 400; color: #5b6875; }
.ng-sous { padding-left: 16px; color: #5b6875; }
.ng-marge { padding-left: 16px; margin: 4px 0 8px; color: #1e7b34; font-weight: 600; font-size: var(--fs-sm); }
.ng-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 14px; }
.ng-actions .btn { min-height: 44px; }
.ng-table-cadre { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.ng-paliers { margin: 0; font-variant-numeric: tabular-nums; }
.ng-paliers th, .ng-paliers td { text-align: right; padding: 6px 10px; white-space: nowrap; }
.ng-paliers th:first-child, .ng-paliers td:first-child { text-align: left; white-space: normal; }
.ng-paliers thead th { font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: .3px; color: var(--main-ink, #106b58); border-bottom: 2px solid var(--main-line, #a8e2d6); }
.ng-paliers tr.is-on td { background: var(--main-soft, #ebf8f5); font-weight: 600; }
.ng-paliers tr.is-on td.ng-vente { background: var(--main-color, #1ab394); color: #fff; }
@media (max-width: 991px) {
  .ng-fiche { grid-template-columns: 1fr; }
  .ng-calcul { position: static; }
}

/* ---------- Administration ------------------------------------------------ */
.ng-admin-cartes { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 12px; }
.ng-admin-carte {
  display: flex; align-items: center; gap: 12px; padding: 12px; min-height: 88px; min-width: 0;
  background: #fff; border: 1px solid #e4e8ec; border-top: 4px solid var(--main-color, #1ab394); border-radius: 10px;
  color: #26323d; text-decoration: none;
}
.ng-admin-carte.is-warn { border-top-color: #f8ac59; }
.ng-admin-carte.is-ok { border-top-color: #1e7b34; }
.ng-admin-carte:hover { background: #eef2f5; color: #26323d; text-decoration: none; }
.ng-admin-texte { flex: 1 1 auto; display: flex; flex-direction: column; min-width: 0; }
.ng-admin-titre { font-weight: 600; }
.ng-admin-chiffre { font-size: var(--fs-key); font-weight: 700; }
.ng-erreur { margin-top: 4px; font-size: var(--fs-xs); font-weight: 600; color: #a12626; }

.ng-coefs { margin: 0; }
.ng-coefs th { font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: .3px; color: var(--main-ink, #106b58); border-bottom: 2px solid var(--main-line, #a8e2d6); }
.ng-coefs td { vertical-align: top; }
.ng-coefs td .form-control { width: 96px; }
.ng-coefs-nom { font-weight: 600; }
@media (max-width: 767px) {
  .ng-coefs th, .ng-coefs td { padding: 6px 3px; }
  .ng-coefs td .form-control { width: 56px; padding: 4px 6px; }
  .ng-coefs th { font-size: 10px; letter-spacing: 0; }
}

.ng-fourn { align-items: flex-start; }
.ng-fourn.is-a-rattacher { border-left-color: #f8ac59; }
.ng-fourn-tete, .ng-fourn-celestine { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.ng-fourn-celestine { margin-top: 6px; }
.ng-fourn-celestine .ng-ok { color: #1e7b34; }
.ng-fourn-sug { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 8px; }
.ng-fourn-sug .ord-offer { border-style: dashed; cursor: pointer; }
.ng-fourn-sug .ord-offer small { font-weight: 400; }
.ng-fourn-panneau { margin-top: 10px; }
.ng-origine { width: auto; min-width: 150px; }
.ng-reglage-valeur { display: flex; align-items: center; gap: 8px; }
.ng-reglage-valeur .form-control { width: 120px; }
.ng-reglages-note { margin: 12px 0 0; }
/* État pour BC d'une fiche fournisseur (champs exigés pour commander) */
.ng-bc { display: flex; gap: 8px; align-items: flex-start; margin-top: 8px; padding: 8px 10px; border: 1px solid; border-radius: 8px; font-size: var(--fs-sm); }
.ng-bc.is-ok { background: #eaf7ee; border-color: #bfe5c9; color: #1e7b34; }
.ng-bc.is-warn { background: #fff8e6; border-color: #f3dca0; color: #8a5a00; }
.ng-bc > .fa { margin-top: 2px; }
.ng-bc-lien { display: inline-flex; align-items: center; gap: 4px; margin-top: 4px; font-weight: 600; color: #8a5a00; text-decoration: underline; }
@media (pointer: coarse) { .ng-bc-lien { min-height: 44px; } }
/* Correspondance des familles avec Célestine */
.ng-titre-picto { width: 28px; height: 28px; object-fit: contain; border-radius: 6px; background: #fff; }
.ng-corr { margin: 0; min-width: 860px; }
.ng-corr th { font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: .3px; color: var(--main-ink, #106b58); border-bottom: 2px solid var(--main-line, #a8e2d6); }
.ng-corr td { vertical-align: top; }
.ng-corr tr.is-famille td { background: #f6f8fa; }
.ng-corr-nom { font-weight: 600; }
.ng-corr-champ { display: flex; align-items: center; gap: 6px; }
.ng-corr-champ .form-control { min-width: 180px; }
.ng-corr-picto { flex: 0 0 32px; width: 32px; height: 32px; object-fit: contain; border: 1px solid #e4e8ec; border-radius: 6px; background: #fff; }
.ng-classement-note { margin: 8px 0 0; }
.ng-glisser { display: none; margin: -4px 0 8px; }
@media (max-width: 991px) { .ng-glisser { display: block; } }

/* ---------- Cotations (aide à la décision) --------------------------------- */
.ng-cotation.is-hors { opacity: .6; }
.ng-badges-ligne { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 4px; }
.ng-cot-titre { overflow-wrap: anywhere; min-width: 0; }
.ng-cot-resultat { margin-top: 10px; }
.ng-cot-table td { white-space: normal; vertical-align: top; }
.ng-cot-table td small { color: #5b6875; }

/* ---------- Fiche fournisseur dans Célestine (API) ------------------------- */
.ng-fourn-bcform { margin-top: 10px; padding: 12px; border: 1px dashed var(--main-line, #a8e2d6); border-radius: 10px; background: #fbfdfc; }
.ng-fourn-bcform .qb-field { flex: 1 1 200px; }
.ng-fourn-bcform .qb-field.qb-wide { flex-basis: 100%; }
.ng-bc-resultat { margin-top: 10px; }
/* Formulaire pré-rempli : à saisir (orange), modifié (bleu), repris de Célestine (gris) */
.ng-bc-etat { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 4px 0 8px; font-size: var(--fs-sm); }
.ng-bc-marque { font-size: var(--fs-xs); font-weight: 600; text-transform: none; }
.ng-fourn-bcform .qb-field[data-etat="a-saisir"] .form-control { border-color: #f0ad4e; background: #fff8e6; }
.ng-fourn-bcform .qb-field[data-etat="a-saisir"] .ng-bc-marque { color: #b06d00; }
.ng-fourn-bcform .qb-field[data-etat="modifie"] .form-control { border-color: #5aa6e0; background: #f1f8fe; }
.ng-fourn-bcform .qb-field[data-etat="modifie"] .ng-bc-marque { color: #1c6aa6; }
.ng-fourn-bcform .qb-field[data-etat="celestine"] .ng-bc-marque { color: #8a96a3; }
/* Cartes d'état en haut (filtres) et recherche */
.ng-fourn-etats { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px; }
.ng-fourn-etat { flex: 1 1 140px; display: flex; flex-direction: column; align-items: flex-start; gap: 2px; padding: 10px 12px;
  border: 1px solid #e3e8ee; border-left-width: 4px; border-radius: 10px; background: #fff; text-align: left; cursor: pointer; }
.ng-fourn-etat strong { font-size: 22px; line-height: 1; color: #26323d; }
.ng-fourn-etat span { font-size: var(--fs-sm); font-weight: 600; color: #5b6875; }
.ng-fourn-etat.is-warn { border-left-color: #f8ac59; }
.ng-fourn-etat.is-ok { border-left-color: #1ab394; }
.ng-fourn-etat.is-active { box-shadow: 0 0 0 2px var(--main-color, #1ab394); }
.ng-fourn-etat[disabled] { opacity: .5; cursor: default; }
.ng-fourn-titre { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.ng-fourn-filtre { margin-left: auto; max-width: 260px; height: 34px; }
.ng-bc-icone { display: inline-flex; align-items: center; gap: 4px; font-size: var(--fs-xs); font-weight: 600; color: #b06d00; }
.ng-bc-note { display: flex; gap: 8px; align-items: flex-start; margin: 12px 0 0; padding: 8px 10px; border-radius: 8px; background: #fff8e6; color: #8a5a00; font-size: var(--fs-sm); }
.ng-bc-note > .fa { margin-top: 3px; }
.ng-fourn { flex-wrap: wrap; }
.ng-fourn .st-row-main { flex: 1 1 320px; min-width: 0; }
.ng-fourn-actions { display: flex; flex-wrap: nowrap; align-items: center; gap: 6px; justify-content: flex-end; }
.ng-fourn-actions .js-plus { min-width: 38px; }
.ng-fourn-actions .js-plus.active { background: #eef6fd; border-color: #a9cdee; }
.ng-fourn-plus { flex: 1 1 100%; display: flex; flex-wrap: wrap; gap: 10px 20px; align-items: flex-start; margin-top: 8px; padding: 10px 12px; border-top: 1px dashed #dfe5ea; background: #fafbfc; border-radius: 0 0 8px 8px; }
.ng-fourn-plus[hidden] { display: none; }
.ng-fourn-plus-boutons { display: flex; flex-wrap: wrap; gap: 6px; }
.ng-fourn-origine { display: flex; flex-direction: column; gap: 4px; margin: 0; max-width: 360px; font-size: var(--fs-sm); font-weight: 600; color: #5b6875; }
.ng-fourn-origine .form-control { height: 34px; }
.ng-fourn-origine .qb-hint { font-weight: 400; margin: 0; }
.ng-fourn.is-flash { box-shadow: 0 0 0 3px #f8ac59; transition: box-shadow .4s; }
@media (max-width: 767px) {
  .ng-fourn-filtre { margin-left: 0; max-width: none; flex: 1 1 100%; }
  .ng-fourn-etat { flex-basis: calc(50% - 4px); }
}
.ng-classement-api { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 8px; }
.ng-classement-api .form-control { width: auto; min-width: 200px; }

/* ---------- Mise à jour des tarifs ----------------------------------------- */
.ng-progres { margin-top: 12px; }
.ng-progres-barre { height: 10px; border-radius: 5px; background: #eef2f5; overflow: hidden; }
.ng-progres-barre span { display: block; width: 0; height: 100%; background: var(--main-color, #1ab394); transition: width .3s; }
.ng-tarifs-table td { vertical-align: top; }
.ng-tarifs-table td.ng-alerte { color: #a12626; font-weight: 600; }
.ng-hausse { color: #a12626; font-weight: 600; }
.ng-baisse { color: #1e7b34; font-weight: 600; }
.ng-import { align-items: flex-start; }

/* ---------- Repiquage ------------------------------------------------------- */
.ng-repiq-select { max-width: 520px; }
.ng-repiq-table th.is-sel, .ng-repiq-table td.is-sel { background: var(--main-soft, #ebf8f5); font-weight: 600; }
.ng-repiq-table tr.is-on td.is-sel { background: var(--main-color, #1ab394); color: #fff; }
.ng-grille td { line-height: 1.3; }
.ng-grille td b { color: #26323d; }

/* ---------- Produits à vérifier -------------------------------------------- */
.ng-verif-expl { margin: 8px 12px 0; }
.ng-verif-case { display: inline-flex; align-items: center; gap: 6px; margin: 0; font-size: var(--fs-sm); font-weight: 600; color: #5b6875; cursor: pointer; }
.ng-verif-case input { width: 18px; height: 18px; }
.ng-verif { align-items: flex-start; border-left-color: #f8ac59; }
.ng-verif.is-cfg { border-left-color: #ed5565; }
.ng-verif > .ng-verif-case { padding-top: 2px; }
.ng-verif-prop { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 6px; padding: 6px 8px; background: #eef6fd; border-radius: 8px; font-size: var(--fs-sm); }
.ng-verif-champs { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 8px; margin-top: 8px; }
.ng-verif-champ { display: flex; flex-direction: column; margin: 0; font-size: var(--fs-xs); color: #5b6875; }
.ng-verif-champ .form-control { width: 96px; }
.ng-verif-actions { display: flex; flex-wrap: wrap; gap: 6px; justify-content: flex-end; }
.ng-verif-barre { flex-wrap: wrap; }
.ng-verif-barre[hidden] { display: none; }
/* Aide repliée, bandeau « Annuler », sélection de tout le filtre */
.ng-verif-aide { display: block; }
.ng-verif-aide summary { cursor: pointer; font-weight: 600; }
.ng-verif-aide ul { margin: 8px 0 0 18px; padding: 0; }
.ng-verif-aide li { margin-bottom: 3px; }
.ng-verif-annuler { align-items: center; }
.ng-verif-annuler > div { flex: 1 1 auto; }
.ng-verif-annuler[hidden] { display: none; }
.ng-verif-entete { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.ng-verif-tous { padding: 0; font-size: var(--fs-sm); font-weight: 600; }
/* Ligne : lien fiche, boutons Garder / Retirer, ligne traitée */
.ng-verif-fiche { margin-left: auto; font-size: var(--fs-xs); font-weight: 600; color: #5b6875; white-space: nowrap; }
.ng-verif-boutons { display: flex; flex-direction: column; gap: 6px; }
.ng-btn-retirer { color: #b3541e; }
.ng-btn-retirer:hover, .ng-btn-retirer:focus { color: #8a3c10; border-color: #f0b98d; }
.ng-verif.is-fait { opacity: .45; }
/* Couleurs en un clic */
.ng-verif-puces { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 8px; font-size: var(--fs-sm); }
/* Prix anormal : paliers modifiables */
.ng-pal-cadre { max-width: 100%; overflow-x: auto; margin-top: 8px; }
.ng-pal { border-collapse: collapse; font-size: var(--fs-sm); min-width: 420px; }
.ng-pal th { padding: 4px 6px; font-size: var(--fs-xs); font-weight: 600; text-transform: uppercase; color: #8a96a3; text-align: left; }
.ng-pal td { padding: 3px 6px; border-top: 1px solid #edf0f3; vertical-align: middle; }
.ng-pal .form-control { width: 104px; height: 30px; padding: 2px 6px; text-align: right; }
.ng-pal-q { white-space: nowrap; font-weight: 600; }
.ng-pal-ratio { white-space: nowrap; font-weight: 600; }
.ng-pal-ratio.is-bad { color: #c0392b; }
.ng-pal-ratio.is-good { color: #1e7b34; }
.ng-pal-suppr label { margin: 0; cursor: pointer; color: #8a96a3; white-space: nowrap; }
.ng-pal tr.is-suppr td { background: #fbeaea; }
.ng-pal tr.is-suppr .form-control { text-decoration: line-through; opacity: .6; }
.ng-pal-unite { font-size: var(--fs-xs); margin-right: auto; }
/* Déjà traités */
.ng-histo { border-left-color: #1ab394; }
@media (max-width: 767px) {
  .ng-verif-actions { justify-content: flex-start; }
  .ng-verif .st-row-main { flex: 1 1 calc(100% - 40px); }
  .ng-verif-champ .form-control { width: 80px; }
  .ng-verif-boutons { flex-direction: row; flex: 1 1 100%; justify-content: flex-end; }
  .ng-pal { min-width: 0; }
  .ng-pal th, .ng-pal td { padding: 3px 3px; }
  .ng-pal .form-control { width: 68px; }
  .ng-pal .st-badge { display: block; width: max-content; margin-top: 2px; }
}

/* ---------- Configurateur -------------------------------------------------- */
.ng-cfg-lien { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.ng-cfg-titre { margin-top: 18px; padding-top: 14px; border-top: 1px solid #edf0f3; }
.ng-genres { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 8px; }
.ng-genre { position: relative; margin: 0; cursor: pointer; min-width: 0; }
.ng-genre input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.ng-genre > span {
  display: flex; align-items: center; gap: 10px; height: 100%; padding: 8px 10px;
  background: #fff; border: 1px solid #d3dae1; border-radius: 10px;
}
.ng-genre img { flex: 0 0 44px; width: 44px; height: 44px; object-fit: contain; border-radius: 6px; }
.ng-genre-texte { display: flex; flex-direction: column; min-width: 0; }
.ng-genre-texte small { color: #5b6875; font-size: var(--fs-xs); }
.ng-genre-texte em { font-style: normal; font-size: var(--fs-xs); font-weight: 600; color: var(--main-ink, #106b58); }
.ng-genre:hover > span { background: #eef2f5; }
.ng-genre input:checked + span { background: var(--main-soft, #ebf8f5); border-color: var(--main-color, #1ab394); box-shadow: inset 0 0 0 1px var(--main-color, #1ab394); }
.ng-genre input:focus-visible + span { box-shadow: 0 0 0 3px rgba(28, 132, 198, .25); }
.ng-dims { display: flex; align-items: flex-end; gap: 8px; flex-wrap: wrap; }
.ng-dims .qb-field { flex: 0 1 130px; }
.ng-dims-op { padding-bottom: 8px; font-weight: 600; color: #8a96a3; }
.ng-tailles { margin: 8px 0 12px; line-height: 1.9; overflow-wrap: anywhere; }
.ng-lien { padding: 0 4px; border: 0; background: none; color: #1c6ca1; text-decoration: underline; cursor: pointer; font-size: inherit; }
.ng-lien:hover { color: #124e76; }
.ng-qte { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.ng-qte .form-control { width: 130px; }
.ng-offres-titre { margin: 16px 0 10px; font-size: var(--fs-section); font-weight: 600; }
.ng-offres-titre:first-child { margin-top: 0; }
.ng-offres-titre small { font-weight: 400; color: #5b6875; font-size: var(--fs-sm); }
.ng-offre { margin-bottom: 12px; padding: 12px 14px; border: 1px solid #e4e8ec; border-left: 4px solid #d3dae1; border-radius: 10px; background: #fff; min-width: 0; }
.ng-offre.is-best { border-left-color: var(--main-color, #1ab394); box-shadow: 0 2px 8px rgba(0, 0, 0, .06); }
.ng-offre-tete { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 8px; }
.ng-offre-texte { flex: 1 1 auto; min-width: 0; }
.ng-offre-fourn { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; font-weight: 600; }
.ng-offre-desc { overflow-wrap: anywhere; }
.ng-offre-prix { flex: 0 0 auto; display: flex; flex-direction: column; align-items: flex-end; text-align: right; font-size: var(--fs-key); font-weight: 700; white-space: nowrap; }
.ng-offre-prix small { font-size: var(--fs-xs); font-weight: 400; color: #5b6875; white-space: normal; max-width: 220px; }
.ng-offre-table small { color: #8a96a3; }
.ng-offre .ng-marge { padding-left: 0; }
.ng-offre .ng-actions { margin-top: 8px; }
@media (max-width: 767px) {
  .ng-genres { grid-template-columns: 1fr; }
  .ng-offre-tete { flex-direction: column; }
  .ng-offre-prix { align-items: flex-start; text-align: left; }
  .ng-dims .qb-field { flex: 1 1 80px; }
}

/* =============================================================================
   Litiges - écrans du lot 1 (tableau de bord, liste, signalement, fiche)
   Mobile d'abord (WebView) : tout ce qui se touche fait au moins 44 px.
   ========================================================================== */
.lt-requis { color: #a12626; font-weight: 700; }
.lt-note { margin: 8px 0 0; font-size: var(--fs-sm); }
.lt-attenue { opacity: .55; }
.lt-btn-signaler { min-height: 44px; display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
@media (max-width: 575px) {
  .qb-head { flex-wrap: wrap; }
  .lt-btn-signaler { flex: 1 1 100%; justify-content: center; margin-left: 0; }
}

/* Chiffres clés */
.lt-kpis { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; margin: 0 12px; }
.lt-kpi {
  display: flex; flex-direction: column; gap: 2px; min-height: 76px; padding: 10px 12px; min-width: 0;
  background: #fff; border: 1px solid #e4e8ec; border-left: 4px solid var(--main-color, #1ab394); border-radius: 10px;
  color: #26323d; text-decoration: none;
}
a.lt-kpi:hover { background: #eef2f5; color: #26323d; text-decoration: none; }
.lt-kpi strong { font-size: var(--fs-key); line-height: 1.1; }
.lt-kpi span { font-size: var(--fs-sm); color: #5b6875; font-weight: 600; overflow-wrap: anywhere; }
.lt-kpi.is-error { border-left-color: #ed5565; }
.lt-kpi.is-warn { border-left-color: #f8ac59; }
.lt-kpi.is-ok { border-left-color: #1e7b34; }
@media (max-width: 575px) { .lt-kpis { grid-template-columns: 1fr 1fr; } }

/* Ligne de litige */
.lt-litige { align-items: flex-start; }
.lt-litige.is-retard { border-left-color: #ed5565; }
.lt-litige.is-clos { border-left-color: #d3dae1; }
.lt-numero { font-variant-numeric: tabular-nums; }
.lt-attente { margin-top: 4px; padding: 3px 8px; border-radius: 6px; background: #fff8e6; color: #8a5a00; font-size: var(--fs-sm); overflow-wrap: anywhere; }
.lt-badges { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; flex: 0 0 auto; }
@media (max-width: 767px) {
  .lt-litige .st-row-title { white-space: normal; }
  .lt-badges { flex-direction: row; flex-wrap: wrap; flex-basis: 100%; align-items: center; }
}

/* Liste : filtres rapides et panneau */
/* Filtres rapides : cases blanches à coins droits, filtre actif teinté avec un trait en haut */
.lt-presets { margin-bottom: 8px; }
.lt-preset {
  flex: 0 0 auto; display: inline-flex; align-items: center; min-height: 40px; padding: 0 14px;
  border: 1px solid #e4e8ec; border-radius: 0; background: #fff; color: #5b6875; font-weight: 600; text-decoration: none; white-space: nowrap;
}
.lt-preset:hover { background: #eef2f5; color: #26323d; text-decoration: none; }
.lt-preset.is-active { background: var(--main-soft, #ebf8f5); color: var(--main-ink, #106b58); border-color: var(--main-line, #a8e2d6); box-shadow: inset 0 3px 0 var(--main-color, #1ab394); }
.lt-filtres .btn { min-height: 38px; }
.lt-plus { display: flex; width: 100%; margin-top: 12px; }

/* Signalement : client, pièces */
.lt-client { display: flex; align-items: center; gap: 10px; padding: 10px 12px; background: var(--main-soft, #ebf8f5); border: 1px solid var(--main-line, #a8e2d6); border-radius: 8px; margin-bottom: 10px; }
.lt-client-texte { flex: 1 1 auto; min-width: 0; }
.lt-client-nom { font-weight: 700; overflow-wrap: anywhere; }
.lt-pieces-titre { font-weight: 600; margin: 4px 0 0; }
.lt-onglets-pieces { margin: 8px 0 0; }
.lt-sans-piece { margin-top: 10px; width: 100%; }
.st-result .st-entity { font-size: var(--fs-xs); }
.st-result > span { min-width: 0; overflow-wrap: anywhere; }
.lt-recherche { display: flex; gap: 8px; }
.lt-recherche .form-control { flex: 1 1 auto; min-width: 0; }
@media (max-width: 575px) { .lt-recherche { flex-wrap: wrap; } .lt-recherche .qb-btn-soft { flex: 1 1 100%; } }

/* Produits concernés */
.lt-lignes { display: flex; flex-direction: column; gap: 8px; }
.lt-vide { padding: 12px; }
.lt-ligne {
  display: flex; align-items: center; gap: 10px; padding: 8px 10px; min-width: 0;
  background: #f6f8fa; border: 1px solid #e4e8ec; border-left: 4px solid #d3dae1; border-radius: 8px;
}
.lt-ligne.is-checked { background: #fff; border-left-color: var(--main-color, #1ab394); }
.lt-ligne-check { position: relative; flex: 0 0 44px; display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; margin: 0; cursor: pointer; }
.lt-ligne-check input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.lt-ligne-check .cmp-check {
  width: 26px; height: 26px; border: 2px solid #d3dae1; border-radius: 6px; background: #fff;
  display: inline-flex; align-items: center; justify-content: center; color: #fff;
}
.lt-ligne-check input:checked + .cmp-check { background: var(--main-color, #1ab394); border-color: var(--main-color, #1ab394); }
.lt-ligne-check input:focus-visible + .cmp-check { box-shadow: 0 0 0 3px rgba(28, 132, 198, .25); }
.lt-ligne-texte { flex: 1 1 auto; min-width: 0; }
.lt-ligne-nom { font-weight: 600; overflow-wrap: anywhere; }
.lt-ligne-qte { flex: 0 0 180px; }
.lt-ligne-qte .qb-label { margin-bottom: 2px; font-size: var(--fs-xs); }
.lt-ligne:not(.is-checked) .lt-ligne-qte { visibility: hidden; }
@media (max-width: 575px) {
  .lt-ligne { flex-wrap: wrap; }
  .lt-ligne-texte { flex-basis: calc(100% - 60px); }
  .lt-ligne-qte { flex: 1 1 100%; padding-left: 54px; }
  .lt-ligne:not(.is-checked) .lt-ligne-qte { display: none; }
}
.lt-ajout-ligne { margin-top: 12px; padding-top: 12px; border-top: 1px dashed #edf0f3; }

/* Fournisseur */
.lt-four { margin-top: 14px; padding-top: 12px; border-top: 1px solid #e4e8ec; }
.lt-four-choix { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-bottom: 8px; }
.lt-four-choix:empty { display: none; }
.lt-four-choix .ord-offer { cursor: pointer; border-style: dashed; }
.lt-four-choix .ord-offer.is-actif { border-style: solid; background: var(--main-tint, #d8f2ec); }
.lt-four-champs { margin-top: 10px; }
input[readonly].form-control { background: #f6f8fa; }

/* Fiche : en-tête et coûts */
.lt-tete .oc-infos { margin-bottom: 12px; }
.lt-couts { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 8px; }
.lt-couts > div { display: flex; flex-direction: column; padding: 8px 10px; background: #f6f8fa; border-radius: 8px; min-width: 0; }
.lt-couts strong { font-size: var(--fs-section); white-space: nowrap; }
.lt-neg { color: #a12626; }
.lt-pos { color: #1e7b34; }
@media (max-width: 575px) { .lt-couts { grid-template-columns: 1fr 1fr; } }
.lt-ligne-boutons { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 10px; }
.lt-ligne-boutons .btn { min-height: 40px; }
.lt-ligne-boutons .st-muted { font-size: var(--fs-sm); }
@media (max-width: 575px) {
  .lt-ligne-boutons .btn, .lt-ligne-boutons .qb-btn-soft { flex: 1 1 auto; }
  .lt-ligne-boutons .ml-auto { margin-left: 0; }
}

/* Solutions */
.lt-solution { padding: 12px; background: #fff; border: 1px solid #e4e8ec; border-left: 4px solid var(--main-color, #1ab394); border-radius: 8px; min-width: 0; }
.lt-solution.is-fournisseur { border-left-color: #1c84c6; }
.lt-solution-tete { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; }
.lt-solution-nom { overflow-wrap: anywhere; }
.lt-solution-montant { font-weight: 700; white-space: nowrap; }
.lt-decisions { margin: 8px 0 0; padding-left: 18px; font-size: var(--fs-sm); color: #5b6875; }
.lt-decisions li { margin-bottom: 2px; }

/* Actions de suivi */
.lt-action .req-step .fa { font-size: 11px; }
.lt-action.qb-done { background: #fbfefc; }
.lt-cloture { margin: 10px 0; }
.lt-form fieldset { min-width: 0; margin: 0; padding: 0; border: 0; }

/* Tactile : 44 px partout */
@media (pointer: coarse) {
  .lt-preset, .st-result, .lt-ligne-boutons .btn, .lt-filtres .btn, .qb-back { min-height: 44px; }
  .st-tabs button { min-height: 44px; }
  .lt-four-choix .ord-offer { min-height: 44px; }
}
@media (min-width: 992px) {
  .lt-kpis { gap: 12px; }
  .lt-badges .st-badge { min-width: 150px; justify-content: center; }
}

/* ---------- Signaler un litige : 3 étapes guidées ------------------------- */
.lt-signaler .req-section { scroll-margin-top: 130px; }
.lt-signaler .req-section-title { font-size: calc(var(--fs-section) + 1px); }
.lt-signaler .req-section.qb-done { border-color: #bfe5c9; }
.lt-signaler .req-section.qb-missing { border-color: #f0b8b8; }
.lt-etapes a { min-height: 40px; }
.lt-etapes a.is-done { border-color: #bfe5c9; color: #1e7b34; }
.lt-etapes a.is-missing { border-color: #f0b8b8; color: #a12626; }
.lt-bloc { margin: 0 0 18px; }
.lt-bloc > .qb-label, .lt-bloc > legend.qb-label { margin-bottom: 8px; font-size: var(--fs-section); color: #26323d; }
legend.qb-label { float: none; width: auto; padding: 0; }

/* Nature : réclamation client ou litige fournisseur */
.lt-natures { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 0 12px 4px; }
.lt-nature {
  display: flex; align-items: center; gap: 10px; min-height: 56px; padding: 8px 12px; min-width: 0;
  background: #fff; border: 1px solid #d3dae1; border-radius: 10px; color: #26323d; text-decoration: none;
}
.lt-nature:hover { border-color: #96c4e7; color: #26323d; text-decoration: none; }
.lt-nature > .fa {
  flex: 0 0 34px; display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: 8px;
  background: #f1f4f7; color: #5b6875; font-size: 15px;
}
.lt-nature span { display: flex; flex-direction: column; min-width: 0; }
.lt-nature small { color: #5b6875; font-size: var(--fs-xs); line-height: 1.3; }
.lt-nature.is-active { background: var(--main-soft, #ebf8f5); border-color: var(--main-color, #1ab394); box-shadow: inset 0 0 0 1px var(--main-color, #1ab394); }
.lt-nature.is-active > .fa { background: var(--main-color, #1ab394); color: #fff; }
.lt-badge-nature { background: #eef6fd; border-color: #c9e0f3; color: #1c6ca1; }
@media (max-width: 575px) { .lt-nature small { display: none; } .lt-nature { min-height: 48px; } }

/* Grande recherche */
.lt-grande-recherche { position: relative; }
.lt-grande-recherche .fa { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: #8a96a3; font-size: 16px; pointer-events: none; }
.lt-grande-recherche .form-control { min-height: 52px; padding-left: 42px; font-size: 16px; border-radius: 10px; } /* 16 px : pas de zoom auto sur iOS */

/* Carte du choix fait (client, pièce, fournisseur) */
.lt-carte-choix {
  display: flex; align-items: center; gap: 12px; padding: 10px 12px; min-width: 0;
  background: #f6f8fa; border: 1px solid #e4e8ec; border-radius: 10px;
}
#clientChoisi + #blocPieces, #clientChoisi ~ #pieceChoisie { margin-top: 10px; }
.lt-carte-choix.is-ok { background: #f3fbf5; border-color: #bfe5c9; }
.lt-carte-texte { flex: 1 1 auto; min-width: 0; }
.lt-carte-titre { font-weight: 700; overflow-wrap: anywhere; }
.lt-avatar {
  flex: 0 0 40px; display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 50%;
  background: var(--main-tint, #d8f2ec); color: var(--main-ink, #106b58); font-weight: 700;
}
.lt-avatar.is-ok { background: #1e7b34; color: #fff; }
.lt-carte-choix .qb-btn-soft { flex: 0 0 auto; min-height: 44px; }
.lt-avertissement { margin-top: 8px; padding: 8px 12px; border-radius: 8px; background: #fff8e6; color: #8a5a00; font-size: var(--fs-sm); }

/* Liste des pièces */
.lt-pieces-tete { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; margin: 14px 0 2px; }
.lt-pieces-titre { font-weight: 700; margin: 0; }
.lt-filtre-pieces em { font-style: normal; color: #8a96a3; font-weight: 400; }
.lt-pieces { max-height: 420px; overflow-y: auto; padding: 2px; }
.lt-piece { min-height: 60px; }
.lt-piece-icone {
  flex: 0 0 38px; display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: 10px;
  background: #eef6fd; color: #1c6ca1;
}
.lt-piece-icone.is-bl { background: #fff4e5; color: #b5651d; }
.lt-piece-icone.is-client { background: var(--main-tint, #d8f2ec); color: var(--main-ink, #106b58); }
.lt-piece-texte { flex: 1 1 auto; min-width: 0; overflow-wrap: anywhere; }
.lt-piece-date { flex: 0 0 auto; font-size: var(--fs-sm); color: #5b6875; font-variant-numeric: tabular-nums; }
.lt-chevron { flex: 0 0 auto; color: #c1c9d2; }
.lt-lien {
  display: inline-flex; align-items: center; gap: 6px; min-height: 44px; margin-top: 6px; padding: 0 4px;
  border: 0; background: none; color: #1c6ca1; font-weight: 600; cursor: pointer; text-align: left;
}
.lt-lien:hover { text-decoration: underline; }

/* Repli « corriger / ajouter / plus de détails » */
.lt-plier { margin-top: 10px; }
.lt-plier > summary {
  display: flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 4px; cursor: pointer;
  color: #1c6ca1; font-weight: 600; list-style: none;
}
.lt-plier > summary::-webkit-details-marker { display: none; }
.lt-plier > summary::after { content: '\f107'; font-family: FontAwesome; margin-left: auto; color: #8a96a3; transition: transform .15s; }
.lt-plier[open] > summary::after { transform: rotate(180deg); }
.lt-plier-corps { padding: 12px; margin-top: 4px; background: #f6f8fa; border-radius: 8px; }

/* Produits : la carte entière se touche */
.lt-signaler .lt-ligne { padding: 10px 12px 10px 6px; background: #fff; border-left-width: 1px; border-radius: 10px; transition: border-color .12s, background .12s; }
.lt-signaler .lt-ligne.is-checked { background: var(--main-soft, #ebf8f5); border-color: var(--main-color, #1ab394); box-shadow: inset 0 0 0 1px var(--main-color, #1ab394); }
.lt-signaler .lt-ligne-texte { cursor: pointer; align-self: stretch; display: flex; flex-direction: column; justify-content: center; min-height: 44px; }
.lt-compteur { margin-top: 8px; font-size: var(--fs-sm); color: #5b6875; font-weight: 600; }
.lt-compteur:empty { display: none; }

/* Types : tuiles avec picto */
.lt-types { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 8px; }
.lt-tuile { position: relative; margin: 0; cursor: pointer; min-width: 0; }
.lt-tuile input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.lt-tuile span {
  display: flex; align-items: center; gap: 10px; height: 100%; min-height: 56px; padding: 8px 12px;
  background: #fff; border: 1px solid #d3dae1; border-radius: 10px; font-weight: 600; line-height: 1.25; overflow-wrap: anywhere;
}
.lt-tuile span .fa {
  flex: 0 0 32px; display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 8px;
  background: #f1f4f7; color: #5b6875; font-size: 15px;
}
.lt-tuile:hover span { border-color: #96c4e7; }
.lt-tuile input:checked + span { background: var(--main-soft, #ebf8f5); border-color: var(--main-color, #1ab394); box-shadow: inset 0 0 0 1px var(--main-color, #1ab394); color: var(--main-ink, #106b58); }
.lt-tuile input:checked + span .fa { background: var(--main-color, #1ab394); color: #fff; }
.lt-tuile input:focus-visible + span, .lt-gravite input:focus-visible + span { box-shadow: 0 0 0 3px rgba(28, 132, 198, .3); }

/* Gravité : trois choix côte à côte, couleur de sens */
.lt-gravites { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.lt-gravite { position: relative; margin: 0; cursor: pointer; min-width: 0; }
.lt-gravite input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.lt-gravite span {
  display: flex; flex-direction: column; gap: 2px; height: 100%; min-height: 56px; padding: 8px 12px 8px 14px;
  background: #fff; border: 1px solid #d3dae1; border-left: 5px solid #d3dae1; border-radius: 10px;
}
.lt-gravite small { font-size: var(--fs-xs); color: #5b6875; line-height: 1.3; }
.lt-gravite.is-calme span { border-left-color: #1e7b34; }
.lt-gravite.is-surveiller span { border-left-color: #f8ac59; }
.lt-gravite.is-chaud span { border-left-color: #ed5565; }
.lt-gravite.is-calme input:checked + span { background: #eaf7ee; border-color: #1e7b34; }
.lt-gravite.is-surveiller input:checked + span { background: #fff8e6; border-color: #e09a3e; }
.lt-gravite.is-chaud input:checked + span { background: #fdeeee; border-color: #ed5565; }
.lt-gravite input:checked + span strong::after { content: ' \f00c'; font-family: FontAwesome; font-weight: 400; }

/* Raccourcis de demande */
.lt-demandes { margin-bottom: 8px; }
.lt-raccourci {
  display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 6px 12px;
  border: 1px dashed #b8c4cf; border-radius: 18px; background: #fff; color: #26323d; cursor: pointer;
}
.lt-raccourci .fa { font-size: 11px; color: #8a96a3; }
.lt-raccourci.is-actif { border-style: solid; border-color: #96c4e7; background: #dceefc; color: #1c6ca1; font-weight: 600; }
.lt-raccourci.is-actif .fa { color: #1c6ca1; }

/* Fournisseur : bloc léger */
.lt-section-legere { padding: 10px 12px; }
.lt-section-legere .lt-carte-choix { background: none; border: 0; padding: 0; }
.lt-section-legere .lt-four { margin-top: 12px; }
.lt-note-photos { margin: 4px 16px 12px; }
.lt-signaler textarea.form-control { font-size: 15px; }

@media (max-width: 575px) {
  .lt-signaler .qb-head { flex-wrap: nowrap; }
  .lt-etapes a { flex: 1 1 0; justify-content: center; padding: 4px 8px 4px 4px; }
  .lt-types { grid-template-columns: 1fr 1fr; }
  .lt-tuile span { gap: 8px; min-height: 56px; padding: 6px 8px; font-size: var(--fs-sm); }
  .lt-tuile span .fa { flex-basis: 28px; width: 28px; height: 28px; font-size: 13px; }
  .lt-gravites { grid-template-columns: 1fr; }
  .lt-gravite span { flex-direction: row; align-items: baseline; flex-wrap: wrap; gap: 4px 8px; min-height: 48px; }
  .lt-piece-date { font-size: var(--fs-xs); }
  .lt-pieces { max-height: none; }
  .lt-signaler textarea.form-control, .lt-signaler .form-control { font-size: 16px; }
}
@media (pointer: coarse) {
  .lt-raccourci, .lt-filtre-pieces .qb-chip span { min-height: 44px; }
}

/* ---------- Réduire les animations (celestine-skill 9.4) ------------------ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important; animation-iteration-count: 1 !important;
    transition-duration: .01ms !important; scroll-behavior: auto !important;
  }
}

/* ---------- Écran d'appel (v2) : 2 colonnes, fiche client à droite --------- */
.ap-cols { display: grid; grid-template-columns: 1fr; gap: 0; align-items: start; }
@media (min-width: 992px) {
  .ap-cols { grid-template-columns: minmax(0, 1fr) 360px; gap: 4px; }
  .ap-client { position: sticky; top: calc(var(--top-h, 59px) + 8px); max-height: calc(100vh - var(--top-h, 59px) - 110px); overflow-y: auto; margin: 12px 12px 12px 0; }
}
@media (min-width: 1400px) { .ap-cols { grid-template-columns: minmax(0, 1fr) 420px; } }

/* Sur téléphone, la fiche client passe en haut, repliable */
@media (max-width: 991px) {
  .ap-cols { display: flex; flex-direction: column; align-items: stretch; }
  .ap-client { order: -1; margin: 12px 12px 0; }
}

.ap-sous-titre { margin: 14px 0 6px; }
.ap-autre { margin-top: 10px; }
.ap-doublon { margin: 12px 0 0; align-items: center; }
.ap-doublon .qb-btn-soft { margin-left: auto; }
.ap-types { margin-bottom: 12px; }
.ap-transport { margin: 0 0 12px; }
.ap-reserves { margin-top: 8px; }
.ap-suite { margin-top: 14px; align-items: flex-end; }
.ap-case { display: flex; align-items: center; gap: 8px; min-height: 44px; margin: 0; cursor: pointer; font-weight: 600; color: #26323d; }
.ap-case input { width: 18px; height: 18px; }
.ap-montant { font-variant-numeric: tabular-nums; text-align: right; }

/* Étape remplie : résumé vert, comme DESIGN_UI 4.1 */
.ap-etape.is-done .req-step { background: #1e7b34; }

/* Lignes produits : toute la ligne se touche, quantité au doigt */
.ap-lignes { display: flex; flex-direction: column; gap: 8px; }
.ap-ligne { display: flex; align-items: center; gap: 10px; padding: 10px 12px; background: #fff; border: 1px solid #e4e8ec; border-left: 4px solid #e4e8ec; border-radius: 8px; }
.ap-ligne.is-on { border-left-color: #f8ac59; background: #fffdf5; }
.ap-ligne-choix { display: flex; align-items: center; gap: 10px; flex: 1 1 auto; min-width: 0; min-height: 44px; margin: 0; cursor: pointer; }
.ap-ligne-choix input { width: 20px; height: 20px; flex: 0 0 auto; }
.ap-ligne-texte { min-width: 0; }
.ap-ligne-nom { font-weight: 600; overflow-wrap: anywhere; }
.ap-qte { display: flex; align-items: center; gap: 4px; flex: 0 0 auto; }
.ap-qte input { width: 70px; text-align: center; font-variant-numeric: tabular-nums; }
.ap-qte .cmp-btn { width: 36px; height: 36px; }
@media (pointer: coarse) { .ap-qte .cmp-btn { width: 44px; height: 44px; } }
@media (max-width: 575px) { .ap-ligne { flex-wrap: wrap; } .ap-qte { margin-left: 30px; } }

/* Panneau client */
.ap-client { background: #fff; border: 1px solid #e4e8ec; border-radius: 10px; }
.ap-client-pli > summary { list-style: none; }
.ap-client-pli > summary::-webkit-details-marker { display: none; }
.ap-client-tete { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 44px; padding: 10px 14px; cursor: pointer;
  font-weight: 600; color: var(--main-ink, #106b58); background: var(--main-soft, #ebf8f5); border-radius: 10px; }
.ap-client-pli[open] > .ap-client-tete { border-radius: 10px 10px 0 0; border-bottom: 1px solid var(--main-line, #a8e2d6); }
.ap-chevron { transition: transform .15s; }
.ap-client-pli[open] .ap-chevron { transform: rotate(180deg); }
@media (min-width: 992px) { .ap-chevron { display: none; } .ap-client-tete { cursor: default; } }
.ap-client-corps { padding: 12px 14px; display: flex; flex-direction: column; gap: 14px; }
.ap-vide { margin: 0; }
.ap-bloc-titre { margin-bottom: 6px; }
.ap-contact { display: flex; align-items: center; gap: 8px; padding: 6px 0; border-bottom: 1px dashed #edf0f3; }
.ap-contact:last-child { border-bottom: 0; }
.ap-contact-texte { min-width: 0; flex: 1 1 auto; }
.ap-contact-nom { font-weight: 600; }
.ap-contact .cmp-btn { flex: 0 0 auto; }
.ap-ligne-info { display: flex; justify-content: space-between; gap: 8px; padding: 5px 0; border-bottom: 1px dashed #edf0f3; font-size: var(--fs-sm, 12px); }
.ap-ligne-info:last-child { border-bottom: 0; }
.ap-ligne-info strong { font-variant-numeric: tabular-nums; }
.ap-alerte { display: flex; gap: 8px; padding: 8px 10px; border-radius: 8px; font-size: var(--fs-sm, 12px); }
.ap-alerte.is-warn { background: #fff8e6; color: #8a5a00; border: 1px solid #f3dca0; }
.ap-alerte.is-error { background: #fdeeee; color: #a12626; border: 1px solid #f0b8b8; }
.ap-alerte.is-info { background: #eef6fd; color: #1c6ca1; border: 1px solid #c9e0f3; }

/* Choix client / fournisseur : tuiles radio (même rendu que .lt-nature du lot 1) */
.ap-natures { margin: 0 0 14px; }
.ap-nature { position: relative; cursor: pointer; margin: 0; }
.ap-nature input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.ap-nature:focus-within { box-shadow: 0 0 0 3px rgba(28, 132, 198, .25); }
.ap-filtre-pieces { margin-bottom: 10px; }
.ap-filtre-pieces em { font-style: normal; color: #8a96a3; }

/* N° de lot sous la quantité d'une ligne touchée */
.ap-ligne { flex-wrap: wrap; }
.ap-lot { flex: 1 1 100%; display: flex; align-items: center; gap: 8px; padding-left: 30px; }
.ap-lot label { margin: 0; font-size: var(--fs-sm, 12px); color: #5b6875; white-space: nowrap; }
.ap-lot input { max-width: 240px; }
@media (max-width: 575px) { .ap-lot { flex-wrap: wrap; } .ap-lot input { max-width: none; } }

/* Cases de fin d'étape 4 */
.ap-cases { margin-top: 12px; display: flex; flex-direction: column; gap: 2px; }
.ap-case-aide { margin: -6px 0 6px 26px; }
.ap-reprise { margin: 0 12px 0; align-items: center; flex-wrap: wrap; }
.ap-reprise-boutons { display: flex; gap: 6px; margin-left: auto; }
.ap-introuvable { margin: 0 12px; }
.ap-attente { padding: 10px 4px; }
#apResultats.is-attente { opacity: .55; pointer-events: none; }
.ap-transport-aide { margin: 4px 0 0; color: inherit; opacity: .85; }
.ap-sans-piece { margin-top: 10px; }
a.ap-alerte { text-decoration: none; }
a.ap-alerte:hover { text-decoration: none; filter: brightness(.98); }
@media (min-width: 576px) { .ap-form .lt-types { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); } }

/* ---------- Fiche v2 : prochaine action, 5 questions, avancement --------- */
/* Prochaine action : bandeau d'en-tête, bouton d'appel direct */
.fi-prochaine { display: flex; align-items: center; gap: 12px; margin: 12px; padding: 12px 14px; background: #fff8e6;
  border: 1px solid #f3dca0; border-left: 4px solid #f8ac59; border-radius: 10px; }
.fi-prochaine.is-ok { background: #eaf7ee; border-color: #bfe5c9; border-left-color: #1e7b34; }
.fi-prochaine-icone { flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px;
  border-radius: 50%; background: #f8ac59; color: #fff; font-size: 18px; }
.fi-prochaine.is-ok .fi-prochaine-icone { background: #1e7b34; }
.fi-prochaine-texte { flex: 1 1 auto; min-width: 0; }
.fi-prochaine-texte strong { display: block; color: #26323d; }
.fi-prochaine-boutons { display: flex; flex-wrap: wrap; gap: 6px; flex: 0 0 auto; }
.fi-prochaine-boutons .btn { font-variant-numeric: tabular-nums; }
@media (max-width: 767px) {
  .fi-prochaine { flex-wrap: wrap; }
  .fi-prochaine-boutons { flex: 1 1 100%; }
  .fi-prochaine-boutons .btn { flex: 1 1 100%; justify-content: center; min-height: 44px; }
  .fi-prochaine-boutons .qb-btn-soft { flex: 1 1 calc(50% - 3px); justify-content: center; }
}

/* Les 5 questions */
.fi-resume { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.fi-q { min-width: 0; padding: 4px 0 4px 10px; border-left: 3px solid var(--main-line, #a8e2d6); }
.fi-q strong { display: block; color: #26323d; overflow-wrap: anywhere; }
.fi-q .st-muted { font-size: var(--fs-sm, 12px); }
.fi-q .st-overline .fa { margin-right: 3px; }
.fi-nombre { font-size: 18px; font-weight: 700; font-variant-numeric: tabular-nums; }
@media (max-width: 1199px) { .fi-resume { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 575px)  { .fi-resume { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Avancement en 4 temps */
.fi-avancement { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; list-style: none; margin: 0 12px 4px; padding: 0; }
.fi-avancement li { display: flex; align-items: center; gap: 8px; padding: 8px 10px; background: #fff; border: 1px solid #e4e8ec; border-radius: 8px;
  font-weight: 600; color: #5b6875; min-width: 0; flex-wrap: wrap; }
.fi-avancement li span { display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px; border-radius: 50%;
  background: #eef2f5; color: #8a96a3; font-size: 12px; flex: 0 0 auto; }
.fi-avancement li small { flex: 1 1 100%; font-weight: 400; color: #8a96a3; font-size: var(--fs-xs, 11px); padding-left: 32px; margin-top: -4px; }
.fi-avancement li.is-done { color: #1e7b34; border-color: #bfe5c9; background: #f3fbf5; }
.fi-avancement li.is-done span { background: #1e7b34; color: #fff; }
.fi-avancement li.is-en-cours { color: var(--main-ink, #106b58); border-color: var(--main-color, #1ab394); box-shadow: inset 0 0 0 1px var(--main-color, #1ab394); }
.fi-avancement li.is-en-cours span { background: var(--main-color, #1ab394); color: #fff; }
@media (max-width: 575px) { .fi-avancement { grid-template-columns: repeat(2, 1fr); } }

.fi-prochaine.is-error { background: #fdeeee; border-color: #f0b8b8; border-left-color: #ed5565; }
.fi-prochaine.is-error .fi-prochaine-icone { background: #ed5565; }
.fi-prochaine-texte .st-muted { font-size: var(--fs-sm, 12px); margin-top: 2px; }
.fi-resume { margin: 12px; }
.fi-q .st-badge { margin: 2px 0; }
.fi-banniere { margin: 0 12px 12px; }
.fi-banniere-clos { margin: 12px; }
.fi-recours { margin: 4px 0 10px; }
.fi-recours .st-banner { margin: 0; align-items: center; flex-wrap: wrap; }
.fi-recours .st-banner .qb-btn-soft { margin-left: auto; }
.fi-couts-solutions { margin: 12px; }
.fi-colonne { min-width: 0; }
