/* Pièces — même allure que Remise à neuf et Mécanique (magasin.js ; réutilise les classes rm- de remise.css). */
.mg-alerte { display: flex; align-items: center; gap: 14px; width: 100%; margin: 6px 0 20px; padding: 16px 20px; border-radius: 18px; border: 2px solid var(--red); background: var(--red-bg); color: var(--text); font: inherit; cursor: pointer; text-align: left; }
.mg-alerte b { font-size: 34px; line-height: 1; color: var(--red); } .mg-alerte span { font-size: 17px; font-weight: 700; } .mg-alerte em { margin-left: auto; font-style: normal; font-weight: 700; color: var(--red); }
.mg-alerte:hover { box-shadow: 0 10px 28px rgba(0,0,0,.45); }
.mg-ok { margin: 6px 0 20px; padding: 14px 18px; border-radius: 16px; border: 1px solid var(--green); background: var(--green-bg); color: var(--green); font-weight: 600; }
.mg-compte { font-size: 13.5px !important; font-weight: 600 !important; color: var(--muted) !important; }
.mg-nouvelle { border-style: dashed; justify-content: center; align-items: center !important; text-align: center !important; padding: 26px 14px !important; }
.mg-plus { width: 76px; height: 76px; border-radius: 50%; display: grid; place-items: center; background: var(--green-bg); color: var(--green); margin-bottom: 4px; } .mg-plus svg { width: 38px; height: 38px; }
.mg-photo { aspect-ratio: 16 / 9; } .mg-photo img { filter: saturate(.75) brightness(.85); }
.mg-carte.bas { border-color: var(--red); } .rm-badge.mg-rouge { background: var(--red); color: #fff; }
.mg-qte { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; }
.mg-qte b { display: block; font-size: 38px; line-height: 1; font-weight: 800; } .mg-qte span { color: var(--muted); font-size: 13.5px; }
.mg-seuil { text-align: right; color: var(--muted); font-size: 13px; line-height: 1.45; }
.mg-boutons { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; } .mg-boutons .btn { justify-content: center; }
.mg-machines { margin-top: 28px; } .mg-machines summary { cursor: pointer; padding: 4px 0; }
@media (max-width: 600px) { .mg-alerte { flex-wrap: wrap; } .mg-alerte em { margin-left: 0; width: 100%; } .mg-qte b { font-size: 32px; } }
.mg-photo.vraie img { filter: none; object-fit: cover; }
.mgr-qte { font-size: 15px; padding: 8px 0 2px; } .mgr-qte b { font-size: 28px; }
/* Sélection multiple (magasin-reglages.js) */
.msel { cursor: pointer; position: relative; outline: 2px dashed transparent; }
.msel::before { content: ''; position: absolute; top: 12px; right: 12px; z-index: 5; width: 30px; height: 30px; border-radius: 50%; border: 2px solid #fff; background: rgba(0,0,0,.45); box-shadow: 0 2px 6px rgba(0,0,0,.5); }
.msel.choisie { outline: 3px solid var(--blue); outline-offset: -1px; }
.msel.choisie::before { content: '✓'; background: var(--blue); border-color: var(--blue); color: #fff; display: grid; place-items: center; font-weight: 800; font-size: 17px; }
.msel-barre { position: sticky; bottom: 12px; z-index: 30; margin-top: 18px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 12px 16px; border-radius: 16px; background: var(--panel); border: 1px solid var(--line-2); box-shadow: 0 14px 36px rgba(0,0,0,.55); }
.msel-barre > b { font-size: 24px; } .msel-barre > span:not(.grow) { color: var(--muted); } .msel-barre .grow { flex: 1; }
.msel-noms { margin-bottom: 12px; max-height: 90px; overflow: auto; } .msel-aide { margin-bottom: 12px; color: var(--muted); }
.mg-h2 { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; } .mg-h2 .mselb { order: 2; margin-left: auto; }
@media (max-width: 600px) { .msel-barre { bottom: 70px; } .msel-barre .grow { flex-basis: 100%; height: 0; } }
/* Catalogue de pièces du site : deux photos côte à côte par catégorie (recadrées dans la photo d'atelier de Dany). */
.mg-ph2 { display: grid; grid-template-columns: 1fr 1fr; gap: 3px; width: 100%; height: 100%; }
.mg-ph2 > span { display: block; width: 100%; height: 100%; background-repeat: no-repeat; transition: transform .25s; }
.rm-tuile:hover .mg-ph2 > span { transform: scale(1.04); }
.mg-img { overflow: hidden; }
.mg-desc { display: block; padding: 0 16px; color: var(--muted); font-size: 13px; line-height: 1.35; margin-top: -4px; }
.mg-photo .mg-ph2 { position: absolute; inset: 0; }
