/* VoixPlus — distinction NEUF (vert) / OCCASION (ambre) — boutique + admin */
:root{
  --vp-neuf:#0f9d58; --vp-neuf-bg:#e7f6ee; --vp-neuf-bd:#a6dfc0; --vp-neuf-tx:#066b3a;
  --vp-occ:#d97706;  --vp-occ-bg:#fef3c7;  --vp-occ-bd:#f6d58a;  --vp-occ-tx:#8a4a05;
}
.vp-etat{display:inline-flex;align-items:center;gap:5px;font-size:10px;font-weight:800;letter-spacing:.06em;text-transform:uppercase;
  padding:4px 10px;border-radius:999px;line-height:1.2;white-space:nowrap;border:1px solid transparent}
.vp-etat i{font-size:9px}
.vp-etat-neuf{background:var(--vp-neuf);color:#fff}
.vp-etat-occasion{background:var(--vp-occ);color:#fff}
/* variante douce (tableaux admin, fiche produit) */
.vp-etat.soft.vp-etat-neuf{background:var(--vp-neuf-bg);color:var(--vp-neuf-tx);border-color:var(--vp-neuf-bd)}
.vp-etat.soft.vp-etat-occasion{background:var(--vp-occ-bg);color:var(--vp-occ-tx);border-color:var(--vp-occ-bd)}
/* sur une carte produit : pastille d'état en haut à gauche, l'autre pastille (−%, limité…) dessous */
.pcard .vp-etat.on-card{position:absolute;top:11px;left:11px;z-index:5;box-shadow:0 2px 6px rgba(0,0,0,.18)}
.pcard .pbadge.pb-2,.pcard .badge.pb-2,.pcard .ribbon.pb-2{top:40px}
/* liseré de couleur en haut de la carte (au-dessus de l'image) */
.pcard.vp-card-neuf::after,.pcard.vp-card-occasion::after{content:'';position:absolute;top:0;left:0;right:0;height:4px;z-index:6;pointer-events:none}
.pcard.vp-card-neuf::after{background:var(--vp-neuf)}
.pcard.vp-card-occasion::after{background:var(--vp-occ)}
/* ligne de tableau (admin > stock) */
tr.vp-card-neuf td:first-child{box-shadow:inset 4px 0 0 var(--vp-neuf)}
tr.vp-card-occasion td:first-child{box-shadow:inset 4px 0 0 var(--vp-occ)}
/* sélecteur des formulaires admin */
.vp-etat-field{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.vp-etat-opt{cursor:pointer;margin:0}
.vp-etat-opt input{position:absolute;opacity:0;pointer-events:none}
.vp-etat-opt-box{display:flex;flex-direction:column;gap:2px;padding:12px 14px;border-radius:12px;border:2px solid #e2e8f0;background:#fff;transition:.18s}
.vp-etat-opt-box i{font-size:16px;margin-bottom:2px}
.vp-etat-opt-box b{font-size:14px;color:#1f2937}
.vp-etat-opt-box small{font-size:11.5px;color:#6b7280;font-weight:500}
.vp-etat-opt-neuf .vp-etat-opt-box i{color:var(--vp-neuf)}
.vp-etat-opt-occasion .vp-etat-opt-box i{color:var(--vp-occ)}
.vp-etat-opt:hover .vp-etat-opt-box{border-color:#cbd5e1}
.vp-etat-opt-neuf input:checked+.vp-etat-opt-box{border-color:var(--vp-neuf);background:var(--vp-neuf-bg);box-shadow:0 0 0 3px rgba(15,157,88,.15)}
.vp-etat-opt-occasion input:checked+.vp-etat-opt-box{border-color:var(--vp-occ);background:var(--vp-occ-bg);box-shadow:0 0 0 3px rgba(217,119,6,.18)}
.vp-etat-opt input:focus-visible+.vp-etat-opt-box{outline:2px solid #2563eb;outline-offset:2px}
@media(max-width:480px){.vp-etat-field{grid-template-columns:1fr}}

/* cartes « promos du moment » (accueil) */
.vp-deal.vp-card-neuf{border-top:3px solid var(--vp-neuf)}
.vp-deal.vp-card-occasion{border-top:3px solid var(--vp-occ)}
.vp-deal .vp-etat{margin-bottom:6px}

/* fiche produit : bloc « État du produit » */
.vp-etat-detail{display:flex;align-items:center;gap:12px;margin:14px 0;padding:12px 14px;border-radius:12px;border:1px solid}
.vp-etat-detail-ic{width:38px;height:38px;border-radius:50%;display:flex;align-items:center;justify-content:center;color:#fff;font-size:16px;flex:0 0 auto}
.vp-etat-detail-tx{display:flex;flex-direction:column;line-height:1.3}
.vp-etat-detail-tx small{font-size:10.5px;font-weight:700;text-transform:uppercase;letter-spacing:.07em;opacity:.75}
.vp-etat-detail-tx b{font-size:16px;font-weight:800}
.vp-etat-detail-tx em{font-style:normal;font-size:12.5px;opacity:.85}
.vp-etat-detail-neuf{background:var(--vp-neuf-bg);border-color:var(--vp-neuf-bd);color:var(--vp-neuf-tx)}
.vp-etat-detail-neuf .vp-etat-detail-ic{background:var(--vp-neuf)}
.vp-etat-detail-occasion{background:var(--vp-occ-bg);border-color:var(--vp-occ-bd);color:var(--vp-occ-tx)}
.vp-etat-detail-occasion .vp-etat-detail-ic{background:var(--vp-occ)}

.vp-etat-detail-tx .vp-etat-note{margin-top:6px;padding-top:6px;border-top:1px dashed currentColor;opacity:1;font-weight:600}
