/* Réglages › Inventaire : annonces de machines, façon Airbnb (inventaire.js). */
.inv-barre { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; margin: 18px 0 6px; }
.inv-onglets, .inv-filtre { display: inline-flex; gap: 6px; flex-wrap: wrap; }
.inv-onglets button, .inv-filtre button { border: 1px solid var(--line-2); background: transparent; color: var(--muted); padding: 8px 16px; border-radius: 999px; font: inherit; font-weight: 600; cursor: pointer; }
.inv-onglets button span { margin-left: 8px; background: var(--panel-2); border-radius: 999px; padding: 1px 8px; font-size: 12px; }
.inv-onglets button.on, .inv-filtre button.on { background: var(--text); color: #000; border-color: var(--text); }
.inv-onglets button.on span { background: rgba(0,0,0,.12); }
.inv-filtre button { padding: 6px 12px; font-size: 13px; }
.inv-grille { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 22px 18px; margin-top: 16px; }
.inv-vide-page { grid-column: 1 / -1; }
.inv-carte { position: relative; cursor: pointer; display: flex; flex-direction: column; gap: 10px; outline: none; }
.inv-photo { position: relative; aspect-ratio: 4 / 3; border-radius: 16px; overflow: hidden; background: var(--panel-2); transition: transform .15s, box-shadow .15s; }
.inv-carte:hover .inv-photo, .inv-carte:focus-visible .inv-photo { transform: translateY(-2px); box-shadow: 0 10px 26px rgba(0,0,0,.5); }
.inv-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.inv-vide { height: 100%; display: grid; place-content: center; justify-items: center; gap: 6px; color: var(--faint); font-size: 13px; }
.inv-vide svg { width: 44px; height: 44px; opacity: .6; }
.inv-badge { position: absolute; top: 10px; left: 10px; background: #fff; color: #111; font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 999px; box-shadow: 0 1px 4px rgba(0,0,0,.35); }
.inv-badge.pause { background: var(--amber); } .inv-badge.ret { background: #444; color: #fff; }
.inv-nbph { position: absolute; right: 10px; bottom: 10px; background: rgba(0,0,0,.6); color: #fff; font-size: 12px; padding: 3px 9px; border-radius: 999px; }
.inv-corps { display: flex; flex-direction: column; gap: 2px; padding: 0 2px; }
.inv-corps b { font-size: 15px; }
.inv-sous { color: var(--muted); font-size: 13px; }
.inv-prix { font-weight: 700; margin: 2px 0; } .inv-prix span { font-weight: 400; color: var(--muted); }
.inv-carte.retiree { opacity: .6; } .inv-carte.retiree .inv-photo img { filter: grayscale(1); }
.inv-remettre { align-self: flex-start; }
/* Éditeur */
.modal.wide:has(.inv-ed) { max-width: 880px; padding: 0; }
.inv-ed { display: flex; flex-direction: column; max-height: 90vh; }
.inv-ed .mhead { padding: 18px 24px; border-bottom: 1px solid var(--line); margin: 0; position: sticky; top: 0; background: var(--panel); z-index: 2; }
.inv-pastille { font-size: 12px; font-weight: 600; background: var(--panel-2); border: 1px solid var(--line-2); border-radius: 999px; padding: 3px 10px; margin-left: 8px; vertical-align: middle; }
.inv-ed-corps { padding: 6px 24px 18px; overflow-y: auto; }
.inv-ed section { padding: 18px 0; border-bottom: 1px solid var(--line); }
.inv-ed section:last-child { border-bottom: 0; }
.inv-ed h3 { margin: 0 0 4px; font-size: 17px; }
.inv-ch { display: flex; flex-direction: column; gap: 5px; margin-top: 10px; font-size: 13px; color: var(--muted); }
.inv-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; } .inv-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.inv-ph { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 10px; margin-top: 12px; }
.inv-ph-c { position: relative; aspect-ratio: 4 / 3; border-radius: 12px; overflow: hidden; background: var(--panel-2); }
.inv-ph-c.couv { grid-column: span 2; grid-row: span 2; }
.inv-ph-c img { width: 100%; height: 100%; object-fit: cover; }
.inv-couv { position: absolute; top: 8px; left: 8px; background: #fff; color: #111; font-size: 12px; font-weight: 700; padding: 3px 9px; border-radius: 999px; }
.inv-ph-act { position: absolute; right: 6px; bottom: 6px; display: flex; gap: 4px; opacity: 0; transition: opacity .12s; }
.inv-ph-c:hover .inv-ph-act, .inv-ph-c:focus-within .inv-ph-act { opacity: 1; }
@media (hover: none) { .inv-ph-act { opacity: 1; } }
.inv-ph-act button { width: 28px; height: 28px; border-radius: 50%; border: 0; background: rgba(0,0,0,.72); color: #fff; cursor: pointer; font-size: 12px; }
.inv-ph-act button:hover { background: var(--red); }
.inv-ph-add { aspect-ratio: 4 / 3; border: 2px dashed var(--line-2); border-radius: 12px; display: grid; place-content: center; justify-items: center; gap: 6px; color: var(--muted); cursor: pointer; font-size: 13px; text-align: center; }
.inv-ph-add svg { width: 26px; height: 26px; } .inv-ph-add:hover, .inv-ph-add.sur { border-color: var(--text); color: var(--text); }
.inv-qte { display: flex; align-items: center; gap: 14px; margin: 12px 0; } .inv-qte b { font-size: 22px; min-width: 30px; text-align: center; }
.inv-qte .btn { width: 38px; height: 38px; justify-content: center; border-radius: 50%; font-size: 20px; padding: 0; }
.inv-unite { display: grid; grid-template-columns: 120px 1fr 160px; gap: 10px; align-items: center; margin: 6px 0; }
.inv-bascule { display: flex; gap: 12px; align-items: flex-start; cursor: pointer; } .inv-bascule input { margin-top: 4px; width: 18px; height: 18px; }
.inv-pied { display: flex; gap: 10px; align-items: center; padding: 14px 24px; border-top: 1px solid var(--line); position: sticky; bottom: 0; background: var(--panel); }
@media (max-width: 700px) { .inv-2, .inv-4 { grid-template-columns: 1fr 1fr; } .inv-unite { grid-template-columns: 1fr 1fr; } .inv-unite .faint { grid-column: 1 / -1; } .inv-ph-c.couv { grid-column: span 2; grid-row: span 1; } }
.inv-ed .mhead { display: flex; align-items: center; justify-content: space-between; }
.inv-pied .grow { flex: 1; }
