/* ════════════════════════════════════════════════════════════════
   SyperCraft — Site web public
   DA « Forge / Ember » : fond sombre chaud, accents braise & or,
   atmosphère lumineuse. Display = Bricolage Grotesque, corps = Inter.
   ════════════════════════════════════════════════════════════════ */

:root {
  --bg:        #0f0d0a;
  --bg2:       #16120d;
  --bg3:       #1c1710;
  --card:      #1e1913;
  --card2:     #261f17;
  --border:    #3a3025;
  --border2:   #4a3d2f;
  --ember:     #e8941a;
  --gold:      #ffaa00;
  --flame:     #ef5a2a;
  --ember-soft: rgba(232,148,26,.12);
  --text:      #ece1cd;
  --text2:     #b3a78f;
  --text3:     #7c6e5b;
  --green:     #34d36b;
  --red:       #ef4444;
  --discord:   #5865f2;
  --discord-d: #4752c4;

  --display: 'Bricolage Grotesque', 'Inter', system-ui, sans-serif;
  --body:    'Inter', system-ui, -apple-system, sans-serif;

  --radius:  10px;
  --radius2: 16px;
  --maxw:    1180px;
  --header-h: 68px;
  --shadow:  0 18px 50px rgba(0,0,0,.55);
  --shadow-ember: 0 10px 40px rgba(232,148,26,.18);
  --ease: cubic-bezier(.4,0,.2,1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* Texture de grain + lueurs d'ambiance fixées */
body::before {
  content: ''; position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(900px 600px at 12% -5%, rgba(232,148,26,.10), transparent 60%),
    radial-gradient(800px 600px at 95% 8%, rgba(239,90,42,.08), transparent 55%);
}
body::after {
  content: ''; position: fixed; inset: 0; z-index: 0; pointer-events: none; opacity: .035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
#app { position: relative; z-index: 1; }

::selection { background: rgba(232,148,26,.3); color: #fff; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--bg2); }
::-webkit-scrollbar-thumb { background: var(--border2); border-radius: 6px; border: 2px solid var(--bg2); }
::-webkit-scrollbar-thumb:hover { background: var(--ember); }

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

/* ── Boutons ─────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 12px 24px; border-radius: var(--radius); border: 1px solid transparent;
  font-family: var(--body); font-size: 14px; font-weight: 700; letter-spacing: .2px;
  cursor: pointer; transition: all .2s var(--ease); white-space: nowrap; user-select: none;
}
.btn svg { width: 17px; height: 17px; }
.btn-primary {
  background: linear-gradient(135deg, var(--gold), var(--ember) 55%, var(--flame));
  color: #1a1206; box-shadow: var(--shadow-ember);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 44px rgba(232,148,26,.32); filter: brightness(1.05); }
.btn-discord { background: var(--discord); color: #fff; box-shadow: 0 8px 28px rgba(88,101,242,.28); }
.btn-discord:hover { background: var(--discord-d); transform: translateY(-2px); }
.btn-ghost { background: rgba(255,255,255,.03); color: var(--text); border-color: var(--border); backdrop-filter: blur(8px); }
.btn-ghost:hover { border-color: var(--ember); color: var(--gold); background: var(--ember-soft); }
.btn-sm { padding: 9px 16px; font-size: 13px; }
.btn:disabled { opacity: .45; cursor: not-allowed; transform: none !important; box-shadow: none; }

/* ── Header ──────────────────────────────────────────────────── */
.header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100; height: var(--header-h);
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 0 28px;
  background: linear-gradient(180deg, rgba(15,13,10,.92), rgba(15,13,10,.72));
  backdrop-filter: blur(16px) saturate(140%);
  border-bottom: 1px solid rgba(232,148,26,.10);
  transition: border-color .3s, background .3s;
}
.header.scrolled { border-bottom-color: rgba(232,148,26,.22); background: rgba(15,13,10,.96); }
.header-brand { display: flex; align-items: center; gap: 11px; flex-shrink: 0; cursor: pointer; }
.header-brand img { height: 38px; width: 38px; object-fit: contain; filter: drop-shadow(0 3px 8px rgba(232,148,26,.4)); transition: transform .3s var(--ease); }
.header-brand:hover img { transform: rotate(-6deg) scale(1.06); }
.header-brand .bname { font-family: var(--display); font-weight: 800; font-size: 19px; letter-spacing: -.4px; }
.header-brand .bname b { color: var(--gold); }
.header-brand .bname i { color: var(--flame); font-style: normal; }

.nav { display: flex; gap: 4px; align-items: center; }
.nav a {
  position: relative; padding: 9px 15px; border-radius: 8px; font-size: 13.5px; font-weight: 600;
  color: var(--text2); transition: color .18s, background .18s;
}
.nav a:hover { color: var(--text); background: rgba(255,255,255,.04); }
.nav a.active { color: var(--gold); }
.nav a.active::after {
  content: ''; position: absolute; left: 15px; right: 15px; bottom: 2px; height: 2px;
  background: linear-gradient(90deg, var(--ember), var(--gold)); border-radius: 2px;
}

.header-right { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.status-pill {
  display: flex; align-items: center; gap: 8px; padding: 7px 13px; border-radius: 30px;
  background: rgba(52,211,107,.08); border: 1px solid rgba(52,211,107,.2);
  font-size: 12.5px; font-weight: 600; color: var(--text2);
}
.status-pill .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 10px var(--green); animation: pulse 2s infinite; }
.status-pill b { color: var(--text); }
.status-pill.offline { background: rgba(239,68,68,.1); border-color: rgba(239,68,68,.3); }
.status-pill.offline .dot { background: var(--red); box-shadow: 0 0 10px var(--red); animation: none; }
.status-pill.offline b { color: var(--red); }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: .45; } }

/* Avatar / menu utilisateur */
.user-btn { display: flex; align-items: center; gap: 9px; padding: 5px 12px 5px 6px; border-radius: 30px; background: var(--card); border: 1px solid var(--border); cursor: pointer; transition: border-color .2s; }
.user-btn:hover { border-color: var(--ember); }
.user-btn img { width: 30px; height: 30px; border-radius: 50%; }
.user-btn .uname { font-size: 13px; font-weight: 600; max-width: 120px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.user-menu { position: absolute; top: calc(var(--header-h) - 6px); right: 28px; width: 230px; background: var(--card2); border: 1px solid var(--border2); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; z-index: 120; animation: dropIn .18s var(--ease); }
@keyframes dropIn { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: translateY(0); } }
.user-menu .um-head { padding: 14px 16px; border-bottom: 1px solid var(--border); }
.user-menu .um-head .n { font-weight: 700; font-size: 14px; }
.user-menu .um-head .s { font-size: 11.5px; color: var(--text3); margin-top: 2px; }
.user-menu .um-head .s.linked { color: var(--green); }
.user-menu button { display: flex; align-items: center; gap: 10px; width: 100%; padding: 12px 16px; background: none; border: none; color: var(--text2); font-family: var(--body); font-size: 13.5px; font-weight: 600; cursor: pointer; text-align: left; transition: background .15s, color .15s; }
.user-menu button:hover { background: var(--ember-soft); color: var(--gold); }
.user-menu button svg { width: 16px; height: 16px; }

/* Burger (mobile) */
.burger { display: none; width: 40px; height: 40px; border-radius: 9px; border: 1px solid var(--border); background: var(--card); cursor: pointer; align-items: center; justify-content: center; }
.burger svg { width: 20px; height: 20px; stroke: var(--text); }

/* ── Page container ──────────────────────────────────────────── */
main { padding-top: var(--header-h); min-height: 100vh; }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 28px; }
.section { padding: 64px 0; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 34px; }
.eyebrow { font-size: 12px; font-weight: 700; letter-spacing: 2.5px; text-transform: uppercase; color: var(--ember); margin-bottom: 10px; }
.section-title { font-family: var(--display); font-size: clamp(26px, 4vw, 38px); font-weight: 800; letter-spacing: -.8px; line-height: 1.1; }
.section-sub { color: var(--text2); font-size: 15px; margin-top: 8px; max-width: 560px; }

/* ── Hero ────────────────────────────────────────────────────── */
.hero { position: relative; min-height: min(86vh, 760px); display: flex; align-items: center; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; z-index: 0; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; object-position: center 40%; transform: scale(1.05); animation: heroZoom 24s ease-in-out infinite alternate; }
@keyframes heroZoom { to { transform: scale(1.13); } }
.hero-bg::after {
  content: ''; position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(15,13,10,.35) 0%, rgba(15,13,10,.55) 45%, var(--bg) 100%),
    linear-gradient(100deg, rgba(15,13,10,.85) 0%, rgba(15,13,10,.35) 50%, transparent 100%);
}
.hero-inner { position: relative; z-index: 2; width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 28px; display: grid; grid-template-columns: 1.4fr .9fr; gap: 40px; align-items: center; }
.hero-copy { animation: fadeUp .8s var(--ease) both; }
.hero-wordmark { height: clamp(60px, 8vw, 96px); margin-bottom: 22px; filter: drop-shadow(0 8px 30px rgba(232,148,26,.45)); }
.hero-tag { font-size: clamp(16px, 2vw, 20px); color: var(--text); font-weight: 500; max-width: 520px; margin-bottom: 14px; line-height: 1.5; }
.hero-tag b { color: var(--gold); font-weight: 700; }
.hero-meta { display: flex; gap: 18px; flex-wrap: wrap; margin: 22px 0 30px; }
.hero-meta .m { display: flex; align-items: center; gap: 9px; font-size: 13.5px; color: var(--text2); }
.hero-meta .m svg { width: 18px; height: 18px; color: var(--ember); }
.hero-meta .m b { color: var(--text); font-weight: 700; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }

/* IP copy button */
.ip-copy { position: relative; }
.ip-copy .copied { position: absolute; top: -34px; left: 50%; transform: translateX(-50%); background: var(--green); color: #06210f; font-size: 11.5px; font-weight: 700; padding: 4px 10px; border-radius: 6px; opacity: 0; transition: opacity .2s; pointer-events: none; }
.ip-copy.show .copied { opacity: 1; }

@keyframes fadeUp { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: translateY(0); } }

/* ── Carte Discord superposée (hero) ─────────────────────────── */
.discord-card {
  position: relative; z-index: 2; background: linear-gradient(160deg, rgba(38,31,23,.85), rgba(22,18,13,.92));
  border: 1px solid var(--border2); border-radius: var(--radius2); padding: 24px;
  backdrop-filter: blur(14px); box-shadow: var(--shadow);
  animation: fadeUp .9s .15s var(--ease) both; overflow: hidden;
}
.discord-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: linear-gradient(90deg, var(--discord), #7983f5); }
.dc-head { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.dc-head .dc-ic { width: 46px; height: 46px; border-radius: 12px; background: var(--discord); display: grid; place-items: center; flex-shrink: 0; box-shadow: 0 6px 18px rgba(88,101,242,.35); }
.dc-head .dc-ic svg { width: 26px; height: 26px; fill: #fff; }
.dc-head .dc-t { font-weight: 700; font-size: 16px; }
.dc-head .dc-s { font-size: 12px; color: var(--text3); }
.dc-stats { display: flex; gap: 10px; margin-bottom: 18px; }
.dc-stat { flex: 1; background: rgba(0,0,0,.25); border: 1px solid var(--border); border-radius: 10px; padding: 14px 12px; text-align: center; }
.dc-stat .v { font-family: var(--display); font-weight: 800; font-size: 24px; line-height: 1; }
.dc-stat .l { font-size: 11px; color: var(--text3); margin-top: 6px; text-transform: uppercase; letter-spacing: .6px; }
.dc-stat .v.on { color: var(--green); }
.dc-stat .live { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--green); margin-right: 5px; box-shadow: 0 0 8px var(--green); animation: pulse 2s infinite; vertical-align: middle; }
.discord-card .btn { width: 100%; }

/* ── Cartes génériques ───────────────────────────────────────── */
.grid { display: grid; gap: 18px; }
.card {
  position: relative; background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius2); padding: 24px; transition: transform .22s var(--ease), border-color .22s, box-shadow .22s; overflow: hidden;
}
.card:hover { transform: translateY(-4px); border-color: var(--border2); box-shadow: var(--shadow); }

/* Features */
.features { grid-template-columns: repeat(4, 1fr); }
.feature .f-ic { width: 50px; height: 50px; border-radius: 13px; display: grid; place-items: center; margin-bottom: 16px; background: var(--ember-soft); border: 1px solid rgba(232,148,26,.2); }
.feature .f-ic svg { width: 26px; height: 26px; color: var(--gold); }
.feature h3 { font-family: var(--display); font-size: 18px; font-weight: 700; margin-bottom: 8px; }
.feature p { font-size: 13.5px; color: var(--text2); line-height: 1.6; }

/* ── Articles / Actus ────────────────────────────────────────── */
.articles { grid-template-columns: repeat(3, 1fr); }
.article-card { cursor: pointer; padding: 0; display: flex; flex-direction: column; }
.article-card .ac-cover { aspect-ratio: 16/9; background: linear-gradient(135deg, var(--bg3), var(--card2)); overflow: hidden; position: relative; }
.article-card .ac-cover img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s var(--ease); }
.article-card:hover .ac-cover img { transform: scale(1.06); }
.article-card .ac-nocover { width: 100%; height: 100%; display: grid; place-items: center; }
.article-card .ac-nocover img { width: 64px; height: 64px; opacity: .35; }
.article-card .ac-body { padding: 18px 20px 22px; display: flex; flex-direction: column; flex: 1; }
.article-card .ac-title { font-family: var(--display); font-size: 17px; font-weight: 700; line-height: 1.3; margin: 12px 0 8px; }
.article-card .ac-excerpt { font-size: 13px; color: var(--text2); line-height: 1.6; flex: 1; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.article-card .ac-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 16px; font-size: 12px; color: var(--text3); }
.badge { display: inline-flex; align-items: center; gap: 5px; padding: 4px 11px; border-radius: 20px; font-size: 11px; font-weight: 700; letter-spacing: .4px; text-transform: uppercase; }
.badge.news   { background: rgba(232,148,26,.14); color: var(--gold); border: 1px solid rgba(232,148,26,.25); }
.badge.update { background: rgba(52,211,107,.14); color: var(--green); border: 1px solid rgba(52,211,107,.25); }
.badge.event  { background: rgba(239,90,42,.14); color: var(--flame); border: 1px solid rgba(239,90,42,.25); }
.badge.pin    { background: rgba(255,170,0,.16); color: var(--gold); }

/* Article reader */
.article-reader { max-width: 800px; margin: 0 auto; }
.article-reader .ar-cover { aspect-ratio: 21/8; border-radius: var(--radius2); overflow: hidden; margin-bottom: 28px; border: 1px solid var(--border); }
.article-reader .ar-cover img { width: 100%; height: 100%; object-fit: cover; }
.article-reader h1 { font-family: var(--display); font-size: clamp(28px, 4vw, 42px); font-weight: 800; line-height: 1.1; letter-spacing: -.8px; margin: 14px 0 10px; }
.article-reader .ar-meta { font-size: 13px; color: var(--text3); margin-bottom: 30px; display: flex; gap: 12px; align-items: center; }
.article-reader .ar-content { font-size: 16px; line-height: 1.8; color: var(--text); }
.article-reader .ar-content h2 { font-family: var(--display); font-size: 24px; margin: 32px 0 12px; }
.article-reader .ar-content h3 { font-family: var(--display); font-size: 19px; margin: 24px 0 10px; }
.article-reader .ar-content p { margin-bottom: 16px; }
.article-reader .ar-content ul, .article-reader .ar-content ol { margin: 0 0 16px 22px; }
.article-reader .ar-content li { margin-bottom: 6px; }
.article-reader .ar-content a { color: var(--gold); text-decoration: underline; }
.article-reader .ar-content img { border-radius: var(--radius); margin: 20px 0; border: 1px solid var(--border); }
.article-reader .ar-content code { background: var(--bg3); padding: 2px 7px; border-radius: 5px; font-size: .9em; color: var(--gold); }
.article-reader .ar-content blockquote { border-left: 3px solid var(--ember); padding: 4px 18px; margin: 18px 0; color: var(--text2); background: var(--ember-soft); border-radius: 0 8px 8px 0; }

.back-link { display: inline-flex; align-items: center; gap: 7px; color: var(--text3); font-size: 13.5px; font-weight: 600; margin-bottom: 22px; cursor: pointer; transition: color .2s; }
.back-link:hover { color: var(--gold); }
.back-link svg { width: 16px; height: 16px; }

/* ── Classement ──────────────────────────────────────────────── */
.lb-tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 28px; }
.lb-tab { padding: 10px 18px; border-radius: 10px; background: var(--card); border: 1px solid var(--border); font-size: 13.5px; font-weight: 600; color: var(--text2); cursor: pointer; transition: all .18s; display: flex; align-items: center; gap: 8px; }
.lb-tab svg { width: 16px; height: 16px; }
.lb-tab:hover { border-color: var(--border2); color: var(--text); }
.lb-tab.active { background: var(--ember-soft); border-color: var(--ember); color: var(--gold); }
.lb-list { display: flex; flex-direction: column; gap: 8px; }
.lb-row { display: flex; align-items: center; gap: 16px; padding: 13px 18px; background: var(--card); border: 1px solid var(--border); border-radius: 12px; transition: border-color .2s, transform .2s; }
.lb-row:hover { border-color: var(--border2); transform: translateX(3px); }
.lb-rank { font-family: var(--display); font-weight: 800; font-size: 18px; width: 38px; text-align: center; color: var(--text3); flex-shrink: 0; }
.lb-row.top1 { border-color: rgba(255,170,0,.4); background: linear-gradient(100deg, rgba(255,170,0,.08), var(--card)); }
.lb-row.top2 { border-color: rgba(200,200,210,.28); }
.lb-row.top3 { border-color: rgba(205,127,50,.32); }
.lb-row.top1 .lb-rank { color: var(--gold); }
.lb-row.top2 .lb-rank { color: #d4d8e0; }
.lb-row.top3 .lb-rank { color: #cd7f32; }
.lb-head { width: 36px; height: 36px; border-radius: 8px; flex-shrink: 0; background: var(--bg3); image-rendering: pixelated; }
.lb-fic { width: 36px; height: 36px; border-radius: 8px; flex-shrink: 0; background: var(--ember-soft); display: grid; place-items: center; }
.lb-fic svg { width: 19px; height: 19px; color: var(--gold); }
.lb-name { font-weight: 700; font-size: 15px; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lb-name .sub { font-size: 12px; color: var(--text3); font-weight: 500; }
.lb-val { font-family: var(--display); font-weight: 800; font-size: 17px; color: var(--gold); text-align: right; flex-shrink: 0; }
.lb-val .u { font-size: 11px; color: var(--text3); font-weight: 600; display: block; margin-top: 1px; }

/* ── Profil ──────────────────────────────────────────────────── */
.profile-head { display: flex; align-items: center; gap: 24px; background: linear-gradient(150deg, var(--card2), var(--card)); border: 1px solid var(--border2); border-radius: var(--radius2); padding: 30px; position: relative; overflow: hidden; }
.profile-head::before { content: ''; position: absolute; top: -40%; right: -10%; width: 320px; height: 320px; background: radial-gradient(circle, rgba(232,148,26,.16), transparent 70%); }
.profile-head .ph-skin { width: 96px; height: 96px; border-radius: 16px; image-rendering: pixelated; border: 2px solid var(--border2); box-shadow: var(--shadow); flex-shrink: 0; position: relative; z-index: 1; }
.profile-head .ph-info { position: relative; z-index: 1; }
.profile-head .ph-name { font-family: var(--display); font-size: 30px; font-weight: 800; letter-spacing: -.6px; }
.profile-head .ph-tags { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.tag { padding: 4px 12px; border-radius: 8px; font-size: 12px; font-weight: 700; }
.tag svg { width: 13px; height: 13px; vertical-align: -2px; }
.stat-grid { grid-template-columns: repeat(4, 1fr); margin-top: 18px; }
.stat-box { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; }
.stat-box .sb-v { font-family: var(--display); font-size: 28px; font-weight: 800; color: var(--gold); line-height: 1; }
.stat-box .sb-l { font-size: 12.5px; color: var(--text2); margin-top: 8px; font-weight: 600; }
.job-grid { grid-template-columns: repeat(4, 1fr); }
.job-box { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px; text-align: center; }
.job-box .jb-n { font-weight: 700; font-size: 14px; }
.job-box .jb-lv { font-family: var(--display); font-size: 22px; font-weight: 800; color: var(--gold); margin-top: 6px; }
.job-box .jb-g { font-size: 11.5px; color: var(--text3); margin-top: 2px; }

/* ── Recrutement ─────────────────────────────────────────────── */
.rc-card { cursor: pointer; }
.rc-card .rc-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; }
.rc-card .rc-title { font-family: var(--display); font-size: 20px; font-weight: 700; }
.rc-card .rc-desc { font-size: 13.5px; color: var(--text2); margin-top: 10px; line-height: 1.6; }
.rc-card .rc-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--border); font-size: 12.5px; color: var(--text3); }
.rc-conds { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 14px; }
.rc-cond { padding: 4px 11px; border-radius: 7px; font-size: 11.5px; font-weight: 600; background: var(--ember-soft); color: var(--gold); border: 1px solid rgba(232,148,26,.18); }
.field { margin-bottom: 20px; }
.field label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 8px; }
.field .hint { font-size: 11.5px; color: var(--text3); margin-top: 5px; }
.input, .textarea, select.input {
  width: 100%; padding: 12px 15px; border-radius: 10px; border: 1px solid var(--border);
  background: var(--bg2); color: var(--text); font-family: var(--body); font-size: 14px; outline: none; transition: border-color .2s;
}
.input:focus, .textarea:focus { border-color: var(--ember); }
.textarea { min-height: 110px; resize: vertical; }
.radio-group { display: flex; flex-direction: column; gap: 8px; }
.radio-label { display: flex; align-items: center; gap: 10px; padding: 11px 15px; border-radius: 10px; border: 1px solid var(--border); background: var(--bg2); cursor: pointer; font-size: 14px; transition: all .18s; }
.radio-label:hover { border-color: var(--border2); }
.radio-label input { accent-color: var(--ember); }
.notice { text-align: center; padding: 46px 30px; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius2); }
.notice h3 { font-family: var(--display); font-size: 19px; margin-bottom: 10px; }
.notice p { font-size: 14px; color: var(--text2); max-width: 460px; margin: 0 auto 22px; }

/* ── États vides / loader ────────────────────────────────────── */
.empty { text-align: center; padding: 70px 20px; color: var(--text3); }
.empty h3 { font-family: var(--display); font-size: 20px; color: var(--text2); margin-bottom: 8px; }
.spinner { width: 34px; height: 34px; border: 3px solid var(--border); border-top-color: var(--ember); border-radius: 50%; animation: spin .6s linear infinite; margin: 70px auto; }
@keyframes spin { to { transform: rotate(360deg); } }

/* « bientôt » placeholder (boutique / docs) */
.soon { display: grid; place-items: center; min-height: 60vh; text-align: center; padding: 40px; }
.soon .soon-ic { width: 80px; height: 80px; border-radius: 22px; background: var(--ember-soft); border: 1px solid rgba(232,148,26,.2); display: grid; place-items: center; margin: 0 auto 24px; }
.soon .soon-ic svg { width: 40px; height: 40px; color: var(--gold); }
.soon h2 { font-family: var(--display); font-size: 32px; font-weight: 800; margin-bottom: 12px; }
.soon p { color: var(--text2); max-width: 440px; }

/* ── Documentation (style GitBook maison, placeholder) ──────── */
.docs-layout { display: grid; grid-template-columns: 240px 1fr; gap: 40px; align-items: start; }
.docs-side { position: sticky; top: calc(var(--header-h) + 24px); background: var(--card); border: 1px solid var(--border); border-radius: var(--radius2); padding: 18px; }
.docs-side .ds-group { font-size: 11px; text-transform: uppercase; letter-spacing: 1px; color: var(--text3); font-weight: 700; margin: 14px 0 8px; }
.docs-side a { display: block; padding: 8px 12px; border-radius: 8px; font-size: 13.5px; color: var(--text2); font-weight: 500; }
.docs-side a:hover { background: var(--ember-soft); color: var(--gold); }
.docs-side a.active { background: var(--ember-soft); color: var(--gold); }

/* ── Footer ──────────────────────────────────────────────────── */
.footer { border-top: 1px solid var(--border); background: var(--bg2); margin-top: 40px; }
.footer-main { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 36px; padding: 52px 0 36px; }
.footer-brand img { height: 40px; margin-bottom: 14px; }
.footer-brand p { font-size: 13px; color: var(--text2); max-width: 320px; line-height: 1.6; }
.footer-col h4 { font-family: var(--display); font-size: 14px; font-weight: 700; margin-bottom: 14px; color: var(--text); }
.footer-col a { display: block; font-size: 13.5px; color: var(--text2); padding: 5px 0; transition: color .15s; }
.footer-col a:hover { color: var(--gold); }
.footer-bottom { border-top: 1px solid var(--border); padding: 22px 0; display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.footer-bottom .legal { font-size: 12px; color: var(--text3); line-height: 1.6; }
.footer-bottom .legal b { color: var(--text2); }
.footer-bottom .social { display: flex; gap: 10px; }
.footer-bottom .social a { width: 38px; height: 38px; border-radius: 10px; background: var(--card); border: 1px solid var(--border); display: grid; place-items: center; transition: all .2s; }
.footer-bottom .social a:hover { border-color: var(--ember); transform: translateY(-2px); }
.footer-bottom .social svg { width: 18px; height: 18px; fill: var(--text2); }
.footer-bottom .social a:hover svg { fill: var(--gold); }

/* ── Toast ───────────────────────────────────────────────────── */
.toast-host { position: fixed; bottom: 26px; left: 50%; transform: translateX(-50%); z-index: 999; display: flex; flex-direction: column; gap: 10px; align-items: center; }
.toast { padding: 13px 24px; border-radius: 11px; font-size: 14px; font-weight: 600; box-shadow: var(--shadow); animation: toastIn .3s var(--ease); }
.toast.success { background: var(--green); color: #062012; }
.toast.error { background: var(--red); color: #fff; }
@keyframes toastIn { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: translateY(0); } }

/* ── Reveal au scroll ────────────────────────────────────────── */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ── Responsive ──────────────────────────────────────────────── */
.mobile-nav { display: none; }

/* Petits portables / tablettes paysage */
@media (max-width: 1024px) {
  :root { --maxw: 960px; }
  .section { padding: 52px 0; }
  .hero-inner { gap: 30px; }
}

/* Tablette portrait : hero empilé, grilles 2 colonnes */
@media (max-width: 980px) {
  .hero { min-height: auto; padding: calc(var(--header-h) + 36px) 0 48px; }
  .hero-inner { grid-template-columns: 1fr; }
  .hero-wordmark { height: clamp(54px, 12vw, 84px); }
  .discord-card { max-width: 440px; }
  .features { grid-template-columns: repeat(2, 1fr); }
  .articles { grid-template-columns: repeat(2, 1fr); }
  .stat-grid, .job-grid { grid-template-columns: repeat(2, 1fr); }
  .docs-layout { grid-template-columns: 1fr; }
  .docs-side { position: static; }
  .footer-main { grid-template-columns: 1fr 1fr; gap: 28px; }
}

/* Passage au menu burger (grandes tablettes portrait + téléphones) */
@media (max-width: 860px) {
  .nav { display: none; }
  .burger { display: flex; }
  .status-pill .label { display: none; }
  .header { gap: 12px; }
  .mobile-nav.open {
    display: flex; flex-direction: column; position: fixed; top: var(--header-h);
    left: 0; right: 0; background: var(--bg2); border-bottom: 1px solid var(--border);
    padding: 12px; gap: 4px; z-index: 99; animation: dropIn .2s var(--ease);
    max-height: calc(100vh - var(--header-h)); overflow-y: auto;
  }
  .mobile-nav.open a { padding: 14px 16px; border-radius: 9px; font-weight: 600; color: var(--text2); font-size: 15px; }
  .mobile-nav.open a.active { background: var(--ember-soft); color: var(--gold); }
}

/* Téléphones */
@media (max-width: 680px) {
  :root { --header-h: 60px; }
  .section { padding: 40px 0; }
  .section-head { flex-direction: column; align-items: flex-start; gap: 8px; margin-bottom: 26px; }
  .wrap, .hero-inner { padding: 0 16px; }
  .header { padding: 0 14px; }
  .features, .articles { grid-template-columns: 1fr; }
  .stat-grid, .job-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .hero-tag { font-size: 16px; }
  .hero-meta { gap: 14px; }
  .hero-cta { width: 100%; gap: 12px; }
  .hero-cta .ip-copy, .hero-cta > .btn { width: 100%; }
  .hero-cta .ip-copy .btn { width: 100%; }
  .discord-card { max-width: none; padding: 20px; }
  .profile-head { flex-direction: column; text-align: center; padding: 24px; }
  .profile-head .ph-tags { justify-content: center; }
  .article-reader h1 { font-size: 26px; }
  .article-reader .ar-content { font-size: 15px; }
  .lb-row { padding: 11px 13px; gap: 12px; }
  .lb-rank { width: 28px; font-size: 15px; }
  .lb-val { font-size: 15px; }
  .footer-main { grid-template-columns: 1fr 1fr; gap: 22px; }
  .footer-brand { grid-column: 1 / -1; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}

/* Très petits téléphones */
@media (max-width: 420px) {
  .header-brand .bname { font-size: 16px; }
  .header-right { gap: 8px; }
  .header-right .btn-discord span { display: none; }   /* bouton Connexion → icône seule */
  .header-right .btn-discord { padding: 9px 11px; }
  .section-title { font-size: 23px; }
  .stat-box { padding: 16px; }
  .stat-box .sb-v { font-size: 24px; }
  .job-box { padding: 14px; }
  .footer-main { grid-template-columns: 1fr; }
  .footer-brand { grid-column: auto; }
  .lb-tab { padding: 9px 13px; font-size: 12.5px; }
  .lb-name { font-size: 14px; }
}
