/* ===== Interface « tableau de bord » : menu latéral + pages ===== */
:root {
  --bg: #0d1017;          /* bleu nuit très sombre */
  --surface: #161b26;
  --surface-2: #1e2533;
  --sidebar: #10141d;
  --text: #f1f3f8;
  --muted: #8f99ad;
  --border: #262e3e;
  --accent: #e3e8f0;      /* argent (boutons) */
  --accent-deep: #b9c2d0;
  --accent-2: #dfe6f2;    /* blanc bleuté (accents) */
  --accent-soft: rgba(200, 212, 230, .12);
  --on-accent: #0d1017;   /* texte sur fond argent */
  --gold: linear-gradient(135deg, #f4f6fa, #b9c2d0);
  --radius: 14px;
  --sidebar-w: 268px;
}

h1, h2, h3, .page-head h1 { font-family: "Sora", "Inter", sans-serif; letter-spacing: -.01em; }
.price, .card__title, .level, .crypto__amount { font-family: "Sora", "Inter", sans-serif; }
.btn--primary { background: var(--gold); color: var(--on-accent); font-weight: 700; box-shadow: 0 6px 22px rgba(200, 212, 230, .22), inset 0 1px 0 rgba(255, 255, 255, .35); }
.btn--primary:hover { filter: brightness(1.18); }
.badge { background: var(--gold); color: var(--on-accent); }
.cart-btn__count { background: var(--accent); color: var(--on-accent); }
a { color: var(--accent-2); }

.has-shell { min-height: 100vh; }
.shell { display: grid; grid-template-columns: var(--sidebar-w) 1fr; min-height: 100vh; }

/* ---- Menu latéral ---- */
.sidebar {
  position: sticky; top: 0; height: 100vh; overflow-y: auto; background: var(--sidebar);
  border-right: 1px solid var(--border); padding: 1.2rem .9rem; display: flex; flex-direction: column; gap: 1rem;
}
.brand { display: flex; align-items: center; gap: .65rem; text-decoration: none; padding: .2rem .5rem .6rem; }
.brand img { width: 40px; height: 40px; border-radius: 10px; object-fit: cover; }
.brand__text { display: grid; font-family: "Cinzel", serif; font-size: 1.05rem; color: var(--text); line-height: 1.05; letter-spacing: .04em; }
.brand__text small { font-size: .58rem; letter-spacing: .5em; color: var(--muted); margin-top: .2rem; }
.nav { display: grid; gap: .15rem; }
.nav__label { font-size: .72rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); padding: 1rem .7rem .4rem; }
.nav__label:first-child { padding-top: .2rem; }
.nav__item {
  display: flex; align-items: center; gap: .75rem; width: 100%; text-align: left; background: none; border: 0;
  color: var(--text); text-decoration: none; font-size: .98rem; font-weight: 500; padding: .62rem .8rem; border-radius: 10px;
}
.nav__item:hover { background: var(--surface-2); }
.nav__item.is-active { background: linear-gradient(90deg, rgba(200, 212, 230, .16), rgba(200, 212, 230, .02)); color: #fff; font-weight: 600; box-shadow: inset 3px 0 0 var(--accent); border-radius: 4px 10px 10px 4px; }
.nav__item.is-active .nav__icon { color: var(--accent-2); }
.nav__icon { width: 20px; text-align: center; color: var(--muted); font-size: 1rem; flex-shrink: 0; }
.nav__badge { margin-left: auto; font-size: .72rem; font-weight: 700; padding: .05rem .5rem; border-radius: 999px; background: var(--surface-2); color: var(--accent-2); }
.nav__badge:empty { display: none; }
.sidebar__foot { margin-top: auto; display: grid; gap: .2rem; padding: .8rem; font-size: .82rem; color: var(--muted); border-top: 1px solid var(--border); }
.sidebar__foot a { color: var(--muted); text-decoration: none; }

/* ---- Zone principale ---- */
.main { min-width: 0; display: flex; flex-direction: column; }
.topbar {
  position: sticky; top: 0; z-index: 10; display: flex; align-items: center; gap: .8rem; padding: .8rem 1.6rem;
  background: rgba(13, 16, 23, .92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--border);
}
.topbar .search { flex: 1; max-width: 560px; }
.topbar__menu, .topbar__brand { display: none; }
.topbar__brand img { border-radius: 8px; display: block; }
.topbar__btn { margin-left: auto; background: none; border: 1px solid var(--border); color: var(--text); border-radius: 10px; padding: .5rem .9rem; white-space: nowrap; }
.topbar__btn:hover { background: var(--surface-2); }
.content { padding: 2rem 1.6rem 1rem; width: 100%; max-width: 1240px; display: grid; gap: 1.2rem; align-content: start; flex: 1; }

/* ---- Pages ---- */
.view { display: grid; gap: 1.2rem; animation: viewIn .2s ease; }
@keyframes viewIn { from { opacity: 0; transform: translateY(4px); } }
.page-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.page-head h1 { font-size: clamp(1.7rem, 3vw, 2.2rem); line-height: 1.15; margin-bottom: .35rem; }
.page-head p { color: var(--muted); max-width: 720px; }
.panel { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.4rem; }
.panel__title { font-size: 1.15rem; margin-bottom: 1rem; }
.block-title { font-size: 1.2rem; margin-top: .4rem; }
.panel details { background: var(--bg); }

/* Accueil */
.welcome { display: grid; grid-template-columns: 220px 1fr; gap: 1.6rem; align-items: center; }
.welcome__logo { width: 100%; height: auto; border-radius: 16px; box-shadow: 0 0 40px rgba(200, 212, 230, .35); }
.welcome h2 { font-size: clamp(1.4rem, 2.6vw, 2rem); line-height: 1.2; margin: .6rem 0 .8rem; }
.welcome h2 em { font-style: normal; color: var(--accent-2); }
.welcome__points { list-style: none; display: grid; gap: .4rem; color: var(--muted); margin-bottom: 1.2rem; }
.welcome__points li::before { content: "✓  "; color: var(--accent-2); font-weight: 700; }
.welcome__actions { display: flex; flex-wrap: wrap; gap: .6rem; }
.tag { background: var(--accent-soft); color: var(--accent-2); }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.stat { display: grid; gap: .2rem; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.1rem 1.2rem; text-decoration: none; color: var(--text); transition: border-color .2s; }
.stat:hover { border-color: var(--accent); }
.stat__label { font-size: .75rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
.stat strong { font-family: "Sora", sans-serif; font-size: 1.35rem; }
.stat small { color: var(--muted); }
.step span { background: var(--accent); }

/* Recharges : filtres */
.chips { display: flex; flex-wrap: wrap; gap: .4rem; }
.chip { background: var(--surface); border: 1px solid var(--border); color: var(--muted); padding: .45rem .95rem; border-radius: 999px; font-weight: 500; }
.chip:hover { color: var(--text); }
.chip.is-active { background: var(--accent-soft); border-color: var(--accent); color: #fff; }
.card { background: var(--surface); }
.card:hover, .account:hover { border-color: var(--accent); }
.card__detail { color: var(--accent-2); }
.level { color: var(--accent-2); background: var(--accent-soft); }

/* Mes commandes en page */
.order-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.1rem 1.2rem; display: grid; gap: .7rem; margin-bottom: .8rem; }
.order-card.is-focus { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent); }
.order-card__head { display: flex; justify-content: space-between; gap: .6rem; flex-wrap: wrap; align-items: baseline; }
.order-card__head small { color: var(--muted); }
.order-card .code { margin: 0; }
.empty-state { text-align: center; padding: 3rem 1rem; color: var(--muted); display: grid; gap: 1rem; justify-items: center; }
.empty-state__icon { width: 64px; height: 64px; display: grid; place-items: center; border-radius: 16px; background: var(--accent-soft); color: var(--accent-2); font-size: 1.6rem; }
.empty-state strong { color: var(--text); font-size: 1.1rem; }

.contact__links { display: flex; flex-wrap: wrap; gap: .6rem; }
.foot { color: var(--muted); font-size: .8rem; padding: 1.5rem 0 .5rem; border-top: 1px solid var(--border); margin-top: 1rem; }

/* Codes livrés, sélection active */
.code { border-color: var(--accent); }
.method:has(input:checked) { background: var(--accent-soft); }
.crypto__warn { background: var(--accent-soft); border-color: var(--accent); }

/* ---- Mobile : le menu devient un tiroir ---- */
@media (max-width: 900px) {
  .shell { grid-template-columns: 1fr; }
  .sidebar {
    position: fixed; inset: 0 auto 0 0; width: min(290px, 85vw); z-index: 40;
    transform: translateX(-100%); transition: transform .25s ease;
  }
  .sidebar.is-open { transform: translateX(0); box-shadow: 10px 0 40px rgba(0, 0, 0, .5); }
  .scrim { position: fixed; inset: 0; background: rgba(0, 0, 0, .55); z-index: 35; }
  .topbar { padding: .7rem 1rem; gap: .6rem; flex-wrap: wrap; }
  .topbar__menu, .topbar__brand { display: block; }
  .topbar__menu { font-size: 1.4rem; color: var(--text); }
  .topbar .search { order: 5; flex-basis: 100%; max-width: none; }
  .topbar__btn span { display: none; }
  .content { padding: 1.3rem 1rem 1rem; }
  .welcome { grid-template-columns: 1fr; text-align: left; }
  .welcome__logo { width: 160px; }
  .stats { grid-template-columns: 1fr; }
}

/* Choix du mode de recharge */
.methods--modes { grid-template-columns: 1fr; }
.method--mode { align-items: flex-start !important; }
.method--mode span { display: grid; gap: .15rem; font-weight: 400; }
.method--mode small { color: var(--muted); font-weight: 400; }
.method--mode.is-disabled { opacity: .5; cursor: not-allowed; }
.code--id { border-style: solid; }

/* Attente de recharge */
.waitbox { display: grid; gap: .5rem; text-align: left; background: var(--bg); border: 1px solid var(--border); border-radius: 12px; padding: .9rem 1rem; }
.waitbox p { color: var(--muted); font-size: .92rem; margin: 0; }
.waitbox__wait, .waitbox__done { display: flex; align-items: center; gap: .6rem; }
.waitbox__done strong { color: #6fdc9a; }

/* Fiche d'une recharge */
.card--link { cursor: pointer; }
.back { color: var(--muted); text-decoration: none; font-size: .92rem; }
.back:hover { color: var(--text); }
.buy { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 1.2rem; align-items: start; }
.buy__main { display: grid; gap: .9rem; }
.buy__head { display: flex; gap: 1.1rem; align-items: center; }
.buy__icon { width: 96px; height: 96px; flex-shrink: 0; display: grid; place-items: center; font-size: 3rem; border-radius: 16px;
  background: radial-gradient(circle at 30% 30%, rgba(200, 212, 230, .35), transparent 60%), var(--surface-2); border: 1px solid var(--border); }
.buy__head h1 { font-size: 1.9rem; line-height: 1.1; }
.buy__sub { color: var(--muted); margin: .15rem 0 .5rem; }
.buy__pills { display: flex; flex-wrap: wrap; gap: .4rem; }
.pill { font-size: .82rem; font-weight: 600; padding: .3rem .7rem; border-radius: 8px; background: var(--surface-2); border: 1px solid var(--border); }
.pill--ok { color: #6fdc9a; border-color: rgba(111, 220, 154, .35); background: rgba(111, 220, 154, .08); }
.buy__label { font-size: .95rem; margin-top: .4rem; }
.denoms { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: .6rem; }
.denom { display: grid; gap: .2rem; text-decoration: none; color: var(--text); background: var(--bg); border: 1px solid var(--border); border-radius: 12px; padding: .8rem 1rem; transition: border-color .15s; }
.denom:hover { border-color: var(--accent); }
.denom span { color: var(--muted); }
.denom.is-active { border: 2px solid var(--accent-2); background: var(--accent-soft); }
.denom.is-active span { color: var(--text); }
.methods--row { grid-template-columns: 1fr 1fr; }
.buy__uid { display: grid; gap: .35rem; font-weight: 500; font-size: .92rem; }
.buy__uid input { font: inherit; color: var(--text); background: var(--bg); border: 1px solid var(--border); border-radius: 10px; padding: .65rem .9rem; font-size: 1.05rem; letter-spacing: .05em; }
.buy__uid small { color: var(--muted); font-weight: 400; }
.qtyrow { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; }
.stepper { display: flex; align-items: center; border: 1px solid var(--border); border-radius: 10px; overflow: hidden; background: var(--bg); }
.stepper button { width: 44px; height: 44px; border: 0; background: none; color: var(--text); font-size: 1.3rem; }
.stepper button:disabled { opacity: .35; cursor: not-allowed; }
.stepper input { width: 64px; text-align: center; border: 0; background: none; color: var(--text); font: inherit; font-weight: 700; font-size: 1.05rem; }
.buy__hint { color: var(--muted); font-size: .85rem; margin-top: -.4rem; }
.buy__summary { position: sticky; top: 84px; display: grid; gap: .6rem; }
.buy__summary .line span { color: var(--muted); }
.buy__summary .line strong { text-align: right; }
.buy__summary .line--total { border-top: 1px solid var(--border); padding-top: .7rem; margin-top: .2rem; font-size: 1.2rem; }
.buy__summary .line--total span { color: var(--text); }
@media (max-width: 900px) {
  .buy { grid-template-columns: 1fr; }
  .buy__summary { position: static; }
  .methods--row { grid-template-columns: 1fr; }
  .buy__icon { width: 72px; height: 72px; font-size: 2.3rem; }
  .denoms { grid-template-columns: 1fr 1fr; }
}

/* Compte client */
.authbtn { display: flex; align-items: center; gap: .5rem; background: var(--gold); color: var(--on-accent); border: 0; border-radius: 10px; padding: .5rem 1rem; font-weight: 700; white-space: nowrap; }
.authbtn.is-user { color: var(--text); background: var(--surface-2); border: 1px solid var(--border); padding: .35rem .8rem .35rem .4rem; }
.avatar { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--gold); color: var(--on-accent); font-size: .8rem; font-weight: 700; }
.avatar--big { width: 52px; height: 52px; font-size: 1.2rem; }
.auth { display: grid; gap: 1rem; padding-top: 1.4rem; }
.only-narrow { display: none; }
.auth__tabs { display: grid; grid-template-columns: 1fr 1fr; background: var(--bg); border: 1px solid var(--border); border-radius: 12px; padding: 4px; }
.auth__tabs button { border: 0; background: none; color: var(--muted); padding: .6rem; border-radius: 9px; font-weight: 600; }
.auth__tabs button.is-active { background: var(--accent-soft); color: #fff; }
.gbtn { display: flex; align-items: center; justify-content: center; gap: .75rem; width: 100%; padding: .75rem 1rem; border-radius: 10px;
  background: #fff; color: #1f1f1f; border: 1px solid #dadce0; font-weight: 600; font-size: 1rem; }
.gbtn:hover { background: #f2f2f2; }
.gbtn:disabled { opacity: .6; cursor: wait; }
.glogo { width: 20px; height: 20px; flex-shrink: 0; }
.auth__or { display: flex; align-items: center; gap: .7rem; color: var(--muted); font-size: .85rem; }
.auth__or::before, .auth__or::after { content: ""; flex: 1; border-top: 1px solid var(--border); }
.auth__error { color: var(--accent-2); min-height: 1.2em; font-size: .9rem; }
.auth__small { color: var(--muted); font-size: .85rem; text-align: center; }
.auth--verify { text-align: center; }
.auth--verify h2 { margin: 0; }
.auth--verify p { color: var(--muted); }
.otp { font: inherit; text-align: center; font-size: 2rem; letter-spacing: .5em; padding: .6rem; border-radius: 12px; border: 1px solid var(--border); background: var(--bg); color: var(--text); width: 100%; }
.linkbtn { background: none; border: 0; color: var(--accent-2); text-decoration: underline; padding: 0; font: inherit; }
.linkbtn:disabled { color: var(--muted); }
#logoutAllBtn { justify-self: center; font-size: .88rem; color: var(--muted); }
.form__row2 { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem; }
.account-card { display: flex; align-items: center; gap: .9rem; }
.account-card div { display: grid; }
.account-card small { color: var(--muted); }
@media (max-width: 900px) {
  .only-wide { display: none; }
  .only-narrow { display: inline; }
  .authbtn.is-user .authbtn__name { display: none; }
}

/* Pages légales */
.legal__body { display: grid; gap: .7rem; max-width: 820px; line-height: 1.65; }
.legal__body h2 { font-size: 1.05rem; margin-top: .6rem; }
.legal__body p, .legal__body li { color: #d8cfd2; }
.legal__body ul { padding-left: 1.2rem; display: grid; gap: .35rem; }
.foot__links { display: flex; flex-wrap: wrap; gap: .4rem 1.2rem; margin-bottom: .6rem; }
.foot__links a { color: var(--muted); }
.foot__links a:hover { color: var(--text); }

/* Rupture de stock */
.card--out { opacity: .55; }
.card--out:hover { border-color: var(--border); transform: none; }
.pill--out { color: #f08a8a; border-color: rgba(240, 138, 138, .5); }
.denom.is-out span { color: #f08a8a; }
.denom.is-out:not(.is-active) { opacity: .6; }

/* Solde et transactions */
.balchip { display: inline-flex; align-items: center; gap: .35rem; margin-left: auto; padding: .45rem .8rem; border-radius: 10px; border: 1px solid rgba(200, 212, 230, .55); background: var(--accent-soft); color: var(--accent-2); font-weight: 700; text-decoration: none; white-space: nowrap; }
.balchip + .topbar__btn { margin-left: 0; }
.avatar--img { object-fit: cover; padding: 0; }
.wallet { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 1.2rem; }
.wallet__card { display: grid; gap: .3rem; align-content: center; background: radial-gradient(circle at 85% 20%, rgba(200, 212, 230, .25), transparent 55%), var(--surface); }
.wallet__balance { font-family: "Sora", sans-serif; font-size: clamp(2.2rem, 5vw, 3.2rem); line-height: 1.1; }
.wallet__card small { color: var(--muted); }
.wallet__add { display: grid; gap: .8rem; }
.wallet__add .panel__title { margin: 0; }
.tx { display: grid; grid-template-columns: auto 1fr auto; gap: .9rem; align-items: center; padding: .8rem 0; border-bottom: 1px solid var(--border); }
.tx:last-child { border-bottom: 0; }
.tx__icon { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; font-weight: 700; background: var(--surface-2); }
.tx__icon--in { color: #6fdc9a; background: rgba(111, 220, 154, .1); }
.tx__icon--out { color: var(--accent-2); background: var(--accent-soft); }
.tx__main { display: grid; gap: .1rem; min-width: 0; }
.tx__main small { color: var(--muted); overflow-wrap: anywhere; }
.tx__amount { text-align: right; font-weight: 700; font-family: "Sora", sans-serif; display: grid; }
.tx__amount small { font-family: "Inter", sans-serif; font-weight: 400; color: var(--muted); font-size: .78rem; }
.tx__amount.is-in { color: #6fdc9a; }
.paychoice { margin-top: .2rem; }
.paychoice small a { color: var(--accent-2); }
@media (max-width: 900px) {
  .wallet { grid-template-columns: 1fr; }
  .balchip { margin-left: auto; padding: .4rem .6rem; font-size: .9rem; }
}

/* Suivi de paiement (3 étapes, compte à rebours, mini-carte) */
.trackhead { display: grid; gap: .55rem; background: var(--bg); border: 1px solid var(--border); border-radius: 16px; padding: 1rem 1.1rem; margin-bottom: 1rem; text-align: left; }
.trackhead__top { display: flex; align-items: baseline; gap: .6rem; flex-wrap: wrap; }
.trackhead__kind { color: #6fdc9a; font-weight: 700; }
.trackhead__top strong { font-family: "Sora", sans-serif; }
.trackhead__ref { margin-left: auto; color: var(--muted); font-size: .85rem; font-family: ui-monospace, Menlo, monospace; }
.trackhead__status { font-family: "Sora", sans-serif; font-weight: 700; font-size: 1.15rem; }
.trackhead__bottom { display: flex; justify-content: space-between; align-items: center; gap: .8rem; border-top: 1px solid var(--border); padding-top: .6rem; }
.trackhead__bottom strong { font-size: .95rem; overflow-wrap: anywhere; }
.trackhead__timer { font-family: "Sora", sans-serif; font-weight: 700; font-size: 1.5rem; color: #f0b90b; font-variant-numeric: tabular-nums; }
.steps3 { display: flex; align-items: flex-start; padding: .2rem 0; }
.steps3__item { display: grid; justify-items: center; gap: .25rem; flex-shrink: 0; }
.steps3__item small { color: var(--muted); font-size: .72rem; }
.steps3__dot { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-size: .75rem; font-weight: 700; background: var(--surface-2); color: var(--muted); border: 2px solid var(--border); }
.steps3__item.is-current .steps3__dot { border-color: #f0b90b; color: #f0b90b; box-shadow: 0 0 0 4px rgba(240, 185, 11, .18); animation: pulse 1.6s ease-in-out infinite; }
.steps3__item.is-current small { color: var(--text); }
.steps3__item.is-done .steps3__dot { background: #f0b90b; border-color: #f0b90b; color: #1a1205; }
.steps3__bar { flex: 1; height: 4px; margin: 11px 4px 0; border-radius: 4px; background: var(--border); }
.steps3__bar.is-done { background: #f0b90b; }
.steps3.is-expired .steps3__item.is-current .steps3__dot { border-color: var(--accent-2); color: var(--accent-2); box-shadow: none; animation: none; }
@keyframes pulse { 50% { box-shadow: 0 0 0 7px rgba(240, 185, 11, .05); } }
.track__actions { display: grid; gap: .5rem; justify-items: center; }
.track__actions .btn { width: 100%; }
.trackcard { position: fixed; left: 50%; bottom: 16px; transform: translateX(-50%); z-index: 30; width: min(440px, calc(100% - 24px));
  display: grid; gap: .45rem; text-align: left; color: var(--text); font: inherit; cursor: pointer;
  background: rgba(16, 20, 29, .96); backdrop-filter: blur(10px); border: 1px solid var(--border); border-radius: 20px; padding: .9rem 1rem;
  box-shadow: 0 16px 40px rgba(0, 0, 0, .55); }
.trackcard:hover { border-color: #f0b90b; }
.trackcard .trackhead__status { font-size: 1rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.trackcard .trackhead__timer { font-size: 1.3rem; }
.trackcard--done { border-color: rgba(111, 220, 154, .6); }
.trackcard--done .trackhead__status { color: #6fdc9a; }
.trackcard--expired .trackhead__status { color: var(--accent-2); }
@media (min-width: 901px) { .trackcard { left: auto; right: 20px; bottom: 20px; transform: none; width: 400px; } }
@media (max-width: 900px) { .has-track .toast { bottom: 250px; } }

/* Ajustements des grilles */
.grid { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.card__foot { flex-wrap: wrap; row-gap: .6rem; }
.stats { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
@media (max-width: 900px) { .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px) {
  .grid { gap: .6rem; }
  .card { padding: .9rem; min-width: 0; }
  .card__icon { font-size: 2rem; }
  .card__title { font-size: 1.05rem; overflow-wrap: anywhere; }
  .card__detail { font-size: .78rem; }
  .card .price { font-size: 1.15rem; }
  .card__foot .btn { width: 100%; }
  .page-head select { width: 100%; }
}

/* ===== Thème « Argent platine » ===== */
body { background: radial-gradient(1200px 500px at 100% -10%, rgba(64, 98, 180, .10), transparent 60%), var(--bg); }
.sidebar { border-right-color: var(--border); box-shadow: inset -1px 0 0 rgba(200, 212, 230, .06); }
.sidebar::before { content: ""; display: block; height: 2px; margin: -1.2rem -.9rem .4rem; background: var(--gold); opacity: .85; }
.brand__text { background: linear-gradient(180deg, #ffffff, #aab4c4); -webkit-background-clip: text; background-clip: text; color: transparent; }
.brand__text small { -webkit-text-fill-color: var(--muted); }
.card, .order-card, .panel { transition: border-color .2s, transform .2s, box-shadow .2s; }
.card:hover { border-color: rgba(200, 212, 230, .45); transform: translateY(-2px); box-shadow: 0 10px 30px rgba(0, 0, 0, .35), 0 0 0 1px rgba(200, 212, 230, .12); }
.price { color: #fff; }
.btn--primary:hover { filter: brightness(1.07); }
::selection { background: rgba(200, 212, 230, .35); color: #fff; }
input[type="radio"], input[type="checkbox"] { accent-color: var(--accent); }

.code__img { display: block; max-width: 100%; max-height: 320px; margin-top: .6rem; border-radius: 10px; border: 1px solid var(--border); }

.account__desc { color: var(--muted); font-size: .92rem; white-space: pre-line; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; margin: 0; }
.gallery__desc { color: var(--text); white-space: pre-line; font-size: .95rem; margin: 0 0 .8rem; max-height: 9em; overflow-y: auto; }

/* ===== Abonnements, tournois et tombolas ===== */
.card__foot { display: flex; align-items: center; justify-content: space-between; gap: .6rem; margin-top: auto; padding-top: .6rem; }
#subsBlock { margin-top: 2rem; display: grid; gap: .8rem; }
.block-head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; margin-top: 1.6rem; }
.block-head a { color: var(--muted); text-decoration: none; font-weight: 600; }
.events { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1rem; margin-top: .8rem; }
.event { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.event--tournoi { border-top: 3px solid #8fb4ff; }
.event--tombola { border-top: 3px solid #f0b4d8; }
.event.is-done { opacity: .75; }
.event__img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; display: block; }
.event__body { padding: 1rem 1.1rem 1.1rem; display: grid; gap: .55rem; }
.event__top { display: flex; justify-content: space-between; gap: .5rem; font-size: .82rem; }
.event__type { font-weight: 700; letter-spacing: .02em; }
.event__status { color: var(--muted); }
.event h3 { margin: 0; font-size: 1.15rem; }
.event__meta { display: flex; flex-wrap: wrap; gap: .4rem .9rem; color: var(--muted); font-size: .88rem; }
.event__desc { margin: 0; white-space: pre-line; color: var(--text); font-size: .93rem; max-height: 8.5em; overflow: auto; }
.event__winner { margin: 0; padding: .55rem .7rem; border-radius: 10px; background: rgba(111, 220, 154, .1); border: 1px solid rgba(111, 220, 154, .35); }
.event__actions { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; margin-top: .2rem; }
.pill--ok { color: #6fdc9a; border-color: rgba(111, 220, 154, .5); }

/* ===== Page Recharges : 3 sections façon catalogue ===== */
.sections { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 1.1rem; margin-top: 1rem; }
.section-tile { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--border); border-radius: 18px; overflow: hidden; text-decoration: none; color: var(--text); transition: transform .2s, border-color .2s, box-shadow .2s; }
.section-tile:hover { transform: translateY(-3px); border-color: rgba(200, 212, 230, .45); box-shadow: 0 14px 34px rgba(0, 0, 0, .4); }
.section-tile__art { position: relative; height: 150px; overflow: hidden; }
.section-tile--code .section-tile__art { background: radial-gradient(circle at 80% 30%, #8b5cf6 0, transparent 55%), radial-gradient(circle at 20% 90%, #2563eb 0, transparent 60%), #151a2a; }
.section-tile--uid .section-tile__art { background: radial-gradient(circle at 85% 25%, #ef476f 0, transparent 55%), radial-gradient(circle at 15% 85%, #f59e0b 0, transparent 60%), #1d1620; }
.section-tile--sub .section-tile__art { background: radial-gradient(circle at 80% 30%, #06b6d4 0, transparent 55%), radial-gradient(circle at 20% 90%, #10b981 0, transparent 60%), #10201f; }
.section-tile__art::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 40%, var(--surface) 100%); }
.section-tile__icon { position: absolute; left: 22px; top: 22px; z-index: 1; display: grid; place-items: center; width: 54px; height: 54px; border-radius: 14px; background: rgba(255, 255, 255, .16); backdrop-filter: blur(6px); font-size: 1.5rem; color: #fff; }
.chipcard { position: absolute; z-index: 0; display: flex; align-items: flex-end; width: 92px; height: 116px; padding: .55rem; border-radius: 12px; font-weight: 800; font-size: .82rem; color: #fff; background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .18); box-shadow: 0 10px 24px rgba(0, 0, 0, .35); }
.chipcard--a { right: 150px; top: 34px; transform: rotate(-10deg); }
.chipcard--b { right: 75px; top: 22px; transform: rotate(-6deg); }
.chipcard--c { right: 0; top: 12px; transform: rotate(-3deg); }
.section-tile__body { padding: .2rem 1.4rem 1.3rem; display: grid; gap: .5rem; flex: 1; }
.section-tile__body h2 { margin: 0; font-size: 1.45rem; }
.section-tile__body p { margin: 0; color: var(--muted); font-size: .93rem; }
.section-tile__foot { margin-top: auto; padding-top: .6rem; display: flex; align-items: center; justify-content: space-between; color: var(--muted); }
.section-tile__foot strong { color: var(--text); font-weight: 600; font-size: .92rem; }
.section-tile__go { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--border); color: var(--text); font-size: 1.1rem; }
.section-head { display: grid; gap: .3rem; margin: .4rem 0 1rem; }
.back { color: var(--muted); text-decoration: none; font-weight: 600; justify-self: start; }
@media (max-width: 640px) { .section-tile__art { height: 120px; } .chipcard { width: 74px; height: 96px; font-size: .72rem; } .chipcard--a { right: 120px; } .chipcard--b { right: 60px; } }
