/* La Vitrine des collectionneurs */
:root {
  --bg: #f3f1ec;
  --surface: #ffffff;
  --surface-2: #e9e5dc;
  --ink: #1b1d2a;
  --muted: #666a79;
  --line: #dad5ca;
  --accent: #b5462b;
  --accent-ink: #ffffff;
  --ok: #1f8a5b;
  --danger: #c0392b;
  --info: #2f6db5;
  --shadow: 0 6px 24px rgba(20, 22, 40, .10);
  --radius: 14px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #101320;
    --surface: #191d2e;
    --surface-2: #23283e;
    --ink: #eceef6;
    --muted: #9ba1b8;
    --line: #2e344c;
    --accent: #ff8a5c;
    --accent-ink: #1c0b03;
    --ok: #4fd39a;
    --danger: #ff7262;
    --info: #7fb2ff;
    --shadow: 0 8px 30px rgba(0, 0, 0, .35);
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 16px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  min-height: 100vh; display: flex; flex-direction: column;
}
main.wrap { flex: 1; padding-top: 28px; padding-bottom: 56px; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }
h1 { font-size: clamp(1.6rem, 3.6vw, 2.4rem); line-height: 1.12; margin: 0 0 .4em; letter-spacing: -.015em; }
h2 { font-size: 1.3rem; margin: 1.8em 0 .7em; }
h3 { font-size: 1.05rem; margin: 0 0 .6em; }
[hidden] { display: none !important; }
.wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 16px; }
.muted { color: var(--muted); }
.small { font-size: .88rem; }
.lead { font-size: 1.08rem; color: var(--muted); max-width: 46em; margin-top: 0; }
.kicker { text-transform: uppercase; letter-spacing: .08em; font-size: .76rem; color: var(--muted); margin: 0 0 .4em; font-weight: 650; }
.kicker a { color: inherit; }
.narrow { max-width: 440px; margin: 0 auto; }
.inline { display: inline; margin: 0; }
.actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 16px; }
.pill { display: inline-block; font-size: .74rem; font-weight: 650; padding: 1px 8px; border-radius: 99px; background: var(--surface-2); color: var(--muted); vertical-align: middle; }

/* En-tête */
.top { background: var(--surface); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20; }
.top-in { display: flex; align-items: center; gap: 16px; min-height: 60px; position: relative; }
.brand { font-weight: 800; color: var(--ink); display: flex; align-items: center; gap: 10px; font-size: 1.08rem; white-space: nowrap; }
.brand:hover { text-decoration: none; }
.logo { width: 22px; height: 30px; border-radius: 4px; background: linear-gradient(135deg, #ffcf4a, #ff5d8f 45%, #6b5bff); transform: rotate(-8deg); box-shadow: 8px 2px 0 -1px var(--surface-2); }
nav#nav { display: flex; gap: 2px; margin-left: auto; flex-wrap: wrap; align-items: center; }
nav#nav a, .linkish { color: var(--ink); padding: 7px 10px; border-radius: 9px; font-size: .95rem; display: inline-flex; align-items: center; gap: 7px; }
nav#nav a:hover, .linkish:hover { background: var(--surface-2); text-decoration: none; }
nav#nav a.on { background: var(--surface-2); font-weight: 650; }
nav#nav a.nav-cta { background: var(--accent); color: var(--accent-ink); font-weight: 650; }
nav#nav a.nav-user { font-weight: 650; }
.linkish { background: none; border: 0; font: inherit; cursor: pointer; color: var(--muted); }
.menu-btn { display: none; margin-left: auto; background: none; border: 1px solid var(--line); color: var(--ink); border-radius: 8px; font-size: 1.2rem; padding: 4px 10px; cursor: pointer; }
@media (max-width: 860px) {
  .menu-btn { display: block; }
  nav#nav { display: none; position: absolute; left: 0; right: 0; top: 60px; background: var(--surface); border-bottom: 1px solid var(--line); flex-direction: column; align-items: stretch; padding: 8px 16px 14px; box-shadow: var(--shadow); }
  .nav-open nav#nav { display: flex; }
}
.foot { border-top: 1px solid var(--line); color: var(--muted); font-size: .85rem; padding: 18px 0; }

/* Boutons et formulaires */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  font: inherit; font-weight: 600; font-size: .95rem; line-height: 1.2;
  padding: 10px 16px; border-radius: 10px; border: 1px solid var(--line);
  background: var(--surface); color: var(--ink); cursor: pointer; text-decoration: none;
}
.btn:hover { text-decoration: none; border-color: var(--muted); }
.btn-primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { filter: brightness(1.07); border-color: var(--accent); }
.btn-danger { color: var(--danger); }
.btn-danger:hover { border-color: var(--danger); }
.btn-ghost { border-color: transparent; background: transparent; }
.btn-sm { padding: 6px 10px; font-size: .85rem; border-radius: 8px; }
.card-box { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.form { display: flex; flex-direction: column; gap: 14px; }
.form label { display: flex; flex-direction: column; gap: 5px; font-weight: 600; font-size: .92rem; }
.form label.check, .check-only { flex-direction: row; align-items: center; gap: 8px; font-weight: 500; }
input, select, textarea {
  font: inherit; font-weight: 400; color: var(--ink); background: var(--bg);
  border: 1px solid var(--line); border-radius: 9px; padding: 9px 11px; width: 100%; min-width: 0;
}
input[type=checkbox], input[type=radio] { width: auto; }
input[type=file] { padding: 7px; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
textarea { resize: vertical; }
fieldset { border: 0; padding: 0; margin: 0; }
legend { font-weight: 600; font-size: .92rem; margin-bottom: 8px; padding: 0; }
.form > .btn { align-self: flex-start; }
.hp { position: absolute !important; left: -9999px; }
.flash { padding: 11px 15px; border-radius: 10px; margin: 0 0 18px; border: 1px solid; font-weight: 500; }
.flash-ok { border-color: color-mix(in srgb, var(--ok) 45%, transparent); background: color-mix(in srgb, var(--ok) 12%, var(--surface)); }
.flash-error { border-color: color-mix(in srgb, var(--danger) 45%, transparent); background: color-mix(in srgb, var(--danger) 12%, var(--surface)); }
.flash-info { border-color: color-mix(in srgb, var(--info) 45%, transparent); background: color-mix(in srgb, var(--info) 12%, var(--surface)); }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 760px) { .two-col { grid-template-columns: 1fr; } }
.danger-box { border-color: color-mix(in srgb, var(--danger) 35%, var(--line)); }

/* Accueil */
.hero { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; margin-bottom: 26px; }
.hero h1 { max-width: 15em; }
.hero-cta { display: flex; gap: 10px; flex-wrap: wrap; }
.toolbar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin: 0 0 18px; }
.toolbar .search { flex: 1 1 260px; max-width: 420px; }
.toolbar select { width: auto; max-width: 220px; }
.empty { text-align: center; padding: 48px 16px; border: 2px dashed var(--line); border-radius: var(--radius); }
.empty p { margin: .3em 0; }
.banners { display: flex; flex-direction: column; gap: 16px; }

/* Avatars */
.av { display: inline-flex; width: 30px; height: 30px; border-radius: 50%; overflow: hidden; flex: none; background: var(--accent); color: var(--accent-ink); align-items: center; justify-content: center; font-weight: 800; }
.av img { width: 100%; height: 100%; object-fit: cover; }
.av-xs { width: 24px; height: 24px; font-size: .75rem; }
.av-sm { width: 28px; height: 28px; font-size: .85rem; margin-right: 8px; vertical-align: middle; }
.av-lg { width: 84px; height: 84px; font-size: 2rem; }

/* Bannière d'un collectionneur (couleurs fournies par theme.css.php) */
.banner {
  --b1: #141a33; --b2: #2b2f5e; --b-ink: #fff; --b-acc: #ffcf4a; --b-on-acc: #000;
  display: flex; align-items: stretch; gap: 0; min-height: 156px;
  background: linear-gradient(100deg, var(--b1), var(--b2)); color: var(--b-ink);
  border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow);
  border-left: 6px solid var(--b-acc); position: relative;
}
.b-id { flex: 0 0 230px; display: flex; flex-direction: column; justify-content: center; gap: 10px; padding: 18px 18px 18px 20px; color: inherit; }
a.b-id:hover { text-decoration: none; background: rgba(255, 255, 255, .05); }
a.b-id:hover .b-name { text-decoration: underline; }
.b-av { width: 58px; height: 58px; border-radius: 12px; overflow: hidden; display: inline-flex; align-items: center; justify-content: center; background: var(--b-acc); color: var(--b-on-acc); font-weight: 800; font-size: 1.6rem; box-shadow: 0 0 0 2px var(--b-acc); flex: none; }
.b-av img { width: 100%; height: 100%; object-fit: cover; }
.b-txt { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.b-name { font-size: 1.2rem; line-height: 1.2; overflow-wrap: anywhere; }
.b-motto { font-size: .85rem; opacity: .8; font-style: italic; line-height: 1.3; overflow-wrap: anywhere; }
.b-count { font-size: .76rem; font-weight: 700; color: var(--b-acc); text-transform: uppercase; letter-spacing: .06em; margin-top: 3px; }
.b-cards {
  flex: 1; display: flex; align-items: center; gap: 10px; padding: 14px 18px 14px 4px;
  overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: thin; scrollbar-color: rgba(255,255,255,.35) transparent;
  min-width: 0;
}
.b-card { position: relative; flex: none; height: 128px; scroll-snap-align: start; border-radius: 6px; overflow: hidden; box-shadow: 0 3px 10px rgba(0, 0, 0, .35); transition: transform .15s; background: rgba(0,0,0,.15); }
.b-card img { height: 100%; width: auto; max-width: none; }
.b-card:hover { transform: translateY(-3px) scale(1.04); }
/* Pastilles : édition, tirage limité, quantité */
.bdg { display: inline-block; font-size: .64rem; font-weight: 800; line-height: 1; padding: 3px 6px; border-radius: 5px; letter-spacing: .02em; text-transform: uppercase; }
.bdg-variant { background: #7c4dff; color: #fff; }
.bdg-reissue { background: #2b8a99; color: #fff; }
.bdg-original { background: var(--surface-2); color: var(--muted); }
.bdg-ltd { background: linear-gradient(135deg, #f8d66d, #c89211); color: #2a1d00; }
.bdg-qty { background: rgba(0, 0, 0, .78); color: #fff; font-size: .72rem; }
.b-card .bdg, .tile-img .bdg { position: absolute; }
.b-card .bdg-variant, .b-card .bdg-reissue, .tile-img .bdg-variant, .tile-img .bdg-reissue { top: 5px; left: 5px; }
.b-card .bdg-ltd, .tile-img .bdg-ltd { top: 5px; right: 5px; }
.b-card .bdg-qty, .tile-img .bdg-qty { bottom: 5px; right: 5px; }
.b-card.is-ltd { box-shadow: 0 0 0 2px #f4c542, 0 3px 12px rgba(0, 0, 0, .4); }
.b-empty { opacity: .7; font-style: italic; font-size: .92rem; }
@media (max-width: 640px) {
  .banner { flex-direction: column; }
  .b-id { flex: none; flex-direction: row; align-items: center; justify-content: flex-start; padding: 14px 16px 6px; }
  .b-av { width: 48px; height: 48px; font-size: 1.3rem; }
  .b-cards { padding: 8px 16px 16px; }
  .b-card { height: 112px; }
}

/* Personnalisation */
.preview { margin-bottom: 22px; }
.swatches { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 10px; }
.swatch { position: relative; display: flex !important; flex-direction: row !important; align-items: center; gap: 8px !important; padding: 12px; border-radius: 10px; cursor: pointer; background: linear-gradient(100deg, var(--b1), var(--b2)); color: var(--b-ink); border-left: 5px solid var(--b-acc); font-weight: 650; }
.swatch input { accent-color: var(--b-acc); }
.swatch:has(input:checked) { outline: 3px solid var(--accent); outline-offset: 2px; }
.avatar-row { display: flex; gap: 16px; align-items: center; }
.avatar-row > div { flex: 1; display: flex; flex-direction: column; gap: 8px; }
.sig-box { display: flex; flex-direction: column; gap: 12px; }
.sig-img { width: 100%; max-width: 728px; height: auto; border-radius: 6px; }
.sig-box label { display: flex; flex-direction: column; gap: 5px; font-weight: 600; font-size: .9rem; }
.copy-row { display: flex; gap: 8px; }
.copy-row input { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: .82rem; }

/* Choix de la collection */
.order-box { margin-bottom: 22px; }
.order-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.order-head h2 { margin: 0; }
.order-list { list-style: none; margin: 12px 0 0; padding: 4px 2px 10px; display: flex; gap: 10px; overflow-x: auto; min-height: 30px; }
.order-list li { flex: none; width: 96px; display: flex; flex-direction: column; gap: 4px; background: var(--surface-2); border-radius: 10px; padding: 6px; cursor: grab; user-select: none; }
.order-list li.dragging { opacity: .4; }
.order-list li.over { outline: 2px dashed var(--accent); }
.order-list img { height: 96px; width: 100%; object-fit: contain; pointer-events: none; }
.o-name { font-size: .72rem; line-height: 1.2; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.o-btns { display: flex; justify-content: space-between; }
.o-btns button { border: 1px solid var(--line); background: var(--surface); color: var(--ink); border-radius: 6px; cursor: pointer; padding: 0 8px; font-size: .85rem; }
.picks { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; }
.pick { position: relative; background: var(--surface); border: 2px solid var(--line); border-radius: 12px; transition: border-color .12s, transform .12s; }
.pick:hover { transform: translateY(-2px); }
.pick.owned { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 8%, var(--surface)); }
.pick-open { all: unset; box-sizing: border-box; display: flex; flex-direction: column; gap: 3px; width: 100%; padding: 10px; cursor: pointer; }
.pick-open:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 10px; }
.pick-img { position: relative; aspect-ratio: 3 / 4; display: flex; align-items: center; justify-content: center; margin-bottom: 5px; }
.pick-img img { max-height: 100%; object-fit: contain; border-radius: 5px; }
.pick:not(.owned) .pick-img img { opacity: .75; filter: saturate(.65); }
.pick-own:not(:empty) { position: absolute; top: 4px; left: 4px; background: var(--accent); color: var(--accent-ink); font-size: .74rem; font-weight: 750; padding: 2px 8px; border-radius: 99px; box-shadow: 0 2px 6px rgba(0,0,0,.25); }
.pick-name { font-weight: 650; font-size: .9rem; line-height: 1.25; color: var(--ink); }
.pick-meta { font-size: .78rem; color: var(--muted); line-height: 1.3; }
.ed-panel { padding: 0 10px 10px; display: flex; flex-direction: column; gap: 8px; }
.js .pick .ed-panel { display: none; }
.js .pick.show-panel .ed-panel { display: flex; }
.ed-row { display: grid; grid-template-columns: 44px 1fr auto; gap: 10px; align-items: center; padding: 8px; border-radius: 10px; background: var(--surface-2); }
.ed-row.has-q { background: color-mix(in srgb, var(--accent) 14%, var(--surface)); }
.ed-row img { width: 44px; height: 60px; object-fit: contain; }
.ed-txt { display: flex; flex-direction: column; line-height: 1.3; min-width: 0; }
.ed-txt strong { font-size: .92rem; }
.stepper { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: var(--surface); }
.stepper button { border: 0; background: transparent; color: var(--ink); font: inherit; font-size: 1.1rem; width: 34px; height: 36px; cursor: pointer; }
.stepper button:hover { background: var(--surface-2); }
.stepper input { width: 46px; text-align: center; border: 0; border-radius: 0; padding: 6px 2px; background: transparent; -moz-appearance: textfield; appearance: textfield; }
.stepper input::-webkit-inner-spin-button, .stepper input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.ed-dialog { border: 0; border-radius: var(--radius); padding: 20px; width: min(560px, calc(100vw - 32px)); max-height: calc(100vh - 40px); background: var(--surface); color: var(--ink); box-shadow: 0 20px 60px rgba(0,0,0,.4); }
.ed-dialog::backdrop { background: rgba(10, 12, 24, .55); }
.dlg-head { display: flex; gap: 16px; align-items: flex-start; margin-bottom: 14px; }
.dlg-head img { width: clamp(60px, 18vw, 90px); border-radius: 6px; flex: none; }
.dlg-head h2 { margin: 0 0 4px; font-size: 1.2rem; }
.dlg-head p { margin: 0 0 4px; }
.ed-dialog .ed-panel { padding: 0; display: flex; }
.dlg-foot { display: flex; justify-content: space-between; gap: 10px; margin-top: 16px; }
.o-ed { font-size: .68rem; color: var(--muted); line-height: 1.2; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.o-ed b { color: var(--accent); }
.sticky-save { position: sticky; bottom: 0; padding: 14px 0; display: flex; justify-content: flex-end; background: linear-gradient(transparent, var(--bg) 40%); margin-top: 10px; }
.empty-filter { grid-column: 1 / -1; }

/* Catalogue */
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 16px; }
.tile { display: flex; flex-direction: column; gap: 3px; color: var(--ink); background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 10px; height: 100%; transition: transform .12s, box-shadow .12s; }
.tile:hover { text-decoration: none; transform: translateY(-2px); box-shadow: var(--shadow); }
.tile-img { position: relative; aspect-ratio: 3 / 4; display: flex; align-items: center; justify-content: center; margin-bottom: 6px; }
.tile-img img { max-height: 100%; object-fit: contain; border-radius: 5px; }
.tile-name { font-weight: 650; font-size: .92rem; line-height: 1.25; }
.tile-meta { font-size: .78rem; color: var(--muted); }
.tile-ed { font-size: .8rem; font-weight: 650; }
.tile.is-ltd .tile-img img { box-shadow: 0 0 0 2px #f4c542; }
.tile-own { font-size: .76rem; font-weight: 650; color: var(--accent); margin-top: auto; padding-top: 4px; }

/* Fiche carte */
.card-detail { display: grid; grid-template-columns: minmax(220px, 380px) 1fr; gap: 36px; align-items: start; }
.cd-img img { border-radius: 10px; box-shadow: var(--shadow); width: 100%; }
@media (max-width: 720px) { .card-detail { grid-template-columns: 1fr; } .cd-img { max-width: 320px; } }
.specs { display: grid; grid-template-columns: max-content 1fr; gap: 6px 18px; margin: 0 0 18px; }
.specs dt { color: var(--muted); font-size: .9rem; }
.specs dd { margin: 0; font-weight: 600; }
.notes { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 12px 15px; margin-bottom: 18px; }
.owners { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.owners a { display: inline-flex; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: 99px; padding: 4px 14px 4px 4px; color: var(--ink); font-weight: 600; }
.owners .av-sm { margin-right: 8px; }
.owners b { margin-left: 5px; color: var(--accent); }

/* Admin */
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 20px; flex-wrap: wrap; }
.tabs a { padding: 9px 14px; color: var(--muted); font-weight: 600; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.tabs a.on { color: var(--ink); border-color: var(--accent); }
.tabs a:hover { text-decoration: none; color: var(--ink); }
.table-wrap { overflow-x: auto; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.table th, .table td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table th { font-size: .78rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.table tr:last-child td { border-bottom: 0; }
.table td a { display: inline-flex; align-items: center; }
.mini { height: 54px; width: auto; border-radius: 4px; }
.row-actions { white-space: nowrap; text-align: right; }
.row-actions form, .row-actions a { margin-left: 4px; }
.card-form-grid { display: grid; grid-template-columns: 240px 1fr; gap: 24px; }
@media (max-width: 700px) { .card-form-grid { grid-template-columns: 1fr; } }
.photo-col, .fields-col { display: flex; flex-direction: column; gap: 14px; }
.photo-preview { aspect-ratio: 3 / 4; border: 2px dashed var(--line); border-radius: 10px; display: flex; align-items: center; justify-content: center; overflow: hidden; background: var(--bg); }
.photo-preview img { max-height: 100%; object-fit: contain; }
.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 480px) { .row-2 { grid-template-columns: 1fr; } }

/* Logo, accueil, bas de page (design) */
.logo-img { height: 38px; width: auto; max-width: 140px; object-fit: contain; }
.hero.has-img { align-items: center; }
.hero-txt { flex: 1 1 420px; }
.hero-txt .hero-cta { margin-top: 18px; }
.hero-img { flex: 0 1 380px; display: flex; justify-content: center; }
.hero-img img { max-height: 280px; width: auto; object-fit: contain; filter: drop-shadow(0 10px 24px rgba(0,0,0,.25)); }
@media (max-width: 640px) { .hero-img { order: -1; flex-basis: 100%; } .hero-img img { max-height: 180px; } }
.foot-in { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.foot-deco { height: 56px; width: auto; opacity: .9; }

/* Fiche carte : éditions */
.editions { display: flex; flex-direction: column; gap: 14px; }
.edition { display: grid; grid-template-columns: 90px 1fr auto; gap: 18px; align-items: start; }
.edition.is-ltd { border-color: #e2b43a; }
.ed-photo img { width: 90px; border-radius: 6px; }
.ed-info h3 { margin: 4px 0 8px; }
.ed-type { margin: 0; display: flex; gap: 6px; }
.specs-sm { margin-bottom: 10px; font-size: .92rem; }
.ed-mine { display: flex; flex-direction: column; align-items: center; gap: 6px; }
@media (max-width: 640px) { .edition { grid-template-columns: 70px 1fr; } .ed-photo img { width: 70px; } .ed-mine { grid-column: 1 / -1; flex-direction: row; justify-content: flex-end; } }

/* Admin : éditions */
.ed-title { margin-top: 10px; }
.ed-list { display: flex; flex-direction: column; gap: 12px; }
.ed-edit { border: 1px solid var(--line); border-radius: 12px; padding: 14px; background: var(--bg); }
.ed-edit.is-deleted { opacity: .45; }
.ed-grid { display: grid; grid-template-columns: 150px 1fr 90px 150px; gap: 12px; }
.ed-grid .ed-dist { grid-column: 1 / 3; }
.ed-grid .ed-file { grid-column: 3 / 5; }
@media (max-width: 760px) { .ed-grid { grid-template-columns: 1fr 1fr; } .ed-grid .ed-dist, .ed-grid .ed-file { grid-column: 1 / -1; } }
.ed-tools { display: flex; gap: 16px; align-items: center; margin-top: 10px; flex-wrap: wrap; }
.ed-tools .mini { height: 44px; }

/* Admin : design */
.design-form { gap: 18px; }
.design-form h3 { margin-bottom: 0; }
.color-row { display: flex; align-items: center; gap: 10px; }
.color-row input[type=color] { width: 60px; height: 40px; padding: 3px; }
.design-imgs { display: flex; flex-direction: column; gap: 18px; }
.design-img { display: grid; grid-template-columns: 150px 1fr; gap: 16px; align-items: start; }
.design-img > div { display: flex; flex-direction: column; gap: 8px; }
.design-img p { margin: 0; }
.design-prev { height: 110px; border: 2px dashed var(--line); border-radius: 10px; display: flex; align-items: center; justify-content: center; overflow: hidden; background: var(--bg); }
.design-prev img { max-height: 100%; object-fit: contain; }
.design-prev.is-bg img { width: 100%; height: 100%; object-fit: cover; }
.deco-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 10px; }
.deco { display: flex !important; flex-direction: column; gap: 6px !important; align-items: center; background: var(--bg); border: 1px solid var(--line); border-radius: 10px; padding: 8px; font-weight: 500 !important; }
.deco img { height: 80px; width: auto; object-fit: contain; }
.deco .check { display: flex; gap: 6px; align-items: center; font-size: .82rem; }
