/* Couleurs et arrondis de SCCompanion (ui/theme.py) : la boutique se reconnaît comme celle de l'appli */
:root {
  --bg: #111B2A; --panel: #1D2B40; --field: #162336; --line: #2A3A51; --text: #E6EBF2; --muted: #8D99AB;
  --accent: #56A1A6; --accent-light: #7FD1D6; --accent-text: #04252B;
}
* { box-sizing: border-box; }
body {
  margin: 0; padding: 32px 16px; background: var(--bg); color: var(--text);
  font-family: "Segoe UI", system-ui, sans-serif; line-height: 1.55;
}
header, main, footer { max-width: 980px; margin: 0 auto; }
h1 { color: var(--accent-light); margin: 0 0 6px; }
h2 { margin: 0 0 2px; font-size: 1.15rem; }
.muted { color: var(--muted); }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 16px; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; margin-top: 20px; }
.pack { display: flex; gap: 14px; align-items: flex-start; }
.pack img { border-radius: 14px; flex: none; }
.pack p { margin: 4px 0; }
.pill {
  display: inline-block; margin-top: 6px; padding: 2px 12px; border-radius: 999px;
  background: var(--accent); color: var(--accent-text); font-weight: 700;
}
footer { margin-top: 32px; font-size: .85rem; }
.message { max-width: 560px; margin: 24px auto 0; }
.message label { display: block; margin: 14px 0 6px; color: var(--muted); }
.message input {
  display: block; width: 100%; margin-top: 6px; padding: 9px 12px; border-radius: 10px;
  border: 1px solid var(--line); background: var(--field); color: var(--text); font: inherit;
}
.actions { display: flex; gap: 10px; margin-top: 16px; }
button {
  padding: 8px 18px; border-radius: 10px; border: 1px solid var(--line); background: var(--panel);
  color: var(--text); font: inherit; cursor: pointer;
}
button.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-text); font-weight: 700; }

/* Espace vendeur */
header.bar { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; }
header.bar p { margin: 0; }
nav { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
nav a, a.button {
  display: inline-block; padding: 8px 16px; border-radius: 10px; border: 1px solid var(--line);
  background: var(--panel); color: var(--text); text-decoration: none;
}
a.button.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-text); font-weight: 700; }
a { color: var(--accent-light); }
main > .card { margin-top: 16px; }
.narrow { max-width: 560px; margin-left: auto; margin-right: auto; }
.card label { display: block; margin: 14px 0 6px; color: var(--muted); }
.card input:not([type=checkbox]), .card select {
  display: block; margin-top: 6px; padding: 9px 12px; border-radius: 10px; width: 100%;
  border: 1px solid var(--line); background: var(--field); color: var(--text); font: inherit;
}
.card label.check { display: flex; gap: 8px; align-items: center; color: var(--text); }
.field-unit { display: flex; align-items: center; gap: 8px; color: var(--text); }
.field-unit input { width: auto !important; }
.field-error { display: block; margin-top: 4px; color: #F08A8A; }
.row { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
form.inline { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.notice { padding: 10px 14px; border-radius: 12px; background: var(--panel); border: 1px solid var(--line); }
.notice.success { border-color: #3E8E6B; }
.notice.error { border-color: #B55; }
.notice.warning { border-color: #C9A34A; }
.pill.ok { background: #2E6B52; color: #DDF5EA; }
.pill.error { background: #7A3434; color: #FBE3E3; }
.pill.state-publie { background: #2E6B52; color: #DDF5EA; }
.pill.state-en_validation, .pill.state-brouillon { background: #5E5130; color: #F7EBC8; }
.pill.state-refuse, .pill.state-suspendu { background: #7A3434; color: #FBE3E3; }
.pill.state-retire { background: var(--line); color: var(--text); }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
.stats div { background: var(--bg); border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; }
.stats span { display: block; font-size: .85rem; }
.stats strong { font-size: 1.25rem; }
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 8px 6px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { color: var(--muted); font-weight: 600; }
ul.errors li { margin: 4px 0; }
@media (max-width: 640px) { table { display: block; overflow-x: auto; } }

/* Parcours guidé */
ol.steps { display: flex; gap: 8px; list-style: none; padding: 0; margin: 20px 0 0; flex-wrap: wrap; }
ol.steps li {
  display: flex; align-items: center; gap: 8px; padding: 6px 14px 6px 6px; border-radius: 999px;
  background: var(--panel); border: 1px solid var(--line); color: var(--muted);
}
ol.steps li span {
  display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%;
  background: var(--bg); border: 1px solid var(--line); font-weight: 700;
}
ol.steps li.now { color: var(--text); border-color: var(--accent); }
ol.steps li.now span { background: var(--accent); border-color: var(--accent); color: var(--accent-text); }
ol.steps li.done span { background: #2E6B52; border-color: #2E6B52; color: #DDF5EA; }
label.drop {
  display: block; padding: 22px; border: 2px dashed var(--line); border-radius: 14px; text-align: center;
}
label.drop input { margin: 0 auto 8px; max-width: 420px; }
ol.first-steps { list-style: none; padding: 0; margin: 0; }
ol.first-steps li { display: flex; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--line); }
ol.first-steps li:last-child { border-bottom: none; }
ol.first-steps p { margin: 2px 0 8px; }
ol.first-steps .dot {
  flex: none; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%;
  background: var(--bg); border: 1px solid var(--line); font-weight: 700;
}
ol.first-steps li.now .dot { background: var(--accent); border-color: var(--accent); color: var(--accent-text); }
ol.first-steps li.done .dot { background: #2E6B52; border-color: #2E6B52; color: #DDF5EA; }
ol.first-steps li.done strong { color: var(--muted); }
ol.errors li { margin: 6px 0; }

/* En-tête : menu et tête de Copi (guide de la page) à droite, comme la barre de titre de l'appli */
header.bar .bar-right { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
nav a.now { border-color: var(--accent); color: var(--accent-light); }
.count {
  display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 11px;
  background: var(--accent); color: var(--accent-text); font-size: .8rem; font-weight: 700;
}
.count.big { min-width: 36px; height: 36px; border-radius: 18px; font-size: 1.05rem; }
button:disabled { opacity: .45; cursor: default; }
button.danger { border-color: #B55; color: #F5B5B5; }
.grow { flex: 1; min-width: 200px; }
.card textarea {
  display: block; width: 100%; margin-top: 6px; padding: 9px 12px; border-radius: 10px; resize: vertical;
  border: 1px solid var(--line); background: var(--field); color: var(--text); font: inherit;
}
form.inline input.grow { width: auto; margin: 0; }

/* Espace équipe */
ul.todo { list-style: none; padding: 0; margin: 8px 0 0; }
ul.todo li { display: flex; align-items: center; gap: 14px; padding: 8px 0; }
ul.todo li span:nth-child(2) { flex: 1; }
.list-row { display: flex; align-items: center; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.list-row:last-child { border-bottom: none; }
.list-row > img, img.thumb { border-radius: 12px; flex: none; }
.faces { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 10px; }
.faces figure, .theme-imgs figure { margin: 0; text-align: center; color: var(--muted); font-size: .85rem; }
.faces img { display: block; background: var(--bg); border-radius: 14px; padding: 4px; }
.sounds { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 10px; margin-top: 10px; }
.sounds div { display: flex; flex-direction: column; gap: 4px; color: var(--muted); }
.sounds audio { width: 100%; height: 36px; border-radius: 18px; }
.theme-imgs { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 10px; }
.theme-imgs img { display: block; max-width: 420px; max-height: 200px; border-radius: 12px; }
.tag {
  display: inline-block; margin: 4px 6px 0 0; padding: 3px 12px; border-radius: 999px; border: 1px solid var(--line);
  color: var(--text); text-decoration: none; font-size: .9rem;
}
a.tag.now { background: var(--accent); border-color: var(--accent); color: var(--accent-text); font-weight: 700; }
.quote { margin: 8px 0 0; font-style: italic; }
.report-actions { display: flex; flex-direction: column; gap: 8px; min-width: 240px; }
details summary { cursor: pointer; color: var(--muted); margin-top: 6px; }
details[open] summary { color: var(--text); }
details label { margin-top: 8px; }
details button { margin-top: 8px; }
td.row-actions { min-width: 210px; }
td.row-actions form > button { margin-bottom: 4px; }

/* Cases à cocher de l'appli (ui/theme.py, checkboxPrimary) : carré arrondi, coche sur fond turquoise */
input[type=checkbox] {
  appearance: none; -webkit-appearance: none; flex: none; width: 18px; height: 18px; margin: 0; border-radius: 5px;
  border: 2px solid #7C8899; background: transparent; cursor: pointer; vertical-align: middle;
}
input[type=checkbox]:hover { border-color: var(--accent); }
input[type=checkbox]:checked {
  border-color: var(--accent); background: var(--accent) url("check.svg") center / 14px no-repeat;
}
input[type=checkbox]:focus-visible { outline: 2px solid var(--accent-light); outline-offset: 2px; }
.card label.check { cursor: pointer; }
.rules { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 6px 24px; }
.rule { padding: 6px 0; }
.rule label { margin-top: 0; }
.small { font-size: .85rem; display: block; margin-top: 2px; }
form.inline select.auto { width: auto; margin: 0; }
.card input[type=search] { margin: 0; }
/* En-tête : titre et tête de Copi sur la première ligne, le menu dessous sur toute la largeur */
header.bar { align-items: center; }
header.bar .bar-right { display: contents; }
header.bar .guide-open { order: 2; }
header.bar nav { order: 3; flex-basis: 100%; }

/* Largeur : la page prend l'écran (jusqu'à 1600 px), marges qui suivent sa taille */
body { padding: clamp(16px, 3vw, 40px); }
header, main, footer { max-width: 1600px; }
@media (max-width: 720px) {
  h1 { font-size: 1.5rem; }
  header.bar { gap: 10px; }
  nav { gap: 6px; }
  nav a, a.button, button { padding: 7px 12px; }
  .card { padding: 14px; }
  .list-row { gap: 10px; }
  .list-row .button { width: 100%; text-align: center; }
  ul.todo li { flex-wrap: wrap; }
  form.inline { align-items: stretch; }
  form.inline > * { flex: 1 1 100%; }
  .sounds { grid-template-columns: 1fr; }
  .theme-imgs img { max-width: 100%; }
  td.row-actions, .report-actions { min-width: 0; }
  table { display: block; overflow-x: auto; }
}
/* Bouton « Choisir un fichier » au style de l'appli */
input[type=file] { color: #8D99AB; font: inherit; max-width: 100%; }
input[type=file]::file-selector-button {
  margin-right: 12px; padding: 8px 16px; border-radius: 10px; border: 1px solid #56A1A6;
  background: #56A1A6; color: #04252B; font: inherit; font-weight: 700; cursor: pointer;
}
input[type=file]::file-selector-button:hover { background: #7FD1D6; border-color: #7FD1D6; }
@media (max-width: 720px) { table { scrollbar-width: none; } table::-webkit-scrollbar { display: none; } }

/* Tableaux sur petit écran : chaque ligne devient une fiche (tables.js), jamais d'ascenseur horizontal */
@media (max-width: 960px) {
  table.stack { display: block; overflow: visible; }
  table.stack tbody { display: block; }
  table.stack tr.stack-head { display: none; }
  table.stack tr { display: block; padding: 10px 0; border-bottom: 1px solid var(--line); }
  table.stack tr:last-child { border-bottom: none; }
  table.stack td { display: flex; gap: 12px; justify-content: space-between; align-items: baseline;
    padding: 4px 0; border: none; text-align: right; overflow-wrap: anywhere; }
  table.stack td::before { content: attr(data-label); color: var(--muted); text-align: left; flex: none; max-width: 45%; }
  table.stack td[data-label=""]::before, table.stack td:not([data-label])::before { content: none; }
  table.stack td:not([data-label]), table.stack td[data-label=""] { justify-content: flex-start; text-align: left; }
  table.stack td.row-actions { display: block; text-align: left; }
  table.stack td.row-actions::before { content: none; }
}

/* Les longs codes (e-mails, identifiants de PC, détails du journal) passent à la ligne au lieu d'élargir le tableau */
table td.muted, table td .muted, table td .mono { overflow-wrap: anywhere; }
table { max-width: 100%; }

/* « Base de données → » : bouton turquoise en fin de menu, en miroir de « ← Espace équipe » de la base */
nav a.to-base { background: var(--accent); border-color: var(--accent); color: var(--accent-text); font-weight: 700; }
nav a.to-base:hover { background: var(--accent-light); border-color: var(--accent-light); }

/* Tri des tableaux (tables.js) : un clic sur l'en-tête, une flèche pour le sens */
th.sortable { cursor: pointer; user-select: none; }
th.sortable:hover, th.sortable:focus-visible { color: var(--accent-light); outline: none; }
th.asc, th.desc { color: var(--accent-light); }
th.asc::after { content: " ▲"; font-size: .8em; }
th.desc::after { content: " ▼"; font-size: .8em; }

/* Vitrine publique (home.html, message.html) : Copi en grand, sa bulle, les étapes, les packs */
body.public main { max-width: 1200px; }
body.public header, body.public footer { max-width: 1200px; }
header.bar h1 a { color: inherit; text-decoration: none; }
.hero { display: flex; align-items: center; gap: 32px; padding: 28px 32px; margin-top: 20px;
  background: radial-gradient(circle at 12% 50%, rgba(86, 161, 166, .22), transparent 55%), var(--panel); }
.hero-copi { flex: none; width: 180px; height: 180px; filter: drop-shadow(0 8px 24px rgba(86, 161, 166, .35)); cursor: pointer; }
.hero-text { flex: 1; min-width: 0; }
.copi-bubble { position: relative; display: inline-block; max-width: 640px; padding: 12px 16px 14px; border-radius: 16px;
  background: var(--bg); border: 1px solid var(--accent); }
.copi-bubble::before { content: ""; position: absolute; left: -9px; top: 22px; width: 16px; height: 16px;
  background: var(--bg); border-left: 1px solid var(--accent); border-bottom: 1px solid var(--accent);
  transform: rotate(45deg); border-radius: 0 0 0 4px; }
.copi-name { display: block; color: var(--accent-light); font-weight: 700; letter-spacing: .08em; font-size: .8rem; margin-bottom: 4px; }
.copi-bubble p { margin: 0; }
.copi-bubble strong { color: var(--accent-light); }
.hero-title { font-size: 2rem; margin: 18px 0 6px; color: var(--text); }
.hero-text > p { margin: 0; font-size: 1.05rem; }
.how { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 16px; }
.how-step { display: flex; gap: 14px; align-items: flex-start; }
.how-step p { margin: 4px 0 0; }
.how-num { flex: none; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 18px;
  background: var(--accent); color: var(--accent-text); font-weight: 700; }
.section-title { margin: 28px 0 12px; font-size: 1.3rem; }
.packs-grid { margin-top: 0; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); }
.pack-card { display: flex; gap: 16px; align-items: flex-start; transition: border-color .15s, transform .15s; }
.pack-card:hover { border-color: var(--accent); transform: translateY(-2px); }
.pack-card img { flex: none; border-radius: 16px; }
.pack-body { flex: 1; min-width: 0; }
.pack-body h3 { margin: 0; font-size: 1.1rem; }
.pack-body p { margin: 4px 0; }
.pack-foot { display: flex; align-items: center; gap: 10px; margin-top: 8px; }
.pack-foot .pill { margin: 0; }
.small { font-size: .88rem; }
.empty { display: flex; align-items: center; gap: 16px; }
.empty p { margin: 0; }
.creators { display: flex; align-items: center; gap: 20px; margin-top: 28px; }
.creators h2 { margin: 0 0 4px; }
.creators p { margin: 0; }
.creators > div { flex: 1; }
.creators img, .empty img { flex: none; }
.message-copi { display: flex; gap: 20px; align-items: flex-start; max-width: 720px; margin: 24px auto 0; }
.message-copi > div { flex: 1; min-width: 0; }
.message-copi h2 { margin-top: 0; }
@media (max-width: 760px) {
  .hero { flex-direction: column; text-align: center; padding: 22px 18px; gap: 16px; }
  .hero-copi { width: 130px; height: 130px; }
  .copi-bubble { text-align: left; }
  .copi-bubble::before { left: 50%; top: -9px; transform: translateX(-50%) rotate(135deg); }
  .hero-title { font-size: 1.5rem; }
  .how { grid-template-columns: 1fr; }
  .creators, .message-copi { flex-direction: column; text-align: center; }
  .creators .button { width: 100%; text-align: center; }
  .packs-grid { grid-template-columns: 1fr; }
}

/* Vitrine : outils au-dessus des packs (recherche, type, prix, tri) et « Voir plus » */
.shop-tools { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin: 0 0 14px; }
.shop-tools .search { flex: 1 1 260px; position: relative; margin: 0; }
.shop-tools .search input {
  width: 100%; padding: 9px 12px 9px 36px; border-radius: 10px; border: 1px solid var(--line); color: var(--text);
  font: inherit; background: var(--panel) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%238D99AB' stroke-width='2.2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='M20 20l-3.5-3.5'/%3E%3C/svg%3E") 12px center no-repeat;
}
.shop-tools .search input:focus { border-color: var(--accent); outline: none; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.seg { display: inline-flex; gap: 2px; padding: 3px; border-radius: 10px; background: var(--panel); border: 1px solid var(--line); }
.seg button { border: none; background: transparent; color: var(--muted); padding: 6px 12px; border-radius: 7px; font-size: .92rem; }
.seg button:hover { color: var(--text); }
.seg button.on { background: rgba(86, 161, 166, .22); color: var(--accent-light); font-weight: 600; }
.shop-tools select { width: auto; padding: 8px 12px; border-radius: 10px; border: 1px solid var(--line);
  background: var(--panel); color: var(--text); font: inherit; }
.more { display: flex; flex-direction: column; align-items: center; gap: 6px; margin-top: 14px; }
.more button { padding: 9px 28px; }
.pack-card[hidden] { display: none; }
@media (max-width: 760px) {
  .shop-tools .seg { flex-wrap: wrap; }
  .shop-tools select { flex: 1 1 100%; }
}
[hidden] { display: none !important; }   /* un élément caché le reste, quel que soit son style */

/* Badge « Nouveau » et pagination de la vitrine */
.pack-card { position: relative; }
.pack-card.is-new { border-color: rgba(127, 209, 214, .55); }
.badge-new {
  position: absolute; top: -10px; right: 14px; padding: 3px 12px; border-radius: 999px; font-size: .78rem;
  font-weight: 700; letter-spacing: .04em; background: #E0B44C; color: #1B1405; box-shadow: 0 4px 12px rgba(224, 180, 76, .35);
}
.pager { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 16px; }
.pages { display: flex; gap: 6px; flex-wrap: wrap; }
.pages button { min-width: 38px; padding: 7px 10px; border-radius: 10px; }
.pages button.on { background: var(--accent); border-color: var(--accent); color: var(--accent-text); font-weight: 700; }
.pages button.gap { border: none; background: transparent; min-width: 20px; padding: 7px 2px; }
.pages button:disabled { cursor: default; }
.per-page { display: flex; align-items: center; gap: 8px; margin: 0; }
.per-page select { width: auto; margin: 0; padding: 6px 10px; border-radius: 10px; border: 1px solid var(--line);
  background: var(--panel); color: var(--text); font: inherit; }
@media (max-width: 760px) { .pager { justify-content: center; } }

/* Achat depuis la vitrine : bouton sur la carte, page d'achat */
.pack-foot .buy-btn { margin-left: auto; padding: 6px 16px; }
.back { margin: 18px 0 0; }
.buy { display: flex; gap: 22px; align-items: center; margin-top: 12px; }
.buy-thumb { border-radius: 20px; flex: none; }
.buy-main h2 { margin: 0 0 4px; font-size: 1.5rem; }
.buy-main p { margin: 4px 0; }
.pill.big { font-size: 1.1rem; padding: 4px 16px; margin-top: 8px; }
.buy-form { margin-top: 14px; }
.copi-line { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 8px; }
.copi-line img { flex: none; }
.copi-line .copi-bubble { max-width: none; flex: 1; }
.buy-form label input { font-family: "Cascadia Mono", Consolas, monospace; letter-spacing: .02em; }
@media (max-width: 760px) {
  .buy { flex-direction: column; text-align: center; }
  .copi-line { flex-direction: column; align-items: center; }
  .copi-line .copi-bubble::before { left: 50%; top: -9px; transform: translateX(-50%) rotate(135deg); }
}
/* Prix et bouton calés en bas de chaque carte : alignés d'une carte à l'autre, quelle que soit la description */
.pack-card { align-items: stretch; }
.pack-card img { align-self: flex-start; }
.pack-body { display: flex; flex-direction: column; }
.pack-foot { margin-top: auto; padding-top: 10px; }

/* Essayer un pack sur le site : Copi et ses humeurs, sons, thème en mini-fenêtre de l'appli */
.trial { margin-top: 14px; }
.trial h2 { margin: 0 0 12px; }
.trial h3 { margin: 16px 0 6px; font-size: 1rem; }
.trial-grid { display: flex; gap: 28px; align-items: flex-start; }
.trial-copi { flex: none; width: 220px; text-align: center; }
.trial-stage { width: 220px; height: 220px; display: grid; place-items: center; border-radius: 24px;
  background: radial-gradient(circle, rgba(86, 161, 166, .22), transparent 70%), var(--bg); border: 1px solid var(--line); }
.trial-stage img { width: 180px; height: 180px; border-radius: 50%; }
.trial-stage img.free { border-radius: 0; }
.trial-name { margin: 10px 0 2px; font-weight: 700; color: var(--accent-light); }
.trial-side { flex: 1; min-width: 0; }
.trial-side h3:first-child { margin-top: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips button { padding: 7px 14px; border-radius: 999px; font-size: .92rem; }
.chips button.on, .chips button:hover { border-color: var(--accent); color: var(--accent-light); }
.mock-app { --m-bg: #111B2A; --m-bar: #142030; --m-side: #13202F; --m-panel: #1D2B40; --m-line: #2A3A51; --m-text: #E6EBF2;
  --m-muted: #8D99AB; --m-accent: #56A1A6; --m-accent-text: #04252B; --m-accent-light: #7FD1D6; --m-ok: #7BE0A0;
  border-radius: 16px; overflow: hidden; border: 1px solid var(--m-line); color: var(--m-text);
  background: linear-gradient(rgba(0, 0, 0, .35), rgba(0, 0, 0, .35)), var(--m-image, none) center / cover, var(--m-bg); }
.mock-bar { display: flex; align-items: center; gap: 10px; padding: 8px 14px; background: var(--m-bar);
  border-bottom: 1px solid var(--m-line); font-weight: 700; letter-spacing: .08em; font-size: .8rem; color: var(--m-accent-light); }
.mock-body { display: flex; min-height: 170px; }
.mock-side { display: flex; flex-direction: column; gap: 4px; padding: 12px 10px; width: 150px; background: var(--m-side);
  border-right: 1px solid var(--m-line); font-size: .85rem; color: var(--m-muted); }
.mock-side span { padding: 6px 10px; border-radius: 8px; }
.mock-side span.on { background: var(--m-panel); color: var(--m-accent-light); }
.mock-main { flex: 1; padding: 16px; }
.mock-card { background: var(--m-panel); border: 1px solid var(--m-line); border-radius: 14px; padding: 14px; max-width: 420px; }
.mock-card p { margin: 6px 0 12px; color: var(--m-muted); font-size: .9rem; }
.mock-btn { display: inline-block; padding: 6px 14px; border-radius: 9px; background: var(--m-accent); color: var(--m-accent-text);
  font-weight: 700; font-size: .85rem; margin-right: 10px; }
.mock-pill { color: var(--m-ok); font-weight: 700; font-size: .9rem; }
.pack-foot .try-btn { margin-left: auto; padding: 6px 14px; }
.pack-foot .try-btn + .buy-btn { margin-left: 0; }
@media (max-width: 760px) {
  .trial-grid { flex-direction: column; align-items: center; }
  .trial-side { text-align: center; }
  .chips { justify-content: center; }
  .mock-side { display: none; }
}
/* Bas des cartes : prix et durée, puis les deux boutons (qui passent dessous si la carte est étroite) */
.pack-foot { flex-wrap: wrap; row-gap: 8px; }
.pack-foot .pill, .pack-foot .small { white-space: nowrap; }
.foot-btns { display: flex; gap: 8px; margin-left: auto; }
.foot-btns .button { padding: 6px 14px; margin: 0 !important; white-space: nowrap; }

/* Icône haut-parleur (même dessin que l'appli) et notifications d'exemple sur un écran de jeu */
.chips button { display: inline-flex; align-items: center; gap: 6px; }
.chips button .ico { flex: none; color: var(--accent-light); }
.game-stage { position: relative; height: 190px; margin-top: 12px; border-radius: 16px; overflow: hidden;
  border: 1px solid var(--line);
  background: radial-gradient(ellipse at 30% 120%, rgba(86, 161, 166, .25), transparent 60%),
              radial-gradient(circle at 80% 10%, rgba(255, 255, 255, .06), transparent 40%), #05080D; }
.game-hint { position: absolute; left: 14px; bottom: 10px; }
.notif { position: absolute; top: 14px; right: 14px; width: min(380px, calc(100% - 28px)); display: flex; gap: 12px;
  align-items: flex-start; padding: 12px 14px; border-radius: 14px; background: rgba(22, 35, 54, .96);
  border: 1px solid var(--accent); box-shadow: 0 10px 28px rgba(0, 0, 0, .5);
  opacity: 0; transform: translateX(24px); transition: opacity .25s, transform .25s; }
.notif.show { opacity: 1; transform: none; }
.notif img { flex: none; border-radius: 50%; }
.notif img.free { border-radius: 0; }
.notif-body { flex: 1; min-width: 0; }
.notif-head { display: flex; align-items: center; gap: 8px; }
.notif-head strong { flex: 1; color: var(--accent-light); font-size: .95rem; }
.notif-close { color: var(--muted); display: inline-flex; }
.notif p { margin: 4px 0 0; font-size: .92rem; }
/* Carte d'un pack : image et texte en haut, puis une ligne sur toute la largeur (prix, durée, boutons) */
.pack-card { display: grid; grid-template-columns: 96px 1fr; grid-template-rows: 1fr auto; column-gap: 16px; row-gap: 0; }
.pack-card > img { grid-column: 1; grid-row: 1; }
.pack-card > .pack-body { grid-column: 2; grid-row: 1; }
.pack-card > .pack-foot { grid-column: 1 / -1; grid-row: 2; display: flex; align-items: center; gap: 10px;
  flex-wrap: nowrap; margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); }
.pack-card > .pack-foot .foot-btns { margin-left: auto; }
@media (max-width: 420px) {   /* très étroit : boutons sous le prix, en pleine largeur */
  .pack-card > .pack-foot { flex-wrap: wrap; }
  .pack-card > .pack-foot .foot-btns { margin-left: 0; width: 100%; }
  .pack-card > .pack-foot .foot-btns .button { flex: 1; text-align: center; }
}

/* Durée d'un pack : bien visible (pastille avec icône) et expliquée avant de payer */
.pill-dur { display: inline-flex; align-items: center; gap: 6px; padding: 3px 11px; border-radius: 999px;
  font-weight: 700; font-size: .88rem; white-space: nowrap; }
.pill-dur.limited { background: rgba(224, 163, 65, .16); color: #F2C77A; border: 1px solid rgba(224, 163, 65, .45); }
.pill-dur.forever { background: rgba(39, 160, 72, .14); color: #7BE0A0; border: 1px solid rgba(39, 160, 72, .4); }
.price-line { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 8px; }
.price-line .pill.big { margin-top: 0; }
.price-line .pill-dur { font-size: .98rem; padding: 4px 13px; }
.duration-note { margin: 4px 0 12px; padding: 10px 14px; border-radius: 12px; line-height: 1.5; }
.duration-note.limited { background: rgba(224, 163, 65, .10); border: 1px solid rgba(224, 163, 65, .35); }
.duration-note.forever { background: rgba(39, 160, 72, .08); border: 1px solid rgba(39, 160, 72, .3); }
.duration-note strong { color: var(--text); }
@media (max-width: 760px) { .price-line { justify-content: center; } }
/* La ligne du bas passe sur deux lignes si la carte est trop étroite (prix + durée, puis les boutons à droite) */
.pack-card > .pack-foot { flex-wrap: wrap; row-gap: 10px; }

/* Bas des cartes sur une ligne : prix en grand et sa durée dessous à gauche, boutons à droite */
.pack-card > .pack-foot { flex-wrap: nowrap; align-items: center; }
.price-block { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.price-big { font-size: 1.3rem; font-weight: 800; line-height: 1.1; color: var(--text); white-space: nowrap; }
.price-block.free .price-big { color: #7BE0A0; }
.pill-dur.compact { padding: 0; border: none; background: none; font-size: .82rem; font-weight: 600; gap: 4px; }
.pill-dur.compact svg { width: 13px; height: 13px; }
.pack-card > .pack-foot .foot-btns { margin-left: auto; flex: none; }
@media (max-width: 420px) {
  .pack-card > .pack-foot { flex-wrap: wrap; }
}


/* Listes déroulantes : même hauteur que les champs de saisie (le menu natif était plus bas), flèche du thème */
.card select, form.inline select, select {
  appearance: none; -webkit-appearance: none; line-height: 1.55; padding-right: 34px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%238D99AB' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center; }
