/* ============================================================================
   BLACK HOLE - Feuille de style (site public + admin)
   Direction artistique : le logo - vide noir, anneau lumineux blanc, lettres larges et fines.
   Accents tirés de la physique : redshift (live / 1re place) et blueshift (info).
   ========================================================================== */
:root {
  --void: #000;
  --s1: #07080b;
  --s2: #0d0f14;
  --s3: #151821;
  --s4: #1d212c;
  --line: rgba(255, 255, 255, .1);
  --line-2: rgba(255, 255, 255, .18);
  --text: #eef0f6;
  --mute: #8a90a2;
  --dim: #5b6172;
  --red: #ff7a45;
  --red-bg: rgba(255, 122, 69, .12);
  --blue: #8ab8ff;
  --blue-bg: rgba(138, 184, 255, .12);
  --green: #6fe3b0;
  --danger: #ff5d6c;
  --glow: 0 0 60px rgba(255, 255, 255, .12);
  --f-display: 'Syncopate', 'Arial Narrow', sans-serif;
  --f-body: 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --r: 10px;
  --r-sm: 6px;
  --wrap: 1240px;
  --nav-h: 68px;
  --primary: #fff;
  --on-primary: #000;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--void); color: var(--text); font: 400 15px/1.6 var(--f-body); min-height: 100vh; display: flex; flex-direction: column; overflow-x: hidden; }
img, svg, canvas, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 { margin: 0; line-height: 1.15; font-weight: 700; }
p { margin: 0 0 1em; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; border-radius: 4px; }
::selection { background: #fff; color: #000; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { width: min(var(--wrap), 100% - 40px); margin-inline: auto; }
.muted { color: var(--mute); }
.dim { color: var(--dim); }
.center { text-align: center; }
.right { text-align: right; }
.row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.row.between { justify-content: space-between; }
.stack > * + * { margin-top: 12px; }
.grow { flex: 1; }
.hide { display: none !important; }
.num { font-variant-numeric: tabular-nums; }

/* ------------------------------------------------------------------ titres */
.display { font-family: var(--f-display); font-weight: 700; letter-spacing: .06em; }
.h-page { font-family: var(--f-display); font-size: clamp(22px, 3.4vw, 40px); letter-spacing: .08em; font-weight: 700; }
.h-sec { font-family: var(--f-display); font-size: clamp(15px, 1.7vw, 19px); letter-spacing: .12em; font-weight: 700; }
.lead { font-size: 17px; color: var(--mute); max-width: 62ch; }
.page-head { padding: 56px 0 28px; }
.page-head .lead { margin-top: 12px; }
.section { padding: 56px 0; }
.section-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; margin-bottom: 22px; flex-wrap: wrap; }
.link-more { color: var(--mute); font-size: 14px; border-bottom: 1px solid var(--line-2); padding-bottom: 1px; }
.link-more:hover { color: #fff; border-color: #fff; }

/* ------------------------------------------------------------------ boutons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 11px 20px; border-radius: var(--r-sm); border: 1px solid var(--line-2); background: transparent; cursor: pointer; font-weight: 600; font-size: 14px; transition: background .15s, border-color .15s, color .15s; white-space: nowrap; }
.btn:hover { border-color: #fff; background: rgba(255, 255, 255, .06); }
.btn.primary { background: var(--primary); color: var(--on-primary); border-color: var(--primary); }
.btn.primary:hover { filter: brightness(.88); }
.btn.danger { border-color: rgba(255, 93, 108, .5); color: var(--danger); }
.btn.danger:hover { background: rgba(255, 93, 108, .1); border-color: var(--danger); }
.btn.sm { padding: 6px 12px; font-size: 13px; }
.btn.lg { padding: 15px 28px; font-size: 15px; }
.btn[disabled] { opacity: .45; pointer-events: none; }
.btn.ghost { border-color: transparent; color: var(--mute); }
.btn.ghost:hover { color: #fff; background: rgba(255, 255, 255, .06); }

/* ------------------------------------------------------------------ badges */
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 2px 9px; border-radius: 99px; font-size: 12px; font-weight: 600; border: 1px solid var(--line-2); color: var(--mute); background: var(--s2); }
.badge.live { color: var(--red); border-color: rgba(255, 122, 69, .45); background: var(--red-bg); }
.badge.live::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--red); animation: pulse 1.6s infinite; }
.badge.blue { color: var(--blue); border-color: rgba(138, 184, 255, .4); background: var(--blue-bg); }
.badge.green { color: var(--green); border-color: rgba(111, 227, 176, .4); background: rgba(111, 227, 176, .1); }
.badge.red { color: var(--danger); border-color: rgba(255, 93, 108, .4); background: rgba(255, 93, 108, .1); }
@keyframes pulse { 50% { opacity: .3; } }

/* ------------------------------------------------------------------ barre du haut + nav */
.topbar { background: var(--s1); border-bottom: 1px solid var(--line); font-size: 13px; color: var(--mute); }
.topbar .wrap { display: flex; justify-content: space-between; gap: 16px; padding: 7px 0; flex-wrap: wrap; }
.topbar b { color: #fff; font-weight: 600; }
.topbar .dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--green); margin-right: 6px; }
.nav { position: sticky; top: 0; z-index: 50; background: rgba(0, 0, 0, .82); backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.nav .wrap { display: flex; align-items: center; gap: 28px; height: var(--nav-h); }
.brand { display: flex; align-items: center; gap: 12px; flex: none; }
.brand .mark { width: 38px; height: 38px; }
.brand .word { font-family: var(--f-display); font-weight: 700; font-size: 14px; letter-spacing: .22em; line-height: 1; }
.brand .word small { display: block; font-family: var(--f-body); font-weight: 500; font-size: 10px; letter-spacing: .3em; color: var(--mute); margin-top: 5px; }
.menu { display: flex; gap: 2px; margin: 0; padding: 0; list-style: none; }
.menu > li { position: relative; }
.menu > li > a, .menu > li > button { display: block; padding: 24px 14px; font-size: 14px; font-weight: 600; color: var(--mute); background: none; border: 0; cursor: pointer; }
.menu > li:hover > a, .menu > li:focus-within > a, .menu > li > a.on, .menu > li:hover > button { color: #fff; }
.menu > li > a.on::after { content: ''; position: absolute; left: 14px; right: 14px; bottom: 0; height: 2px; background: #fff; }
.drop { position: absolute; top: 100%; left: 0; min-width: 220px; background: var(--s2); border: 1px solid var(--line-2); border-radius: var(--r); padding: 8px; display: none; box-shadow: 0 24px 60px rgba(0, 0, 0, .7); }
.menu > li:hover .drop, .menu > li:focus-within .drop { display: block; }
.drop a { display: block; padding: 9px 12px; border-radius: var(--r-sm); font-size: 14px; color: var(--mute); }
.drop a:hover { background: var(--s4); color: #fff; }
.nav-end { margin-left: auto; display: flex; gap: 10px; align-items: center; }
.burger { display: none; width: 44px; height: 44px; border: 1px solid var(--line-2); border-radius: var(--r-sm); background: none; cursor: pointer; }
.burger span { display: block; width: 18px; height: 2px; background: #fff; margin: 4px auto; transition: transform .2s; }
.search-box { position: relative; }
.nav .search-box input { width: 200px; padding: 8px 12px 8px 34px; background: var(--s2); border: 1px solid var(--line); border-radius: 99px; font-size: 13px; }
.nav .search-box input:focus { border-color: var(--line-2); outline: 0; }
.search-box svg { position: absolute; left: 11px; top: 50%; transform: translateY(-50%); width: 15px; height: 15px; color: var(--mute); }
.search-res { position: absolute; top: calc(100% + 8px); right: 0; width: 340px; background: var(--s2); border: 1px solid var(--line-2); border-radius: var(--r); padding: 6px; box-shadow: 0 24px 60px rgba(0, 0, 0, .7); z-index: 60; max-height: 60vh; overflow: auto; }
.search-res a { display: block; padding: 9px 12px; border-radius: var(--r-sm); }
.search-res a:hover { background: var(--s4); }
.search-res small { display: block; color: var(--mute); font-size: 12px; }

/* ------------------------------------------------------------------ hero (anneau d'accrétion) */
.hero { position: relative; min-height: min(86vh, 760px); display: flex; align-items: center; overflow: hidden; border-bottom: 1px solid var(--line); }
.hero canvas { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.hero .wrap { position: relative; z-index: 2; padding: 80px 0; }
.hero-copy { max-width: 600px; }
.hero h1 { font-family: var(--f-display); font-size: clamp(34px, 6.4vw, 84px); letter-spacing: .1em; font-weight: 700; text-shadow: 0 0 60px rgba(255, 255, 255, .25); }
.hero .eyebrow { display: inline-flex; gap: 8px; align-items: center; color: var(--mute); font-size: 14px; margin-bottom: 18px; }
.hero p.sub { font-size: clamp(16px, 1.6vw, 19px); color: #c7cbd8; margin: 20px 0 30px; max-width: 46ch; }
.hero .actions { display: flex; gap: 12px; flex-wrap: wrap; }
.stat-strip { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line); border-radius: var(--r); background: var(--s1); margin-top: -1px; }
.stat-strip > div { padding: 18px 22px; border-right: 1px solid var(--line); }
.stat-strip > div:last-child { border-right: 0; }
.stat-strip .v { font-family: var(--f-display); font-size: 22px; font-weight: 700; letter-spacing: .04em; }
.stat-strip .l { color: var(--mute); font-size: 13px; }

/* ------------------------------------------------------------------ cartes / grilles */
.grid { display: grid; gap: 18px; }
.g2 { grid-template-columns: repeat(2, 1fr); } .g3 { grid-template-columns: repeat(3, 1fr); } .g4 { grid-template-columns: repeat(4, 1fr); }
.card { background: var(--s1); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.card.pad { padding: 22px; }
.card.hover { transition: border-color .15s, background .15s; }
.card.hover:hover { border-color: var(--line-2); background: var(--s2); }
.card .cover { aspect-ratio: 16/9; background: radial-gradient(circle at 70% 40%, #20242f, #07080b 70%); border-bottom: 1px solid var(--line); object-fit: cover; width: 100%; }
.card .body { padding: 18px 20px 20px; }
.card h3 { font-size: 18px; margin: 8px 0; }
.card .meta { font-size: 13px; color: var(--mute); }
.feat { padding: 26px; border-top: 1px solid var(--line-2); }
.feat h3 { font-size: 17px; margin-bottom: 8px; }
.feat p { color: var(--mute); margin: 0; }
.news-layout { display: grid; grid-template-columns: 1.4fr 1fr; gap: 18px; }
.news-big { display: flex; flex-direction: column; }
.news-big .cover { aspect-ratio: 16/8; }
.list-links > a { display: flex; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--line); align-items: baseline; }
.list-links > a:hover h4 { text-decoration: underline; text-underline-offset: 3px; }
.list-links time { color: var(--dim); font-size: 13px; width: 72px; flex: none; }
.list-links h4 { font-size: 15px; font-weight: 600; }

/* ------------------------------------------------------------------ onglets / filtres */
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 24px; overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tabs a, .tabs button { padding: 12px 16px; font-weight: 600; font-size: 14px; color: var(--mute); background: none; border: 0; border-bottom: 2px solid transparent; cursor: pointer; white-space: nowrap; margin-bottom: -1px; }
.tabs a:hover, .tabs button:hover { color: #fff; }
.tabs .on { color: #fff; border-bottom-color: #fff; }
.filters { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 18px; align-items: center; }
.chip { padding: 6px 14px; border-radius: 99px; border: 1px solid var(--line-2); background: none; color: var(--mute); cursor: pointer; font-size: 13px; font-weight: 600; }
.chip:hover { color: #fff; border-color: #fff; }
.chip.on { background: var(--primary); color: var(--on-primary); border-color: var(--primary); }

/* ------------------------------------------------------------------ formulaires */
.field { display: block; margin-bottom: 16px; }
.field > span { display: block; font-size: 13px; font-weight: 600; margin-bottom: 6px; color: #c7cbd8; }
.field small { display: block; color: var(--dim); margin-top: 5px; font-size: 12px; }
input:not([type]), input[type=text], input[type=email], input[type=password], input[type=url], input[type=number], input[type=datetime-local], input[type=search], input[type=date], input[type=time], select, textarea {
  width: 100%; padding: 10px 12px; background: var(--s2); border: 1px solid var(--line-2); border-radius: var(--r-sm); transition: border-color .15s; }
input:focus, select:focus, textarea:focus { outline: 0; border-color: #fff; }
textarea { min-height: 110px; resize: vertical; line-height: 1.5; }
select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%238a90a2' stroke-width='1.6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; padding-right: 34px; }
select option { background: var(--s2); }
input[type=checkbox], input[type=radio] { width: 17px; height: 17px; accent-color: #fff; }
.check { display: flex; align-items: center; gap: 10px; cursor: pointer; }
.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 18px; }
.form-grid .full { grid-column: 1 / -1; }
.form-msg { padding: 10px 14px; border-radius: var(--r-sm); font-size: 14px; margin: 12px 0; border: 1px solid var(--line-2); }
.form-msg.err { border-color: rgba(255, 93, 108, .5); color: var(--danger); background: rgba(255, 93, 108, .08); }
.form-msg.ok { border-color: rgba(111, 227, 176, .5); color: var(--green); background: rgba(111, 227, 176, .08); }
.auth-box { max-width: 440px; margin: 40px auto; }

/* ------------------------------------------------------------------ tableaux (classements) */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r); background: var(--s1); }
table.t { width: 100%; border-collapse: collapse; font-size: 14px; }
.t th { text-align: left; font-weight: 600; color: var(--mute); font-size: 13px; padding: 12px 14px; border-bottom: 1px solid var(--line-2); white-space: nowrap; position: sticky; top: 0; background: var(--s1); }
.t td { padding: 12px 14px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.t tr:last-child td { border-bottom: 0; }
.t tbody tr:hover { background: var(--s2); }
.t .r { text-align: right; }
.t .rank { width: 56px; font-family: var(--f-display); font-weight: 700; font-size: 13px; color: var(--mute); }
.t tr.top1 .rank { color: var(--red); }
.t tr.top2 .rank, .t tr.top3 .rank { color: #fff; }
.t .who { display: flex; align-items: center; gap: 12px; font-weight: 600; }
.t th.sortable { cursor: pointer; }
.t th.sortable:hover, .t th.sorted { color: #fff; }
.tag { display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: .08em; padding: 1px 6px; border: 1px solid var(--line-2); border-radius: 4px; color: var(--mute); }
.logo-s { width: 32px; height: 32px; border-radius: 8px; background: var(--s3); border: 1px solid var(--line-2); display: grid; place-items: center; font-family: var(--f-display); font-size: 10px; font-weight: 700; overflow: hidden; flex: none; }
.logo-s img { width: 100%; height: 100%; object-fit: cover; }
.logo-l { width: 96px; height: 96px; border-radius: 20px; font-size: 22px; }
.avatar { width: 32px; height: 32px; border-radius: 50%; background: var(--s4); display: grid; place-items: center; font-weight: 700; font-size: 13px; overflow: hidden; flex: none; border: 1px solid var(--line-2); }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.bar { height: 6px; background: var(--s4); border-radius: 99px; overflow: hidden; min-width: 70px; }
.bar > i { display: block; height: 100%; background: #fff; border-radius: 99px; }
.empty { padding: 48px 20px; text-align: center; color: var(--mute); border: 1px dashed var(--line-2); border-radius: var(--r); }
.empty b { display: block; color: #fff; margin-bottom: 6px; font-size: 16px; }

/* ------------------------------------------------------------------ brackets */
.bracket-scroll { overflow-x: auto; padding: 8px 4px 24px; border: 1px solid var(--line); border-radius: var(--r); background: var(--s1); scroll-snap-type: x proximity; -webkit-overflow-scrolling: touch; }
.bracket { position: relative; display: inline-flex; gap: 56px; padding: 20px 28px; min-width: 100%; }
.bracket svg.links { position: absolute; inset: 0; pointer-events: none; overflow: visible; }
.bracket svg.links path { fill: none; stroke: var(--line-2); stroke-width: 1.5; }
.bracket svg.links path.won { stroke: #fff; }
.b-round { display: flex; flex-direction: column; min-width: 232px; scroll-snap-align: start; }
.b-round > h4 { font-size: 13px; color: var(--mute); font-weight: 600; margin-bottom: 12px; }
.b-col { flex: 1; display: flex; flex-direction: column; justify-content: space-around; gap: 14px; }
.b-title { font-family: var(--f-display); font-size: 12px; letter-spacing: .14em; margin: 4px 0 10px 28px; color: var(--mute); }
.m-card { background: var(--s2); border: 1px solid var(--line-2); border-radius: 8px; overflow: hidden; font-size: 14px; position: relative; z-index: 1; cursor: default; }
.m-card.clickable { cursor: pointer; }
.m-card.clickable:hover { border-color: #fff; }
.m-card.ready { border-color: rgba(255, 122, 69, .6); }
.m-card.ready::after { content: ''; position: absolute; top: 8px; right: 8px; width: 6px; height: 6px; border-radius: 50%; background: var(--red); animation: pulse 1.6s infinite; }
.m-card.bye { opacity: .45; }
.m-team { display: flex; align-items: center; gap: 8px; padding: 8px 10px; min-height: 36px; }
.m-team + .m-team { border-top: 1px solid var(--line); }
.m-team .nm { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.m-team .sc { font-family: var(--f-display); font-size: 12px; font-weight: 700; min-width: 20px; text-align: right; }
.m-team.win { background: rgba(255, 255, 255, .07); }
.m-team.win .nm { color: #fff; }
.m-team.lose { color: var(--dim); }
.m-team.lose .nm { font-weight: 500; }
.m-team .tbd { color: var(--dim); font-style: italic; font-weight: 400; }
.round-tabs { display: none; }

/* ------------------------------------------------------------------ wiki */
.wiki { display: grid; grid-template-columns: 260px minmax(0, 1fr) 220px; gap: 36px; padding: 40px 0 80px; align-items: start; }
.wiki aside { position: sticky; top: calc(var(--nav-h) + 20px); max-height: calc(100vh - var(--nav-h) - 40px); overflow: auto; }
.wiki-nav h4 { font-size: 13px; color: var(--mute); margin: 22px 0 8px; }
.wiki-nav h4:first-child { margin-top: 0; }
.wiki-nav a { display: block; padding: 7px 12px; border-left: 1px solid var(--line); color: var(--mute); font-size: 14px; }
.wiki-nav a:hover { color: #fff; border-color: #fff; }
.wiki-nav a.on { color: #fff; border-color: #fff; font-weight: 600; }
.toc a { display: block; padding: 4px 0 4px 12px; border-left: 1px solid var(--line); color: var(--mute); font-size: 13px; }
.toc a:hover { color: #fff; }
.toc h4 { font-size: 13px; color: var(--mute); margin-bottom: 10px; }
.fiche { border: 1px solid var(--line-2); border-radius: var(--r); margin-bottom: 22px; overflow: hidden; }
.fiche dl { margin: 0; display: grid; grid-template-columns: auto 1fr; }
.fiche dt, .fiche dd { padding: 9px 14px; border-top: 1px solid var(--line); margin: 0; font-size: 14px; }
.fiche dt { color: var(--mute); border-right: 1px solid var(--line); }
.fiche img { width: 100%; }

/* ------------------------------------------------------------------ contenu markdown */
.md { line-height: 1.75; max-width: 74ch; }
.md h1, .md h2, .md h3 { margin: 1.6em 0 .6em; }
.md h2 { font-size: 24px; } .md h3 { font-size: 19px; } .md h1 { font-size: 40px; line-height: 1.15; }
.md > :first-child { margin-top: 0; }
.md ul, .md ol { padding-left: 1.3em; margin: 0 0 1em; }
.md li { margin: .3em 0; }
.md a { color: var(--blue); border-bottom: 1px solid rgba(138, 184, 255, .4); }
.md code { background: var(--s3); padding: 1px 6px; border-radius: 4px; font-size: .9em; }
.md pre { background: var(--s2); padding: 14px; border-radius: var(--r-sm); overflow: auto; border: 1px solid var(--line); }
.md blockquote { margin: 1em 0; padding: 4px 18px; border-left: 2px solid #fff; color: #c7cbd8; }
.md img { border-radius: var(--r-sm); margin: 1em 0; }
.md hr { border: 0; border-top: 1px solid var(--line); margin: 2em 0; }

/* ------------------------------------------------------------------ boutique / divers */
.rarity-legendary { --rc: var(--red); } .rarity-epic { --rc: #c3a6ff; } .rarity-rare { --rc: var(--blue); } .rarity-common { --rc: var(--mute); }
.item { display: flex; flex-direction: column; }
.item .pic { aspect-ratio: 1; display: grid; place-items: center; background: radial-gradient(circle at 50% 35%, color-mix(in srgb, var(--rc, #555) 30%, transparent), #07080b 68%); border-bottom: 1px solid var(--line); position: relative; overflow: hidden; }
.item .pic img { width: 100%; height: 100%; object-fit: cover; }
.item .pic .ph { width: 40%; opacity: .5; }
.item .body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.item .price { display: flex; gap: 14px; font-weight: 700; flex-wrap: wrap; }
.item .old { color: var(--dim); text-decoration: line-through; font-weight: 500; }
.item .rare { font-size: 12px; font-weight: 700; color: var(--rc); }
.ribbon { position: absolute; top: 10px; left: 10px; z-index: 2; }
.dl-card { display: flex; flex-direction: column; gap: 10px; padding: 26px; }
.dl-card .ver { font-family: var(--f-display); font-size: 12px; letter-spacing: .12em; color: var(--mute); }
.profile-head { display: flex; gap: 22px; align-items: center; flex-wrap: wrap; padding: 36px 0 24px; }
.kpi { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); border: 1px solid var(--line); border-radius: var(--r); background: var(--s1); }
.kpi > div { padding: 16px 18px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); margin: 0 -1px -1px 0; }
.kpi .v { font-family: var(--f-display); font-size: 20px; font-weight: 700; }
.kpi .l { color: var(--mute); font-size: 13px; }
.chart { width: 100%; height: auto; }
.chart text { fill: var(--mute); font-size: 11px; font-family: var(--f-body); }
.chart .grid-l { stroke: var(--line); }
.chart .ln { fill: none; stroke: #fff; stroke-width: 2; }
.chart .ln2 { fill: none; stroke: var(--blue); stroke-width: 2; stroke-dasharray: 5 4; }
.chart .area { fill: url(#cg); }
.chart .pt { fill: #000; stroke: #fff; stroke-width: 2; }
.timeline { border-left: 1px solid var(--line-2); margin-left: 6px; }
.timeline > div { padding: 0 0 26px 24px; position: relative; }
.timeline > div::before { content: ''; position: absolute; left: -5px; top: 6px; width: 9px; height: 9px; border-radius: 50%; background: #000; border: 2px solid #fff; }
.season-badge { display: inline-flex; padding: 3px 10px; border-radius: 99px; font-size: 12px; font-weight: 700; background: #fff; color: #000; }
details.faq { border-bottom: 1px solid var(--line); }
details.faq summary { padding: 18px 0; cursor: pointer; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::after { content: '+'; color: var(--mute); font-size: 20px; line-height: 1; }
details.faq[open] summary::after { content: '-'; }
details.faq .md { padding: 0 0 18px; }
.callout { padding: 14px 18px; border: 1px solid var(--line-2); border-radius: var(--r); background: var(--s1); color: var(--mute); font-size: 14px; }
.callout.demo { border-color: rgba(255, 122, 69, .4); background: var(--red-bg); color: #ffd2bf; }

/* ------------------------------------------------------------------ modal + toast */
.modal-bg { position: fixed; inset: 0; background: rgba(0, 0, 0, .75); backdrop-filter: blur(4px); z-index: 100; display: grid; place-items: center; padding: 20px; }
.modal { background: var(--s2); border: 1px solid var(--line-2); border-radius: 14px; width: min(560px, 100%); max-height: 90vh; overflow: auto; padding: 26px; box-shadow: 0 40px 100px rgba(0, 0, 0, .8); }
.modal.wide { width: min(900px, 100%); }
.modal h3 { font-size: 19px; margin-bottom: 16px; }
.modal .actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 20px; flex-wrap: wrap; }
.toasts { position: fixed; bottom: 20px; right: 20px; z-index: 200; display: flex; flex-direction: column; gap: 10px; }
.toast { background: #fff; color: #000; padding: 12px 18px; border-radius: 8px; font-weight: 600; font-size: 14px; box-shadow: 0 10px 40px rgba(0, 0, 0, .6); animation: toast-in .25s ease; max-width: 360px; }
.toast.err { background: var(--danger); color: #fff; }
@keyframes toast-in { from { transform: translateY(12px); opacity: 0; } }

/* ------------------------------------------------------------------ footer */
.footer { margin-top: auto; border-top: 1px solid var(--line); background: var(--s1); padding: 56px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 40px; }
.footer-brand img { width: 150px; mix-blend-mode: screen; margin-bottom: 14px; }
.footer h4 { font-size: 14px; margin-bottom: 14px; color: #fff; }
.footer li { list-style: none; margin: 0 0 9px; }
.footer ul { padding: 0; margin: 0; }
.footer a { color: var(--mute); font-size: 14px; }
.footer a:hover { color: #fff; }
.socials { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 16px; }
.socials a { padding: 6px 12px; border: 1px solid var(--line-2); border-radius: 99px; font-size: 13px; font-weight: 600; }
.footer-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 44px; padding-top: 20px; border-top: 1px solid var(--line); color: var(--dim); font-size: 13px; }
.footer-bottom nav { display: flex; gap: 18px; flex-wrap: wrap; }
.loader { display: grid; place-items: center; padding: 120px 0; }
.loader i { width: 46px; height: 46px; border-radius: 50%; border: 2px solid var(--line-2); border-top-color: #fff; animation: spin 1s linear infinite; box-shadow: 0 0 30px rgba(255, 255, 255, .12) inset; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ------------------------------------------------------------------ responsive */
@media (max-width: 1100px) {
  .wiki { grid-template-columns: 220px minmax(0, 1fr); } .wiki .toc-col { display: none; }
  .g4 { grid-template-columns: repeat(2, 1fr); }
  .search-box input { width: 140px; }
}
@media (max-width: 900px) {
  .burger { display: block; }
  .menu { position: fixed; top: var(--nav-h); left: 0; right: 0; bottom: 0; background: #000; flex-direction: column; padding: 14px 20px 40px; overflow: auto; transform: translateX(100%); transition: transform .25s; z-index: 49; }
  .menu.open { transform: none; }
  .menu > li > a, .menu > li > button { padding: 16px 4px; font-size: 18px; border-bottom: 1px solid var(--line); width: 100%; text-align: left; }
  .menu > li > a.on::after { display: none; }
  .drop { position: static; display: block; border: 0; box-shadow: none; background: none; padding: 0 0 8px 14px; }
  .search-box { display: none; }
  .brand .word small { display: none; }
  .g3, .g2, .news-layout { grid-template-columns: 1fr; }
  .stat-strip { grid-template-columns: repeat(2, 1fr); } .stat-strip > div:nth-child(2) { border-right: 0; } .stat-strip > div:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); } .footer-brand { grid-column: 1 / -1; }
  .wiki { grid-template-columns: 1fr; } .wiki aside { position: static; max-height: none; }
  .form-grid { grid-template-columns: 1fr; }
  .hero { min-height: 640px; }
  .hero::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0, 0, 0, .85) 0%, rgba(0, 0, 0, .35) 100%); z-index: 1; }
  .round-tabs { display: flex; gap: 6px; overflow-x: auto; margin-bottom: 12px; }
  .b-round { min-width: 78vw; }
  .bracket { gap: 40px; }
  .nav-end .btn.hide-m { display: none; }
}
@media (max-width: 560px) {
  .g4 { grid-template-columns: 1fr; }
  .page-head { padding: 36px 0 20px; } .section { padding: 40px 0; }
  .topbar .wrap > span:last-child { display: none; }
  .t th, .t td { padding: 10px 10px; }
  .modal { padding: 20px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

/* ------------------------------------------------------------------ admin */
.adm { display: grid; grid-template-columns: 250px minmax(0, 1fr); min-height: 100vh; }
.adm-side { background: var(--s1); border-right: 1px solid var(--line); padding: 20px 14px; position: sticky; top: 0; height: 100vh; overflow: auto; }
.adm-side .brand { padding: 4px 8px 20px; }
.adm-side h5 { font-size: 12px; color: var(--dim); margin: 18px 10px 6px; font-weight: 600; }
.adm-side a { display: flex; justify-content: space-between; align-items: center; padding: 8px 10px; border-radius: var(--r-sm); font-size: 14px; color: var(--mute); }
.adm-side a:hover { background: var(--s3); color: #fff; }
.adm-side a.on { background: var(--s4); color: #fff; font-weight: 600; }
.adm-side a .n { font-size: 11px; background: var(--red); color: #000; border-radius: 99px; padding: 0 7px; font-weight: 700; }
.adm-main { padding: 28px clamp(16px, 3vw, 40px) 80px; min-width: 0; }
.adm-top { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 26px; flex-wrap: wrap; }
.adm-top h1 { font-size: 22px; font-family: var(--f-display); letter-spacing: .08em; }
.adm-menu-btn { display: none; }
.cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 18px; }
.panel { background: var(--s1); border: 1px solid var(--line); border-radius: var(--r); padding: 20px; }
.panel h3 { font-size: 15px; margin-bottom: 14px; }
.drag-row { display: flex; align-items: center; gap: 10px; padding: 9px 12px; background: var(--s2); border: 1px solid var(--line); border-radius: var(--r-sm); margin-bottom: 6px; cursor: grab; }
.drag-row.over { border-color: #fff; }
.drag-row .grip { color: var(--dim); }
.json-ed { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 13px; min-height: 160px; }
.list-ed .item-ed { display: grid; gap: 10px; padding: 14px; background: var(--s2); border: 1px solid var(--line); border-radius: var(--r); margin-bottom: 10px; }
.perm-grid { display: grid; grid-template-columns: minmax(200px, 1.4fr) repeat(3, 90px); }
.perm-grid > * { padding: 9px 10px; border-bottom: 1px solid var(--line); font-size: 14px; display: flex; align-items: center; }
.perm-grid > .h { color: var(--mute); font-weight: 600; font-size: 13px; justify-content: center; }
.perm-grid > .c { justify-content: center; }
.login-wrap { min-height: 100vh; display: grid; place-items: center; padding: 20px; position: relative; overflow: hidden; }
.login-wrap canvas { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .5; }
.login-card { position: relative; z-index: 1; width: min(420px, 100%); background: rgba(7, 8, 11, .92); border: 1px solid var(--line-2); border-radius: 16px; padding: 34px; backdrop-filter: blur(10px); }
@media (max-width: 900px) {
  .adm { grid-template-columns: 1fr; }
  .adm-side { position: fixed; z-index: 70; width: 270px; transform: translateX(-100%); transition: transform .25s; }
  .adm-side.open { transform: none; }
  .adm-menu-btn { display: inline-flex; }
}

/* ---------- contenu riche (éditeur visuel) ---------- */
.md { overflow-wrap: anywhere; }
.md h4 { font-size: 16px; margin: 1.4em 0 .5em; }
.md p { margin: 0 0 1em; }
.md u { text-underline-offset: 3px; }
.md mark { background: rgba(255, 122, 69, .28); color: inherit; padding: 0 3px; border-radius: 3px; }
.md table { width: 100%; border-collapse: collapse; margin: 1.2em 0; font-size: .95em; display: block; overflow-x: auto; }
.md th, .md td { border: 1px solid var(--line-2); padding: 8px 12px; text-align: left; vertical-align: top; min-width: 80px; }
.md th { background: var(--s3); font-weight: 700; }
.md figure { margin: 1.4em 0; }
.md figure img { margin: 0; width: 100%; }
.md figcaption { color: var(--mute); font-size: 13px; margin-top: 6px; text-align: center; }
.md img[data-align=left], .md img.bh-left { float: left; margin: .3em 1.4em 1em 0; max-width: 50%; }
.md img[data-align=right], .md img.bh-right { float: right; margin: .3em 0 1em 1.4em; max-width: 50%; }
.md img[data-align=center], .md img.bh-center { margin-left: auto; margin-right: auto; }
.md::after { content: ''; display: block; clear: both; }
.md iframe { width: 100%; aspect-ratio: 16 / 9; height: auto; border: 0; border-radius: var(--r-sm); margin: 1em 0; background: #000; }
.md video { width: 100%; border-radius: var(--r-sm); margin: 1em 0; }
.md details { border: 1px solid var(--line); border-radius: var(--r-sm); padding: 10px 16px; margin: 1em 0; background: var(--s2); }
.md summary { cursor: pointer; font-weight: 700; }
.md .bh-callout { border: 1px solid var(--line-2); border-left-width: 3px; border-radius: var(--r-sm); padding: 12px 18px; margin: 1.2em 0; background: var(--s2); }
.md .bh-callout > :last-child { margin-bottom: 0; }
.md .bh-info { border-left-color: var(--blue); background: var(--blue-bg); }
.md .bh-success { border-left-color: var(--green); background: rgba(111, 227, 176, .1); }
.md .bh-warning { border-left-color: var(--red); background: var(--red-bg); }
.md .bh-danger { border-left-color: var(--danger); background: rgba(255, 93, 108, .1); }
.md a.bh-btn { display: inline-block; padding: 10px 22px; border: 1px solid var(--primary); background: var(--primary); color: var(--on-primary); border-radius: 99px; font-weight: 700; margin: .4em .4em .4em 0; }
.md a.bh-btn:hover { background: transparent; color: #fff; }
.md a.bh-btn.bh-ghost { background: transparent; color: #fff; }
.md a.bh-btn.bh-ghost:hover { background: #fff; color: #000; }
.md .bh-cols { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; margin: 1.2em 0; }
.md .bh-cols > div > :last-child { margin-bottom: 0; }
@media (max-width: 700px) { .md .bh-cols { grid-template-columns: 1fr; } .md img[data-align=left], .md img[data-align=right], .md img.bh-left, .md img.bh-right { float: none; max-width: 100%; margin: 1em 0; } }
.md-wide { max-width: none; }

/* ---------- bandeau d'annonce ---------- */
.announce { position: relative; z-index: 60; text-align: center; padding: 9px 44px 9px 16px; font-size: 14px; font-weight: 600; background: var(--primary); color: var(--on-primary); }
.announce.info { background: var(--blue); color: #001a33; } .announce.warning { background: var(--red); color: #1a0800; } .announce.success { background: var(--green); color: #00241a; } .announce.dark { background: var(--s3); color: var(--text); border-bottom: 1px solid var(--line-2); }
.announce a { text-decoration: underline; text-underline-offset: 3px; margin-left: 8px; }
.announce button { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); background: transparent; border: 0; font-size: 20px; cursor: pointer; color: inherit; padding: 4px 8px; line-height: 1; }

.page-cover { max-height: 360px; overflow: hidden; border-bottom: 1px solid var(--line); }
.page-cover img { width: 100%; height: 360px; object-fit: cover; opacity: .85; }

/* ---------- éditeur visuel ---------- */
.modal.xl { width: min(1180px, 100%); max-height: 94vh; }
.modal.xl .mbody { max-height: calc(94vh - 150px); }
.rte { border: 1px solid var(--line-2); border-radius: var(--r-sm); background: var(--s1); }
.rte-bar { display: flex; flex-wrap: wrap; gap: 6px 10px; padding: 8px; border-bottom: 1px solid var(--line); background: var(--s2); position: sticky; top: 0; z-index: 5; border-radius: var(--r-sm) var(--r-sm) 0 0; align-items: center; }
.rte-g { display: flex; gap: 3px; align-items: center; padding-right: 10px; border-right: 1px solid var(--line); }
.rte-g:last-child { border-right: 0; } .rte-r { margin-left: auto; }
.rte-b { min-width: 32px; height: 32px; padding: 0 8px; display: inline-flex; align-items: center; justify-content: center; background: transparent; border: 1px solid transparent; border-radius: 6px; cursor: pointer; font-size: 14px; color: var(--text); }
.rte-b.txt { font-size: 12.5px; font-weight: 600; }
.rte-b:hover { background: var(--s4); } .rte-b.on { background: var(--primary); color: var(--on-primary); }
.rte-col { position: relative; overflow: hidden; font-weight: 800; } .rte-col.hl { color: var(--red); }
.rte-col input { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; height: 100%; padding: 0; border: 0; }
.rte-sel { width: auto; padding: 5px 30px 5px 10px; height: 32px; font-size: 13px; }
.rte-area { min-height: 300px; max-height: 60vh; overflow: auto; padding: 18px 22px; outline: 0; max-width: none; }
.rte.small .rte-area { min-height: 140px; max-height: 40vh; }
.rte-area:focus { box-shadow: inset 0 0 0 1px var(--line-2); }
.rte-area img.sel { outline: 2px solid var(--blue); outline-offset: 2px; }
.rte-area img { cursor: pointer; }
.rte > textarea { width: 100%; min-height: 300px; border: 0; border-radius: 0; background: var(--s1); font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 13px; }
.rte-foot { padding: 6px 12px; font-size: 12px; color: var(--dim); border-top: 1px solid var(--line); }
.rte-imgbar { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; padding: 8px 12px; background: var(--blue-bg); border-bottom: 1px solid var(--line); font-size: 13px; }
.rte-imgbar button { background: var(--s3); border: 1px solid var(--line-2); color: var(--text); border-radius: 6px; padding: 4px 10px; cursor: pointer; font-size: 12.5px; } .rte-imgbar button:hover { border-color: #fff; } .rte-imgbar .d { color: var(--danger); }
.rte-imgbar .sep { width: 1px; height: 18px; background: var(--line-2); }
.rte.rte-full { position: fixed; inset: 0; z-index: 90; background: var(--void); border-radius: 0; display: flex; flex-direction: column; }
.rte.rte-full .rte-area, .rte.rte-full > textarea { flex: 1; max-height: none; }
body.rte-lock { overflow: hidden; }
.pv-switch { display: flex; gap: 8px; margin-bottom: 14px; } .btn.sm.on { background: var(--primary); color: var(--on-primary); }
.pv-frame { background: var(--void); border: 1px solid var(--line); border-radius: var(--r); padding: 20px; max-height: 60vh; overflow: auto; } .pv-frame .md { margin: 0 auto; transition: max-width .2s; }
/* médiathèque */
.media-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 10px; max-height: 46vh; overflow: auto; padding: 2px; }
.media-tile { position: relative; padding: 0; border: 2px solid var(--line); border-radius: var(--r-sm); background: var(--s2); cursor: pointer; overflow: hidden; aspect-ratio: 1; display: block; color: var(--text); }
.media-tile img { width: 100%; height: 100%; object-fit: cover; } .media-tile .ft { display: grid; place-items: center; height: 100%; font-weight: 800; color: var(--mute); }
.media-tile small { position: absolute; left: 0; right: 0; bottom: 0; background: rgba(0, 0, 0, .72); padding: 3px 6px; font-size: 11px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.media-tile:hover, .media-tile.on { border-color: var(--primary); }
.drop-zone { display: grid; gap: 4px; place-items: center; text-align: center; padding: 44px 20px; border: 2px dashed var(--line-2); border-radius: var(--r); cursor: pointer; color: var(--mute); }
.drop-zone.over, .drop-zone:hover { border-color: var(--primary); color: var(--text); } .drop-zone b { color: var(--text); }
.img-prev { max-height: 90px; border-radius: 6px; margin-top: 8px; border: 1px solid var(--line); }
/* constructeur visuel (menu, accueil) */
.sortlist { display: grid; gap: 8px; }
.sortitem { display: grid; grid-template-columns: auto 1fr auto; gap: 10px; align-items: center; padding: 10px 12px; background: var(--s2); border: 1px solid var(--line); border-radius: var(--r-sm); }
.sortitem.off { opacity: .55; } .sortitem.drag { outline: 2px dashed var(--blue); }
.sortitem .grip { cursor: grab; color: var(--dim); font-size: 18px; user-select: none; padding: 0 4px; }
.sortitem .sub { grid-column: 1 / -1; display: grid; gap: 6px; padding: 8px 0 0 28px; border-top: 1px dashed var(--line); margin-top: 4px; }
.sortitem .sub .sortitem { background: var(--s1); }
.swatch-row { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px; }
.swatch { display: flex; gap: 10px; align-items: center; padding: 8px 10px; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--s2); }
.swatch input[type=color] { width: 42px; height: 34px; padding: 0; border: 0; background: none; cursor: pointer; } .swatch span { font-size: 13px; }
.preset { cursor: pointer; padding: 10px 12px; border: 1px solid var(--line-2); border-radius: var(--r-sm); display: flex; align-items: center; gap: 10px; background: var(--s2); color: var(--text); }
.preset:hover { border-color: #fff; } .preset i { width: 16px; height: 16px; border-radius: 50%; display: inline-block; border: 1px solid var(--line-2); }
.preview-pane { border: 1px solid var(--line-2); border-radius: var(--r); overflow: hidden; background: #000; }
.preview-pane iframe { width: 100%; height: 560px; border: 0; display: block; }
.help-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }
.help-card { padding: 18px; border: 1px solid var(--line); border-radius: var(--r); background: var(--s2); }
.help-card h3 { margin: 0 0 8px; font-size: 16px; } .help-card ol { padding-left: 1.2em; margin: 0; color: var(--mute); } .help-card li { margin: 4px 0; }
.quick { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px; margin-bottom: 22px; }
.quick a { display: block; padding: 14px 16px; border: 1px solid var(--line-2); border-radius: var(--r); background: var(--s2); font-weight: 700; } .quick a:hover { border-color: #fff; } .quick small { display: block; font-weight: 400; color: var(--mute); margin-top: 2px; }
.bulkbar { position: sticky; bottom: 12px; display: flex; gap: 10px; align-items: center; padding: 10px 16px; background: var(--s4); border: 1px solid var(--line-2); border-radius: 99px; width: fit-content; margin: 14px auto 0; box-shadow: 0 10px 40px rgba(0, 0, 0, .6); }
.rev-list { display: grid; gap: 8px; max-height: 50vh; overflow: auto; }
.rev-list .row { padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--s2); justify-content: space-between; }

.row-fields { display: flex; flex-wrap: wrap; gap: 8px 10px; align-items: center; min-width: 0; }
.row-fields > input[data-f] { flex: 1 1 150px; min-width: 0; }
.urlf { display: flex; gap: 6px; flex: 2 1 280px; min-width: 0; } .urlf input { flex: 1 1 160px; min-width: 0; } .urlf .pick { flex: 0 1 190px; width: auto; }
.ctrls { display: flex; gap: 4px; } .media-grid.big { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); max-height: none; }
.sortitem.colbox { background: var(--s3); }
@media (max-width: 1500px) and (min-width: 981px) { .nav .wrap { gap: 14px; } .nav .search-box input { width: 120px; } .menu > li > a { padding-left: 10px; padding-right: 10px; } }
.urlf input { flex: 1 1 120px !important; min-width: 90px; width: auto !important; }
.urlf .pick { flex: 0 0 175px !important; width: 175px !important; padding-right: 30px; }
.row-fields .check { white-space: nowrap; flex: 0 0 auto; margin: 0; }
.row-fields .check input { flex: 0 0 auto; width: 17px !important; }
.sortitem .main { min-width: 0; }
input[type=range]{width:100%}

/* codes Discord : petit texte et spoiler */
.md .md-sub, .rte-area .md-sub { font-size: 12.5px; color: var(--muted, #9aa0b4); margin: .3em 0; }
.md-spoiler:not(.on) { color: transparent !important; }
.md-spoiler { background: #2a2e3c; color: transparent; border-radius: 4px; padding: 0 4px; cursor: pointer; transition: background .2s, color .2s; user-select: none; }
.md-spoiler.on { background: rgba(255,255,255,.1); color: inherit; user-select: auto; }
.rte-area .md-spoiler { color: inherit; background: rgba(255,255,255,.1); outline: 1px dashed rgba(255,255,255,.35); user-select: auto; }
.md code { background: rgba(255,255,255,.08); padding: 1px 6px; border-radius: 4px; font-size: .92em; }
