/* ===== Boutique — feuille de style ===== */
:root {
  --green: #14532d;
  --green-dark: #0f3d21;
  --green-soft: #e7efe9;
  --orange: #d4af37;
  --gold: #d4af37;
  --gold-light: #e5c158;
  --on-gold: #14532d;
  --orange-dark: #b8912e;
  --ink: #1f2a1f;
  --muted: #687068;
  --line: #e3e7e2;
  --bg: #f6f8f5;
  --card: #fff;
  --danger: #c0392b;
  --radius: 12px;
  --shadow: 0 1px 3px rgba(0,0,0,.06), 0 4px 14px rgba(0,0,0,.04);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif; color: var(--ink); background: var(--bg); line-height: 1.5; }
a { color: var(--green); }
img { max-width: 100%; }
h1 { font-size: 1.7rem; margin: .4em 0 .5em; }
h2 { font-size: 1.2rem; margin: 1.2em 0 .6em; }
.wrap { width: min(1180px, 100% - 32px); margin-inline: auto; }
main.wrap { padding: 20px 0 48px; min-height: 60vh; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
hr { border: 0; border-top: 1px solid var(--line); margin: 12px 0; }

/* --- En-tête --- */
.logo-white { color: #fff; }
.logo-gold { color: var(--gold-light); }
.topbar { border-bottom: 2px solid var(--gold); background: var(--green); color: #fff; position: sticky; top: 0; z-index: 10; box-shadow: 0 2px 8px rgba(0,0,0,.12); }
.topbar-inner { display: flex; align-items: center; gap: 16px; padding: 10px 0; flex-wrap: wrap; }
.logo { color: #fff; text-decoration: none; font-weight: 800; font-size: 1.25rem; white-space: nowrap; }
.search { flex: 1; min-width: 180px; }
.search input { width: 100%; border: 0; border-radius: 999px; padding: 9px 16px; font-size: .95rem; }
.nav { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.nav a, .nav .link { color: #fff; text-decoration: none; font-weight: 500; }
.nav .muted { color: rgba(255,255,255,.75); }
.nav .btn { background: var(--orange); color: var(--on-gold); }
.currency select { border: 0; border-radius: 8px; padding: 6px 8px; font-weight: 600; background: rgba(255,255,255,.15); color: #fff; }
.currency option { color: var(--ink); }
.pill { background: var(--orange); color: var(--on-gold); border-radius: 999px; padding: 1px 8px; font-size: .8rem; font-weight: 700; }
.inline { display: inline; margin: 0; }

/* --- Boutons --- */
.btn { display: inline-block; background: var(--green); color: #fff; border: 0; border-radius: 10px; padding: 10px 18px; font-weight: 600; font-size: .95rem; text-decoration: none; cursor: pointer; transition: background .15s; }
.btn:hover { background: var(--green-dark); }
.btn-accent { background: var(--orange); color: var(--on-gold); }
.btn-accent:hover { background: var(--orange-dark); }
.btn-ghost { background: transparent; color: var(--green); border: 1.5px solid var(--green); }
.btn-ghost:hover { background: var(--green-soft); }
.btn-sm { padding: 6px 12px; font-size: .85rem; }
.btn-block { display: block; width: 100%; text-align: center; margin-top: 8px; }
.link { background: none; border: 0; padding: 0; color: var(--green); cursor: pointer; font: inherit; text-decoration: underline; }
.danger { color: var(--danger) !important; }

/* --- Messages --- */
.alert { padding: 12px 16px; border-radius: 10px; margin: 0 0 16px; border-left: 4px solid; background: #fff; }
.alert-success { border-color: var(--green); background: var(--green-soft); }
.alert-error { border-color: var(--danger); background: #fdecea; }
.alert-info { border-color: #2d7fd3; background: #eaf3fc; }

/* --- Accueil --- */
.hero { display: flex; align-items: center; justify-content: space-between; gap: 24px; background: linear-gradient(120deg, #0f3d21 0%, #1d6b3c 100%); color: #fff; border-radius: 18px; padding: 36px; margin-bottom: 8px; }
.hero h1 { font-size: 2rem; margin-top: 0; }
.hero p { max-width: 560px; opacity: .95; }
.hero-icons { font-size: 3rem; letter-spacing: 6px; white-space: nowrap; }
.group h2 { border-left: 5px solid var(--orange); padding-left: 10px; }
.cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 14px; }
.cat-card { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 18px 12px; text-align: center; text-decoration: none; color: var(--ink); display: flex; flex-direction: column; align-items: center; gap: 6px; transition: transform .15s, box-shadow .15s; border: 1px solid transparent; }
.cat-card:hover { transform: translateY(-3px); border-color: var(--green); }
.cat-icon { font-size: 2.6rem; line-height: 1; }
.cat-img { width: 84px; height: 84px; object-fit: contain; }
.cat-name { font-weight: 700; }
.cat-count { font-size: .8rem; color: var(--muted); }

/* --- Produits --- */
.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px; }
.card { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.card.pad { padding: 20px; }
.product { display: flex; flex-direction: column; }
/* Les images sont affichées en entier (jamais recadrées) : object-fit: contain */
.thumb { display: flex; align-items: center; justify-content: center; height: 180px; background: #fff; border-bottom: 1px solid var(--line); text-decoration: none; padding: 8px; }
.visual { width: 100%; height: 100%; object-fit: contain; }
span.visual { background: var(--green-soft); border-radius: 8px; }
.visual.emoji { font-size: 3.6rem; display: flex; align-items: center; justify-content: center; }
.visual.big { height: 340px; border-radius: var(--radius); background: #fff; }
.visual.big.emoji { font-size: 7rem; }
.visual.tiny { width: 46px; height: 46px; border-radius: 8px; flex-shrink: 0; background: #fff; border: 1px solid var(--line); }
.visual.tiny.emoji { font-size: 1.6rem; }
.card-body { padding: 12px 14px 16px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.pname { color: var(--ink); text-decoration: none; font-weight: 600; flex: 1; }
.price { font-weight: 800; color: var(--green-dark); font-size: 1.1rem; }
.price.small { font-size: .9rem; }
.price.big { font-size: 1.8rem; }
.badge { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: .78rem; font-weight: 600; background: #eceeec; color: #444; }
.badge.out { background: #fdecea; color: var(--danger); }
.st-en_attente { background: #fff3e0; color: #b25e00; }
.st-payee { background: var(--green-soft); color: var(--green-dark); }
.st-en_preparation { background: #eaf3fc; color: #1d5fa3; }
.st-expediee { background: #efe9fb; color: #5b3aa8; }
.st-livree { background: #dff3e6; color: #0f6631; }
.st-annulee { background: #fdecea; color: var(--danger); }

.crumbs { font-size: .875rem; color: var(--muted); margin-bottom: 8px; }
.crumbs a { color: var(--muted); }
.page-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.sort select, .filters select, .filters input { padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.filters { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.filters input { min-width: 240px; }

.product-page { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: start; }
.add-form { display: flex; align-items: end; gap: 12px; margin-top: 16px; }
.add-form input { width: 90px; }
.box { background: #fff; border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow); margin: 16px 0; }
.box.notice { border-left: 5px solid var(--orange); background: #fffaf3; }
.total-preview { background: var(--green-soft); padding: 10px 14px; border-radius: 8px; font-weight: 600; }

/* --- Formulaires --- */
.form { display: flex; flex-direction: column; gap: 12px; }
.form label { display: flex; flex-direction: column; gap: 4px; font-weight: 600; font-size: .92rem; }
.form label small { font-weight: 400; color: var(--muted); }
input, select, textarea { font: inherit; }
.form input:not([type=checkbox]):not([type=radio]), .form select, .form textarea, .add-form input, .inline-form input, .qty {
  padding: 10px 12px; border: 1px solid #cfd6ce; border-radius: 8px; background: #fff; width: 100%;
}
.form input:focus, .form select, .form textarea:focus { outline-color: var(--green); }
.form input[readonly] { background: #f1f3f0; }
.form .check { flex-direction: row; align-items: center; gap: 8px; font-weight: 500; }
.form fieldset { border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; }
.form legend { font-weight: 700; padding: 0 6px; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 16px; }
.auth { max-width: 520px; margin: 0 auto; }
.narrow { max-width: 720px; }
.inline-form { display: flex; gap: 8px; margin-top: 10px; }
.inline-form input { flex: 1; }
.preview { max-width: 160px; border-radius: 8px; }
.choice-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.choice-grid h2 { margin-top: 0; }
.pay-methods { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.radio-card { flex-direction: row !important; align-items: center; gap: 10px !important; border: 1.5px solid var(--line); border-radius: 10px; padding: 12px; cursor: pointer; font-weight: 600; }
.radio-card:has(input:checked) { border-color: var(--green); background: var(--green-soft); }

/* --- Tableaux / panier --- */
.table-wrap { overflow-x: auto; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); }
.table { width: 100%; border-collapse: collapse; }
.table th, .table td { text-align: left; padding: 12px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table th { background: #f2f5f1; font-size: .85rem; text-transform: uppercase; letter-spacing: .03em; color: var(--muted); }
.table tr:last-child td { border-bottom: 0; }
.cart-item { display: flex; gap: 12px; align-items: center; }
.qty { width: 74px !important; }
.cart-actions { display: flex; justify-content: space-between; align-items: center; margin: 12px 0; }
.summary { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 18px; max-width: 420px; margin-left: auto; margin-top: 16px; }
.summary h2 { margin-top: 0; }
.summary > div { display: flex; justify-content: space-between; gap: 12px; padding: 4px 0; }
.summary .grand { font-size: 1.2rem; font-weight: 800; color: var(--green-dark); border-top: 1px solid var(--line); margin-top: 6px; padding-top: 10px; }
.checkout { display: grid; grid-template-columns: 1.4fr 1fr; gap: 24px; align-items: start; }
.checkout .summary { margin: 0; max-width: none; position: sticky; top: 84px; }
.checkout h2:first-of-type { margin-top: 0; }
.empty { text-align: center; padding: 40px 16px; color: var(--muted); }
.account-forms { margin-top: 24px; }
.actions { white-space: nowrap; }
.actions > * + * { margin-left: 10px; }

/* --- Pied de page --- */
.footer { border-top: 3px solid var(--gold); background: #0c2416; color: #cfe0d3; padding: 28px 0 12px; font-size: .9rem; }
.footer-inner { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.footer strong { color: #fff; }
.copy { border-top: 1px solid rgba(255,255,255,.12); margin-top: 18px; padding-top: 10px; font-size: .8rem; opacity: .7; }

/* --- Administration --- */
.admin-bar { background: #0c2416; border-bottom: 2px solid var(--gold); }
.admin-layout { display: grid; grid-template-columns: 210px 1fr; gap: 24px; padding: 20px 0 48px; }
.admin-nav { display: flex; flex-direction: column; gap: 4px; position: sticky; top: 76px; align-self: start; }
.admin-nav a { padding: 10px 12px; border-radius: 8px; text-decoration: none; color: var(--ink); font-weight: 500; }
.admin-nav a:hover { background: #fff; }
.admin-nav a.active { background: var(--green); color: #fff; }
.admin-main h1 { margin-top: 0; }
.admin-split { display: grid; grid-template-columns: 1.5fr 1fr; gap: 20px; align-items: start; }
.stats { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px; margin-bottom: 16px; }
.stat { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 16px; display: flex; flex-direction: column; gap: 4px; }
.stat span { color: var(--muted); font-size: .85rem; }
.stat strong { font-size: 1.4rem; }
.stat.highlight { border-left: 5px solid var(--orange); }

/* --- Galerie produit --- */
.gallery { display: flex; flex-direction: column; gap: 10px; }
.g-main { position: relative; display: flex; align-items: center; justify-content: center; width: 100%; height: 420px; padding: 12px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); cursor: zoom-in; overflow: hidden; }
.g-main img { max-width: 100%; max-height: 100%; object-fit: contain; transition: transform .25s; }
.g-main:hover img { transform: scale(1.03); }
.g-zoom-hint { position: absolute; bottom: 10px; right: 10px; background: rgba(0,0,0,.6); color: #fff; font-size: .8rem; padding: 4px 10px; border-radius: 999px; opacity: 0; transition: opacity .2s; }
.g-main:hover .g-zoom-hint, .g-main:focus .g-zoom-hint { opacity: 1; }
.g-thumbs { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; }
.g-thumb { flex: 0 0 72px; height: 72px; padding: 4px; background: #fff; border: 2px solid var(--line); border-radius: 8px; cursor: pointer; }
.g-thumb img { width: 100%; height: 100%; object-fit: contain; }
.g-thumb.active, .g-thumb:hover { border-color: var(--green); }

/* --- Visionneuse plein écran --- */
.lightbox { position: fixed; inset: 0; z-index: 100; background: rgba(10,15,10,.94); user-select: none; }
.lightbox[hidden] { display: none; }
.lb-stage { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; overflow: hidden; touch-action: none; cursor: zoom-in; }
.lb-stage.zoomed { cursor: grab; }
.lb-stage.zoomed:active { cursor: grabbing; }
.lb-stage img { max-width: 92vw; max-height: 84vh; object-fit: contain; transform-origin: center center; transition: transform .12s ease-out; will-change: transform; }
.lb-btn { background: rgba(255,255,255,.14); color: #fff; border: 0; border-radius: 999px; width: 44px; height: 44px; font-size: 1.4rem; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.lb-btn:hover { background: rgba(255,255,255,.28); }
.lb-close { position: absolute; top: 14px; right: 14px; }
.lb-prev, .lb-next { position: absolute; top: 50%; transform: translateY(-50%); width: 52px; height: 52px; font-size: 2rem; }
.lb-prev { left: 14px; } .lb-next { right: 14px; }
.lightbox.single .lb-prev, .lightbox.single .lb-next { display: none; }
.lb-bar { position: absolute; bottom: 16px; left: 50%; transform: translateX(-50%); display: flex; align-items: center; gap: 10px; background: rgba(0,0,0,.45); padding: 6px 12px; border-radius: 999px; color: #fff; font-size: .9rem; }
.lb-bar span { min-width: 110px; text-align: center; }

/* --- Galerie (administration) --- */
.admin-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; max-width: 900px; }
.ag-item { background: #fff; border: 2px solid var(--line); border-radius: 10px; padding: 8px; display: flex; flex-direction: column; gap: 6px; align-items: center; }
.ag-item.main { border-color: var(--green); }
.ag-item img { width: 100%; height: 130px; object-fit: contain; }
.ag-item form { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; font-size: .85rem; }
.stock-info { display: flex; flex-direction: column; gap: 6px; justify-content: center; }

/* --- Stock --- */
.stock-forms { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; margin: 12px 0 8px; }
.stock-forms h2 { margin: 0; font-size: 1.05rem; }
.stock-now { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 12px 22px; text-align: center; border-left: 5px solid var(--green); }
.stock-now span { display: block; color: var(--muted); font-size: .85rem; }
.stock-now strong { font-size: 2rem; }
.stock-now.low { border-left-color: var(--danger); }
.quick-in { display: flex; gap: 6px; }
.quick-in input { padding: 6px 8px; border: 1px solid #cfd6ce; border-radius: 6px; }
.quick-in input[type=number] { width: 70px; }
.quick-in input[name=note] { width: 150px; }
.row-low td { background: #fff6f5; }
.table .r { text-align: right; }
.table td.in { color: var(--green-dark); font-weight: 700; }
.table td.out { color: var(--danger); font-weight: 700; }
.table tfoot th { background: #f2f5f1; }
.mv-entree, .mv-initial { background: var(--green-soft); color: var(--green-dark); }
.mv-sortie { background: #fdecea; color: var(--danger); }
.mv-vente { background: #eaf3fc; color: #1d5fa3; }
.mv-annulation { background: #fff3e0; color: #b25e00; }
.mv-inventaire { background: #efe9fb; color: #5b3aa8; }
.filters label { display: flex; align-items: center; gap: 6px; }

@media print {
  .topbar, .admin-nav, .no-print, .footer { display: none !important; }
  .admin-layout { display: block; padding: 0; }
  .table-wrap { box-shadow: none; }
  body { background: #fff; }
}


/* --- v3 : réceptions, expiration, recettes, audit --- */
a.stat { text-decoration: none; color: var(--ink); }
a.stat:hover { outline: 2px solid var(--green); }
.stat.danger-stat { border-left: 5px solid var(--danger); }
.stat strong.pos { color: var(--green-dark); }
.stat strong.neg { color: var(--danger); }
.expiry-banner { display: block; text-decoration: none; color: var(--ink); }
.exp-out { background: #fdecea; color: var(--danger); }
.exp-soon { background: #fff3e0; color: #b25e00; }
.exp-ok { background: var(--green-soft); color: var(--green-dark); }
.rec-brouillon { background: #fff3e0; color: #b25e00; }
.rec-valide { background: var(--green-soft); color: var(--green-dark); }
.rec-annule { background: #eceeec; color: #666; }
.pad-sm { padding: 10px 12px 0; }
.info-list { padding-left: 20px; line-height: 1.8; }

.reception-layout { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 18px; align-items: start; }
.receipt-view { position: sticky; top: 76px; }
.receipt-view h2 { margin-top: 0; }
.receipt-view img { width: 100%; max-height: 70vh; object-fit: contain; border: 1px solid var(--line); border-radius: 8px; background: #fff; cursor: zoom-in; }
.receipt-view iframe { width: 100%; height: 70vh; border: 1px solid var(--line); border-radius: 8px; }
.ocr-text { white-space: pre-wrap; font-size: .78rem; max-height: 300px; overflow: auto; background: #f6f8f5; padding: 8px; border-radius: 6px; }
.ocr-bar { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; background: var(--green-soft); padding: 10px 12px; border-radius: 10px; }
.rec-lines td { padding: 6px; }
.rec-lines input, .rec-lines select { width: 100%; padding: 7px 8px; border: 1px solid #cfd6ce; border-radius: 6px; font-size: .88rem; background: #fff; }
.rec-lines input.num { width: 90px; }
.rec-lines input.lot { width: 90px; }
.rec-lines .cat-select { margin-top: 4px; }
.rec-lines td:first-child { min-width: 170px; }
.rec-lines td:nth-child(2) { min-width: 220px; }
.rec-actions { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }

.period-tabs { display: inline-flex; background: #fff; border-radius: 10px; box-shadow: var(--shadow); overflow: hidden; }
.period-tabs a { padding: 8px 18px; text-decoration: none; color: var(--ink); font-weight: 600; }
.period-tabs a.active { background: var(--green); color: #fff; }
.period-nav { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 6px 0 16px; }
.period-nav strong { font-size: 1.15rem; min-width: 180px; text-align: center; }
.period-nav input[type=date] { padding: 6px 8px; border: 1px solid var(--line); border-radius: 8px; }
.bars { display: flex; align-items: flex-end; gap: 3px; height: 220px; padding-top: 8px; }
.bar-col { flex: 1; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; min-width: 0; }
.bar-stack { width: 100%; max-width: 38px; display: flex; flex-direction: column-reverse; border-radius: 4px 4px 0 0; overflow: hidden; min-height: 0; }
.bar-online { background: var(--green); }
.bar-shop { background: var(--orange); }
.bar-col:hover .bar-stack { opacity: .8; }
.bar-label { font-size: .68rem; color: var(--muted); margin-top: 4px; white-space: nowrap; overflow: hidden; max-width: 100%; }
.legend { color: var(--muted); display: flex; gap: 8px; align-items: center; margin: 10px 0 0; }
.dot { display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-left: 8px; }
.dot-online { background: var(--green); } .dot-shop { background: var(--orange); }
.table.compact td { padding: 7px 8px; }
.entry-form { display: flex; gap: 10px; align-items: flex-end; flex-wrap: wrap; margin-bottom: 14px; }
.entry-form label { display: flex; flex-direction: column; gap: 4px; font-weight: 600; font-size: .85rem; }
.entry-form input, .entry-form select { padding: 8px 10px; border: 1px solid #cfd6ce; border-radius: 8px; background: #fff; }
.audit td { vertical-align: top; }
.audit del { color: var(--danger); }
.pager { display: flex; gap: 10px; }
@media (max-width: 1000px) {
  .reception-layout { grid-template-columns: 1fr; }
  .receipt-view { position: static; }
}

/* --- Responsive --- */
@media (max-width: 860px) {
  .product-page, .checkout, .admin-layout, .admin-split { grid-template-columns: 1fr; }
  .admin-nav { position: static; flex-direction: row; flex-wrap: wrap; }
  .hero { flex-direction: column; text-align: center; padding: 28px 20px; }
  .hero-icons { font-size: 2.2rem; }
  .checkout .summary { position: static; }
}
@media (max-width: 560px) {
  .grid2, .pay-methods { grid-template-columns: 1fr; }
  .search { order: 3; flex-basis: 100%; }
  .nav { gap: 10px; font-size: .9rem; }
  h1 { font-size: 1.4rem; }
  .visual.big { height: 240px; }
  .g-main { height: 300px; }
  .quick-in { flex-wrap: wrap; }
}

/* --- v4 : formulaire de pré-stock --- */
.grid4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px 14px; align-items: end; }
.file-zone { background: var(--green-soft); border: 2px dashed #9fcbab; border-radius: 12px; padding: 14px; display: flex; flex-direction: column; gap: 10px; }
.file-zone .ocr-bar { background: transparent; padding: 0; }
.rec-lines { display: flex; flex-direction: column; gap: 8px; }
.rec-head { display: none; }
.rec-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)) 30px; gap: 8px 10px; position: relative;
  grid-template-areas: "name name prod prod rm" "qty cost exp lot rm"; align-items: end; }
.rec-row > label:nth-child(1) { grid-area: name; } .rec-row > label:nth-child(2) { grid-area: prod; }
.rec-row > label:nth-child(3) { grid-area: qty; }  .rec-row > label:nth-child(4) { grid-area: cost; }
.rec-row > label:nth-child(5) { grid-area: exp; }  .rec-row > label:nth-child(6) { grid-area: lot; }
.rec-row > .rm-row { grid-area: rm; align-self: start; }
.rec-row > label::before { content: attr(data-l); font-size: .74rem; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .03em; }
.rec-row { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; }
.rec-row.unmatched { border-color: #f3b9b3; background: #fffafa; }
.rec-row > label { display: flex; flex-direction: column; gap: 3px; font-weight: 400; margin: 0; min-width: 0; }
.rec-row input, .rec-row select { width: 100%; padding: 9px 10px; border: 1px solid #cfd6ce; border-radius: 7px; font-size: .95rem; background: #fff; min-width: 0; }
.rec-row .qty-in { font-size: 1.1rem; font-weight: 700; text-align: center; }
.rec-row .cat-select { margin-top: 4px; }
.money-in { display: flex; align-items: center; gap: 4px; }
.money-in em { font-style: normal; color: var(--muted); font-size: .85rem; min-width: 26px; }
.admin-main, .reception-layout > div { min-width: 0; }
.rec-row .rm-row { font-size: 1.2rem; text-decoration: none; padding: 0; }
.rec-total-bar { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px; }
.delete-zone { margin-top: 16px; text-align: right; }
.new-rec h2 { margin-top: 0; }
@media (max-width: 1100px) {
  .grid4 { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .rec-row { grid-template-columns: 1fr 1fr; grid-template-areas: "name name" "prod prod" "qty cost" "exp lot"; padding: 12px 40px 12px 12px; }
  .rec-row > .rm-row { position: absolute; top: 8px; right: 10px; }
}
@media (max-width: 480px) {
  .grid4 { grid-template-columns: 1fr; }
}

/* --- v4 : menu hamburger (mobile) --- */
.mobile-actions, .menu-toggle, .nav-backdrop, .admin-nav-head, .admin-nav-extra { display: none; }
.menu-toggle { width: 42px; height: 42px; border: 0; border-radius: 10px; background: rgba(255,255,255,.15); cursor: pointer;
  flex-direction: column; justify-content: center; align-items: center; gap: 5px; padding: 0; }
.menu-toggle span { display: block; width: 22px; height: 2.5px; background: #fff; border-radius: 2px; transition: transform .2s, opacity .2s; }
.nav-open .menu-toggle span:nth-child(1), .admin-nav-open .admin-toggle span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav-open .menu-toggle span:nth-child(2), .admin-nav-open .admin-toggle span:nth-child(2) { opacity: 0; }
.nav-open .menu-toggle span:nth-child(3), .admin-nav-open .admin-toggle span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }
.cart-mobile { position: relative; color: #fff; text-decoration: none; font-size: 1.4rem; padding: 6px; }
.cart-mobile .pill { position: absolute; top: -2px; right: -6px; font-size: .7rem; padding: 0 6px; }

@media (max-width: 860px) {
  /* Boutique */
  .topbar-inner { gap: 10px; }
  .logo { flex: 1; font-size: 1.1rem; overflow: hidden; text-overflow: ellipsis; }
  .mobile-actions { display: flex; align-items: center; gap: 6px; }
  .mobile-actions .menu-toggle { display: flex; }
  .search { order: 3; flex-basis: 100%; }
  .topbar .nav { display: none; order: 4; flex-basis: 100%; flex-direction: column; align-items: stretch; gap: 0;
    background: var(--green-dark); border-radius: 12px; padding: 6px; margin-bottom: 4px; }
  .nav-open .topbar .nav { display: flex; }
  .topbar .nav > a, .topbar .nav > form { padding: 12px 14px; border-radius: 8px; }
  .topbar .nav > a:hover { background: rgba(255,255,255,.1); }
  .topbar .nav .btn { text-align: center; margin: 6px 0; }
  .topbar .nav .cart-link { display: none; }
  .topbar .nav .currency select { width: 100%; padding: 10px; }

  /* Administration : menu en tiroir */
  .admin-bar .admin-toggle { display: flex; }
  .admin-bar .logo { flex: 1; }
  .admin-top-nav { display: none !important; }
  .admin-layout { grid-template-columns: 1fr; }
  .admin-nav { position: fixed; top: 0; left: 0; bottom: 0; width: min(300px, 85vw); z-index: 60; background: #fff;
    padding: 14px; overflow-y: auto; transform: translateX(-105%); transition: transform .25s ease; box-shadow: 4px 0 24px rgba(0,0,0,.18);
    flex-direction: column !important; flex-wrap: nowrap !important; gap: 2px; }
  .admin-nav-open .admin-nav { transform: none; }
  .admin-nav-head { display: flex; justify-content: space-between; align-items: center; padding: 4px 6px 12px; border-bottom: 1px solid var(--line); margin-bottom: 6px; }
  .admin-nav-head .link { font-size: 1.3rem; text-decoration: none; color: var(--ink); }
  .admin-nav a { padding: 12px; }
  .admin-nav-extra { display: flex; flex-direction: column; gap: 2px; border-top: 1px solid var(--line); margin-top: 8px; padding-top: 8px; }
  .admin-nav-extra .link { padding: 12px; text-decoration: none; color: var(--ink); text-align: left; }
  .nav-backdrop { position: fixed; inset: 0; background: rgba(0,0,0,.35); z-index: 55; }
  .admin-nav-open .nav-backdrop { display: block; }
  .admin-nav-open { overflow: hidden; }
}

/* --- v4 : page d'accueil moderne --- */
.hero2 { display: grid; grid-template-columns: 1.1fr 1fr; background: linear-gradient(120deg, #0f3d21, #14532d 55%, #1d6b3c); color: #fff;
  border-radius: 22px; overflow: hidden; min-height: 320px; margin-bottom: 18px; box-shadow: 0 10px 30px rgba(21,92,46,.25); }
.hero2-text { padding: 40px 40px 36px; display: flex; flex-direction: column; justify-content: center; gap: 6px; }
.hero2-kicker { text-transform: uppercase; letter-spacing: .12em; font-size: .75rem; font-weight: 700; color: var(--gold-light); }
.hero2 h1 { font-size: 2.3rem; line-height: 1.15; margin: 6px 0 8px; }
.hero2 p { opacity: .95; max-width: 520px; margin: 0 0 14px; }
.hero2-cta { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.hero2-addr { font-size: .9rem; opacity: .9; }
.hero2-img { background-size: cover; background-position: center; min-height: 260px; }
.trust { list-style: none; padding: 0; margin: 0 0 8px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.trust li { background: #fff; border-radius: 14px; box-shadow: var(--shadow); padding: 12px 14px; display: flex; gap: 10px; align-items: center; font-size: .88rem; }
.trust .ico { font-size: 1.5rem; line-height: 1; }
.group-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 26px 0 12px; }
.group-head h2 { margin: 0; font-size: 1.45rem; border: 0; padding: 0; }
.cover-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 16px; }
.cover-card { position: relative; display: block; aspect-ratio: 3 / 2; border-radius: 18px; overflow: hidden; text-decoration: none;
  box-shadow: 0 4px 16px rgba(0,0,0,.08); background: var(--green-soft); isolation: isolate; }
.cover-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.cover-card:hover img { transform: scale(1.06); }
.cover-shade { position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,.66) 0%, rgba(0,0,0,.18) 45%, rgba(0,0,0,0) 70%); }
.cover-text { position: absolute; left: 0; right: 0; bottom: 0; padding: 14px 16px; color: #fff; display: flex; flex-direction: column; gap: 2px; }
.cover-name { font-weight: 800; font-size: 1.12rem; line-height: 1.2; text-shadow: 0 1px 3px rgba(0,0,0,.3); }
.cover-count { font-size: .82rem; opacity: .9; }
.cover-card:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; }
.cat-banner { border-radius: 18px; min-height: 190px; background-size: cover; background-position: center; position: relative; overflow: hidden; display: flex; align-items: flex-end; margin-bottom: 10px; }
.cat-banner::before { content: ''; position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,.65), rgba(0,0,0,.05) 70%); }
.cat-banner.no-img { background: linear-gradient(120deg, #0f3d21, #1d6b3c); }
.cat-banner-text { position: relative; color: #fff; padding: 18px 22px; }
.cat-banner-text h1 { margin: 0 0 2px; }
.cat-banner-text p { margin: 0; opacity: .92; }

/* Admin : groupes et catégories */
.group-box { background: #fff; border-radius: 12px; box-shadow: var(--shadow); margin-bottom: 14px; overflow: hidden; }
.group-box.is-hidden { opacity: .75; }
.group-bar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; background: #f2f5f1; padding: 10px 12px; }
.group-rename { display: flex; gap: 6px; flex: 1; min-width: 200px; }
.group-rename input { flex: 1; font-weight: 700; padding: 7px 10px; border: 1px solid #cfd6ce; border-radius: 8px; }
.cat-line { display: flex; align-items: center; gap: 12px; padding: 8px 12px; border-top: 1px solid var(--line); }
.cat-thumb { width: 54px; height: 36px; border-radius: 6px; overflow: hidden; display: flex; align-items: center; justify-content: center; background: var(--green-soft); font-size: 1.3rem; flex-shrink: 0; }
.cat-thumb img { width: 100%; height: 100%; object-fit: cover; }
.cat-info { flex: 1; display: flex; flex-direction: column; }
.order-btns { display: flex; flex-direction: column; gap: 2px; }
.order-btns form { margin: 0; }
.ord { border: 1px solid var(--line); background: #fff; border-radius: 5px; width: 26px; height: 18px; font-size: .62rem; line-height: 1; cursor: pointer; color: var(--green-dark); padding: 0; }
.ord:disabled { opacity: .3; cursor: default; }
.add-group .inline-form { margin-top: 6px; }
.cover-preview { max-width: 100%; aspect-ratio: 3/2; object-fit: cover; }

@media (max-width: 860px) {
  .hero2 { grid-template-columns: 1fr; }
  .hero2-img { min-height: 180px; order: -1; }
  .hero2-text { padding: 24px 22px 26px; }
  .hero2 h1 { font-size: 1.7rem; }
  .trust { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
  .cover-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .cover-name { font-size: .95rem; }
  .cover-text { padding: 10px; }
  .trust li { font-size: .8rem; padding: 10px; }
}

/* --- v5 : promotions, favoris, j'aime, avis, commentaires --- */
.thumb-wrap { position: relative; }
.promo-badge { position: absolute; top: 10px; left: 10px; background: #e0322b; color: #fff; font-weight: 800; font-size: .78rem;
  padding: 4px 9px; border-radius: 999px; box-shadow: 0 2px 6px rgba(224,50,43,.35); letter-spacing: .01em; }
.promo-badge.static { position: static; display: inline-block; }
.promo-badge.sm { font-size: .7rem; padding: 2px 7px; }
.fav-form { position: absolute; top: 8px; right: 8px; margin: 0; }
.fav-btn { width: 36px; height: 36px; border-radius: 50%; border: 0; background: rgba(255,255,255,.95); box-shadow: 0 2px 8px rgba(0,0,0,.12);
  color: #c9cfc8; font-size: 1.15rem; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: transform .15s, color .15s; }
.fav-btn:hover { transform: scale(1.1); color: #e0322b; }
.fav-btn.on { color: #e0322b; }
.price-line { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.price.promo { color: #e0322b; }
.old-price { color: var(--muted); font-size: .88rem; }
.price-line.big .old-price { font-size: 1.1rem; }
.saving { background: #fdecea; color: #b4231d; font-weight: 700; font-size: .82rem; padding: 3px 9px; border-radius: 999px; }
.promo-box { display: flex; align-items: center; gap: 10px; margin: 12px 0 4px; }
.rating-line { display: inline-flex; align-items: center; gap: 6px; text-decoration: none; color: var(--ink); }
.stars { display: inline-flex; gap: 1px; color: #d6dbd5; font-size: .95rem; line-height: 1; }
.stars i { font-style: normal; }
.stars i.on { color: #d4a017; }
.stars i.half { background: linear-gradient(90deg, #d4a017 50%, #d6dbd5 50%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stars.lg { font-size: 1.5rem; }
.social-bar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin: -4px 0 14px; }
.pill-btn { border: 1.5px solid var(--line); background: #fff; border-radius: 999px; padding: 7px 14px; font: inherit; font-size: .9rem; cursor: pointer;
  display: inline-flex; align-items: center; gap: 6px; transition: border-color .15s, background .15s; }
.pill-btn:hover { border-color: var(--green); }
.like-btn.on { background: #eaf3fc; border-color: #2d7fd3; color: #1d5fa3; font-weight: 700; }
.fav-pill .heart { color: #c9cfc8; font-size: 1.1rem; }
.fav-pill.on { background: #fdecea; border-color: #e0322b; color: #b4231d; font-weight: 700; }
.fav-pill.on .heart { color: #e0322b; }
.promo-link { color: var(--gold-light) !important; font-weight: 700 !important; }
.promo-hero { background: linear-gradient(120deg, #e0322b, #f28c18); color: #fff; border-radius: 18px; padding: 26px 28px; margin-bottom: 18px; }
.promo-hero h1 { margin: 0 0 4px; }
.promo-hero p { margin: 0; opacity: .95; }
.promo-strip .group-head a { font-weight: 700; color: #e0322b; text-decoration: none; }

/* Avis */
.reviews, .comments { margin-top: 36px; }
.reviews-top { display: grid; grid-template-columns: 280px 1fr; gap: 16px; align-items: start; }
.rating-summary { text-align: center; }
.big-rating { font-size: 3rem; font-weight: 800; line-height: 1; }
.big-rating small { font-size: 1.1rem; color: var(--muted); font-weight: 600; }
.dist { margin-top: 12px; display: flex; flex-direction: column; gap: 5px; }
.dist-row { display: grid; grid-template-columns: 34px 1fr 26px; gap: 8px; align-items: center; font-size: .82rem; }
.dist-bar { height: 8px; background: #eceeec; border-radius: 99px; overflow: hidden; }
.dist-bar i { display: block; height: 100%; background: #d4a017; border-radius: 99px; }
.review-form-box h3 { margin-top: 0; }
.review-list { margin-top: 16px; display: flex; flex-direction: column; gap: 10px; }
.review { background: #fff; border-radius: 12px; box-shadow: var(--shadow); padding: 14px 16px; }
.review.pending, .comment.pending { opacity: .7; border: 1px dashed var(--line); }
.review-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.review p { margin: 8px 0 0; }
.verified { color: var(--green-dark); font-weight: 700; }
.shop-reply { margin-top: 10px; background: var(--green-soft); border-left: 3px solid var(--green); padding: 8px 12px; border-radius: 6px; font-size: .92rem; }

/* Commentaires */
.comment-list { display: flex; flex-direction: column; gap: 10px; margin-bottom: 14px; }
.comment { display: flex; gap: 12px; background: #fff; border-radius: 12px; box-shadow: var(--shadow); padding: 12px 14px; }
.avatar { width: 38px; height: 38px; border-radius: 50%; background: var(--green); color: #fff; font-weight: 800; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.comment-body { flex: 1; min-width: 0; }
.comment-body p { margin: 4px 0; }
.comment-form { max-width: 720px; }

/* Admin : modération */
.moderation-box { margin-top: 10px; }
.mod-item { margin-bottom: 12px; border-left: 4px solid var(--line); }
.mod-item.st-border-en_attente { border-left-color: var(--orange); }
.mod-item.st-border-publie { border-left-color: var(--green); }
.mod-item.st-border-masque { border-left-color: #999; }
.mod-head { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; }
.mod-actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin: 8px 0; }
.mod-publie { background: var(--green-soft); color: var(--green-dark); }
.mod-en_attente { background: #fff3e0; color: #b25e00; }
.mod-masque { background: #eceeec; color: #666; }
.promo-admin { margin-top: 14px; padding: 12px 14px; background: #fff6f5; border: 1px solid #f6cfcb; border-radius: 10px; }
.promo-admin h3 { margin: 0 0 8px; font-size: 1rem; color: #b4231d; }

/* Notification */
.toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 20px); background: #1f2a1f; color: #fff; padding: 10px 18px;
  border-radius: 999px; font-weight: 600; box-shadow: 0 6px 20px rgba(0,0,0,.25); opacity: 0; transition: opacity .25s, transform .25s; z-index: 200; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

@media (max-width: 760px) {
  .reviews-top { grid-template-columns: 1fr; }
  .social-bar { gap: 8px; }
}

/* --- v5.1 : barre avis / j'aime sur deux lignes, choix des étoiles, filtre des avis --- */
.social-bar { flex-direction: column; align-items: flex-start; gap: 10px; }
.social-row { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.comments-link { color: var(--muted); text-decoration: none; font-size: .92rem; }
.comments-link:hover { color: var(--green); text-decoration: underline; }
.star-pick { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.star-input { display: inline-flex !important; flex-direction: row !important; justify-content: flex-start; gap: 6px; border: 0; padding: 0; margin: 0; }
.form .star-input label { display: inline-block; flex-direction: row; font-size: 2.1rem; line-height: 1; color: #d6dbd5; cursor: pointer; transition: color .1s, transform .1s; }
.form .star-input label.on { color: #d4a017; }
.form .star-input label:hover { transform: scale(1.15); }
.star-input input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.star-input input:focus-visible + label { outline: 2px solid var(--green); border-radius: 4px; }
/* sans JavaScript : remplissage par CSS (:has) */
.star-input:not(.js):has(input:checked) label { color: #d4a017; }
.star-input:not(.js) input:checked + label ~ label { color: #d6dbd5; }
.star-text { font-weight: 700; color: #b97a0e; min-height: 1.2em; }
.dist-row { grid-template-columns: 34px 1fr 36px; border-radius: 6px; padding: 2px 4px; }
.dist-row.active { background: #fff3e0; }
.dist-row.active .dist-bar i { background: #e0322b; }
.dist-count { text-align: right; font-size: .85rem; font-weight: 700; color: var(--green); text-decoration: none; }
.dist-count:hover { text-decoration: underline; }
.dist-count.zero { color: #b5bbb4; font-weight: 400; }
.review-filter { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  background: #fff3e0; border: 1px solid #f5d29a; border-radius: 10px; padding: 8px 12px; margin-top: 16px; }
.review-filter[hidden] { display: none; }

/* --- Bande d'atouts dans le pied de page --- */
.footer-trust { list-style: none; margin: 0 auto 22px; padding: 0 0 20px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px;
  border-bottom: 1px solid rgba(255,255,255,.12); }
.footer-trust li { display: flex; align-items: center; gap: 10px; color: #fff; font-weight: 600; font-size: .92rem; }
.footer-trust .ico { font-size: 1.5rem; line-height: 1; width: 44px; height: 44px; border-radius: 12px; background: rgba(255,255,255,.08);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
@media (max-width: 860px) { .footer-trust { grid-template-columns: 1fr 1fr; } }
@media (max-width: 420px) { .footer-trust { grid-template-columns: 1fr; } }


/* ===== Thème « Crème et or » (Paramètres > Apparence) ===== */
body.theme-creme-or {
  --green: #4a2f0f;
  --green-dark: #33200a;
  --green-soft: #f3e8cc;
  --orange: #b8912e;
  --orange-dark: #9a7520;
  --gold: #b8912e;
  --gold-light: #e9cf86;
  --on-gold: #2b1d0a;
  --ink: #2b1d0a;
  --muted: #7a6a52;
  --line: #eadfc4;
  --bg: #fbf7ee;
}
.theme-creme-or .topbar { background: #a07c22; border-bottom-color: #4a2f0f; }
.theme-creme-or .logo-white { color: #fff; }
.theme-creme-or .logo-gold { color: #3b2410; }
.theme-creme-or .promo-link { color: #fff !important; }
.theme-creme-or .nav .btn { background: #4a2f0f; color: #f3e3b5; }
.theme-creme-or .hero, .theme-creme-or .hero2, .theme-creme-or .cat-banner.no-img { background: linear-gradient(120deg, #3b2410, #5a3a14 55%, #8a6a1a); }
.theme-creme-or .footer, .theme-creme-or .admin-bar { background: #2b1d0a; }
.theme-creme-or .footer { color: #eadfc4; }
.theme-creme-or .btn-accent { color: var(--on-gold); }


/* ===== Thème « Noir et or » (Paramètres > Apparence) ===== */
body.theme-noir-or {
  --green: #1a1a1a;
  --green-dark: #000;
  --green-soft: #efe7cc;
  --orange: #d4af37;
  --orange-dark: #b8912e;
  --gold: #d4af37;
  --gold-light: #e5c158;
  --on-gold: #121212;
  --ink: #1a1a1a;
  --muted: #6b665a;
  --line: #e8e2cf;
  --bg: #f7f6f2;
}
.theme-noir-or a { color: #8a6d14; }
.theme-noir-or .topbar { background: #121212; border-bottom-color: var(--gold); }
.theme-noir-or .topbar a, .theme-noir-or .nav a { color: #fff; }
.theme-noir-or .logo-white { color: #fff; }
.theme-noir-or .logo-gold { color: var(--gold-light); }
.theme-noir-or .nav .btn { background: var(--gold); color: #121212; }
.theme-noir-or .promo-link { color: var(--gold-light) !important; }
.theme-noir-or .hero, .theme-noir-or .hero2, .theme-noir-or .cat-banner.no-img { background: linear-gradient(120deg, #0b0b0b, #1c1c1c 55%, #2e2a20); }
.theme-noir-or .footer, .theme-noir-or .admin-bar { background: #0b0b0b; }
.theme-noir-or .footer { color: #d9d2bd; }
.theme-noir-or .btn, .theme-noir-or a.btn { color: #fff; }
.theme-noir-or .btn-accent, .theme-noir-or a.btn-accent { color: var(--on-gold); }
.theme-noir-or .btn-ghost, .theme-noir-or a.btn-ghost { color: var(--green); }
.theme-noir-or a.pname, .theme-noir-or .cover-card, .theme-noir-or .cover-card a { color: var(--ink); }

/* --- Rôles du personnel --- */
.role-chip { display: inline-block; background: var(--green-soft); color: var(--green-dark); border-radius: 999px; padding: 1px 9px; font-size: .78rem; font-weight: 700; }
.admin-bar .role-chip { background: rgba(255,255,255,.15); color: #fff; }
.roles-help summary { cursor: pointer; }
.roles-help ul { margin: 10px 0 4px; padding-left: 0; list-style: none; display: grid; gap: 8px; }
.role-form select { padding: 4px 6px; border-radius: 8px; border: 1px solid var(--line); }
/* Lecture seule : les formulaires de modification sont masqués */
body.readonly .admin-main form[method="post"] { display: none !important; }

/* Paramètres : une carte et un bouton par rubrique */
.settings-section { margin-bottom: 18px; scroll-margin-top: 80px; }
.settings-section h2 { margin-top: 0; }
.settings-section .btn { margin-top: 6px; }
