/* ============================================================
   ALYA RP — Feuille de style principale
   Thème sombre premium · violet & or · glassmorphism
   ============================================================ */

:root {
  --bg: #0a0713;
  --bg-2: #120a20;
  --surface: rgba(255, 255, 255, 0.045);
  --surface-2: rgba(255, 255, 255, 0.07);
  --border: rgba(255, 255, 255, 0.09);
  --border-strong: rgba(255, 255, 255, 0.16);

  --text: #f4f1fb;
  --text-dim: #b3accb;
  --text-faint: #7d7597;

  --violet: #8b5cf6;
  --violet-2: #a855f7;
  --magenta: #d946ef;
  --pink: #ec4899;

  --gold: #f7c948;
  --gold-2: #f59e0b;

  --green: #34d399;
  --red: #f87171;
  --blue: #38bdf8;

  --grad: linear-gradient(120deg, var(--violet), var(--magenta));
  --grad-gold: linear-gradient(120deg, var(--gold), var(--gold-2));

  --radius: 18px;
  --radius-sm: 12px;
  --radius-lg: 26px;

  --shadow: 0 20px 50px -20px rgba(0, 0, 0, 0.7);
  --shadow-violet: 0 18px 46px -14px rgba(139, 92, 246, 0.55);
  --shadow-gold: 0 18px 46px -14px rgba(247, 201, 72, 0.5);

  --nav-h: 74px;
  --maxw: 1180px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

/* L'attribut HTML [hidden] doit TOUJOURS l'emporter : sans ça, une règle comme
   .modal-overlay{display:grid} écrase [hidden] et la modale reste visible. */
[hidden] { display: none !important; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, .brand-name { font-family: 'Outfit', sans-serif; letter-spacing: -0.02em; }

a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
img { max-width: 100%; display: block; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 22px; }
.mt { margin-top: 34px; }

/* ---------------- Fond animé ---------------- */
.aurora {
  position: fixed; inset: 0; z-index: -2;
  background: radial-gradient(1200px 700px at 75% -10%, #1b1030 0%, transparent 60%),
              radial-gradient(900px 600px at 10% 110%, #170e28 0%, transparent 55%),
              linear-gradient(180deg, var(--bg), var(--bg-2));
  overflow: hidden;
}
.blob {
  position: absolute; border-radius: 50%; filter: blur(90px); opacity: 0.5;
  animation: float 18s ease-in-out infinite;
}
.blob-1 { width: 520px; height: 520px; top: -120px; left: -80px; background: #7c3aed; }
.blob-2 { width: 460px; height: 460px; top: 30%; right: -120px; background: #db2777; animation-delay: -6s; }
.blob-3 { width: 420px; height: 420px; bottom: -140px; left: 30%; background: #4338ca; animation-delay: -11s; }
.grid-overlay {
  position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 54px 54px;
  mask-image: radial-gradient(circle at 50% 20%, black, transparent 75%);
}
@keyframes float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(40px, -30px) scale(1.08); }
  66% { transform: translate(-30px, 25px) scale(0.94); }
}

/* ---------------- Navigation ---------------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  height: var(--nav-h);
  display: flex; align-items: center; gap: 20px;
  padding: 0 26px;
  background: rgba(12, 8, 22, 0.55);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border);
  transition: background 0.3s, box-shadow 0.3s;
}
.nav.scrolled { background: rgba(12, 8, 22, 0.85); box-shadow: 0 10px 30px -18px #000; }

.brand { display: flex; align-items: center; gap: 11px; font-weight: 800; font-size: 1.24rem; }
.brand-badge {
  width: 38px; height: 38px; display: grid; place-items: center;
  background: var(--grad); border-radius: 11px; font-size: 1.1rem;
  box-shadow: var(--shadow-violet);
}
.brand-badge.lg { width: 56px; height: 56px; font-size: 1.7rem; border-radius: 16px; }
.brand-name { background: linear-gradient(90deg, #fff, #d7c9ff); -webkit-background-clip: text; background-clip: text; color: transparent; }

.nav-links { display: flex; gap: 6px; margin-left: 14px; flex: 1; }
.nav-link {
  position: relative; padding: 9px 15px; border-radius: 10px;
  color: var(--text-dim); font-weight: 500; font-size: 0.95rem;
  transition: color 0.2s, background 0.2s;
}
.nav-link:hover { color: var(--text); background: var(--surface); }
.nav-link.active { color: var(--text); }
.nav-link.active::after {
  content: ''; position: absolute; left: 15px; right: 15px; bottom: 3px; height: 2px;
  background: var(--grad); border-radius: 2px;
}
.nav-admin { color: #f0c674; }

.nav-actions { display: flex; align-items: center; gap: 10px; }

.user-chip {
  display: flex; align-items: center; gap: 11px;
  background: var(--surface); border: 1px solid var(--border);
  padding: 6px 8px 6px 6px; border-radius: 40px;
}
.user-avatar {
  width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center;
  background: var(--grad); font-weight: 700; font-size: 0.9rem; box-shadow: var(--shadow-violet);
}
.user-meta { display: flex; flex-direction: column; line-height: 1.15; }
.user-id { font-size: 0.72rem; color: var(--text-faint); }
.user-id b { color: var(--text); }
.user-badge { font-size: 0.72rem; font-weight: 700; }

.nav-burger { display: none; flex-direction: column; gap: 5px; padding: 8px; }
.nav-burger span { width: 24px; height: 2px; background: var(--text); border-radius: 2px; transition: 0.3s; }

/* Boutons de liens (réseaux) */
.nav-socials { display: flex; align-items: center; gap: 8px; }
.social-btn {
  width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center;
  background: var(--surface); border: 1px solid var(--border); color: var(--text-dim);
  transition: transform 0.2s, background 0.2s, color 0.2s, border-color 0.2s, box-shadow 0.2s;
}
.social-btn:hover {
  transform: translateY(-2px); color: #fff;
  background: var(--brand, var(--violet)); border-color: transparent;
  box-shadow: 0 10px 22px -8px var(--brand, var(--violet));
}
.social-btn svg { width: 19px; height: 19px; fill: currentColor; }
.social-btn .emoji { font-size: 1.15rem; line-height: 1; }

/* Aperçu d'icône dans l'admin */
.link-preview {
  width: 42px; height: 42px; flex-shrink: 0; border-radius: 11px; display: grid; place-items: center;
  background: var(--brand, var(--violet)); color: #fff;
}
.link-preview svg { width: 21px; height: 21px; fill: currentColor; }
.link-preview .emoji { font-size: 1.25rem; }

/* Liaison Discord (Mon Compte) */
.btn-discord { background: #5865f2; color: #fff; box-shadow: 0 12px 26px -12px rgba(88, 101, 242, 0.7); }
.btn-discord:hover { transform: translateY(-2px); background: #4b57e0; box-shadow: 0 16px 34px -12px rgba(88, 101, 242, 0.85); }
.btn-discord .dc-logo-sm svg { width: 18px; height: 18px; fill: #fff; vertical-align: middle; margin-right: 6px; }
.discord-linked { display: flex; align-items: center; gap: 14px; background: #0e0a1a; border: 1px solid var(--border); border-radius: 14px; padding: 14px 16px; }
.dc-logo { width: 44px; height: 44px; flex-shrink: 0; border-radius: 11px; display: grid; place-items: center; background: #5865f2; }
.dc-logo svg { width: 24px; height: 24px; fill: #fff; }
.dc-info { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.dc-info b { color: var(--text); }
.dc-info span { color: var(--text-faint); font-size: 0.82rem; }
.link-code-box { background: #0e0a1a; border: 1px solid var(--border); border-radius: 14px; padding: 16px 18px; }
.link-code {
  font-family: 'Outfit', monospace; font-size: 1.5rem; font-weight: 800; letter-spacing: 0.06em;
  background: #5865f2; color: #fff; border-radius: 10px; padding: 12px 16px; text-align: center; user-select: all;
}
.dc-waiting { color: var(--text-faint); font-size: 0.82rem; margin-left: 10px; }

/* Logs & journal d'activité */
.log-filters { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 18px; }
.log-feed { display: flex; flex-direction: column; gap: 8px; }
.log-row { display: flex; gap: 14px; align-items: flex-start; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 13px 16px; transition: border-color 0.2s; }
.log-row:hover { border-color: var(--border-strong); }
.log-dot {
  width: 34px; height: 34px; flex-shrink: 0; border-radius: 9px; display: grid; place-items: center; font-size: 1rem;
  background: color-mix(in srgb, var(--c) 22%, transparent);
  border: 1px solid color-mix(in srgb, var(--c) 45%, transparent);
}
.log-main { min-width: 0; flex: 1; }
.log-msg { font-size: 0.92rem; color: var(--text); }
.log-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 5px; color: var(--text-faint); font-size: 0.78rem; }
.chip {
  display: inline-block; padding: 2px 9px; border-radius: 20px; font-size: 0.72rem; font-weight: 700;
  color: var(--c, #888); background: color-mix(in srgb, var(--c, #888) 16%, transparent);
}

/* ---------------- Boutons ---------------- */
.btn {
  --bh: 44px;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: var(--bh); padding: 0 20px; border-radius: 12px;
  font-weight: 600; font-size: 0.94rem; white-space: nowrap;
  transition: transform 0.18s ease, box-shadow 0.25s, background 0.2s, opacity 0.2s;
}
.btn:active { transform: scale(0.96); }
.btn-sm { --bh: 34px; padding: 0 13px; font-size: 0.82rem; border-radius: 9px; }
.btn-lg { --bh: 54px; padding: 0 28px; font-size: 1.02rem; border-radius: 14px; }
.btn-block { width: 100%; }

.btn-primary { background: var(--grad); color: #fff; box-shadow: var(--shadow-violet); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 22px 50px -12px rgba(168, 85, 247, 0.7); }

.btn-gold { background: var(--grad-gold); color: #23180a; font-weight: 700; box-shadow: var(--shadow-gold); }
.btn-gold:hover { transform: translateY(-2px); box-shadow: 0 22px 50px -12px rgba(247, 201, 72, 0.7); }

.btn-ghost { background: var(--surface); border: 1px solid var(--border-strong); color: var(--text); }
.btn-ghost:hover { background: var(--surface-2); border-color: var(--violet); }

.btn-danger { background: rgba(248, 113, 113, 0.14); border: 1px solid rgba(248,113,113,0.4); color: #fca5a5; }
.btn-danger:hover { background: rgba(248, 113, 113, 0.24); }

.btn[disabled] { opacity: 0.55; pointer-events: none; }

/* ---------------- Vues ---------------- */
.view { display: none; animation: viewIn 0.45s ease; padding-bottom: 80px; }
.view.active { display: block; }
@keyframes viewIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

.page-head { padding: 46px 0 26px; }
.page-title { font-size: clamp(2rem, 4vw, 2.9rem); font-weight: 800; }
.page-sub { color: var(--text-dim); font-size: 1.05rem; margin-top: 6px; }
.section-title { font-size: clamp(1.6rem, 3vw, 2.3rem); text-align: center; margin-bottom: 36px; font-weight: 800; }
.grad-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------------- Hero ---------------- */
.hero {
  max-width: var(--maxw); margin: 0 auto; padding: 70px 22px 40px;
  display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 50px; align-items: center;
}
.pill {
  display: inline-block; padding: 7px 15px; border-radius: 40px;
  background: var(--surface); border: 1px solid var(--border-strong);
  font-size: 0.84rem; color: var(--text-dim); font-weight: 500;
}
.hero-title { font-size: clamp(2.6rem, 6vw, 4.4rem); font-weight: 900; line-height: 1.03; margin: 20px 0 16px; }
.hero-sub { font-size: 1.2rem; color: var(--text-dim); max-width: 520px; }
.hero-cta { display: flex; gap: 14px; margin: 30px 0 40px; flex-wrap: wrap; }
.hero-stats { display: flex; gap: 38px; }
.stat b { display: block; font-family: 'Outfit'; font-size: 2rem; font-weight: 800; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat span { color: var(--text-faint); font-size: 0.88rem; }
.pdot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 6px; vertical-align: middle; background: var(--text-faint); transition: background 0.3s; }
.pdot.on { background: var(--green); animation: pdotPulse 2s infinite; }
.pdot.off { background: var(--red); }
#stat-players.bump { animation: statBump 0.45s ease; }
@keyframes statBump { 0% { transform: scale(1); } 40% { transform: scale(1.18); } 100% { transform: scale(1); } }
@keyframes pdotPulse {
  0% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.55); }
  70% { box-shadow: 0 0 0 6px rgba(52, 211, 153, 0); }
  100% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0); }
}

.hero-card { display: flex; justify-content: center; }
.glow-card {
  position: relative; width: 100%; max-width: 340px;
  background: linear-gradient(160deg, rgba(247,201,72,0.12), rgba(255,255,255,0.03));
  border: 1px solid rgba(247, 201, 72, 0.28);
  border-radius: var(--radius-lg); padding: 36px 30px; text-align: center;
  box-shadow: var(--shadow);
  animation: cardFloat 6s ease-in-out infinite;
}
@keyframes cardFloat { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }
.gc-crown { font-size: 3.2rem; filter: drop-shadow(0 8px 18px rgba(247,201,72,0.5)); }
.glow-card h3 { font-size: 1.7rem; margin: 12px 0 8px; }
.glow-card p { color: var(--text-dim); margin-bottom: 22px; }

/* ---------------- Features ---------------- */
.features { padding: 60px 22px 20px; }
.feature-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.feature {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 26px 22px; transition: transform 0.25s, border-color 0.25s, background 0.25s;
}
.feature:hover { transform: translateY(-6px); border-color: var(--border-strong); background: var(--surface-2); }
.fi { font-size: 2rem; margin-bottom: 12px; }
.feature h3 { font-size: 1.15rem; margin-bottom: 6px; }
.feature p { color: var(--text-dim); font-size: 0.92rem; }

/* ---------------- Boutique ---------------- */
.cat-tabs { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 30px; }
.cat-tab {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 18px; border-radius: 40px;
  background: var(--surface); border: 1px solid var(--border);
  color: var(--text-dim); font-weight: 600; font-size: 0.92rem;
  transition: all 0.2s;
}
.cat-tab:hover { color: var(--text); border-color: var(--border-strong); }
.cat-tab.active { background: var(--grad); color: #fff; border-color: transparent; box-shadow: var(--shadow-violet); }

.product-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }

.product {
  position: relative; display: flex; flex-direction: column;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 28px 26px;
  transition: transform 0.3s cubic-bezier(.2,.8,.2,1), border-color 0.3s, box-shadow 0.3s;
  overflow: hidden;
}
.product::before {
  content: ''; position: absolute; inset: 0; opacity: 0; transition: opacity 0.3s;
  background: radial-gradient(500px circle at var(--mx, 50%) var(--my, 0%), rgba(139,92,246,0.16), transparent 45%);
  pointer-events: none;
}
.product:hover { transform: translateY(-8px); border-color: var(--border-strong); box-shadow: var(--shadow); }
.product:hover::before { opacity: 1; }

.product.tier-gold { border-color: rgba(247,201,72,0.35); }
.product.tier-diamond { border-color: rgba(56,189,248,0.4); }

.product-badge {
  position: absolute; top: 18px; right: 18px;
  padding: 5px 12px; border-radius: 40px; font-size: 0.72rem; font-weight: 800;
  text-transform: uppercase; letter-spacing: 0.04em;
  background: var(--grad-gold); color: #23180a;
}
.p-icon { font-size: 2.4rem; margin-bottom: 14px; }
.p-tier { font-size: 0.76rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--violet-2); }
.tier-gold .p-tier { color: var(--gold); }
.tier-diamond .p-tier { color: var(--blue); }
.p-name { font-size: 1.5rem; font-weight: 800; margin: 3px 0 8px; }
.p-desc { color: var(--text-dim); font-size: 0.93rem; margin-bottom: 18px; min-height: 40px; }

.p-price { display: flex; align-items: baseline; gap: 7px; margin-bottom: 18px; }
.p-price b { font-family: 'Outfit'; font-size: 2.3rem; font-weight: 800; }
.p-price .cur { font-size: 1.1rem; color: var(--text-dim); }
.p-price .per { color: var(--text-faint); font-size: 0.88rem; }

.p-features { list-style: none; margin-bottom: 22px; display: flex; flex-direction: column; gap: 9px; flex: 1; }
.p-features li { display: flex; gap: 9px; font-size: 0.9rem; color: var(--text-dim); }
.p-features li::before { content: '✓'; color: var(--green); font-weight: 800; }

/* ---------------- Cartes / compte ---------------- */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 26px; }
.card-title { font-size: 1.3rem; font-weight: 700; margin-bottom: 16px; }
.account-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 22px; }

.vip-status-card { position: relative; overflow: hidden; }
.vip-hero { display: flex; align-items: center; gap: 18px; }
.vip-crown { font-size: 3rem; }
.vip-none { text-align: center; padding: 12px 0; }
.vip-none .es-icon { font-size: 2.6rem; }
.vip-badge-lg {
  display: inline-flex; align-items: center; gap: 8px; padding: 7px 16px; border-radius: 40px;
  font-weight: 800; font-size: 0.9rem; margin-bottom: 8px;
}
.badge-bronze { background: linear-gradient(120deg,#cd7f32,#a15c1e); color: #fff; }
.badge-gold { background: var(--grad-gold); color: #23180a; }
.badge-diamond { background: linear-gradient(120deg,#7dd3fc,#38bdf8); color: #06283d; }
.badge-vip { background: var(--grad); color: #fff; }

.info-list { list-style: none; display: flex; flex-direction: column; gap: 2px; }
.info-list li { display: flex; justify-content: space-between; padding: 12px 0; border-bottom: 1px solid var(--border); }
.info-list li:last-child { border-bottom: none; }
.info-list span { color: var(--text-faint); }

/* ---------------- Tables ---------------- */
.orders-table, .data-table { width: 100%; overflow-x: auto; }
table { width: 100%; border-collapse: collapse; min-width: 560px; }
th, td { text-align: left; padding: 13px 14px; font-size: 0.9rem; }
thead th { color: var(--text-faint); font-weight: 600; font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.05em; border-bottom: 1px solid var(--border); }
tbody tr { border-bottom: 1px solid var(--border); transition: background 0.15s; }
tbody tr:hover { background: var(--surface); }

.tag { display: inline-block; padding: 3px 10px; border-radius: 30px; font-size: 0.76rem; font-weight: 700; }
.tag-paid { background: rgba(52,211,153,0.16); color: var(--green); }
.tag-pending { background: rgba(247,201,72,0.16); color: var(--gold); }
.tag-failed { background: rgba(248,113,113,0.16); color: var(--red); }
.tag-yes { background: rgba(56,189,248,0.16); color: var(--blue); }
.tag-no { background: rgba(255,255,255,0.08); color: var(--text-faint); }

/* ---------------- Empty state ---------------- */
.empty-state { text-align: center; padding: 60px 20px; color: var(--text-dim); }
.es-icon { font-size: 3rem; margin-bottom: 12px; }
.empty-state h3 { color: var(--text); margin-bottom: 6px; }

/* ---------------- Admin ---------------- */
.admin-tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 26px; border-bottom: 1px solid var(--border); padding-bottom: 14px; }
.admin-tab { padding: 9px 16px; border-radius: 10px; color: var(--text-dim); font-weight: 600; font-size: 0.9rem; transition: 0.2s; }
.admin-tab:hover { color: var(--text); background: var(--surface); }
.admin-tab.active { background: var(--grad); color: #fff; box-shadow: var(--shadow-violet); }

.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-bottom: 30px; }
.stat-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; }
.stat-card .sc-label { color: var(--text-faint); font-size: 0.84rem; display: flex; align-items: center; gap: 8px; }
.stat-card .sc-value { font-family: 'Outfit'; font-size: 2.1rem; font-weight: 800; margin-top: 6px; }
.stat-card.accent .sc-value { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat-card.gold .sc-value { background: var(--grad-gold); -webkit-background-clip: text; background-clip: text; color: transparent; }

.panel-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; flex-wrap: wrap; gap: 12px; }
.panel-head h3 { font-size: 1.4rem; }

.admin-card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.mini-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px; }
.mini-card .mc-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; margin-bottom: 8px; }
.mini-card h4 { font-size: 1.1rem; }
.mini-card .mc-sub { color: var(--text-faint); font-size: 0.84rem; }
.mini-card .mc-actions { display: flex; gap: 8px; margin-top: 14px; }
.mc-price { font-family: 'Outfit'; font-weight: 800; font-size: 1.3rem; color: var(--gold); }

.key-box { display: flex; align-items: center; gap: 10px; background: #05030a; border: 1px solid var(--border); border-radius: 10px; padding: 10px 14px; font-family: monospace; font-size: 0.86rem; word-break: break-all; }

/* ---------------- Formulaires ---------------- */
.field { display: flex; flex-direction: column; gap: 7px; margin-bottom: 16px; }
.field > span { font-size: 0.88rem; font-weight: 600; color: var(--text-dim); }
.field input, .field textarea, .field select {
  background: #0e0a1a; border: 1px solid var(--border-strong); border-radius: 11px;
  padding: 12px 14px; color: var(--text); font-size: 0.96rem; font-family: inherit;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none; border-color: var(--violet); box-shadow: 0 0 0 3px rgba(139,92,246,0.22);
}
.field textarea { resize: vertical; min-height: 90px; }
.field-hint { color: var(--text-faint); font-size: 0.78rem; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.checkbox { display: flex; align-items: center; gap: 10px; flex-direction: row; }
.checkbox input { width: 18px; height: 18px; accent-color: var(--violet); }
.form-error { background: rgba(248,113,113,0.12); border: 1px solid rgba(248,113,113,0.35); color: #fca5a5; padding: 10px 14px; border-radius: 10px; font-size: 0.88rem; margin-bottom: 12px; }

/* ---------------- Modales ---------------- */
.modal-overlay {
  position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 20px;
  background: rgba(5, 3, 10, 0.7); backdrop-filter: blur(8px);
  animation: fadeIn 0.25s ease;
}
.modal-overlay.closing { animation: fadeOut 0.2s ease forwards; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes fadeOut { to { opacity: 0; } }
.modal {
  position: relative; width: 100%; max-width: 440px; max-height: 90vh; overflow-y: auto;
  background: linear-gradient(180deg, #170f28, #120b1f);
  border: 1px solid var(--border-strong); border-radius: var(--radius-lg);
  padding: 34px; box-shadow: var(--shadow);
  animation: modalIn 0.35s cubic-bezier(.2,.9,.3,1.2);
}
.checkout-modal, .form-modal { max-width: 480px; }
@keyframes modalIn { from { opacity: 0; transform: translateY(20px) scale(0.96); } to { opacity: 1; transform: none; } }
.modal-close { position: absolute; top: 16px; right: 16px; width: 34px; height: 34px; border-radius: 9px; color: var(--text-dim); background: var(--surface); font-size: 1rem; transition: 0.2s; }
.modal-close:hover { background: var(--surface-2); color: var(--text); }

.auth-head { text-align: center; margin-bottom: 22px; }
.auth-head .brand-badge { margin: 0 auto 14px; }
.auth-head h2 { font-size: 1.7rem; }
.auth-head p { color: var(--text-dim); font-size: 0.92rem; margin-top: 4px; }
.auth-switch { display: flex; background: #0e0a1a; border-radius: 12px; padding: 5px; margin-bottom: 22px; }
.auth-tab { flex: 1; padding: 10px; border-radius: 9px; color: var(--text-dim); font-weight: 600; font-size: 0.9rem; transition: 0.2s; }
.auth-tab.active { background: var(--grad); color: #fff; }

/* ---------------- Checkout ---------------- */
.co-head { text-align: center; margin-bottom: 20px; }
.co-icon { font-size: 3rem; }
.co-title { font-size: 1.6rem; margin: 8px 0 4px; }
.co-sub { color: var(--text-dim); font-size: 0.92rem; }
.co-summary { background: #0e0a1a; border: 1px solid var(--border); border-radius: var(--radius); padding: 18px 20px; margin-bottom: 20px; }
.co-line { display: flex; justify-content: space-between; padding: 7px 0; color: var(--text-dim); }
.co-line.total { border-top: 1px solid var(--border); margin-top: 6px; padding-top: 14px; font-size: 1.15rem; color: var(--text); font-weight: 700; }
.co-line.total b { font-family: 'Outfit'; font-size: 1.5rem; }
#paypal-buttons { min-height: 50px; }
.co-warn { background: rgba(247,201,72,0.1); border: 1px solid rgba(247,201,72,0.3); color: #f7d98a; padding: 14px; border-radius: 12px; font-size: 0.9rem; text-align: center; }
.co-secure { text-align: center; color: var(--text-faint); font-size: 0.8rem; margin-top: 14px; }

/* Moyens de paiement */
.pay-methods { display: flex; flex-direction: column; gap: 6px; }
.pay-stripe { background: #635bff; color: #fff; box-shadow: 0 12px 26px -12px rgba(99, 91, 255, 0.7); }
.pay-stripe:hover { transform: translateY(-2px); background: #5851e6; box-shadow: 0 16px 34px -12px rgba(99, 91, 255, 0.85); }
.pay-stripe .pay-ico::before { content: '💳'; margin-right: 4px; }
.pay-or { display: flex; align-items: center; text-align: center; color: var(--text-faint); font-size: 0.8rem; margin: 2px 0; }
.pay-or::before, .pay-or::after { content: ''; flex: 1; height: 1px; background: var(--border); }
.pay-or span { padding: 0 12px; }

/* ---------------- Notifications ---------------- */
.toast-wrap { position: fixed; top: 20px; right: 20px; z-index: 200; display: flex; flex-direction: column; gap: 12px; max-width: calc(100vw - 40px); }
.toast {
  position: relative; display: flex; gap: 13px; align-items: flex-start;
  width: 360px; max-width: 100%; padding: 16px 18px; border-radius: 14px;
  background: linear-gradient(180deg, #1c122e, #150d24);
  border: 1px solid var(--border-strong); box-shadow: var(--shadow);
  overflow: hidden; animation: toastIn 0.4s cubic-bezier(.2,.9,.3,1.3);
}
.toast.out { animation: toastOut 0.35s ease forwards; }
@keyframes toastIn { from { opacity: 0; transform: translateX(120%); } to { opacity: 1; transform: none; } }
@keyframes toastOut { to { opacity: 0; transform: translateX(120%); } }
.toast-icon { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; font-size: 1.1rem; flex-shrink: 0; }
.toast-success .toast-icon { background: rgba(52,211,153,0.18); color: var(--green); }
.toast-error .toast-icon { background: rgba(248,113,113,0.18); color: var(--red); }
.toast-info .toast-icon { background: rgba(56,189,248,0.18); color: var(--blue); }
.toast-vip .toast-icon { background: rgba(247,201,72,0.2); color: var(--gold); }
.toast-body { flex: 1; }
.toast-title { font-weight: 700; font-size: 0.96rem; margin-bottom: 2px; }
.toast-msg { color: var(--text-dim); font-size: 0.87rem; }
.toast-bar { position: absolute; bottom: 0; left: 0; height: 3px; background: var(--grad); animation: shrink linear forwards; }
.toast-success .toast-bar { background: linear-gradient(90deg,#34d399,#10b981); }
.toast-error .toast-bar { background: linear-gradient(90deg,#f87171,#ef4444); }
.toast-vip .toast-bar { background: var(--grad-gold); }
@keyframes shrink { from { width: 100%; } to { width: 0%; } }

/* ---------------- Confettis ---------------- */
.confetti { position: fixed; top: -12px; z-index: 300; width: 10px; height: 14px; pointer-events: none; will-change: transform; }

/* ---------------- Reveal on scroll ---------------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.7s ease, transform 0.7s cubic-bezier(.2,.8,.2,1); }
.reveal.in { opacity: 1; transform: none; }

/* ---------------- Footer ---------------- */
.footer { border-top: 1px solid var(--border); margin-top: 40px; padding: 30px 0; background: rgba(8,5,15,0.5); }
.footer-inner { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; color: var(--text-faint); font-size: 0.85rem; }

/* ---------------- Loader ---------------- */
.spinner { width: 20px; height: 20px; border: 2.5px solid rgba(255,255,255,0.25); border-top-color: #fff; border-radius: 50%; animation: spin 0.7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.center-load { display: grid; place-items: center; padding: 60px; }

/* ---------------- Responsive ---------------- */
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; gap: 30px; padding-top: 40px; }
  .hero-card { order: -1; }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
  .account-grid { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .nav-links, .nav-actions .btn { display: none; }
  .nav { flex-wrap: wrap; height: auto; min-height: var(--nav-h); }
  .nav-burger { display: flex; margin-left: auto; }
  .nav.open .nav-links {
    display: flex; flex-direction: column; flex-basis: 100%; order: 10;
    background: rgba(12,8,22,0.97); backdrop-filter: blur(18px); padding: 14px; gap: 4px;
    border-bottom: 1px solid var(--border);
  }
  .nav.open .nav-links .nav-link { padding: 13px; }
  .nav.open .nav-actions { display: flex; flex-basis: 100%; order: 11; flex-direction: column; align-items: stretch; gap: 8px; margin-top: 8px; }
  .nav.open .nav-actions .btn { display: block; width: 100%; text-align: center; }
  .user-chip .user-meta { display: none; }
}
@media (max-width: 560px) {
  .feature-grid, .product-grid, .stat-grid { grid-template-columns: 1fr; }
  .hero-stats { gap: 22px; }
  .field-row { grid-template-columns: 1fr; }
  .modal { padding: 26px 20px; }
  .toast { width: calc(100vw - 40px); }
}

/* ===== Page Aides ===== */
.aide-cat { margin: 0 0 2.4rem; }
.aide-cat-title { font-size: 1.25rem; font-weight: 800; margin: 0 0 1rem; letter-spacing: .3px; }
.aide-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: .7rem; }
.aide-item { display: flex; align-items: flex-start; gap: .8rem; padding: .8rem .95rem;
  background: rgba(255,255,255,.045); border: 1px solid rgba(255,255,255,.09);
  border-radius: 14px; transition: border-color .15s, transform .15s, background .15s; }
.aide-item:hover { border-color: rgba(247,201,72,.5); transform: translateY(-2px); background: rgba(255,255,255,.06); }
.aide-cmd { flex: none; font-family: ui-monospace, "Cascadia Code", Consolas, monospace; font-weight: 700;
  color: #f7c948; background: rgba(247,201,72,.10); border: 1px solid rgba(247,201,72,.28);
  padding: .28rem .55rem; border-radius: 9px; font-size: .92rem; white-space: nowrap; }
.aide-key { flex: none; font-family: ui-monospace, Consolas, monospace; font-weight: 800; min-width: 2rem;
  text-align: center; background: #2a2d3a; color: #fff; border: 1px solid #4a4f63; border-bottom-width: 3px;
  border-radius: 9px; padding: .28rem .5rem; font-size: .95rem; }
.aide-txt b { display: block; font-size: .96rem; margin-bottom: .12rem; }
.aide-txt span { display: block; opacity: .68; font-size: .84rem; line-height: 1.35; }
.aide-txt code { font-family: ui-monospace, Consolas, monospace; background: rgba(255,255,255,.08);
  padding: .05rem .3rem; border-radius: 5px; font-size: .82rem; }

/* ===== Page Reglement ===== */
.rules-list { display: flex; flex-direction: column; gap: 14px; }
.rule { background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.09);
  border-radius: 16px; padding: 20px 22px; }
.rule-title { font-size: 1.15rem; font-weight: 800; margin: 0 0 8px; }
.rule-text { white-space: pre-wrap; line-height: 1.55; opacity: .82; }

/* ---- Équipe ---- */
.team-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 22px; }
.team-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 24px 20px; text-align: center; transition: transform 0.25s, border-color 0.25s, box-shadow 0.25s; }
.team-card:hover { transform: translateY(-6px); border-color: var(--border-strong); box-shadow: var(--shadow); }
.team-photo { width: 118px; height: 118px; margin: 0 auto 16px; border-radius: 50%; overflow: hidden; border: 3px solid var(--border-strong); background: #0e0a1a; }
.team-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.team-photo-empty { display: grid; place-items: center; font-family: 'Outfit', sans-serif; font-size: 3rem; font-weight: 800; color: #fff; background: var(--grad); border-color: transparent; }
.team-name { font-size: 1.2rem; font-weight: 700; margin-bottom: 6px; }
.team-text { color: var(--text-dim); font-size: 0.92rem; white-space: pre-wrap; }
.team-photo-preview { width: 96px; height: 96px; border-radius: 12px; object-fit: cover; border: 1px solid var(--border-strong); background: #0e0a1a; display: block; }
.pw-form { max-width: 420px; }
.pw-form .btn { margin-top: 4px; }
