/* ==========================================================================
   Valunity - feuille de style principale
   Palette reprise du logo (rouge #ff3131) sur fond sombre.
   ========================================================================== */

/* Polices hébergées sur le site (pas d'appel à Google Fonts) */
@font-face { font-family: "Inter"; font-style: normal; font-weight: 400; font-display: swap; src: url("../assets/fonts/inter-latin-400-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 400; font-display: swap; src: url("../assets/fonts/inter-latin-ext-400-normal.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 500; font-display: swap; src: url("../assets/fonts/inter-latin-500-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 500; font-display: swap; src: url("../assets/fonts/inter-latin-ext-500-normal.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 600; font-display: swap; src: url("../assets/fonts/inter-latin-600-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 600; font-display: swap; src: url("../assets/fonts/inter-latin-ext-600-normal.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 700; font-display: swap; src: url("../assets/fonts/inter-latin-700-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 700; font-display: swap; src: url("../assets/fonts/inter-latin-ext-700-normal.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Rajdhani"; font-style: normal; font-weight: 600; font-display: swap; src: url("../assets/fonts/rajdhani-latin-600-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Rajdhani"; font-style: normal; font-weight: 600; font-display: swap; src: url("../assets/fonts/rajdhani-latin-ext-600-normal.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Rajdhani"; font-style: normal; font-weight: 700; font-display: swap; src: url("../assets/fonts/rajdhani-latin-700-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Rajdhani"; font-style: normal; font-weight: 700; font-display: swap; src: url("../assets/fonts/rajdhani-latin-ext-700-normal.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
  --bg: #0b0d11;
  --bg-2: #101319;
  --surface: #151920;
  --surface-2: #1b2029;
  --surface-3: #232935;
  --border: #262c37;
  --border-strong: #343b49;
  --text: #eef1f5;
  --text-2: #b9c0cc;
  --muted: #858e9d;
  --accent: #ff3131;
  --accent-2: #ff5454;
  --accent-soft: rgba(255, 49, 49, .12);
  --accent-glow: rgba(255, 49, 49, .35);
  --ok: #3ddc97;
  --warn: #ffb547;
  --info: #4ea3ff;

  --r-sm: 6px;
  --r: 10px;
  --r-lg: 16px;
  --shadow: 0 10px 30px rgba(0, 0, 0, .35);
  --container: 1240px;
  --header-h: 68px;

  --f-title: "Rajdhani", "Segoe UI", sans-serif;
  --f-body: "Inter", "Segoe UI", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--f-body);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
h1, h2, h3, h4 { font-family: var(--f-title); font-weight: 700; line-height: 1.1; margin: 0 0 .5em; letter-spacing: .01em; }
p { margin: 0 0 1em; }
::selection { background: var(--accent); color: #fff; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 20px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: -999px; top: 8px; background: var(--accent); color: #fff; padding: 8px 14px; border-radius: var(--r-sm); z-index: 1000; }
.skip-link:focus { left: 8px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  height: var(--header-h);
  border-bottom: 1px solid var(--border);
}
/* Le flou est sur un pseudo-élément : sinon le menu mobile (position fixed) serait enfermé dans l'en-tête */
.site-header::before { content: ""; position: absolute; inset: 0; z-index: -1; background: rgba(11, 13, 17, .85); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.site-header .container { display: flex; align-items: center; height: 100%; gap: 24px; }
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--f-title); font-weight: 700; font-size: 22px; letter-spacing: .04em; text-transform: uppercase; }
.brand img { width: 34px; height: 34px; }
.brand span b { color: var(--accent); font-weight: 700; }

.main-nav { margin-left: auto; }
.main-nav > ul { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.main-nav a, .main-nav .nav-drop > button {
  display: flex; align-items: center; gap: 6px;
  padding: 8px 12px; border-radius: var(--r-sm);
  font-weight: 600; font-size: 14px; color: var(--text-2);
  background: none; border: 0; transition: color .15s, background .15s;
}
.main-nav a:hover, .main-nav .nav-drop > button:hover { color: var(--text); background: var(--surface); }
.main-nav a.is-active, .main-nav .nav-drop.is-active > button { color: var(--accent); }
.nav-drop { position: relative; }
.nav-drop > button svg { width: 12px; height: 12px; transition: transform .2s; }
.nav-drop:hover > button svg, .nav-drop.open > button svg { transform: rotate(180deg); }
.nav-drop ul {
  position: absolute; top: calc(100% + 8px); left: 0; min-width: 220px;
  list-style: none; margin: 0; padding: 8px;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--r);
  box-shadow: var(--shadow);
  opacity: 0; visibility: hidden; transform: translateY(-6px); transition: .18s;
}
.nav-drop ul::before { content: ""; position: absolute; top: -10px; left: 0; right: 0; height: 10px; }
.nav-drop:hover ul, .nav-drop.open ul { opacity: 1; visibility: visible; transform: none; }
.nav-drop ul a { padding: 9px 12px; }
.nav-drop ul a small { display: block; color: var(--muted); font-weight: 400; font-size: 12px; }

.btn-discord-nav { margin-left: 8px; }
.burger { display: none; margin-left: auto; background: none; border: 1px solid var(--border); border-radius: var(--r-sm); width: 42px; height: 42px; align-items: center; justify-content: center; }
.burger span, .burger span::before, .burger span::after { display: block; width: 18px; height: 2px; background: var(--text); position: relative; transition: .2s; }
.burger span::before, .burger span::after { content: ""; position: absolute; left: 0; }
.burger span::before { top: -6px; } .burger span::after { top: 6px; }
body.nav-open .burger span { background: transparent; }
body.nav-open .burger span::before { top: 0; transform: rotate(45deg); }
body.nav-open .burger span::after { top: 0; transform: rotate(-45deg); }

@media (max-width: 1080px) {
  .burger { display: flex; }
  .main-nav {
    position: fixed; inset: var(--header-h) 0 0 0; margin: 0;
    background: var(--bg); overflow-y: auto; padding: 16px 20px 40px;
    opacity: 0; visibility: hidden; transform: translateY(-8px); transition: opacity .2s, transform .2s, visibility .2s;
  }
  body.nav-open { overflow: hidden; }
  body.nav-open .main-nav { opacity: 1; visibility: visible; transform: none; }
  .main-nav > ul { flex-direction: column; align-items: stretch; gap: 2px; }
  .main-nav a, .main-nav .nav-drop > button { width: 100%; padding: 12px; font-size: 16px; justify-content: space-between; }
  .nav-drop ul { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; background: none; padding: 0 0 0 12px; display: none; }
  .nav-drop.open ul { display: block; }
  .btn-discord-nav { margin: 12px 0 0; }
  .nav-drop ul a small { display: none; }
  .btn-discord-nav a { justify-content: center !important; }
}

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 22px; border-radius: var(--r-sm); border: 1px solid transparent;
  font-weight: 700; font-size: 14px; letter-spacing: .02em;
  transition: transform .15s, background .15s, box-shadow .15s, border-color .15s;
}
.btn svg { width: 18px; height: 18px; }
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--accent); color: #fff; box-shadow: 0 6px 20px -6px var(--accent-glow); }
.btn-primary:hover { background: var(--accent-2); box-shadow: 0 8px 26px -6px var(--accent-glow); }
.btn-ghost { background: rgba(255, 255, 255, .04); border-color: var(--border-strong); color: var(--text); }
.btn-ghost:hover { border-color: var(--text-2); }
.btn-discord { background: #5865f2; color: #fff; }
.btn-discord:hover { background: #6b77f5; }
.btn-twitch { background: #9146ff; color: #fff; }
.btn-twitch:hover { background: #a261ff; }
.btn-sm { padding: 8px 14px; font-size: 13px; }
.main-nav a.btn-primary { color: #fff; background: var(--accent); }
.main-nav a.btn-primary:hover { background: var(--accent-2); color: #fff; }

/* ---------- Hero accueil ---------- */
.hero {
  position: relative; min-height: calc(100vh - var(--header-h)); max-height: 900px;
  display: flex; align-items: center; overflow: hidden; isolation: isolate;
  background: radial-gradient(ellipse at 70% 30%, #3a1016 0%, var(--bg) 60%);
}
.hero-art { position: absolute; inset: 0; z-index: -2; }
.hero-art img { position: absolute; right: -4%; bottom: 0; height: 108%; width: auto; max-width: none; object-fit: contain; opacity: 0; transition: opacity .8s ease; filter: drop-shadow(0 0 60px rgba(0,0,0,.6)); }
.hero-art img.bg { right: 5%; height: 90%; top: 5%; opacity: 0; mix-blend-mode: screen; filter: none; }
.hero-art img.ready { opacity: 1; }
.hero-art img.bg.ready { opacity: .18; }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, var(--bg) 0%, rgba(11,13,17,.92) 35%, rgba(11,13,17,.15) 70%, rgba(11,13,17,.35) 100%), linear-gradient(0deg, var(--bg) 0%, transparent 30%); }
.hero-content { max-width: 620px; padding: 60px 0; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--accent); margin-bottom: 18px; }
.eyebrow::before { content: ""; width: 24px; height: 2px; background: var(--accent); }
.hero h1 { font-size: clamp(44px, 7vw, 86px); text-transform: uppercase; margin-bottom: 16px; }
.hero h1 em { font-style: normal; color: var(--accent); }
.hero .lead { font-size: 18px; color: var(--text-2); margin-bottom: 30px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-stats { display: flex; gap: 32px; margin-top: 44px; flex-wrap: wrap; }
.hero-stats div strong { display: block; font-family: var(--f-title); font-size: 32px; line-height: 1; }
.hero-stats div span { font-size: 13px; color: var(--muted); }
.hero-agent-tag { position: absolute; right: 24px; bottom: 24px; font-size: 12px; color: var(--muted); background: rgba(0,0,0,.45); padding: 6px 12px; border-radius: 20px; border: 1px solid var(--border); }
.hero-agent-tag b { color: var(--text); }
@media (max-width: 780px) {
  .hero { min-height: auto; }
  .hero-art img { right: -30%; height: 90%; opacity: .5 !important; }
  .hero::after { background: linear-gradient(0deg, var(--bg) 5%, rgba(11,13,17,.75) 60%, rgba(11,13,17,.6)); }
  .hero-agent-tag { display: none; }
}

/* ---------- En-tête de page ---------- */
.page-head { position: relative; padding: 64px 0 40px; overflow: hidden; border-bottom: 1px solid var(--border); background: linear-gradient(180deg, #16090c 0%, var(--bg) 100%); }
.page-head::before { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(115deg, transparent 0 40px, rgba(255,255,255,.015) 40px 41px); pointer-events: none; }
.page-head h1 { font-size: clamp(36px, 5vw, 58px); text-transform: uppercase; }
.page-head p { color: var(--text-2); max-width: 720px; font-size: 16px; margin: 0; }
.breadcrumb { display: flex; gap: 8px; font-size: 13px; color: var(--muted); margin-bottom: 14px; flex-wrap: wrap; }
.breadcrumb a:hover { color: var(--text); }
.breadcrumb span::before { content: "/"; margin-right: 8px; opacity: .5; }

/* ---------- Sections ---------- */
.section { padding: 80px 0; }
.section-sm { padding: 48px 0; }
.section-alt { background: var(--bg-2); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 32px; flex-wrap: wrap; }
.section-head h2 { font-size: clamp(30px, 4vw, 42px); text-transform: uppercase; margin: 0; }
.section-head p { color: var(--muted); margin: 6px 0 0; }
.section-head .link-more { color: var(--accent); font-weight: 600; font-size: 14px; display: inline-flex; gap: 6px; align-items: center; }
.section-head .link-more:hover { gap: 10px; }
.link-more svg, .link-more [data-icon] svg { width: 16px; height: 16px; flex-shrink: 0; }
img.broken { visibility: hidden; }
.center { text-align: center; }
.center .section-head { justify-content: center; }

/* ---------- Grilles ---------- */
.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-auto { grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
.grid-auto-sm { grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); }
@media (max-width: 980px) { .grid-4 { grid-template-columns: repeat(2, 1fr); } .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } .grid-auto-sm { grid-template-columns: repeat(2, 1fr); } }

/* ---------- Cartes génériques ---------- */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 24px; transition: border-color .2s, transform .2s, box-shadow .2s; }
a.card:hover, .card.hoverable:hover { border-color: rgba(255,49,49,.5); transform: translateY(-3px); box-shadow: 0 14px 30px -12px rgba(255,49,49,.25); }
.card h3 { font-size: 22px; }
.card p { color: var(--text-2); font-size: 14px; }
.icon-box { width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); margin-bottom: 16px; }
.icon-box svg { width: 24px; height: 24px; }

/* ---------- Agents (liste) ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 28px; }
.chip {
  display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-sm);
  font-weight: 600; font-size: 14px; color: var(--text-2); transition: .15s;
}
.chip img { width: 16px; height: 16px; filter: brightness(0) invert(1); opacity: .8; }
.chip:hover { color: var(--text); border-color: var(--border-strong); }
.chip.is-active { background: var(--accent); border-color: var(--accent); color: #fff; }
.chip.is-active img { opacity: 1; }
.search { position: relative; margin-left: auto; min-width: 240px; }
.search input, .select {
  width: 100%; padding: 10px 14px 10px 38px; border-radius: var(--r-sm);
  background: var(--surface); border: 1px solid var(--border); color: var(--text); font: inherit; font-size: 14px;
}
.select { padding-left: 14px; 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) 50%, calc(100% - 13px) 50%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 34px; }
.search input:focus, .select:focus { outline: none; border-color: var(--accent); }
.search svg { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); width: 16px; height: 16px; color: var(--muted); }
@media (max-width: 700px) { .search { margin-left: 0; width: 100%; } }

.agent-card {
  position: relative; display: flex; flex-direction: column; overflow: hidden;
  border-radius: var(--r-lg); border: 1px solid var(--border);
  background: var(--surface); aspect-ratio: 3 / 4; isolation: isolate;
  transition: transform .25s, border-color .25s, box-shadow .25s;
}
.agent-card .agent-bg { position: absolute; inset: 0; z-index: -2; background: var(--g, linear-gradient(160deg, #2a2f3a, #15181e)); }
.agent-card .agent-bg::after { content: ""; position: absolute; inset: 0; background: var(--bgimg) center/cover no-repeat; opacity: .25; mix-blend-mode: overlay; }
.agent-card img.portrait { position: absolute; left: 50%; top: 4%; height: 105%; width: auto; max-width: none; transform: translateX(-50%); transition: transform .35s ease; z-index: -1; }
.agent-card::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, rgba(8,9,12,.95) 0%, rgba(8,9,12,.4) 35%, transparent 60%); }
.agent-card .agent-meta { margin-top: auto; padding: 18px; }
.agent-card h3 { font-size: 28px; text-transform: uppercase; margin: 0 0 4px; }
.agent-card .role { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; color: var(--text-2); }
.agent-card .role img { width: 14px; height: 14px; }
.agent-card:hover { transform: translateY(-4px); border-color: rgba(255,255,255,.25); box-shadow: 0 20px 40px -18px rgba(0,0,0,.8); }
.agent-card:hover img.portrait { transform: translateX(-50%) scale(1.05); }
.agent-card .origin { position: absolute; top: 12px; right: 12px; font-size: 11px; font-weight: 600; background: rgba(0,0,0,.5); padding: 4px 9px; border-radius: 20px; color: var(--text-2); backdrop-filter: blur(4px); }

/* ---------- Page agent ---------- */
.agent-hero { position: relative; overflow: hidden; isolation: isolate; border-bottom: 1px solid var(--border); }
.agent-hero .bg { position: absolute; inset: 0; z-index: -2; background: var(--g); }
.agent-hero .bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, var(--bg) 0%, rgba(11,13,17,.85) 40%, rgba(11,13,17,.2) 100%), linear-gradient(0deg, var(--bg) 0%, transparent 40%); }
.agent-hero .bg-img { position: absolute; right: 0; top: 0; height: 100%; opacity: .15; z-index: -1; }
.agent-hero .container { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); align-items: end; min-height: 600px; gap: 20px; }
.agent-hero .info { padding: 60px 0; align-self: center; }
.agent-hero h1 { font-size: clamp(56px, 9vw, 110px); text-transform: uppercase; margin: 0 0 12px; line-height: .9; }
.agent-hero .portrait { height: 620px; width: auto; max-width: none; justify-self: center; margin-bottom: -10px; filter: drop-shadow(0 20px 40px rgba(0,0,0,.6)); }
.agent-hero .facts { grid-template-columns: repeat(2, 1fr); max-width: 560px; }
.agent-hero .desc { color: var(--text-2); font-size: 16px; max-width: 560px; }
.pill-row { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 24px; }
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 20px; font-size: 13px; font-weight: 600; background: rgba(255,255,255,.06); border: 1px solid var(--border-strong); color: var(--text-2); }
.pill img { width: 14px; height: 14px; }
.pill.accent { background: var(--accent-soft); border-color: rgba(255,49,49,.4); color: #ff8a8a; }
@media (max-width: 900px) {
  .agent-hero .container { grid-template-columns: minmax(0, 1fr); min-height: 0; }
  .agent-hero .portrait { height: 380px; max-width: 100%; object-fit: contain; order: -1; margin: 20px auto -30px; }
  .agent-hero .info { padding: 20px 0 40px; }
}

.facts { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); background: var(--surface); border: 1px solid var(--border); border-radius: var(--r); overflow: hidden; margin-top: 8px; }
.facts div { padding: 14px 16px; border-right: 1px solid var(--border); border-bottom: 1px solid var(--border); margin: 0 -1px -1px 0; }
.facts dt { font-size: 11px; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); margin-bottom: 4px; }
.facts dd { margin: 0; font-weight: 600; }

.abilities { display: grid; grid-template-columns: 280px 1fr; gap: 24px; }
.ability-tabs { display: flex; flex-direction: column; gap: 8px; }
.ability-tab { display: flex; align-items: center; gap: 14px; padding: 14px; text-align: left; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r); transition: .15s; }
.ability-tab img { width: 40px; height: 40px; }
.ability-tab .key { margin-left: auto; font-family: var(--f-title); font-weight: 700; font-size: 13px; width: 28px; height: 28px; border-radius: 6px; display: grid; place-items: center; background: var(--surface-3); color: var(--muted); }
.ability-tab strong { display: block; font-size: 15px; }
.ability-tab small { color: var(--muted); font-size: 12px; }
.ability-tab:hover { border-color: var(--border-strong); }
.ability-tab.is-active { border-color: var(--accent); background: linear-gradient(90deg, var(--accent-soft), var(--surface)); }
.ability-tab.is-active .key { background: var(--accent); color: #fff; }
.ability-panel { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 32px; display: flex; gap: 28px; align-items: flex-start; }
.ability-panel img { width: 96px; height: 96px; flex-shrink: 0; padding: 14px; border-radius: 16px; background: var(--surface-3); }
.ability-panel h3 { font-size: 32px; text-transform: uppercase; margin-bottom: 4px; }
.ability-panel .slot { color: var(--accent); font-weight: 700; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 14px; display: block; }
.ability-panel p { color: var(--text-2); font-size: 15px; white-space: pre-line; }
@media (max-width: 860px) { .abilities { grid-template-columns: 1fr; } .ability-panel { flex-direction: column; padding: 22px; } }

.lore { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 28px; }
.lore .prose p { color: var(--text-2); font-size: 16px; line-height: 1.75; }
.lore .prose h3 { font-size: 24px; margin-top: 28px; text-transform: uppercase; }
.lore .prose h3:first-child { margin-top: 0; }
.quote { border-left: 3px solid var(--accent); padding: 12px 20px; margin: 24px 0; font-style: italic; color: var(--text); background: var(--accent-soft); border-radius: 0 var(--r) var(--r) 0; }
.side-box { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 24px; margin-bottom: 20px; }
.side-box h3 { font-size: 20px; text-transform: uppercase; margin-bottom: 14px; }
.side-box ul { list-style: none; padding: 0; margin: 0; }
.side-box li { padding: 8px 0; border-bottom: 1px solid var(--border); font-size: 14px; color: var(--text-2); display: flex; justify-content: space-between; gap: 12px; }
.side-box li:last-child { border-bottom: 0; }
.side-box li b { color: var(--text); font-weight: 600; text-align: right; }
.difficulty { display: inline-flex; gap: 4px; }
.difficulty i { width: 18px; height: 6px; border-radius: 3px; background: var(--surface-3); }
.difficulty i.on { background: var(--accent); }
@media (max-width: 900px) { .lore { grid-template-columns: minmax(0, 1fr); } }

.agent-nav { display: flex; justify-content: space-between; gap: 16px; }
.agent-nav a { display: flex; align-items: center; gap: 12px; padding: 12px 18px 12px 12px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r); font-weight: 600; }
.agent-nav a:hover { border-color: var(--accent); }
.agent-nav a img { width: 44px; height: 44px; border-radius: 8px; background: var(--surface-3); }
.agent-nav a small { display: block; color: var(--muted); font-size: 12px; font-weight: 400; }
.agent-nav a.next { flex-direction: row-reverse; text-align: right; padding: 12px 12px 12px 18px; }

/* ---------- Armes ---------- */
.weapon-group { margin-bottom: 48px; }
.weapon-group h2 { font-size: 26px; text-transform: uppercase; display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.weapon-group h2::after { content: ""; flex: 1; height: 1px; background: var(--border); }
.weapon-card { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 20px; transition: .2s; position: relative; overflow: hidden; }
.weapon-card::before { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 50% 35%, rgba(255,49,49,.08), transparent 65%); opacity: 0; transition: .2s; }
.weapon-card:hover { border-color: rgba(255,49,49,.5); transform: translateY(-3px); }
.weapon-card:hover::before { opacity: 1; }
.weapon-card .w-img { height: 110px; display: grid; place-items: center; margin-bottom: 14px; }
.weapon-card .w-img img { max-height: 100%; max-width: 90%; object-fit: contain; filter: drop-shadow(0 6px 10px rgba(0,0,0,.5)); }
.weapon-card h3 { font-size: 24px; text-transform: uppercase; margin: 0; }
.weapon-card .w-top { display: flex; justify-content: space-between; align-items: baseline; }
.weapon-card .cost { font-family: var(--f-title); font-weight: 700; color: var(--warn); font-size: 18px; }
.weapon-card .w-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 14px; }
.weapon-card .w-stats div { background: var(--surface-2); border-radius: var(--r-sm); padding: 8px; text-align: center; }
.weapon-card .w-stats b { display: block; font-family: var(--f-title); font-size: 18px; }
.weapon-card .w-stats span { font-size: 11px; color: var(--muted); }

.weapon-hero { padding: 50px 0 40px; border-bottom: 1px solid var(--border); background: radial-gradient(ellipse at 70% 50%, #2a0d11 0%, var(--bg) 65%); }
.weapon-hero .container { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 40px; align-items: center; }
.weapon-hero h1 { font-size: clamp(50px, 8vw, 96px); text-transform: uppercase; margin: 0; }
.weapon-hero .w-big { max-height: 240px; width: auto; margin: 0 auto; filter: drop-shadow(0 20px 30px rgba(0,0,0,.6)); }
@media (max-width: 860px) { .weapon-hero .container { grid-template-columns: minmax(0, 1fr); } .weapon-hero .w-big { order: -1; max-height: 160px; } }

.stat-bars { display: grid; gap: 14px; }
.stat-bar .lbl { display: flex; justify-content: space-between; font-size: 13px; margin-bottom: 6px; color: var(--text-2); }
.stat-bar .lbl b { color: var(--text); }
.stat-bar .track { height: 6px; background: var(--surface-3); border-radius: 3px; overflow: hidden; }
.stat-bar .fill { height: 100%; background: linear-gradient(90deg, var(--accent), #ff7a45); border-radius: 3px; width: 0; transition: width .9s cubic-bezier(.2,.8,.2,1); }

.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--r); }
table.data { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 520px; }
table.data th, table.data td { padding: 12px 16px; text-align: left; border-bottom: 1px solid var(--border); }
table.data th { background: var(--surface-2); font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 600; }
table.data td { background: var(--surface); }
table.data tr:last-child td { border-bottom: 0; }
table.data .dmg-head { color: #ff8a8a; font-weight: 700; }
.kill-note { font-size: 12px; color: var(--muted); }

/* ---------- Skins / cosmétiques ---------- */
.skin-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r); overflow: hidden; display: flex; flex-direction: column; transition: .2s; cursor: pointer; text-align: left; padding: 0; }
.skin-card:hover { border-color: var(--tier, rgba(255,49,49,.5)); transform: translateY(-3px); }
.skin-card .s-img { aspect-ratio: 16 / 9; display: grid; place-items: center; padding: 14px; background: radial-gradient(circle at 50% 60%, color-mix(in srgb, var(--tier, #444) 22%, transparent), transparent 70%), var(--surface-2); }
.skin-card .s-img img { max-height: 100%; max-width: 100%; object-fit: contain; }
.skin-card .s-body { padding: 12px 14px; border-top: 2px solid var(--tier, var(--border)); }
.skin-card h3 { font-family: var(--f-body); font-size: 14px; font-weight: 600; margin: 0 0 2px; line-height: 1.3; }
.skin-card small { color: var(--muted); font-size: 12px; display: flex; align-items: center; gap: 6px; }
.skin-card small img { width: 14px; height: 14px; }
.cosmetic-card .s-img { aspect-ratio: 1; }
.cosmetic-card.tall .s-img { aspect-ratio: 1 / 2.4; padding: 0; }
.cosmetic-card.tall .s-img img { width: 100%; height: 100%; object-fit: cover; }

.tabs { display: flex; gap: 6px; border-bottom: 1px solid var(--border); margin-bottom: 28px; overflow-x: auto; }
.tabs a, .tabs button { padding: 12px 18px; font-weight: 600; color: var(--muted); border: 0; background: none; border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; }
.tabs a:hover, .tabs button:hover { color: var(--text); }
.tabs .is-active { color: var(--text); border-bottom-color: var(--accent); }

.pager { display: flex; justify-content: center; margin-top: 32px; }
.count { color: var(--muted); font-size: 13px; margin-bottom: 16px; }

/* Modale */
.modal { position: fixed; inset: 0; z-index: 500; display: none; align-items: center; justify-content: center; padding: 20px; background: rgba(0,0,0,.75); backdrop-filter: blur(6px); }
.modal.open { display: flex; }
.modal-box { position: relative; width: 100%; max-width: 900px; max-height: 92vh; overflow-y: auto; background: var(--surface); border: 1px solid var(--border-strong); border-radius: var(--r-lg); padding: 28px; }
.modal-close { position: absolute; top: 14px; right: 14px; width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--border-strong); background: var(--surface-2); font-size: 20px; line-height: 1; }
.modal-close:hover { border-color: var(--accent); }
.modal-preview { aspect-ratio: 16/8; display: grid; place-items: center; background: radial-gradient(circle, color-mix(in srgb, var(--tier, #444) 25%, transparent), transparent 70%), var(--bg-2); border-radius: var(--r); margin: 18px 0; padding: 20px; }
.modal-preview img, .modal-preview video { max-height: 100%; max-width: 100%; object-fit: contain; }
.chroma-row { display: flex; gap: 10px; flex-wrap: wrap; }
.chroma-row button { width: 54px; height: 54px; border-radius: 10px; border: 2px solid var(--border); background: var(--surface-2); padding: 4px; }
.chroma-row button.is-active { border-color: var(--accent); }
.chroma-row button img { width: 100%; height: 100%; object-fit: contain; }
.level-list { list-style: none; padding: 0; margin: 12px 0 0; display: grid; gap: 6px; }
.level-list li { display: flex; align-items: center; justify-content: space-between; gap: 10px; background: var(--surface-2); padding: 10px 14px; border-radius: var(--r-sm); font-size: 14px; }
.level-list button { background: none; border: 1px solid var(--border-strong); border-radius: 6px; padding: 4px 10px; font-size: 12px; }
.level-list button:hover { border-color: var(--accent); color: var(--accent); }

/* ---------- Cartes (maps) ---------- */
.map-card { position: relative; display: block; border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 16 / 10; border: 1px solid var(--border); isolation: isolate; }
.map-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform .5s; }
.map-card::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, rgba(8,9,12,.92) 0%, rgba(8,9,12,.2) 55%, transparent); }
.map-card .m-meta { position: absolute; left: 20px; right: 20px; bottom: 16px; }
.map-card h3 { font-size: 30px; text-transform: uppercase; margin: 0; }
.map-card small { color: var(--text-2); font-size: 13px; }
.map-card .badge { position: absolute; top: 14px; left: 14px; }
.map-card:hover img { transform: scale(1.06); }
.badge { display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; padding: 4px 10px; border-radius: 20px; background: rgba(0,0,0,.6); border: 1px solid var(--border-strong); color: var(--text-2); }
.badge.live { background: var(--accent); border-color: var(--accent); color: #fff; }
.badge.green { background: rgba(61,220,151,.15); border-color: rgba(61,220,151,.4); color: var(--ok); }

.map-hero { position: relative; min-height: 460px; display: flex; align-items: flex-end; isolation: isolate; border-bottom: 1px solid var(--border); }
.map-hero > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.map-hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, var(--bg) 0%, rgba(11,13,17,.5) 50%, rgba(11,13,17,.3)); }
.map-hero h1 { font-size: clamp(60px, 10vw, 120px); text-transform: uppercase; margin: 0; line-height: .9; }
.map-hero .container { padding-bottom: 40px; }
.minimap-wrap { position: relative; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 16px; }
.minimap { position: relative; aspect-ratio: 1; }
.minimap img { width: 100%; height: 100%; object-fit: contain; }
.minimap .callout { position: absolute; transform: translate(-50%, -50%); font-size: 10px; font-weight: 600; white-space: nowrap; background: rgba(0,0,0,.72); padding: 1px 5px; border-radius: 3px; color: #fff; pointer-events: none; opacity: 0; transition: opacity .2s; }
.minimap.show-callouts .callout { opacity: 1; }
.toggle { display: inline-flex; align-items: center; gap: 10px; font-size: 14px; color: var(--text-2); cursor: pointer; margin-bottom: 12px; }
.toggle input { accent-color: var(--accent); width: 16px; height: 16px; }
.callout-groups { columns: 2; column-gap: 20px; }
.callout-groups div { break-inside: avoid; margin-bottom: 16px; }
.callout-groups h4 { font-family: var(--f-body); font-size: 12px; text-transform: uppercase; letter-spacing: .1em; color: var(--accent); margin-bottom: 6px; }
.callout-groups span { display: inline-block; font-size: 13px; background: var(--surface-2); border: 1px solid var(--border); padding: 3px 9px; border-radius: 4px; margin: 0 4px 4px 0; color: var(--text-2); }

/* ---------- Rangs / saisons ---------- */
.rank-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; }
.rank { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r); padding: 16px; text-align: center; transition: .2s; }
.rank:hover { border-color: var(--rc, var(--accent)); transform: translateY(-2px); }
.rank img { width: 72px; height: 72px; margin: 0 auto 10px; object-fit: contain; }
.rank b { display: block; font-size: 14px; }
.rank small { color: var(--muted); font-size: 12px; }
.rank-family { margin-bottom: 36px; }
.rank-family h3 { display: flex; align-items: center; gap: 12px; font-size: 24px; text-transform: uppercase; }
.rank-family h3 i { width: 12px; height: 12px; border-radius: 3px; background: var(--rc); }
.rank-family p { color: var(--text-2); max-width: 760px; font-size: 14px; }

.timeline { position: relative; padding-left: 28px; }
.timeline::before { content: ""; position: absolute; left: 7px; top: 6px; bottom: 6px; width: 2px; background: var(--border); }
.tl-item { position: relative; margin-bottom: 18px; }
.tl-item::before { content: ""; position: absolute; left: -26px; top: 22px; width: 12px; height: 12px; border-radius: 50%; background: var(--surface-3); border: 2px solid var(--border-strong); }
.tl-item.current::before { background: var(--accent); border-color: var(--accent); box-shadow: 0 0 0 5px var(--accent-soft); }
.tl-item .card { padding: 18px 20px; }
.tl-item h3 { font-size: 22px; text-transform: uppercase; margin-bottom: 4px; }
.acts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.act { font-size: 13px; background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--r-sm); padding: 6px 12px; color: var(--text-2); }
.act b { color: var(--text); margin-right: 6px; }
.act.current { border-color: var(--accent); color: var(--text); }

/* ---------- Esport / pros / actus ---------- */
.team-card { display: flex; align-items: center; gap: 14px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r); padding: 14px 16px; }
.team-card .t-logo { width: 44px; height: 44px; border-radius: 10px; display: grid; place-items: center; font-family: var(--f-title); font-weight: 700; font-size: 16px; background: var(--surface-3); color: var(--text); flex-shrink: 0; }
.team-card.fr { border-color: rgba(78,163,255,.45); }
.team-card b { display: block; }
.team-card small { color: var(--muted); font-size: 12px; }
.event-card { display: grid; grid-template-columns: auto 1fr auto; gap: 18px; align-items: center; }
.event-card .date { text-align: center; min-width: 70px; font-family: var(--f-title); }
.event-card .date b { display: block; font-size: 28px; line-height: 1; }
.event-card .date span { font-size: 12px; text-transform: uppercase; color: var(--muted); }
@media (max-width: 620px) { .event-card { grid-template-columns: 1fr; } }

.pro-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); overflow: hidden; transition: .2s; }
.pro-card:hover { border-color: rgba(255,49,49,.5); transform: translateY(-3px); }
.pro-card .p-top { height: 150px; position: relative; display: grid; place-items: center; background: linear-gradient(160deg, var(--surface-3), var(--bg-2)); overflow: hidden; }
.pro-card .p-top .initials { font-family: var(--f-title); font-size: 64px; font-weight: 700; color: rgba(255,255,255,.08); letter-spacing: .05em; }
.pro-card .p-top img.agent { position: absolute; bottom: -10px; right: -10px; height: 120%; opacity: .9; }
.pro-card .p-top img.photo { width: 100%; height: 100%; object-fit: cover; }
.pro-card .p-body { padding: 16px 18px; }
.pro-card h3 { font-size: 26px; margin: 0; }
.pro-card .team { color: var(--accent); font-weight: 600; font-size: 14px; }
.pro-card .meta { display: flex; justify-content: space-between; align-items: center; margin-top: 10px; font-size: 13px; color: var(--muted); }
.flag { display: inline-flex; align-items: center; gap: 6px; }
.flag img { width: 18px; height: 13px; border-radius: 2px; object-fit: cover; }

.news-card { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); overflow: hidden; transition: .2s; }
.news-card:hover { border-color: rgba(255,49,49,.5); transform: translateY(-3px); }
.news-card .n-img { aspect-ratio: 16/9; overflow: hidden; background: var(--surface-2); }
.news-card .n-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.news-card:hover .n-img img { transform: scale(1.05); }
.news-card .n-body { padding: 18px 20px 22px; display: flex; flex-direction: column; flex: 1; }
.news-card.featured { grid-column: span 2; flex-direction: row; }
.news-card.featured .n-img { aspect-ratio: auto; flex: 1.3; min-height: 280px; }
.news-card.featured .n-body { flex: 1; justify-content: center; padding: 28px; }
.news-card.featured h3 { font-size: 32px; }
@media (max-width: 980px) { .news-card.featured { grid-column: 1 / -1; } }
@media (max-width: 700px) { .news-card.featured { flex-direction: column; } .news-card.featured .n-img { min-height: 0; aspect-ratio: 16/9; } }
.news-card .n-meta { display: flex; gap: 10px; align-items: center; font-size: 12px; color: var(--muted); margin-bottom: 10px; }
.news-card h3 { font-size: 22px; margin-bottom: 8px; }
.news-card p { color: var(--text-2); font-size: 14px; margin: 0; }
.cat { font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); }

.article { max-width: 780px; margin: 0 auto; }
.article .cover { border-radius: var(--r-lg); margin-bottom: 30px; border: 1px solid var(--border); width: 100%; aspect-ratio: 16/8; object-fit: cover; }
.article .body p, .article .body li { color: var(--text-2); font-size: 17px; line-height: 1.8; }
.article .body h2 { font-size: 30px; margin-top: 36px; text-transform: uppercase; }
.article .body a { color: var(--accent); text-decoration: underline; }

/* ---------- Streamers / serveur ---------- */
.steps { counter-reset: step; display: grid; gap: 16px; }
.step { position: relative; display: grid; grid-template-columns: 56px 1fr; gap: 18px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 22px; }
.step::before { counter-increment: step; content: counter(step, decimal-leading-zero); font-family: var(--f-title); font-weight: 700; font-size: 30px; color: var(--accent); line-height: 1; }
.step h3 { font-size: 22px; margin-bottom: 6px; }
.step p { color: var(--text-2); margin: 0; font-size: 14px; }
.title-demo { font-family: ui-monospace, Consolas, monospace; font-size: 14px; background: #0e0e10; border: 1px solid #2f2f35; border-radius: var(--r); padding: 16px 18px; color: #efeff1; }
.title-demo .live-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #eb0400; margin-right: 8px; }
.title-demo mark { background: rgba(145,70,255,.25); color: #bf94ff; padding: 1px 4px; border-radius: 3px; }
.discord-demo { background: #313338; border-radius: var(--r); padding: 16px; font-size: 14px; color: #dbdee1; }
.discord-demo .d-chan { color: #949ba4; font-weight: 600; margin-bottom: 12px; }
.discord-demo .d-msg { display: flex; gap: 12px; }
.discord-demo .d-avatar { width: 40px; height: 40px; border-radius: 50%; background: #1e1f22; display: grid; place-items: center; flex-shrink: 0; }
.discord-demo .d-avatar img { width: 26px; }
.discord-demo .d-name { font-weight: 600; color: #f2f3f5; }
.discord-demo .d-name .bot { background: #5865f2; color: #fff; font-size: 10px; padding: 1px 5px; border-radius: 3px; margin-left: 4px; vertical-align: 1px; }
.discord-demo .d-embed { margin-top: 6px; border-left: 4px solid #9146ff; background: #2b2d31; border-radius: 4px; padding: 10px 14px; }
.discord-demo .d-embed b { color: #00a8fc; }

.faq details { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r); margin-bottom: 10px; }
.faq summary { padding: 16px 20px; font-weight: 600; cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--accent); font-size: 20px; line-height: 1; }
.faq details[open] summary::after { content: "-"; }
.faq details p { padding: 0 20px 16px; margin: 0; color: var(--text-2); font-size: 14px; }

.channel-list { list-style: none; margin: 0; padding: 0; }
.channel-list li { display: flex; gap: 10px; align-items: baseline; padding: 8px 0; border-bottom: 1px dashed var(--border); font-size: 14px; color: var(--text-2); }
.channel-list li:last-child { border: 0; }
.channel-list code { color: var(--text); font-family: var(--f-body); font-weight: 600; white-space: nowrap; }
.channel-list code::before { content: "# "; color: var(--muted); }
.role-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.role-tags span { font-size: 12px; font-weight: 600; padding: 4px 10px; border-radius: 20px; background: var(--surface-2); border: 1px solid var(--border); color: var(--text-2); }

.streamer-card { display: flex; gap: 14px; align-items: center; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r); padding: 14px; }
.streamer-card img { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; background: var(--surface-3); }
.streamer-card b { display: block; }
.streamer-card small { color: var(--muted); }
.streamer-card .btn { margin-left: auto; }

.empty { text-align: center; padding: 40px 20px; border: 1px dashed var(--border-strong); border-radius: var(--r-lg); color: var(--muted); }

/* ---------- CTA Discord ---------- */
.cta { position: relative; overflow: hidden; border-radius: 22px; padding: 56px; border: 1px solid rgba(255,49,49,.35); background: radial-gradient(circle at 85% 20%, rgba(255,49,49,.25), transparent 50%), linear-gradient(135deg, #1a0b0e, #121419); display: grid; grid-template-columns: 1fr auto; gap: 30px; align-items: center; }
.cta::after { content: ""; position: absolute; right: -40px; bottom: -60px; width: 280px; height: 280px; background: url("../assets/img/logo.png") center/contain no-repeat; opacity: .07; transform: rotate(-12deg); }
.cta h2 { font-size: clamp(30px, 4vw, 44px); text-transform: uppercase; margin-bottom: 10px; }
.cta p { color: var(--text-2); margin: 0; max-width: 560px; }
.cta .online { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--text-2); margin-top: 14px; }
.cta .online::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 4px rgba(61,220,151,.15); }
@media (max-width: 760px) { .cta { grid-template-columns: 1fr; padding: 32px 24px; } }

/* ---------- Accueil : features ---------- */
.feature { position: relative; }
.feature .tag { position: absolute; top: 20px; right: 20px; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; gap: 30px; } }
.check-list { list-style: none; padding: 0; margin: 20px 0; display: grid; gap: 10px; }
.check-list li { display: flex; gap: 12px; color: var(--text-2); }
.check-list li::before { content: ""; flex-shrink: 0; width: 20px; height: 20px; margin-top: 2px; border-radius: 50%; background: var(--accent-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ff3131' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center/12px no-repeat; }

.mini-agents { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
@media (max-width: 900px) { .mini-agents { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 520px) { .mini-agents { grid-template-columns: repeat(2, 1fr); } }

/* ---------- Footer ---------- */
.site-footer { margin-top: 80px; background: var(--bg-2); border-top: 1px solid var(--border); padding: 56px 0 28px; font-size: 14px; }
.footer-grid { display: grid; grid-template-columns: 1.5fr repeat(4, 1fr); gap: 30px; }
.footer-grid h4 { font-family: var(--f-body); font-size: 13px; text-transform: uppercase; letter-spacing: .1em; color: var(--text); margin-bottom: 14px; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.footer-grid a { color: var(--muted); }
.footer-grid a:hover { color: var(--text); }
.footer-grid p { color: var(--muted); max-width: 320px; }
.socials { display: flex; gap: 10px; }
.socials a { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 8px; background: var(--surface); border: 1px solid var(--border); color: var(--text-2); }
.socials a:hover { color: #fff; border-color: var(--accent); }
.socials svg { width: 18px; height: 18px; }
.footer-bottom { margin-top: 40px; padding-top: 22px; border-top: 1px solid var(--border); color: var(--muted); font-size: 12px; display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-grid > div:first-child { grid-column: 1 / -1; } }

/* ---------- Divers ---------- */
.loader { display: flex; justify-content: center; padding: 60px 0; }
.loader::after { content: ""; width: 36px; height: 36px; border: 3px solid var(--border-strong); border-top-color: var(--accent); border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.error-box { padding: 24px; border: 1px solid rgba(255,49,49,.4); background: var(--accent-soft); border-radius: var(--r); color: var(--text-2); }
.muted { color: var(--muted); }
.mt-0 { margin-top: 0; } .mt-2 { margin-top: 16px; } .mt-4 { margin-top: 32px; } .mb-0 { margin-bottom: 0; } .mb-4 { margin-bottom: 32px; }
.note { font-size: 13px; color: var(--muted); border-left: 2px solid var(--border-strong); padding-left: 12px; }

.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } .reveal { opacity: 1; transform: none; } }

.back-top { position: fixed; right: 20px; bottom: 20px; width: 44px; height: 44px; border-radius: 50%; background: var(--surface-2); border: 1px solid var(--border-strong); display: grid; place-items: center; opacity: 0; pointer-events: none; transition: .2s; z-index: 90; }
.back-top.show { opacity: 1; pointer-events: auto; }
.back-top:hover { border-color: var(--accent); }
.back-top svg { width: 18px; height: 18px; }
