/* ApeRaw Shop — interface partagée par la boutique et le back-office (copiée dans chaque docroot au déploiement).
   Jetons de couleur en tête de fichier ; thème clair par défaut, thème sombre selon le système. Aucune ressource externe. */
:root {
  --bg: #f6f5f1; --surface: #ffffff; --surface-2: #faf9f6; --ink: #17171a; --muted: #6a6a73; --line: #e6e4dd;
  --brand: #4f46e5; --brand-2: #db2777; --brand-ink: #ffffff; --signal: #f5b301; --danger: #b3261e; --ok: #1f7a3d;
  --accent: var(--brand); --accent-ink: var(--brand-ink);
  --radius: 14px; --radius-s: 9px; --gap: 16px;
  --shadow: 0 1px 2px rgba(20, 20, 30, .06), 0 10px 28px rgba(20, 20, 30, .07);
  --shadow-up: 0 2px 4px rgba(20, 20, 30, .08), 0 18px 40px rgba(20, 20, 30, .14);
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", sans-serif; color: var(--ink);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0e0e11; --surface: #17171c; --surface-2: #1d1d23; --ink: #f3f2ee; --muted: #a3a3ad; --line: #2b2b33;
    --brand: #8b83ff; --brand-2: #f472b6; --brand-ink: #0e0e11; --danger: #f4877f; --ok: #7fd09a;
    --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 10px 28px rgba(0, 0, 0, .35); --shadow-up: 0 2px 4px rgba(0, 0, 0, .5), 0 18px 40px rgba(0, 0, 0, .5);
  }
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); line-height: 1.55; -webkit-font-smoothing: antialiased; }
.page { max-width: 960px; margin: 0 auto; padding: 28px 16px 96px; }
.page.wide { max-width: 1240px; }
h1 { font-size: 1.7rem; line-height: 1.2; letter-spacing: -.01em; margin: 0 0 6px; display: flex; align-items: center; gap: .1em; flex-wrap: wrap; }
h2 { font-size: 1.15rem; margin: 34px 0 12px; display: flex; align-items: center; letter-spacing: -.005em; }
h3 { font-size: 1rem; margin: 0 0 12px; }
.lead { color: var(--muted); margin: 0 0 24px; }
a { color: var(--ink); text-decoration-color: color-mix(in srgb, var(--ink) 35%, transparent); text-underline-offset: 3px; }
a:hover { text-decoration-color: var(--brand); color: var(--brand); }
a.btn, a.tile, .topbar a, .side a, .pills a, .work-tile a, .artist, .brand { text-decoration: none; }
a.btn:hover { color: var(--brand-ink); }
a.btn.ghost:hover { color: var(--brand); }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); margin: 0 0 20px; }
.card h2:first-child, .card h3:first-child { margin-top: 0; }
label { display: block; font-weight: 600; font-size: .9rem; margin: 0 0 6px; }
input, select, textarea { width: 100%; font: inherit; color: inherit; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-s); padding: 10px 12px; transition: border-color .15s, box-shadow .15s; }
input:hover, select:hover, textarea:hover { border-color: color-mix(in srgb, var(--ink) 30%, var(--line)); }
input:focus-visible, select:focus-visible, textarea:focus-visible { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 25%, transparent); }
button:focus-visible, a:focus-visible, summary:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; border-radius: 6px; }
.field { margin-bottom: var(--gap); } .hint { color: var(--muted); font-size: .85rem; margin: 4px 0 0; } .req { color: var(--danger); }
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: var(--danger); } .error { color: var(--danger); font-size: .88rem; margin: 6px 0 0; }
p.error { display: flex; gap: .4em; align-items: flex-start; }

/* ── Boutons ── */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .1em; font: inherit; font-weight: 600; border: 1px solid var(--brand); color: var(--brand-ink); cursor: pointer;
  background: linear-gradient(135deg, var(--brand), color-mix(in srgb, var(--brand) 70%, var(--brand-2))); border-radius: var(--radius-s); padding: 10px 18px; transition: transform .12s, box-shadow .15s, filter .15s; }
.btn:hover { filter: brightness(1.08); box-shadow: 0 6px 18px color-mix(in srgb, var(--brand) 35%, transparent); transform: translateY(-1px); }
.btn:active { transform: none; }
.btn.ghost { background: transparent; color: var(--ink); border-color: var(--line); } .btn.ghost:hover { border-color: var(--brand); box-shadow: none; filter: none; color: var(--brand); }
.btn.danger { background: var(--danger); border-color: var(--danger); color: #fff; }
.btn.small { padding: 6px 12px; font-size: .88rem; }
.btn[disabled] { opacity: .45; cursor: not-allowed; transform: none; box-shadow: none; }
.actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin: 0 0 20px; }

/* ── Icônes (sprite SVG) ── */
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.i { width: 1.15em; height: 1.15em; vertical-align: -0.2em; flex: none; }
.btn .i, .pills .i, h1 .i, h2 .i, .side .i, .topbar nav .i, .notice .i, .error .i, a .i { margin-right: .45em; }
h1 .i { width: 1.1em; height: 1.1em; color: var(--brand); }
.btn .i:last-child { margin: 0 0 0 .45em; }

/* ── Assistant par étapes ── */
.wiz-progress { display: flex; gap: 6px; list-style: none; padding: 0; margin: 0 0 20px; }
.wiz-progress li { flex: 1; height: 5px; border-radius: 3px; background: var(--line); position: relative; }
.wiz-progress li.done { background: color-mix(in srgb, var(--brand) 55%, var(--line)); } .wiz-progress li.current { background: linear-gradient(90deg, var(--brand), var(--brand-2)); } .wiz-progress li.todo { opacity: .7; }
.wiz-steplabel { color: var(--brand); font-size: .85rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; margin: 0 0 8px; }
.wiz-viewport { overflow: hidden; }
.wiz-slide { display: none; } .wiz-slide.active { display: block; animation: slide-in .22s ease-out; }
.wiz-slide.back.active { animation-name: slide-back; }
@keyframes slide-in { from { opacity: 0; transform: translateX(24px); } to { opacity: 1; transform: none; } }
@keyframes slide-back { from { opacity: 0; transform: translateX(-24px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .wiz-slide.active { animation: none; } * { scroll-behavior: auto !important; transition: none !important; } }
.wiz-actions { display: flex; justify-content: space-between; gap: 12px; margin-top: 24px; }
.wiz-recap { margin: 0 0 16px; padding: 0; list-style: none; } .wiz-recap li { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.wiz-recap .k { color: var(--muted); flex: none; } .wiz-recap a { margin-left: 12px; white-space: nowrap; }
.choice { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; }
.choice label { border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; cursor: pointer; font-weight: 500; background: var(--surface); transition: border-color .15s, box-shadow .15s; }
.choice label:hover { border-color: var(--brand); }
.choice input { width: auto; margin-right: 8px; } .choice label:has(input:checked) { border-color: var(--brand); box-shadow: inset 0 0 0 1px var(--brand); background: color-mix(in srgb, var(--brand) 6%, var(--surface)); }
.choice small { color: var(--muted); font-weight: 400; }

/* ── Tableaux et actions de masse ── */
.list { width: 100%; border-collapse: separate; border-spacing: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); margin: 0 0 20px; }
.list th, .list td { text-align: left; padding: 11px 14px; border-bottom: 1px solid var(--line); font-size: .92rem; vertical-align: middle; }
.list tbody tr:last-child td { border-bottom: 0; }
.list th { color: var(--muted); font-weight: 700; font-size: .74rem; text-transform: uppercase; letter-spacing: .06em; background: var(--surface-2); }
.list tbody tr { transition: background .12s; } .list tbody tr:hover { background: color-mix(in srgb, var(--brand) 5%, var(--surface)); }
.list td.sel, .list th.sel { width: 38px; padding-right: 0; } .list input[type=checkbox] { width: 18px; height: 18px; padding: 0; accent-color: var(--brand); }
.list tr[aria-selected="true"] { background: color-mix(in srgb, var(--brand) 13%, transparent); }
.list a { font-weight: 600; }
.list td input:not([type=checkbox]), .list td select { padding: 6px 9px; }
.badge { display: inline-flex; align-items: center; font-size: .74rem; font-weight: 600; border: 1px solid var(--line); border-radius: 99px; padding: 2px 9px; color: var(--muted); background: var(--surface-2); }
.badge.ok { color: var(--ok); border-color: color-mix(in srgb, var(--ok) 45%, var(--line)); background: color-mix(in srgb, var(--ok) 9%, var(--surface)); }
.badge.danger { color: var(--danger); border-color: color-mix(in srgb, var(--danger) 45%, var(--line)); background: color-mix(in srgb, var(--danger) 8%, var(--surface)); }
.bulkbar { position: sticky; bottom: 16px; display: none; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 16px; padding: 10px 14px;
  background: var(--ink); color: var(--bg); border-radius: var(--radius); box-shadow: var(--shadow-up); z-index: 5; }
.bulkbar.show { display: flex; } .bulkbar .count { font-weight: 700; margin-right: auto; }
.bulkbar button, .bulkbar select, .bulkbar input { font: inherit; border-radius: var(--radius-s); border: 1px solid color-mix(in srgb, var(--bg) 40%, transparent); background: transparent; color: inherit; padding: 6px 12px; cursor: pointer; width: auto; }
.bulkbar button:hover { background: color-mix(in srgb, var(--bg) 15%, transparent); }
.bulkbar button.destructive { background: var(--danger); border-color: var(--danger); color: #fff; }
.bulkbar .linklike { border: 0; text-decoration: underline; padding: 0; }
dialog { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); color: var(--ink); max-width: 440px; box-shadow: var(--shadow-up); } dialog::backdrop { background: rgba(0, 0, 0, .5); backdrop-filter: blur(2px); }
.dlg-actions { display: flex; gap: 8px; justify-content: flex-end; }
.report { margin-top: 16px; } .report li { color: var(--muted); }
.filters { display: flex; gap: 8px; flex-wrap: wrap; margin: 0 0 16px; } .filters input, .filters select { width: auto; min-width: 160px; flex: 1 1 160px; }
.stats { list-style: none; padding: 0; margin: 0 0 24px; } .stats li { padding: 7px 0; border-bottom: 1px solid var(--line); }
.pager { color: var(--muted); }
code { background: var(--surface-2); border: 1px solid var(--line); border-radius: 6px; padding: 1px 6px; word-break: break-all; font-size: .88em; }
details { margin: 8px 0; } summary { cursor: pointer; font-weight: 600; padding: 4px 0; } fieldset { border: 0; padding: 0; margin: 0 0 16px; } legend { font-weight: 600; font-size: .9rem; padding: 0; margin-bottom: 8px; }
.notice { display: flex; gap: .3em; align-items: flex-start; background: color-mix(in srgb, var(--ok) 10%, var(--surface)); border: 1px solid color-mix(in srgb, var(--ok) 50%, var(--line)); border-radius: var(--radius-s); padding: 11px 15px; margin: 0 0 20px; }
.check { display: flex; gap: 8px; align-items: flex-start; font-weight: 400; } .check input { width: auto; margin-top: 4px; accent-color: var(--brand); }
form.inline { display: inline-flex; gap: 8px; align-items: center; flex-wrap: wrap; margin: 0; } form.inline input, form.inline select { width: auto; }
.narrow { max-width: 540px; } .center { text-align: center; }
.num { text-align: right; white-space: nowrap; } .qty { width: 76px; }
.thumb { max-width: 160px; max-height: 160px; border-radius: var(--radius-s); border: 1px solid var(--line); object-fit: cover; aspect-ratio: 1; }
.avatar { width: 42px; height: 42px; border-radius: 50%; object-fit: cover; border: 1px solid var(--line); display: inline-flex; align-items: center; justify-content: center; background: var(--surface-2); color: var(--muted); }
.totals { margin: 16px 0 16px auto; border-collapse: collapse; min-width: 280px; } .totals th { text-align: left; font-weight: 500; padding: 4px 16px 4px 0; color: var(--muted); } .totals td { padding: 4px 0; }
.totals .grand th, .totals .grand td { font-weight: 700; font-size: 1.15rem; color: var(--ink); border-top: 1px solid var(--line); padding-top: 8px; }
.price { font-size: 1.15rem; font-weight: 800; margin: 0; } .price small { font-weight: 400; color: var(--muted); font-size: .75rem; } .price.big { font-size: 1.7rem; }
.pills { display: flex; gap: 8px; flex-wrap: wrap; margin: 0 0 18px; } .pills a { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 99px; padding: 5px 15px; color: var(--ink); background: var(--surface); font-weight: 500; transition: border-color .15s, background .15s; }
.pills a:hover { border-color: var(--brand); } .pills a[aria-current=page] { background: var(--brand); color: var(--brand-ink); border-color: var(--brand); }

/* ── Tuiles chiffrées (tableaux de bord) ── */
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; margin: 0 0 24px; }
.tile { display: flex; flex-direction: column; gap: 2px; padding: 20px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); color: var(--ink); box-shadow: var(--shadow); position: relative; overflow: hidden; }
a.tile { transition: transform .15s, box-shadow .15s, border-color .15s; } a.tile:hover { transform: translateY(-2px); box-shadow: var(--shadow-up); border-color: var(--brand); color: var(--ink); }
.tile .tile-ico { position: absolute; right: 14px; top: 14px; width: 38px; height: 38px; border-radius: 11px; display: flex; align-items: center; justify-content: center; background: color-mix(in srgb, var(--brand) 12%, var(--surface)); color: var(--brand); }
.tile .tile-ico .i { margin: 0; width: 20px; height: 20px; }
.tile-n { font-size: 2rem; font-weight: 800; letter-spacing: -.02em; } .tile-l { color: var(--muted); font-size: .9rem; }
.tile.warn .tile-ico { background: color-mix(in srgb, var(--signal) 22%, var(--surface)); color: #8a6500; }

/* ═══ Back-office : coque avec barre latérale ═══ */
.shell { display: grid; grid-template-columns: 250px 1fr; min-height: 100vh; }
.side { background: var(--surface); border-right: 1px solid var(--line); padding: 18px 12px 28px; position: sticky; top: 0; align-self: start; height: 100vh; overflow-y: auto; }
.side .brand { display: flex; align-items: center; gap: 10px; padding: 4px 8px 18px; font-size: 1.15rem; }
.side nav { display: flex; flex-direction: column; gap: 2px; }
.side .grp { font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .09em; color: var(--muted); padding: 16px 10px 6px; }
.side a { display: flex; align-items: center; padding: 8px 10px; border-radius: var(--radius-s); color: var(--ink); font-weight: 500; font-size: .93rem; }
.side a:hover { background: var(--surface-2); color: var(--ink); } .side a .i { color: var(--muted); } .side a:hover .i { color: var(--brand); }
.side a[aria-current=page] { background: color-mix(in srgb, var(--brand) 12%, var(--surface)); color: var(--brand); font-weight: 700; } .side a[aria-current=page] .i { color: var(--brand); }
.main { min-width: 0; display: flex; flex-direction: column; }
.bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 24px; border-bottom: 1px solid var(--line); background: color-mix(in srgb, var(--surface) 88%, transparent); backdrop-filter: blur(8px); position: sticky; top: 0; z-index: 10; }
.bar .who { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: .9rem; } .bar form { margin: 0; }
.burger { display: none; cursor: pointer; padding: 6px; border-radius: var(--radius-s); border: 1px solid var(--line); } .burger .i { margin: 0; width: 22px; height: 22px; }
.navtoggle { position: absolute; top: 0; left: 0; width: 1px; height: 1px; margin: 0; opacity: 0; pointer-events: none; }
@media (max-width: 880px) {
  .shell { grid-template-columns: 1fr; } .burger { display: inline-flex; }
  .side { position: fixed; left: 0; top: 0; bottom: 0; width: 270px; z-index: 30; transform: translateX(-102%); transition: transform .2s; box-shadow: var(--shadow-up); }
  .navtoggle:checked ~ .side { transform: none; }
  .navtoggle:checked ~ .main::before { content: ""; position: fixed; inset: 0; background: rgba(0, 0, 0, .4); z-index: 20; }
  .bar { padding: 10px 14px; }
}

/* ═══ Boutique : en-tête, pied de page, vitrines ═══ */
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 24px; border-bottom: 1px solid var(--line); background: color-mix(in srgb, var(--surface) 88%, transparent); backdrop-filter: blur(8px); position: sticky; top: 0; z-index: 10; flex-wrap: wrap; }
.topbar nav { display: flex; gap: 2px; flex-wrap: wrap; align-items: center; } .topbar nav a { display: inline-flex; align-items: center; padding: 7px 12px; border-radius: var(--radius-s); color: var(--ink); font-weight: 500; }
.topbar nav a:hover { background: var(--surface-2); color: var(--brand); } .topbar nav a[aria-current=page] { color: var(--brand); background: color-mix(in srgb, var(--brand) 10%, var(--surface)); }
.topbar form { display: inline; margin: 0; }
.brand { display: inline-flex !important; align-items: center; gap: 9px; font-weight: 800; letter-spacing: -.01em; font-size: 1.15rem; color: var(--ink) !important; }
.brand .logo-marque { height: 44px; } .brand-login { flex-direction: column; gap: 4px; } .brand-login .logo-marque { height: 60px; }
/* Logo Ape Raw Records : une variante par fond (encre sombre sur fond clair, encre claire sur fond sombre) */
.logo-marque { display: block; width: auto; height: 40px; max-width: 100%; flex: none; } .logo-marque.pour-fond-sombre { display: none; }
@media (prefers-color-scheme: dark) { .logo-marque.pour-fond-clair { display: none; } .logo-marque.pour-fond-sombre { display: block; } }
body.vitrine.scheme-light .logo-marque.pour-fond-clair { display: block; } body.vitrine.scheme-light .logo-marque.pour-fond-sombre { display: none; }
body.vitrine.scheme-dark .logo-marque.pour-fond-clair { display: none; } body.vitrine.scheme-dark .logo-marque.pour-fond-sombre { display: block; }
.badge-count, .topbar .badge { background: var(--brand-2); color: #fff; border: 0; margin-left: 6px; min-width: 20px; justify-content: center; }
.hero { position: relative; overflow: hidden; border-radius: calc(var(--radius) + 6px); padding: 44px 36px; margin: 0 0 28px; color: #fff;
  background: radial-gradient(900px 400px at 85% -20%, color-mix(in srgb, var(--brand-2) 70%, transparent), transparent 60%), radial-gradient(700px 400px at 0% 120%, color-mix(in srgb, var(--signal) 45%, transparent), transparent 60%), linear-gradient(135deg, #2b2670, #4f46e5); box-shadow: var(--shadow-up); }
.hero h1 { color: #fff; font-size: clamp(1.7rem, 4vw, 2.6rem); max-width: 18ch; } .hero h1 .i { color: var(--signal); }
.hero p { margin: 8px 0 22px; max-width: 52ch; color: rgba(255, 255, 255, .85); font-size: 1.05rem; }
.hero .btn { background: #fff; color: #2b2670; border-color: #fff; } .hero .btn.ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .6); }
.hero .disc { position: absolute; right: -50px; bottom: -70px; width: 320px; height: 320px; opacity: .16; color: #fff; } .hero .disc .i { width: 100%; height: 100%; margin: 0; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 30px 0 12px; } .section-head h2 { margin: 0; }
.view-toggle { display: inline-flex; border: 1px solid var(--line); border-radius: var(--radius-s); overflow: hidden; background: var(--surface); }
.view-toggle a { display: inline-flex; align-items: center; padding: 6px 12px; color: var(--muted); } .view-toggle a .i { margin: 0; }
.view-toggle a[aria-current=page] { background: var(--brand); color: var(--brand-ink); }

/* Carrousel d'artistes : photos carrées, nom au survol */
.carousel { position: relative; margin: 0 0 8px; }
.carousel-track { display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px 2px 14px; scrollbar-width: thin; scroll-behavior: smooth; }
.artist { position: relative; flex: 0 0 168px; aspect-ratio: 1; border-radius: var(--radius); overflow: hidden; scroll-snap-align: start; box-shadow: var(--shadow); border: 1px solid var(--line); background: var(--surface-2); display: block; color: #fff; }
.artist img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .35s; }
.artist .initial { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 3.4rem; font-weight: 800; color: rgba(255, 255, 255, .9); }
.artist .name { position: absolute; left: 0; right: 0; bottom: 0; padding: 26px 12px 10px; font-weight: 700; font-size: .95rem; background: linear-gradient(transparent, rgba(0, 0, 0, .78)); opacity: 0; transform: translateY(8px); transition: opacity .2s, transform .2s; }
.artist:hover .name, .artist:focus-visible .name, .artist:focus-within .name { opacity: 1; transform: none; } .artist:hover img { transform: scale(1.06); }
@media (hover: none) { .artist .name { opacity: 1; transform: none; } }
.artist[aria-current=page] { outline: 3px solid var(--brand); outline-offset: 2px; }
.carousel-btn { position: absolute; top: 50%; transform: translateY(-60%); width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); color: var(--ink); cursor: pointer; box-shadow: var(--shadow); display: flex; align-items: center; justify-content: center; z-index: 2; padding: 0; }
.carousel-btn.prev { left: -10px; } .carousel-btn.next { right: -10px; } .carousel-btn .i { margin: 0; } .carousel-btn.prev .i { transform: rotate(180deg); }
@media (max-width: 700px) { .carousel-btn { display: none; } .artist { flex-basis: 132px; } }

/* Pochettes et tuiles d'œuvres */
.cover { position: relative; aspect-ratio: 1; border-radius: var(--radius); overflow: hidden; background: linear-gradient(135deg, #6366f1, #ec4899); display: block; }
.cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cover .ph { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: rgba(255, 255, 255, .85); } .cover .ph .i { width: 42%; height: 42%; margin: 0; }
.c0 { background: linear-gradient(135deg, #6366f1, #ec4899); } .c1 { background: linear-gradient(135deg, #0ea5e9, #6366f1); } .c2 { background: linear-gradient(135deg, #f59e0b, #ef4444); } .c3 { background: linear-gradient(135deg, #10b981, #0ea5e9); }
.c4 { background: linear-gradient(135deg, #8b5cf6, #06b6d4); } .c5 { background: linear-gradient(135deg, #f43f5e, #f59e0b); } .c6 { background: linear-gradient(135deg, #14b8a6, #84cc16); } .c7 { background: linear-gradient(135deg, #334155, #7c3aed); }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 18px; margin: 16px 0; }
.work-tile, .product { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px; display: flex; flex-direction: column; gap: 6px; box-shadow: var(--shadow); transition: transform .18s, box-shadow .18s; position: relative; }
.work-tile:hover, .product:hover { transform: translateY(-3px); box-shadow: var(--shadow-up); }
.work-tile .cover, .product .cover { border-radius: calc(var(--radius) - 4px); margin-bottom: 4px; }
.work-tile .play { position: absolute; right: 22px; top: calc(12px + 100% * 0); width: 42px; height: 42px; margin-top: 0; border-radius: 50%; background: rgba(255, 255, 255, .92); color: #2b2670; display: flex; align-items: center; justify-content: center; opacity: 0; transform: scale(.85); transition: opacity .2s, transform .2s; box-shadow: var(--shadow); pointer-events: none; }
.work-tile .play .i { margin: 0; } .work-tile:hover .play { opacity: 1; transform: none; }
.work-tile h2, .product h2 { font-size: 1rem; margin: 0; display: block; line-height: 1.3; } .work-tile h2 a, .product h2 a { color: var(--ink); }
.work-tile .artist-line, .product .sub { color: var(--muted); font-size: .88rem; margin: 0; } .work-tile .buy, .product .buy { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 8px; padding-top: 6px; }
.work-tile form, .product form { margin: 0; }
.work-rows { display: flex; flex-direction: column; gap: 10px; margin: 16px 0; }
.work-row { display: grid; grid-template-columns: 64px 1fr auto auto; gap: 16px; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 10px 14px 10px 10px; box-shadow: var(--shadow); transition: box-shadow .18s, border-color .18s; }
.work-row:hover { border-color: var(--brand); box-shadow: var(--shadow-up); } .work-row .cover { border-radius: 10px; }
.work-row h2 { font-size: 1rem; margin: 0; display: block; } .work-row .artist-line { color: var(--muted); font-size: .88rem; margin: 0; } .work-row .dur { color: var(--muted); font-size: .88rem; white-space: nowrap; } .work-row form { margin: 0; }
@media (max-width: 640px) { .work-row { grid-template-columns: 56px 1fr auto; } .work-row .dur { display: none; } }
.work-hero { display: grid; grid-template-columns: minmax(220px, 340px) 1fr; gap: 28px; align-items: start; margin: 8px 0 24px; } .work-hero .cover { box-shadow: var(--shadow-up); }
@media (max-width: 720px) { .work-hero { grid-template-columns: 1fr; } .work-hero .cover { max-width: 320px; } }
.work-head { display: flex; gap: 14px; align-items: center; margin: 0 0 6px; } .work-head .cover { width: 64px; flex: none; border-radius: 10px; }
.empty { text-align: center; color: var(--muted); padding: 40px 16px; border: 1px dashed var(--line); border-radius: var(--radius); background: var(--surface); }
.empty .i { width: 40px; height: 40px; display: block; margin: 0 auto 8px; color: var(--brand); opacity: .8; }
.foot { margin-top: 24px; border-top: 1px solid var(--line); background: var(--surface); }
.foot .inner { max-width: 960px; margin: 0 auto; padding: 28px 16px; display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 24px; color: var(--muted); font-size: .88rem; }
.foot h3 { color: var(--ink); font-size: .85rem; text-transform: uppercase; letter-spacing: .07em; margin-bottom: 10px; } .foot a { display: block; color: var(--muted); padding: 2px 0; } .foot a:hover { color: var(--brand); }
.foot .copy { max-width: 960px; margin: 0 auto; padding: 0 16px 24px; color: var(--muted); font-size: .8rem; }
@media (max-width: 700px) { .foot .inner { grid-template-columns: 1fr; } .hero { padding: 30px 20px; } .topbar { padding: 8px 14px; } }

/* ── Petits écrans ── */
@media (max-width: 600px) {
  .card { padding: 16px; } .wiz-actions { flex-direction: column-reverse; } .btn { width: 100%; } .actions .btn, .work-tile .btn, .work-row .btn, .hero .btn { width: auto; }
  .list:not(.keep) th:nth-child(n+4), .list:not(.keep) td:nth-child(n+4) { display: none; }
  h1 { font-size: 1.4rem; }
}
/* Tableaux de fichiers (catalogue, œuvres achetées) : sur petit écran on garde type, format et boutons */
@media (max-width: 600px) { .list.assets th:nth-child(3), .list.assets td:nth-child(3), .list.assets th:nth-child(4), .list.assets td:nth-child(4) { display: none; } .list.assets td:last-child { white-space: normal; } .list.assets .btn { width: auto; margin-bottom: 4px; } }
/* Configurateur de tarifs : champs de libellé lisibles ; tableaux larges défilables plutôt que rognés */
.list td input[name^="label"], .list td input[name^="tlabel"], .list td input[name^="rlabel"], .list td input[name="new_label"] { min-width: 12rem; }
.card:has(table.list.keep) { overflow-x: auto; }

/* Utilitaires */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.carousel-btn[hidden] { display: none; }
.artist, .artist:hover, .artist:focus-visible { color: #fff; } .artist .name { color: #fff; }
.carousel-track { scrollbar-color: var(--line) transparent; }
.carousel-track::-webkit-scrollbar { height: 8px; } .carousel-track::-webkit-scrollbar-track { background: transparent; } .carousel-track::-webkit-scrollbar-thumb { background: var(--line); border-radius: 4px; }
.work-row .buy { display: flex; align-items: center; gap: 12px; } .work-row h2 a, .work-tile h2 a, .product h2 a { text-decoration: none; } .work-row h2 a:hover, .work-tile h2 a:hover, .product h2 a:hover { color: var(--brand); }

/* Éditeur HTML (modèles de licence) */
.ed-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; padding: 6px; background: var(--surface-2); border: 1px solid var(--line); border-bottom: 0; border-radius: var(--radius-s) var(--radius-s) 0 0; }
.ed-btn { font: inherit; font-size: .88rem; min-width: 34px; height: 32px; padding: 0 9px; border: 1px solid transparent; border-radius: 7px; background: transparent; color: var(--ink); cursor: pointer; }
.ed-btn:hover { background: var(--surface); border-color: var(--line); color: var(--brand); } .ed-btn[aria-pressed=true] { background: color-mix(in srgb, var(--brand) 14%, var(--surface)); color: var(--brand); border-color: color-mix(in srgb, var(--brand) 40%, var(--line)); }
.ed-toggle { margin-left: auto; font-weight: 600; } .ed-sep { width: 1px; height: 22px; background: var(--line); margin: 0 4px; }
.ed-vars { width: auto; max-width: 280px; height: 32px; padding: 0 8px; font-size: .88rem; }
.ed-split { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; align-items: start; } .ed-split.no-preview { grid-template-columns: 1fr; } .ed-split.no-preview .ed-side { display: none; }
.ed-pane textarea { border-radius: 0 0 var(--radius-s) var(--radius-s); font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .86rem; line-height: 1.5; min-height: 320px; resize: vertical; }
.ed-preview { margin: 0; max-height: 520px; overflow: auto; padding: 18px; } .ed-preview h1 { font-size: 1.25rem; } .ed-preview h2 { font-size: 1.05rem; margin: 14px 0 6px; }
mark.var { background: color-mix(in srgb, var(--signal) 35%, transparent); color: inherit; border-radius: 4px; padding: 0 3px; } mark.var.bad { background: color-mix(in srgb, var(--danger) 25%, transparent); }
@media (max-width: 980px) { .ed-split { grid-template-columns: 1fr; } .ed-toggle { margin-left: 0; } }

/* Formulaires du back-office : plus larges et moins hauts sur ordinateur (champs en colonnes), une seule colonne sur petit écran */
.card.form-wide { max-width: 980px; }
.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 0 24px; align-items: start; }
.form-grid .field.full, .form-grid fieldset.field { grid-column: 1 / -1; }
.form-grid .check-set { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 4px 20px; }
.form-wide .wiz-recap { columns: 2 380px; column-gap: 32px; } .form-wide .wiz-recap li { break-inside: avoid; }
@media (min-width: 1100px) { .page.wide .wiz-steplabel, .page.wide .wiz-progress { max-width: 980px; } }

/* Back-office : la zone de contenu occupe toute la largeur disponible (une colonne flex réduirait sinon le contenu à sa largeur propre) */
.main > .page { width: 100%; align-self: stretch; }
.page.wide { max-width: min(1600px, 100%); padding-left: clamp(16px, 2.2vw, 40px); padding-right: clamp(16px, 2.2vw, 40px); }
.page.wide .card.form-wide { max-width: 1100px; }
.page.wide .wiz-progress, .page.wide .wiz-steplabel { max-width: 1100px; }

/* Fiche commande (back-office) : en-tête en deux encarts, onglets, fenêtres en surimpression, colis */
.ord-head { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 20px; margin: 4px 0 22px; }
.ord-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px 26px; box-shadow: var(--shadow); }
.ord-card h1 { font-size: 2rem; margin: 2px 0 8px; } .ord-card h2 { margin: 2px 0 8px; font-size: 1.35rem; } .ord-card h3 { font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin: 0 0 4px; display: flex; align-items: center; }
.ord-kicker { display: flex; align-items: center; color: var(--muted); font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; margin: 0; }
.ord-status { margin: 0 0 10px; } .badge.big { font-size: .9rem; padding: 4px 14px; }
.ord-price { font-size: 2.4rem; font-weight: 700; letter-spacing: -.02em; margin: 0 0 14px; line-height: 1.1; } .ord-price small { font-size: 1rem; font-weight: 500; color: var(--muted); }
.ord-meta { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 14px 24px; margin: 0; padding-top: 14px; border-top: 1px solid var(--line); }
.ord-meta dt { display: flex; align-items: center; color: var(--muted); font-size: .8rem; font-weight: 600; } .ord-meta dd { margin: 2px 0 0; }
.ord-card.client { background: linear-gradient(160deg, color-mix(in srgb, var(--brand) 7%, var(--surface)), var(--surface) 55%); }
.ord-block { margin-top: 14px; } .ord-block p { margin: 0; }
.tabs { display: flex; flex-wrap: wrap; gap: 4px; border-bottom: 1px solid var(--line); margin: 0 0 20px; }
.tabs a { display: inline-flex; align-items: center; gap: .1em; text-decoration: none; padding: 10px 16px; border-radius: var(--radius-s) var(--radius-s) 0 0; color: var(--muted); font-weight: 600; border-bottom: 3px solid transparent; margin-bottom: -1px; }
.tabs a:hover { color: var(--ink); background: var(--surface-2); } .tabs a[aria-current=page] { color: var(--brand); border-bottom-color: var(--brand); background: var(--surface); }
.tabs .count { margin-left: .5em; background: var(--brand); color: var(--brand-ink); border-radius: 99px; font-size: .72rem; padding: 0 7px; min-width: 20px; text-align: center; }
.tabs .i { margin-right: .4em; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; } .card-head h2 { margin: 0; }
.btn.disabled { opacity: .45; cursor: not-allowed; pointer-events: none; }
table.list tfoot td { font-weight: 700; border-top: 2px solid var(--line); } tr.work td { vertical-align: top; }
.ord-total dl { display: grid; gap: 6px; max-width: 360px; margin: 0 0 0 auto; } .ord-total dl > div { display: flex; justify-content: space-between; gap: 20px; } .ord-total dt { color: var(--muted); } .ord-total dd { margin: 0; font-variant-numeric: tabular-nums; }
.ord-total .grand { border-top: 2px solid var(--ink); padding-top: 8px; font-size: 1.25rem; font-weight: 700; } .ord-total .grand dt { color: var(--ink); }
.lic-list { list-style: none; margin: 8px 0 2px; padding: 0 0 0 14px; border-left: 3px solid color-mix(in srgb, var(--brand) 35%, var(--line)); display: grid; gap: 6px; font-size: .9rem; } .proj { font-weight: 600; } .lic { white-space: nowrap; }
.qbar { width: 130px; height: 8px; vertical-align: middle; } .qbar .l { fill: color-mix(in srgb, var(--muted) 28%, var(--surface)); } .qbar .p { fill: color-mix(in srgb, var(--brand) 55%, var(--surface)); } .qbar .s { fill: var(--ok); }
.legend .k { display: inline-block; width: 12px; height: 12px; border-radius: 3px; margin: 0 4px 0 12px; vertical-align: -2px; } .legend .k:first-child { margin-left: 0; } .legend .s { background: var(--ok); } .legend .p { background: color-mix(in srgb, var(--brand) 55%, var(--surface)); } .legend .l { background: color-mix(in srgb, var(--muted) 28%, var(--surface)); }
.badge.info { color: var(--brand); border-color: color-mix(in srgb, var(--brand) 45%, var(--line)); background: color-mix(in srgb, var(--brand) 9%, var(--surface)); }
.parcel-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 16px 24px; } .parcel-grid h3 { font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin: 0 0 4px; } .parcel-grid ul { margin: 0; padding-left: 18px; } .parcel-grid p { margin: 0; }
.parcel-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); } .parcel-actions form.inline { display: inline-flex; }
.status-form { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; margin-top: 12px; } .status-form label { margin: 0; } .status-form select { width: auto; } .status-form .warn { flex-basis: 100%; color: var(--danger); font-size: .88rem; }
.opts { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 10px; } .opt { display: flex; gap: 10px; align-items: flex-start; border: 1px solid var(--line); border-radius: var(--radius-s); padding: 12px 14px; cursor: pointer; font-weight: 400; margin: 0; }
.opt input { width: auto; margin-top: 4px; accent-color: var(--brand); } .opt strong { display: block; } .opt small { color: var(--muted); } .opt:has(input:checked) { border-color: var(--brand); box-shadow: inset 0 0 0 1px var(--brand); background: color-mix(in srgb, var(--brand) 6%, var(--surface)); } .opt.off { opacity: .55; cursor: not-allowed; }
.modal { position: fixed; inset: 0; z-index: 60; display: none; align-items: flex-start; justify-content: center; padding: 4vh 14px; overflow-y: auto; } .modal:target, .modal.open { display: flex; }
.modal-bg { position: fixed; inset: 0; background: color-mix(in srgb, #08080c 55%, transparent); backdrop-filter: blur(2px); }
.modal-box { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-up); width: min(720px, 100%); padding: 22px 26px 26px; } .modal-box.wide { width: min(900px, 100%); }
.modal-box header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; } .modal-box header h2 { margin: 0; } .modal-x { display: inline-flex; padding: 6px; border-radius: 8px; color: var(--muted); } .modal-x:hover { background: var(--surface-2); color: var(--ink); }
.modal-actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: flex-end; margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); }
body:has(.modal:target), body:has(.modal.open) { overflow: hidden; }
/* Bon de livraison imprimable */
.bl-page { background: #fff; color: #111; } .bl { max-width: 820px; margin: 0 auto; padding: 28px 20px 60px; } .bl-head { display: flex; justify-content: space-between; gap: 24px; border-bottom: 3px solid #111; padding-bottom: 14px; margin-bottom: 20px; } .bl-head h1 { font-size: 1.8rem; margin: 0; } .bl-logo { display: block; height: 46px; width: auto; margin-bottom: 10px; } .bl-no { font-size: 1.1rem; font-weight: 700; margin: 4px 0 0; } .bl-seller { text-align: right; font-size: .92rem; }
.bl-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-bottom: 22px; } .bl-grid h2 { font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; color: #555; margin: 0 0 4px; display: block; } .bl-grid p { margin: 0; }
.bl-sign { display: grid; grid-template-columns: 1.4fr 1fr 1.6fr; gap: 20px; margin-top: 40px; } .bl-sign > div { border: 1px solid #999; border-radius: 6px; min-height: 110px; padding: 8px 12px; } .bl-sign p { margin: 0; color: #555; font-size: .85rem; }
@media print { .no-print, .side, .bar { display: none !important; } .bl { padding: 0; } }
@media (max-width: 900px) { .ord-head { grid-template-columns: 1fr; } .bl-grid, .bl-sign { grid-template-columns: 1fr; } .ord-total dl { margin: 0; max-width: none; } }

/* Assistants de la boutique : boîte plus large, centrée sous la ligne de progression, titre d'étape centré, bouton unique centré */
.wiz-slide.narrow { max-width: 860px; margin-left: auto; margin-right: auto; padding: 32px 36px; }
.page:not(.wide) .wiz-steplabel { text-align: center; }
.wiz-slide.narrow .choice { gap: 18px; } .wiz-slide.narrow .choice label { padding: 24px 22px; font-size: 1.05rem; } .wiz-slide.narrow .choice small { display: inline-block; margin-top: 6px; font-size: .9rem; line-height: 1.5; }
.wiz-actions:has(> span:empty) { justify-content: center; } .wiz-actions > span:empty { display: none; }
.wiz-actions:has(> span:empty) .btn { min-width: 220px; }
@media (max-width: 600px) { .wiz-slide.narrow { padding: 20px 16px; } .wiz-actions:has(> span:empty) .btn { min-width: 0; } }

/* Assistants de la boutique : formulaire plus large (champs en deux colonnes) donc moins haut */
.wiz-slide.narrow { max-width: 860px; }
.wiz-slide.narrow form { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 0 28px; align-items: start; }
.wiz-slide.narrow form > .choice, .wiz-slide.narrow form > .wiz-actions, .wiz-slide.narrow form > fieldset, .wiz-slide.narrow form > .field.full, .wiz-slide.narrow form > p, .wiz-slide.narrow form > .check-set, .wiz-slide.narrow form > .wiz-recap, .wiz-slide.narrow form > .notice, .wiz-slide.narrow form > .error { grid-column: 1 / -1; }

/* Fiche client (back-office) : identité + chiffres clés, onglets, cartes */
.cl-head { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 20px; margin: 4px 0 22px; align-items: stretch; }
.ord-card.cl-id { display: flex; gap: 22px; align-items: flex-start; background: linear-gradient(160deg, color-mix(in srgb, var(--brand) 9%, var(--surface)), var(--surface) 60%); }
.avatar { flex: none; width: 72px; height: 72px; border-radius: 50%; display: grid; place-items: center; font-size: 1.6rem; font-weight: 700; letter-spacing: .02em; color: var(--brand-ink); background: linear-gradient(135deg, var(--brand), var(--brand-2)); box-shadow: var(--shadow); }
.cl-id-main { min-width: 0; } .cl-id-main h1 { font-size: 1.8rem; margin: 2px 0 6px; overflow-wrap: anywhere; } .cl-id-main p { margin: 0 0 6px; }
.cl-badges { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; }
.cl-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); } .cl-actions form.inline { display: inline-flex; }
.kpis { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.kpi { display: flex; flex-direction: column; justify-content: center; gap: 2px; position: relative; padding: 16px 18px 16px 62px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); text-decoration: none; color: inherit; transition: border-color .15s, transform .15s; }
.kpi:hover { border-color: var(--brand); transform: translateY(-2px); color: inherit; }
.kpi-i { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; color: var(--brand); background: color-mix(in srgb, var(--brand) 12%, var(--surface)); }
.kpi-i .i { margin: 0; } .kpi-v { font-size: 1.35rem; font-weight: 700; letter-spacing: -.01em; line-height: 1.15; } .kpi-l { color: var(--muted); font-size: .8rem; font-weight: 600; }
.cl-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 20px; margin-bottom: 20px; } .cl-grid .card { margin: 0; } .cl-grid h2 { font-size: 1.05rem; }
.strong { font-weight: 700; font-size: 1.05rem; }
.facts { list-style: none; margin: 0 0 12px; padding: 0; display: grid; gap: 10px; } .facts li { display: flex; align-items: flex-start; gap: .1em; } .facts .i { color: var(--muted); margin-right: .6em; flex: none; margin-top: 3px; } .facts strong { margin-left: .35em; }
.addr-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; } .addr-card { border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; background: var(--surface-2); } .addr-card p { margin: 0 0 8px; }
.addr-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; } .addr-actions form.inline { display: inline-flex; }
.chip { display: inline-block; font-size: .75rem; border: 1px solid var(--line); border-radius: 6px; padding: 1px 7px; margin: 0 4px 4px 0; background: var(--surface-2); color: var(--muted); }
.danger-zone { border-color: color-mix(in srgb, var(--danger) 35%, var(--line)); } .danger-zone h2 { color: var(--danger); }
.btn.danger-text { color: var(--danger); border-color: color-mix(in srgb, var(--danger) 45%, var(--line)); } .btn.danger-text:hover { background: color-mix(in srgb, var(--danger) 8%, var(--surface)); color: var(--danger); border-color: var(--danger); }
table.list td .i { color: var(--muted); margin-right: .45em; vertical-align: -3px; }
@media (max-width: 1000px) { .cl-head { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .ord-card.cl-id { flex-direction: column; } .kpis { grid-template-columns: 1fr 1fr; } .kpi { padding: 14px 12px 14px 56px; } }
@media (max-width: 560px) { .cl-actions form.inline, .parcel-actions form.inline, .addr-actions form.inline { width: 100%; } }

/* Gestion du stock par n° de série */
.serial-pick { display: flex; flex-wrap: wrap; gap: 6px 16px; } .serial-pick .check { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .88rem; }
.serial-return { margin-top: 6px; } .serial-return summary { font-size: .85rem; color: var(--muted); } .serial-return .check { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .85rem; margin: 3px 0; }
.kpis.row3 { grid-template-columns: repeat(3, 1fr); } .kpi.static:hover { border-color: var(--line); transform: none; }
code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .9em; background: var(--surface-2); border: 1px solid var(--line); border-radius: 5px; padding: 1px 6px; }
.opt strong .i { color: var(--brand); }
@media (max-width: 700px) { .kpis.row3 { grid-template-columns: 1fr; } }
.cl-head.serial { grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); } .kpis.row3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } .kpis.row3 .kpi { min-width: 0; padding: 14px 10px 14px 54px; } .kpis.row3 .kpi-i { left: 10px; } @media (max-width: 1000px) { .cl-head.serial { grid-template-columns: 1fr; } }

.cart-issue td { background: color-mix(in srgb, var(--danger) 6%, var(--surface)); } .cart-issue td .i { margin-right: .35em; }

/* ══════════ Vitrine : la boutique comme rubrique du site du label (front uniquement, body.vitrine) ══════════
   Apparence d'origine de la vitrine (assets/style.css du Manager). Un thème poussé par le Manager (/vitrine/theme.css, chargé après
   cette feuille) redéfinit ces variables sur body.theme-<id> : les jetons de la boutique ci-dessous en découlent. */
body.vitrine {
  --noir: oklch(0.14 0 0); --surface: oklch(0.21 0 0); --surface-haute: oklch(0.27 0 0); --trait: oklch(0.34 0 0);
  --craie: oklch(0.97 0 0); --cendre: oklch(0.72 0 0); --sourdine: oklch(0.58 0 0); --signal: oklch(0.82 0.19 96); --signal-sombre: oklch(0.62 0.15 96);
  --font-sans: "Nunito", ui-rounded, "SF Pro Rounded", system-ui, -apple-system, "Segoe UI", sans-serif;
  background: var(--noir); color: var(--craie); font-family: var(--font-sans);
}
body.vitrine {
  --bg: var(--noir); --surface-2: var(--surface-haute); --ink: var(--craie); --muted: var(--sourdine); --line: var(--trait);
  --brand: var(--signal); --brand-2: var(--signal-sombre, var(--signal)); --brand-ink: var(--noir); --accent: var(--brand); --accent-ink: var(--brand-ink);
  --ok: color-mix(in srgb, #2fbf71 72%, var(--craie)); --danger: color-mix(in srgb, #e5484d 78%, var(--craie)); --warn: color-mix(in srgb, #e59a0b 80%, var(--craie));
  --shadow: 0 1px 2px rgba(0, 0, 0, .18), 0 10px 26px rgba(0, 0, 0, .16); --shadow-up: 0 2px 4px rgba(0, 0, 0, .22), 0 18px 40px rgba(0, 0, 0, .26);
}
body.vitrine.scheme-dark { color-scheme: dark; } body.vitrine.scheme-light { color-scheme: light; }
.hint .i { margin-right: .35em; }
body.vitrine .page { max-width: 1180px; } body.vitrine .page.wide { max-width: 1280px; }
body.vitrine .page-publique { min-height: 100vh; display: flex; flex-direction: column; } body.vitrine main.page { flex: 1; width: 100%; }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 100; } .skip:focus { left: 16px; background: var(--signal); color: var(--noir); padding: 8px 14px; border-radius: 8px; font-weight: 700; }

/* En-tête : celui de la vitrine (marque + navigation du label), puis la barre de la boutique */
.site-head { position: sticky; top: 0; z-index: 30; display: block; padding: 0; background: color-mix(in srgb, var(--noir) 86%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--trait); }
.site-head-top { display: flex; align-items: center; justify-content: space-between; gap: .75rem 1.5rem; flex-wrap: wrap; padding: .9rem 2rem .5rem; max-width: 100rem; margin: 0 auto; }
.marque { display: inline-flex; align-items: center; gap: 10px; color: var(--craie); text-decoration: none; font-weight: 800; font-size: 1.08rem; letter-spacing: -.01em; }
.marque .logo-marque { height: 42px; } .marque:hover { opacity: .85; } .site-foot .marque .logo-marque { height: 36px; }
.site-head .nav-publique { display: flex; align-items: center; gap: .5rem 1.4rem; flex-wrap: wrap; }
.site-head .nav-publique a { font-size: .75rem; text-transform: uppercase; letter-spacing: .12em; color: var(--cendre); text-decoration: none; }
.site-head .nav-publique a:hover { color: var(--signal); }
body.vitrine .site-head .nav-publique a.lien-boutique { color: var(--signal); font-weight: 800; border-bottom: 2px solid var(--signal); padding-bottom: 2px; }
.menu-toggle { display: none; }
.shopbar { display: flex; align-items: center; gap: 8px 16px; flex-wrap: wrap; padding: .35rem 2rem .7rem; max-width: 100rem; margin: 0 auto; }
.shop-nav, .shop-user { display: flex; align-items: center; gap: 2px; flex-wrap: wrap; }
.shop-nav a, .shop-user > a { display: inline-flex; align-items: center; padding: 7px 13px; border-radius: 999px; color: var(--craie); text-decoration: none; font-weight: 700; font-size: .92rem; transition: background .15s, color .15s; }
.shop-nav a .i, .shop-user > a .i { margin-right: .45em; }
.shop-nav a:hover, .shop-user > a:hover { background: var(--surface); color: var(--signal); }
.shop-nav a[aria-current=page], .shop-user > a[aria-current=page] { background: var(--signal); color: var(--noir); }
.shop-search { flex: 1 1 220px; max-width: 440px; margin-left: auto; position: relative; display: flex; }
.shop-search input { border-radius: 999px; padding: 8px 42px 8px 16px; background: var(--surface); border-color: var(--trait); color: var(--craie); }
.shop-search button { position: absolute; right: 4px; top: 50%; transform: translateY(-50%); border: 0; background: transparent; color: var(--cendre); padding: 6px 9px; cursor: pointer; border-radius: 999px; }
.shop-search button:hover { color: var(--signal); } .shop-search button .i { margin: 0; }
.shop-user .badge { background: var(--signal); color: var(--noir); border: 0; margin-left: 6px; min-width: 20px; justify-content: center; font-weight: 800; }
.shop-user > a[aria-current=page] .badge { background: var(--noir); color: var(--signal); }
.shop-user form { margin: 0 0 0 2px; } .btn.icon-only { padding: 6px 9px; } .btn.icon-only .i { margin: 0; }
.chip-praw { display: inline-flex; align-items: center; margin-left: 6px; padding: 1px 8px; border-radius: 99px; font-size: .68rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; background: var(--signal); color: var(--noir); vertical-align: 1px; }
.hint .chip-praw { margin: 0 4px 0 0; }
@media (max-width: 860px) {
  .menu-toggle { display: inline-flex; align-items: center; gap: 6px; background: transparent; border: 1px solid var(--trait); color: var(--craie); border-radius: 999px; padding: 6px 12px; font: inherit; font-size: .85rem; font-weight: 700; cursor: pointer; }
  .menu-toggle .i { margin: 0; }
  .site-head .nav-publique { display: none; width: 100%; padding: 4px 0 6px; }
  .site-head.menu-open .nav-publique, .site-head:not(.js) .nav-publique:target { display: flex; }
  .site-head-top, .shopbar { padding-left: 16px; padding-right: 16px; }
  .shop-search { order: 3; flex-basis: 100%; max-width: none; margin-left: 0; }
  .shop-user { margin-left: auto; } .shop-user > a span:not(.badge):not(.chip-praw) { display: none; }
}

/* Pied de page : celui de la vitrine, avec les rubriques de la boutique */
.site-foot { margin-top: 48px; border-top: 1px solid var(--trait); color: var(--sourdine); font-size: .88rem; text-align: left; padding: 0; }
.site-foot .inner { max-width: 1180px; margin: 0 auto; padding: 32px 16px 18px; display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 24px; }
.site-foot h3 { color: var(--craie); font-size: .75rem; text-transform: uppercase; letter-spacing: .12em; margin: 4px 0 10px; }
.site-foot a { display: block; color: var(--cendre); padding: 2px 0; text-decoration: none; } .site-foot a:hover { color: var(--signal); }
.site-foot .marque { display: inline-flex; margin-bottom: 8px; color: var(--craie); } .site-foot p { margin: 0; max-width: 34ch; }
.site-foot .copy { max-width: 1180px; margin: 0 auto; padding: 14px 16px 28px; font-size: .8rem; border-top: 1px solid var(--trait); max-width: 1180px; }
@media (max-width: 800px) { .site-foot .inner { grid-template-columns: 1fr 1fr; } .site-foot .inner > div:first-child { grid-column: 1 / -1; } }

/* Composants de la boutique dans les couleurs de la vitrine */
body.vitrine .hero { color: var(--craie); border: 1px solid var(--trait); background: radial-gradient(900px 420px at 88% -25%, color-mix(in srgb, var(--signal) 34%, transparent), transparent 62%), radial-gradient(700px 380px at -5% 125%, color-mix(in srgb, var(--signal-sombre, var(--signal)) 26%, transparent), transparent 60%), var(--surface); }
body.vitrine .hero h1 { color: var(--craie); } body.vitrine .hero p { color: var(--cendre); } body.vitrine .hero .disc { color: var(--signal); opacity: .14; }
body.vitrine .hero .btn { background: var(--signal); color: var(--noir); border-color: var(--signal); } body.vitrine .hero .btn.ghost { background: transparent; color: var(--craie); border-color: var(--trait); }
body.vitrine .btn { background: var(--signal); border-color: var(--signal); color: var(--noir); border-radius: 999px; }
body.vitrine .btn:hover { color: var(--noir); box-shadow: 0 6px 18px color-mix(in srgb, var(--signal) 30%, transparent); }
body.vitrine .btn.ghost { background: transparent; color: var(--craie); border-color: var(--trait); } body.vitrine .btn.ghost:hover { color: var(--signal); border-color: var(--signal); }
body.vitrine .btn.danger { background: var(--danger); border-color: var(--danger); color: #fff; }
body.vitrine a { text-decoration-color: color-mix(in srgb, var(--craie) 35%, transparent); } body.vitrine a:hover { color: var(--signal); text-decoration-color: var(--signal); }
body.vitrine .notice { background: color-mix(in srgb, var(--ok) 12%, var(--surface)); }
body.vitrine .badge.ok { background: color-mix(in srgb, var(--ok) 14%, var(--surface)); }
body.vitrine .cover:not(:has(img)) { filter: saturate(.85); }
.badge.warn { color: var(--warn, #b45309); border-color: color-mix(in srgb, var(--warn, #b45309) 45%, var(--line)); background: color-mix(in srgb, var(--warn, #b45309) 10%, var(--surface)); }
.crumb { margin: 0 0 6px; font-size: .9rem; } .crumb a { text-decoration: none; color: var(--muted); display: inline-flex; align-items: center; } .crumb a:hover { color: var(--brand); }
.section-head .badge { align-self: center; }
.toolbar { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; margin: 0 0 14px; } .toolbar .pills { margin: 0; }
.inline-filter { display: flex; gap: 6px; margin: 0; align-items: center; } .inline-filter select { width: auto; min-width: 200px; }
.card.flush { padding: 0; overflow-x: auto; } .card.flush .list { margin: 0; border: 0; box-shadow: none; border-radius: 0; }
.row-actions { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; } .row-actions form { margin: 0; }
.tile-n.small { font-size: 1.35rem; padding-top: 8px; }
.kv { display: grid; grid-template-columns: 210px 1fr; gap: 10px 18px; margin: 0; } .kv dt { color: var(--muted); font-weight: 600; font-size: .88rem; } .kv dd { margin: 0; }
@media (max-width: 600px) { .kv { grid-template-columns: 1fr; gap: 2px; } .kv dd { margin-bottom: 10px; } }
.js-hidden { display: none !important; }

/* Espace client : menu latéral (barre défilante sur mobile) */
.acct { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 28px; align-items: start; }
.acct-side { position: sticky; top: 130px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; box-shadow: var(--shadow); }
.acct-who { display: flex; gap: 12px; align-items: center; padding: 4px 4px 14px; border-bottom: 1px solid var(--line); margin-bottom: 10px; }
.acct-who .avatar { width: 44px; height: 44px; font-size: 1rem; } .acct-who strong { display: block; line-height: 1.25; word-break: break-word; } .acct-who .hint { font-size: .76rem; margin: 3px 0 0; display: block; }
.acct-nav { display: flex; flex-direction: column; gap: 2px; }
.acct-nav a { display: flex; align-items: center; padding: 9px 12px; border-radius: var(--radius-s); color: var(--ink); text-decoration: none; font-weight: 600; font-size: .93rem; }
.acct-nav a .i { margin-right: .65em; color: var(--muted); }
.acct-nav a:hover { background: var(--surface-2); color: var(--brand); } .acct-nav a:hover .i { color: var(--brand); }
.acct-nav a[aria-current=page] { background: color-mix(in srgb, var(--brand) 15%, var(--surface)); box-shadow: inset 3px 0 0 var(--brand); } .acct-nav a[aria-current=page] .i { color: var(--brand); }
.acct-main > h1:first-child, .acct-main > .section-head:first-child, .acct-main > .crumb + .section-head { margin-top: 0; }
@media (max-width: 900px) {
  .acct { grid-template-columns: 1fr; gap: 14px; } .acct-side { position: static; padding: 6px; } .acct-who { display: none; }
  .acct-nav { flex-direction: row; overflow-x: auto; scrollbar-width: thin; } .acct-nav a { white-space: nowrap; } .acct-nav a[aria-current=page] { box-shadow: inset 0 -3px 0 var(--brand); }
}
.todo { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.todo li { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--radius-s); background: var(--surface-2); }
.todo li > span { flex: 1; } .todo li > .i { color: var(--brand); margin: 0; }

/* Commandes : liste avec avancement, suivi en étapes */
.ord-rows { display: flex; flex-direction: column; gap: 10px; margin: 0 0 20px; }
.ord-row { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 18px; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 18px; box-shadow: var(--shadow); transition: border-color .15s; }
.ord-row:hover { border-color: var(--brand); }
.ord-num { font-weight: 800; text-decoration: none; margin-right: 10px; white-space: nowrap; } .ord-items { margin: 4px 0 0; color: var(--muted); font-size: .9rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ord-side { display: flex; align-items: center; gap: 12px; } .ord-side strong { min-width: 6.5em; text-align: right; font-variant-numeric: tabular-nums; }
.track-mini { list-style: none; display: flex; gap: 5px; margin: 0; padding: 0; }
.track-mini li { width: 20px; height: 6px; border-radius: 99px; background: var(--line); } .track-mini li.done { background: var(--ok); } .track-mini li.current { background: var(--brand); }
@media (max-width: 720px) { .ord-row { grid-template-columns: 1fr; gap: 10px; } .ord-side { justify-content: space-between; flex-wrap: wrap; } .ord-items { white-space: normal; } }
.track { list-style: none; display: flex; margin: 8px 0 24px; padding: 20px 12px 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.track li { flex: 1; position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 4px; font-size: .86rem; color: var(--muted); }
.track li::before { content: ''; position: absolute; top: 19px; left: calc(-50% + 24px); right: calc(50% + 24px); height: 3px; background: var(--line); border-radius: 3px; }
.track li:first-child::before { display: none; } .track li.done::before, .track li.current::before { background: var(--ok); }
.track .dot { width: 40px; height: 40px; border-radius: 50%; display: flex; align-items: center; justify-content: center; border: 2px solid var(--line); background: var(--surface-2); color: var(--muted); }
.track .dot .i { margin: 0; }
.track li.done .dot { background: var(--ok); border-color: var(--ok); color: var(--surface); }
.track li.current .dot { border-color: var(--brand); color: var(--brand); box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand) 22%, transparent); }
.track li.done .lbl, .track li.current .lbl { color: var(--ink); font-weight: 700; } .track li.off { opacity: .45; } .track .hint { margin: 0; font-size: .78rem; }
@media (max-width: 640px) { .track { flex-direction: column; align-items: stretch; gap: 10px; padding: 14px; } .track li { flex-direction: row; text-align: left; gap: 10px; } .track li::before { display: none; } .track .dot { width: 32px; height: 32px; } }
.ord-detail { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 22px; align-items: start; } .ord-detail:not(:has(> aside)) { grid-template-columns: minmax(0, 1fr); } .ord-detail .docs h2 { margin-top: 0; font-size: 1rem; }
.ord-detail .list td .btn { margin-left: 6px; }
@media (max-width: 960px) { .ord-detail { grid-template-columns: 1fr; } }

/* Téléchargements : une carte par œuvre, bouton direct vers le fichier principal */
.dl-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 14px; margin: 0 0 16px; }
.dl-card { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 14px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px; box-shadow: var(--shadow); }
.dl-card .cover { border-radius: 10px; } .dl-card h2 { margin: 0; font-size: 1.02rem; display: block; } .dl-card h2 a { text-decoration: none; } .dl-card .artist-line { color: var(--muted); font-size: .88rem; margin: 2px 0 8px; }
.dl-actions { display: flex; flex-wrap: wrap; gap: 6px; } .dl-card .hint { margin: 8px 0 0; font-size: .8rem; }
@media (max-width: 420px) { .dl-grid { grid-template-columns: 1fr; } .dl-card { grid-template-columns: 72px minmax(0, 1fr); } }

/* Projets Praw : cartes, barre d'onglets, expiration */
.proj-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; }
.proj-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 8px; transition: border-color .15s; }
.proj-card:hover { border-color: var(--brand); } .proj-card.ended { opacity: .75; }
.proj-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; } .proj-top h2 { margin: 0; font-size: 1.08rem; display: block; } .proj-top h2 a { text-decoration: none; }
.proj-card > .hint { margin: 0; }
.proj-stats { list-style: none; display: flex; flex-wrap: wrap; gap: 4px 14px; margin: 2px 0; padding: 0; font-size: .88rem; color: var(--muted); } .proj-stats strong { color: var(--ink); } .proj-stats .i { margin-right: .3em; }
.proj-actions { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; padding-top: 6px; }
.proj-bar { display: flex; justify-content: space-between; align-items: flex-end; gap: 10px; flex-wrap: wrap; border-bottom: 1px solid var(--line); margin: 0 0 20px; padding-bottom: 6px; }
.proj-bar .tabs { margin: 0 0 -7px; border: 0; } .proj-bar .tabs .badge { margin-left: 6px; }
.proj-info { margin-top: 4px; }
.choice-3 { grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); } .choice label .i { color: var(--brand); margin-right: .35em; }
.wiz-slide fieldset .check-set { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 4px 20px; }
fieldset.field { border: 0; padding: 0; margin: 0 0 var(--gap); } fieldset.field legend { font-weight: 600; font-size: .9rem; margin: 0 0 8px; padding: 0; }
.item-end { border: 1px dashed var(--line); border-radius: var(--radius-s); padding: 10px 14px; margin: 0 0 12px; }
.item-end legend { font-weight: 700; font-size: .9rem; padding: 0 6px; display: inline-flex; align-items: center; } .item-end legend .i { margin-right: .4em; color: var(--brand); }
.item-end .check { display: inline-flex; margin-right: 14px; } .item-end input[type=date] { width: auto; display: inline-block; } .item-end .hint { margin-top: 8px; }
.lic-proj .section-head { margin-top: 0; } .lic-proj .section-head h2 { margin: 0; }
.pills.jump { margin-top: 6px; }
/* Catalogue d'un projet : recherche, carte repliée par œuvre, tuiles de catégories (boutons radio : CSS seul) */
.cat-search { display: flex; gap: 8px; margin: 0 0 8px; max-width: 640px; } .cat-search input { flex: 1; }
#cat-works { display: flex; flex-direction: column; gap: 12px; margin-top: 14px; }
.work-card { padding: 14px 18px; margin: 0; scroll-margin-top: 150px; }
.work-card-head { display: grid; grid-template-columns: 72px minmax(0, 1fr) auto; gap: 16px; align-items: center; }
.work-card-head .cover { border-radius: 10px; } .work-card-id h2 { margin: 0; font-size: 1.1rem; display: block; } .work-card-id .artist-line { margin: 2px 0 0; color: var(--muted); font-size: .9rem; }
.work-card-act .btn { white-space: nowrap; } .hint-in { font-weight: 500; opacity: .75; font-size: .82em; margin-left: .35em; }
.work-more { margin-top: 10px; border-top: 1px solid var(--line); }
.work-more > summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 10px; padding: 10px 0 0; font-weight: 700; color: var(--brand); }
.work-more > summary::-webkit-details-marker { display: none; }
.work-more > summary .i { transition: transform .2s; margin-right: .4em; } .work-more[open] > summary .i { transform: rotate(90deg); }
.work-more > summary .hint { margin: 0; font-weight: 500; } .work-more .when-open { display: none; } .work-more[open] .when-open { display: inline-flex; align-items: center; } .work-more[open] .when-closed { display: none; }
.work-more .when-closed { display: inline-flex; align-items: center; }
.cats { margin-top: 14px; position: relative; } .cat-radio { position: absolute; left: 0; top: 0; width: 1px; height: 1px; margin: 0; padding: 0; opacity: 0; pointer-events: none; overflow: hidden; }
.cat-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.cat-tile { display: flex; flex-direction: column; gap: 2px; padding: 14px; border: 1px solid var(--line); border-radius: var(--radius-s); background: var(--surface-2); cursor: pointer; font-weight: 400; margin: 0; transition: border-color .15s, background .15s, transform .15s; }
.cat-tile:hover { border-color: var(--brand); transform: translateY(-1px); } .cat-tile .i { width: 22px; height: 22px; color: var(--brand); margin: 0 0 6px; }
.cat-tile strong { font-size: .95rem; } .cat-n { color: var(--muted); font-size: .82rem; }
.cat-panels { margin-top: 14px; } .cat-panel { display: none; } .cat-panel h3 { margin: 0 0 10px; font-size: 1rem; } .cat-panel .player { margin: 0 0 10px; } .cat-panel .player .hint { display: block; margin: 0 0 4px; }
.cat-panel audio { width: 100%; max-width: 520px; } .cat-panel .list { margin-bottom: 4px; }
.cat-radio:nth-of-type(1):checked ~ .cat-tiles .cat-tile:nth-child(1), .cat-radio:nth-of-type(2):checked ~ .cat-tiles .cat-tile:nth-child(2), .cat-radio:nth-of-type(3):checked ~ .cat-tiles .cat-tile:nth-child(3),
.cat-radio:nth-of-type(4):checked ~ .cat-tiles .cat-tile:nth-child(4), .cat-radio:nth-of-type(5):checked ~ .cat-tiles .cat-tile:nth-child(5), .cat-radio:nth-of-type(6):checked ~ .cat-tiles .cat-tile:nth-child(6),
.cat-radio:nth-of-type(7):checked ~ .cat-tiles .cat-tile:nth-child(7), .cat-radio:nth-of-type(8):checked ~ .cat-tiles .cat-tile:nth-child(8) { border-color: var(--brand); background: color-mix(in srgb, var(--brand) 14%, var(--surface)); box-shadow: inset 0 0 0 1px var(--brand); }
.cat-radio:nth-of-type(1):checked ~ .cat-panels .cat-panel:nth-child(1), .cat-radio:nth-of-type(2):checked ~ .cat-panels .cat-panel:nth-child(2), .cat-radio:nth-of-type(3):checked ~ .cat-panels .cat-panel:nth-child(3),
.cat-radio:nth-of-type(4):checked ~ .cat-panels .cat-panel:nth-child(4), .cat-radio:nth-of-type(5):checked ~ .cat-panels .cat-panel:nth-child(5), .cat-radio:nth-of-type(6):checked ~ .cat-panels .cat-panel:nth-child(6),
.cat-radio:nth-of-type(7):checked ~ .cat-panels .cat-panel:nth-child(7), .cat-radio:nth-of-type(8):checked ~ .cat-panels .cat-panel:nth-child(8) { display: block; }
.cat-radio:nth-of-type(1):focus-visible ~ .cat-tiles .cat-tile:nth-child(1), .cat-radio:nth-of-type(2):focus-visible ~ .cat-tiles .cat-tile:nth-child(2), .cat-radio:nth-of-type(3):focus-visible ~ .cat-tiles .cat-tile:nth-child(3),
.cat-radio:nth-of-type(4):focus-visible ~ .cat-tiles .cat-tile:nth-child(4), .cat-radio:nth-of-type(5):focus-visible ~ .cat-tiles .cat-tile:nth-child(5), .cat-radio:nth-of-type(6):focus-visible ~ .cat-tiles .cat-tile:nth-child(6),
.cat-radio:nth-of-type(7):focus-visible ~ .cat-tiles .cat-tile:nth-child(7), .cat-radio:nth-of-type(8):focus-visible ~ .cat-tiles .cat-tile:nth-child(8) { outline: 2px solid var(--brand); outline-offset: 2px; }
@media (max-width: 640px) { .work-card-head { grid-template-columns: 56px minmax(0, 1fr); } .work-card-act { grid-column: 1 / -1; } .work-card-act .btn { width: 100%; } .cat-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } .cat-search { flex-wrap: wrap; } }

/* Ajout au panier : on reste sur la page, un message flottant confirme et mène au panier */
.notice.toast { position: fixed; z-index: 60; left: 50%; bottom: 24px; transform: translateX(-50%); width: max-content; max-width: calc(100vw - 32px); margin: 0; align-items: center; gap: 12px;
  padding: 10px 10px 10px 16px; border-radius: 999px; background: var(--surface); border-color: var(--ok); box-shadow: var(--shadow-up); animation: toast-in .25s ease-out; }
.notice.toast > .i { color: var(--ok); margin: 0; } .notice.toast .btn { white-space: nowrap; }
.notice.toast.out { opacity: 0; transform: translate(-50%, 12px); transition: opacity .3s, transform .3s; }
@keyframes toast-in { from { opacity: 0; transform: translate(-50%, 12px); } }
.work-tile, .work-row, .product { scroll-margin-top: 150px; }
.lic-table td:first-child, .lic-table td:nth-child(5) { white-space: nowrap; } .lic-table td:nth-child(4) { min-width: 9rem; }
@media (max-width: 860px) {
  .site-head { position: static; }
  .shopbar { gap: 8px; padding-top: .25rem; }
  .shop-nav { flex: 1 1 auto; flex-wrap: nowrap; overflow-x: auto; min-width: 0; scrollbar-width: none; }
  .shop-nav a { padding: 6px 10px; white-space: nowrap; font-size: .88rem; }
  .shop-user { flex-wrap: nowrap; } .shop-user > a { padding: 6px 9px; }
  .shop-user .btn.small:not(.icon-only) { display: none; }
}
.work-card[hidden], #cat-none[hidden] { display: none; }
.install-checks { list-style: none; padding: 0; margin: 0; } .install-checks li { margin: 6px 0; }
.prose { max-width: 72ch; line-height: 1.6; } .prose h2 { margin-top: 1.6em; } .prose ul, .prose ol { padding-left: 1.3em; }
