
@font-face{font-family:"Archivo";font-style:normal;font-weight:100 900;font-stretch:100% 125%;font-display:swap;src:url(/assets/fonts/archivo-latin-ext.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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF}
@font-face{font-family:"Archivo";font-style:normal;font-weight:100 900;font-stretch:100% 125%;font-display:swap;src:url(/assets/fonts/archivo-latin.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:"Barlow Condensed";font-style:normal;font-weight:600;font-display:swap;src:url(/assets/fonts/barlow-condensed-600-latin-ext.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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF}
@font-face{font-family:"Barlow Condensed";font-style:normal;font-weight:600;font-display:swap;src:url(/assets/fonts/barlow-condensed-600-latin.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:"Barlow Condensed";font-style:normal;font-weight:700;font-display:swap;src:url(/assets/fonts/barlow-condensed-700-latin-ext.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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF}
@font-face{font-family:"Barlow Condensed";font-style:normal;font-weight:700;font-display:swap;src:url(/assets/fonts/barlow-condensed-700-latin.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:"Geist";font-style:normal;font-weight:100 900;font-display:swap;src:url(/assets/fonts/geist-latin-ext.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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF}
@font-face{font-family:"Geist";font-style:normal;font-weight:100 900;font-display:swap;src:url(/assets/fonts/geist-latin.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:"Geist Mono";font-style:normal;font-weight:100 900;font-display:swap;src:url(/assets/fonts/geist-mono-latin.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}
:root {
  --red: #e10600; --red-hi: #ff3b2f; --red-soft: rgba(225,6,0,.18);
  --bg: #0c0b09; --top: #0e0c0a; --s1: #12110e; --s2: #181713; --s3: #211f1a;
  --line: rgba(255,240,210,.08); --line2: rgba(255,240,210,.14); --line3: rgba(255,240,210,.24);
  --text: #efede7; --dim: #c9c5ba; --muted: #928d81; --amber: #e8a317; --green: #3ccf7e;
  --display: "Archivo", Arial, sans-serif; --label: "Barlow Condensed", "Arial Narrow", sans-serif;
  --font: "Geist", "Segoe UI", system-ui, sans-serif; --mono: "Geist Mono", ui-monospace, Consolas, monospace;
}
* { box-sizing: border-box; }
html { color-scheme: dark; }
body { margin: 0; background: var(--bg); color: var(--text); font: 15px/1.6 var(--font); -webkit-font-smoothing: antialiased; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--red-hi); outline-offset: 2px; border-radius: 2px; }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 32px; }
.lbl { font-family: var(--label); font-weight: 700; text-transform: uppercase; letter-spacing: .12em; }

/* barre du haut : l'onglet actif est taillé à 74°, comme les bandeaux d'annonce ROTK */
.top { position: sticky; top: 0; z-index: 30; border-bottom: 1px solid var(--line2); background: var(--top); --cut: 18px; }
.top .wrap { max-width: 1360px; display: flex; flex-wrap: wrap; align-items: center; gap: 0 24px; min-height: 64px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; white-space: nowrap; }
.brand .logo { width: 30px; height: 30px; display: block; }
/* avatar du bot : l'icône ROTK sur le fond sombre des avatars Discord */
img.bot, img.pp { object-fit: contain; padding: 5px; background: #1e1f22; }
.brand b { font-family: var(--label); font-weight: 700; font-size: 19px; letter-spacing: .06em; text-transform: uppercase; }
.brand i { width: 2px; height: 20px; background: var(--red); transform: skewX(-16deg); }
.brand span { font-family: var(--label); font-weight: 600; font-size: 15px; letter-spacing: .09em; text-transform: uppercase; color: var(--muted); }
nav { display: flex; flex: 1 1 auto; align-self: stretch; overflow-x: auto; scrollbar-width: none; }
nav a { position: relative; isolation: isolate; display: flex; align-items: center; gap: 9px; padding: 0 calc(var(--cut) + 4px); font-family: var(--label); font-weight: 600; font-size: 15px; letter-spacing: .09em; text-transform: uppercase; text-decoration: none; color: var(--muted); white-space: nowrap; }
nav a::before { content: ""; position: absolute; inset: 0; z-index: -1; clip-path: polygon(var(--cut) 0, 100% 0, calc(100% - var(--cut)) 100%, 0 100%); transition: background-color .15s; }
nav a svg { width: 17px; height: 17px; flex: none; }
nav a:hover { color: var(--text); }
nav a:hover::before { background: var(--s2); }
nav a:focus-visible { outline-offset: -6px; }
nav a[aria-current] { color: #fff; }
nav a[aria-current] svg { color: var(--red-hi); }
nav a[aria-current]::before { background: linear-gradient(180deg, rgba(225,6,0,.04), rgba(225,6,0,.24)); }
nav a[aria-current]::after { content: ""; position: absolute; left: 0; right: var(--cut); bottom: 0; height: 2px; background: var(--red); }
.count { min-width: 20px; padding: 0 6px; border-radius: 2px; background: var(--red); color: #fff; font-size: 13px; letter-spacing: .04em; line-height: 20px; text-align: center; }
.me { --role: var(--muted); display: flex; align-items: center; gap: 11px; white-space: nowrap; cursor: default; }
.me.support { --role: var(--amber); }
.me.admin { --role: var(--red-hi); }
.me img, .avatar { width: 32px; height: 32px; border-radius: 50%; background: var(--s3); box-shadow: 0 0 0 2px var(--top), 0 0 0 3.5px var(--role); display: grid; place-items: center; font-family: var(--label); font-weight: 700; color: var(--dim); }
.me .id { display: grid; line-height: 1.2; }
.me .name { max-width: 150px; overflow: hidden; text-overflow: ellipsis; font-weight: 500; font-size: 14.5px; }
.me .role { font-family: var(--label); font-weight: 600; font-size: 12.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--role); }
.me.duo .role { justify-self: start; background: linear-gradient(90deg, var(--role), var(--role2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.out { margin: 0 0 0 -10px; padding-left: 16px; border-left: 1px solid var(--line); }
.out button { display: grid; place-items: center; width: 38px; height: 38px; padding: 0; border: 1px solid var(--line2); border-radius: 2px; background: none; color: var(--muted); cursor: pointer; }
.out button svg { width: 18px; height: 18px; }
.out button:hover { color: var(--red-hi); border-color: rgba(255,59,47,.5); }

/* titres */
main.wrap { padding-top: 56px; padding-bottom: 88px; }
.eb { font-family: var(--label); font-weight: 700; font-size: 13px; letter-spacing: .16em; text-transform: uppercase; color: var(--red-hi); margin-bottom: 12px; }
.eb i { font-style: normal; color: var(--muted); margin-right: 12px; letter-spacing: .06em; }
h1 { margin: 0 0 14px; font-family: var(--display); font-weight: 900; font-stretch: 125%; font-size: clamp(26px, 7.6vw, 64px); line-height: .95; letter-spacing: -.01em; text-transform: uppercase; overflow-wrap: break-word; }
h2 { margin: 0; font-family: var(--display); font-weight: 900; font-stretch: 125%; font-size: clamp(22px, 6.4vw, 30px); line-height: 1; text-transform: uppercase; overflow-wrap: break-word; }
.sub { margin: 0 0 40px; max-width: 62ch; color: var(--muted); }
.head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 36px; }
.head .sub { margin: 0; }
.section { margin-top: 64px; }
.section .head { margin-bottom: 18px; }
.back { display: inline-block; margin-bottom: 28px; font-family: var(--label); font-weight: 600; font-size: 14.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); text-decoration: none; }
.back:hover { color: var(--text); }
.more { font-family: var(--label); font-weight: 700; font-size: 14px; letter-spacing: .08em; text-transform: uppercase; color: var(--red-hi); text-decoration: none; }
.title-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; margin-bottom: 10px; }
.title-row h1 { margin: 0; }
.meta { margin: 0 0 36px; color: var(--muted); }

/* tableau de bord */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); border: 1px solid var(--line2); background: var(--s1); }
.stat { padding: 24px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.stat .lbl { display: block; font-size: 13px; letter-spacing: .14em; color: var(--muted); margin-bottom: 12px; }
.stat .big { font-family: var(--display); font-weight: 900; font-stretch: 125%; font-size: 52px; line-height: 1; }
.stat .big.alert { color: var(--red-hi); }
.stat .word { display: flex; align-items: center; gap: 10px; font-family: var(--label); font-weight: 700; font-size: 30px; letter-spacing: .04em; text-transform: uppercase; line-height: 1; }
.stat .word.dimmed { color: var(--dim); }
.stat p { margin: 12px 0 0; color: var(--muted); font-size: 14px; }
.dot { width: 10px; height: 10px; border-radius: 50%; background: var(--muted); flex: none; }
.dot.on { background: var(--green); box-shadow: 0 0 0 4px rgba(60,207,126,.16); }
.dot.off { background: var(--red); box-shadow: 0 0 0 4px var(--red-soft); }
.list { border: 1px solid var(--line2); background: var(--s1); }
.item { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; padding: 16px 22px; border-bottom: 1px solid var(--line); }
.item:last-child { border-bottom: 0; }
.item .grow { flex: 1 1 220px; font-weight: 600; }
.empty { padding: 28px; text-align: center; color: var(--muted); }

/* puces et étiquettes */
.chip { font-family: var(--mono); font-size: 14px; padding: 3px 8px; border-radius: 2px; background: var(--s3); text-decoration: none; white-space: nowrap; }
.badge { display: inline-block; padding: 2px 8px; border-radius: 2px; border: 1px solid var(--line3); color: var(--muted); font-family: var(--label); font-weight: 700; font-size: 12.5px; letter-spacing: .12em; text-transform: uppercase; white-space: nowrap; }
.badge.admin { background: var(--red); border-color: var(--red); color: #fff; }
.badge.support, .badge.pending { background: var(--amber); border-color: var(--amber); color: #1a1408; }
.badge.modified { border-color: var(--amber); color: var(--amber); }
.badge.added { border-color: var(--red-hi); color: var(--red-hi); }
.badge.approved { border-color: rgba(60,207,126,.6); color: var(--green); }
.badge.rejected { border-color: rgba(255,59,47,.55); color: var(--red-hi); }
.badge.kind { color: var(--dim); }

/* tableaux */
.table { overflow-x: auto; border: 1px solid var(--line2); }
table { width: 100%; min-width: 640px; border-collapse: collapse; background: var(--s1); }
th { text-align: left; padding: 12px 20px; border-bottom: 1px solid var(--line2); font-family: var(--label); font-weight: 700; font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
td { padding: 14px 20px; border-bottom: 1px solid var(--line); vertical-align: top; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover { background: var(--s2); }
td a.title { text-decoration: none; font-weight: 600; }
td .en { color: var(--muted); font-size: 14px; }
td.cat { color: var(--dim); }
td.date { color: var(--muted); font-size: 14px; white-space: nowrap; }

/* filtres */
.tools { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; margin-bottom: 18px; }
.search { flex: 1 1 280px; max-width: 420px; display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 14px; border: 1px solid var(--line2); border-radius: 2px; background: var(--s1); }
.search:focus-within { border-color: var(--red-hi); box-shadow: 0 0 0 3px var(--red-soft); }
.search input { flex: 1; min-width: 0; background: none; border: 0; outline: none; color: var(--text); font: inherit; }
.tabs { display: flex; flex-wrap: wrap; border-bottom: 1px solid var(--line2); }
.tabs button { min-height: 44px; padding: 10px 14px; background: none; border: 0; color: var(--muted); font-family: var(--label); font-weight: 600; font-size: 15px; letter-spacing: .08em; text-transform: uppercase; cursor: pointer; }
.tabs button:hover { color: var(--text); }
.tabs button[aria-pressed="true"] { color: var(--text); box-shadow: inset 0 -2px 0 var(--red); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* boutons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 44px; padding: 0 20px; border: 1px solid var(--line3); border-radius: 2px; background: none; color: var(--text); font-family: var(--label); font-weight: 700; font-size: 15px; letter-spacing: .09em; text-transform: uppercase; text-decoration: none; cursor: pointer; white-space: nowrap; }
.btn:hover { border-color: var(--dim); }
.btn.primary { background: var(--red); border-color: var(--red); color: #fff; }
.btn.primary:hover { background: #f20a00; border-color: #f20a00; }
.btn.danger { border-color: rgba(255,59,47,.45); color: var(--red-hi); }
.btn.danger:hover { border-color: var(--red-hi); }
.btn.big { min-height: 48px; padding: 0 24px; font-size: 16px; }
.btn.discord { min-height: 54px; padding: 0 26px; background: #5865f2; border-color: #5865f2; color: #fff; font-size: 17px; }
.btn.discord:hover { background: #4752c4; border-color: #4752c4; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* formulaires */
.form { display: grid; gap: 22px; padding: 28px; border: 1px solid var(--line2); background: var(--s1); }
.pair { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 18px; align-items: end; }
label { display: grid; gap: 8px; }
label > .lbl { font-size: 13.5px; color: var(--dim); }
label small { font-family: var(--font); font-weight: 400; font-size: 13px; letter-spacing: 0; text-transform: none; color: var(--muted); margin-left: 6px; }
input[type=text], input[type=search], select, textarea { width: 100%; min-height: 44px; padding: 0 14px; border: 1px solid var(--line2); border-radius: 2px; background: var(--bg); color: var(--text); font: inherit; }
textarea { padding: 12px 14px; min-height: 120px; line-height: 1.55; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--red-hi); box-shadow: 0 0 0 3px var(--red-soft); }
input[readonly] { color: var(--muted); font-family: var(--mono); font-size: 14px; }
.search input[type=search] { min-height: 0; padding: 0; border: 0; background: none; box-shadow: none; }
h1.cmd { text-transform: none; }

/* éditeur */
.editor { display: flex; flex-wrap: wrap; gap: 28px; align-items: flex-start; }
.editor > .form { flex: 999 1 560px; min-width: 0; }
.editor > aside { flex: 1 1 360px; min-width: 0; display: grid; gap: 20px; }
.box { border: 1px solid var(--line2); padding: 18px 20px; }
.box.filled { background: var(--s1); }
.box .lbl, .aside-lbl { display: block; font-size: 13px; letter-spacing: .14em; color: var(--muted); margin-bottom: 10px; }
.box p { margin: 0 0 14px; font-size: 14.5px; color: var(--dim); }
.discord { background: #313338; border-radius: 6px; padding: 16px 18px; color: #dbdee1; font: 15px/1.45 var(--font); }
.discord .msg { display: flex; gap: 14px; }
.discord .bot { flex: none; width: 40px; height: 40px; border-radius: 50%; background: #1e1f22; display: grid; place-items: center; font-family: var(--label); font-weight: 700; font-size: 18px; color: #fff; }
.discord .who { font-weight: 600; color: #f2f3f5; }
.discord .app { margin-left: 6px; padding: 0 5px; border-radius: 3px; background: #5865f2; color: #fff; font-size: 11px; font-weight: 700; line-height: 16px; vertical-align: 1px; }
.discord .when { margin-left: 8px; color: #949ba4; font-size: 12px; }
.discord p { margin: 2px 0 4px; overflow-wrap: anywhere; }
.discord svg { width: 20px; height: 13px; vertical-align: -2px; margin-right: 6px; }
.discord a { color: #00a8fc; text-decoration: none; }
.discord code { background: #2b2d31; padding: 1px 4px; border-radius: 3px; font-family: var(--mono); font-size: 13px; }
.meter-row { display: flex; justify-content: space-between; margin: 12px 0 6px; font-size: 13.5px; color: var(--muted); }
.meter-row span:last-child { font-family: var(--mono); font-size: 13px; }
.meter { height: 3px; background: var(--s3); }
.meter i { display: block; height: 3px; width: 0; background: var(--red); }
.meter.over i { background: var(--amber); }
.checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-size: 14.5px; }
.checks li { display: flex; gap: 10px; align-items: center; color: var(--dim); }
.checks li::before { content: ""; flex: none; width: 16px; height: 16px; background: no-repeat center/16px; }
.checks li.ok::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%233ccf7e' stroke-width='2'%3E%3Cpath d='M3 8.5l3 3 7-7'/%3E%3C/svg%3E"); }
.checks li.bad { color: var(--text); }
.checks li.bad::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23ff3b2f' stroke-width='2'%3E%3Cpath d='M4 4l8 8M12 4l-8 8'/%3E%3C/svg%3E"); }

/* propositions */
.card { border: 1px solid var(--line2); background: var(--s1); margin-bottom: 20px; }
.card-head { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; padding: 18px 24px; border-bottom: 1px solid var(--line); }
.card-head .by { margin-left: auto; color: var(--muted); font-size: 14px; }
.card-body { padding: 20px 24px; display: grid; gap: 18px; }
.card-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; padding: 16px 24px; border-top: 1px solid var(--line); }
.card-foot form { margin: 0; }
.card-foot .reject { flex: 1 1 320px; display: flex; flex-wrap: wrap; gap: 12px; }
.card-foot .reject input { flex: 1 1 220px; }
.field-lbl { display: block; font-size: 13px; letter-spacing: .14em; color: var(--muted); margin-bottom: 8px; }
.diff { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 12px; }
.cell { border: 1px solid var(--line); background: var(--bg); padding: 14px 16px; font-size: 14.5px; white-space: pre-wrap; overflow-wrap: anywhere; color: var(--dim); }
.cell.new { border-color: rgba(60,207,126,.35); background: rgba(60,207,126,.06); color: var(--text); }
.cell .lbl { display: block; font-size: 12.5px; color: var(--muted); margin-bottom: 6px; white-space: normal; }
.cell.new .lbl { color: var(--green); }
.review { margin: 0; color: var(--muted); font-size: 14.5px; }

/* messages */
.flash { padding: 14px 18px; border: 1px solid var(--line2); border-radius: 2px; margin-bottom: 28px; background: var(--s1); }
.flash.ok { border-color: rgba(60,207,126,.45); }
.flash.info { border-color: rgba(232,163,23,.45); }
.flash.error { border-color: rgba(255,59,47,.55); }
.flash ul { margin: 8px 0 0; padding-left: 20px; }

/* connexion */
.login { min-height: 100vh; display: flex; flex-direction: column; }
.login main { flex: 1; width: 100%; max-width: 1200px; margin: 0 auto; padding: clamp(48px, 9vw, 120px) 32px 64px; }
.login h1 { font-size: clamp(52px, 7.6vw, 116px); line-height: .9; margin-bottom: 22px; overflow-wrap: normal; }
.login .lede { margin: 0 0 34px; max-width: 46ch; font-size: 18px; color: var(--dim); }
.login .note { margin: 18px 0 0; max-width: 56ch; font-size: 14px; color: var(--muted); }
.roles { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); margin-top: 72px; border-top: 1px solid var(--line2); }
.roles div { padding: 22px 24px 0 0; }
.roles b { display: flex; align-items: center; gap: 10px; font-family: var(--label); font-weight: 700; font-size: 19px; letter-spacing: .05em; text-transform: uppercase; margin-bottom: 6px; }
.roles b svg { width: 22px; height: 22px; color: var(--red-hi); flex: none; }
.btn.discord svg { width: 22px; height: 22px; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; align-items: center; }

/* scène de la connexion : le clic droit « Trouver la solution » en action, aux couleurs de Discord */
.scene { margin: 0; padding: 22px 22px 20px; background: #313338; border-radius: 8px; color: #dbdee1; font: 15px/1.45 var(--font); box-shadow: 0 30px 60px -30px rgba(0,0,0,.9), 0 0 0 1px var(--line2); }
.scene-msg { display: flex; gap: 14px; padding: 8px 10px; border-radius: 4px; }
.scene-msg.player { background: rgba(255,255,255,.035); }
.scene-msg .pp { flex: none; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; font-family: var(--label); font-weight: 700; font-size: 18px; color: #fff; background: #4e5058; }
.scene-msg.bot .pp { background: #1e1f22; }
.scene-msg .who { font-weight: 600; color: #f2f3f5; }
.scene-msg .app { margin-left: 6px; padding: 0 5px; border-radius: 3px; background: #5865f2; color: #fff; font-size: 11px; font-weight: 700; line-height: 16px; vertical-align: 1px; }
.scene-msg .when { margin-left: 8px; color: #949ba4; font-size: 12px; }
.scene-msg p { margin: 2px 0 4px; overflow-wrap: anywhere; }
.scene-msg svg { width: 20px; height: 13px; vertical-align: -2px; margin-right: 6px; }
.scene-msg .ref { color: #949ba4; font-size: 13px; margin-bottom: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.scene-msg .link { color: #00a8fc; }
.scene-menu { position: relative; width: 230px; margin: 4px 0 10px 64px; padding: 6px; background: #111214; border-radius: 6px; box-shadow: 0 14px 30px rgba(0,0,0,.55); font-size: 14px; }
.scene-menu .item { display: flex; align-items: center; justify-content: space-between; padding: 7px 10px; border-radius: 3px; color: #b5bac1; }
.scene-menu .item i { font-style: normal; }
.scene-menu .item.hl { position: relative; background: #5865f2; color: #fff; }
.scene-menu .cursor { position: absolute; right: -6px; bottom: -12px; width: 20px; height: 20px; }
.scene figcaption { margin: 14px 10px 0; color: #949ba4; font-size: 13.5px; }
/* pages publiques : confidentialité et conditions */
.legal { flex: 1; width: 100%; max-width: 820px; margin: 0 auto; padding: clamp(40px, 7vw, 88px) 32px 64px; }
.legal h1 { font-size: clamp(40px, 8vw, 88px); }
.legal h2 { margin: 48px 0 6px; }
.legal h3 { margin: 28px 0 8px; font-family: var(--label); font-weight: 700; font-size: 18px; letter-spacing: .06em; text-transform: uppercase; }
.legal ul { margin: 0; padding-left: 20px; color: var(--dim); }
.legal li { margin: 6px 0; max-width: 72ch; }
.legal a { color: var(--text); text-decoration-color: var(--red-hi); text-underline-offset: 3px; }
.legal .updated { margin: 0 0 14px; color: var(--muted); font-size: 14px; }
.legal .intro { margin: 0; max-width: 72ch; }
.examples figure { margin: 44px 0 0; }
.examples figure img { display: block; width: auto; max-width: 100%; height: auto; border: 1px solid var(--line2); border-radius: 6px; }
.examples figcaption { margin-top: 14px; max-width: 72ch; }
.examples figcaption b { display: flex; gap: 12px; align-items: baseline; font-family: var(--label); font-weight: 700; font-size: 19px; letter-spacing: .05em; text-transform: uppercase; }
.examples figcaption b span { color: var(--red-hi); }
.examples figcaption p { margin: 4px 0 0; color: var(--dim); }
.langs, .legal-links { display: flex; flex-wrap: wrap; gap: 8px 22px; margin: 18px 0 0; }
.langs a, .legal-links a { font-family: var(--label); font-weight: 600; font-size: 15px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); text-decoration: none; }
.langs a:hover, .legal-links a:hover { color: var(--text); }
.legal-links { margin-top: 56px; padding-top: 20px; border-top: 1px solid var(--line2); }
.login .roles + .legal-links { margin-top: 40px; border-top: 0; padding-top: 0; }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.scene > * { animation: rise .55s cubic-bezier(.2,.7,.2,1) both; }
.scene > :nth-child(1) { animation-delay: .25s; }
.scene > :nth-child(2) { animation-delay: 1.05s; }
.scene > :nth-child(3) { animation-delay: 1.85s; }
.scene > :nth-child(4) { animation-delay: 2.4s; }
@media (prefers-reduced-motion: reduce) { .scene > * { animation: none; } }
@media (max-width: 900px) { .hero-grid { grid-template-columns: minmax(0, 1fr); gap: 48px; } .scene-menu { margin-left: 30px; } }
@media (max-width: 560px) {
  .login main { padding-left: 18px; padding-right: 18px; }
  .btn.discord { width: 100%; white-space: normal; text-align: center; font-size: 15px; padding: 12px 18px; }
  .scene { padding: 14px 10px; }
  .scene-menu { width: auto; margin: 4px 8px 10px 40px; }
}
.roles p { margin: 0; color: var(--muted); font-size: 14.5px; }

/* guide du staff */
.tool-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.tool { display: flex; flex-direction: column; padding: 26px; border: 1px solid var(--line2); background: var(--s1); }
.tool h3 { margin: 0; font-family: var(--display); font-weight: 900; font-stretch: 125%; font-size: 22px; line-height: 1.1; text-transform: uppercase; }
.tool h3 .slash { font-family: var(--mono); font-weight: 600; font-stretch: normal; text-transform: none; color: var(--red-hi); }
.tool h3 .q { font-family: var(--font); font-weight: 600; font-stretch: normal; font-size: 18px; text-transform: none; color: var(--dim); }
.when-use { margin: 6px 0 22px; color: var(--muted); }
.tool .demo { flex: 1; display: flex; flex-direction: column; justify-content: center; }
.mock-cmd { width: 100%; box-sizing: border-box; }
.mock-cmd { padding: 14px; border-radius: 8px; background: #313338; font: 14.5px/1.4 var(--font); color: #dbdee1; }
.mock-list { display: grid; margin-bottom: 8px; padding: 6px; border-radius: 6px; background: #2b2d31; }
.mock-list span { padding: 6px 10px; border-radius: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mock-list span.on { background: #404249; color: #fff; }
.mock-list .mock-head { padding: 2px 10px 6px; color: #949ba4; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .02em; }
.mock-input { display: flex; align-items: center; gap: 6px; padding: 10px 14px; border-radius: 8px; background: #383a40; }
.mock-input b { color: #f2f3f5; }
.mock-input .opt { padding: 1px 8px; border-radius: 4px; background: #1e1f22; color: #b5bac1; font-size: 13.5px; }
.mock-input .caret { width: 1px; height: 18px; background: #dbdee1; }
.scene.still { padding: 14px; box-shadow: none; }
.scene.still > * { animation: none; }
.scene.still .scene-menu { margin: 2px 0 6px 64px; }
.steps { display: grid; gap: 14px; margin: 24px 0 0; padding: 0; list-style: none; }
.steps li { display: flex; gap: 14px; }
.steps .n { flex: none; display: grid; place-items: center; width: 28px; height: 28px; border: 1px solid var(--red); color: var(--red-hi); font-family: var(--label); font-weight: 700; font-size: 15px; }
.steps b { display: block; font-weight: 600; }
.steps p { margin: 2px 0 0; color: var(--muted); font-size: 14.5px; }
.steps a, .facts a, .qa a { color: var(--red-hi); }
.steps.flow { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; margin: 0; border: 1px solid var(--line2); background: var(--s1); }
.steps.flow li { padding: 22px; border-right: 1px solid var(--line); }
.steps.flow li:last-child { border-right: 0; }
.aside { margin: 16px 0 0; color: var(--muted); font-size: 14.5px; }
.sub a { color: var(--red-hi); text-underline-offset: 3px; }
code.err { font-family: var(--mono); font-size: 13.5px; color: var(--text); }
.item .arrow { color: var(--muted); }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); border: 1px solid var(--line2); background: var(--s1); }
.facts div { padding: 22px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.facts b { font-family: var(--label); font-weight: 700; font-size: 18px; letter-spacing: .05em; text-transform: uppercase; }
.facts p { margin: 6px 0 0; color: var(--muted); font-size: 14.5px; }
h3.mini { margin: 36px 0 12px; font-family: var(--label); font-weight: 700; font-size: 18px; letter-spacing: .05em; text-transform: uppercase; }
.rules-list { margin: 0; padding-left: 20px; color: var(--dim); }
.rules-list li { margin: 6px 0; }
.rules-list li::marker { color: var(--red); }
.rules-list code { font-family: var(--mono); font-size: 13.5px; padding: 1px 6px; background: var(--s3); border-radius: 2px; }
.qa { border: 1px solid var(--line2); background: var(--s1); }
.qa details { border-bottom: 1px solid var(--line); }
.qa details:last-child { border-bottom: 0; }
.qa summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 22px; font-weight: 600; cursor: pointer; list-style: none; }
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after { content: "+"; flex: none; font-family: var(--label); font-size: 22px; line-height: 1; color: var(--red-hi); }
.qa details[open] summary::after { content: "−"; }
.qa summary:hover { background: var(--s2); }
.qa details p { margin: 0; padding: 0 22px 18px; color: var(--muted); max-width: 72ch; }
@media (max-width: 900px) {
  .tool-grid, .steps.flow { grid-template-columns: minmax(0, 1fr); }
  .tool { padding: 20px 16px; }
  .steps.flow li { border-right: 0; border-bottom: 1px solid var(--line); }
  .steps.flow li:last-child { border-bottom: 0; }
}

/* barre du haut sur écran moyen ou téléphone : la navigation passe sur sa propre ligne, qui défile */
@media (max-width: 1260px) {
  .top { --cut: 13px; }
  .top .wrap { gap: 0 16px; }
  .brand { margin-right: auto; }
  nav { order: 3; flex-basis: 100%; min-height: 48px; margin: 0 -32px; padding: 0 20px; border-top: 1px solid var(--line); -webkit-mask-image: linear-gradient(90deg, transparent, #000 14px, #000 calc(100% - 28px), transparent); mask-image: linear-gradient(90deg, transparent, #000 14px, #000 calc(100% - 28px), transparent); }
}
@media (max-width: 760px) {
  .wrap { padding: 0 18px; }
  main.wrap { padding-top: 36px; }
  nav { margin: 0 -18px; padding: 0 6px; }
  .me .id { display: none; }
  .out { margin-left: -4px; padding-left: 12px; }
  .form { padding: 20px; }
  .card-head, .card-body, .card-foot { padding-left: 18px; padding-right: 18px; }
  .card-head .by { margin-left: 0; flex-basis: 100%; }
}
