

.docv2.artfiche { max-width: 1400px; margin: 0 auto; padding: 0 0 24px; }


.artfiche .art-hd {
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: 16px; flex-wrap: wrap;
  background: var(--dgs-surface); border: 1px solid var(--dgs-bordure);
  border-radius: var(--r-lg); padding: 12px 16px; margin-bottom: 10px;
  box-shadow: var(--sh-sm);
}


@media (min-width: 769px) {
  .artfiche .art-hd {
    position: sticky;
    top: 64px;
    z-index: 4;
  }
}
.artfiche .art-fil { font-size: 11.5px; color: var(--dgs-texte-3); margin-bottom: 4px; }
.artfiche .art-fil a { color: var(--dgs-texte-2); text-decoration: none; }
.artfiche .art-fil a:hover { color: var(--dgs-vert); }
.artfiche .art-titre-ligne { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; }
.artfiche .art-titre { font-size: 20px; font-weight: 600; letter-spacing: -.01em; margin: 0; }
.artfiche .art-ref-chip {
  font-size: 12px; font-weight: 500; color: var(--dgs-texte-2); background: var(--dgs-muted);
  border: 1px solid var(--dgs-bordure); border-radius: var(--r-8); padding: 2px 9px;
  letter-spacing: .04em; font-variant-numeric: tabular-nums;
}
.artfiche .art-hd-actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.artfiche .art-btn-danger { color: var(--t-alerte); }
.artfiche .art-btn-danger:hover:not(:disabled) {
  background: var(--f-alerte); border-color: var(--t-alerte); color: var(--t-alerte);
}


.artfiche .art-badge {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12px; font-weight: 500; padding: 3px 11px; border-radius: 13px;
}
.artfiche .art-badge::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.artfiche .art-badge.art-plat::before { display: none; }
.artfiche .art-b-succes  { background: var(--f-succes);  color: var(--t-succes); }
.artfiche .art-b-attente { background: var(--f-attente); color: var(--t-attente); }
.artfiche .art-b-teal    { background: var(--f-teal);    color: var(--t-teal); }
.artfiche .art-b-alerte  { background: var(--f-alerte);  color: var(--t-alerte); }
.artfiche .art-b-neutre  { background: var(--f-neutre);  color: var(--t-neutre); }


.artfiche .art-tabs {
  display: flex; gap: 2px; flex-wrap: wrap; margin-bottom: 14px;
  border-bottom: 1px solid var(--dgs-bordure);
}
.artfiche .art-tab {
  border: 0; background: none; padding: 9px 14px; font-size: 13px; font-weight: 500;
  color: var(--dgs-texte-2); cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -1px;
}
.artfiche .art-tab:hover:not(:disabled) { color: var(--dgs-vert); background: var(--dgs-survol); }
.artfiche .art-tab.actif { color: var(--dgs-vert); border-bottom-color: var(--dgs-vert); font-weight: 600; }
.artfiche .art-tab:disabled { color: var(--dgs-texte-3); cursor: not-allowed; }


.artfiche .art-cols { display: grid; grid-template-columns: 1.55fr 1fr; gap: 14px; align-items: start; }
.artfiche .art-col { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
@media (max-width: 1000px) { .artfiche .art-cols { grid-template-columns: 1fr; } }


.artfiche .art-card {
  background: var(--dgs-surface); border: 1px solid var(--dgs-bordure);
  border-radius: var(--r-lg); box-shadow: var(--sh-sm); overflow: hidden;
}
.artfiche .art-card-hd {
  display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap;
  padding: 10px 14px; border-bottom: 1px solid var(--dgs-bordure); background: var(--dgs-muted);
}
.artfiche .art-card-t { display: flex; align-items: center; gap: 8px; font-size: 13.5px; font-weight: 600; }
.artfiche .art-card-t svg { color: var(--dgs-vert); }
.artfiche .art-card-bd { padding: 14px; }


.artfiche .art-fields { display: grid; gap: 12px; }
.artfiche .art-g2 { grid-template-columns: 1fr 1fr; }
.artfiche .art-g3 { grid-template-columns: 1fr 1fr 1fr; }
.artfiche .art-g4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) { .artfiche .art-g4 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px) {
  .artfiche .art-g2, .artfiche .art-g3, .artfiche .art-g4 { grid-template-columns: 1fr; }
}
.artfiche .art-field { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.artfiche .art-lbl {
  font-size: 11.5px; font-weight: 500; color: var(--dgs-texte-2);
  display: inline-flex; align-items: center; gap: 6px;
}
.artfiche .art-inp, .artfiche .art-sel {
  width: 100%; height: 34px; padding: 0 10px; font-size: 13px;
  border: 1px solid var(--dgs-bordure-forte); border-radius: var(--r-sm);
  background: var(--dgs-surface); color: var(--dgs-texte);
}
.artfiche textarea.art-inp { height: auto; padding: 8px 10px; resize: vertical; }
.artfiche .art-inp:focus, .artfiche .art-sel:focus { border-color: var(--dgs-vert); outline: none; }
.artfiche .art-inp:disabled, .artfiche .art-sel:disabled {
  background: var(--dgs-muted); color: var(--dgs-texte-2); cursor: not-allowed;
}
.artfiche .art-num { text-align: right; font-variant-numeric: tabular-nums; }
.artfiche .art-calcule { background: var(--dgs-highlight); color: var(--dgs-texte); font-weight: 500; }
.artfiche .art-suffixe { position: relative; display: flex; align-items: center; }
.artfiche .art-suffixe input { padding-right: 34px; }
.artfiche .art-suffixe span {
  position: absolute; right: 10px; font-size: 11.5px; color: var(--dgs-texte-3); pointer-events: none;
}
.artfiche .art-hint {
  font-size: 10.5px; font-weight: 500; color: var(--dgs-texte-3);
  background: var(--dgs-muted); border: 1px solid var(--dgs-bordure); border-radius: var(--r-6); padding: 1px 6px;
}
.artfiche .art-aide { font-size: 11.5px; color: var(--dgs-texte-2); margin: 9px 0 0; line-height: 1.5; }
.artfiche .art-inactif { opacity: .5; }


.artfiche .art-seg {
  display: inline-flex; background: var(--dgs-muted); border: 1px solid var(--dgs-bordure);
  border-radius: var(--r-md); padding: 3px; gap: 3px; margin-bottom: 13px;
}
.artfiche .art-seg button {
  border: 0; background: none; border-radius: var(--r-sm); padding: 6px 16px;
  font-size: 13px; font-weight: 500; color: var(--dgs-texte-2); cursor: pointer;
  display: inline-flex; align-items: baseline; gap: 6px;
}
.artfiche .art-seg button.actif {
  background: var(--dgs-surface); color: var(--dgs-vert); font-weight: 600; box-shadow: var(--sh-sm);
}
.artfiche .art-seg-sub { font-size: 10.5px; font-weight: 400; color: var(--dgs-texte-3); }
.artfiche .art-seg-sm { margin-bottom: 0; }
.artfiche .art-seg-sm button { padding: 4px 12px; font-size: 12px; }
.artfiche .art-detail-toggle { display: flex; align-items: center; gap: 9px; }
.artfiche .art-tva-box { display: flex; align-items: center; gap: 7px; }
.artfiche .art-sel-tva { width: auto; min-width: 92px; height: 30px; font-size: 12.5px; }


.artfiche .art-miroir {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  background: var(--f-attente); border-radius: var(--r-md); padding: 9px 12px; margin-bottom: 13px;
}
.artfiche .art-miroir-actif { background: var(--f-succes); }
.artfiche .art-miroir-txt { font-size: 11.5px; color: var(--dgs-texte); flex: 1; min-width: 180px; }


.artfiche .art-natures { display: flex; gap: 6px; flex-wrap: wrap; }
.artfiche .art-nature {
  border: 1px solid var(--dgs-bordure-forte); background: var(--dgs-surface);
  border-radius: var(--r-sm); padding: 6px 12px; font-size: 12.5px;
  color: var(--dgs-texte-2); cursor: pointer;
}
.artfiche .art-nature:hover { background: var(--dgs-survol); border-color: #C9E7D6; color: var(--dgs-vert); }
.artfiche .art-nature.actif { background: var(--dgs-vert); border-color: var(--dgs-vert); color: #fff; font-weight: 500; }


.artfiche .art-ent-row {
  display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; align-items: baseline;
  font-size: 12.5px; padding: 5px 0; border-bottom: 1px dashed var(--dgs-bordure);
}
.artfiche .art-ent-row.art-total {
  font-weight: 600; border-bottom: 0; border-top: 1px solid var(--dgs-bordure-forte); margin-top: 2px;
}
.artfiche .art-vide { font-size: 12.5px; color: var(--dgs-texte-3); font-style: italic; padding: 6px 0; }
.artfiche .art-paire { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.artfiche .art-kv { background: var(--dgs-muted); border-radius: var(--r-sm); padding: 9px 11px; }
.artfiche .art-kv-lbl { font-size: 11px; color: var(--dgs-texte-2); margin-bottom: 2px; }
.artfiche .art-kv-val { font-size: 16px; font-weight: 600; font-variant-numeric: tabular-nums; }


.artfiche .art-drop {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 7px;
  min-height: 120px; border: 1.5px dashed var(--dgs-bordure-forte); border-radius: var(--r-md);
  color: var(--dgs-texte-3); font-size: 12.5px; margin-bottom: 10px;
}
.artfiche .art-barcode { display: flex; justify-content: center; color: var(--dgs-texte); padding: 6px 0 10px; }
.artfiche .art-w100 { width: 100%; justify-content: center; }


.artfiche .art-plus {
    margin-left: 6px;
    padding: 0 6px;
    line-height: 1.15;
    font-size: 13px;
    font-weight: 700;
    color: var(--teal-dark);
    background: var(--teal-soft);
    border: 1px solid transparent;
    border-radius: 5px;
    cursor: pointer;
}
.artfiche .art-plus:hover:not(:disabled) { border-color: var(--teal); }

.artfiche .art-plus:disabled { opacity: .45; cursor: not-allowed; }




.artfiche .art-mphoto, .artfiche .art-strip, .artfiche .art-mtabs,
.artfiche .art-chev, .artfiche .art-basewrap, .artfiche .art-rappel { display: none; }

@media (max-width: 768px) {

  
  .artfiche .art-hd { padding: 12px; }
  .artfiche .art-hd-txt {
    display: grid; grid-template-columns: 74px 1fr; gap: 12px; align-items: center;
    min-width: 0;
  }
  .artfiche .art-fil { display: none; }
  .artfiche .art-mphoto {
    display: flex; align-items: center; justify-content: center;
    width: 74px; height: 74px; border-radius: var(--r-md);
    border: 1px solid var(--dgs-bordure); background: var(--dgs-muted);
    color: var(--dgs-texte-3); overflow: hidden;
  }
  .artfiche .art-mphoto img { width: 100%; height: 100%; object-fit: cover; }
  .artfiche .art-titre-ligne { min-width: 0; }
  
  .artfiche .art-hd-actions { display: none; }
  
  .artfiche .art-tabs { display: none; }

  
  .artfiche .art-strip {
    display: grid; grid-auto-flow: column; grid-auto-columns: 1fr;
    background: var(--dgs-surface); border: 1px solid var(--dgs-bordure);
    border-radius: var(--r-lg); box-shadow: var(--sh-sm); margin-bottom: 10px;
  }
  .artfiche .art-tuile { padding: 10px 6px; text-align: center; min-width: 0; }
  .artfiche .art-tuile + .art-tuile { border-left: 1px solid var(--dgs-bordure); }
  .artfiche .art-tuile-lbl {
    font-size: 11px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase;
    color: var(--slate); margin-bottom: 3px;
  }
  .artfiche .art-tuile-val {
    font-size: 16px; font-weight: 700; font-variant-numeric: tabular-nums;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  }
  .artfiche .art-tuile-val span { font-size: 11px; font-weight: 600; color: var(--slate); }

  
  .artfiche .art-mtabs {
    display: flex; gap: 8px; overflow-x: auto; -webkit-overflow-scrolling: touch;
    scrollbar-width: none; padding: 4px 2px 10px;
    position: sticky; top: 60px; z-index: 4; background: var(--paper);
  }
  .artfiche .art-mtabs::-webkit-scrollbar { display: none; }
  .artfiche .art-mtab {
    flex: 0 0 auto; padding: 8px 15px; border-radius: 99px;
    border: 1px solid var(--dgs-bordure-forte); background: var(--dgs-surface);
    font-size: 13px; font-weight: 600; color: var(--dgs-texte-2);
    white-space: nowrap; cursor: pointer;
  }
  
  .artfiche .art-mtab.actif { background: var(--ink); border-color: var(--ink); color: var(--surface); }
  .artfiche .art-mtab:disabled { opacity: .45; cursor: not-allowed; }

  
  .artfiche.art-mob-fiche  .art-card:not(.art-p-fiche)  { display: none; }
  .artfiche.art-mob-tarifs .art-card:not(.art-p-tarifs) { display: none; }
  .artfiche.art-mob-stock  .art-card:not(.art-p-stock)  { display: none; }

  
  .artfiche .art-card-hd {
    cursor: pointer; justify-content: flex-start;
    background: var(--surface-alt);
  }
  .artfiche .art-card-t { font-size: 14px; }
  
  .artfiche .art-card-t svg {
    width: 28px; height: 28px; padding: 6px; box-sizing: border-box;
    color: var(--brand); background: var(--surface);
    border: 1px solid var(--line); border-radius: var(--r-9);
  }
  .artfiche .art-chev {
    display: flex; margin-left: auto; color: var(--slate);
    transition: transform .16s ease;
  }
  .artfiche .art-repliee .art-chev { transform: rotate(-90deg); }
  
  .artfiche .art-repliee > :not(.art-card-hd) { display: none; }

  
  .artfiche .art-lbl {
    font-size: 11px; font-weight: 600; text-transform: uppercase;
    letter-spacing: .05em; color: var(--slate);
  }
  .artfiche .art-inp, .artfiche .art-sel {
    height: 31px; border-radius: var(--r-12); border-color: var(--line);
  }
  .artfiche textarea.art-inp { height: auto; }
  .artfiche .art-hint { text-transform: none; letter-spacing: 0; }

  
  .artfiche .art-inactif { display: none; }

  
  .artfiche .art-inp.art-calcule {
    background: var(--green-soft); border-color: var(--green-soft);
    color: var(--green-dark); font-weight: 600;
  }

  
  .artfiche .art-basewrap { display: flex; align-items: center; gap: 9px; margin-bottom: 11px; }
  .artfiche.art-base-ht  .art-f-ttc { display: none; }
  .artfiche.art-base-ttc .art-f-ht  { display: none; }
  .artfiche .art-rappel { display: block; font-size: 11px; color: var(--dgs-texte-2); margin-top: 3px; }

  
  .artfiche .art-seg-sub, .artfiche .art-hint { font-size: 11px; }
}
