/* ==========================================================
   Cubix Network — feuille de style
   Change les couleurs ici (variables) pour modifier tout le site.
   ========================================================== */
:root {
  --bg: #0a101c;
  --bg-2: #0f1727;
  --card: #141d2f;
  --card-2: #1a2539;
  --border: #22304a;
  --text: #e8eefb;
  --muted: #93a2bf;
  --primary: #1fb6ff;      /* cyan Cubix */
  --primary-2: #1667ff;    /* bleu profond */
  --primary-ink: #04131f;
  --gold: #ffc531;
  --gold-ink: #2a1d00;
  --danger: #ff5a6a;
  --success: #31d27c;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  --font: 'Poppins', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main { flex: 1; padding-bottom: 48px; }

a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }

img { max-width: 100%; }

h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 0.5em; }

.container { width: min(1180px, 100% - 32px); margin-inline: auto; }
.narrow { width: min(820px, 100% - 32px); }

.muted { color: var(--muted); }
.small { font-size: 0.88rem; }
.center { text-align: center; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 20px; border-radius: 10px; border: 0; cursor: pointer;
  font: 700 0.95rem var(--font); text-decoration: none !important;
  transition: transform 0.15s ease, filter 0.15s ease, background 0.15s ease;
}
.btn:hover { transform: translateY(-1px); filter: brightness(1.08); }
.btn:active { transform: translateY(0); }
.btn-primary { background: linear-gradient(135deg, var(--primary), var(--primary-2)); color: #fff; box-shadow: 0 6px 18px rgba(31, 182, 255, 0.25); }
.btn-ghost { background: var(--card-2); color: var(--text); border: 1px solid var(--border); }
.btn-microsoft { background: #fff; color: #1b1b1b; }
.btn-small { padding: 7px 14px; font-size: 0.85rem; border-radius: 8px; }
.btn-big { padding: 15px 22px; font-size: 1.05rem; }
.btn-block { width: 100%; }
.icon-btn {
  background: var(--card-2); border: 1px solid var(--border); color: var(--muted);
  width: 34px; height: 34px; border-radius: 8px; cursor: pointer; font-size: 0.9rem;
}
.icon-btn:hover { color: var(--danger); border-color: var(--danger); }
.link-danger { background: none; border: 0; color: var(--danger); cursor: pointer; font: inherit; font-size: 0.82rem; padding: 0; }
.link-more { font-weight: 600; font-size: 0.92rem; }

/* ---------- Barre du haut ---------- */
.topbar {
  position: sticky; top: 0; z-index: 50;
  background: rgba(10, 16, 28, 0.85); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.topbar-inner { display: flex; align-items: center; gap: 20px; min-height: 64px; }
.topbar-brand { display: flex; align-items: center; text-decoration: none !important; }
.topbar-nav { display: flex; align-items: center; gap: 4px; flex: 1; }
.topbar-nav > a {
  color: var(--text); font-weight: 600; font-size: 0.93rem; padding: 8px 12px; border-radius: 8px;
  text-decoration: none;
}
.topbar-nav > a:hover { background: var(--card); }
.topbar-nav > a.active { background: var(--card-2); color: var(--primary); }
.topbar-nav .nav-discord { color: #9aa6ff; }
.topbar-account { margin-left: auto; }
.account-chip {
  display: flex; align-items: center; gap: 10px; color: var(--text); font-weight: 600;
  background: var(--card); border: 1px solid var(--border); padding: 5px 14px 5px 5px; border-radius: 999px;
  text-decoration: none !important;
}
.nav-toggle { display: none; margin-left: auto; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 24px; height: 3px; background: var(--text); margin: 4px 0; border-radius: 2px; }

/* ---------- Logo texte ---------- */
.logo-text { display: inline-flex; align-items: center; gap: 10px; color: var(--text); }
.logo-cube {
  width: 34px; height: 34px; border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.45), transparent 45%),
    linear-gradient(135deg, var(--primary), var(--primary-2));
  box-shadow: inset -4px -4px 0 rgba(0, 0, 0, 0.25), 0 0 18px rgba(31, 182, 255, 0.45);
  transform: rotate(45deg) scale(0.82);
}
.logo-words { display: flex; flex-direction: column; line-height: 1; }
.logo-words b { font-weight: 900; font-size: 1.25rem; letter-spacing: 1px; }
.logo-words small { font-weight: 700; font-size: 0.62rem; letter-spacing: 4px; color: var(--primary); }
.logo-text.big .logo-cube { width: 74px; height: 74px; border-radius: 14px; }
.logo-text.big { flex-direction: column; gap: 22px; }
.logo-text.big .logo-words { align-items: center; }
.logo-text.big .logo-words b {
  font-size: clamp(2.6rem, 7vw, 4.6rem); letter-spacing: 3px;
  background: linear-gradient(180deg, #ffffff, #9fe2ff 55%, var(--primary));
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 4px 0 #0b3d8c) drop-shadow(0 10px 20px rgba(0, 0, 0, 0.5));
}
.logo-text.big .logo-words small {
  margin-top: 12px; font-size: 0.95rem; letter-spacing: 9px; color: var(--gold-ink);
  background: var(--gold); padding: 6px 16px 6px 25px; border-radius: 6px;
  box-shadow: 0 4px 0 #b9850a;
}
.logo-img.small { height: 38px; width: auto; }
.logo-img.big { max-height: 220px; width: auto; filter: drop-shadow(0 10px 25px rgba(0, 0, 0, 0.5)); }

/* ---------- Bandeau (hero) ---------- */
.hero {
  position: relative; padding: 46px 0 34px; overflow: hidden;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(31, 182, 255, 0.28), transparent 60%),
    radial-gradient(ellipse at 15% 80%, rgba(22, 103, 255, 0.18), transparent 50%),
    radial-gradient(ellipse at 85% 70%, rgba(255, 197, 49, 0.08), transparent 45%);
}
.hero::before {
  content: ''; position: absolute; inset: 0; opacity: 0.12; pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.08) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(180deg, #000, transparent 90%);
  -webkit-mask-image: linear-gradient(180deg, #000, transparent 90%);
}
.hero-inner { position: relative; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 20px; }
.hero-logo { display: flex; justify-content: center; text-decoration: none !important; }
.hero-side {
  display: flex; align-items: center; gap: 14px; background: none; border: 0; color: var(--text);
  font: inherit; cursor: pointer; text-decoration: none !important; padding: 0;
}
.hero-left { justify-self: start; text-align: left; }
.hero-right { justify-self: end; text-align: right; }
.hero-side-text { display: flex; flex-direction: column; }
.hero-side-text b { font-weight: 800; font-size: 1.05rem; letter-spacing: 0.5px; }
.hero-side-text small { color: var(--primary); font-weight: 600; }
.hero-circle {
  width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; font-size: 1.3rem;
  border: 2px solid var(--primary); color: var(--primary); background: rgba(31, 182, 255, 0.08);
  transition: background 0.2s, color 0.2s;
}
.hero-side:hover .hero-circle { background: var(--primary); color: var(--primary-ink); }

/* ---------- Barre de bienvenue ---------- */
.welcome-bar {
  display: flex; align-items: stretch; background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden; min-height: 96px; box-shadow: var(--shadow); margin-bottom: 26px;
}
.welcome-brand { display: flex; align-items: center; gap: 16px; padding: 16px 26px; flex: 1; }
.welcome-brand b { display: block; font-size: 1.3rem; font-weight: 800; }
.welcome-brand span { color: var(--primary); font-weight: 600; }
.welcome-icon { width: 58px; height: 58px; object-fit: contain; }
.welcome-basket, .welcome-login {
  display: flex; align-items: center; justify-content: center; gap: 10px; padding: 0 34px 0 44px;
  text-decoration: none !important; position: relative;
  clip-path: polygon(28px 0, 100% 0, 100% 100%, 0 100%);
  margin-left: -20px; min-width: 210px; transition: filter 0.15s;
}
.welcome-basket:hover, .welcome-login:hover { filter: brightness(1.1); }
.welcome-basket { background: linear-gradient(135deg, var(--primary), var(--primary-2)); color: #fff; }
.welcome-login { background: var(--gold); color: var(--gold-ink); padding-right: 16px; }
.welcome-basket span, .welcome-login span { display: flex; flex-direction: column; text-align: right; }
.welcome-basket small, .welcome-login small { font-size: 0.78rem; font-weight: 600; opacity: 0.9; }
.welcome-basket b, .welcome-login b { font-size: 1.05rem; font-weight: 800; text-transform: uppercase; max-width: 160px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.welcome-skin { height: 88px; width: auto; align-self: flex-end; image-rendering: pixelated; }

/* ---------- Cartes de categories ---------- */
.cat-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; margin-bottom: 26px; }
.cat-card {
  position: relative; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  min-height: 190px; padding: 28px 30px; border-radius: var(--radius); overflow: hidden;
  text-decoration: none !important; color: #fff; border: 2px solid rgba(255, 255, 255, 0.18);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.cat-card::before {
  content: ''; position: absolute; right: -60px; top: -40%; width: 60%; height: 180%;
  border-radius: 50%; background: rgba(255, 255, 255, 0.08);
}
.cat-card:hover { transform: translateY(-4px); box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45); }
.cat-primary { background: linear-gradient(135deg, #22c2ff, #1667ff); }
.cat-alt { background: linear-gradient(135deg, #24324d, #172238); }
.cat-discord { background: linear-gradient(135deg, #6d7cff, #4752c4); }
.cat-text { position: relative; }
.cat-text h3 { font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 900; margin: 0 0 6px; text-shadow: 0 3px 0 rgba(0, 0, 0, 0.2); }
.cat-text span { font-weight: 700; font-size: 1.1rem; opacity: 0.9; }
.cat-img { position: relative; width: 150px; height: 150px; object-fit: contain; filter: drop-shadow(0 8px 14px rgba(0, 0, 0, 0.35)); transition: transform 0.25s ease; }
.cat-card:hover .cat-img { transform: scale(1.08) rotate(-3deg); }
.cat-emoji { display: grid; place-items: center; font-size: 5rem; }

/* ---------- Panneaux (cartes avec onglet) ---------- */
.panel {
  position: relative; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 34px 30px 28px; margin-bottom: 22px;
}
.panel-tab {
  position: absolute; top: -1px; left: 50%; transform: translateX(-50%);
  width: 64px; height: 8px; border-radius: 0 0 8px 8px; background: var(--primary);
}
.panel > h2 { text-align: center; font-size: 1.45rem; font-weight: 800; }
.panel-blue > h2 { font-size: 2rem; text-transform: uppercase; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.two-col > .panel { margin-bottom: 0; }
.two-col { margin-bottom: 22px; }

/* ---------- Statistiques ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 40px; }
.stat {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 22px; text-align: center;
}
.stat b { display: block; font-size: 1.9rem; font-weight: 900; color: var(--primary); }
.stat span { color: var(--muted); font-weight: 600; font-size: 0.9rem; }
.stat.is-online b { color: var(--success); }
.stat.is-offline b { color: var(--muted); }

/* ---------- Sections ---------- */
.section { margin-bottom: 44px; }
.section-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 18px; }
.section-title { font-size: clamp(1.6rem, 3vw, 2.3rem); font-weight: 900; margin: 0; }
.eyebrow { display: inline-block; color: var(--primary); font-weight: 800; letter-spacing: 2px; text-transform: uppercase; font-size: 0.8rem; margin-bottom: 8px; }

.about, .safety { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 30px; align-items: center; }
.about-text h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 900; }
.about-text p { color: var(--muted); }
.value-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.value { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; }
.value h3 { font-size: 1.02rem; color: var(--primary); }
.value p { margin: 0; color: var(--muted); font-size: 0.92rem; }
.safety .value h3 { color: var(--gold); }

/* ---------- Modes de jeu ---------- */
.mode-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.mode-card {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden;
  border-top: 4px solid var(--mode); display: flex; flex-direction: column; transition: transform 0.2s;
}
.mode-card:hover { transform: translateY(-4px); }
.mode-img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; display: block; }
.mode-img-fallback {
  display: grid; place-items: center;
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--mode) 55%, #0a101c), #0f1727);
}
.mode-img-fallback span {
  width: 70px; height: 70px; display: grid; place-items: center; border-radius: 14px;
  background: var(--mode); color: #fff; font-weight: 900; font-size: 2rem;
  box-shadow: inset -5px -5px 0 rgba(0, 0, 0, 0.25); transform: rotate(-6deg);
}
.mode-body { padding: 18px; display: flex; flex-direction: column; flex: 1; }
.mode-body h3 { font-size: 1.25rem; font-weight: 800; margin-bottom: 6px; }
.mode-body p { color: var(--muted); font-size: 0.92rem; flex: 1; }
.mode-tag {
  align-self: flex-start; font-size: 0.72rem; font-weight: 800; letter-spacing: 1px; text-transform: uppercase;
  color: var(--mode); background: color-mix(in srgb, var(--mode) 15%, transparent); padding: 3px 10px; border-radius: 999px; margin-bottom: 8px;
}
.mode-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.mode-detail {
  display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 0; background: var(--card);
  border: 1px solid var(--border); border-left: 5px solid var(--mode); border-radius: var(--radius);
  overflow: hidden; margin-bottom: 20px; scroll-margin-top: 90px;
}
.mode-detail .mode-img { height: 100%; aspect-ratio: auto; min-height: 240px; }
.mode-detail-body { padding: 28px; display: flex; flex-direction: column; }
.mode-detail-body h2 { font-size: 1.8rem; font-weight: 900; }
.mode-detail-body p { color: var(--muted); }
.mode-detail-body .btn { align-self: flex-start; }
/* Mode logos (transparent): shown whole on a tinted dark background instead of cropped */
.mode-img-logo {
  object-fit: contain; padding: 14px 18px;
  background: radial-gradient(circle at 50% 45%, color-mix(in srgb, var(--mode) 30%, #0f1727), #0a101c 75%);
}
.mode-detail .mode-img-logo { object-fit: contain; padding: 24px; }
/* "Soon" cards: greyed out, not clickable */
.mode-card.mode-soon { filter: grayscale(1); opacity: 0.55; border-top-color: #4b5563; }
.mode-card.mode-soon:hover { transform: none; }
.mode-card.mode-soon .mode-tag { color: #9ca3af; background: rgba(156, 163, 175, 0.15); }
.mode-card.mode-soon h3 { color: #9ca3af; }
.mode-img-soon { background: linear-gradient(135deg, #1f2937, #111827); }
.mode-img-soon span { background: #374151; color: #9ca3af; }

/* ---------- Listes ---------- */
.checks { list-style: none; padding: 0; margin: 0 0 18px; display: grid; gap: 8px; }
.checks li { position: relative; padding-left: 30px; }
.checks li::before {
  content: '✓'; position: absolute; left: 0; top: 1px; width: 20px; height: 20px; border-radius: 6px;
  display: grid; place-items: center; font-size: 0.75rem; font-weight: 900;
  background: rgba(31, 182, 255, 0.15); color: var(--primary);
}
.steps { margin: 0; padding-left: 22px; display: grid; gap: 10px; }
.steps li::marker { color: var(--primary); font-weight: 800; }
.rules { list-style: none; counter-reset: rule; padding: 0; margin: 10px 0 0; display: grid; gap: 12px; }
.rules li {
  counter-increment: rule; display: grid; grid-template-columns: 44px 1fr; gap: 4px 14px;
  background: var(--card-2); border: 1px solid var(--border); border-radius: 12px; padding: 16px 18px;
}
.rules li::before {
  content: counter(rule); grid-row: span 2; width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--primary), var(--primary-2)); color: #fff; font-weight: 900;
}
.rules li span { color: var(--muted); }

.news { display: grid; gap: 10px; margin-bottom: 14px; }
.news-item {
  display: flex; flex-direction: column; background: var(--card-2); border: 1px solid var(--border);
  border-radius: 10px; padding: 12px 16px; color: var(--text); text-decoration: none !important;
}
.news-item:hover { border-color: var(--primary); }
.news-date { font-size: 0.78rem; color: var(--primary); font-weight: 600; }

.ip-inline, .ip-pill {
  background: rgba(31, 182, 255, 0.12); color: var(--primary); border: 1px dashed var(--primary);
  border-radius: 6px; padding: 1px 8px; font: 700 0.95em var(--font); cursor: pointer;
}
.ip-pill { padding: 8px 14px; border-radius: 10px; margin-top: 8px; }
.ip-pill small { color: var(--muted); margin-left: 6px; }

/* ---------- Packs ---------- */
.pack-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-bottom: 26px; }
.pack {
  position: relative; background: linear-gradient(180deg, var(--card-2), var(--card)); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 24px 22px 22px; text-align: center; display: flex; flex-direction: column;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.pack:hover { transform: translateY(-5px); border-color: var(--primary); box-shadow: 0 14px 40px rgba(31, 182, 255, 0.15); }
.pack-featured { border: 2px solid var(--gold); }
.pack-badge {
  position: absolute; top: 14px; right: 14px; background: var(--gold); color: var(--gold-ink);
  font-size: 0.72rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.5px; padding: 4px 10px; border-radius: 999px;
}
.pack-visual {
  height: 190px; display: grid; place-items: center; margin-bottom: 10px;
  background: radial-gradient(circle at 50% 55%, rgba(31, 182, 255, 0.25), transparent 65%);
}
.pack-visual img { max-height: 180px; max-width: 100%; object-fit: contain; filter: drop-shadow(0 10px 18px rgba(0, 0, 0, 0.45)); transition: transform 0.25s ease; }
.pack:hover .pack-visual img { transform: scale(1.06); }
.pack h3 { font-size: 1.1rem; font-weight: 700; color: var(--muted); margin-bottom: 4px; }
.pack-amount { display: flex; align-items: center; justify-content: center; gap: 8px; font-size: 1.9rem; font-weight: 900; }
.pack-amount span { font-size: 1rem; color: var(--primary); font-weight: 800; }
.cubix-icon { width: 30px; height: 30px; object-fit: contain; }
.pack-bonus { font-size: 0.85rem; color: var(--muted); min-height: 1.4em; margin-bottom: 10px; }
.pack-bonus b { color: var(--success); }
.pack-price { font-size: 1.5rem; font-weight: 800; margin: 4px 0 16px; }
.pack form { margin-top: auto; }

/* ---------- Panier ---------- */
.basket-layout { display: grid; grid-template-columns: 1.6fr 1fr; gap: 22px; align-items: start; }
.basket-layout > .panel { margin-bottom: 0; }
.basket-list { display: grid; gap: 12px; }
.basket-row {
  display: grid; grid-template-columns: 64px 1fr auto auto auto; align-items: center; gap: 14px;
  background: var(--card-2); border: 1px solid var(--border); border-radius: 12px; padding: 10px 14px;
}
.basket-img { width: 64px; height: 64px; object-fit: contain; }
.basket-info b { display: block; }
.basket-info span { color: var(--muted); font-size: 0.85rem; }
.basket-price { font-weight: 800; min-width: 80px; text-align: right; }
.summary-line { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px solid var(--border); }
.summary-total { font-size: 1.25rem; border-bottom: 0; margin-bottom: 10px; }
.summary-total b { color: var(--primary); }
.checkout { display: grid; gap: 8px; }

/* ---------- Formulaires ---------- */
.form { display: grid; gap: 8px; }
label { font-weight: 600; font-size: 0.92rem; }
input:not([type='checkbox']), textarea, select {
  width: 100%; background: var(--bg-2); color: var(--text); border: 1px solid var(--border);
  border-radius: 10px; padding: 11px 14px; font: 500 0.95rem var(--font);
}
select { width: auto; cursor: pointer; }
textarea { resize: vertical; min-height: 120px; }
input:focus, textarea:focus, select:focus { outline: 2px solid var(--primary); outline-offset: 1px; border-color: transparent; }
.form .btn { margin-top: 8px; justify-self: start; }
.form .btn-block { justify-self: stretch; }
.check-line { display: flex; align-items: flex-start; gap: 10px; font-weight: 500; margin: 6px 0; }
.check-line input { margin-top: 5px; accent-color: var(--primary); width: 16px; height: 16px; }
.divider { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 0.85rem; margin: 18px 0; }
.divider::before, .divider::after { content: ''; flex: 1; height: 1px; background: var(--border); }

.auth-wrap { max-width: 480px; padding-top: 30px; }

/* ---------- Messages ---------- */
.flash { border-radius: 12px; padding: 14px 18px; margin-bottom: 20px; font-weight: 600; border: 1px solid; }
.flash ul { margin: 0; padding-left: 18px; }
.flash-success { background: rgba(49, 210, 124, 0.1); border-color: rgba(49, 210, 124, 0.4); color: #7ff0b0; }
.flash-error { background: rgba(255, 90, 106, 0.1); border-color: rgba(255, 90, 106, 0.4); color: #ffaab3; }
.flash-info { background: rgba(31, 182, 255, 0.1); border-color: rgba(31, 182, 255, 0.4); color: #9fdcff; }
main > .container:first-child .flash { margin-top: 24px; }
.notice {
  background: rgba(255, 197, 49, 0.1); border: 1px solid rgba(255, 197, 49, 0.35); color: #ffe39a;
  border-radius: 10px; padding: 10px 14px; font-size: 0.9rem; margin: 8px 0;
}
.badge {
  display: inline-block; font-size: 0.7rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.5px;
  padding: 2px 8px; border-radius: 999px; background: var(--card-2); color: var(--muted); border: 1px solid var(--border); vertical-align: middle;
}
.badge-ok { background: rgba(49, 210, 124, 0.12); color: var(--success); border-color: transparent; }
.badge-staff { background: rgba(255, 90, 106, 0.15); color: #ff8f9a; border-color: transparent; }
.badge-pin { background: rgba(255, 197, 49, 0.15); color: var(--gold); border-color: transparent; }

.toast {
  position: fixed; left: 50%; bottom: 26px; transform: translateX(-50%); z-index: 100;
  background: var(--success); color: #03210f; font-weight: 700; padding: 12px 22px; border-radius: 12px; box-shadow: var(--shadow);
}

/* ---------- Compte ---------- */
.avatar { border-radius: 8px; image-rendering: pixelated; background: var(--card-2); flex-shrink: 0; }
.account-chip .avatar { border-radius: 50%; }
.avatar-big { border-radius: 12px; }
.account-head { display: flex; align-items: center; gap: 20px; padding: 34px 0 24px; }
.account-head h1 { margin: 0; font-size: 2rem; font-weight: 900; }
.account-head p { margin: 0; }
.account-logout { margin-left: auto; }
.identity-list { display: grid; gap: 10px; margin-bottom: 14px; }
.identity { display: flex; align-items: center; gap: 10px; background: var(--card-2); border: 1px solid var(--border); border-radius: 10px; padding: 10px 14px; flex-wrap: wrap; }
.identity-label { color: var(--muted); font-size: 0.85rem; min-width: 130px; }
.link-code { display: grid; gap: 6px; text-align: center; background: var(--bg-2); border: 1px dashed var(--primary); border-radius: 12px; padding: 16px; }
.link-code code { font-size: 1.6rem; font-weight: 800; color: var(--primary); letter-spacing: 2px; }
.link-code small { color: var(--muted); }
.mini-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 20px; }
.mini-stats div { background: var(--card-2); border-radius: 10px; padding: 14px; text-align: center; }
.mini-stats b { display: block; font-size: 1.6rem; color: var(--primary); }
.mini-stats span { color: var(--muted); font-size: 0.85rem; }

/* ---------- Forum ---------- */
.breadcrumb { padding: 24px 0 14px; color: var(--muted); font-size: 0.9rem; }
.forum-list { display: grid; gap: 10px; margin-bottom: 22px; }
.forum-cat, .thread-row {
  display: grid; grid-template-columns: 52px 1fr 90px 90px 200px; align-items: center; gap: 14px;
  background: var(--card); border: 1px solid var(--border); border-radius: 12px; padding: 14px 18px;
  color: var(--text); text-decoration: none !important; transition: border-color 0.15s;
}
.thread-row { grid-template-columns: 36px 1fr 90px 180px; }
.forum-cat:hover, .thread-row:hover { border-color: var(--primary); }
.forum-icon { font-size: 1.8rem; width: 52px; height: 52px; display: grid; place-items: center; background: var(--card-2); border-radius: 12px; }
.forum-cat-info b, .thread-info b { display: block; font-size: 1.02rem; }
.forum-cat-info span, .thread-info span { color: var(--muted); font-size: 0.86rem; }
.forum-cat-stats { text-align: center; }
.forum-cat-stats b { display: block; font-size: 1.1rem; }
.forum-cat-stats span { color: var(--muted); font-size: 0.78rem; }
.forum-cat-last { display: flex; flex-direction: column; font-size: 0.82rem; color: var(--muted); min-width: 0; }
.forum-cat-last b { color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.thread-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
.thread-head h1 { font-size: 1.7rem; font-weight: 800; margin: 0; overflow-wrap: anywhere; }
.admin-tools { display: flex; gap: 8px; flex-shrink: 0; }
.post { display: grid; grid-template-columns: 150px 1fr; background: var(--card); border: 1px solid var(--border); border-radius: 12px; margin-bottom: 12px; overflow: hidden; scroll-margin-top: 90px; }
.post-author { background: var(--card-2); padding: 18px 12px; display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; overflow-wrap: anywhere; }
.post-main { padding: 16px 20px; min-width: 0; }
.post-meta { display: flex; justify-content: space-between; align-items: center; color: var(--muted); font-size: 0.82rem; margin-bottom: 10px; border-bottom: 1px solid var(--border); padding-bottom: 8px; }
.post-body { white-space: pre-wrap; overflow-wrap: anywhere; }
.pagination { display: flex; justify-content: center; align-items: center; gap: 14px; margin: 10px 0 24px; color: var(--muted); }

.prose h3 { margin-top: 1.4em; color: var(--primary); font-size: 1.1rem; }
.prose p, .prose li { color: #c8d3ea; }

/* ---------- Securite du compte ---------- */
.badge-warn { background: rgba(255, 197, 49, 0.15); color: var(--gold); border-color: transparent; }
.text-warn { color: var(--gold); font-weight: 600; }
.flash-warn { background: rgba(255, 197, 49, 0.1); border-color: rgba(255, 197, 49, 0.4); color: #ffe39a; }
.verify-banner { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.verify-banner form { flex-shrink: 0; }
.btn-danger { background: rgba(255, 90, 106, 0.15); color: #ff8f9a; border: 1px solid rgba(255, 90, 106, 0.45); }
.forgot-link { justify-self: end; }
.code-input { font-size: 1.3rem !important; letter-spacing: 4px; text-align: center; font-weight: 700 !important; }
.qr { display: flex; justify-content: center; margin: 10px 0 14px; }
.qr img { background: #fff; padding: 8px; border-radius: 12px; }
.secret { display: inline-block; background: var(--bg-2); border: 1px dashed var(--primary); border-radius: 8px; padding: 8px 12px; font-size: 1rem; letter-spacing: 1px; word-break: break-all; color: var(--primary); }
.codes { list-style: none; padding: 0; margin: 16px 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.codes li { background: var(--bg-2); border: 1px solid var(--border); border-radius: 8px; padding: 10px; text-align: center; }
.codes code { font-size: 1.05rem; font-weight: 700; letter-spacing: 1px; color: var(--text); }
.narrow-panel { max-width: 560px; margin-inline: auto; }
@media (max-width: 600px) { .verify-banner { flex-direction: column; align-items: stretch; } }

/* ---------- Pied de page ---------- */
.footer { background: var(--bg-2); border-top: 1px solid var(--border); padding: 44px 0 20px; }
.footer-inner { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 30px; }
.footer-brand p { color: var(--muted); margin: 14px 0 6px; }
.footer-links { display: flex; flex-direction: column; gap: 8px; }
.footer-links h4 { font-size: 0.85rem; letter-spacing: 2px; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.footer-links a { color: var(--text); font-size: 0.93rem; overflow-wrap: anywhere; }
.footer-bottom { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; border-top: 1px solid var(--border); margin-top: 30px; padding-top: 18px; color: var(--muted); font-size: 0.82rem; }

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  .mode-grid { grid-template-columns: repeat(2, 1fr); }
  .pack-grid { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .about, .safety { grid-template-columns: 1fr; }
  .basket-layout { grid-template-columns: 1fr; }
  .forum-cat { grid-template-columns: 52px 1fr 80px 80px; }
  .forum-cat .forum-cat-last { display: none; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .topbar-nav {
    display: none; position: absolute; top: 64px; left: 0; right: 0; flex-direction: column; align-items: stretch;
    background: var(--bg-2); border-bottom: 1px solid var(--border); padding: 12px 16px 18px;
  }
  .topbar-nav.open { display: flex; }
  .topbar-account { margin: 10px 0 0; }
  .hero-inner { grid-template-columns: 1fr 1fr; }
  .hero-logo { grid-column: 1 / -1; grid-row: 1; margin-bottom: 10px; }
  .welcome-bar { flex-direction: column; }
  .welcome-basket, .welcome-login { clip-path: none; margin-left: 0; min-height: 70px; padding: 0 20px; justify-content: space-between; }
  .welcome-basket span, .welcome-login span { text-align: left; }
  .welcome-skin { height: 70px; }
  .two-col, .cat-grid { grid-template-columns: 1fr; }
  .mode-detail { grid-template-columns: 1fr; }
  .mode-detail .mode-img { min-height: 180px; }
}

@media (max-width: 600px) {
  .mode-grid, .pack-grid, .value-grid { grid-template-columns: 1fr; }
  .hero-side-text b { font-size: 0.85rem; }
  .hero-circle { width: 42px; height: 42px; font-size: 1rem; }
  .cat-card { min-height: 150px; padding: 22px; }
  .cat-img { width: 110px; height: 110px; }
  .cat-emoji { font-size: 3.6rem; }
  .panel { padding: 30px 18px 22px; }
  .basket-row { grid-template-columns: 48px 1fr auto; }
  .basket-img { width: 48px; height: 48px; }
  .basket-row .basket-price { grid-column: 2; text-align: left; }
  .forum-cat { grid-template-columns: 44px 1fr; }
  .forum-cat .forum-cat-stats { display: none; }
  .forum-icon { width: 44px; height: 44px; font-size: 1.4rem; }
  .thread-row { grid-template-columns: 36px 1fr; }
  .thread-row .forum-cat-stats, .thread-row .forum-cat-last { display: none; }
  .post { grid-template-columns: 1fr; }
  .post-author { flex-direction: row; justify-content: flex-start; padding: 10px 14px; }
  .post-author .avatar-big { width: 36px; height: 36px; }
  .thread-head { flex-direction: column; }
  .account-head { flex-wrap: wrap; }
  .account-logout { margin-left: 0; }
  .footer-inner { grid-template-columns: 1fr; }
  .identity-label { min-width: 0; width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; }
}
