/* ============================================================
   azazelcompany.fr — feuille de style
   Palette : rouge AzaZ #D32F2F, rouge foncé #B52222, vert #00A118, or #FFD700, pseudo #FFD08F
   Thème bloodmoon : data-theme="bloodmoon" sur <html> (variables redéfinies)
   ============================================================ */

/* ===== Polices hébergées sur le site (plus aucune requête vers Google Fonts) — voir assets/fonts/LISEZ-MOI.txt ===== */
@font-face { font-family: 'Poppins'; font-style: normal; font-weight: 400; font-display: swap; src: url('/assets/fonts/Poppins-Regular.woff') format('woff'); }
@font-face { font-family: 'Poppins'; font-style: normal; font-weight: 500; font-display: swap; src: url('/assets/fonts/Poppins-Medium.woff') format('woff'); }
@font-face { font-family: 'Poppins'; font-style: normal; font-weight: 700; font-display: swap; src: url('/assets/fonts/Poppins-Bold.woff') format('woff'); }
/* Graisses 600 et 800 : sans fichier, le navigateur utilise le Bold. Pour les ajouter, dépose les fichiers puis retire les commentaires :
@font-face { font-family: 'Poppins'; font-style: normal; font-weight: 600; font-display: swap; src: url('/assets/fonts/Poppins-SemiBold.woff2') format('woff2'); }
@font-face { font-family: 'Poppins'; font-style: normal; font-weight: 800; font-display: swap; src: url('/assets/fonts/Poppins-ExtraBold.woff2') format('woff2'); } */
/* Slogan : Playfair Display si elle est installée sur l'appareil, sinon Georgia italique. Pour l'héberger : dépose le fichier puis ajoute
   , url('/assets/fonts/PlayfairDisplay-SemiBoldItalic.woff2') format('woff2') à la fin de la ligne src ci-dessous. */
@font-face { font-family: 'Playfair Display'; font-style: italic; font-weight: 600; font-display: swap; src: local('Playfair Display SemiBold Italic'), local('PlayfairDisplay-SemiBoldItalic'); }

:root {
  --red: #D32F2F;
  --red-dark: #B52222;
  --red-glow: rgba(211, 47, 47, .45);
  --green: #00A118;
  --gold: #FFD700;
  --pseudo: #FFD08F;
  --admin: #FCFF3B;

  --bg: #f3f3f5;
  --bg-2: #ffffff;
  --bg-3: #ececf0;
  --text: #1b1b1f;
  --muted: #6b6b75;
  --line: #e2e2e8;
  --banner-grad: linear-gradient(118deg, #b71c1c 0%, #d32f2f 46%, #e53935 53%, #f6f6f8 53.2%, #f6f6f8 100%);
  --nav-bg: #17171b;
  --nav-text: #d7d7dc;
  --nav-active: var(--red);
  --card-shadow: 0 8px 24px rgba(20, 20, 30, .08);
  --radius: 18px;
  --font: 'Poppins', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-slogan: 'Playfair Display', Georgia, serif;
}

/* ---------- Mode sombre (bouton à côté de la langue ; la bloodmoon passe par-dessus) ---------- */
html[data-mode="dark"] {
  --bg: #111115;
  --bg-2: #1b1b21;
  --bg-3: #26262e;
  --text: #ececf1;
  --muted: #a0a0ad;
  --line: #31313b;
  --banner-grad: linear-gradient(118deg, #7d1515 0%, #a51f1f 46%, #b72525 53%, #18181d 53.2%, #18181d 100%);
  --nav-bg: #0b0b0e;
  --card-shadow: 0 8px 24px rgba(0, 0, 0, .45);
  color-scheme: dark;
}
html[data-mode="dark"]:not([data-theme="bloodmoon"]) .banner { color: #ececf1; }
html[data-mode="dark"]:not([data-theme="bloodmoon"]) .brief-player { background: rgba(30,30,37,.92); box-shadow: 0 6px 18px rgba(0,0,0,.4); }
html[data-mode="dark"] .btn-ghost { background: rgba(255,255,255,.1); }
html[data-mode="dark"] .lang-switch { background: rgba(255,255,255,.08); }
html[data-mode="dark"] .lang-switch a.on { background: #2b2b34; color: #ff6b5e; }
html[data-mode="dark"] .flash-ok { background: #12301a; color: #8ee6a0; }
html[data-mode="dark"] .flash-error { background: #3a1416; color: #ffb4b4; }
html[data-mode="dark"] .flash-info { background: #3a2a10; color: #ffd28a; }
html[data-mode="dark"] .tag, html[data-mode="dark"] .badge.st-paid, html[data-mode="dark"] .badge.st-pending, html[data-mode="dark"] .badge.st-sent { background: #3a2a10; color: #ffd28a; }
html[data-mode="dark"] .card-warn { background: #3a2a10; border-color: #8a4b00; color: #ffd199; }
html[data-mode="dark"] .add-cart.in-cart:hover { background: #000; }

html[data-theme="bloodmoon"] {
  --bg: #16070a;
  --bg-2: #24090e;
  --bg-3: #2e0c12;
  --text: #ffe4e4;
  --muted: #d99a9a;
  --line: #5a1a22;
  --banner-grad: radial-gradient(1200px 400px at 30% 0%, #ff3b1f 0%, #8e0d0d 40%, #2a0508 100%);
  --nav-bg: #0d0304;
  --nav-text: #ffb3a7;
  --nav-active: #ff5722;
  --card-shadow: 0 10px 30px rgba(255, 40, 0, .18);
  --red: #ff4d2e;
  --red-dark: #c2201a;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; overflow-x: hidden; font-family: var(--font); color: var(--text); background: var(--bg);
  line-height: 1.5; -webkit-font-smoothing: antialiased;
  transition: background .6s ease, color .6s ease;
}
a { color: var(--red); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; }
h1, h2, h3 { margin: 0 0 .5em; line-height: 1.2; font-weight: 700; }
.page-title { font-size: 1.9rem; font-weight: 800; color: var(--red); margin-bottom: 18px; letter-spacing: -.01em; }
.page-title::after { content: ''; display: block; width: 64px; height: 4px; background: var(--red); border-radius: 2px; margin-top: 8px; }
.muted { color: var(--muted); }
.small { font-size: .88rem; }
.tiny { font-size: .75rem; font-weight: 600; }
.lead { font-size: 1.1rem; }
.big { font-size: 1.35rem; font-weight: 700; margin: .2em 0; }
.red { color: var(--red); }
.green { color: var(--green); font-weight: 600; }
.inline { display: inline; }
[hidden] { display: none !important; }

/* ---------- Fil info ---------- */
.ticker {
  display: flex; align-items: center; height: 34px; background: #111115; color: #fff; overflow: hidden;
  font-size: .85rem; border-bottom: 2px solid var(--red);
}
html[data-theme="bloodmoon"] .ticker { background: #3a0608; border-bottom-color: #ff5722; }
.ticker-tag { flex: 0 0 auto; background: var(--red); color: #fff; font-weight: 800; padding: 0 14px; height: 100%; display: flex; align-items: center; letter-spacing: .12em; }
.ticker-track { flex: 1; overflow: hidden; position: relative; height: 100%; }
.ticker-items { display: inline-flex; gap: 48px; white-space: nowrap; align-items: center; height: 100%; padding-left: 100%; animation: ticker var(--ticker-d, 60s) linear infinite; will-change: transform; }
.ticker-items:hover { animation-play-state: paused; }
.ticker-items .ti::before { content: '◆'; color: var(--red); margin-right: 10px; font-size: .7em; }
.ti-vote::before { color: var(--gold) !important; }
.ti-newplayer::before, .ti-join::before { color: var(--green) !important; }
.ti-bloodmoon::before { color: #ff5722 !important; }
@keyframes ticker { from { transform: translateX(0); } to { transform: translateX(-100%); } }

/* ---------- Bannière ---------- */
.banner {
  position: relative; display: grid; grid-template-columns: auto 1fr 1fr auto; gap: 24px; align-items: center;
  padding: 18px 28px; min-height: 132px; overflow: hidden; color: #1b1b1f;
}
.banner-bg { position: absolute; inset: 0; background: var(--banner-grad); z-index: 0; transition: opacity .6s; }
.banner-bg::after {
  content: ''; position: absolute; inset: 0; background-image: radial-gradient(rgba(255,255,255,.25) 1px, transparent 1.5px);
  background-size: 14px 14px; mix-blend-mode: overlay; opacity: .5;
}
.banner > :not(.banner-bg) { position: relative; z-index: 1; }
/* logo du site ×1,35 (image, nom et slogan) */
.brand { display: flex; align-items: center; gap: 19px; color: #fff; }
.brand:hover { text-decoration: none; }
.brand-logo { width: 97px; height: 97px; border-radius: 50%; background: #fff; box-shadow: 0 6px 18px rgba(0,0,0,.25); object-fit: cover; }
.brand-name { display: block; font-size: 2.7rem; font-weight: 800; letter-spacing: -.02em; line-height: 1; }
.brand-name em { font-style: normal; color: #ffd6d6; }
.brand-tag { display: block; font-family: var(--font-slogan); font-style: italic; font-size: 1.35rem; color: #ffe9e9; margin-top: 6px; }
.bm-banner-img { display: none; height: 112px; width: auto; filter: drop-shadow(0 6px 20px rgba(0,0,0,.6)); grid-column: 1; grid-row: 1; justify-self: start; }
html[data-theme="bloodmoon"] .bm-banner-img { display: block; animation: bmPulse 2.4s ease-in-out infinite; }
html[data-theme="bloodmoon"] .brand { display: none; }
@keyframes bmPulse { 0%,100% { transform: scale(1); } 50% { transform: scale(1.04); } }
html[data-theme="bloodmoon"] .banner { color: #ffe4e4; }

.brief { display: flex; flex-direction: column; gap: 4px; font-size: .9rem; }
.brief-server { justify-self: start; min-width: 240px; max-width: 400px; width: 100%; color: #fff; }
.brief-server .brief-row { border-bottom-color: rgba(255,255,255,.3); }
.brief-row { display: flex; justify-content: space-between; gap: 16px; border-bottom: 1px dashed rgba(0,0,0,.12); padding: 2px 0; }
html[data-theme="bloodmoon"] .brief-row { border-bottom-color: rgba(255,255,255,.15); }
.brief-row .k { color: inherit; opacity: .7; }
.brief-row .v { font-weight: 700; }
/* écrans moyens : avec le logo agrandi, les infos du serveur peuvent déborder sur la partie claire du dégradé :
   fond rouge translucide sous elles pour rester lisibles */
@media (max-width: 1600px) {
  html:where(:not(.scaled)):not([data-theme="bloodmoon"]) .brief-server { background: rgba(110,10,10,.55); padding: 8px 12px; border-radius: 12px; }

}
/* « Prochaine bloodmoon » : libellé et valeur (… IRL) ne se coupent jamais ; sur une seule ligne dès que la place le permet,
   sinon la valeur passe entière sous le libellé, alignée à droite (pas de chevauchement sur les écrans 1180-1440 px) */
.brief-bm { flex-wrap: wrap; column-gap: 16px; row-gap: 0; }
.brief-bm .k { flex: 0 1 auto; white-space: nowrap; }
.brief-bm .v { white-space: nowrap; flex: none; margin-left: auto; }
.pill { display: inline-flex; align-items: center; gap: 8px; font-weight: 800; font-size: .8rem; letter-spacing: .1em; padding: 4px 12px; border-radius: 999px; background: #fff; color: #333; width: fit-content; box-shadow: 0 2px 8px rgba(0,0,0,.12); }
.pill .dot { width: 10px; height: 10px; border-radius: 50%; background: #999; box-shadow: 0 0 0 3px rgba(0,0,0,.06); }
body.status-online .pill .dot { background: var(--green); box-shadow: 0 0 10px var(--green); }
body.status-offline .pill .dot { background: #d32f2f; }
body.status-bloodmoon .pill .dot { background: #ff5722; box-shadow: 0 0 12px #ff5722; animation: blink 1s infinite; }
@keyframes blink { 50% { opacity: .3; } }

.brief-player { justify-self: center; align-items: flex-start; background: rgba(255,255,255,.88); padding: 10px 16px; border-radius: 14px; box-shadow: 0 6px 18px rgba(0,0,0,.12); }
html[data-theme="bloodmoon"] .brief-player { background: rgba(20,4,6,.55); box-shadow: none; }
.me { display: flex; align-items: center; gap: 10px; }
.me-avatar { width: 44px; height: 44px; border-radius: 12px; object-fit: cover; box-shadow: 0 3px 10px rgba(0,0,0,.2); }
.me-name { font-weight: 800; font-size: 1.05rem; color: var(--red); }
html[data-theme="bloodmoon"] .me-name { color: var(--pseudo); }
.me-name small { display: block; font-weight: 500; font-size: .75rem; color: var(--muted); }
.me-stats { display: flex; flex-wrap: wrap; gap: 2px 14px; font-size: .85rem; }
.me-stats span { white-space: nowrap; }
.me-stats b { font-weight: 800; }
/* commandes $ : 2 à la fois dans 2 cases de largeur fixe, la tuile ne change jamais de taille */
.me-cmds { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; width: 340px; max-width: 100%; }
.cmd { font-size: .74rem; background: #1b1b1f; color: #fff; padding: 2px 8px; border-radius: 6px; font-weight: 600; white-space: nowrap;
  overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.cmd i { font-style: normal; color: #ffb3b3; margin-left: 4px; }
.cmd.ready { background: var(--green); }
.cmd.ready i { color: #e8ffe8; }
.me-reward { font-size: .8rem; color: var(--green); font-weight: 700; }
.me-hint { font-size: .85rem; opacity: .75; max-width: 260px; }

.banner-right { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.banner-tools { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; justify-content: flex-end; }
.lang-switch a { display: inline-flex; align-items: center; gap: 5px; }
.flag { border-radius: 2px; box-shadow: 0 0 0 1px rgba(0,0,0,.15); flex: 0 0 auto; }
.mode-btn { display: inline-flex; align-items: center; gap: 6px; font: inherit; font-size: .72rem; font-weight: 800; padding: 5px 10px; border-radius: 8px;
  border: 0; cursor: pointer; background: rgba(0,0,0,.08); color: inherit; }
.mode-btn:hover { background: rgba(0,0,0,.14); }
.mode-btn .i-sun { display: none; }
html[data-mode="dark"] .mode-btn { background: rgba(255,255,255,.08); }
html[data-mode="dark"] .mode-btn .i-sun { display: inline; }
html[data-mode="dark"] .mode-btn .i-moon { display: none; }
.lang-switch { display: flex; gap: 2px; background: rgba(0,0,0,.08); padding: 3px; border-radius: 8px; }
.lang-switch a { font-size: .72rem; font-weight: 800; padding: 3px 9px; border-radius: 6px; color: inherit; opacity: .6; }
.lang-switch a.on { background: #fff; color: var(--red); opacity: 1; box-shadow: 0 1px 4px rgba(0,0,0,.15); }
.lang-switch a:hover { text-decoration: none; opacity: 1; }

/* ---------- Boutons ---------- */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; border-radius: 10px; font-weight: 700; font-size: .88rem; border: 0; cursor: pointer; font-family: inherit; transition: transform .12s, box-shadow .12s, background .2s; white-space: nowrap; }
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn.big { font-size: 1.05rem; padding: 14px 26px; }
.btn-red { background: var(--red); color: #fff; box-shadow: 0 6px 16px var(--red-glow); }
.btn-steam { background: #1b2838; color: #fff; box-shadow: 0 6px 16px rgba(27,40,56,.35); }
.btn-discord { background: #5865F2; color: #fff; box-shadow: 0 6px 16px rgba(88,101,242,.35); }
.btn-admin { background: var(--admin); color: #222; }
.btn-ghost { background: rgba(0,0,0,.08); color: inherit; }
html[data-theme="bloodmoon"] .btn-ghost { background: rgba(255,255,255,.12); }
.btn-vote { background: linear-gradient(135deg, #ffd700, #ff9800); color: #1b1b1f; font-size: 1.5rem; padding: 18px 40px; border-radius: 16px; box-shadow: 0 10px 30px rgba(255,152,0,.4); letter-spacing: .04em; margin: 12px 0; }
.btn-vote:hover { box-shadow: 0 14px 36px rgba(255,152,0,.55); }

/* ---------- Structure ---------- */
.shell { display: grid; grid-template-columns: 220px 1fr; min-height: calc(calc(100vh / var(--z, 1)) - 170px); }
.sidenav { background: var(--nav-bg); color: var(--nav-text); display: flex; flex-direction: column; padding: 18px 0; position: sticky; top: 0; align-self: start; height: calc(100vh / var(--z, 1)); transition: background .6s; }
.sidenav ul { list-style: none; margin: 0; padding: 0; flex: 1; }
.sidenav a { display: block; padding: 12px 24px; color: var(--nav-text); font-weight: 600; font-size: .95rem; border-left: 4px solid transparent; transition: background .15s, border-color .15s, color .15s; }
.sidenav a:hover { background: rgba(255,255,255,.06); text-decoration: none; color: #fff; }
.sidenav a.active { border-left-color: var(--nav-active); color: #fff; background: rgba(255,255,255,.08); }
.sidenav-foot { border-top: 1px solid rgba(255,255,255,.1); padding-top: 10px; }
.sidenav-foot a { font-size: .8rem; padding: 7px 24px; opacity: .8; }
.sidenav-toggle { display: none; }
.main { padding: 28px 32px 48px; min-width: 0; }
.content { animation: fadeIn .28s ease backwards; }   /* backwards : aucun transform ne reste après l'animation (sinon position:fixed est piégé) */
.content.leaving { animation: fadeOut .18s ease both; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes fadeOut { from { opacity: 1; transform: none; } to { opacity: 0; transform: translateY(-6px); } }

.foot { display: flex; justify-content: space-between; gap: 16px; padding: 14px 28px; font-size: .8rem; color: var(--muted); border-top: 1px solid var(--line); background: var(--bg-2); }

/* ---------- Cartes ---------- */
.grid { display: grid; gap: 18px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.card { min-width: 0; overflow-wrap: anywhere; background: var(--bg-2); border-radius: var(--radius); padding: 20px 22px; box-shadow: var(--card-shadow); border: 1px solid var(--line); transition: background .6s, border-color .6s; }
.card h2 { font-size: 1.05rem; color: var(--red); display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.card h3 { font-size: .9rem; color: var(--muted); margin-top: 14px; text-transform: uppercase; letter-spacing: .06em; }
.card-wide { grid-column: 1 / -1; }
.card-warn { grid-column: 1 / -1; background: #fff4e5; border-color: #ffd199; color: #8a4b00; margin-bottom: 18px; }
html[data-theme="bloodmoon"] .card-warn { background: #3a1b0a; border-color: #8a4b00; color: #ffd199; }
.card-center { text-align: center; padding: 40px 24px; }
.badge { font-size: .72rem; font-weight: 700; background: var(--bg-3); color: var(--text); padding: 2px 10px; border-radius: 999px; }
.badge-green { background: var(--green); color: #fff; }

.plist { list-style: none; margin: 0; padding: 0; }
.plist li { display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: center; padding: 7px 0; border-bottom: 1px solid var(--line); }
.plist .pname { font-weight: 700; flex: 1; }
.plist .plvl { font-size: .8rem; color: var(--muted); }
.plist .ptime { font-size: .8rem; color: var(--green); font-weight: 600; }
.facts { list-style: none; margin: 0; padding: 0; }
.facts li { padding: 6px 0; border-bottom: 1px solid var(--line); }

.bars { display: flex; gap: 10px; align-items: flex-end; height: 130px; padding-top: 18px; }
.bar { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; position: relative; }
.bar-fill { width: 70%; background: linear-gradient(180deg, var(--red), var(--red-dark)); border-radius: 6px 6px 2px 2px; min-height: 3px; transition: height .6s; }
.bar-v { position: absolute; top: -18px; font-size: .75rem; font-weight: 700; }
.bar-l { font-size: .7rem; color: var(--muted); margin-top: 4px; }

.records { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.rec { background: var(--bg-3); border-radius: 12px; padding: 12px 14px; display: flex; flex-direction: column; gap: 4px; }
.rec-k { font-size: .78rem; color: var(--muted); font-weight: 600; }
.rec-v { font-weight: 700; }
.rec-top5 { grid-row: span 2; }
.top5 { margin: 6px 0 0; padding-left: 22px; }
.top5 li { padding: 3px 0; }
.top5 b { float: right; color: var(--red); }

.infos { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.info { display: flex; flex-direction: column; gap: 4px; }
.info .k { font-size: .75rem; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; font-weight: 600; }
.info .v { font-weight: 700; }
.copy { background: var(--bg-3); border: 1px dashed var(--line); border-radius: 8px; padding: 6px 10px; font: inherit; color: inherit; cursor: pointer; text-align: left; }
.copy:hover { border-color: var(--red); }
.copy.done { border-color: var(--green); color: var(--green); }

.stat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 10px; }
.stat { background: var(--bg-3); border-radius: 12px; padding: 12px; text-align: center; }
.stat b { display: block; font-size: 1.3rem; color: var(--red); }
.stat span { font-size: .75rem; color: var(--muted); }
.items { list-style: none; margin: 0; padding: 0; }
.items li { padding: 5px 0; border-bottom: 1px solid var(--line); }
.progress-row { display: grid; grid-template-columns: 1fr 2fr auto; gap: 10px; align-items: center; margin: 8px 0; font-size: .85rem; }
.progress { height: 10px; background: var(--bg-3); border-radius: 999px; overflow: hidden; }
.progress-fill { height: 100%; background: linear-gradient(90deg, var(--green), #6fdc7a); }

.vote-hero { text-align: center; padding: 36px 28px; background: linear-gradient(160deg, var(--bg-2), var(--bg-3)); }
.news-item { margin-bottom: 16px; }
.news-img { width: 100%; border-radius: 12px; margin-bottom: 12px; }
.rich img { border-radius: 10px; }
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.tile { background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--card-shadow); overflow: hidden; }
.tile summary { cursor: pointer; list-style: none; padding: 16px; font-weight: 700; display: flex; flex-direction: column; gap: 10px; }
.tile summary::-webkit-details-marker { display: none; }
.tile-img { width: 100%; height: 140px; object-fit: cover; border-radius: 10px; }
.tile[open] { grid-column: 1 / -1; }
.tile .rich { padding: 0 16px 16px; }

/* ---------- Guides : tuiles + lecteur à droite (~25 %) ---------- */
.guides-page { display: grid; grid-template-columns: minmax(0, 1fr) minmax(320px, 45%); gap: 22px; align-items: start; }
.guide-tiles { grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); }
.guide-tile { font: inherit; color: var(--text); text-align: left; cursor: pointer; padding: 14px; display: flex; flex-direction: column; gap: 10px; font-weight: 700;
  transition: transform .15s, border-color .15s, box-shadow .15s; }
.guide-tile:hover { transform: translateY(-2px); border-color: rgba(211,47,47,.45); }
.guide-tile.active { border-color: var(--red); box-shadow: 0 0 0 2px var(--red-glow), var(--card-shadow); }
.guide-tile .tile-img { height: 120px; }
.guide-reader { position: sticky; top: 16px; height: calc(calc(100vh / var(--z, 1)) - 40px); max-height: 900px; }
.reader-frame { position: relative; height: 100%; overflow: hidden; background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--card-shadow); }
.reader-empty { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; color: var(--muted); text-align: center; padding: 24px;
  transition: opacity .3s; }
.reader-empty span { font-size: 2.6rem; opacity: .6; }
.guide-reader.has-guide .reader-empty { opacity: 0; pointer-events: none; }
.reader-content { position: absolute; inset: 0; overflow-y: auto; padding: 22px; transform: translateX(105%); opacity: 0; }
.reader-content.in { animation: readerIn .45s cubic-bezier(.2,.8,.2,1) forwards; }
.reader-content.out { animation: readerOut .25s ease-in forwards; }
@keyframes readerIn { from { transform: translateX(105%); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes readerOut { from { transform: none; opacity: 1; } to { transform: translateX(105%); opacity: 0; } }
.reader-img { display: block; width: 100%; height: auto; max-height: calc(60vh / var(--z, 1)); object-fit: contain; border-radius: 12px; margin-bottom: 14px; }
.reader-title { color: var(--red); font-size: 1.2rem; margin: 0 0 12px; }
.reader-close { position: absolute; top: 10px; right: 10px; z-index: 2; width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line); background: var(--bg-2);
  color: var(--text); cursor: pointer; font-size: .95rem; display: none; }
.guide-reader.has-guide .reader-close { display: block; }
@media (max-width: 900px) {
  :where(html:not(.scaled)) .guides-page { grid-template-columns: 1fr; }
  :where(html:not(.scaled)) .guide-reader { position: fixed; top: 0; right: 0; bottom: 0; width: min(calc(92vw / var(--z, 1)), 520px); height: auto; max-height: none; z-index: 70; transform: translateX(105%);
    transition: transform .4s cubic-bezier(.2,.8,.2,1); }
  :where(html:not(.scaled)) .guide-reader.has-guide { transform: none; }
  :where(html:not(.scaled)) .reader-frame { border-radius: 0; }
  :where(html:not(.scaled)) .reader-content { padding-top: 54px; }

}
.card-contest { text-align: center; }
.contest-img { width: 100%; border-radius: 12px; }
.countdown { margin: 20px 0 10px; }
.cd-label { display: block; font-size: .85rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
.cd-value { display: block; font-size: 2.2rem; font-weight: 800; color: var(--red); font-variant-numeric: tabular-nums; }

.flashes:empty { display: none; }
.flash { padding: 10px 14px; border-radius: 10px; margin-bottom: 14px; font-weight: 600; animation: fadeIn .3s; }
.flash-ok { background: #e6f7e9; color: #0c6b1e; }
.flash-error { background: #fde8e8; color: #9b1c1c; }
.flash-info { background: #fff4e5; color: #8a4b00; }

.pin-card { max-width: 420px; margin: 0 auto; }
.pin-form { display: flex; gap: 10px; justify-content: center; margin-top: 12px; }
.pin-input { font: inherit; font-size: 1.4rem; letter-spacing: .4em; text-align: center; width: 200px; padding: 10px; border-radius: 10px; border: 2px solid var(--line); background: var(--bg-3); color: var(--text); }
.pin-input:focus { outline: none; border-color: var(--red); }

/* ---------- Mon Jeu (phase 2) ---------- */
.items-scroll { max-height: 320px; overflow-y: auto; padding-right: 6px; }
.items li { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; }
.items .it-name { flex: 1; min-width: 140px; }
.items .q { color: var(--gold); font-weight: 700; }
.items .src, .items .pos { color: var(--muted); font-size: .75rem; }
.paliers { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; }
.palier { background: var(--bg-3); border-radius: 12px; padding: 12px 14px; display: flex; flex-direction: column; gap: 8px; }
.palier.done .progress-fill { background: linear-gradient(90deg, var(--gold), #ffb300); }
.pa-head { display: flex; justify-content: space-between; gap: 8px; font-size: .9rem; }
.pa-label { font-weight: 700; color: var(--red); }
.pa-val { color: var(--muted); }
.pa-val b { color: var(--text); }
.pa-reward { font-size: .8rem; color: var(--muted); }
.stat-grid-3 { grid-template-columns: repeat(3, 1fr); }
.stat b small { font-size: .7em; color: var(--muted); }
.form-email { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin: 8px 0; }
.input { font: inherit; padding: 9px 12px; border-radius: 10px; border: 2px solid var(--line); background: var(--bg-3); color: var(--text); flex: 1; min-width: 200px; }
.input:focus { outline: none; border-color: var(--red); }
.check { display: flex; align-items: center; gap: 6px; font-size: .85rem; width: 100%; }

/* ---------- Votez : mascotte ---------- */
.vote-thanks { display: flex; flex-direction: column; }
.vote-mascot { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; padding-top: 8px; }
.vote-mascot img { max-height: 280px; width: auto; filter: drop-shadow(0 10px 22px rgba(211,47,47,.28)); animation: mascot 3.2s ease-in-out infinite; }
.vote-merci { font-family: var(--font-slogan); font-style: italic; color: var(--red); font-size: 1.15rem; margin: 0; }
@keyframes mascot { 0%,100% { transform: translateY(0) rotate(-1deg); } 50% { transform: translateY(-8px) rotate(1deg); } }

/* ---------- Boutique « Chez Rekt » ---------- */
/* colonne du trader ×1,5 (510 px sur grand écran, jamais moins de 340 px) */
/* trader ×1,3 (base 340 px max) */
.shop { display: grid; grid-template-columns: minmax(0, 1fr) clamp(260px, calc(22vw / var(--z, 1)), 442px); gap: 24px; align-items: start; }
.shop-main { min-width: 0; display: flex; flex-direction: column; gap: 18px; }
.shop-main .page-title { margin-bottom: 0; }
.shop-cats { display: flex; flex-wrap: wrap; gap: 8px; }
.shop-cat { padding: 8px 14px; border-radius: 999px; background: var(--bg-2); border: 1px solid var(--line); color: var(--text); font-weight: 600; font-size: .88rem; transition: background .15s, color .15s, border-color .15s; }
.shop-cat:hover { text-decoration: none; border-color: var(--red); }
.shop-cat.active { background: var(--red); color: #fff; border-color: var(--red); }
/* tuiles des articles ×0,8 (zoom de la tuile entière : icône, textes, boutons) */
.shop-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(152px, 1fr)); gap: 12px; }
.shop-grid .item-card, .promo-strip .item-card { zoom: .8; }
.shop-empty { grid-column: 1 / -1; }
.shop-trader { position: sticky; top: 16px; }
.trader-frame { position: relative; height: calc(calc(100vh / var(--z, 1)) - 60px); max-height: 988px; min-height: 520px; border-radius: var(--radius); overflow: hidden;
  background: radial-gradient(120% 80% at 50% 30%, #3a2a24 0%, #17110f 70%); box-shadow: var(--card-shadow); border: 1px solid var(--line); }
.trader { position: absolute; inset: 0; margin: 0; display: flex; flex-direction: column; justify-content: flex-end; opacity: 0; transform: translateX(24px) scale(.98);
  transition: opacity .45s ease, transform .45s ease; pointer-events: none; }
.trader.on { opacity: 1; transform: none; pointer-events: auto; }
.trader img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; object-position: center bottom; }
.trader figcaption { position: relative; z-index: 1; padding: 80px 24px 24px; background: linear-gradient(180deg, transparent, rgba(0,0,0,.88) 40%); color: #fff; display: flex; flex-direction: column; gap: 8px; }
.trader figcaption b { font-size: 1.75rem; line-height: 1.15; color: #ffd6d6; text-shadow: 0 2px 8px rgba(0,0,0,.6); }
.trader figcaption span { font-family: var(--font-slogan); font-style: italic; font-size: 1.35rem; line-height: 1.4; color: #f2f2f2; text-shadow: 0 2px 6px rgba(0,0,0,.6); }
.trader-slot { position: absolute; inset: 16px 16px 120px; border: 2px dashed rgba(255,255,255,.25); border-radius: 14px; display: flex; align-items: center; justify-content: center; color: rgba(255,255,255,.35); font-size: 3rem; }
/* articles */
.shop-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
/* bouton Panier ×1,4, allongé ×1,4, sur la ligne des catégories ; anneau lumineux vert à l'ajout d'un article, noir au retrait */
.cart-btn { position: relative; font-size: 1.23rem; padding: 11px 44px; border-radius: 14px; gap: 10px; border: 2px solid var(--line); white-space: nowrap; }
.cart-btn .cart-count { min-width: 28px; height: 28px; padding: 0 8px; font-size: .9rem; }
.cart-btn.ring-add { animation: cartRingAdd 1.3s ease-out; border-color: #00A118; }
.cart-btn.ring-del { animation: cartRingDel 1.3s ease-out; border-color: #111; }
@keyframes cartRingAdd {
  0%   { box-shadow: 0 0 0 0 rgba(0,161,24,.9), 0 0 0 0 rgba(0,161,24,.6); }
  35%  { box-shadow: 0 0 0 6px rgba(0,161,24,.95), 0 0 26px 12px rgba(0,200,40,.55); }
  100% { box-shadow: 0 0 0 16px rgba(0,161,24,0), 0 0 40px 22px rgba(0,200,40,0); }
}
@keyframes cartRingDel {
  0%   { box-shadow: 0 0 0 0 rgba(0,0,0,.9), 0 0 0 0 rgba(0,0,0,.5); }
  35%  { box-shadow: 0 0 0 6px rgba(0,0,0,.95), 0 0 24px 10px rgba(0,0,0,.45); }
  100% { box-shadow: 0 0 0 16px rgba(0,0,0,0), 0 0 36px 20px rgba(0,0,0,0); }
}
/* en sombre, l'anneau noir garde un liseré clair pour rester visible */
html[data-mode="dark"] .cart-btn.ring-del, html[data-theme="bloodmoon"] .cart-btn.ring-del { animation-name: cartRingDelDark; border-color: #000; }
@keyframes cartRingDelDark {
  0%   { box-shadow: 0 0 0 0 #000, 0 0 0 0 rgba(255,255,255,.5); }
  35%  { box-shadow: 0 0 0 6px #000, 0 0 0 8px rgba(255,255,255,.55), 0 0 26px 12px rgba(0,0,0,.6); }
  100% { box-shadow: 0 0 0 16px rgba(0,0,0,0), 0 0 0 18px rgba(255,255,255,0), 0 0 36px 20px rgba(0,0,0,0); }
}
@media (prefers-reduced-motion: reduce) { .cart-btn.ring-add, .cart-btn.ring-del { animation-duration: .01s; } }
.cart-count { display: inline-flex; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px; background: var(--red); color: #fff; font-size: .75rem; align-items: center; justify-content: center; transition: transform .2s; }
.cart-count.bump { transform: scale(1.35); }
.shop-note { padding: 12px 16px; font-weight: 600; }
.shop-global { display: flex; flex-wrap: wrap; gap: 18px; align-items: center; padding: 12px 16px; }
.g-quality { display: flex; align-items: center; gap: 8px; font-weight: 600; font-size: .9rem; }
.item-card { position: relative; background: var(--bg-2); border: 1px solid var(--line); border-radius: 16px; padding: 14px; display: flex; flex-direction: column; gap: 8px;
  box-shadow: var(--card-shadow); transition: transform .15s, border-color .15s, box-shadow .15s; }
.item-card:hover { transform: translateY(-2px); border-color: rgba(211,47,47,.45); }
.item-card.is-plus { border-color: #CC0000; box-shadow: 0 0 0 1px rgba(204,0,0,.25), var(--card-shadow); }
.item-card.is-star { border-color: #00BDB0; box-shadow: 0 0 0 1px rgba(0,189,176,.35), 0 8px 26px rgba(0,189,176,.18); }
.item-card.flash-card { animation: flashcard 1.4s ease; }
@keyframes flashcard { 0%,100% { box-shadow: var(--card-shadow); } 30% { box-shadow: 0 0 0 4px var(--red-glow); } }
.item-card[hidden] { display: none; }
.item-ico { height: 96px; display: flex; align-items: center; justify-content: center; background: radial-gradient(circle at 50% 45%, var(--bg-3), transparent 70%); border-radius: 12px; }
.item-ico img { max-height: 88px; max-width: 100%; image-rendering: auto; filter: drop-shadow(0 4px 8px rgba(0,0,0,.25)); }
/* teinte du jeu (CustomIconTint) appliquée comme dans 7DTD : icône × couleur (multiplication), détails de l'icône gardés ;
   une icône blanche prend la couleur, une icône déjà colorée (paquets de fabrication…) garde son dessin */
.item-ico .tinted { width: 88px; height: 88px; background-color: var(--tint); background-image: var(--ico); background-blend-mode: multiply;
  background-position: center; background-size: contain; background-repeat: no-repeat;
  -webkit-mask: var(--ico) center / contain no-repeat; mask: var(--ico) center / contain no-repeat; }
.ico-credit span, .ico-skill span, .ico-none span { width: 72px; height: 72px; border-radius: 18px; display: flex; align-items: center; justify-content: center; font-size: 2.2rem; font-weight: 800; color: #fff; }
.ico-credit span { background: linear-gradient(135deg, #00A118, #006b10); box-shadow: 0 8px 18px rgba(0,161,24,.35); }
.ico-skill span { background: linear-gradient(135deg, #9254C8, #4b2475); }
.ico-none span { background: var(--bg-3); color: var(--muted); }
.item-name { font-size: .98rem; line-height: 1.25; margin: 0; }
.item-name small { color: var(--muted); font-weight: 600; }
.item-desc { font-size: .82rem; color: var(--muted); margin: 0; }
.promo-badge { position: absolute; top: 10px; right: 10px; background: var(--red); color: #fff; font-weight: 800; font-size: .78rem; padding: 3px 9px; border-radius: 999px; box-shadow: 0 4px 10px var(--red-glow); z-index: 1; }
.promo-badge.inline { position: static; box-shadow: none; }
.promo-end { display: block; color: var(--red); font-weight: 600; font-size: .72rem; }
.kit-lines { font-size: .82rem; }
.kit-lines summary { cursor: pointer; font-weight: 600; color: var(--red); }
.kit-lines ul { list-style: none; padding: 6px 0 0; margin: 0; display: flex; flex-direction: column; gap: 4px; }
.kit-lines li { display: flex; align-items: center; gap: 6px; }
.kit-lines img { width: 22px; height: 22px; object-fit: contain; }
.q-tag { font-size: .68rem; font-weight: 800; color: #fff; background: var(--q); padding: 0 5px; border-radius: 5px; }
/* qualité : libellé + badge, curseur dessous, repères Q3… QX sous le curseur */
.q-pick { display: flex; flex-direction: column; gap: 2px; }
.q-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.q-range { width: 100%; margin: 4px 0 0; accent-color: var(--red); }
.q-ticks { display: grid; grid-template-columns: repeat(var(--n, 4), minmax(0, 1fr)); margin: 0 -2px; font-size: .62rem; font-weight: 800; line-height: 1.6; }
.q-ticks span { text-align: center; color: var(--muted); cursor: pointer; border-radius: 4px; white-space: nowrap; letter-spacing: -.02em; }
.q-ticks span:hover { color: var(--text); }
.q-ticks span.on { color: #fff; background: var(--q, #888); }
.q-ticks.dense { font-size: .52rem; gap: 1px; letter-spacing: -.04em; }
.plus-name b.max { color: #00BDB0; }
.q-label { min-width: 38px; text-align: center; color: #fff; background: var(--q, #888); border-radius: 7px; padding: 1px 6px; font-size: .8rem; }
.switch { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; user-select: none; font-weight: 600; font-size: .88rem; }
.switch input { position: absolute; opacity: 0; pointer-events: none; }
.switch .slider { width: 38px; height: 22px; border-radius: 999px; background: var(--bg-3); border: 1px solid var(--line); position: relative; transition: background .2s; flex: 0 0 auto; }
.switch .slider::after { content: ''; position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.3); transition: transform .2s; }
.switch input:checked + .slider { background: #CC0000; border-color: #CC0000; }
.switch input:checked + .slider::after { transform: translateX(16px); }
.switch input:focus-visible + .slider { outline: 2px solid var(--red); outline-offset: 2px; }
.switch-txt b { color: #CC0000; }
.item-buy { margin-top: auto; display: flex; flex-direction: column; gap: 8px; }
.item-price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px; }
.item-price s { color: var(--muted); font-size: .85rem; }
.item-price b { font-size: 1.15rem; color: var(--red); }
.item-add { display: flex; gap: 6px; }
.item-add .input.qty { width: 62px; flex: 0 0 62px; min-width: 0; padding: 7px 8px; }
.item-add .btn { flex: 1; min-width: 0; justify-content: center; padding-left: 8px; padding-right: 8px; }
.add-cart.done { background: var(--green); }
.credit-pick { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.chip { font: inherit; font-size: .82rem; font-weight: 700; padding: 6px 10px; border-radius: 999px; border: 1px solid var(--line); background: var(--bg-3); color: var(--text); cursor: pointer; }
.chip.on { background: var(--green); border-color: var(--green); color: #fff; }
.credit-free { display: flex; align-items: center; gap: 6px; font-size: .8rem; width: 100%; }
.credit-free .input { width: 90px; }
.promo-strip { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(170px, 200px); gap: 12px; overflow-x: auto; padding: 4px 2px 10px; scroll-snap-type: x mandatory; }
.promo-strip .item-card { scroll-snap-align: start; cursor: pointer; }
.promo-strip .q-pick, .promo-strip .plus-switch, .promo-strip .credit-pick, .promo-strip .kit-lines { display: none; }

/* boutons d'ajout : Ajouter → Au panier (vert) → Supprimer (noir au survol) */
.add-cart .lbl-in, .add-cart .lbl-del { display: none; }
.add-cart.in-cart { background: var(--green); box-shadow: 0 6px 16px rgba(0,161,24,.3); }
.add-cart.in-cart .lbl-add { display: none; }
.add-cart.in-cart .lbl-in { display: inline; }
.add-cart.in-cart:hover, .add-cart.in-cart:focus-visible { background: #17171b; box-shadow: 0 6px 16px rgba(0,0,0,.3); }
.add-cart.in-cart:hover .lbl-in, .add-cart.in-cart:focus-visible .lbl-in { display: none; }
.add-cart.in-cart:hover .lbl-del, .add-cart.in-cart:focus-visible .lbl-del { display: inline; }

/* tuiles : le texte reste dans la tuile */
.item-card { min-width: 0; overflow: hidden; }
.item-name { overflow-wrap: anywhere; word-break: break-word; display: -webkit-box; -webkit-line-clamp: 3; line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.item-desc { overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 4; line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.kit-lines li { overflow-wrap: anywhere; }
.cart-item b, .admin-table td { overflow-wrap: anywhere; }

/* barre des catégories, puis l'avoir boutique en bandeau pleine largeur juste dessous */
.shop-bar { display: flex; gap: 14px; align-items: center; }
.shop-bar .shop-cats { flex: 1 1 0; min-width: 0; align-content: flex-start; }
.shop-bar .cart-btn { flex: none; }
.credit-pill { flex: none; display: inline-flex; align-items: center; gap: 8px; padding: 11px 22px; border-radius: 14px;
  background: #00A118; color: #fff; font-weight: 800; font-size: 1.1rem; white-space: nowrap; text-decoration: none; box-shadow: 0 4px 12px rgba(0,161,24,.3); }
a.credit-pill:hover { background: #008a14; color: #fff; }
.cart-page .admin-head .cart-credit-pill { margin-left: auto; margin-right: 12px; }   /* panier : entre le titre et « Continuer mes achats » */
.credit-quick { width: 100%; flex-direction: row; flex-wrap: wrap; align-items: center; gap: 10px 22px; padding: 12px 18px; border-color: rgba(0,161,24,.35);
  background: linear-gradient(90deg, rgba(0,161,24,.07), transparent 55%), var(--bg-2); }
.credit-quick:hover { transform: none; }
.cq-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; flex: 0 1 300px; min-width: 0; }
.cq-head small { flex-basis: 100%; font-size: .75rem; }
.credit-quick .cq-body { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.cq-ico { width: 30px; height: 30px; border-radius: 9px; background: linear-gradient(135deg, #00A118, #006b10); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-weight: 800; }
.cq-body { flex: 1 1 auto; }
.credit-quick .credit-free { width: auto; }
.credit-quick .credit-free .input { width: 74px; min-width: 0; flex: 0 0 74px; padding: 6px 8px; }
.cq-buy { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.cq-buy .p-final { font-size: 1.1rem; color: var(--green); }

/* panier et commande */
.cart-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 18px; align-items: start; }
.cart-item { display: flex; align-items: center; gap: 10px; }
.cart-ico { width: 40px; height: 40px; object-fit: contain; flex: 0 0 40px; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center; font-weight: 800; color: #fff; }
span.cart-ico { background: linear-gradient(135deg, #00A118, #006b10); }
span.cart-ico.ico-skill { background: linear-gradient(135deg, #9254C8, #4b2475); }
.qty-form { display: flex; align-items: center; gap: 6px; }
.qty-form .input.qty { width: 64px; flex: 0 0 64px; min-width: 0; }
.cart-summary { position: sticky; top: 16px; display: flex; flex-direction: column; gap: 14px; }
.row-input { display: flex; gap: 6px; }
.row-input .input { flex: 1; min-width: 0; }
.totals { display: grid; grid-template-columns: 1fr auto; gap: 6px 12px; margin: 0; }
.totals dt { color: var(--muted); }
.totals dd { margin: 0; text-align: right; font-weight: 600; }
.totals .big { font-size: 1.15rem; color: var(--text); font-weight: 800; border-top: 1px solid var(--line); padding-top: 8px; }
.checkout-form { display: flex; flex-direction: column; gap: 12px; }
.checkout-form fieldset { border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; display: flex; flex-direction: column; gap: 6px; margin: 0; }
.checkout-form legend { font-weight: 700; padding: 0 6px; }
.cgv-check { align-items: flex-start; font-size: .82rem; line-height: 1.4; }
.cgv-check input { margin-top: 3px; }
.btn.wide { width: 100%; justify-content: center; }
.center { text-align: center; }
.order-state { display: flex; align-items: center; gap: 10px; font-size: 1.05rem; }
.order-status.st-delivered { border-color: var(--green); }
.order-status.st-failed, .order-status.st-partial { border-color: #c62828; }
.spinner { width: 16px; height: 16px; border: 2px solid var(--line); border-top-color: var(--red); border-radius: 50%; animation: spin .8s linear infinite; display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }
.purchases { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.purchases li { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; padding-bottom: 8px; border-bottom: 1px dashed var(--line); }
.purchases li > div { flex-basis: 100%; }
.purchases .right { margin-left: auto; }
.credit-balance { font-weight: 700; color: var(--green); }
.badge.st-paid { background: #fff4e5; color: #8a4b00; }
.badge.st-delivered { background: var(--green); color: #fff; }
.badge.st-partial, .badge.st-failed { background: #c62828; color: #fff; }
.badge.st-canceled, .badge.st-refunded { background: var(--bg-3); color: var(--muted); }
@media (max-width: 900px) {
  :where(html:not(.scaled)) .cart-grid { grid-template-columns: 1fr; }
  :where(html:not(.scaled)) .cart-summary { position: static; } 
}
@media (max-width: 1100px) {
  :where(html:not(.scaled)) .shop { grid-template-columns: 1fr; }
  :where(html:not(.scaled)) .shop-trader { position: relative; top: 0; order: -1; }
  :where(html:not(.scaled)) .trader-frame { height: 380px; min-height: 0; }
  :where(html:not(.scaled)) .trader figcaption { padding: 50px 16px 14px; gap: 4px; }
  :where(html:not(.scaled)) .trader figcaption b { font-size: 1.35rem; }
  :where(html:not(.scaled)) .trader figcaption span { font-size: 1.08rem; }

}

/* ---------- Panel admin ---------- */
.admin-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.admin-tabs { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 18px; padding: 6px; background: var(--bg-2); border: 1px solid var(--line); border-radius: 14px; }
.admin-tab { padding: 8px 12px; border-radius: 10px; font-weight: 600; font-size: .85rem; color: var(--text); background: none; border: 0; cursor: pointer; font-family: inherit; }
.admin-tab:hover { background: var(--bg-3); text-decoration: none; }
.admin-tab.active, .admin-tab.on { background: var(--red); color: #fff; }
.admin-tab.disabled { opacity: .45; cursor: default; }
.admin-subnav { display: flex; gap: 14px; margin: -6px 0 14px; font-weight: 600; font-size: .9rem; }
.admin-subnav a { color: var(--muted); }
.admin-subnav a.active { color: var(--red); }
.admin-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; margin-bottom: 18px; }
.kpi { background: var(--bg-2); border: 1px solid var(--line); border-radius: 14px; padding: 14px; display: flex; flex-direction: column; gap: 2px; box-shadow: var(--card-shadow); }
.kpi b { font-size: 1.4rem; color: var(--red); }
.kpi span { font-size: .78rem; color: var(--muted); }
.kpi-ok b { color: var(--green); }
.kpi-bad b { color: #d32f2f; }
.kpi-warn { border-color: #ffb300; }
.admin-shortcuts { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; }
.admin-table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.admin-table th { text-align: left; font-size: .75rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); padding: 8px; border-bottom: 2px solid var(--line); }
.admin-table td { padding: 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
.admin-table .right { text-align: right; }
.admin-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 18px; }
.settings-form { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.field { display: flex; flex-direction: column; gap: 5px; font-size: .85rem; font-weight: 600; }
.field > span { color: var(--muted); }
.field.check { flex-direction: row; align-items: center; gap: 8px; font-weight: 500; }
.field-wide, .form-actions, .admin-form .rte { grid-column: 1 / -1; }
.admin-form .field:has(.rte) { grid-column: 1 / -1; }
.form-actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 4px; }
.input.sm { width: 110px; flex: 0 0 auto; min-width: 0; }
.input.mono, code, .logbox { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
textarea.input { resize: vertical; font-family: inherit; }
select.input { min-width: 0; }
.tag { font-style: normal; font-size: .7rem; background: #fff4e5; color: #8a4b00; padding: 1px 6px; border-radius: 6px; font-weight: 700; }
.admin-thumb { max-width: 220px; max-height: 140px; border-radius: 10px; border: 1px solid var(--line); object-fit: cover; }
.admin-thumb.wide { max-width: 100%; max-height: 220px; }
.logbox { background: #111115; color: #d7ffd7; padding: 12px; border-radius: 10px; font-size: .78rem; max-height: 280px; overflow: auto; white-space: pre-wrap; word-break: break-word; margin: 0; }
.logbox.tall { max-height: calc(70vh / var(--z, 1)); }
.btn.danger { color: #c62828; }
.btn-red.danger, .btn.danger:hover { color: #fff; background: #c62828; }
.card-danger { border-color: #f5c2c2; }
.act-row { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; }
.act-form { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-bottom: 8px; }
.act-form .input { flex: 1; min-width: 140px; padding: 7px 10px; }
.act-form .input.sm { flex: 0 0 90px; min-width: 0; }
.stat-grid-6 { grid-template-columns: repeat(6, 1fr); }
.dot-st { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: #aaa; }
.dot-st.on { background: var(--green); box-shadow: 0 0 6px var(--green); }
.badge.st-pending, .badge.st-sent { background: #fff4e5; color: #8a4b00; }
.badge.st-done { background: var(--green); color: #fff; }
.badge.st-error { background: #c62828; color: #fff; }
.admin-search { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 12px; }
.console-form { display: flex; gap: 10px; }
.console-form .input { flex: 1; }
.help-list { columns: 2; font-size: .85rem; padding-left: 18px; }
.help-list li { break-inside: avoid; margin-bottom: 4px; }
.link { background: none; border: 0; padding: 0; color: var(--red); cursor: pointer; font: inherit; }
.orders { display: flex; flex-direction: column; gap: 10px; }
.order header { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 6px; }
.rte { display: flex; flex-direction: column; gap: 6px; }
.rte-bar { display: flex; flex-wrap: wrap; gap: 4px; }
.rte-bar button { font: inherit; font-size: .8rem; padding: 4px 9px; border-radius: 7px; border: 1px solid var(--line); background: var(--bg-3); color: var(--text); cursor: pointer; }
.rte-bar button:hover { border-color: var(--red); }
.rte-preview { border: 1px dashed var(--line); border-radius: 10px; padding: 12px; background: var(--bg-2); min-height: 120px; max-height: 420px; overflow: auto; }
.rte-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px; }
.rte-split .input { min-width: 0; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .85rem; }
.rte-help { line-height: 1.5; }
@media (max-width: 900px) {
  :where(html:not(.scaled)) .rte-split { grid-template-columns: 1fr; } 
}
.rich h2, .rich h3, .rich h4 { text-transform: none; letter-spacing: 0; color: var(--text); }
.rich .subtext { font-size: .78rem; color: var(--muted); margin: 2px 0; }
.rich blockquote { border-left: 4px solid var(--line); margin: 8px 0; padding: 2px 0 2px 12px; color: var(--text); }
.rich code { background: var(--bg-3); padding: 1px 5px; border-radius: 5px; font-size: .88em; }
.rich pre { background: #111115; color: #e6e6e6; padding: 12px; border-radius: 10px; overflow: auto; }
.rich pre code { background: none; padding: 0; }
.rich img { max-width: 100%; border-radius: 10px; }
.spoiler { background: #202225; color: transparent; border-radius: 4px; padding: 0 3px; cursor: pointer; transition: color .2s, background .2s; }
.spoiler.shown, .spoiler:focus { color: inherit; background: var(--bg-3); }

/* espacement des blocs empilés (panel admin, panier, commande) */
.content > .card + .card, .content > .card + .grid, .content > .grid + .card, .content > .grid + .grid, .content > .admin-kpis + .card,
.order-page > .card + .card, .cart-page > .card { margin-top: 18px; }
.item-card .item-name { text-transform: none; letter-spacing: 0; color: var(--text); margin: 0; font-size: .98rem; }
.checkout-form .input, .cart-summary .input { min-width: 0; }
.checkout-form fieldset { min-width: 0; }
.item-ico.kit-ico { gap: 0; position: relative; }
.kit-ico img { max-height: 58px; max-width: 58px; margin: 0 -10px; }
.kit-ico img:nth-child(2) { transform: translateY(-14px); z-index: 1; }

/* ---------- Admin boutique ---------- */
/* graphique des ventes : classes à part (ne pas toucher au graphique « Joueurs sur 7 jours » de l'accueil) */
.sales-bars { display: flex; align-items: flex-end; gap: 4px; height: 180px; padding-top: 10px; }
.sales-bar { flex: 1; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 4px; min-width: 0; }
.sales-bar span { width: 100%; max-width: 22px; background: linear-gradient(180deg, var(--red), var(--red-dark)); border-radius: 4px 4px 0 0; min-height: 2px; }
.sales-bar small { font-size: .62rem; color: var(--muted); }
.admin-ico { width: 40px; height: 40px; object-fit: contain; border-radius: 8px; background: var(--bg-3); display: inline-flex; align-items: center; justify-content: center; font-weight: 800; color: var(--muted); }
.admin-ico.big { width: 72px; height: 72px; float: left; margin-right: 12px; }
.row-off { opacity: .45; }
.nowrap { white-space: nowrap; }
.btn.sm { padding: 5px 9px; font-size: .8rem; }
.quick-form { display: grid; grid-template-columns: 120px repeat(3, minmax(0, 1fr)); gap: 10px 14px; align-items: end; }
.quick-form .form-actions { grid-column: 2 / -1; justify-content: space-between; align-items: center; }
.qa-preview { grid-row: span 3; display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; align-self: start; }
.qa-ico { width: 96px; height: 96px; border-radius: 14px; background: var(--bg-3); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.qa-ico img { max-width: 90%; max-height: 90%; }
.qa-ico span { font-size: 2rem; color: var(--muted); font-weight: 800; }
.qa-info b { display: block; color: var(--text); }
.kit-editor { display: flex; flex-direction: column; gap: 6px; margin: 6px 0; }
.kit-row { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.kit-row .input.mono { flex: 1; min-width: 200px; }
.kit-row .admin-ico { width: 30px; height: 30px; }
.kit-name { min-width: 120px; }
.steps li { margin-bottom: 6px; }
.item-infos { overflow: hidden; margin-bottom: 10px; }
.credit-history { list-style: none; padding: 6px 0 0; margin: 0; display: flex; flex-direction: column; gap: 4px; }
@media (max-width: 900px) {
  :where(html:not(.scaled)) .quick-form { grid-template-columns: 1fr 1fr; }
  :where(html:not(.scaled)) .qa-preview { grid-row: auto; grid-column: 1 / -1; flex-direction: row; }
  :where(html:not(.scaled)) .quick-form .form-actions { grid-column: 1 / -1; } 
}

.profit-row { display: flex; gap: 20px; align-items: center; flex-wrap: wrap; }
.profit-big { display: flex; flex-direction: column; align-items: center; min-width: 120px; }
.profit-big b { font-size: 2.2rem; color: var(--red); line-height: 1; }
.profit-big.ok b { color: var(--green); }
.profit-big span { font-size: .78rem; color: var(--muted); }
.profit-detail { flex: 1 1 320px; min-width: 0; }
.gauge { position: relative; height: 16px; border-radius: 999px; background: var(--bg-3); overflow: visible; margin: 4px 0 8px; }
.gauge-fill { position: absolute; inset: 0 auto 0 0; border-radius: 999px; background: linear-gradient(90deg, var(--red-dark), var(--red)); transition: width .6s; }
.gauge-fill.ok { background: linear-gradient(90deg, #00801a, var(--green)); }
.gauge-mark { position: absolute; top: -4px; bottom: -4px; width: 2px; background: var(--text); opacity: .55; }
.profit-months { display: flex; gap: 14px; margin-top: 14px; flex-wrap: wrap; }
.pm { display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: .75rem; }
.pm-bar { width: 26px; height: 60px; background: var(--bg-3); border-radius: 6px; display: flex; align-items: flex-end; overflow: hidden; }
.pm-bar span { width: 100%; background: var(--red); }
.pm-bar span.ok { background: var(--green); }
.pm small { color: var(--muted); }

/* ---------- Mode « Éditer le site » ---------- */
body.editing .ed { outline: 2px dashed rgba(211,47,47,.55); outline-offset: 2px; border-radius: 3px; cursor: pointer; position: relative; }
body.editing .ed:hover { outline-color: var(--red); background: rgba(211,47,47,.08); }
body.editing [data-img] { outline: 3px dashed rgba(255,193,7,.85); outline-offset: 3px; cursor: pointer; }
body.editing .ed::after { content: '✏️'; font-size: .7rem; position: relative; top: -.5em; margin-left: 2px; }
.edit-bar { position: fixed; left: 50%; bottom: 16px; transform: translateX(-50%); z-index: 80; display: flex; gap: 12px; align-items: center; background: #17171b; color: #fff;
  padding: 10px 14px; border-radius: 14px; box-shadow: 0 10px 30px rgba(0,0,0,.35); font-size: .85rem; max-width: calc(100% - 32px); flex-wrap: wrap; }
.edit-bar .btn-ghost { background: rgba(255,255,255,.12); color: #fff; }
.modal { position: fixed; inset: 0; z-index: 90; background: rgba(0,0,0,.55); display: flex; align-items: center; justify-content: center; padding: 16px; }
.modal[hidden] { display: none; }
.modal-box { background: var(--bg-2); color: var(--text); border-radius: 16px; padding: 20px; width: min(640px, 100%); max-height: calc(90vh / var(--z, 1)); overflow: auto; display: flex; flex-direction: column; gap: 10px; box-shadow: 0 20px 60px rgba(0,0,0,.4); }
.modal-box h3 { color: var(--red); font-size: 1rem; word-break: break-all; }
@media (max-width: 760px) {
  .admin-form, .settings-form { grid-template-columns: 1fr; }
  .stat-grid-6 { grid-template-columns: repeat(3, 1fr); }
  .help-list { columns: 1; }
  .admin-table { display: block; overflow-x: auto; }
}

/* ---------- Effets bloodmoon ---------- */
.bm-canvas { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 50; display: none; }
.bm-flash { position: fixed; inset: 0; pointer-events: none; z-index: 51; background: #fff; opacity: 0; display: none; }
html[data-theme="bloodmoon"] body.effects-on .bm-canvas,
html[data-theme="bloodmoon"] body.effects-on .bm-flash { display: block; }
html[data-theme="bloodmoon"] .btn-effects { display: inline-flex !important; }

/* ---------- Mobile ---------- */
@media (max-width: 1100px) {
  :where(html:not(.scaled)) .banner { grid-template-columns: 1fr 1fr; }
  :where(html:not(.scaled)) .banner-right { grid-column: 2; grid-row: 1; }
  :where(html:not(.scaled)) .brief-server, :where(html:not(.scaled)) .brief-player { justify-self: start; }
  :where(html:not(.scaled)) .records, :where(html:not(.scaled)) .infos { grid-template-columns: repeat(2, 1fr); }

}
@media (max-width: 760px) {
  .shell { grid-template-columns: 1fr; }
  .sidenav { position: relative; height: auto; padding: 8px 12px; }
  .sidenav-toggle { display: block; background: none; border: 0; color: #fff; font-size: 1.4rem; padding: 6px 10px; }
  .sidenav ul, .sidenav-foot { display: none; }
  .sidenav.open ul, .sidenav.open .sidenav-foot { display: block; }
  .sidenav-foot { display: none; }
  .banner { grid-template-columns: 1fr; padding: 16px; gap: 14px; }
  .banner-right { grid-column: 1; grid-row: auto; flex-direction: row; flex-wrap: wrap; align-items: center; }
  .bm-banner-img { height: 70px; }
  html[data-theme="bloodmoon"] .bm-banner-img { animation: none; }
  .main { padding: 18px 16px 40px; width: 100%; }
  .grid { min-width: 0; }
  .grid-2 { grid-template-columns: 1fr; }
  .records, .infos, .stat-grid { grid-template-columns: 1fr 1fr; }
  .brand { gap: 14px; }
  .brand-name { font-size: 1.7rem; }
  .brand-logo { width: 80px; height: 80px; }
  .brand-tag { font-size: 1.1rem; }
  .btn-vote { font-size: 1.2rem; padding: 14px 24px; }
  .foot { flex-direction: column; }
  .cart-btn { font-size: 1.15rem; padding: 10px 20px; border-radius: 14px; }
  .cart-btn .cart-count { min-width: 32px; height: 32px; font-size: 1rem; }
}
@media (prefers-reduced-motion: reduce) {
  .ticker-items { animation-duration: calc(var(--ticker-d, 60s) * 2); }   /* « animations réduites » de Windows : défilement plus lent, jamais figé (sinon le fil reste vide) */
  .content, .flash { animation: none; }
}
#kit-add { align-self: flex-start; }

/* ---------- Règlement : Autorisé | Interdit ---------- */
.rules-intro { color: var(--muted); margin: -6px 0 18px; max-width: 900px; }
.rules { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; align-items: start; }
.rules-col { border-top: 5px solid var(--green); }
.rules-col.rules-ko { border-top-color: var(--red); }
.rules-col h2 { font-size: 1.25rem; }
.rules-ok h2 { color: var(--green); }
.rules-ico { width: 30px; height: 30px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; color: #fff; font-size: 1rem; background: var(--green); }
.rules-ko .rules-ico { background: var(--red); }
.rules-col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.rules-col li { position: relative; padding: 10px 12px 10px 38px; background: var(--bg-3); border-radius: 12px; overflow-wrap: anywhere; line-height: 1.45; }
.rules-col li::before { content: '✓'; position: absolute; left: 12px; top: 10px; font-weight: 800; color: var(--green); }
.rules-ko li::before { content: '✕'; color: var(--red); }
.admin-form .rules-ok > span { color: var(--green); }
.admin-form .rules-ko > span { color: var(--red); }
@media (max-width: 760px) { .rules { grid-template-columns: 1fr; } }

/* ===== Étape 5 : pages légales, déblocage de la boutique, rétractation, compte ===== */
.legal-page { max-width: 900px; }
.legal-text h1 { font-size: 1.6rem; margin: 0 0 4px; }
.legal-text h2 { font-size: 1.15rem; margin: 22px 0 6px; color: var(--red); }
.legal-text h3 { font-size: 1rem; margin: 16px 0 4px; }
.legal-text p, .legal-text li { line-height: 1.6; }
.legal-text ul, .legal-text ol { padding-left: 22px; }
.legal-box { border: 2px solid var(--red); border-radius: 14px; padding: 4px 18px 8px; margin: 18px 0; background: color-mix(in srgb, var(--red) 6%, transparent); }
.legal-box h2 { margin-top: 12px; }
.legal-links { margin: 10px 4px; color: var(--muted); }
.legal-links a { color: inherit; }
.shop-gate { max-width: 760px; }
.gate-card h2 { margin-top: 0; }
.gate-form { display: grid; gap: 10px; margin-top: 12px; }
.gate-form .check { align-items: flex-start; }
.gate-form .btn { justify-self: start; }
.card-ok { border-color: #a5d6a7; background: color-mix(in srgb, #2e7d32 8%, var(--bg-2)); }
.withdraw-box { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.withdraw-box p { margin: 0; }
.withdraw-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-top: 6px; }
.withdraw-link { display: inline-block; margin-top: 4px; }
.withdraw-effects ul { margin: 6px 0 0; }
.account-grid { margin-top: 18px; }
.account-delete form { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.cgv-check span { font-size: .85rem; line-height: 1.4; }
.foot { flex-wrap: wrap; }
.foot-legal a { color: inherit; }
.foot-tm { flex-basis: 100%; font-size: .72rem; opacity: .8; }
@media (max-width: 700px) {
  .withdraw-box, .withdraw-row { flex-direction: column; align-items: flex-start; }
}
.cgv-check { align-items: flex-start; }
.cgv-check input { margin-top: 4px; flex: none; }

/* ===== Relecture avant lancement : correctifs d'affichage ===== */
/* Guides : le logo tient entier dans la tuile (réduit à sa taille, jamais coupé sur les côtés) */
.guide-tile .tile-img { display: block; flex: none; width: 100%; max-width: 100%; height: 120px; object-fit: contain; object-position: center; }
/* éditeur de texte riche : libellé hors du <label> qui entourait tout l'éditeur */
.field > label > span { color: var(--muted); }
/* contrastes */
.items .q { color: #8a6200; }
html[data-mode="dark"] .items .q, html[data-theme="bloodmoon"] .items .q { color: var(--gold); }
html[data-mode="dark"] .btn.danger, html[data-theme="bloodmoon"] .btn.danger { color: #ff8a80; }
html[data-mode="dark"] .btn.danger:hover, html[data-theme="bloodmoon"] .btn.danger:hover { color: #fff; background: #c62828; }
/* panier : les prix et en-têtes ne se coupent jamais au milieu d'un mot */
.cart-table th, .cart-table td.right { white-space: nowrap; overflow-wrap: normal; }
/* en-têtes de page (commande, panier, admin) : le bouton passe à la ligne au lieu de déborder */
.admin-head { flex-wrap: wrap; }
/* admin : sous-menu sur plusieurs lignes, listes déroulantes jamais plus larges que leur case */
.admin-subnav { flex-wrap: wrap; gap: 8px 14px; }
select.input { max-width: 100%; }
@media (max-width: 900px) {
  :where(html:not(.scaled)) .quick-form { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } 
}
@media (max-width: 760px) {
  .quick-form, .admin-form, .settings-form { grid-template-columns: minmax(0, 1fr); }
  .input { min-width: 0; }
  /* pas de bande vide sous le menu sur les pages courtes */
  .shell { grid-template-rows: auto 1fr; }
  /* bannière en mode clair : fond rouge sous les valeurs blanches (Joueurs, Jour, Prochaine bloodmoon) */
  .brief-server { background: rgba(110,10,10,.62); padding: 8px 12px; border-radius: 12px; }
  .credit-quick { padding: 12px; }
  .credit-quick .cq-head { flex-basis: 100%; }
}
/* Le serveur, petit écran : tuile des infos sur une colonne, adresse IP jamais coupée */
@media (max-width: 480px) {
  .infos { grid-template-columns: 1fr; }
  .infos .copy { white-space: nowrap; }
}
/* Panier sur téléphone : chaque article en carte (nom sur toute la largeur, puis prix · quantité · total) */
.cart-item b { overflow-wrap: break-word; word-break: normal; }
@media (max-width: 600px) {
  .cart-table { display: block; overflow: visible; }
  .cart-table thead { display: none; }
  .cart-table tbody { display: block; }
  .cart-table tr { display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 8px 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
  .cart-table td { display: block; padding: 0; border: 0; }
  .cart-table td.cart-item { grid-column: 1 / -1; min-width: 0; display: flex; }
  .cart-table td.cart-item > span { min-width: 0; }
  .cart-table td:nth-child(2) { text-align: left; }
  .cart-table td:nth-child(4) { text-align: right; }
}
/* Promotions : code promo du moment (copiable), avec ses conditions */
.promo-code { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; padding: 10px 14px; margin: 0 0 12px; border: 2px dashed var(--red); border-radius: 14px;
  background: color-mix(in srgb, var(--red) 6%, transparent); }
.pc-tag { font-weight: 800; color: var(--red); }
.pc-code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-weight: 800; font-size: 1.05rem; letter-spacing: .06em; padding: 6px 12px; border-radius: 10px;
  border: 0; background: var(--bg-3); color: var(--text); cursor: pointer; }
.pc-code.done { background: var(--green); color: #fff; }
.pc-off { color: var(--green); font-size: 1.15rem; }
.pc-cond { font-size: .82rem; color: var(--muted); }
/* Interrupteurs admin : pages ON/OFF (vert = ON), mode maintenance (rouge) */
.switch.green input:checked + .slider { background: var(--green); border-color: var(--green); }
.page-switches { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 8px; }
.page-switch { margin: 0; }
.page-switch .switch-txt b { margin-left: 4px; }
.maint-switch { display: inline-flex; align-items: center; margin-left: 2px; padding: 4px 4px 4px 10px; border-left: 1px solid var(--line); }
@media (min-width: 1101px) { .admin-tabs { gap: 4px; } .admin-tab { padding: 8px 10px; } }
html.scaled .admin-tabs { gap: 4px; } html.scaled .admin-tab { padding: 8px 10px; }
.page-switch .switch-txt b.green { color: var(--green); }
.page-switch .switch-txt b.red { color: var(--red); }
.maint-switch .switch-txt { font-size: .85rem; }
.admin-tabs { align-items: center; }
.nav-off { opacity: .6; }
.off-tag { font-size: .62rem; font-weight: 800; background: #c62828; color: #fff; padding: 1px 5px; border-radius: 5px; margin-left: 4px; vertical-align: middle; }
.admin-notice { margin: 0 0 14px; padding: 10px 14px; border-radius: 12px; font-weight: 600; background: #fff4e5; color: #8a4b00; border: 1px solid #ffd199; }
.admin-notice.notice-maint { background: #c62828; color: #fff; border-color: #8e0000; }
.admin-notice.notice-maint a { color: #fff; text-decoration: underline; }
html[data-mode="dark"] .admin-notice:not(.notice-maint) { background: #3a2a10; color: #ffd199; border-color: #8a4b00; }
/* page de maintenance (autonome) */
.maint-body { min-height: calc(100vh / var(--z, 1)); margin: 0; display: flex; align-items: center; justify-content: center; padding: 24px;
  background: radial-gradient(1200px 600px at 30% 0%, #e53935 0%, #8e0d0d 45%, #1a0406 100%); color: #fff; }
.maint { max-width: 640px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.maint-logo { width: 120px; height: 120px; border-radius: 50%; background: #fff; box-shadow: 0 10px 30px rgba(0,0,0,.4); object-fit: cover; }
.maint-brand { font-size: 2.2rem; font-weight: 800; margin: 0; letter-spacing: -.02em; }
.maint-brand em { font-style: normal; color: #ffd6d6; }
.maint h1 { font-size: 1.6rem; margin: 8px 0 0; color: #fff; }
.maint-msg { font-size: 1.15rem; line-height: 1.55; margin: 4px 0 8px; color: #ffe9e9; text-wrap: balance; }
.maint-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: center; }
.maint-ip { font-size: .95rem; color: #ffe9e9; }
.maint-legal { font-size: .8rem; opacity: .85; margin-top: 18px; }
.maint-legal a { color: #fff; }
.maint-admin { font-size: .75rem; opacity: .6; margin: 0; }
.maint-admin a { color: #fff; }
/* Commandes de récompense : tuile Mon jeu + défilement du bandeau joueur */
.cmd-list { list-style: none; margin: 10px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 8px; }
.cmd-list li { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 10px; background: var(--bg-2); border: 1px solid var(--line); }
.cmd-list li b { font-size: .95rem; }
.cmd-list .cmd-state { font-size: .82rem; font-weight: 700; color: var(--muted); white-space: nowrap; }
.cmd-list li.ready { border-color: var(--green); background: rgba(0,161,24,.08); }
.cmd-list li.ready .cmd-state { color: var(--green); }
.me-cmds.cmd-in .cmd:not([hidden]) { animation: cmdIn .45s ease both; }
@keyframes cmdIn { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .me-cmds.cmd-in .cmd:not([hidden]) { animation: none; } }
/* Admin → codes promo : codes et en-têtes jamais coupés lettre par lettre ; boutons empilés ; défilement sur téléphone */
.admin-table.codes th, .admin-table.codes td { overflow-wrap: normal; }
.admin-table.codes th, .admin-table.codes td:first-child b { white-space: nowrap; }
.admin-table.codes .acts { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.admin-table.codes .acts .btn { white-space: nowrap; }
/* Le serveur : « Joueurs connectés » à gauche (15 joueurs visibles, défilement au-delà) ; à droite bloodmoon, 7 jours, faits marquants */
.side-stack { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.card-players { display: flex; flex-direction: column; }
.plist-scroll { max-height: calc(15 * 39px); overflow-y: auto; scrollbar-width: thin; padding-right: 6px; }
.side-stack > .card:last-child { flex: 1; }
.card-bm { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 4px 24px; align-items: start; }
.card-bm .bm-next p, .card-bm .bm-clock p { margin: 4px 0 0; }
.card-bm .bm-clock h3 { margin-top: 4px; }
@media (max-width: 760px) { .card-bm { grid-template-columns: 1fr; }
  .shop-bar { flex-wrap: wrap; } .shop-bar .shop-cats { flex-basis: 100%; } .shop-bar .cart-btn { order: -1; width: 100%; justify-content: center; } .shop-bar .credit-pill { order: -2; width: 100%; justify-content: center; } }
/* Boutique : recherche en direct à côté du titre */
.shop-head { justify-content: flex-start; align-items: center; gap: 12px 28px; }
.shop-search { flex: 0 1 460px; display: flex; align-items: center; gap: 8px; padding: 0 14px; height: 46px; border-radius: 14px;
  background: var(--bg-2); border: 2px solid var(--line); transition: border-color .15s, box-shadow .15s; }
.shop-search:focus-within { border-color: var(--red); box-shadow: 0 0 0 4px var(--red-glow); }
.shop-search input { flex: 1; min-width: 0; border: 0; outline: 0; background: none; color: var(--text); font: inherit; font-size: 1rem; }
.ss-ico { opacity: .7; }
.shop.searching .shop-promos { display: none; }
.shop-noresult { margin: 8px 0; }
@media (max-width: 760px) { .shop-search { flex-basis: 100%; } }
/* Admin → Articles : nom, catégorie, prix modifiables en un clic */
.ie { cursor: text; border-bottom: 1px dashed transparent; border-radius: 4px; padding: 1px 3px; margin: -1px -3px; transition: background .2s, box-shadow .2s, border-color .2s; }
.ie:hover, .ie:focus-visible { border-bottom-color: var(--muted); background: var(--bg-3); outline: none; }
b.ie { color: var(--red); }
.ie-input { min-width: 220px; width: 100%; font-weight: 600; }
.ie-input.ie-price { min-width: 0; width: 96px; text-align: right; }
.ie-cat { min-width: 170px; }
.ie-busy { opacity: .5; }
.ie-ok { box-shadow: 0 0 0 3px rgba(0,161,24,.45); border-color: var(--green) !important; }
.ie-ko { box-shadow: 0 0 0 3px var(--red-glow); border-color: var(--red) !important; }
.ie-help { margin: 4px 0 8px; }
.site-version { font-size: .8rem; font-weight: 600; letter-spacing: 0; margin-left: 8px; vertical-align: middle; }

/* ---------- Admin → Articles : ajout de masse ---------- */
.mass-add h2 small { font-size: .8rem; font-weight: 600; margin-left: 6px; }
.mass-tabs { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0; }
.mass-tab { border: 1px solid var(--line, rgba(127,127,127,.3)); background: var(--bg-2, transparent); color: inherit; border-radius: 999px; padding: 5px 12px; font: inherit; font-size: .85rem; font-weight: 700; cursor: pointer; }
.mass-tab small { opacity: .6; font-weight: 600; }
.mass-tab b { color: #00A118; font-size: .78rem; }
.mass-tab.on { background: var(--red, #c62828); border-color: transparent; color: #fff; }
.mass-tab.on small, .mass-tab.on b { color: #fff; opacity: .9; }
.mass-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; margin-bottom: 8px; }
.mass-tools #mass-q { flex: 0 1 300px; width: 300px; min-width: 0; }
.mass-tools .field.check { margin: 0; }
.mass-scroll { max-height: 62vh; max-height: calc(62vh / var(--z, 1)); overflow: auto; border: 1px solid var(--line, rgba(127,127,127,.25)); border-radius: 10px; }
.mass-table { margin: 0; min-width: 680px; }
.mass-table thead th { position: sticky; top: 0; z-index: 1; background: var(--bg-2, var(--bg, #fff)); }
.mass-table td { vertical-align: middle; }
.mass-table .admin-ico { width: 36px; height: 36px; }
.mass-table .item-ico.mini { height: 36px; background: var(--bg-3); }
.mass-table .item-ico.mini .tinted { width: 32px; height: 32px; }
.mass-table .m-qty { width: 80px; }
.mass-table .m-price { width: 90px; }
.mass-table .m-cat { min-width: 150px; }
.mass-table tr.picked td { background: rgba(0,161,24,.07); }
.mass-table tr.have td { opacity: .45; }
.mass-table .tag-mod { background: #e3f0ff; color: #0b4f9c; }
html[data-mode="dark"] .mass-table .tag-mod { background: #12304f; color: #9cc8ff; }
.mass-table tr.have input, .mass-table tr.have select { cursor: not-allowed; }
.mass-table tr.bad td { background: rgba(198,40,40,.10); }
.mass-table tr.bad .m-price:placeholder-shown, .mass-table tr.bad .m-cat:has(option[value=""]:checked) { outline: 2px solid #c62828; }
.mass-foot { position: sticky; bottom: 0; display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 0 2px; background: var(--bg-2); }
.mass-file { margin-top: 10px; }
.mass-file summary { cursor: pointer; }
.mass-upload { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 8px; }
@media (max-width: 760px) { .mass-table .m-cat { min-width: 110px; } .mass-tools #mass-q { width: auto; flex: 1 1 100%; } .mass-foot { position: static; } }

/* ---------- Panier : cashback automatique ---------- */
.cashback-box { margin: 12px 0 4px; padding: 10px 12px; border: 1px dashed var(--line); border-radius: 12px; background: var(--bg-3); }
.cashback-box.on { border-style: solid; border-color: rgba(0,161,24,.45); background: rgba(0,161,24,.07); }
.cashback-box p { margin: 0 0 6px; }
.cashback-box .cb-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 10px; align-items: baseline; }
.cb-tiers { list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(46px, 1fr)); gap: 4px; margin: 4px 0 8px; padding: 0; }
.cb-tiers li { text-align: center; border-radius: 8px; padding: 3px 2px; background: var(--bg-2); border: 1px solid var(--line); line-height: 1.15; }
.cb-tiers li b { display: block; font-size: .85rem; }
.cb-tiers li small { font-size: .68rem; color: var(--muted); }
.cb-tiers li.ok { background: #00A118; border-color: #00A118; color: #fff; }
.cb-tiers li.ok small { color: rgba(255,255,255,.85); }
.cashback-box .cb-next { font-weight: 700; }
.cashback-got { margin: 10px 0 0; font-weight: 700; color: #00A118; }
.kpi-cb { border-color: rgba(0,161,24,.5); }
.cb-admin { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 6px 18px; }
.cb-row { display: flex; gap: 10px; align-items: center; }
.cb-row label { display: inline-flex; gap: 6px; align-items: center; white-space: nowrap; }
.cb-row .input.sm { width: 80px; }

/* ---------- Admin : outil « Donner un objet » (/give) ---------- */
.give h2 small { font-size: .8rem; font-weight: 600; margin-left: 6px; }
.give-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 18px; align-items: start; }
@media (max-width: 1100px) { .give-grid { grid-template-columns: minmax(0, 1fr); } .give-pick { position: static; } }
.give-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.give-tools #give-q { flex: 1 1 220px; min-width: 0; }
.give-tools select { flex: 1 1 130px; width: auto; min-width: 0; }
.give-tools .field.check { margin: 0; }
.give-list { list-style: none; margin: 6px 0 0; padding: 0; max-height: 56vh; max-height: calc(56vh / var(--z, 1)); overflow: auto; border: 1px solid var(--line, rgba(127,127,127,.25)); border-radius: 10px; }
.give-list:empty { display: none; }
.give-list li + li { border-top: 1px solid var(--line, rgba(127,127,127,.15)); }
.give-list button { display: flex; align-items: center; gap: 10px; width: 100%; padding: 7px 10px; border: 0; background: transparent; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.give-list button:hover { background: var(--bg-3, rgba(127,127,127,.08)); }
.give-list button.on { background: rgba(0,161,24,.10); }
.give-list .admin-ico, .give-head .admin-ico { width: 36px; height: 36px; flex: none; }
.give-list .item-ico.mini, .give-head .item-ico.mini { height: 36px; width: 36px; flex: none; background: var(--bg-3); }
.give-list .item-ico.mini .tinted, .give-head .item-ico.mini .tinted { width: 32px; height: 32px; }
.give-l { min-width: 0; overflow-wrap: anywhere; line-height: 1.35; }
.give-l .tag { margin-top: 2px; display: inline-block; }
.tag-src.s-plus { background: #fde7e7; color: #b00000; }
.tag-src.s-max { background: #dff7f5; color: #007a71; }
.tag-src.s-azc { background: #e3f0ff; color: #0b4f9c; }
.tag-src.s-jeu { background: var(--bg-3, #eee); color: var(--muted, #555); }
.tag-src.s-mod { background: #efe7ff; color: #5b2ca8; }
.tag-hid { background: #eee; color: #777; }
html[data-mode="dark"] .tag-src.s-plus { background: #4a1414; color: #ffb4b4; }
html[data-mode="dark"] .tag-src.s-max { background: #0d3b37; color: #8fe9e0; }
html[data-mode="dark"] .tag-src.s-azc { background: #12304f; color: #9cc8ff; }
html[data-mode="dark"] .tag-src.s-mod { background: #2c1d4a; color: #cdb4ff; }
html[data-mode="dark"] .tag-hid { background: #333; color: #aaa; }
.give-pick { border: 1px solid var(--line, rgba(127,127,127,.25)); border-radius: 12px; padding: 14px; background: var(--bg-2, transparent); position: sticky; top: 12px; }
.give-empty { margin: 0; }
.give-head { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 10px; overflow-wrap: anywhere; }
.give-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 10px 0; }
.give-row[hidden] { display: none; }
.give-lbl { width: 78px; flex: none; font-weight: 700; font-size: .9rem; }
.give-row #give-qty { width: 110px; }
.give-row #give-player { flex: 1 1 200px; min-width: 0; }
.give-row #give-qual { flex: 1 1 140px; max-width: 240px; accent-color: var(--red, #c62828); }
.give-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.give-chips button { border: 1px solid var(--line, rgba(127,127,127,.3)); background: var(--bg, transparent); color: inherit; border-radius: 999px; padding: 4px 11px; font: inherit; font-size: .85rem; font-weight: 700; cursor: pointer; }
.give-chips button.on { background: var(--red, #c62828); border-color: transparent; color: #fff; }
.give-cmd { margin: 12px 0 8px; padding: 8px 10px; border-radius: 8px; background: var(--bg-3, rgba(127,127,127,.1)); overflow-wrap: anywhere; }
.give-err { color: #c62828; font-weight: 700; margin: 6px 0; }
.give-actions { display: flex; flex-wrap: wrap; gap: 8px; }

/* ---------- Écran « connexion requise » (Carte, Chez Rekt, Mon Jeu) ---------- */
.lockwall { position: relative; min-height: 380px; display: flex; align-items: center; justify-content: center; border-radius: var(--radius); overflow: hidden; padding: 30px 16px; }
.lockwall-bg { position: absolute; inset: 0; background: center / cover no-repeat; filter: blur(9px) saturate(.8); transform: scale(1.08); opacity: .75; }
.lockwall-bg.no-img { filter: none; transform: none; opacity: 1;
  background: radial-gradient(circle at 30% 35%, rgba(211,47,47,.18), transparent 55%), radial-gradient(circle at 75% 70%, rgba(0,161,24,.14), transparent 50%),
    repeating-linear-gradient(0deg, transparent 0 47px, var(--line) 47px 48px), repeating-linear-gradient(90deg, transparent 0 47px, var(--line) 47px 48px), var(--bg-3); }
.lockwall-card { position: relative; max-width: 560px; width: 100%; }
.lockwall-ico { font-size: 2.6rem; margin: 0 0 6px; }

/* ---------- Carte (onglet Carte et panel admin) ---------- */
.map-intro { margin-top: -6px; }
.map-app { display: grid; grid-template-columns: minmax(0, calc(84vh / var(--z, 1))) 340px; gap: 16px; align-items: start; justify-content: center; }
@media (max-width: 1000px) { .map-app { grid-template-columns: minmax(0, 1fr); } .map-view { max-width: calc(90vh / var(--z, 1)); margin: 0 auto; } }
.map-view { position: relative; width: 100%; aspect-ratio: 1 / 1; overflow: hidden; border-radius: var(--radius); border: 1px solid var(--line);
  background: #0f1a12; touch-action: none; user-select: none; -webkit-user-select: none; cursor: grab; outline: none; }
.map-view.dragging { cursor: grabbing; }
.map-view.drawing { cursor: crosshair; }
.map-stage { position: absolute; left: 0; top: 0; transform-origin: 0 0; will-change: transform; }
.map-stage.no-map { background: repeating-linear-gradient(0deg, transparent 0 63px, rgba(255,255,255,.06) 63px 64px),
  repeating-linear-gradient(90deg, transparent 0 63px, rgba(255,255,255,.06) 63px 64px), #26302a; }
.map-img { position: absolute; inset: 0; width: 100%; height: 100%; image-rendering: auto; pointer-events: none; }
.map-stage.no-map .map-img { display: none; }
.map-svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.map-svg * { vector-effect: non-scaling-stroke; }
.map-grid { stroke: rgba(255,255,255,.22); stroke-width: 1; }
.map-grid.axis { stroke: rgba(255,255,255,.45); stroke-dasharray: 6 4; }
.map-zone { fill: var(--c); fill-opacity: .22; stroke: var(--c); stroke-width: 2; cursor: pointer; }
.map-zone:hover { fill-opacity: .38; }
.map-mine { fill: var(--c); fill-opacity: .25; stroke: var(--c); stroke-width: 2.5; stroke-dasharray: 8 4; cursor: pointer; }
.map-draft { fill: none; stroke: #fff; stroke-width: 2; stroke-dasharray: 5 4; }
.map-pins { position: absolute; inset: 0; pointer-events: none; }
.map-pin { position: absolute; left: 0; top: 0; pointer-events: auto; display: flex; align-items: center; gap: 4px; white-space: nowrap; cursor: pointer;
  margin: -12px 0 0 -12px; font-size: .78rem; font-weight: 700; color: #fff; text-shadow: 0 1px 3px #000, 0 0 2px #000; }
.map-pin i { font-style: normal; font-size: 1.15rem; line-height: 24px; width: 24px; text-align: center; filter: drop-shadow(0 1px 2px rgba(0,0,0,.6)); }
.map-pin span { background: rgba(0,0,0,.45); padding: 1px 6px; border-radius: 6px; }
.pin-town { margin: -10px 0 0 0; transform-origin: left; }
.pin-town span { background: none; padding: 0; translate: -50% 0; font-size: .95rem; letter-spacing: .03em; color: #fffbe8; }
.pin-town.size-1 span { font-size: .8rem; }
.pin-town.size-3 span { font-size: 1.2rem; text-transform: uppercase; letter-spacing: .08em; }
.map-admin .pin-town { cursor: pointer; }
.pin-text { margin: -10px 0 0 0; }
.pin-text span { background: none; translate: -50% 0; font-size: .95rem; }
.pin-zone-label span { background: rgba(0,0,0,.3); }
.pin-draft { width: 10px; height: 10px; margin: -5px 0 0 -5px; border-radius: 50%; background: #fff; border: 2px solid var(--red); pointer-events: none; }
.pin-ping i { color: #ffeb3b; font-size: 1.3rem; }
.pin-me, .pin-player { margin: -8px 0 0 -8px; cursor: default; }
.pin-me b, .pin-player b { width: 16px; height: 16px; border-radius: 50%; background: #29b6f6; border: 3px solid #fff; box-shadow: 0 0 0 0 rgba(41,182,246,.7); animation: map-pulse 2s infinite; }
.pin-player { cursor: pointer; }
.pin-player b { background: #ffca28; animation: none; width: 13px; height: 13px; border-width: 2px; }
@keyframes map-pulse { 0% { box-shadow: 0 0 0 0 rgba(41,182,246,.7); } 70% { box-shadow: 0 0 0 14px rgba(41,182,246,0); } 100% { box-shadow: 0 0 0 0 rgba(41,182,246,0); } }
.map-ctrl { position: absolute; top: 10px; left: 10px; z-index: 3; display: flex; flex-direction: column; gap: 4px; }
.map-ctrl button { width: 34px; height: 34px; border-radius: 8px; border: 1px solid rgba(0,0,0,.2); background: rgba(255,255,255,.92); color: #111; font: inherit; font-size: 1.2rem; font-weight: 700; cursor: pointer; }
.map-ctrl .map-fit { width: auto; padding: 0 12px; font-size: .9rem; white-space: nowrap; }
.map-coords { position: absolute; left: 10px; bottom: 8px; z-index: 3; color: #fff; font-size: .8rem; text-shadow: 0 1px 2px #000; pointer-events: none; }
.map-hint, .map-note-msg { position: absolute; top: 10px; left: 56px; right: 10px; z-index: 4; display: flex; flex-wrap: wrap; align-items: center; gap: 8px;
  padding: 8px 12px; border-radius: 10px; background: rgba(20,20,25,.88); color: #fff; font-size: .88rem; }
.map-hint[hidden], .map-note-msg[hidden] { display: none; }
.map-hint span { flex: 1 1 200px; }
.map-note-msg { top: auto; bottom: 34px; background: rgba(120,20,20,.92); }
.map-pop { position: absolute; left: 0; top: 0; z-index: 5; width: max-content; max-width: min(260px, calc(100% - 16px)); max-height: calc(100% - 16px); overflow-y: auto; padding: 9px 12px; border-radius: 10px;
  background: var(--bg-2); color: var(--text); border: 1px solid var(--line); box-shadow: 0 8px 22px rgba(0,0,0,.35); font-size: .86rem; cursor: auto; overflow-wrap: anywhere; }
.map-pop[hidden] { display: none; }
.map-pop p { margin: 6px 0; }
.map-pop-act { display: flex; gap: 6px; margin-top: 8px; }
.map-side { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.map-box { background: var(--bg-2); border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; }
.map-box h3 { margin: 0 0 8px; font-size: 1rem; }
.map-filters { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 10px; }
.map-filter { display: flex; align-items: center; gap: 6px; font-size: .86rem; cursor: pointer; }
.map-swatch { width: 12px; height: 12px; border-radius: 3px; background: var(--c); border: 1px solid rgba(0,0,0,.25); flex: none; }
.map-goto { display: flex; gap: 6px; margin-top: 8px; }
.map-goto .input { min-width: 0; flex: 1 1 60px; }
.map-tools { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
.map-tools .btn.on { background: var(--red); color: #fff; }
.map-list { list-style: none; margin: 0; padding: 0; max-height: 46vh; overflow: auto; }
.map-list li { display: flex; align-items: center; gap: 4px; border-top: 1px solid var(--line); }
.map-list li:first-child { border-top: 0; }
.map-li-empty { padding: 8px 0; }
.map-li-go { flex: 1; min-width: 0; display: flex; align-items: center; gap: 8px; padding: 7px 2px; border: 0; background: none; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.map-li-go i { font-style: normal; font-size: 1.15rem; width: 24px; text-align: center; flex: none; }
.map-li-go span { min-width: 0; display: flex; flex-direction: column; }
.map-li-go b { font-size: .88rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.map-li-go small { font-size: .76rem; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.map-li-act { flex: none; border: 0; background: none; color: var(--muted); cursor: pointer; font-size: .9rem; padding: 4px 6px; text-decoration: none; }
.map-li-act:hover { color: var(--text); }
.map-dot { width: 12px !important; height: 12px; border-radius: 50%; background: #ffca28; border: 2px solid #fff; box-shadow: 0 0 0 1px rgba(0,0,0,.3); margin: 0 6px; }
.map-editor { border: 1px solid var(--line); border-radius: 12px; padding: 10px; margin-bottom: 10px; background: var(--bg-3); }
.map-editor[hidden] { display: none; }
.map-form { display: flex; flex-direction: column; gap: 8px; }
.map-field { display: flex; flex-direction: column; gap: 4px; font-size: .84rem; font-weight: 600; }
.map-field textarea { resize: vertical; }
.map-icons, .map-colors { display: flex; flex-wrap: wrap; gap: 4px; }
.map-icons button { width: 32px; height: 32px; border-radius: 8px; border: 1px solid var(--line); background: var(--bg-2); font-size: 1.05rem; cursor: pointer; color: inherit; }
.map-colors button { width: 26px; height: 26px; border-radius: 50%; border: 2px solid var(--line); background: var(--c); cursor: pointer; }
.map-icons button.on, .map-colors button.on { outline: 3px solid var(--red); outline-offset: 1px; }
.map-form-act { display: flex; flex-wrap: wrap; gap: 6px; }
/* Carte : fondus des filtres, bulle, ville en cours de déplacement, fiche de ville */
.map-layer, .map-pin { transition: opacity .35s ease; }
.map-zone, .map-mine { transition: fill-opacity .2s ease; }
.map-svg .f-hide, .map-pin.f-hide { opacity: 0 !important; pointer-events: none !important; }
.map-filter.empty { opacity: .55; }
.pin-town.editing { z-index: 2; cursor: move; }
.pin-town.editing span { background: rgba(211,47,47,.6); padding: 2px 9px; border-radius: 6px; outline: 2px dashed #fff; outline-offset: 1px; }
.map-pop.wide { width: min(330px, calc(100% - 16px)); max-width: none; }
.map-li-head { display: block !important; padding: 6px 0 8px; }
.map-unotes-box .map-list { max-height: 34vh; }
.map-pop-x { position: sticky; top: 0; float: right; margin: -4px -6px 0 6px; width: 24px; height: 24px; border: 0; border-radius: 50%; background: var(--bg-3); color: var(--text); font-size: 1rem; line-height: 1; cursor: pointer; }
.map-pop.pop-in { animation: map-pop-in .22s ease-out; }
@keyframes map-pop-in { from { opacity: 0; } to { opacity: 1; } }
.map-town { display: flex; flex-direction: column; gap: 2px; }
.map-town-name { font-size: 1.08rem; }
.map-town dl { display: grid; grid-template-columns: auto 1fr; gap: 3px 10px; margin: 8px 0 4px; }
.map-town dt { color: var(--muted); font-size: .8rem; }
.map-town dd { margin: 0; font-weight: 700; font-size: .84rem; }
.map-town-ev b { display: block; font-size: .72rem; text-transform: uppercase; letter-spacing: .04em; color: var(--red); margin-bottom: 2px; }
@media (prefers-reduced-motion: reduce) { .map-layer, .map-pin, .map-zone, .map-mine { transition: none; } .map-pop.pop-in { animation: none; } }

/* ---------- Panel admin → Effets visuels (évènements de l'année) ---------- */
.sx-admin td { vertical-align: middle; }
.sx-admin select.input { width: auto; min-width: 0; padding-right: 26px; }
.sx-dates { white-space: nowrap; }
.sx-dates .sx-day { margin-right: 4px; }
.sx-logo-cell { display: flex; gap: 12px; align-items: center; }
.sx-logo-cell label { display: flex; gap: 6px; align-items: center; margin-top: 4px; }
.sx-logo-thumb { width: 56px; height: 56px; border-radius: 50%; object-fit: contain; background: #fff; border: 1px solid var(--line); }
.sx-admin tr.sx-current td { background: rgba(255, 215, 0, .08); }

/* ===== Admin : suivi complet d'un joueur (/track sans limite, v1.16.0) ===== */
.track-form { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.track-form > .input { flex: 1 1 260px; }
.track-hours { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; }
.track-hours .input.sm { width: 90px; }
.track-recent { margin-top: 12px; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.track-recent .tag { text-decoration: none; }
.track-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.track-head h2 { margin: 0; display: block; }
.track-who { color: var(--red); }
.track-wait { display: flex; align-items: center; gap: 10px; font-weight: 600; padding: 14px 0; }
.track-sum { margin: 10px 0 6px; }
.track-cats { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0; }
.track-cats .chip b { opacity: .7; margin-left: 3px; }
.track-cats .chip[class*="tc-"]::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 6px; background: var(--tc); vertical-align: 1px; }
.track-cats .chip.on b { opacity: 1; }
.tc-red { --tc: #d32f2f; } .tc-orange { --tc: #ef8a17; } .tc-blue { --tc: #1e88e5; } .tc-green { --tc: #2e9d4f; } .tc-grey { --tc: #8a8a96; }
.track-tools { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin: 6px 0; }
.track-tools #track-q { flex: 1 1 280px; }
.track-tools select.input { width: auto; flex: 0 0 auto; }
.track-wrap { overflow: auto; max-height: 72vh; border: 1px solid var(--line); border-radius: 10px; background: var(--bg-2); }
.track-table { width: 100%; border-collapse: collapse; font-size: .86rem; }
.track-table th { position: sticky; top: 0; z-index: 1; background: var(--bg-3); text-align: left; padding: 8px 10px; font-size: .78rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
.track-table td { padding: 6px 10px; border-top: 1px solid var(--line); vertical-align: top; }
.track-table tbody tr:hover td { background: rgba(127, 127, 127, .06); }
.tt-date { white-space: nowrap; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .8rem; color: var(--muted); }
.tt-date b { color: var(--text); font-weight: 700; }
.tt-text { word-break: break-word; line-height: 1.45; }
.tt-text mark { background: #ffe58a; color: #1a1a1a; border-radius: 3px; padding: 0 2px; }
.tcat { display: inline-block; padding: 2px 8px; border-radius: 6px; font-size: .72rem; font-weight: 800; white-space: nowrap; letter-spacing: .02em;
  color: var(--tc); background: color-mix(in srgb, var(--tc) 13%, transparent); border: 1px solid color-mix(in srgb, var(--tc) 35%, transparent); }
.track-again { margin-top: 16px; }
@media (max-width: 760px) {
  .track-table thead { display: none; }
  .track-table tr { display: grid; grid-template-columns: auto 1fr; border-top: 1px solid var(--line); }
  .track-table td { border-top: 0; padding: 6px 8px; }
  .track-table td.tt-text { grid-column: 1 / -1; padding-top: 0; }
  .track-wrap { max-height: none; }
}

/* ===== Admin → Carte : claims de tous les joueurs (v1.17.0) ===== */
.map-claim { fill: var(--c); fill-opacity: .2; stroke: var(--c); stroke-width: 2; cursor: pointer; transition: fill-opacity .2s ease, opacity .25s ease; }
.map-claim:hover { fill-opacity: .4; }
.map-claim.exp { fill-opacity: .1; stroke-dasharray: 6 4; }
.map-claim.sel { fill-opacity: .38; stroke-width: 3; }
.map-claim.dim { opacity: .22; }
.pin-claim { margin: -12px 0 0 -12px; }
.pin-claim i { font-size: .9rem; }
.pin-claim.dim { opacity: .3; }
.map-cdot { width: 12px !important; height: 12px; border-radius: 3px; background: var(--c); border: 1px solid rgba(0,0,0,.25); margin: 0 6px; flex: none; }
.map-cdot.exp { background: transparent; border: 2px dashed var(--c); }
.map-claims-box .input[type="search"] { width: 100%; margin-bottom: 6px; }
.map-claims-box .map-list { max-height: 42vh; }
.map-claim-owner.open { background: rgba(127, 127, 127, .09); border-radius: 8px; }
.map-claim-item .map-li-go { padding-left: 26px; }
.map-claim-item .map-li-go i { font-size: .9rem; }
.map-claim-dl { display: grid; grid-template-columns: auto 1fr; gap: 3px 10px; margin: 8px 0 6px; font-size: .82rem; }
.map-claim-dl dt { color: var(--muted); }
.map-claim-dl dd { margin: 0; }
@media (prefers-reduced-motion: reduce) { .map-claim { transition: none; } }
.pin-claim.far { margin: -5px 0 0 -5px; }
.pin-claim.far b { width: 10px; height: 10px; border-radius: 2px; background: var(--c); border: 1.5px solid #fff; box-shadow: 0 0 0 1px rgba(0,0,0,.45); }
.pin-claim.far.exp b { background: rgba(158,158,158,.5); border-style: dashed; }
.pin-claim.sel.far b { width: 13px; height: 13px; }

/* ===== Admin → Commandes AZCAdmin : aide par rubrique (v1.18.0) ===== */
.help-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 6px 22px; margin-top: 10px; }
.help-sec h4 { margin: 8px 0 6px; font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); border-bottom: 1px solid var(--line); padding-bottom: 4px; }
.help-grid .help-list { columns: 1; padding-left: 0; list-style: none; margin: 0; }
.help-grid .help-list li { margin-bottom: 7px; line-height: 1.35; }
.help-grid .help-list .muted { font-size: .8rem; }
.help-new { font-size: .62rem; padding: 1px 5px; vertical-align: 1px; }
.help-grid .help-list .link { text-align: left; }
.help-foot { margin-top: 8px; }

/* ===== Admin → Carte : trajet d'un joueur (v1.18.0) ===== */
.map-route { fill: none; stroke: #00bcd4; stroke-width: 3px; vector-effect: non-scaling-stroke; stroke-linejoin: round; stroke-linecap: round; opacity: .9;
  filter: drop-shadow(0 0 1.5px rgba(0,0,0,.7)); pointer-events: none; }
.map-route.veh { stroke: #ff4081; }
.map-route.gap { stroke: #e0e0e0; stroke-width: 2px; stroke-dasharray: 6 6; opacity: .75; }
.pin-stop { margin: -11px 0 0 -11px; z-index: 2; }
.pin-stop b, .map-stop-n { display: inline-flex; align-items: center; justify-content: center; min-width: 22px; height: 22px; padding: 0 5px; border-radius: 11px;
  background: #00838f; color: #fff; font-size: .72rem; font-weight: 800; font-style: normal; border: 2px solid #fff; box-shadow: 0 1px 3px rgba(0,0,0,.55); }
.pin-stop.first b, .map-stop-n.first { background: #2e7d32; }
.pin-stop.last b, .map-stop-n.last { background: #c62828; }
.pin-stop.gap b { border-style: dashed; }
.pin-stop.sel b { transform: scale(1.25); background: #ffb300; color: #1a1a1a; }
.map-trajet-form { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; margin-bottom: 6px; }
.map-trajet-form > .input { flex: 1 1 140px; min-width: 0; }
.map-trajet-form .input.sm { width: 70px; }
.map-trajet-box .map-list { max-height: 40vh; }
.map-stop-li.sel { background: rgba(255, 179, 0, .12); border-radius: 8px; }
.map-stop-n { width: auto !important; margin: 0 4px; }
#map-tinfo .spinner { vertical-align: -3px; margin-right: 4px; }
/* Codes promo : état de la vitrine (v1.19.0) */
.admin-table.codes .tag { display: inline-block; margin-top: 2px; line-height: 1.35; }
.admin-table.codes .tag-on { background: #e6f6ea; color: #17692d; }
.admin-table.codes .tag-off { background: var(--bg-3, #eee); color: var(--muted, #666); font-weight: 600; }
.admin-table.codes .tag-warn { background: #fde7e7; color: #b00000; }
html[data-mode="dark"] .admin-table.codes .tag-on { background: #143d20; color: #9be3ad; }
html[data-mode="dark"] .admin-table.codes .tag-off { background: #2a2a2a; color: #aaa; }
html[data-mode="dark"] .admin-table.codes .tag-warn { background: #4a1414; color: #ffb3b3; }
/* Rapport quotidien d'AZCAdmin (v1.20.0) */
.rq-intro, .rq-main, .rq-archives, .rq-empty { margin-bottom: 18px; }
.rq-intro h2 small, .rq-archives h2 small { font-weight: 500; font-size: .75rem; }
.rq-legend { display: flex; flex-direction: column; gap: 4px; margin-top: 8px; }
.rq-missing { margin-top: 10px; background: #fff4e5; color: #8a4b00; border: 1px solid #ffd199; border-radius: 10px; padding: 8px 12px; }
.rq-main { border-top: 5px solid var(--line); }
.rq-main.lvl-red { border-top-color: #D32F2F; }
.rq-main.lvl-yellow { border-top-color: #e0a800; }
.rq-main.lvl-green { border-top-color: #00A118; }
.rq-title { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; }
.rq-title h2 { margin: 0; color: var(--text); font-size: 1.2rem; }
.rq-lvl { font-weight: 700; font-size: .8rem; padding: 4px 12px; border-radius: 999px; white-space: nowrap; }
.rq-report .lvl-red.rq-lvl, .rq-chip.lvl-red, .rq-type.lvl-red, .rq-sec .badge.lvl-red { background: #fde7e7; color: #b00000; }
.rq-report .lvl-yellow.rq-lvl, .rq-chip.lvl-yellow, .rq-type.lvl-yellow, .rq-sec .badge.lvl-yellow { background: #fff3cd; color: #7a5200; }
.rq-report .lvl-green.rq-lvl, .rq-chip.lvl-green { background: #e6f6ea; color: #17692d; }
.rq-meta { margin: 6px 0 12px; }
.rq-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 6px; }
.rq-chip { text-decoration: none; font-size: .8rem; font-weight: 600; padding: 5px 12px; border-radius: 999px; }
.rq-chip b { margin-left: 4px; }
.rq-chip.lvl-green { opacity: .8; }
.rq-sec { scroll-margin-top: 90px; border-top: 1px solid var(--line); margin-top: 12px; }
.rq-sec h3 { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; text-transform: none; letter-spacing: 0; font-size: .95rem; color: var(--text); }
.rq-none { margin: 6px 0 2px; }
.rq-list { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.rq-item { border: 1px solid var(--line); border-left: 4px solid #e0a800; border-radius: 10px; padding: 10px 12px; background: var(--bg);
  display: grid; grid-template-columns: 150px minmax(0, 1fr) auto; gap: 6px 14px; align-items: start; }
.rq-item.lvl-red { border-left-color: #D32F2F; }
.rq-line { display: flex; flex-direction: column; gap: 4px; }
.rq-time { font-family: ui-monospace, Consolas, monospace; font-weight: 700; }
.rq-type { font-size: .72rem; font-weight: 700; padding: 2px 8px; border-radius: 6px; width: fit-content; }
.rq-text { line-height: 1.5; }
.rq-name { font-weight: 700; color: var(--red); }
a.rq-name { text-decoration: underline dotted; text-underline-offset: 3px; }
.rq-acts { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.rq-acts form { margin: 0; }
.rq-arch { border: 1px solid var(--line); border-left: 4px solid var(--line); border-radius: 12px; margin-top: 8px; background: var(--bg); }
.rq-arch.lvl-red { border-left-color: #D32F2F; }
.rq-arch.lvl-yellow { border-left-color: #e0a800; }
.rq-arch.lvl-green { border-left-color: #00A118; }
.rq-arch > summary { cursor: pointer; list-style: none; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 14px; padding: 12px 14px; }
.rq-arch > summary::-webkit-details-marker { display: none; }
.rq-arch > summary::after { content: '▸'; margin-left: auto; color: var(--muted); transition: transform .2s; }
.rq-arch[open] > summary::after { transform: rotate(90deg); }
.rq-arch[open] > summary { border-bottom: 1px solid var(--line); }
.rq-arch > .rq-report { padding: 6px 14px 14px; }
.rq-arch .rq-item { background: var(--bg-2); }
.rq-arch-emoji { font-size: 1.15rem; }
.rq-arch-n { font-weight: 700; }
html[data-mode="dark"] .rq-report .lvl-red.rq-lvl, html[data-mode="dark"] .rq-chip.lvl-red, html[data-mode="dark"] .rq-type.lvl-red, html[data-mode="dark"] .rq-sec .badge.lvl-red { background: #4a1414; color: #ffb3b3; }
html[data-mode="dark"] .rq-report .lvl-yellow.rq-lvl, html[data-mode="dark"] .rq-chip.lvl-yellow, html[data-mode="dark"] .rq-type.lvl-yellow, html[data-mode="dark"] .rq-sec .badge.lvl-yellow { background: #3d3010; color: #ffd98a; }
html[data-mode="dark"] .rq-report .lvl-green.rq-lvl, html[data-mode="dark"] .rq-chip.lvl-green { background: #143d20; color: #9be3ad; }
html[data-mode="dark"] .rq-missing { background: #3a2a10; color: #ffd28a; border-color: #6b4a14; }
@media (max-width: 760px) {
  .rq-item { grid-template-columns: minmax(0, 1fr); }
  .rq-line { flex-direction: row; align-items: center; flex-wrap: wrap; }
  .rq-acts { justify-content: flex-start; }
  .rq-title h2 { font-size: 1.05rem; }
}
/* Ajout de masse : la recherche fouille tous les onglets (v1.21.0) */
.mass-tabs.searching .mass-tab { opacity: .45; }
/* Rentabilité : report des excédents des mois précédents (v1.22.0), partie hachurée */
.gauge-carry { position: absolute; inset: 0 auto 0 0; border-radius: 999px; background: repeating-linear-gradient(135deg, rgba(255,255,255,.45) 0 5px, transparent 5px 10px); pointer-events: none; }
.pm-bar span { position: relative; }
.pm-bar span i { position: absolute; left: 0; right: 0; bottom: 0; background: repeating-linear-gradient(135deg, rgba(255,255,255,.5) 0 4px, transparent 4px 8px); }
/* Onglet Mail (v1.23.0) : boîtes postmaster@ et contact@, tout à droite du bandeau */
.admin-tabs .tab-mail { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; }
.mail-badge { min-width: 20px; padding: 1px 6px; border-radius: 999px; background: var(--red); color: #fff; font-size: .72rem; line-height: 1.5; text-align: center; }
.admin-tab.active .mail-badge { background: #fff; color: var(--red); }
.mail { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 16px; align-items: start; }
.mail-side { padding: 14px; display: flex; flex-direction: column; gap: 12px; position: sticky; top: 12px; }
.mail-write { justify-content: center; }
.mail-write.active { outline: 3px solid var(--red-glow); }
.mail-boxes { display: flex; flex-direction: column; gap: 4px; }
.mail-boxname { display: flex; align-items: center; justify-content: space-between; gap: 6px; padding: 7px 10px; border-radius: 10px; font-weight: 700; }
.mail-boxname.on { background: var(--bg-3); }
.mail-boxname a { color: var(--text); }
.mail-off { font-size: .75rem; font-weight: 600; color: var(--red) !important; }
.mail-count { min-width: 20px; padding: 0 6px; border-radius: 999px; background: var(--red); color: #fff; font-size: .72rem; text-align: center; line-height: 1.6; }
.mail-folders { list-style: none; margin: 0 0 6px; padding: 0 0 0 8px; display: flex; flex-direction: column; gap: 2px; }
.mail-folders a { display: flex; justify-content: space-between; align-items: center; gap: 6px; padding: 5px 10px; border-radius: 8px; color: var(--text); font-size: .88rem; }
.mail-folders a:hover, .mail-settings:hover { background: var(--bg-3); text-decoration: none; }
.mail-folders a.active { background: var(--red); color: #fff; }
.mail-folders a.active .mail-count { background: #fff; color: var(--red); }
.mail-settings { font-size: .85rem; color: var(--muted); padding: 6px 10px; border-radius: 8px; }
.mail-settings.active { color: var(--red); font-weight: 700; }
.mail-main { min-width: 0; }
.mail-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.mail-head h2 { margin: 0; }
.mail-head h2 small { font-size: .78rem; font-weight: 600; }
.mail-search { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.mail-search .input { min-width: 220px; padding: 7px 10px; }
.mail-nl { font-size: .82rem; display: inline-flex; gap: 4px; align-items: center; }
.mail-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.mail-tools .danger, .mail-actions .danger { color: var(--red); }
.mail-total { margin-left: auto; }
.mail-all, .mail-check { display: inline-flex; align-items: center; padding: 0 6px; cursor: pointer; }
.mail-list { list-style: none; margin: 0; padding: 0; }
.mail-row { display: flex; align-items: center; border-bottom: 1px solid var(--line); }
.mail-row:hover { background: var(--bg-3); }
.mail-row.unread { box-shadow: inset 3px 0 0 var(--red); }
.mail-row.unread .mail-from, .mail-row.unread .mail-subj { font-weight: 800; }
.mail-link { flex: 1; min-width: 0; display: grid; grid-template-columns: minmax(120px, 220px) minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 9px 8px 9px 2px; color: var(--text); font-weight: 400; }
.mail-link:hover { text-decoration: none; }
.mail-from, .mail-subj { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mail-meta { display: inline-flex; gap: 8px; align-items: center; font-size: .8rem; color: var(--muted); white-space: nowrap; }
.mail-empty { padding: 26px 8px; text-align: center; }
.mail-pages { display: flex; align-items: center; justify-content: center; gap: 12px; margin-top: 12px; }
.mail-error { border: 1px solid var(--red); border-radius: 12px; padding: 12px 14px; margin: 8px 0; background: rgba(211,47,47,.07); }
.mail-backline { margin: 0 0 6px; font-size: .85rem; }
.mail-subject { font-size: 1.2rem !important; color: var(--text) !important; margin: 4px 0 10px !important; overflow-wrap: anywhere; }
.mail-actions { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-bottom: 12px; }
.mail-actions form { display: inline-flex; flex-wrap: wrap; gap: 6px; }
.mail-headers { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 4px 12px; margin: 0 0 12px; font-size: .88rem; }
.mail-headers dt { color: var(--muted); font-weight: 600; }
.mail-headers dd { margin: 0; overflow-wrap: anywhere; }
.mail-person { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; margin: 0 0 12px; border-radius: 12px; background: var(--bg-3); font-size: .88rem; }
.mail-person-ico { font-size: 1.3rem; line-height: 1; }
.mail-person p { margin: 6px 0 0; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.mail-imgbar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 8px 12px; margin-bottom: 8px; border-radius: 10px; background: #fff4e5; color: #6b3d00; font-size: .85rem; }
.mail-imgbar[hidden] { display: none; }
.mail-frame { display: block; width: 100%; height: 320px; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.mail-atts { margin-top: 14px; }
.mail-atts ul { list-style: none; padding: 0; margin: 8px 0 0; display: flex; flex-wrap: wrap; gap: 10px; }
.mail-atts li { display: flex; flex-direction: column; gap: 4px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 10px; max-width: 220px; font-size: .85rem; overflow-wrap: anywhere; }
.mail-atts img { max-width: 200px; max-height: 140px; border-radius: 6px; object-fit: cover; }
.mail-form select[size] { min-height: 150px; }
.mail-form select[size] option { padding: 4px 6px; }
.mail-text { min-height: 260px; font-family: inherit; line-height: 1.5; resize: vertical; }
.mail-send { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.mail-boxset { border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.mail-boxset legend { font-weight: 800; padding: 0 6px; }
.mail-models { display: flex; flex-direction: column; gap: 10px; }
.mail-model { display: grid; grid-template-columns: minmax(160px, 260px) minmax(0, 1fr); gap: 8px; }
@media (max-width: 900px) {
  .mail { grid-template-columns: minmax(0, 1fr); }
  .mail-side { position: static; }
  .admin-tabs .tab-mail { margin-left: 0; }
  .mail-link { grid-template-columns: minmax(0, 1fr) auto; grid-template-rows: auto auto; gap: 2px 8px; }
  .mail-from { grid-column: 1; }
  .mail-meta { grid-column: 2; grid-row: 1; }
  .mail-subj { grid-column: 1 / -1; font-size: .9rem; }
  .mail-model { grid-template-columns: minmax(0, 1fr); }
  .mail-search .input { min-width: 0; flex: 1 1 160px; }
}
/* Discord #update → Actualités (v1.24.0) : émojis du serveur, dates Discord, liaison dans le panel */
.rich img.emoji { display: inline-block; width: 1.375em; height: 1.375em; object-fit: contain; vertical-align: -.3em; margin: 0 .05em; border-radius: 0; }
.rich time { background: var(--bg-3); padding: 0 4px; border-radius: 4px; white-space: nowrap; }
/* titres # ## ### des actualités à la taille de Discord (1,5 / 1,25 / 1 fois le texte) */
.news-item .rich h2 { display: block; font-size: 1.5em; margin: 14px 0 6px; }
.news-item .rich h3 { font-size: 1.25em; margin: 12px 0 6px; }
.news-item .rich h4 { font-size: 1em; margin: 10px 0 4px; }
.dn-box p { margin: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.dn-rules { margin: 0; padding-left: 18px; display: flex; flex-direction: column; gap: 4px; }
.dn-state p { margin: 4px 0; }
.dn-note { margin: 0 0 12px; padding: 10px 12px; border-radius: 10px; background: var(--bg-3); }
.dn-form { display: flex; flex-direction: column; gap: 10px; max-width: 820px; }
.dn-form > p { margin: -4px 0 0; }
/* Boutique → tuile « Total depuis le début » (v1.25.0) */
.kpi-all { border-color: rgba(0,161,24,.5); }
.kpi-all.kpi-bad { border-color: rgba(211,47,47,.5); }
/* Réglages → Nouvelle saison (v1.26.0) */
.season-rules { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0 12px; }
.season-rules span { display: flex; flex-direction: column; align-items: center; min-width: 110px; padding: 8px 12px; border-radius: 12px; background: var(--bg-3); font-size: .8rem; color: var(--muted); }
.season-rules span b { font-size: 1.2rem; color: var(--green); }
.season-rules span.off b { color: var(--muted); }
.season-notes { margin: 0; padding-left: 18px; display: flex; flex-direction: column; gap: 4px; }
.season-total td { font-weight: 700; border-top: 2px solid var(--line); }
.season-players summary { cursor: pointer; }
.season-orders { width: 100%; margin: 6px 0 2px; font-size: .82rem; border-collapse: collapse; }
.season-orders td { padding: 3px 6px; border-bottom: 1px dashed var(--line); }
.season-orders .right { text-align: right; }
.season-confirm { display: flex; flex-direction: column; gap: 10px; max-width: 520px; }
/* Réglages → sous-onglets, bouton « Éditer le site » et interrupteur Maintenance (v1.28.0) */
.reglages-subnav { align-items: center; }
.subnav-btn { background: none; border: 0; padding: 0; font: inherit; font-weight: 600; color: var(--muted); cursor: pointer; }
.subnav-btn:hover { color: var(--text); }
.subnav-btn.on { color: var(--red); }
.reglages-subnav .maint-switch { margin-left: 0; padding: 0 0 0 14px; }
.admin-tab .off-tag { margin-left: 6px; }
/* Le serveur → « Joueurs sur 30 jours » : 30 barres serrées, une date tous les 5 jours (v1.28.2) */
.bars-30 { gap: 3px; }
.bars-30 .bar-fill { width: 100%; border-radius: 3px 3px 1px 1px; }
.bars-30 .bar-v { font-size: .6rem; }
.bars-30 .bar-l { font-size: .62rem; white-space: nowrap; min-height: 1.2em; }
@media (max-width: 760px) { .bars-30 { gap: 1px; } .bars-30 .bar-v { display: none; } }

/* v1.31.0 : console AZCAdmin — envoi programmé (« Envoyer dans N minutes / heures »), statuts programmée / annulée */
.console-form { flex-wrap: wrap; align-items: center; }
.console-form > .input { flex: 1 1 260px; }
.console-delay { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; white-space: nowrap; }
.console-form .console-delay .input { flex: 0 0 auto; }
.console-delay .input.sm { width: 80px; }
.console-delay select.input { width: auto; }
.badge.st-scheduled { background: #e3effd; color: #1d4f91; }
.badge.st-canceled { background: #ececf0; color: #5b5b66; }
.order-at { font-weight: 600; color: #1d4f91; }
.order header form.inline { margin-left: auto; }
html[data-mode="dark"] .badge.st-scheduled { background: #142a47; color: #9cc6ff; }
html[data-mode="dark"] .badge.st-canceled { background: #2a2a31; color: #b3b3bd; }
html[data-mode="dark"] .order-at { color: #9cc6ff; }

/* ---------- Commandes AZCAdmin : tuiles deux par deux + ⚡ Modération rapide (v1.32.0) ---------- */
@media (max-width: 1100px) { .cmd-duo { grid-template-columns: minmax(0, 1fr); } }
/* « Donner un objet » sur une demi-largeur : la fiche de l'objet passe sous la liste */
.cmd-duo .give-grid { grid-template-columns: minmax(0, 1fr); }
.cmd-duo .give-pick { position: static; }
.cmd-duo .give-list { max-height: 40vh; max-height: calc(40vh / var(--z, 1)); }
.qmod-form { margin-top: 4px; }
.qmod-form textarea.input { min-height: 70px; }
.qmod-dur { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.qmod-dur > select.input { flex: 0 1 220px; }
.qmod-custom { display: inline-flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.qmod-custom[hidden] { display: none; }
.qmod-custom select.input { width: auto; flex: 0 0 auto; }
.qmod-preview { border: 1px dashed var(--line); border-radius: 10px; padding: 10px 12px; font-size: .85rem; background: var(--bg-3); }
.qmod-preview[hidden] { display: none; }
.qmod-preview ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 3px; }
.qmod-preview blockquote { margin: 8px 0 0; padding: 6px 10px; border-left: 3px solid var(--red); background: var(--bg-2);
  border-radius: 0 8px 8px 0; overflow-wrap: anywhere; }
.qmod h3 { margin-top: 18px; }
.qmod-list { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 8px; }
.qmod-row { display: flex; gap: 10px; align-items: flex-start; justify-content: space-between; padding: 8px 10px;
  border: 1px solid var(--line); border-radius: 10px; }
.qmod-main { min-width: 0; line-height: 1.5; }
.qmod-main .tag { margin-left: 4px; }
.qmod-acts { display: flex; gap: 6px; flex: none; }
.qmod-recent { margin-top: 12px; }
.qmod-recent summary { cursor: pointer; color: var(--muted); }
.badge.qm-wait { background: #e3f0ff; color: #0b4f9c; }
.badge.qm-on { background: #fff4e5; color: #8a4b00; }
.badge.qm-perm, .badge.qm-warn { background: #c62828; color: #fff; }
.badge.qm-end { background: var(--bg-3); color: var(--muted); }
html[data-mode="dark"] .badge.qm-wait { background: #12304f; color: #9cc8ff; }
html[data-mode="dark"] .badge.qm-on { background: #3a2a10; color: #ffd28a; }
@media (max-width: 760px) { .qmod-row { flex-direction: column; } }
/* Réglages → Modération rapide : présélections */
.qmod-ptable { display: grid; gap: 10px; margin: 10px 0 16px; }
.qmod-prow { display: grid; gap: 6px; padding: 10px; border: 1px solid var(--line); border-radius: 10px; }
.qmod-prow.qmod-new { border-style: dashed; }
.qmod-pline { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.qmod-pline > input.input:not(.sm) { flex: 1 1 220px; min-width: 0; }
.qmod-pline > select.input { flex: 0 0 auto; width: auto; }
.qmod-move { display: inline-flex; gap: 2px; }
.qmod-new .qmod-move { visibility: hidden; }
.qmod-del { margin: 0; font-size: .8rem; }
.qmod-reset { display: block; margin-top: 12px; }
