/* Éléments partagés entre le site et le back-office : pictos de rareté, grille de cartes, compteurs, zoom */

* { box-sizing: border-box; }

/* Pictos Pokécardex : les noirs (Commune, Unco) sont éclaircis sur fond sombre */
.rarity { display: inline-block; vertical-align: middle; flex: none; object-fit: contain; }
.rarity--invert { filter: invert(1); }
.rarity--text {
    display: inline-grid;
    place-items: center;
    min-width: 18px;
    height: 18px;
    padding: 0 3px;
    border-radius: 4px;
    background: var(--soft);
    color: var(--accent-ink);
    font: 700 9px/1 Inter, system-ui, sans-serif;
    text-transform: uppercase;
}

/* ---------- Filtre de rareté (cases façon Pokécardex) ---------- */
.rarity-filter { display: flex; flex-wrap: wrap; gap: 8px; }
.rarity-filter button {
    display: grid;
    place-items: center;
    width: 52px;
    height: 52px;
    padding: 0;
    border-radius: 10px;
    border: 1px solid var(--line);
    background: var(--surface, var(--panel));
    color: var(--muted);
    cursor: pointer;
    transition: border-color .15s, background .15s, transform .15s;
}
.rarity-filter button:hover { border-color: var(--accent); transform: translateY(-1px); }
.rarity-filter button.is-active { background: var(--accent-soft); border-color: var(--accent); color: var(--accent-ink); box-shadow: inset 0 0 0 1px var(--accent); }
.rarity-filter__all svg { width: 24px; height: 24px; }

/* ---------- Grille : autant de colonnes que la largeur le permet ---------- */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
    gap: 26px 18px;
}

.card { display: flex; flex-direction: column; min-width: 0; }
.card[hidden], [data-item][hidden] { display: none; }

.card__img {
    position: relative;
    display: block;
    width: 100%;
    aspect-ratio: 600 / 825;
    padding: 0;
    border: 0;
    border-radius: 11px;
    background: var(--card-placeholder);
    overflow: hidden;
    box-shadow: var(--card-shadow);
    transition: transform .2s, box-shadow .2s;
}
.card__img[data-zoom] { cursor: zoom-in; }
.card__img[data-zoom]:hover { transform: translateY(-3px); box-shadow: var(--card-shadow-hover); }
.card__img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: opacity .2s, filter .2s; }
.card__placeholder {
    display: grid;
    place-content: center;
    justify-items: center;
    gap: 10px;
    height: 100%;
    padding: 12px;
    text-align: center;
    font: 600 13px/1.3 Inter, system-ui, sans-serif;
    color: var(--card-muted);
    border: 1px dashed var(--card-line);
    border-radius: inherit;
}

/* Carte manquante : grisée ; carte possédée : en couleur avec une coche */
.card:not(.is-owned) .card__img img { opacity: var(--missing-opacity, .5); filter: grayscale(.7); }
.card:not(.is-owned) .card__img:hover img { opacity: .85; filter: none; }
.card__check {
    position: absolute;
    top: 8px;
    right: 8px;
    display: none;
    place-items: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--accent);
    color: var(--ink);
    box-shadow: 0 1px 4px rgba(0, 0, 0, .4);
}
.card.is-owned .card__check { display: grid; }

.card__name {
    margin: 10px 0 3px;
    font-size: 13.5px;
    font-weight: 600;
    line-height: 1.3;
    color: var(--card-text);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.card__line { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 12px; color: var(--card-muted); }
.card__rarity { display: inline-flex; align-items: center; gap: 5px; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card__code { flex: none; font-variant-numeric: tabular-nums; letter-spacing: .02em; }

/* Versions d'une carte : N (normale), H (holo), R (reverse)… allumées si possédées */
.versions { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 7px; }
.version {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    padding: 1px 7px;
    border-radius: 999px;
    border: 1px dashed var(--line);
    color: var(--muted);
    font: 600 11px/1.6 Inter, system-ui, sans-serif;
}
.version.is-owned { border: 1px solid var(--accent); background: var(--accent-soft); color: var(--accent-ink); }
.version small { font-size: 10px; color: var(--gold); }

/* ---------- Compteurs + / − ---------- */
.counters { display: grid; gap: 4px; margin-top: 8px; }
.counter {
    display: inline-grid;
    grid-template-columns: 28px 30px 28px;
    align-items: center;
    border-radius: 9px;
    padding: 2px;
    font: 600 12px Inter, system-ui, sans-serif;
    background: var(--panel);
    border: 1px solid var(--line);
    color: var(--text);
}
.counter:has(.counter__label) { grid-template-columns: 1fr 26px 26px 26px; padding-left: 9px; }
.counter__label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.counter--reverse, .counter--pokeball, .counter--masterball { background: var(--accent-soft); border-color: rgba(166, 117, 224, .35); }
.counter output { text-align: center; font-weight: 700; font-size: 14px; font-variant-numeric: tabular-nums; }
.counter button {
    height: 24px;
    border: 0;
    border-radius: 7px;
    background: var(--accent);
    color: var(--ink);
    font-size: 16px;
    line-height: 1;
    cursor: pointer;
}
.counter button[data-step="-1"] { background: var(--soft); color: var(--text); }
.counter button:hover:not(:disabled) { filter: brightness(1.15); }
.counter button:disabled { opacity: .3; cursor: default; }
.is-saving .counter { opacity: .6; }
.is-error .counter { outline: 2px solid #e5484d; }

/* ---------- Zoom ---------- */
.dialog {
    border: 0;
    border-radius: 18px;
    padding: 28px;
    max-width: min(460px, calc(100vw - 32px));
    width: 100%;
    box-shadow: 0 30px 80px rgba(0, 0, 0, .6);
}
.dialog::backdrop { background: rgba(6, 4, 10, .82); backdrop-filter: blur(3px); }
.dialog__close {
    position: absolute;
    top: 10px;
    right: 14px;
    border: 0;
    background: transparent;
    font-size: 30px;
    line-height: 1;
    cursor: pointer;
    color: inherit;
    opacity: .6;
}
.dialog__close:hover { opacity: 1; }

.dialog--zoom {
    max-width: min(820px, calc(100vw - 32px));
    background: var(--surface, var(--panel));
    color: var(--text);
    border: 1px solid var(--line);
    font-family: Inter, system-ui, sans-serif;
}
.zoom { display: grid; grid-template-columns: minmax(0, 1.15fr) 1fr; gap: 28px; align-items: center; }
.zoom > img { width: 100%; border-radius: 14px; display: block; box-shadow: 0 16px 40px rgba(0, 0, 0, .55); }
.zoom h3 { font-size: 24px; font-weight: 600; line-height: 1.2; margin: 0 0 10px; }
.zoom__code { margin: 0 0 4px; font-size: 13px; color: var(--accent-ink); font-variant-numeric: tabular-nums; letter-spacing: .04em; }
.zoom__meta { display: flex; align-items: center; gap: 8px; color: var(--muted); }
.zoom__meta img[hidden] { display: none; }
.zoom__versions { list-style: none; margin: 16px 0 0; padding: 14px 0 0; border-top: 1px solid var(--line); display: grid; gap: 6px; }
.zoom__versions li { display: flex; justify-content: space-between; gap: 12px; padding: 7px 12px; border-radius: 9px; border: 1px dashed var(--line); color: var(--muted); }
.zoom__versions li.is-owned { border: 1px solid var(--accent); background: var(--accent-soft); color: var(--text); }
.zoom__versions b { font-weight: 600; }

@media (max-width: 560px) {
    .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 12px; }
    .zoom { grid-template-columns: 1fr; }
    .rarity-filter button { width: 44px; height: 44px; }
}

/* Site public — palette mauve foncé et noir, touche dorée reprise de l'icône */
:root {
    --bg: #0b0810;
    --surface: #15101d;
    --panel: #15101d;
    --soft: #221a2e;
    --line: #2f2440;
    --text: #f2ecf9;
    --muted: #a497b8;
    --accent: #a675e0;
    --accent-ink: #cfb2f5;
    --accent-soft: rgba(166, 117, 224, .14);
    --gold: #e2ae4f;
    --ink: #120c1a;

    --card-text: var(--text);
    --card-muted: var(--muted);
    --card-line: var(--line);
    --card-placeholder: var(--soft);
    --card-shadow: 0 2px 10px rgba(0, 0, 0, .45);
    --card-shadow-hover: 0 14px 28px rgba(0, 0, 0, .6);
    color-scheme: dark;
}

html { overflow-x: clip; }
body.front {
    margin: 0;
    min-height: 100vh;
    font: 14px/1.5 Inter, "Segoe UI", system-ui, sans-serif;
    color: var(--text);
    background:
        radial-gradient(1100px 500px at 85% -10%, rgba(110, 58, 170, .28), transparent 70%),
        radial-gradient(800px 400px at -10% 10%, rgba(70, 30, 110, .25), transparent 70%),
        var(--bg);
    background-attachment: fixed;
    -webkit-font-smoothing: antialiased;
}
.wrap { max-width: 1840px; margin: 0 auto; padding: 0 clamp(16px, 3vw, 48px) 60px; }
a { color: inherit; }

/* ---------- En-tête : icône + onglets + accès discret ---------- */
.top { display: flex; align-items: center; gap: 16px; padding: 22px 0 8px; }
.brand { flex: none; display: block; border-radius: 12px; }
.brand img { display: block; width: 44px; height: 44px; }
.brand:hover img { filter: brightness(1.15); }
/* Les onglets passent à la ligne quand il y a trop de séries */
.tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    min-width: 0;
    padding: 4px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 22px;
}
.top .login { margin-left: auto; }
.tabs a { padding: 7px 16px; border-radius: 999px; text-decoration: none; color: var(--muted); font-weight: 500; white-space: nowrap; }
.tabs a:hover { color: var(--text); }
.tabs a.is-active { background: var(--soft); color: var(--accent-ink); font-weight: 600; }
.tabs .tabs__home { color: var(--text); }
.login {
    flex: none;
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1px solid var(--line);
    background: var(--surface);
    color: var(--muted);
}
.login:hover { color: var(--accent-ink); border-color: var(--accent); }

/* ---------- Accueil : séries par bloc ---------- */
.series { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px; }
.serie {
    display: grid;
    gap: 12px;
    padding: 18px;
    border-radius: 16px;
    background: var(--surface);
    border: 1px solid var(--line);
    text-decoration: none;
    transition: border-color .15s, transform .15s, background .15s;
}
.serie:hover { border-color: var(--accent); transform: translateY(-2px); background: #1a1324; }
.serie__logo { display: grid; place-items: center; height: 110px; padding: 6px; border-radius: 12px; background: radial-gradient(closest-side, rgba(166, 117, 224, .16), transparent); }
.serie__logo img { width: 100%; height: 98px; object-fit: contain; filter: drop-shadow(0 6px 14px rgba(0, 0, 0, .55)); }
.serie__logo b { font-size: 28px; color: var(--accent-ink); letter-spacing: .08em; }
.serie__name { font-size: 16px; font-weight: 600; }
.serie__code { margin-left: 6px; font-size: 11px; font-weight: 700; letter-spacing: .12em; color: var(--gold); }

/* ---------- Bandeau de la série ---------- */
.hero {
    position: relative;
    display: flex;
    align-items: center;
    gap: 34px;
    margin: 18px 0 22px;
    padding: 26px 30px;
    border-radius: 18px;
    background: linear-gradient(120deg, #1d1428 0%, #120d19 60%, #0e0a14 100%);
    border: 1px solid var(--line);
    overflow: hidden;
}
.hero::after {
    content: "";
    position: absolute;
    inset: auto -80px -120px auto;
    width: 360px;
    height: 360px;
    border-radius: 50%;
    background: radial-gradient(closest-side, rgba(166, 117, 224, .22), transparent);
    pointer-events: none;
}
.hero__logo { flex: none; width: clamp(140px, 18vw, 240px); max-height: 120px; object-fit: contain; filter: drop-shadow(0 8px 18px rgba(0, 0, 0, .6)); }
.hero__body { position: relative; flex: 1; min-width: 0; }
.hero__block { margin: 0 0 2px; font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); }
.hero h1 { margin: 0 0 16px; font-size: 28px; font-weight: 600; letter-spacing: -.01em; }
.progress { display: flex; align-items: center; gap: 14px; max-width: 520px; }
.bar { flex: 1; height: 6px; border-radius: 99px; background: var(--soft); overflow: hidden; }
.bar span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #7b4bb0, var(--accent)); }
.progress b { font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.facts { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 16px; color: var(--muted); font-size: 13px; }
.facts b { color: var(--text); font-weight: 600; }

/* ---------- Filtres ---------- */
.filters { display: grid; gap: 14px; margin-bottom: 30px; }
.filters__row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.pills { display: flex; flex-wrap: wrap; gap: 8px; }
.pill {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 6px 13px;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: var(--surface);
    color: var(--text);
    font: inherit;
    font-size: 13px;
    cursor: pointer;
}
.pill:hover { border-color: var(--accent); }
.pill.is-active { border-color: var(--accent); background: var(--accent-soft); color: var(--accent-ink); font-weight: 600; }
.segmented { display: inline-flex; padding: 3px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); }
.segmented a { padding: 5px 13px; border-radius: 999px; text-decoration: none; color: var(--muted); font-size: 13px; }
.segmented a.is-active { background: var(--soft); color: var(--accent-ink); font-weight: 600; }
.filters input[type=search] {
    flex: 1;
    min-width: 200px;
    padding: 8px 14px;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: var(--surface);
    color: var(--text);
    font: inherit;
    font-size: 13px;
}
.filters input[type=search]::placeholder { color: var(--muted); }
.filters input[type=search]:focus { outline: none; border-color: var(--accent); }

/* ---------- Sections ---------- */
.block { margin: 26px 0 48px; }
.block[hidden] { display: none; }
.block h2 { display: flex; align-items: center; gap: 10px; margin: 0 0 20px; font-size: 19px; font-weight: 600; letter-spacing: -.005em; }
.block h2::before { content: ""; flex: none; width: 4px; height: 22px; border-radius: 4px; background: linear-gradient(var(--accent), #5a2f8a); }
.block h2::after { content: ""; flex: 1; height: 1px; margin-left: 6px; background: var(--line); }
.block h2 small { padding: 2px 10px; border-radius: 999px; background: var(--soft); color: var(--accent-ink); font-weight: 600; font-size: 12px; font-variant-numeric: tabular-nums; }
.empty { color: var(--muted); }

/* ---------- Connexion ---------- */
.login-page { display: grid; place-items: center; padding: 40px 0; }
.login-box {
    display: grid;
    gap: 16px;
    width: min(380px, 100%);
    padding: 32px 28px;
    border-radius: 18px;
    background: var(--surface);
    border: 1px solid var(--line);
}
.login-box img { display: block; margin: 0 auto 4px; }
.login-box h1 { margin: 0 0 4px; font-size: 22px; font-weight: 600; text-align: center; }
.field { display: grid; gap: 6px; font-size: 13px; color: var(--muted); }
.field input {
    padding: 10px 12px;
    border-radius: 10px;
    border: 1px solid var(--line);
    background: var(--bg);
    color: var(--text);
    font: inherit;
    font-size: 14px;
}
.field input:focus { outline: none; border-color: var(--accent); }
.btn {
    padding: 10px 16px;
    border: 0;
    border-radius: 10px;
    background: var(--accent);
    color: var(--ink);
    font: 600 14px Inter, system-ui, sans-serif;
    cursor: pointer;
}
.btn:hover { filter: brightness(1.08); }
.alert { margin: 0; padding: 10px 12px; border-radius: 10px; background: rgba(229, 72, 77, .15); color: #ff9a9e; font-size: 13px; }

@media (max-width: 700px) {
    .hero { flex-direction: column; align-items: flex-start; gap: 18px; padding: 22px 18px; }
    .hero__logo { width: 180px; }
}
@media (max-width: 560px) {
    .wrap { padding: 0 16px 40px; }
    .top { padding-top: 16px; }
    .tabs { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
}

/* Appli téléphone : reprend les styles du site public (cards.css + front.css), plus la mise en page mobile */

body.app {
    min-height: 100dvh;
    padding: env(safe-area-inset-top) 0 calc(72px + env(safe-area-inset-bottom));
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
    -webkit-tap-highlight-color: transparent;
    overscroll-behavior-y: none;
}

/* ---------- Barre du haut et onglets du bas ---------- */
.app-top { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 12px; padding: 10px 16px; background: rgba(11, 8, 16, .92); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.app-top .brand img { width: 38px; height: 38px; }
.app-top__hint { margin-left: auto; font-size: 11px; color: var(--muted); }
.app-main { padding: 14px 16px 24px; }
.app-tabs {
    position: fixed;
    inset: auto 0 0 0;
    z-index: 30;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    padding: 6px 8px calc(6px + env(safe-area-inset-bottom));
    background: rgba(11, 8, 16, .96);
    backdrop-filter: blur(10px);
    border-top: 1px solid var(--line);
}
.app-tabs a { position: relative; display: grid; justify-items: center; gap: 3px; padding: 6px 0; border-radius: 10px; color: var(--muted); font-size: 11px; font-weight: 600; text-decoration: none; }
.app-tabs svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.app-tabs a.is-active { color: var(--accent-ink); background: var(--accent-soft); }
.app-tabs__badge { position: absolute; top: 2px; left: calc(50% + 8px); min-width: 18px; padding: 0 5px; border-radius: 999px; background: var(--gold); color: var(--ink); font-size: 11px; line-height: 18px; text-align: center; }
.app-tabs__badge[hidden] { display: none; }

/* ---------- Accueil ---------- */
.app .series { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.app .serie { padding: 12px; gap: 8px; }
.app .serie__logo { height: 70px; }
.app .serie__logo img { height: 64px; }
.app .serie__name { font-size: 14px; }
.app .block { margin: 10px 0 30px; }
.app .block h2 { font-size: 17px; }

/* ---------- Série ---------- */
.app .hero { margin: 0 0 16px; padding: 18px; gap: 14px; flex-direction: column; align-items: flex-start; }
.app .hero__logo { width: 170px; max-height: 80px; }
.app .hero h1 { font-size: 22px; margin-bottom: 12px; }
.app .filters { gap: 10px; margin-bottom: 20px; }
.app .rarity-filter { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; }
.app .rarity-filter button { flex: none; width: 44px; height: 44px; }
.app .pills { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
.app .pill { flex: none; }
.app .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px 10px; }
.app .card__name { font-size: 12px; margin-top: 6px; }
.app .card__line { font-size: 10.5px; }
.app .card__rarity { gap: 3px; }
.app .version { padding: 0 5px; font-size: 10px; }
.app .card__img img[src=""] { visibility: hidden; }
.app .back { display: inline-block; margin-bottom: 10px; color: var(--accent-ink); text-decoration: none; font-weight: 600; font-size: 14px; }

/* Zoom en feuille du bas */
.app .dialog--zoom { margin: auto auto 0; width: 100%; max-width: 520px; max-height: 92dvh; overflow-y: auto; border-radius: 20px 20px 0 0; padding: 22px 18px calc(18px + env(safe-area-inset-bottom)); }
.app .zoom { grid-template-columns: 1fr; gap: 16px; }
.app .zoom > img { max-width: 300px; margin: 0 auto; }

/* ---------- Scanner ---------- */
.scan-m { display: grid; gap: 12px; }
.scan-m__video { position: relative; border-radius: 14px; overflow: hidden; background: #000; min-height: 200px; }
.scan-m__video video { display: block; width: 100%; height: auto; }
.scan-m__frame { position: absolute; border: 3px solid var(--accent); border-radius: 12px; box-shadow: 0 0 0 9999px rgba(0, 0, 0, .45); transition: border-color .15s, background .15s; pointer-events: none; }
.scan-m__frame[hidden] { display: none; }
.scan-m__frame.is-hit { border-color: #4ade80; background: rgba(74, 222, 128, .18); }
.scan-m__off { position: absolute; inset: 0; display: grid; place-items: center; margin: 0; color: var(--muted); }
.scan-m__status { padding: 9px 12px; border-radius: 10px; background: var(--soft); font-size: 13px; min-height: 38px; }
.scan-m__status.is-ok { background: rgba(74, 222, 128, .12); color: #a7f3c0; }
.scan-m__status.is-warn { background: rgba(226, 174, 79, .14); color: var(--gold); }
.scan-m__status.is-error { background: rgba(229, 72, 77, .15); color: #ff9a9e; }
.scan-m__row { display: flex; gap: 8px; flex-wrap: wrap; }
.scan-m__row > * { flex: 1; }
.scan-m select, .scan-m input[type=text] { width: 100%; padding: 11px 12px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); color: var(--text); font: inherit; font-size: 16px; }
.app .segmented { display: flex; overflow-x: auto; scrollbar-width: none; }
.app .segmented button { flex: none; border: 0; background: transparent; padding: 7px 12px; border-radius: 999px; color: var(--muted); font: inherit; font-size: 13px; }
.app .segmented button.is-active { background: var(--soft); color: var(--accent-ink); font-weight: 600; }
.app .btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 12px 16px; border-radius: 12px; text-decoration: none; }
.app .btn--light { background: var(--surface); color: var(--text); border: 1px solid var(--line); }
.app .btn--danger { background: transparent; color: #ff9a9e; border: 1px solid rgba(229, 72, 77, .45); }
.app .btn:disabled { opacity: .45; }
.scan-m__suggest { padding: 12px; border-radius: 12px; border: 1px solid var(--accent); background: var(--accent-soft); }
.scan-m__suggest[hidden] { display: none; }
.scan-m__suggest-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 10px; font-size: 13px; }
.link { border: 0; background: none; padding: 0; font: inherit; color: var(--accent-ink); font-weight: 600; cursor: pointer; }
.picks { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.picks:empty { display: none; }
.pick { display: grid; gap: 5px; padding: 5px; border-radius: 9px; border: 1px solid var(--line); background: var(--surface); color: var(--text); font: inherit; font-size: 11px; text-align: left; }
.pick:active { border-color: var(--accent); background: var(--soft); }
.pick img, .pick .noimg { width: 100%; aspect-ratio: 600 / 825; border-radius: 6px; object-fit: cover; background: var(--soft); }
.pick strong { display: block; color: var(--accent-ink); }

/* ---------- Panier ---------- */
.cart { list-style: none; margin: 0 0 16px; padding: 0; display: grid; gap: 8px; }
.cart-item { display: flex; align-items: center; gap: 10px; padding: 8px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); }
.cart-item.is-warn { border-color: rgba(226, 174, 79, .5); }
.cart-item img, .cart-item .noimg { flex: none; width: 46px; aspect-ratio: 600 / 825; border-radius: 5px; object-fit: cover; background: var(--soft); }
.cart-item__body { flex: 1; min-width: 0; display: grid; gap: 4px; font-size: 13px; }
.cart-item__body small { color: var(--gold); }
.cart-item__body select { padding: 5px 8px; border-radius: 8px; border: 1px solid var(--line); background: var(--bg); color: var(--text); font: inherit; font-size: 13px; }
.cart-item .counter { grid-template-columns: 30px 26px 30px; }
.cart-item .counter button { height: 30px; }
.cart-item__remove { border: 0; background: none; color: var(--muted); font-size: 22px; padding: 0 4px; }
.cart-actions { display: grid; gap: 8px; }
.cart-code { width: 100%; min-height: 90px; padding: 10px; border-radius: 10px; border: 1px solid var(--line); background: var(--bg); color: var(--text); font: 12px ui-monospace, monospace; }

.app-toast { position: fixed; left: 16px; right: 16px; bottom: calc(84px + env(safe-area-inset-bottom)); z-index: 40; padding: 12px 14px; border-radius: 12px; background: var(--soft); border: 1px solid var(--line); border-left: 4px solid var(--accent); box-shadow: 0 12px 30px rgba(0, 0, 0, .5); font-size: 14px; }
.app-toast[hidden] { display: none; }
