/* Stock Boutique — une seule feuille, sans dépendance, pensée pour Android d'entrée de gamme. */
:root {
  --fond: #eef1ee; --carte: #fff; --texte: #17201b; --doux: #56645c; --trait: #dfe5e1; --trait-fort: #c5cfc9;
  --vert: #0f7a4a; --vert-fonce: #0a5c37; --vert-clair: #e3f3ea; --rouge: #b42d24; --rouge-clair: #fbe7e5;
  --orange: #9c5400; --orange-clair: #fdf0de; --wa: #13733d;
  /* Fonds de boutons pleins (texte blanc, contraste AA ≥ 4,5 dans les deux thèmes) */
  --btn-vert: #0f7a4a; --btn-rouge: #b42d24; --bleu: #1d5fa8; --bleu-clair: #e5eef9;
  --ombre: 0 2px 10px #0001; --rayon: 14px; --focus: #1d5fa8;
  --tab-h: 64px; --top-h: 52px;
  color-scheme: light;
  font-size: 16px;
}
:root[data-big] { font-size: 19px; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="clair"]) {
    --fond: #0f1411; --carte: #182019; --texte: #e8efe9; --doux: #a3b2a8; --trait: #2a352d; --trait-fort: #3a473e;
    --vert: #2fae6d; --vert-fonce: #7fdcaa; --vert-clair: #173826; --rouge: #ff7b70; --rouge-clair: #3b1c19;
    --orange: #ffb35c; --orange-clair: #3a2a14; --bleu: #7fb2ee; --bleu-clair: #17273a; --focus: #7fb2ee;
    color-scheme: dark;
  }
}
:root[data-theme="sombre"] {
  --fond: #0f1411; --carte: #182019; --texte: #e8efe9; --doux: #a3b2a8; --trait: #2a352d; --trait-fort: #3a473e;
  --vert: #2fae6d; --vert-fonce: #7fdcaa; --vert-clair: #173826; --rouge: #ff7b70; --rouge-clair: #3b1c19;
  --orange: #ffb35c; --orange-clair: #3a2a14; --bleu: #7fb2ee; --bleu-clair: #17273a; --focus: #7fb2ee;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", sans-serif;
  background: var(--fond); color: var(--texte); line-height: 1.4;
  -webkit-tap-highlight-color: transparent; overscroll-behavior-y: contain;
}
a { color: var(--vert-fonce); }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 0; background: var(--carte); padding: 8px; z-index: 100; }
.skip:focus { left: 8px; }
[hidden] { display: none !important; }

/* ── Barre du haut ─────────────────────────────── */
.topbar {
  position: sticky; top: 0; z-index: 20; height: var(--top-h); display: flex; align-items: center; gap: 6px;
  padding: 0 8px 0 4px; background: var(--carte); border-bottom: 1px solid var(--trait);
  padding-top: env(safe-area-inset-top);
}
.topbar h1 { flex: 1; margin: 0; font-size: 1.08rem; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.topbar .icon-btn { flex: none; }
.icon-btn {
  width: 48px; height: 48px; border: 0; background: none; border-radius: 12px; display: grid; place-items: center; cursor: pointer; color: var(--texte);
}
.icon-btn:active { background: var(--trait); }
.icon-btn svg, .btn svg, .tabs svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.pill {
  border: 1px solid var(--trait); background: var(--fond); color: var(--doux); border-radius: 999px; padding: 6px 10px;
  font-size: .8rem; display: inline-flex; align-items: center; gap: 6px; min-height: 36px; cursor: pointer; white-space: nowrap;
}
.pill .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--doux); }
.pill.ok .dot { background: var(--vert); }
.pill.offline .dot, .pill.pending .dot { background: var(--orange); }
.pill.error .dot, .pill.auth .dot { background: var(--rouge); }
.pill.syncing .dot { background: var(--bleu); animation: pulse 1s infinite alternate; }
@keyframes pulse { to { opacity: .3; } }

/* ── Contenu ───────────────────────────────────── */
main { padding: 12px 12px calc(var(--tab-h) + 24px + env(safe-area-inset-bottom)); max-width: 720px; margin: 0 auto; outline: none; }
.stack > * + * { margin-top: 12px; }
.stack-sm > * + * { margin-top: 6px; }
.hstack { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.spread { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.grow { flex: 1; min-width: 0; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.muted { color: var(--doux); }
.small { font-size: .85rem; }
.center { text-align: center; }
.neg { color: var(--rouge); font-weight: 700; }
.pos { color: var(--vert); font-weight: 700; }
.warn-t { color: var(--orange); font-weight: 700; }
h2 { font-size: .8rem; text-transform: uppercase; letter-spacing: .05em; color: var(--doux); margin: 18px 0 6px; font-weight: 700; }
h2:first-child { margin-top: 4px; }

.card { background: var(--carte); border-radius: var(--rayon); padding: 14px; box-shadow: var(--ombre); }
.card.flat { box-shadow: none; border: 1px solid var(--trait); }

/* Tuiles de l'accueil */
.tiles { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.tile {
  border-radius: var(--rayon); padding: 12px 14px; background: var(--carte); text-decoration: none; color: inherit; display: block;
  box-shadow: var(--ombre); min-height: 84px;
}
.tile b { display: block; font-size: 1.9rem; line-height: 1.1; }
.tile.warn { background: var(--orange-clair); color: var(--orange); }
.tile.danger { background: var(--rouge-clair); color: var(--rouge); }
.tile.ok { background: var(--vert-clair); color: var(--vert-fonce); }
.tile.info { background: var(--bleu-clair); color: var(--bleu); }

/* Boutons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 10px 16px;
  border-radius: 12px; border: 1px solid var(--trait-fort); background: var(--carte); cursor: pointer; font-weight: 600;
  text-decoration: none; color: var(--texte); user-select: none; touch-action: manipulation;
}
.btn:active { transform: scale(.98); }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn.primary { background: var(--btn-vert); border-color: var(--btn-vert); color: #fff; }
.btn.danger { background: var(--rouge-clair); border-color: transparent; color: var(--rouge); }
.btn.solid-danger { background: var(--btn-rouge); border-color: var(--btn-rouge); color: #fff; }
.btn.wa { background: var(--wa); border-color: var(--wa); color: #fff; }
.btn.ghost { background: none; border-color: transparent; color: var(--vert-fonce); }
.btn.block { display: flex; width: 100%; }
.btn.big { min-height: 64px; font-size: 1.2rem; border-radius: 16px; }
.btn.huge { min-height: 84px; font-size: 1.35rem; border-radius: 18px; }
.btn.sm { min-height: 40px; padding: 6px 12px; font-size: .9rem; }
.pm { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.pm .btn { min-height: 72px; font-size: 1.8rem; font-weight: 800; border-radius: 16px; }
.pm .minus { background: var(--rouge-clair); color: var(--rouge); border-color: transparent; }
.pm .plus { background: var(--btn-vert); color: #fff; border-color: var(--btn-vert); }

/* Listes */
.list { list-style: none; margin: 0; padding: 0; background: var(--carte); border-radius: var(--rayon); box-shadow: var(--ombre); overflow: hidden; }
.list > li + li { border-top: 1px solid var(--trait); }
.item { display: flex; align-items: center; gap: 12px; padding: 10px 14px; min-height: 60px; text-decoration: none; color: inherit; }
a.item:active, button.item:active { background: var(--fond); }
button.item { width: 100%; border: 0; background: none; text-align: left; cursor: pointer; }
.item .emoji { font-size: 1.6rem; width: 36px; text-align: center; flex: none; }
.item .main { flex: 1; min-width: 0; }
.item .title { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.item .sub { font-size: .85rem; color: var(--doux); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.item .end { text-align: right; flex: none; }
.item .end b { font-size: 1.15rem; }
.qty-ok { color: var(--texte); }
.qty-critique { color: var(--orange); }
.qty-rupture, .qty-negatif { color: var(--rouge); }
.badge { display: inline-block; border-radius: 999px; padding: 1px 8px; font-size: .75rem; font-weight: 700; background: var(--trait); color: var(--texte); vertical-align: middle; }
.badge.danger { background: var(--rouge-clair); color: var(--rouge); }
.badge.warn { background: var(--orange-clair); color: var(--orange); }
.badge.ok { background: var(--vert-clair); color: var(--vert-fonce); }
.badge.info { background: var(--bleu-clair); color: var(--bleu); }

.alert { border-radius: 12px; padding: 10px 12px; font-weight: 600; font-size: .95rem; }
.alert.warn { background: var(--orange-clair); color: var(--orange); }
.alert.danger { background: var(--rouge-clair); color: var(--rouge); }
.alert.ok { background: var(--vert-clair); color: var(--vert-fonce); }
.alert.info { background: var(--bleu-clair); color: var(--bleu); }

.empty { text-align: center; color: var(--doux); padding: 28px 12px; }
.empty .big-emoji { font-size: 2.6rem; display: block; margin-bottom: 6px; }

/* Puces de filtre et contrôle segmenté */
.chips { display: flex; gap: 8px; overflow-x: auto; padding: 2px 0 6px; scrollbar-width: none; }
.chip {
  flex: none; border: 1px solid var(--trait-fort); background: var(--carte); border-radius: 999px; padding: 8px 14px; min-height: 40px;
  cursor: pointer; font-weight: 600; font-size: .9rem; white-space: nowrap;
}
.chip[aria-pressed="true"] { background: var(--btn-vert); border-color: var(--btn-vert); color: #fff; }
.seg { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; background: var(--trait); border-radius: 12px; padding: 3px; gap: 3px; }
.seg button { border: 0; background: none; border-radius: 10px; min-height: 44px; font-weight: 700; cursor: pointer; font-size: .9rem; padding: 4px; }
.seg button[aria-pressed="true"] { background: var(--carte); box-shadow: var(--ombre); color: var(--vert-fonce); }
.seg.vente button[aria-pressed="true"] { color: var(--rouge); }

/* Formulaires */
.field { display: block; }
.field > span { display: block; font-weight: 600; font-size: .9rem; margin-bottom: 4px; }
.field small { display: block; color: var(--doux); margin-top: 3px; font-size: .8rem; }
.input, select.input, textarea.input {
  width: 100%; min-height: 48px; border: 1.5px solid var(--trait-fort); border-radius: 12px; padding: 10px 12px; background: var(--carte);
}
.input:focus { border-color: var(--vert); outline: none; box-shadow: 0 0 0 3px var(--vert-clair); }
.input.big { font-size: 1.3rem; font-weight: 700; }
.input-row { display: flex; gap: 8px; }
.input-row .input { flex: 1; min-width: 0; }
.search { position: sticky; top: calc(var(--top-h) + 4px); z-index: 5; }
.search .input { padding-left: 42px; background: var(--carte); }
.search svg { position: absolute; left: 12px; top: 12px; width: 22px; height: 22px; fill: none; stroke: var(--doux); stroke-width: 2; }
.form-error { color: var(--rouge); font-weight: 600; }
.emoji-pick { display: flex; gap: 6px; flex-wrap: wrap; }
.emoji-pick button { font-size: 1.5rem; width: 48px; height: 48px; border-radius: 12px; border: 1px solid var(--trait); background: var(--carte); cursor: pointer; }
.emoji-pick button[aria-pressed="true"] { border: 2px solid var(--vert); background: var(--vert-clair); }
details.more > summary { cursor: pointer; font-weight: 700; padding: 10px 0; color: var(--vert-fonce); list-style: none; }
details.more > summary::before { content: "▸ "; }
details.more[open] > summary::before { content: "▾ "; }

/* ── Barre d'onglets ───────────────────────────── */
.tabs {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; display: grid; grid-template-columns: repeat(5, 1fr);
  background: var(--carte); border-top: 1px solid var(--trait); height: calc(var(--tab-h) + env(safe-area-inset-bottom));
  padding-bottom: env(safe-area-inset-bottom);
}
.tabs a {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; text-decoration: none;
  color: var(--doux); font-size: .7rem; font-weight: 600; position: relative; min-width: 0;
}
.tabs a[aria-current="page"] { color: var(--vert); }
.tabs a.scan-tab span.ring {
  width: 60px; height: 60px; border-radius: 50%; background: var(--btn-vert); color: #fff; display: grid; place-items: center;
  margin-top: -26px; box-shadow: 0 4px 14px #0f7a4a66; border: 4px solid var(--carte);
}
.tabs a.scan-tab svg { width: 28px; height: 28px; }
.tabs .count {
  position: absolute; top: 5px; left: calc(50% + 6px); background: var(--rouge); color: #fff; border-radius: 10px; font-size: .7rem;
  padding: 0 6px; min-width: 18px; text-align: center; line-height: 18px;
}

/* ── Scanner ───────────────────────────────────── */
.camera {
  position: relative; background: #111; border-radius: 16px; overflow: hidden; aspect-ratio: 4 / 3; max-height: 42vh; width: 100%;
  display: grid; place-items: center; color: #cfd;
}
.camera video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.camera .viseur { position: relative; width: 72%; height: 36%; border: 3px solid #fffd; border-radius: 12px; pointer-events: none; }
.camera .viseur::after { content: ""; position: absolute; left: 5%; right: 5%; top: 50%; border-top: 2px solid #ff5a4f; animation: laser 1.6s ease-in-out infinite alternate; }
@keyframes laser { from { transform: translateY(-18px); } to { transform: translateY(18px); } }
.camera .cam-msg { position: absolute; bottom: 8px; left: 8px; right: 8px; text-align: center; font-size: .85rem; text-shadow: 0 1px 2px #000; }
.camera .cam-tools { position: absolute; top: 8px; right: 8px; display: flex; gap: 6px; }
.camera .cam-tools .icon-btn { background: #0008; color: #fff; }
.camera.flash-ok { box-shadow: 0 0 0 5px var(--vert) inset; }
.camera.flash-err { box-shadow: 0 0 0 5px var(--rouge) inset; }
.camera.off { aspect-ratio: auto; min-height: 120px; }
.scan-result { border-radius: 16px; padding: 12px 14px; background: var(--vert-clair); }
.scan-result.unknown { background: var(--orange-clair); }
.scan-result .name { font-weight: 800; font-size: 1.1rem; }
.scan-result .change { font-size: 1.8rem; font-weight: 800; margin: 2px 0; }
.scan-result .change .arrow { color: var(--doux); font-weight: 400; }
.qty-huge { font-size: 3rem; font-weight: 800; line-height: 1; }

/* ── Feuilles (dialogues en bas d'écran) ───────── */
dialog.sheet {
  border: 0; padding: 0; margin: auto auto 0; width: 100%; max-width: 560px; max-height: 92vh; border-radius: 20px 20px 0 0;
  background: var(--carte); color: var(--texte); box-shadow: 0 -8px 30px #0004;
}
dialog.sheet::backdrop { background: #0007; }
.sheet-body { padding: 16px 16px calc(16px + env(safe-area-inset-bottom)); overflow-y: auto; max-height: 92vh; }
.sheet-body h3 { margin: 0 0 10px; font-size: 1.15rem; }
.sheet-actions { display: flex; gap: 10px; margin-top: 14px; }
.sheet-actions .btn { flex: 1; }

/* Pavé numérique géant (une main, doigts occupés) */
.keypad-display { font-size: 2.4rem; font-weight: 800; text-align: center; padding: 6px; border-bottom: 2px solid var(--trait); min-height: 64px; }
.keypad-display .unit { font-size: 1.1rem; color: var(--doux); font-weight: 600; }
.keypad { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 10px; }
.keypad button { min-height: 58px; font-size: 1.6rem; font-weight: 700; border-radius: 14px; border: 1px solid var(--trait); background: var(--fond); cursor: pointer; }
.keypad button:active { background: var(--trait); }
.quick { display: flex; gap: 6px; margin-top: 8px; }
.quick button { flex: 1; min-height: 44px; border-radius: 10px; border: 1px solid var(--trait-fort); background: var(--carte); font-weight: 700; cursor: pointer; }

/* Notifications éphémères */
#toasts { position: fixed; left: 8px; right: 8px; bottom: calc(var(--tab-h) + 12px + env(safe-area-inset-bottom)); z-index: 50; display: grid; gap: 8px; pointer-events: none; max-width: 560px; margin: 0 auto; }
.toast {
  pointer-events: auto; background: #1d2521; color: #fff; border-radius: 12px; padding: 12px 14px; display: flex; gap: 10px; align-items: center;
  box-shadow: 0 6px 20px #0005; animation: up .18s ease-out;
}
.toast.error { background: var(--rouge); }
.toast .grow { flex: 1; }
.toast button { background: none; border: 0; color: #9ff0c4; font-weight: 800; min-height: 40px; cursor: pointer; text-transform: uppercase; font-size: .85rem; }
@keyframes up { from { transform: translateY(12px); opacity: 0; } }

/* Caisse */
.cart-line { display: flex; align-items: center; gap: 8px; padding: 8px 12px; }
.cart-line .qbtn { width: 44px; height: 44px; border-radius: 10px; border: 1px solid var(--trait-fort); background: var(--carte); font-size: 1.3rem; font-weight: 800; cursor: pointer; }
.total-bar { position: sticky; bottom: calc(var(--tab-h) + 8px); background: var(--carte); border-radius: 16px; padding: 12px; box-shadow: 0 -2px 16px #0002; }
.total-bar .total { font-size: 1.7rem; font-weight: 800; }
.pay-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.pay-grid .btn { min-height: 56px; }
.pay-wave { background: #1dc4ff22; }
.pay-om { background: #ff790022; }
.pay-free { background: #cd1e2522; }
.pos-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; }
.pos-grid button { min-height: 86px; border-radius: 14px; border: 1px solid var(--trait); background: var(--carte); cursor: pointer; padding: 6px; font-size: .8rem; font-weight: 600; box-shadow: var(--ombre); }
.pos-grid button .e { font-size: 1.8rem; display: block; }
.pos-grid button .p { color: var(--doux); font-size: .75rem; display: block; }

/* Graphiques simples (barres) */
.bars { display: flex; align-items: flex-end; gap: 4px; height: 120px; padding-top: 8px; }
.bars .bar { flex: 1; background: var(--vert); border-radius: 4px 4px 0 0; min-height: 2px; position: relative; }
.bars .bar.today { background: var(--vert-fonce); }
.bars-labels { display: flex; gap: 4px; }
.bars-labels span { flex: 1; text-align: center; font-size: .65rem; color: var(--doux); }
.meter { height: 10px; border-radius: 6px; background: var(--trait); overflow: hidden; }
.meter > i { display: block; height: 100%; background: var(--vert); border-radius: 6px; }
.meter.warn > i { background: var(--orange); }
.meter.danger > i { background: var(--rouge); }
.kpi { font-size: 1.5rem; font-weight: 800; }

/* Étiquettes imprimables */
.labels-sheet { display: grid; grid-template-columns: repeat(auto-fill, minmax(62mm, 1fr)); gap: 3mm; }
.label { border: 1px dashed var(--trait-fort); border-radius: 6px; padding: 3mm; text-align: center; background: #fff; color: #000; break-inside: avoid; }
.label .ln { font-weight: 700; font-size: 11pt; margin-bottom: 1mm; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.label .lp { font-weight: 800; font-size: 13pt; }
.label svg { max-width: 100%; height: auto; display: block; margin: 0 auto; }
.label.qr svg { width: 28mm; }
@media print {
  body { background: #fff; }
  .topbar, .tabs, #toasts, .no-print { display: none !important; }
  main { padding: 0; max-width: none; }
  .label { border-color: #bbb; }
  @page { margin: 8mm; }
}

/* Écran d'accueil / bienvenue */
.hero { text-align: center; padding: 24px 8px 8px; }
.hero .logo { font-size: 3.2rem; }
.hero h1 { margin: 6px 0; font-size: 1.6rem; }
.kinds { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.kinds button { min-height: 86px; border-radius: 14px; border: 2px solid var(--trait); background: var(--carte); cursor: pointer; font-weight: 700; }
.kinds button[aria-pressed="true"] { border-color: var(--vert); background: var(--vert-clair); }
.kinds button span { display: block; font-size: 1.8rem; }

.history-day { font-size: .8rem; color: var(--doux); font-weight: 700; padding: 8px 14px 2px; background: var(--fond); }
.banner { border-radius: 12px; padding: 10px 12px; background: var(--bleu-clair); color: var(--bleu); font-size: .9rem; }
.who { display: flex; gap: 6px; flex-wrap: wrap; }
.menu-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.menu-grid a { display: flex; flex-direction: column; gap: 4px; padding: 14px; background: var(--carte); border-radius: var(--rayon); box-shadow: var(--ombre); text-decoration: none; color: inherit; min-height: 92px; }
.menu-grid a .e { font-size: 1.7rem; }
.menu-grid a b { font-size: .98rem; }
.menu-grid a small { color: var(--doux); font-size: .78rem; }
@media (min-width: 560px) { .menu-grid { grid-template-columns: repeat(3, 1fr); } .tiles { grid-template-columns: repeat(4, 1fr); } }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }
.item .title, .item .sub { display: block; }
.card .emoji { font-size: 2.4rem; }
.item input[type="checkbox"], label input[type="checkbox"] { width: 24px; height: 24px; flex: none; accent-color: var(--vert); }
@media (max-width: 380px) { .pill span:last-child { max-width: 90px; overflow: hidden; text-overflow: ellipsis; } }
.tile { min-width: 0; overflow: hidden; }
.tile b.small { font-size: 1.2rem; white-space: nowrap; }
a.card { display: block; text-decoration: none; color: inherit; }
.item a.main, a.main { text-decoration: none; color: inherit; }
.tabs a span { white-space: nowrap; font-size: .66rem; }
body { overflow-x: hidden; }
.cart-line button.main { border: 0; background: none; text-align: left; cursor: pointer; min-width: 0; padding: 0; }
.cart-line .title { font-weight: 600; display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cart-line .sub { font-size: .8rem; color: var(--doux); display: block; }
.cart-line .emoji { font-size: 1.4rem; }
.grid2 > *, .grid3 > * { min-width: 0; }
.card.stack-sm > span { display: block; }
.grid2 .kpi { font-size: 1.25rem; }
small.wo { display: block; font-size: .72em; font-weight: 600; opacity: .8; font-style: italic; }
.btn small.wo { display: inline; margin-left: 6px; }
.tabs small.wo { display: none; }
.tabs.bilingue small.wo { display: block; font-size: .58rem; line-height: 1; }
.item.wrap { flex-wrap: wrap; }
.item.wrap .main { flex: 1 1 calc(100% - 60px); }
.item.wrap .end { flex: 1 1 100%; justify-content: flex-end; padding-left: 48px; }
.pos-grid.pictures { grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); }
.pos-grid.pictures button { min-height: 128px; font-size: .95rem; }
.pos-grid.pictures button .e { font-size: 3rem; }
.pos-grid.pictures button .p { font-size: 1rem; color: var(--texte); font-weight: 800; }
img.thumb { width: 40px; height: 40px; object-fit: cover; border-radius: 10px; display: block; }
.pos-grid button img.thumb { width: 64px; height: 64px; margin: 0 auto 4px; }
.pos-grid.pictures button img.thumb { width: 96px; height: 96px; }
.photo-big { width: 100%; max-height: 260px; object-fit: cover; border-radius: 14px; display: block; }
.card .emoji img.thumb { width: 72px; height: 72px; }
