/* =========================================================
   MCF studio — thème sombre bleu « Steam » + orange
   ========================================================= */

:root {
  --bg: #0b121b;
  --bg-2: #0e1621;
  --surface: #16202d;
  --surface-2: #1b2838;
  --surface-3: #2a475e;
  --glass: rgba(27, 40, 56, 0.55);
  --line: rgba(102, 192, 244, 0.12);
  --line-strong: rgba(102, 192, 244, 0.24);

  --text: #c7d5e0;
  --text-strong: #f4f8fb;
  --muted: #8fa3b5;
  --faint: #5f7487;

  --accent: #ff8a1f;
  --accent-2: #ffb347;
  --accent-ink: #1a0f04;
  --accent-soft: rgba(255, 138, 31, 0.14);
  --blue: #66c0f4;
  --blue-soft: rgba(102, 192, 244, 0.12);
  --success: #5cc98a;
  --danger: #ff5d5d;
  --danger-soft: rgba(255, 93, 93, 0.12);

  --radius: 14px;
  --radius-sm: 10px;
  --radius-lg: 22px;
  --shadow: 0 10px 40px -12px rgba(0, 0, 0, 0.6);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);

  --font-display: 'Space Grotesk', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, monospace;

  --nav-h: 68px;
  --gutter: clamp(16px, 4vw, 32px);

  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 16px); }

html { background: var(--bg); }

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Fond fixe sur un calque dédié (background-attachment: fixed est ignoré sur mobile). */
body::before {
  content: ''; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(1200px 700px at 85% -10%, rgba(42, 71, 94, 0.55), transparent 60%),
    radial-gradient(900px 600px at -10% 30%, rgba(255, 138, 31, 0.07), transparent 60%),
    linear-gradient(180deg, var(--bg-2) 0%, var(--bg) 70%);
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
[hidden] { display: none !important; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--text-strong);
  line-height: 1.15;
  margin: 0 0 0.5em;
  letter-spacing: -0.02em;
}

h1 { font-size: clamp(2.2rem, 5.2vw, 3.8rem); font-weight: 700; }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); font-weight: 700; }
h3 { font-size: 1.2rem; font-weight: 600; }
p { margin: 0 0 1em; }

::selection { background: var(--accent); color: var(--accent-ink); }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 6px;
}

.wrap { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 var(--gutter); }
.mono { font-family: var(--font-mono); font-size: 0.85em; }
.muted { color: var(--muted); }
.accent { color: var(--accent); }
.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;
}

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 200;
  background: var(--accent); color: var(--accent-ink); padding: 10px 16px; border-radius: 8px; font-weight: 600;
}
.skip-link:focus { top: 12px; }

/* ---------- Canvases d'effets ---------- */

.stars-canvas, .fx-canvas {
  position: fixed; inset: 0; width: 100vw; height: 100vh; pointer-events: none;
}
.stars-canvas { z-index: 0; }
.fx-canvas { z-index: 90; }

main, .site-footer { position: relative; z-index: 1; }

.click-ripple {
  position: fixed; z-index: 95; pointer-events: none;
  width: 46px; height: 46px; margin: -23px 0 0 -23px;
  border: 2px solid rgba(255, 179, 71, 0.85);
  border-radius: 50%;
  box-shadow: 0 0 14px rgba(255, 138, 31, 0.45), inset 0 0 10px rgba(255, 138, 31, 0.25);
  animation: ripple 0.55s var(--ease) forwards;
}
@keyframes ripple {
  0% { transform: scale(0); opacity: 1; }
  70% { opacity: 0.8; }
  100% { transform: scale(1); opacity: 0; border-width: 1px; }
}

/* ---------- Boutons ---------- */

.btn {
  --btn-bg: var(--surface-2);
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: 0.55em;
  padding: 0.8em 1.35em;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--btn-bg);
  color: var(--text-strong);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.98rem;
  line-height: 1.1;
  cursor: pointer;
  overflow: hidden;
  isolation: isolate;
  transition: transform 0.35s var(--ease), background-color 0.2s, border-color 0.2s, box-shadow 0.3s, color 0.2s;
  white-space: nowrap;
}
.btn svg { width: 1.1em; height: 1.1em; flex: none; }
.btn::after {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, 0.35) 50%, transparent 70%);
  transform: translateX(-120%);
  transition: transform 0.7s var(--ease);
}
.btn:hover::after { transform: translateX(120%); }
.btn:hover { border-color: var(--blue); }
.btn:active { transform: scale(0.97); }

.btn-primary {
  --btn-bg: linear-gradient(135deg, var(--accent) 0%, #ff6a00 100%);
  background: var(--btn-bg);
  border-color: transparent;
  color: var(--accent-ink);
  box-shadow: 0 6px 24px -8px rgba(255, 138, 31, 0.7);
}
.btn-primary:hover { border-color: transparent; box-shadow: 0 10px 34px -6px rgba(255, 138, 31, 0.85); }

.btn-ghost { background: transparent; }
.btn-ghost:hover { background: var(--blue-soft); }

.btn-discord { background: #5865f2; border-color: transparent; color: #fff; }
.btn-discord:hover { background: #4752c4; border-color: transparent; }

.btn-danger { background: var(--danger-soft); border-color: rgba(255, 93, 93, 0.35); color: #ffb0b0; }
.btn-danger:hover { background: rgba(255, 93, 93, 0.22); border-color: var(--danger); }

.btn-sm { padding: 0.55em 1em; font-size: 0.88rem; }
.btn-block { width: 100%; }

.btn.is-busy { pointer-events: none; color: transparent; }
.btn.is-busy::before {
  content: ''; position: absolute; width: 18px; height: 18px; left: 50%; top: 50%; margin: -9px 0 0 -9px;
  border: 2px solid currentColor; border-color: var(--text-strong) transparent var(--text-strong) transparent;
  border-radius: 50%; animation: spin 0.8s linear infinite;
}
.btn-primary.is-busy::before { border-color: var(--accent-ink) transparent var(--accent-ink) transparent; }
.btn:disabled { opacity: 0.6; cursor: not-allowed; }

.icon-btn {
  display: inline-grid; place-items: center;
  width: 36px; height: 36px; border-radius: 10px;
  border: 1px solid var(--line); background: transparent; cursor: pointer;
  color: var(--muted);
  transition: color 0.2s, border-color 0.2s, background-color 0.2s;
}
.icon-btn:hover { color: var(--text-strong); border-color: var(--line-strong); background: var(--blue-soft); }
.icon-btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Navigation ---------- */

.site-nav {
  position: sticky; top: 0; z-index: 80;
  height: var(--nav-h);
  border-bottom: 1px solid transparent;
  transition: background-color 0.3s, border-color 0.3s, backdrop-filter 0.3s;
}
.site-nav.is-scrolled, .site-nav.is-open {
  background: rgba(11, 18, 27, 0.78);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom-color: var(--line);
}
.site-nav .wrap { height: 100%; display: flex; align-items: center; gap: 24px; }

.brand { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 700; font-size: 1.12rem; color: var(--text-strong); }
.brand img { width: 40px; height: auto; filter: drop-shadow(0 0 10px rgba(255, 138, 31, 0.35)); transition: transform 0.6s var(--ease); }
.brand:hover img { transform: rotate(-12deg) scale(1.06); }
.brand span em { font-style: normal; color: var(--accent); }

.nav-links { display: flex; gap: 4px; list-style: none; margin: 0 0 0 auto; padding: 0; }
.nav-links a {
  position: relative; display: block; padding: 8px 12px; border-radius: 8px;
  color: var(--muted); font-size: 0.93rem; font-weight: 500;
  transition: color 0.2s;
}
.nav-links a::after {
  content: ''; position: absolute; left: 12px; right: 12px; bottom: 3px; height: 2px; border-radius: 2px;
  background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform 0.35s var(--ease);
}
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--text-strong); }
.nav-links a:hover::after, .nav-links a[aria-current="page"]::after { transform: scaleX(1); }

.nav-user { display: flex; align-items: center; min-width: 110px; justify-content: flex-end; }
.nav-burger { display: none; }

.user-menu { position: relative; }
.user-chip {
  display: flex; align-items: center; gap: 8px;
  padding: 4px 10px 4px 4px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--glass); cursor: pointer;
  transition: border-color 0.2s;
}
.user-chip:hover { border-color: var(--line-strong); }
.user-chip-name { max-width: 140px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 0.9rem; font-weight: 500; color: var(--text-strong); }
.user-chip .chev { width: 16px; height: 16px; fill: none; stroke: var(--muted); stroke-width: 2; }
.user-dropdown {
  position: absolute; right: 0; top: calc(100% + 8px); min-width: 190px;
  padding: 6px; border-radius: var(--radius-sm);
  background: var(--surface-2); border: 1px solid var(--line-strong); box-shadow: var(--shadow);
  display: flex; flex-direction: column;
  animation: pop 0.2s var(--ease);
}
.user-dropdown a, .user-dropdown button {
  text-align: left; padding: 9px 12px; border-radius: 8px; border: 0; background: none; cursor: pointer;
  font-size: 0.92rem; color: var(--text);
}
.user-dropdown a:hover, .user-dropdown button:hover { background: var(--blue-soft); color: var(--text-strong); }
@keyframes pop { from { opacity: 0; transform: translateY(-6px) scale(0.98); } }

.avatar { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; flex: none; }
.avatar-sm { width: 30px; height: 30px; }
.avatar-lg { width: 76px; height: 76px; }
.avatar-fallback {
  display: inline-grid; place-items: center;
  background: linear-gradient(135deg, var(--surface-3), var(--accent));
  color: var(--text-strong); font-family: var(--font-display); font-weight: 700; font-size: 0.8rem;
}
.avatar-lg.avatar-fallback { font-size: 1.5rem; }

/* ---------- Sections ---------- */

section { position: relative; padding: clamp(52px, 7vw, 88px) 0; }
section.card { padding: 26px; }
.admin-panel { padding: 0 0 80px; }
.section-head { max-width: 680px; margin-bottom: 44px; }
.section-head p { color: var(--muted); font-size: 1.06rem; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  margin-bottom: 18px; padding: 6px 12px; border-radius: 999px;
  background: var(--accent-soft); border: 1px solid rgba(255, 138, 31, 0.25);
  color: var(--accent-2); font-family: var(--font-mono); font-size: 0.78rem; letter-spacing: 0.02em;
}
.eyebrow .led { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 10px var(--accent); animation: pulse 2s infinite; }
@keyframes pulse { 50% { opacity: 0.35; } }

.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }
.reveal-delay-1 { transition-delay: 0.08s; }
.reveal-delay-2 { transition-delay: 0.16s; }
.reveal-delay-3 { transition-delay: 0.24s; }

/* ---------- Hero ---------- */

.hero { padding: clamp(48px, 9vw, 110px) 0 clamp(64px, 10vw, 120px); }
.hero-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: clamp(32px, 6vw, 72px); align-items: center; }
.hero h1 em { font-style: normal; background: linear-gradient(120deg, var(--accent) 10%, var(--accent-2) 60%, #ffd9a8); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero .lead { font-size: clamp(1.05rem, 1.6vw, 1.2rem); color: var(--text); max-width: 580px; }
.hero .lead strong { color: var(--text-strong); font-weight: 600; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }

.hero-visual { position: relative; display: grid; place-items: center; aspect-ratio: 1; max-width: 440px; width: 100%; margin: 0 auto; }
.hero-visual::before {
  content: ''; position: absolute; inset: 8%; border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 138, 31, 0.32), rgba(102, 192, 244, 0.12) 45%, transparent 70%);
  filter: blur(20px);
  animation: breathe 6s ease-in-out infinite;
}
.hero-visual .orbit {
  position: absolute; inset: 0; border-radius: 50%;
  border: 1px dashed rgba(102, 192, 244, 0.22);
  animation: spin 60s linear infinite;
}
.hero-visual .orbit::before, .hero-visual .orbit::after {
  content: ''; position: absolute; width: 10px; height: 10px; border-radius: 50%;
  background: var(--accent); box-shadow: 0 0 16px 2px var(--accent);
  top: -5px; left: calc(50% - 5px);
}
.hero-visual .orbit::after { background: var(--blue); box-shadow: 0 0 16px 2px var(--blue); top: auto; bottom: 12%; left: 4%; width: 7px; height: 7px; }
.hero-visual .orbit-2 { inset: 13%; border-style: solid; border-color: rgba(255, 138, 31, 0.12); animation-duration: 40s; animation-direction: reverse; }
.hero-visual .orbit-2::before { background: var(--accent-2); top: 50%; left: -5px; }
.hero-visual .orbit-2::after { display: none; }
.hero-visual img {
  position: relative; width: 72%;
  filter: drop-shadow(0 0 30px rgba(255, 138, 31, 0.3)) drop-shadow(0 18px 30px rgba(0, 0, 0, 0.5));
  animation: float 7s ease-in-out infinite;
}
@keyframes float { 50% { transform: translateY(-12px) rotate(-1.5deg); } }
@keyframes breathe { 50% { transform: scale(1.08); opacity: 0.8; } }

.hero-meta { display: flex; flex-wrap: wrap; gap: 22px; margin-top: 38px; color: var(--muted); font-size: 0.9rem; }
.hero-meta span { display: inline-flex; align-items: center; gap: 8px; }
.hero-meta svg { width: 18px; height: 18px; stroke: var(--accent); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Cartes génériques ---------- */

.card {
  position: relative;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--glass);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 26px;
  transition: transform 0.45s var(--ease), border-color 0.3s, box-shadow 0.4s;
}
.card:hover { border-color: var(--line-strong); box-shadow: var(--shadow); }

.spotlight { --mx: 50%; --my: 50%; overflow: hidden; }
.spotlight::before {
  content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: radial-gradient(380px circle at var(--mx) var(--my), rgba(255, 138, 31, 0.13), transparent 45%);
  opacity: 0; transition: opacity 0.35s;
}
.spotlight::after {
  content: ''; position: absolute; inset: -1px; border-radius: inherit; pointer-events: none; padding: 1px;
  background: radial-gradient(260px circle at var(--mx) var(--my), rgba(255, 179, 71, 0.75), transparent 60%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  opacity: 0; transition: opacity 0.35s;
}
.spotlight:hover::before, .spotlight:hover::after { opacity: 1; }
.tilt { transform-style: preserve-3d; will-change: transform; }

/* ---------- Studio / équipe ---------- */

.studio-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 28px; align-items: start; }
.studio-text p { font-size: 1.08rem; }
.studio-text p strong { color: var(--text-strong); }
.team { display: grid; gap: 16px; }
.member { display: flex; gap: 16px; align-items: center; }
.member .avatar { width: 56px; height: 56px; font-size: 1.05rem; }
.member h3 { margin: 0; }
.member p { margin: 2px 0 0; color: var(--muted); font-size: 0.92rem; }
.member .tag { margin-left: auto; }

.tag {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 3px 10px; border-radius: 999px;
  background: var(--blue-soft); color: var(--blue);
  font-size: 0.75rem; font-weight: 600; font-family: var(--font-mono); white-space: nowrap;
}
.tag-orange { background: var(--accent-soft); color: var(--accent-2); }
.tag-green { background: rgba(92, 201, 138, 0.12); color: var(--success); }
.tag-red { background: var(--danger-soft); color: #ff9a9a; }
.tag-muted { background: rgba(143, 163, 181, 0.12); color: var(--muted); }
.tag svg { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 2.4; }

/* ---------- Services ---------- */

.services-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.service .icon {
  display: grid; place-items: center; width: 50px; height: 50px; margin-bottom: 18px;
  border-radius: 14px; background: var(--accent-soft); border: 1px solid rgba(255, 138, 31, 0.25);
  transition: transform 0.5s var(--ease);
}
.service:hover .icon { transform: rotate(-8deg) scale(1.08); }
.service .icon svg { width: 24px; height: 24px; fill: none; stroke: var(--accent); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.service p { color: var(--muted); font-size: 0.95rem; margin: 0; }

/* ---------- Téléchargements ---------- */

.dl-head { display: flex; align-items: end; justify-content: space-between; flex-wrap: wrap; gap: 20px; margin-bottom: 30px; }
.dl-head .section-head { margin-bottom: 0; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip {
  padding: 7px 16px; border-radius: 999px; border: 1px solid var(--line);
  background: transparent; color: var(--muted); font-size: 0.9rem; font-weight: 500; cursor: pointer;
  transition: all 0.25s var(--ease);
}
.chip:hover { color: var(--text-strong); border-color: var(--line-strong); }
.chip[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }

.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px; }
.product { padding: 0; display: flex; flex-direction: column; cursor: pointer; }
.product-cover {
  position: relative; aspect-ratio: 16 / 9; overflow: hidden;
  border-radius: var(--radius) var(--radius) 0 0;
  background: linear-gradient(135deg, var(--surface-3), var(--surface));
}
.product-cover img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s var(--ease); }
.product:hover .product-cover img { transform: scale(1.06); }
.product-cover .placeholder { position: absolute; inset: 0; display: grid; place-items: center; }
.product-cover .placeholder img { width: 34%; height: auto; object-fit: contain; opacity: 0.35; }
.product-cover .badges { position: absolute; top: 10px; left: 10px; display: flex; gap: 6px; }
.product-cover .badges .tag { backdrop-filter: blur(8px); background: rgba(11, 18, 27, 0.7); }
.product-body { padding: 18px 20px 20px; display: flex; flex-direction: column; flex: 1; }
.product-body h3 { margin-bottom: 6px; }
.product-body p { color: var(--muted); font-size: 0.92rem; margin-bottom: 16px; flex: 1; }
.product-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.platforms { display: flex; gap: 6px; color: var(--muted); }
.platforms svg { width: 17px; height: 17px; fill: currentColor; }
.product-meta { font-family: var(--font-mono); font-size: 0.76rem; color: var(--faint); }

.empty {
  text-align: center; padding: 56px 24px; border: 1px dashed var(--line-strong); border-radius: var(--radius);
  color: var(--muted);
}
.product-grid .empty { grid-column: 1 / -1; }
.empty img { width: 64px; margin: 0 auto 16px; opacity: 0.5; }
.empty h3 { margin-bottom: 6px; }

.skeleton { min-height: 300px; background: linear-gradient(100deg, var(--surface) 30%, var(--surface-2) 50%, var(--surface) 70%); background-size: 300% 100%; animation: shimmer 1.4s infinite; }
@keyframes shimmer { from { background-position: 100% 0; } to { background-position: 0 0; } }

/* ---------- Dialogues ---------- */

dialog {
  width: min(640px, calc(100vw - 32px)); max-height: calc(100vh - 48px);
  padding: 0; border: 1px solid var(--line-strong); border-radius: var(--radius-lg);
  background: var(--surface); color: var(--text); box-shadow: 0 30px 80px -20px rgba(0, 0, 0, 0.8);
  overflow: auto;
}
dialog[open] { animation: dialog-in 0.35s var(--ease); }
dialog::backdrop { background: rgba(5, 9, 14, 0.7); backdrop-filter: blur(6px); }
@keyframes dialog-in { from { opacity: 0; transform: translateY(16px) scale(0.98); } }
.dialog-close { position: absolute; top: 14px; right: 14px; z-index: 2; background: rgba(11, 18, 27, 0.6); }
.dialog-body { padding: 26px; }
.dialog-cover { aspect-ratio: 16 / 9; background: linear-gradient(135deg, var(--surface-3), var(--surface)); }
.dialog-cover img { width: 100%; height: 100%; object-fit: cover; }
.dialog-body .description { white-space: pre-line; color: var(--text); }
.dialog-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 22px; }
.spec-list { display: grid; grid-template-columns: auto 1fr; gap: 6px 18px; margin: 18px 0 0; font-size: 0.9rem; }
.spec-list dt { color: var(--muted); }
.spec-list dd { margin: 0; color: var(--text-strong); overflow-wrap: anywhere; }
.spec-list dd.mono { font-size: 0.78rem; color: var(--muted); }

/* ---------- StreamingTribe ---------- */

.st-band {
  display: grid; grid-template-columns: auto 1fr auto; gap: 32px; align-items: center;
  padding: clamp(26px, 4vw, 44px);
  background:
    radial-gradient(500px 200px at 0% 0%, rgba(255, 138, 31, 0.16), transparent 70%),
    radial-gradient(500px 240px at 100% 100%, rgba(102, 192, 244, 0.14), transparent 70%),
    var(--glass);
}
.st-band img { width: 120px; border-radius: 18px; }
.st-band h2 { font-size: clamp(1.5rem, 3vw, 2rem); }
.st-band p { color: var(--muted); margin: 0; max-width: 560px; }

/* ---------- Contact ---------- */

.contact-card { text-align: center; padding: clamp(36px, 6vw, 64px) 24px; }
.contact-card p { color: var(--muted); max-width: 520px; margin: 0 auto 26px; }
.contact-card .mail { font-family: var(--font-display); font-size: clamp(1.2rem, 3vw, 1.7rem); font-weight: 600; color: var(--text-strong); }

/* ---------- Footer ---------- */

.site-footer { border-top: 1px solid var(--line); padding: 30px 0; color: var(--faint); font-size: 0.88rem; }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 14px 24px; align-items: center; justify-content: space-between; }
.site-footer a:hover { color: var(--text); }
.footer-links { display: flex; gap: 18px; flex-wrap: wrap; }

/* ---------- Formulaires ---------- */

.field { display: flex; flex-direction: column; gap: 7px; margin-bottom: 16px; }
.field label, .field .label { font-size: 0.86rem; font-weight: 600; color: var(--text-strong); }
.field .hint { font-size: 0.8rem; color: var(--faint); }
.input, .field input[type="text"], .field input[type="email"], .field input[type="password"],
.field input[type="search"], .field textarea, .field select {
  width: 100%;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line-strong);
  background: rgba(11, 18, 27, 0.6);
  color: var(--text-strong);
  font: inherit;
  font-size: 0.97rem;
  transition: border-color 0.2s, box-shadow 0.2s, background-color 0.2s;
}
.field textarea { min-height: 120px; resize: vertical; }
.field select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 18px) 52%, calc(100% - 13px) 52%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 36px; }
.input:focus, .field input:focus, .field textarea:focus, .field select:focus {
  outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px rgba(255, 138, 31, 0.15); background: rgba(11, 18, 27, 0.85);
}
.field input:user-invalid { border-color: var(--danger); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

.password-field { position: relative; }
.password-field input { padding-right: 50px !important; }
.password-toggle {
  position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
  display: grid; place-items: center; width: 38px; height: 38px;
  border: 0; border-radius: 8px; background: transparent; color: var(--muted); cursor: pointer;
  transition: color 0.2s, background-color 0.2s;
}
.password-toggle:hover { color: var(--accent); background: var(--accent-soft); }
.password-toggle svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.strength { display: grid; grid-template-columns: repeat(4, 1fr); gap: 5px; margin-top: 2px; }
.strength span { height: 4px; border-radius: 4px; background: var(--surface-3); transition: background-color 0.3s; }
.strength[data-level="1"] span:nth-child(-n+1) { background: var(--danger); }
.strength[data-level="2"] span:nth-child(-n+2) { background: var(--accent); }
.strength[data-level="3"] span:nth-child(-n+3) { background: var(--accent-2); }
.strength[data-level="4"] span { background: var(--success); }

.checks { display: flex; flex-wrap: wrap; gap: 8px; }
.check-pill { position: relative; }
.check-pill input { position: absolute; opacity: 0; pointer-events: none; }
.check-pill span {
  display: inline-block; padding: 7px 13px; border-radius: 999px; border: 1px solid var(--line-strong);
  font-size: 0.86rem; color: var(--muted); cursor: pointer; transition: all 0.2s;
}
.check-pill input:checked + span { background: var(--accent-soft); border-color: var(--accent); color: var(--accent-2); }
.check-pill input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }

.switch { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; font-size: 0.92rem; }
.switch input { position: absolute; opacity: 0; }
.switch .track { position: relative; width: 42px; height: 24px; border-radius: 999px; background: var(--surface-3); transition: background-color 0.25s; flex: none; }
.switch .track::after { content: ''; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: var(--text-strong); transition: transform 0.3s var(--ease); }
.switch input:checked + .track { background: var(--accent); }
.switch input:checked + .track::after { transform: translateX(18px); }
.switch input:focus-visible + .track { outline: 2px solid var(--accent); outline-offset: 2px; }

.alert { padding: 12px 14px; border-radius: var(--radius-sm); font-size: 0.92rem; margin-bottom: 16px; border: 1px solid; }
.alert-info { background: var(--blue-soft); border-color: rgba(102, 192, 244, 0.3); color: #bfe3f8; }
.alert-success { background: rgba(92, 201, 138, 0.1); border-color: rgba(92, 201, 138, 0.35); color: #a8e8c3; }
.alert-error { background: var(--danger-soft); border-color: rgba(255, 93, 93, 0.35); color: #ffc0c0; }
.alert .link-btn { margin-left: 4px; }

.link-btn { background: none; border: 0; padding: 0; color: var(--accent-2); cursor: pointer; font: inherit; text-decoration: underline; text-underline-offset: 3px; }
.link-btn:hover { color: var(--accent); }

.divider { display: flex; align-items: center; gap: 14px; margin: 22px 0; color: var(--faint); font-size: 0.82rem; }
.divider::before, .divider::after { content: ''; flex: 1; height: 1px; background: var(--line); }

/* ---------- Page connexion ---------- */

.auth-page { min-height: calc(100vh - var(--nav-h) - 90px); display: grid; place-items: center; padding: 48px 0; }
.auth-card { width: min(460px, 100%); padding: clamp(24px, 5vw, 36px); }
.auth-card .brand-mark { width: 64px; margin: 0 auto 14px; filter: drop-shadow(0 0 16px rgba(255, 138, 31, 0.35)); }
.auth-card h1 { font-size: 1.6rem; text-align: center; }
.auth-card .sub { text-align: center; color: var(--muted); margin-bottom: 22px; font-size: 0.95rem; }

.tabs { position: relative; display: grid; grid-template-columns: 1fr 1fr; padding: 4px; margin-bottom: 24px; border-radius: 999px; background: rgba(11, 18, 27, 0.7); border: 1px solid var(--line); }
.tabs button { position: relative; z-index: 1; padding: 9px; border: 0; background: none; border-radius: 999px; cursor: pointer; font-weight: 600; font-size: 0.93rem; color: var(--muted); transition: color 0.3s; }
.tabs button[aria-selected="true"] { color: var(--accent-ink); }
.tabs .tab-indicator { position: absolute; top: 4px; bottom: 4px; left: 4px; width: calc(50% - 4px); border-radius: 999px; background: linear-gradient(135deg, var(--accent), #ff6a00); transition: transform 0.45s var(--ease); }
.tabs[data-active="1"] .tab-indicator { transform: translateX(100%); }
.form-foot { display: flex; justify-content: space-between; align-items: center; margin: -4px 0 18px; font-size: 0.86rem; }
.legal-note { font-size: 0.78rem; color: var(--faint); text-align: center; margin: 16px 0 0; }
.legal-note a { text-decoration: underline; }

/* ---------- Compte ---------- */

.page-head { padding: 48px 0 24px; }
.page-head p { color: var(--muted); margin: 0; }
.account-grid { display: grid; grid-template-columns: 320px 1fr; gap: 22px; align-items: start; padding-bottom: 80px; }
.profile-card { text-align: center; }
.profile-card .avatar-lg { margin: 0 auto 14px; }
.profile-card h2 { font-size: 1.35rem; margin-bottom: 4px; overflow-wrap: anywhere; }
.profile-card .muted { font-size: 0.9rem; overflow-wrap: anywhere; }
.profile-card .tags { display: flex; gap: 6px; justify-content: center; flex-wrap: wrap; margin: 14px 0 4px; }
.stack { display: grid; gap: 22px; }
.card h2.card-title { font-size: 1.15rem; margin-bottom: 4px; }
.card .card-sub { color: var(--muted); font-size: 0.9rem; margin-bottom: 18px; }
.danger-zone { border-color: rgba(255, 93, 93, 0.25); }

/* ---------- Admin ---------- */

.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 26px; }
.stat { padding: 18px 20px; }
.stat .value { font-family: var(--font-display); font-size: 1.9rem; font-weight: 700; color: var(--text-strong); line-height: 1.1; }
.stat .label { color: var(--muted); font-size: 0.85rem; }

.admin-tabs { display: inline-flex; gap: 4px; padding: 4px; border-radius: 999px; background: rgba(11, 18, 27, 0.7); border: 1px solid var(--line); margin-bottom: 22px; }
.admin-tabs button { padding: 8px 18px; border-radius: 999px; border: 0; background: none; cursor: pointer; color: var(--muted); font-weight: 600; font-size: 0.92rem; transition: all 0.25s; }
.admin-tabs button[aria-selected="true"] { background: var(--surface-3); color: var(--text-strong); }

.toolbar { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.toolbar .field { margin: 0; flex: 1; min-width: 200px; max-width: 360px; }
.toolbar select.input { width: auto; }

.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--glass); }
table { width: 100%; border-collapse: collapse; font-size: 0.92rem; }
th, td { padding: 12px 16px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: middle; }
th { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--faint); font-weight: 600; background: rgba(11, 18, 27, 0.4); }
tr:last-child td { border-bottom: 0; }
tbody tr { transition: background-color 0.2s; }
tbody tr:hover { background: rgba(102, 192, 244, 0.04); }
td .row-actions { display: flex; gap: 6px; justify-content: flex-end; }
.cell-user { display: flex; align-items: center; gap: 10px; min-width: 200px; }
.cell-user .name { color: var(--text-strong); font-weight: 600; }
.cell-user .sub { font-size: 0.8rem; color: var(--muted); }
.cell-product { display: flex; align-items: center; gap: 12px; min-width: 220px; }
.cell-product .thumb { width: 64px; height: 36px; border-radius: 6px; object-fit: cover; background: var(--surface-3); flex: none; }
.cell-product .name { color: var(--text-strong); font-weight: 600; }
.cell-product .sub { font-size: 0.78rem; color: var(--muted); font-family: var(--font-mono); }
.num { font-family: var(--font-mono); text-align: right; }

.icon-btn.danger:hover { color: var(--danger); border-color: rgba(255, 93, 93, 0.4); background: var(--danger-soft); }

.dropzone {
  position: relative; display: flex; align-items: center; gap: 14px;
  padding: 16px; border: 1.5px dashed var(--line-strong); border-radius: var(--radius-sm);
  background: rgba(11, 18, 27, 0.4); cursor: pointer; transition: border-color 0.2s, background-color 0.2s;
}
.dropzone:hover, .dropzone.is-over { border-color: var(--accent); background: var(--accent-soft); }
.dropzone input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.dropzone .dz-icon { width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; background: var(--surface-2); flex: none; }
.dropzone .dz-icon svg { width: 20px; height: 20px; fill: none; stroke: var(--accent); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.dropzone .dz-text { font-size: 0.88rem; color: var(--muted); overflow-wrap: anywhere; }
.dropzone .dz-text strong { display: block; color: var(--text-strong); font-weight: 600; }
.cover-preview { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--radius-sm); margin-top: 10px; }

.progress { height: 8px; border-radius: 8px; background: var(--surface-3); overflow: hidden; margin: 6px 0 14px; }
.progress span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--accent), var(--accent-2)); transition: width 0.2s; }

.form-actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 8px; flex-wrap: wrap; }

/* ---------- Toasts ---------- */

.toast-stack { position: fixed; right: 16px; bottom: 16px; z-index: 120; display: flex; flex-direction: column; gap: 10px; max-width: calc(100vw - 32px); }
.toast {
  padding: 12px 16px 12px 14px; border-radius: var(--radius-sm); background: var(--surface-2);
  border: 1px solid var(--line-strong); border-left: 3px solid var(--blue); box-shadow: var(--shadow);
  color: var(--text-strong); font-size: 0.92rem; max-width: 380px;
  opacity: 0; transform: translateY(12px); transition: opacity 0.35s var(--ease), transform 0.35s var(--ease);
}
.toast.is-in { opacity: 1; transform: none; }
.toast-success { border-left-color: var(--success); }
.toast-error { border-left-color: var(--danger); }

/* ---------- Pages simples (légal, 404) ---------- */

.legal { max-width: 760px; padding: 56px var(--gutter) 80px; line-height: 1.75; }
.legal h1 { font-size: clamp(2rem, 4vw, 2.6rem); margin-bottom: 28px; }
.legal h2 { font-size: 1.15rem; margin-top: 34px; }
.legal a { color: var(--accent-2); text-decoration: underline; text-underline-offset: 3px; }

.not-found { min-height: calc(100vh - var(--nav-h) - 90px); display: grid; place-items: center; text-align: center; padding: 48px 0; }
.not-found .code { font-family: var(--font-display); font-size: clamp(5rem, 18vw, 9rem); font-weight: 700; line-height: 1; background: linear-gradient(120deg, var(--accent), var(--blue)); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------- Responsive ---------- */

@media (max-width: 1000px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 860px) {
  .hero-grid, .studio-grid, .account-grid { grid-template-columns: 1fr; }
  .hero-visual { max-width: 300px; order: -1; }
  .st-band { grid-template-columns: 1fr; text-align: center; justify-items: center; }

  .nav-burger { display: inline-grid; margin-left: auto; }
  .nav-user { min-width: 0; }
  .nav-links {
    position: absolute; top: var(--nav-h); left: 0; right: 0;
    flex-direction: column; gap: 0; margin: 0; padding: 8px var(--gutter) 16px;
    background: rgba(11, 18, 27, 0.96); border-bottom: 1px solid var(--line);
    opacity: 0; pointer-events: none; transform: translateY(-8px); transition: opacity 0.25s, transform 0.25s var(--ease);
  }
  .site-nav.is-open .nav-links { opacity: 1; pointer-events: auto; transform: none; }
  .nav-links a { padding: 12px 4px; font-size: 1rem; }
  .nav-links a::after { left: 4px; right: auto; width: 32px; }
  .user-chip-name { display: none; }
}

@media (max-width: 560px) {
  .services-grid, .field-row { grid-template-columns: 1fr; }
  .hero-ctas .btn { flex: 1; }
  .member .tag { display: none; }
  .dl-head { align-items: start; }
  .brand span { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- Page Téléchargements ---------- */

.downloads-page { padding-bottom: 80px; }
.result-count { margin: 0 0 14px; min-height: 1.4em; font-size: 0.8rem; }

/* ---------- Bandeau d'annonces ---------- */

.announce-bar {
  --announce: var(--blue);
  position: relative; z-index: 85;
  background: color-mix(in srgb, var(--announce) 16%, var(--bg));
  border-bottom: 1px solid color-mix(in srgb, var(--announce) 45%, transparent);
  color: var(--text-strong);
  font-size: 0.92rem;
  max-height: 200px; overflow: hidden;
  transition: max-height 0.4s var(--ease), opacity 0.3s;
}
.announce-bar.is-closing { max-height: 0; opacity: 0; }
.announce-event { --announce: var(--accent); }
.announce-maintenance { --announce: var(--danger); }
.announce-bar .wrap { display: flex; align-items: center; gap: 12px; padding-top: 10px; padding-bottom: 10px; }
.announce-bar p { margin: 0; flex: 1; line-height: 1.45; }
.announce-bar p strong { color: var(--announce); margin-right: 4px; }
.announce-icon { font-size: 1.1rem; }
.announce-close { flex: none; display: grid; place-items: center; width: 30px; height: 30px; border: 0; border-radius: 8px; background: transparent; color: var(--muted); cursor: pointer; }
.announce-close:hover { color: var(--text-strong); background: rgba(255, 255, 255, 0.06); }
.announce-close svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; }

/* ---------- Admin : annonces, Discord, boutique, journal ---------- */

.admin-tabs { flex-wrap: wrap; border-radius: var(--radius); }
.admin-form { margin-bottom: 18px; }
.admin-h2 { font-size: 1.15rem; margin: 30px 0 12px; }
.inline-form { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end; }
.inline-form .field { margin: 0; flex: 1 1 160px; }
.inline-form .form-actions { margin: 0; }
.admin-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.shop-admin-head { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between; margin-bottom: 8px; padding: 18px 22px; }
td .name { color: var(--text-strong); font-weight: 600; }
td .sub { font-size: 0.8rem; }
.price-input { width: 110px; padding: 6px 8px; text-align: right; }
tr.is-retired { opacity: 0.55; }
.audit-details { max-width: 420px; overflow-wrap: anywhere; font-family: var(--font-mono); font-size: 0.75rem; }

@media (max-width: 860px) {
  .admin-columns { grid-template-columns: 1fr; }
}
.code-box {
  margin: 0 0 14px; padding: 14px 16px; border-radius: var(--radius-sm);
  background: rgba(5, 9, 14, 0.8); border: 1px solid var(--line-strong);
  font-family: var(--font-mono); font-size: 0.8rem; color: var(--accent-2);
  white-space: pre-wrap; overflow-wrap: anywhere; user-select: all;
}
.token-result { margin-bottom: 18px; border-color: rgba(255, 138, 31, 0.45); }
