/* Gift Shop — thème sombre, accent orange, diamants en bleu */
:root {
  --bg: #0D0F13;
  --bg-admin: #0B0D10;
  --surface: #15181E;
  --surface-2: #1C2028;
  --line: #232733;
  --line-2: #2A2F3A;
  --line-3: #3A4150;
  --text: #F2F3F5;
  --text-2: #C9CDD6;
  --muted: #A3A9B6;
  --faint: #8A90A0;
  --accent: #FF8A1F;
  --accent-hover: #FF9B3D;
  --accent-ink: #1A0E00;
  --accent-soft: #1E1A16;
  --link: #FFB066;
  --diamond: #6CCBFF;
  --ok: #34D399;
  --ok-bg: rgba(52, 211, 153, .12);
  --bad: #FF8A8A;
  --bad-strong: #FF6B6B;
  --bad-bg: rgba(255, 107, 107, .12);
  --warn-bg: rgba(255, 138, 31, .12);
  --mvola: #F6C700;
  --orange: #FF7900;
  --radius: 16px;
  --display: 'Bricolage Grotesque', system-ui, sans-serif;
  --body: 'Manrope', system-ui, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--body); font-size: 15px; line-height: 1.5; min-height: 100vh; }
a { color: var(--link); text-decoration: none; }
a:hover { color: #FFCB99; }
img { max-width: 100%; display: block; }
h1, h2, h3 { margin: 0; }
p { margin: 0; }
button, input, select { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.mono { font-family: var(--mono); }
.muted { color: var(--muted); }
.faint { color: var(--faint); }
.dia { color: var(--diamond); font-weight: 700; display: inline-flex; align-items: center; gap: 5px; }
.hidden { display: none !important; }
.ok-ic { color: var(--ok); display: inline-flex; }
.center { text-align: center; }
.login-card h1 + p { margin-top: 10px; }
[data-icon], .logo-mark > svg { display: inline-flex; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.display { font-family: var(--display); font-weight: 800; letter-spacing: -0.03em; }

/* ------------------------------------------------ boutons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 22px; border-radius: 12px; font-weight: 700; font-size: 15px; border: 0; cursor: pointer; text-decoration: none; transition: background .15s, border-color .15s; white-space: nowrap; }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { background: var(--accent-hover); color: var(--accent-ink); }
.btn-ghost { background: transparent; color: var(--text); border: 1px solid var(--line-2); }
.btn-ghost:hover { border-color: var(--line-3); color: var(--text); }
.btn-soft { background: var(--surface-2); color: var(--text); border: 1px solid var(--line-3); }
.btn-danger { background: transparent; color: var(--bad); border: 1px solid #4A2A2E; }
.btn-sm { min-height: 36px; padding: 0 12px; font-size: 13px; border-radius: 8px; }
.btn-block { width: 100%; min-height: 56px; font-size: 16px; font-weight: 800; }
.btn:disabled { background: var(--line-2); color: var(--muted); cursor: not-allowed; border-color: transparent; }

/* ------------------------------------------------ header */
.closed-bar { background: #3A1518; color: #FFD6D6; text-align: center; padding: 12px 16px; font-size: 14px; border-bottom: 1px solid rgba(255,107,107,.4); }
.announce { background: var(--accent); color: var(--accent-ink); font-size: 13px; font-weight: 700; text-align: center; padding: 9px 16px; }
.header { border-bottom: 1px solid #1E222B; }
.header .container { height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.logo { display: flex; align-items: center; gap: 10px; color: var(--text); }
.logo:hover { color: var(--text); }
.logo-mark { width: 36px; height: 36px; border-radius: 10px; background: var(--accent); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.logo-text { font-family: var(--display); font-weight: 800; font-size: 21px; letter-spacing: -0.02em; }
.nav { display: flex; gap: 28px; font-weight: 600; }
.nav a { color: var(--muted); }
.nav a:hover, .nav a[aria-current="page"] { color: var(--text); }
.auth-slot { display: flex; align-items: center; gap: 12px; }
.avatar { width: 40px; height: 40px; border-radius: 50%; background: #5865F2; color: #fff; font-weight: 800; display: flex; align-items: center; justify-content: center; overflow: hidden; flex-shrink: 0; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.user-menu { position: relative; }
.user-menu button { background: none; border: 0; padding: 0; cursor: pointer; border-radius: 50%; }
.menu { position: absolute; right: 0; top: 50px; min-width: 200px; background: var(--surface); border: 1px solid var(--line-2); border-radius: 12px; padding: 6px; z-index: 20; box-shadow: 0 16px 40px rgba(0,0,0,.4); }
.menu a, .menu button { display: flex; width: 100%; min-height: 40px; align-items: center; padding: 0 12px; border-radius: 8px; color: var(--text); font-weight: 600; font-size: 14px; background: none; border: 0; cursor: pointer; text-align: left; }
.menu a:hover, .menu button:hover { background: var(--surface-2); }
.menu .who { padding: 8px 12px 10px; border-bottom: 1px solid var(--line); margin-bottom: 4px; font-size: 13px; color: var(--muted); }
@media (max-width: 760px) { .nav { display: none; } }

/* ------------------------------------------------ cartes & badges */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; white-space: nowrap; }
.badge-ok { background: var(--ok-bg); color: var(--ok); }
.badge-bad { background: var(--bad-bg); color: var(--bad); }
.badge-warn { background: var(--warn-bg); color: var(--link); }
.badge-muted { background: var(--line); color: var(--text-2); }
.badge-manual { background: #2A2520; color: #E5C9A8; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); display: inline-block; }
.dot-accent { background: var(--accent); }

/* ------------------------------------------------ formulaires */
.field { display: flex; flex-direction: column; gap: 8px; }
.field label, .label { font-size: 14px; font-weight: 600; color: var(--text-2); }
.input { min-height: 52px; padding: 0 16px; background: var(--bg); border: 1px solid var(--line-2); border-radius: 12px; color: var(--text); font-size: 16px; width: 100%; }
.input:focus { border-color: var(--accent); outline: none; }
.input-sm { min-height: 40px; font-size: 14px; border-radius: 10px; padding: 0 12px; }
.hint { font-size: 13px; color: var(--faint); }
.row { display: flex; flex-wrap: wrap; gap: 10px; }
.row > .input { flex: 1 1 220px; width: auto; }
.alert { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: 12px; font-size: 14px; line-height: 1.5; }
.alert-ok { background: rgba(52,211,153,.08); border: 1px solid rgba(52,211,153,.35); }
.alert-bad { background: rgba(255,107,107,.08); border: 1px solid rgba(255,107,107,.4); }
.alert-info { background: var(--surface-2); border: 1px solid var(--line-2); }
.alert > div > strong { display: block; }

/* ------------------------------------------------ accueil */
.hero { padding: 72px 24px 56px; display: flex; flex-wrap: wrap; gap: 48px; align-items: center; }
.hero-copy { flex: 1 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 24px; }
.hero h1 { font-family: var(--display); font-weight: 800; font-size: clamp(40px, 6vw, 68px); line-height: 1.02; letter-spacing: -0.035em; }
.hero-lead { font-size: 18px; line-height: 1.6; color: var(--muted); max-width: 520px; }
.chip { align-self: flex-start; display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border: 1px solid var(--line-2); border-radius: 999px; font-size: 13px; font-weight: 600; color: var(--text-2); }
.checks { display: flex; flex-wrap: wrap; gap: 20px; font-size: 14px; color: var(--muted); }
.checks span { display: flex; align-items: center; gap: 6px; }
.hero-visual { flex: 1 1 380px; min-width: 0; display: flex; justify-content: center; }
.receipt { width: 100%; max-width: 420px; padding: 24px; display: flex; flex-direction: column; gap: 18px; box-shadow: 0 30px 80px -30px rgba(255,138,31,.35); }
.receipt-img { height: 200px; border-radius: 12px; background: var(--surface-2); border: 1px solid #262A33; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.receipt-img img { max-height: 170px; }
.kv { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; }
.kv > :first-child { color: var(--muted); }
.dashed { border-top: 1px dashed var(--line-2); padding-top: 16px; display: flex; flex-direction: column; gap: 10px; }
.section { padding: 40px 24px; }
.section h2 { font-family: var(--display); font-weight: 800; font-size: 32px; letter-spacing: -0.02em; }
.section-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 12px; margin-bottom: 24px; }
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; margin-top: 24px; }
.steps .card { padding: 24px; display: flex; flex-direction: column; gap: 10px; }
.steps .num { color: var(--accent); font-family: var(--mono); font-size: 14px; }
.steps h3 { font-size: 19px; }
.steps p { color: var(--muted); line-height: 1.55; }
.pay-logos { display: flex; gap: 10px; flex-wrap: wrap; }
.pay-logo { display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: 10px; background: var(--surface-2); border: 1px solid var(--line-2); font-weight: 700; font-size: 14px; }
.pay-logo i { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }
.pay-logo .mv { background: var(--mvola); }
.pay-logo .om { background: var(--orange); }
.faq { display: flex; flex-wrap: wrap; gap: 40px; padding-bottom: 72px; }
.faq > div:first-child { flex: 1 1 300px; }
.faq-list { flex: 2 1 520px; display: flex; flex-direction: column; gap: 12px; }
details.card { padding: 18px 20px; }
details summary { cursor: pointer; font-weight: 700; font-size: 16px; }
details p { margin-top: 12px; color: var(--muted); line-height: 1.6; }
.footer { border-top: 1px solid #1E222B; }
.footer .container { padding-top: 32px; padding-bottom: 32px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; font-size: 14px; color: var(--faint); }
.footer a { color: var(--muted); }

/* ------------------------------------------------ grille d'items */
.items { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px; }
.items-lg { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; }
.item { display: flex; flex-direction: column; gap: 12px; padding: 12px; border-radius: 14px; background: var(--surface); border: 0; box-shadow: inset 0 0 0 1px var(--line); color: var(--text); text-align: left; cursor: pointer; transition: box-shadow .15s, background .15s; }
a.item:hover { color: var(--text); box-shadow: inset 0 0 0 1px var(--line-3); }
.item:hover { box-shadow: inset 0 0 0 1px var(--line-3); }
.item[aria-pressed="true"] { box-shadow: inset 0 0 0 2px var(--accent); background: var(--accent-soft); }
.item:disabled { cursor: not-allowed; opacity: .5; }
.item-img { height: 120px; border-radius: 10px; background: var(--surface-2); display: flex; align-items: center; justify-content: center; position: relative; overflow: hidden; }
.items-lg .item-img { height: 150px; }
.item-img img { max-height: 100%; max-width: 100%; object-fit: contain; }
.item-img .badge { position: absolute; top: 8px; right: 8px; font-size: 11px; padding: 4px 8px; }
.item-img .cat { position: absolute; top: 8px; left: 8px; font-size: 11px; font-weight: 700; padding: 4px 8px; border-radius: 6px; background: var(--bg); color: var(--muted); }
.item-name { font-weight: 700; font-size: 14px; line-height: 1.3; }
.item-foot { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.price { font-family: var(--display); font-weight: 800; font-size: 17px; white-space: nowrap; }
.skeleton { background: linear-gradient(90deg, var(--surface) 0%, var(--surface-2) 50%, var(--surface) 100%); background-size: 200% 100%; animation: sk 1.2s infinite linear; border-radius: 14px; min-height: 210px; }
@keyframes sk { to { background-position: -200% 0; } }
@media (prefers-reduced-motion: reduce) { .skeleton { animation: none; } * { transition: none !important; } }
.empty { padding: 40px 20px; text-align: center; color: var(--muted); }

/* ------------------------------------------------ boutique */
.page { padding: 40px 24px 72px; }
.page-title { font-family: var(--display); font-weight: 800; font-size: 40px; letter-spacing: -0.03em; margin-bottom: 28px; }
.shop-layout { display: flex; flex-wrap: wrap; gap: 24px; align-items: flex-start; }
.shop-main { flex: 999 1 600px; min-width: 0; display: flex; flex-direction: column; gap: 24px; }
.shop-side { flex: 1 1 340px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
@media (min-width: 1000px) { .shop-side { position: sticky; top: 16px; } }
.panel { padding: 24px; display: flex; flex-direction: column; gap: 18px; }
.panel-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; }
.step-title { display: flex; align-items: center; gap: 12px; }
.step-title h2 { font-size: 19px; }
.step-num { width: 28px; height: 28px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); display: flex; align-items: center; justify-content: center; font: 700 13px/1 var(--mono); flex-shrink: 0; }
.pills { display: flex; flex-wrap: wrap; gap: 8px; }
.pill { min-height: 40px; padding: 0 16px; border-radius: 999px; font-weight: 600; font-size: 14px; cursor: pointer; border: 1px solid var(--line-2); background: transparent; color: var(--text-2); }
.pill[aria-pressed="true"] { background: var(--text); color: var(--bg); border-color: var(--text); }
.search { min-height: 40px; }
.methods { display: flex; flex-direction: column; gap: 8px; border: 0; padding: 0; margin: 0; }
.methods legend { font-size: 14px; font-weight: 600; color: var(--text-2); margin-bottom: 8px; padding: 0; }
.method { display: flex; align-items: center; gap: 12px; min-height: 56px; padding: 0 14px; border-radius: 12px; cursor: pointer; border: 1px solid var(--line-2); }
.method:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }
.method input { accent-color: var(--accent); width: 18px; height: 18px; margin: 0; }
.method .name { flex: 1; font-weight: 700; }
.method .logo-chip { width: 34px; height: 34px; border-radius: 8px; display: flex; align-items: center; justify-content: center; font: 800 12px/1 var(--body); }
.logo-chip.mv { background: var(--mvola); color: #1A1400; }
.logo-chip.om { background: var(--orange); color: #1A0A00; }
.summary { border-top: 1px dashed var(--line-2); padding-top: 16px; display: flex; flex-direction: column; gap: 10px; font-size: 14px; }
.summary .kv > :last-child { text-align: right; }
.total { display: flex; justify-content: space-between; align-items: baseline; padding-top: 10px; border-top: 1px solid var(--line); }
.total strong { font-weight: 700; }
.total .amount { font-family: var(--display); font-weight: 800; font-size: 28px; }
.player-icon { width: 44px; height: 44px; border-radius: 10px; background: var(--surface-2); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.spinner { width: 18px; height: 18px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin .7s linear infinite; display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ------------------------------------------------ connexion */
.login-wrap { min-height: calc(100vh - 72px); display: flex; align-items: center; justify-content: center; padding: 40px 16px; }
.login-card { width: 100%; max-width: 420px; padding: 40px 32px; display: flex; flex-direction: column; gap: 28px; border-radius: 20px; }
.login-card h1 { font-family: var(--display); font-weight: 800; font-size: 32px; letter-spacing: -0.02em; text-align: center; }
.oauth { display: flex; align-items: center; justify-content: center; gap: 12px; width: 100%; min-height: 54px; border-radius: 12px; font-weight: 700; font-size: 16px; }
.oauth-google { background: #fff; color: #1F1F1F; }
.oauth-google:hover { background: #F1F1F1; color: #1F1F1F; }
.oauth-discord { background: #5865F2; color: #fff; }
.oauth-discord:hover { background: #4752C4; color: #fff; }
.oauth[aria-disabled="true"] { opacity: .45; pointer-events: none; }
.notes { display: flex; flex-direction: column; gap: 12px; padding-top: 24px; border-top: 1px solid var(--line); }
.note { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; color: var(--muted); line-height: 1.5; }
.note svg { flex-shrink: 0; margin-top: 2px; }

/* ------------------------------------------------ commandes */
.timeline { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.timeline li { display: flex; gap: 14px; }
.tl-rail { display: flex; flex-direction: column; align-items: center; }
.tl-dot { width: 28px; height: 28px; border-radius: 50%; display: flex; align-items: center; justify-content: center; border: 2px solid var(--line-2); flex-shrink: 0; }
.tl-dot.done { background: var(--ok); border-color: var(--ok); }
.tl-dot.now { border-color: var(--accent); }
.tl-dot.now::after { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--accent); }
.tl-dot.bad { background: var(--bad-strong); border-color: var(--bad-strong); }
.tl-line { width: 2px; flex: 1; min-height: 24px; background: var(--line-2); }
.tl-line.done { background: var(--ok); }
.tl-body { padding-bottom: 20px; }
.tl-body .t { font-weight: 700; }
.tl-body .s { font-size: 13px; color: var(--faint); }
.orders-top { display: flex; flex-wrap: wrap; gap: 24px; margin-bottom: 24px; }
.order-card { flex: 1 1 520px; min-width: 0; padding: 28px; display: flex; flex-direction: column; gap: 24px; }
.order-card h2 { font-family: var(--display); font-weight: 800; font-size: 24px; margin: 6px 0 4px; }

/* ------------------------------------------------ tableaux */
.table-wrap { overflow-x: auto; position: relative; }
.sr-only { top: 0; left: 0; margin: -1px; padding: 0; border: 0; }
.err-text { max-width: 260px; }
table { width: 100%; border-collapse: collapse; }
th { font-weight: 600; color: var(--faint); font-size: 12px; text-transform: uppercase; letter-spacing: .05em; text-align: left; padding: 10px 16px; border-bottom: 1px solid var(--line); white-space: nowrap; }
td { padding: 12px 16px; border-bottom: 1px solid #1E222B; font-size: 14px; white-space: nowrap; }
tr:last-child td { border-bottom: 0; }
.strong, td.strong { font-weight: 600; }
.actions { display: flex; gap: 6px; justify-content: flex-end; }

/* ------------------------------------------------ admin */
body.admin { background: var(--bg-admin); }
.admin-shell { display: flex; flex-wrap: wrap; min-height: 100vh; }
.sidebar { flex: 1 1 240px; max-width: 100%; padding: 20px 14px; border-right: 1px solid #1E222B; display: flex; flex-direction: column; gap: 24px; }
.sidebar .logo-mark { width: 32px; height: 32px; border-radius: 9px; }
.sidebar .logo-text { font-size: 18px; }
.tag { font-size: 11px; font-weight: 700; padding: 3px 7px; border-radius: 6px; background: var(--surface-2); color: var(--muted); }
.side-nav { display: flex; flex-direction: column; gap: 2px; }
.side-nav button { display: flex; align-items: center; gap: 12px; min-height: 44px; padding: 0 12px; border-radius: 10px; color: var(--muted); font-weight: 600; font-size: 14px; background: none; border: 0; cursor: pointer; text-align: left; width: 100%; }
.side-nav button:hover { background: var(--surface); color: var(--text); }
.side-nav button[aria-current="page"] { background: var(--surface-2); color: var(--text); }
.side-nav .count { margin-left: auto; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px; background: var(--bad-strong); color: #2A0606; font-size: 12px; font-weight: 800; display: flex; align-items: center; justify-content: center; }
.side-user { margin-top: auto; display: flex; align-items: center; gap: 10px; padding: 12px; border-radius: 12px; background: var(--surface); }
.side-user .avatar { width: 34px; height: 34px; }
.admin-main { flex: 999 1 640px; min-width: 0; padding: 28px 32px 56px; display: flex; flex-direction: column; gap: 24px; }
@media (max-width: 700px) { .admin-main { padding: 20px 16px 40px; } .sidebar { border-right: 0; border-bottom: 1px solid #1E222B; } .side-user { display: none; } }
.admin-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; }
.admin-head h1 { font-family: var(--display); font-weight: 800; font-size: 30px; letter-spacing: -0.02em; }
.seg { display: flex; gap: 4px; padding: 4px; border-radius: 10px; background: var(--surface); border: 1px solid var(--line); }
.seg button { min-height: 36px; padding: 0 14px; border-radius: 8px; border: 0; background: transparent; color: var(--muted); font-weight: 600; font-size: 13px; cursor: pointer; }
.seg button[aria-pressed="true"] { background: var(--text); color: var(--bg-admin); }
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; }
.kpi { padding: 20px; display: flex; flex-direction: column; gap: 8px; border-radius: 14px; }
.kpi .k { font-size: 13px; color: var(--muted); font-weight: 600; }
.kpi .v { font-family: var(--display); font-weight: 800; font-size: 30px; letter-spacing: -0.02em; }
.kpi.alert-kpi { border-color: rgba(255,107,107,.4); }
.kpi.alert-kpi .v { color: var(--bad); }
.bar { height: 6px; border-radius: 999px; background: var(--line); overflow: hidden; }
.bar > div { height: 100%; background: var(--ok); }
.bar.blue > div { background: var(--diamond); }
.split { display: flex; flex-wrap: wrap; gap: 16px; }
.chart-card { flex: 2 1 480px; min-width: 0; padding: 20px; display: flex; flex-direction: column; gap: 16px; border-radius: 14px; }
.side-card { flex: 1 1 300px; min-width: 0; padding: 20px; display: flex; flex-direction: column; gap: 16px; border-radius: 14px; }
.card-title { font-size: 16px; }
[data-panel] { display: flex; flex-direction: column; gap: 24px; }
.lg-auto { background: var(--accent); }
.lg-man { background: #6B5A4A; }
.legend { display: flex; gap: 16px; font-size: 12px; color: var(--muted); }
.legend span { display: flex; align-items: center; gap: 6px; }
.legend i { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }
.chart { height: 220px; display: flex; align-items: flex-end; gap: 8px; padding-bottom: 4px; border-bottom: 1px solid var(--line); }
.chart .col { flex: 1; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; gap: 2px; }
.chart .auto { background: var(--accent); border-radius: 2px; min-height: 0; }
.chart .man { background: #6B5A4A; border-radius: 4px 4px 0 0; min-height: 0; }
.chart-axis { display: flex; justify-content: space-between; font-size: 12px; color: var(--faint); }
.table-card { padding: 0; overflow: hidden; border-radius: 14px; }
.table-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; padding: 18px 20px; }
.table-head p { font-size: 13px; color: var(--faint); margin-top: 4px; }
.tools { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.pager { display: flex; justify-content: space-between; align-items: center; padding: 12px 20px; border-top: 1px solid var(--line); font-size: 13px; color: var(--faint); }
.err-text { color: var(--bad); font-size: 13px; white-space: normal; min-width: 200px; display: block; }
.inline-input { min-height: 36px; padding: 0 10px; border-radius: 8px; border: 1px solid var(--line-2); background: var(--bg-admin); color: var(--text); font-size: 14px; width: 100%; min-width: 160px; }
.inline-input.num { width: 110px; min-width: 0; }
.switch { position: relative; width: 40px; height: 24px; flex-shrink: 0; }
.switch input { appearance: none; width: 40px; height: 24px; border-radius: 999px; background: var(--line-2); cursor: pointer; margin: 0; transition: background .15s; }
.switch input:checked { background: var(--ok); }
.switch input::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; transition: transform .15s; }
.switch input:checked::after { transform: translateX(16px); }
.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; align-items: end; }

/* ------------------------------------------------ toasts & dialogue */
.toasts { position: fixed; bottom: 20px; right: 20px; display: flex; flex-direction: column; gap: 8px; z-index: 100; max-width: calc(100vw - 40px); }
.toast { padding: 12px 16px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--line-3); font-size: 14px; box-shadow: 0 12px 30px rgba(0,0,0,.4); max-width: 380px; }
.toast.bad { border-color: rgba(255,107,107,.5); }
.toast.ok { border-color: rgba(52,211,153,.5); }
dialog { background: var(--surface); color: var(--text); border: 1px solid var(--line-2); border-radius: 16px; padding: 24px; width: min(440px, calc(100vw - 32px)); }
dialog::backdrop { background: rgba(0,0,0,.6); }
dialog h3 { font-size: 18px; margin-bottom: 8px; }
dialog form { display: flex; flex-direction: column; gap: 16px; }
dialog .row { justify-content: flex-end; }

/* ------------------------------------------------ admin : boutique & catalogue */
.shop-switch { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 20px; border-radius: 14px; }
.shop-switch.closed { border-color: rgba(255,107,107,.5); background: #1D1416; }
.shop-switch .state { display: flex; align-items: center; gap: 12px; }
.shop-switch .dot { width: 10px; height: 10px; }
.shop-switch.closed .dot { background: var(--bad-strong); }
.shop-switch .row { align-items: center; }
.shop-switch .input-sm { width: min(360px, 100%); }
.thumb { width: 44px; height: 44px; border-radius: 8px; background: var(--surface-2); display: flex; align-items: center; justify-content: center; overflow: hidden; flex-shrink: 0; }
.thumb img { width: 100%; height: 100%; object-fit: contain; }
.thumb svg { width: 20px; height: 20px; }
.item-cell { display: flex; align-items: center; gap: 12px; }
.sync-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.sync-grid .k { font-size: 13px; color: var(--muted); font-weight: 600; }
.sync-grid .v { font-weight: 700; margin-top: 4px; }

/* =====================================================================
   Animations & finitions (v4)
   Durées courtes, easing doux, uniquement transform/opacity.
   ===================================================================== */
:root {
  --ease-out: cubic-bezier(.22, 1, .36, 1);
  --t-fast: 160ms;
  --t-med: 320ms;
  --t-slow: 560ms;
}

/* Apparition au défilement, avec léger décalage entre les cartes */
.reveal { opacity: 0; transform: translateY(14px); }
.reveal.in {
  opacity: 1; transform: none;
  transition: opacity var(--t-slow) var(--ease-out), transform var(--t-slow) var(--ease-out);
  transition-delay: calc(var(--i, 0) * 35ms);
}

/* Hero : entrée en cascade + carte qui flotte doucement */
.hero-anim > * { animation: rise var(--t-slow) var(--ease-out) both; }
.hero-anim > *:nth-child(2) { animation-delay: 60ms; }
.hero-anim > *:nth-child(3) { animation-delay: 120ms; }
.hero-anim > *:nth-child(4) { animation-delay: 180ms; }
.hero-anim > *:nth-child(5) { animation-delay: 240ms; }
.hero-visual { animation: rise var(--t-slow) var(--ease-out) 200ms both; }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
.float { animation: float 6s ease-in-out infinite; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
.chip .dot { animation: pulse 2.4s ease-in-out infinite; }
@keyframes pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(52,211,153,.5); } 50% { box-shadow: 0 0 0 6px rgba(52,211,153,0); } }

/* Cartes d'items : survol qui soulève, image qui zoome un peu */
.item { transition: box-shadow var(--t-fast), background var(--t-fast), transform var(--t-med) var(--ease-out); }
.item.in:hover:not(:disabled), .item.in:focus-visible { transform: translateY(-4px); }
.item:hover:not(:disabled) { box-shadow: inset 0 0 0 1px var(--line-3), 0 14px 30px -18px rgba(0,0,0,.8); }
.item-img img { transition: transform var(--t-med) var(--ease-out); }
.item:hover:not(:disabled) .item-img img { transform: scale(1.07); }
.item:active:not(:disabled) { transform: translateY(-1px) scale(.99); }
.item[aria-pressed="true"] { box-shadow: inset 0 0 0 2px var(--accent), 0 0 0 4px rgba(255,138,31,.12); }
.item-img .cat { z-index: 1; }
.item-img .cat-fav { background: var(--accent); color: var(--accent-ink); }
.item-fav { box-shadow: inset 0 0 0 1px rgba(255,138,31,.55); background: linear-gradient(180deg, #1F1A15 0%, var(--surface) 60%); }
.item-name { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.6em; }

/* Boutons */
.btn { transition: background var(--t-fast), border-color var(--t-fast), transform var(--t-fast); }
.btn:active:not(:disabled) { transform: scale(.97); }
.btn-primary { box-shadow: 0 8px 24px -12px rgba(255,138,31,.8); }

/* Catégories */
.pill { display: inline-flex; align-items: center; gap: 8px; transition: background var(--t-fast), color var(--t-fast), border-color var(--t-fast); }
.pill:hover { border-color: var(--line-3); color: var(--text); }
.pill-count { font-size: 12px; font-weight: 700; color: var(--faint); }
.pill[aria-pressed="true"] .pill-count { color: #4B5263; }
@media (max-width: 640px) {
  .pills-scroll { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-inline: -16px; padding-inline: 16px; }
  .pills-scroll::-webkit-scrollbar { display: none; }
  .pills-scroll .pill { flex-shrink: 0; }
}
.more-wrap { margin-top: 28px; }

/* Item favori mis en avant */
.fav-spot {
  display: flex; flex-wrap: wrap; align-items: stretch; overflow: hidden; color: var(--text);
  border-color: rgba(255,138,31,.45); position: relative;
  background: radial-gradient(120% 140% at 0% 0%, rgba(255,138,31,.16) 0%, transparent 55%), var(--surface);
  transition: transform var(--t-med) var(--ease-out), box-shadow var(--t-med);
}
.fav-spot:hover { color: var(--text); transform: translateY(-3px); box-shadow: 0 30px 60px -30px rgba(255,138,31,.45); }
.fav-img { flex: 1 1 300px; min-height: 240px; display: flex; align-items: center; justify-content: center; background: rgba(13,15,19,.4); }
.fav-img img { max-height: 220px; transition: transform var(--t-slow) var(--ease-out); filter: drop-shadow(0 18px 30px rgba(0,0,0,.5)); }
.fav-spot:hover .fav-img img { transform: scale(1.06) rotate(-2deg); }
.fav-body { flex: 2 1 340px; padding: 32px; display: flex; flex-direction: column; gap: 14px; justify-content: center; }
.fav-body h2 { font-family: var(--display); font-weight: 800; font-size: clamp(28px, 4vw, 40px); letter-spacing: -0.03em; }
.fav-body p { max-width: 480px; line-height: 1.6; }
.fav-tag { align-self: flex-start; font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--accent-ink); background: var(--accent); padding: 5px 10px; border-radius: 999px; position: relative; overflow: hidden; }
.fav-tag::after { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, transparent 30%, rgba(255,255,255,.55) 50%, transparent 70%); transform: translateX(-100%); animation: shine 3.2s ease-in-out infinite; }
@keyframes shine { 0%, 60% { transform: translateX(-100%); } 100% { transform: translateX(100%); } }
.fav-meta { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.fav-buy { display: flex; flex-wrap: wrap; align-items: center; gap: 20px; margin-top: 6px; }
.fav-price { font-family: var(--display); font-weight: 800; font-size: 32px; }

/* Bandeau boutique fermée : glisse depuis le haut */
.closed-bar { animation: drop var(--t-med) var(--ease-out) both; }
@keyframes drop { from { transform: translateY(-100%); } to { transform: none; } }

/* Toasts et dialogues */
.toast { animation: toast-in var(--t-med) var(--ease-out) both; }
@keyframes toast-in { from { opacity: 0; transform: translateY(10px) scale(.98); } to { opacity: 1; transform: none; } }
dialog[open] { animation: pop var(--t-med) var(--ease-out) both; }
@keyframes pop { from { opacity: 0; transform: translateY(8px) scale(.98); } to { opacity: 1; transform: none; } }

/* Accessibilité : aucune animation si l'utilisateur les a désactivées */
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; }
  .hero-anim > *, .hero-visual, .float, .chip .dot, .fav-tag::after, .closed-bar, .toast, dialog[open] { animation: none !important; }
  .item, .item-img img, .fav-spot, .fav-img img, .btn { transition: none !important; }
  .item:hover, .fav-spot:hover, .item:hover .item-img img, .fav-spot:hover .fav-img img { transform: none !important; }
}

.textarea { min-height: 150px; padding: 12px 14px; font-size: 13px; line-height: 1.5; resize: vertical; }
.imp-list { display: flex; flex-direction: column; gap: 6px; margin-top: 12px; font-size: 13px; max-height: 260px; overflow: auto; }
.imp-list div { display: flex; gap: 10px; align-items: baseline; }
.star { background: none; border: 1px solid var(--line-2); color: var(--faint); width: 36px; height: 36px; border-radius: 8px; cursor: pointer; font-size: 16px; }
.star[aria-pressed="true"] { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }

/* ------------------------------------------------ catégories, tri, filtres (v5) */
.catbar {
  display: flex; gap: 6px; padding: 6px; margin-bottom: 14px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 14px;
  overflow-x: auto; scrollbar-width: none; scroll-snap-type: x proximity;
}
.catbar::-webkit-scrollbar { display: none; }
.cat-tab {
  flex-shrink: 0; scroll-snap-align: start;
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 40px; padding: 0 14px; border-radius: 10px; border: 0;
  background: transparent; color: var(--muted); font-weight: 700; font-size: 14px; cursor: pointer;
  transition: background var(--t-fast), color var(--t-fast);
}
.cat-tab:hover { background: var(--surface-2); color: var(--text); }
.cat-tab[aria-pressed="true"] { background: var(--accent); color: var(--accent-ink); }
.cat-count {
  min-width: 22px; height: 20px; padding: 0 6px; border-radius: 999px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--surface-2); color: var(--faint); font-size: 11px; font-weight: 800;
  transition: background var(--t-fast), color var(--t-fast);
}
.cat-tab[aria-pressed="true"] .cat-count { background: rgba(26,14,0,.18); color: var(--accent-ink); }

.toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; margin-bottom: 20px; }
.toolbar-compact { margin-bottom: 4px; }
.search-box { flex: 1 1 240px; min-width: 0; }
.search-box .input { width: 100%; }
.sort-box { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.sort-box label { font-size: 13px; font-weight: 700; color: var(--muted); }
.sort-box select {
  width: auto; min-width: 170px; cursor: pointer; appearance: none; -webkit-appearance: none;
  padding-right: 36px; background-color: var(--surface);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23A3A9B6' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center;
}
.sort-box select option { background: var(--surface); color: var(--text); }
.check { display: inline-flex; align-items: center; gap: 10px; min-height: 40px; cursor: pointer; font-size: 14px; font-weight: 600; color: var(--text-2); user-select: none; }
.check input {
  appearance: none; -webkit-appearance: none; width: 20px; height: 20px; margin: 0; flex-shrink: 0;
  border: 1.5px solid var(--line-3); border-radius: 6px; background: var(--bg); cursor: pointer;
  display: grid; place-content: center; transition: background var(--t-fast), border-color var(--t-fast);
}
.check input::after { content: ""; width: 10px; height: 6px; border: 2.5px solid var(--accent-ink); border-top: 0; border-right: 0; transform: rotate(-45deg) scale(0); transition: transform var(--t-fast) var(--ease-out); margin-top: -2px; }
.check input:checked { background: var(--accent); border-color: var(--accent); }
.check input:checked::after { transform: rotate(-45deg) scale(1); }
@media (max-width: 640px) {
  .catbar { margin-inline: -16px; border-radius: 0; border-left: 0; border-right: 0; }
  .sort-box { margin-left: 0; flex: 1 1 100%; }
  .sort-box select { flex: 1; }
}

/* =====================================================================
   En-tête, pied de page et contact (v8, style « Stock Items »)
   ===================================================================== */
.topbar {
  position: sticky; top: 0; z-index: 40;
  background: rgba(11, 13, 18, .88);
  backdrop-filter: saturate(160%) blur(10px); -webkit-backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.topbar-in { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 66px; }
.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--text); }
.brand:hover { color: var(--text); }
.brand-mark {
  display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 11px; flex-shrink: 0;
  background: linear-gradient(140deg, #FF9B3D, #FF6B1A 55%, #D94A00);
  box-shadow: 0 6px 18px rgba(255, 107, 26, .38), inset 0 1px 0 rgba(255,255,255,.25);
  transition: transform var(--t-med) var(--ease-out);
}
.brand-mark img { width: 24px; height: 24px; filter: brightness(0) invert(1) drop-shadow(0 1px 1px rgba(0,0,0,.3)); }
.brand:hover .brand-mark { transform: rotate(-6deg) scale(1.05); }
.brand-text { font-family: 'Rajdhani', var(--display); font-weight: 700; font-size: 21px; letter-spacing: 1.6px; line-height: 1; }
.brand-text b { color: #FF6B1A; margin-left: 4px; font-weight: 700; }
.topnav { display: flex; align-items: center; gap: 4px; }
.topnav .auth-slot { display: flex; align-items: center; gap: 4px; }
.navlink {
  display: inline-flex; align-items: center; gap: 7px; min-height: 44px; padding: 0 12px;
  color: var(--muted); font-weight: 600; font-size: 15px; border-radius: 10px;
  transition: background var(--t-fast), color var(--t-fast);
}
.navlink:hover, .navlink[aria-current="page"] { color: var(--text); background: var(--surface); }
.navlink > span:first-child { display: inline-flex; }
.avatar-btn { margin-left: 6px; background: none; border: 0; padding: 0; cursor: pointer; border-radius: 50%; }
.avatar-btn .avatar { width: 36px; height: 36px; border: 2px solid var(--line-2); background: #1462B8; font-size: 15px; transition: border-color var(--t-fast); }
.avatar-btn:hover .avatar, .avatar-btn[aria-expanded="true"] .avatar { border-color: var(--accent); }
@media (max-width: 640px) { .hide-sm { display: none !important; } }
@media (max-width: 480px) { .hide-xs { display: none !important; } .brand-text { font-size: 18px; } }

/* Pied de page */
.site-footer { margin-top: 48px; border-top: 1px solid var(--line); background: #0F1218; padding: 28px 0 calc(16px + env(safe-area-inset-bottom)); }
.footer-in { display: grid; gap: 22px; }
@media (min-width: 768px) { .footer-in { grid-template-columns: 1.3fr 1fr auto; align-items: start; } }
.footer-brand { display: flex; gap: 12px; align-items: flex-start; }
.footer-brand .brand-mark { width: 34px; height: 34px; border-radius: 10px; }
.footer-brand .brand-mark img { width: 20px; height: 20px; }
.footer-brand p { margin: 2px 0 0; max-width: 340px; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.footer-nav a { display: inline-flex; align-items: center; min-height: 36px; color: var(--muted); font-size: 14px; }
.footer-nav a:hover { color: var(--text); }
.footer-title { margin: 0 0 10px; font-size: 12px; font-weight: 800; letter-spacing: 1.5px; text-transform: uppercase; color: var(--muted); }
.contact-row { display: flex; flex-wrap: wrap; gap: 8px; }
.btn-fb { background: #1466D1; color: #fff; }
.btn-fb:hover { background: #1A74E8; color: #fff; }
.btn-wa { background: #25D366; color: #06240f; }
.btn-wa:hover { background: #33E077; color: #06240f; }
.contact-row .btn { min-height: 44px; padding: 0 16px; border-radius: 12px; font-size: 14px; }
.contact-row .btn > span { display: inline-flex; }
.footer-bottom { margin-top: 22px; padding-top: 14px; border-top: 1px solid var(--line); font-size: 13px; color: var(--faint); }

/* Contact flottant en bas à droite */
.contact-dock { position: fixed; right: max(16px, env(safe-area-inset-right)); bottom: calc(16px + env(safe-area-inset-bottom)); z-index: 60; display: flex; flex-direction: column; align-items: flex-end; gap: 12px; }
.contact-fab {
  width: 58px; height: 58px; border-radius: 50%; border: 0; cursor: pointer; display: grid; place-items: center;
  background: #25D366; color: #06240f; box-shadow: 0 12px 30px -8px rgba(37, 211, 102, .55), 0 4px 12px rgba(0,0,0,.4);
  transition: transform var(--t-med) var(--ease-out), background var(--t-fast);
  animation: fab-in var(--t-slow) var(--ease-out) 600ms both;
}
.contact-fab:hover { transform: translateY(-2px) scale(1.04); }
.contact-fab.is-open { background: var(--surface-2); color: var(--text); box-shadow: 0 8px 24px rgba(0,0,0,.5); }
.contact-fab > span { display: inline-flex; }
@keyframes fab-in { from { opacity: 0; transform: translateY(16px) scale(.9); } to { opacity: 1; transform: none; } }
.contact-panel {
  width: min(320px, calc(100vw - 32px)); padding: 16px; border-radius: 16px;
  background: var(--surface); border: 1px solid var(--line-2); box-shadow: 0 24px 50px -12px rgba(0,0,0,.7);
  transform-origin: bottom right; animation: pop var(--t-med) var(--ease-out) both;
}
.contact-panel[hidden] { display: none; }
.contact-panel-title { margin: 0 0 4px; font-weight: 800; font-size: 16px; }
.contact-panel .muted { margin: 0 0 12px; }
.contact-panel .btn { flex: 1 1 auto; }
body:has(.shop-side) .contact-dock { bottom: calc(16px + env(safe-area-inset-bottom)); }
@media (prefers-reduced-motion: reduce) {
  .contact-fab, .contact-panel { animation: none !important; transition: none !important; }
  .brand:hover .brand-mark { transform: none; }
}

/* ------------------------------------------------ barre de catégories défilante (v9) */
.hs { position: relative; margin-bottom: 14px; }
.hs > .catbar { margin-bottom: 0; cursor: grab; user-select: none; scroll-behavior: auto; }
.hs > .catbar.is-dragging { cursor: grabbing; }
.hs > .catbar.is-dragging .cat-tab { pointer-events: none; }
/* Fondu sur le bord quand il reste des catégories cachées */
.hs.can-right > .catbar { -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 72px), transparent); mask-image: linear-gradient(90deg, #000 calc(100% - 72px), transparent); }
.hs.can-left > .catbar { -webkit-mask-image: linear-gradient(90deg, transparent, #000 72px); mask-image: linear-gradient(90deg, transparent, #000 72px); }
.hs.can-left.can-right > .catbar { -webkit-mask-image: linear-gradient(90deg, transparent, #000 72px, #000 calc(100% - 72px), transparent); mask-image: linear-gradient(90deg, transparent, #000 72px, #000 calc(100% - 72px), transparent); }
.hs-btn {
  position: absolute; top: 50%; z-index: 2; width: 36px; height: 36px; margin-top: -18px;
  display: grid; place-items: center; border-radius: 50%; cursor: pointer;
  background: var(--surface-2); color: var(--text); border: 1px solid var(--line-3);
  box-shadow: 0 6px 16px rgba(0,0,0,.45);
  transition: opacity var(--t-fast), transform var(--t-fast), background var(--t-fast);
}
.hs-btn:hover { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.hs-btn:active { transform: scale(.94); }
.hs-btn:disabled { opacity: 0; pointer-events: none; }
.hs-prev { left: -10px; }
.hs-next { right: -10px; }
/* Sur écran tactile on fait glisser au doigt : pas de flèches */
@media (hover: none) { .hs-btn { display: none; } .hs > .catbar { cursor: auto; } }
@media (max-width: 640px) {
  .hs { margin-inline: -16px; }
  .hs > .catbar { margin-inline: 0; }
  .hs-prev { left: 4px; } .hs-next { right: 4px; }
}

/* Pas de barres de défilement parasites pendant l'animation d'ouverture */
dialog { overflow-x: hidden; scrollbar-gutter: auto; }

/* ------------------------------------------------ animation « cadeau en route » */
.gift-anim { display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; padding: 8px 0; }
.ga-stage { width: 110px; height: 110px; position: relative; }
.ga-stage::after { content: ""; position: absolute; left: 22%; right: 22%; bottom: 4px; height: 8px; border-radius: 50%; background: rgba(0,0,0,.45); filter: blur(3px); animation: ga-shadow 1.4s ease-in-out infinite; }
.ga-box { width: 100%; height: 100%; overflow: visible; }
.ga-body { transform-origin: 60px 104px; animation: ga-shake 1.4s ease-in-out infinite; }
.ga-lid { transform-origin: 60px 56px; animation: ga-lid 1.4s ease-in-out infinite; }
.ga-spark { fill: #FFD24A; opacity: 0; transform-origin: 60px 60px; animation: ga-spark 1.4s ease-out infinite; }
.ga-title { font-size: 17px; font-weight: 800; }
.ga-text { font-size: 14px; color: var(--muted); max-width: 320px; }
.ga-dots { display: inline-flex; gap: 6px; margin-top: 2px; }
.ga-dots i { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); animation: ga-dot 1.2s ease-in-out infinite; }
.ga-dots i:nth-child(2) { animation-delay: .15s; } .ga-dots i:nth-child(3) { animation-delay: .3s; }
@keyframes ga-shake { 0%, 100% { transform: rotate(0); } 20% { transform: rotate(-4deg); } 40% { transform: rotate(4deg); } 60% { transform: rotate(-2deg); } 80% { transform: rotate(1deg); } }
@keyframes ga-lid { 0%, 35%, 100% { transform: translateY(0) rotate(0); } 55% { transform: translateY(-16px) rotate(-8deg); } 70% { transform: translateY(-10px) rotate(4deg); } }
@keyframes ga-spark { 0%, 45% { opacity: 0; transform: scale(.6); } 60% { opacity: 1; } 100% { opacity: 0; transform: scale(1.25); } }
@keyframes ga-shadow { 0%, 100% { transform: scaleX(1); opacity: .8; } 55% { transform: scaleX(.8); opacity: .5; } }
@keyframes ga-dot { 0%, 80%, 100% { transform: scale(.6); opacity: .4; } 40% { transform: scale(1); opacity: 1; } }
.ga-overlay { position: fixed; inset: 0; z-index: 90; display: grid; place-items: center; padding: 16px; background: rgba(8, 10, 14, .78); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); animation: toast-in var(--t-med) var(--ease-out) both; }
.ga-overlay .gift-anim { padding: 28px 32px; border-radius: 20px; background: var(--surface); border: 1px solid var(--line-2); box-shadow: 0 30px 60px -20px rgba(0,0,0,.8); min-width: min(320px, 100%); }
.gift-live { padding: 22px; border-radius: 16px; border: 1px solid rgba(255,138,31,.35); background: radial-gradient(120% 120% at 50% 0%, rgba(255,138,31,.12), transparent 60%), var(--surface-2); }
@media (prefers-reduced-motion: reduce) {
  .ga-body, .ga-lid, .ga-spark, .ga-stage::after, .ga-dots i { animation: none !important; }
  .ga-spark { opacity: 1; }
}

/* Boutique : « Afficher plus » sous la grille */
.more-row { display: flex; flex-direction: column; align-items: center; gap: 10px; margin-top: 6px; }
.more-row .btn { min-width: 220px; }
@media (max-width: 640px) { .more-row .btn { width: 100%; } }

/* Logos MVola / Orange Money */
.pay-icon { width: 34px; height: 34px; border-radius: 9px; flex-shrink: 0; object-fit: cover; box-shadow: 0 2px 8px rgba(0,0,0,.35); }
.pay-logo img { width: 22px; height: 22px; border-radius: 6px; }
.pay-line { display: inline-flex; align-items: center; gap: 8px; }
.pay-line img { width: 18px; height: 18px; border-radius: 5px; }
.footer-pay { display: flex; gap: 8px; margin-top: 10px; }
.footer-pay img { width: 28px; height: 28px; border-radius: 7px; }
