/* Faction Manager V19.1 — design « Nexus ».
   Nuit bleu ardoise, deux minerais en accent : ambre « paladium » pour les actions,
   améthyste pour les liens et l'information. Motif unique : le blason biseauté de la faction
   (et les boutons principaux, taillés comme un bloc). Polices locales (licence OFL), aucune ressource externe. */

@font-face { font-family: "Chakra Petch"; font-weight: 500; font-display: swap;
  src: url("../fonts/ChakraPetch-Medium.woff") format("woff"); }
@font-face { font-family: "Chakra Petch"; font-weight: 600; font-display: swap;
  src: url("../fonts/ChakraPetch-SemiBold.woff") format("woff"); }
@font-face { font-family: "Atkinson Hyperlegible"; font-weight: 400; font-display: swap;
  src: url("../fonts/AtkinsonHyperlegible-Regular.woff") format("woff"); }
@font-face { font-family: "Atkinson Hyperlegible"; font-weight: 700; font-display: swap;
  src: url("../fonts/AtkinsonHyperlegible-Bold.woff") format("woff"); }

:root {
  --night: #141a26;        /* fond */
  --panel: #1b2232;        /* surfaces */
  --raised: #232c40;       /* survol, champs */
  --line: #2e3850;         /* séparateurs */
  --text: #e7ebf3;
  --muted: #9aa6bd;
  --amber: #f2a93b;        /* paladium : actions principales, élément actif */
  --amber-ink: #1d1406;    /* texte sur ambre */
  --amethyst: #b9a3ff;     /* liens, information */
  --ok: #57c993;
  --warn: #e3c35b;
  --bad: #ef6f77;
  --radius: 10px;
  --display: "Chakra Petch", "Segoe UI", system-ui, sans-serif;
  --body: "Atkinson Hyperlegible", "Segoe UI", system-ui, sans-serif;
  --sidebar: 240px;
  /* Compatibilité avec les anciennes classes */
  --bg: var(--night); --accent: var(--amber); --danger: var(--bad);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--night); color: var(--text); font: 400 15px/1.55 var(--body); }
a { color: var(--amethyst); text-decoration: none; text-underline-offset: 3px; }
a:hover { text-decoration: underline; }
:focus-visible { outline: 2px solid var(--amber); outline-offset: 2px; border-radius: 4px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -48px; background: var(--amber); color: var(--amber-ink); padding: 8px 12px;
  border-radius: 6px; z-index: 50; }
.skip:focus { top: 8px; }

/* ------------------------------------------------------------------ titres et texte */
h1, h2, h3 { font-family: var(--display); font-weight: 600; letter-spacing: .01em; line-height: 1.2; }
h1 { font-size: 27px; margin: 0 0 18px; }
h2 { font-size: 19px; margin: 28px 0 12px; }
h3 { font-size: 16px; margin: 18px 0 8px; }
p { margin: 0 0 12px; max-width: 75ch; }
.muted { color: var(--muted); }
small, .small-text { font-size: 13px; }
.num { text-align: right; font-variant-numeric: tabular-nums; }
.mono { font-family: ui-monospace, "Cascadia Mono", Menlo, monospace; font-size: 13px; word-break: break-all; }
.eyebrow { color: var(--muted); font-size: 13px; }

/* ------------------------------------------------------------------ cadre */
.topbar { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 14px; height: 56px;
  padding: 0 20px; background: rgba(20, 26, 38, .92); backdrop-filter: blur(6px); border-bottom: 1px solid var(--line); }
.brand { font-family: var(--display); font-weight: 600; font-size: 17px; color: var(--text); letter-spacing: .02em; }
.brand:hover { text-decoration: none; color: var(--amber); }
.topnav { margin-left: auto; display: flex; gap: 18px; align-items: center; font-size: 14px; }
.topnav a { color: var(--muted); }
.topnav a:hover { color: var(--text); text-decoration: none; }
.layout { display: flex; min-height: calc(100vh - 56px); }
.content { flex: 1; min-width: 0; max-width: 1180px; padding: 28px 32px 56px; }

.sidebar { width: var(--sidebar); flex: none; padding: 20px 14px; border-right: 1px solid var(--line);
  background: linear-gradient(180deg, #182033 0%, var(--night) 60%); display: flex; flex-direction: column; gap: 6px;
  position: sticky; top: 56px; height: calc(100vh - 56px); overflow-y: auto; }

/* Blason : l'élément marquant de l'interface (bloc biseauté aux initiales de la faction). */
.crest { display: flex; gap: 12px; align-items: center; padding: 6px 6px 16px; margin-bottom: 6px;
  border-bottom: 1px solid var(--line); color: var(--text); }
.crest:hover { text-decoration: none; }
.crest-mark { flex: none; width: 46px; height: 46px; display: grid; place-items: center; font: 600 18px/1 var(--display);
  color: var(--amber-ink); background: linear-gradient(145deg, #ffd27a, var(--amber) 55%, #b9761c);
  clip-path: polygon(10px 0, calc(100% - 10px) 0, 100% 10px, 100% calc(100% - 10px), calc(100% - 10px) 100%,
                     10px 100%, 0 calc(100% - 10px), 0 10px); letter-spacing: .04em; }
.crest-text { display: flex; flex-direction: column; min-width: 0; }
.crest-text strong { font-family: var(--display); font-weight: 600; font-size: 16px; overflow: hidden; text-overflow: ellipsis;
  white-space: nowrap; }
.crest-text small { color: var(--muted); }

.side-nav { display: flex; flex-direction: column; gap: 2px; }
.side-nav a { display: block; padding: 8px 12px; border-radius: 8px; color: var(--muted); font-family: var(--display);
  font-weight: 500; font-size: 15px; border-left: 3px solid transparent; }
.side-nav a:hover { color: var(--text); background: var(--raised); text-decoration: none; }
.side-nav a.active { color: var(--text); background: var(--raised); border-left-color: var(--amber); }
.nav-group { margin: 16px 12px 4px; font-size: 12px; color: #7e8aa3; }
.switch { margin-top: auto; padding: 12px; font-size: 14px; color: var(--muted); }
.menu-toggle { display: none; }
.drawer-account { display: none; }

/* ------------------------------------------------------------------ surfaces */
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.card + .card, section.card { margin-bottom: 16px; }
.card h2:first-child, .card h3:first-child { margin-top: 0; }
.narrow { max-width: 460px; }
.stack { display: flex; flex-direction: column; gap: 12px; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; margin-bottom: 20px; }
.tile { display: flex; flex-direction: column; gap: 4px; color: var(--text); }
a.tile:hover { text-decoration: none; border-color: #44517080; background: #1e2638; }
.stat strong { font: 600 30px/1.1 var(--display); display: block; margin-top: 2px; font-variant-numeric: tabular-nums; }
.split { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 24px; }
.head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.head h1 { margin: 0; }
.head .spacer { flex: 1; }
.page-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.page-head h1, .page-head h2 { margin: 0; }
.empty { color: var(--muted); padding: 18px 0; }
.empty::before { content: ""; }

/* ------------------------------------------------------------------ formulaires */
label { display: flex; flex-direction: column; gap: 6px; color: var(--muted); font-size: 14px; }
input, select, textarea { background: var(--night); color: var(--text); border: 1px solid var(--line); border-radius: 8px;
  padding: 9px 11px; font: inherit; font-size: 15px; min-height: 40px; }
input:hover, select:hover, textarea:hover { border-color: #3d4964; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--amber); box-shadow: 0 0 0 3px #f2a93b33; }
textarea { min-height: 90px; resize: vertical; }
input[type=checkbox], input[type=radio] { min-height: 0; accent-color: var(--amber); width: 16px; height: 16px; }
.form-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 14px; align-items: end; }
.form-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-end; }
.inline { display: inline-flex; gap: 6px; align-items: center; margin: 0; flex-wrap: wrap; }
fieldset { border: 1px solid var(--line); border-radius: 8px; padding: 12px; margin: 0; }
legend { padding: 0 6px; color: var(--muted); }
label.choice, .check { flex-direction: row; gap: 9px; align-items: flex-start; color: var(--text); }
label.choice input { margin-top: 3px; flex: none; }
.radio-row { display: flex; gap: 14px; flex-wrap: wrap; }
.radio-row label { flex-direction: row; align-items: center; gap: 6px; color: var(--text); }
.perm-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 8px 18px; }
details summary { cursor: pointer; color: var(--amethyst); margin: 8px 0; }

/* Boutons : l'action principale est taillée comme un bloc ; les autres restent sobres. */
.button { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 40px; padding: 8px 16px;
  font: 600 15px/1.2 var(--display); letter-spacing: .02em; color: var(--amber-ink); background: var(--amber); border: 0;
  cursor: pointer; clip-path: polygon(7px 0, 100% 0, 100% calc(100% - 7px), calc(100% - 7px) 100%, 0 100%, 0 7px); }
.button:hover { background: #ffbb55; text-decoration: none; }
.button:active { transform: translateY(1px); }
.button.small { min-height: 32px; padding: 5px 11px; font-size: 13.5px; }
.button.ghost { background: transparent; color: var(--text); border: 1px solid var(--line); clip-path: none; border-radius: 8px; }
.button.ghost:hover { background: var(--raised); border-color: #45526e; }
.button.danger { background: transparent; color: var(--bad); border: 1px solid #ef6f7766; clip-path: none; border-radius: 8px; }
.button.danger:hover { background: #ef6f771a; }
.button[disabled] { opacity: .5; cursor: not-allowed; }
.link { background: none; border: 0; color: var(--muted); cursor: pointer; font: inherit; padding: 0; }
.link:hover { color: var(--text); }

/* ------------------------------------------------------------------ tableaux */
.table-wrap { overflow-x: auto; max-width: 100%; margin-bottom: 20px; border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--panel); }
.table { width: 100%; border-collapse: collapse; }
.table-wrap .table { margin: 0; }
.table th { font: 500 13px/1.3 var(--display); color: var(--muted); text-align: left; padding: 11px 12px;
  border-bottom: 1px solid var(--line); background: #1e2638; white-space: nowrap; }
.table td { padding: 11px 12px; border-bottom: 1px solid #263048; vertical-align: top; }
.table tr:last-child td { border-bottom: 0; }
.table tbody tr:hover td { background: #1f2738; }
.table td.actions, .table .actions { white-space: nowrap; }
table.table:not(.table-wrap .table) { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  border-collapse: separate; border-spacing: 0; overflow: hidden; margin-bottom: 20px; }

/* ------------------------------------------------------------------ états */
.pill { display: inline-flex; align-items: center; font-size: 12.5px; line-height: 1.4; padding: 1px 9px; border-radius: 999px;
  border: 1px solid var(--line); color: var(--muted); white-space: nowrap; }
.pill.ok { color: var(--ok); border-color: #57c99366; background: #57c99312; }
.pill.warn { color: var(--warn); border-color: #e3c35b66; background: #e3c35b12; }
.pill.bad { color: var(--bad); border-color: #ef6f7766; background: #ef6f7712; }
.pill.beta { color: var(--amethyst); border-color: #38d6f066; background: #38d6f014; }
.badge { font-size: 12px; color: var(--muted); }
.flash { padding: 11px 14px; border-radius: 8px; margin-bottom: 16px; border: 1px solid var(--line); background: var(--panel); }
.flash-error { border-color: #ef6f7799; border-left: 4px solid var(--bad); }
.flash-success { border-color: #57c99399; border-left: 4px solid var(--ok); }
progress { width: 100%; height: 8px; accent-color: var(--amber); }
.beta-note { display: flex; gap: 8px; align-items: baseline; flex-wrap: wrap; color: var(--muted); }
.mail-body { white-space: pre-wrap; margin: 8px 0 0; }

/* Mise en route */
.steps { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.steps li { display: flex; gap: 10px; align-items: baseline; }
.steps li .pill { flex: none; }

/* Onglets (rubrique Membres) */
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 18px; overflow-x: auto; }
.tabs .tab { padding: 9px 14px; color: var(--muted); border-bottom: 2px solid transparent; white-space: nowrap;
  font-family: var(--display); font-weight: 500; }
.tabs .tab:hover { color: var(--text); text-decoration: none; }
.tabs .tab.active { color: var(--text); border-bottom-color: var(--amber); }

/* ------------------------------------------------------------------ téléphone et tablette */
@media (max-width: 900px) {
  .split { grid-template-columns: 1fr; }
  .content { padding: 22px 20px 48px; }
}
@media (max-width: 760px) {
  .topbar { padding: 0 12px; gap: 10px; }
  .topnav { gap: 12px; font-size: 13.5px; }
  .topbar { height: auto; min-height: 56px; flex-wrap: wrap; padding: 8px 12px; }
  .with-faction .topbar { flex-wrap: nowrap; }
  .js .with-faction .topnav { display: none; }   /* dans le tiroir (voir .drawer-account) */
  .topbar .pill.beta { font-size: 11.5px; }
  .content { padding: 18px 16px 40px; }
  h1 { font-size: 23px; }
  .menu-toggle { display: inline-grid; place-items: center; width: 40px; height: 40px; border: 1px solid var(--line);
    border-radius: 8px; background: var(--panel); color: var(--text); cursor: pointer; flex: none; }
  .menu-icon, .menu-icon::before, .menu-icon::after { display: block; width: 18px; height: 2px; background: currentColor;
    border-radius: 2px; position: relative; content: ""; }
  .menu-icon::before { position: absolute; top: -6px; } .menu-icon::after { position: absolute; top: 6px; }
  /* Sans JavaScript, le menu reste affiché en haut de page ; avec, il devient un tiroir. */
  .layout { flex-direction: column; }
  .sidebar { position: static; width: auto; height: auto; border-right: 0; border-bottom: 1px solid var(--line); }
  .js .with-faction .sidebar { position: fixed; top: 56px; left: 0; bottom: 0; width: min(300px, 86vw); z-index: 30;
    transform: translateX(-102%); border-right: 1px solid var(--line);
    background: #182033; box-shadow: 12px 0 40px #00000066; }
  .js .with-faction.menu-open .sidebar { transform: none; }
  /* animation seulement après une action (sinon le menu « glisse » à chaque chargement de page) */
  .js .with-faction.menu-animated .sidebar { transition: transform .2s ease; }
  .js .with-faction .drawer-account { display: flex; flex-direction: column; gap: 2px; border-top: 1px solid var(--line);
    padding-top: 10px; margin-top: 10px; }
  .drawer-account a, .drawer-account .link { padding: 8px 12px; color: var(--muted); text-align: left; font-size: 15px; }
  .js .with-faction.menu-open::after { content: ""; position: fixed; inset: 56px 0 0; background: #0a0e1699; z-index: 25; }
  .table th, .table td { padding: 9px 10px; }
  table.table:not(.table-wrap .table) { display: block; overflow-x: auto; max-width: 100%; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .stat strong { font-size: 24px; }
}
@media (max-width: 420px) {
  .grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}

/* ------------------------------------------------------------------ tableau de bord */
.overview .stat { min-height: 116px; display: flex; flex-direction: column; gap: 4px; }
.overview .stat strong { margin: 0; }
.stat-text { font-size: 19px !important; line-height: 1.25 !important; display: flex !important; align-items: center; gap: 8px; }
.dot { width: 9px; height: 9px; border-radius: 50%; background: var(--muted); display: inline-block; flex: none; }
.dot.ok { background: var(--ok); box-shadow: 0 0 0 4px #57c99326; }
.agenda, .feed { list-style: none; margin: 0 0 20px; padding: 0; }
.agenda li { display: flex; gap: 14px; align-items: center; padding: 10px 0; border-bottom: 1px solid #263048; }
.agenda-date { flex: none; width: 88px; font: 600 14px/1.2 var(--display); color: var(--amber); display: flex; flex-direction: column; }
.agenda-date small { color: var(--muted); font-weight: 500; }
.feed li { padding: 8px 0; border-bottom: 1px solid #263048; font-size: 14px; }
.quota-line { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; padding: 10px 0; color: var(--text);
  border-bottom: 1px solid #263048; }
.quota-line progress { grid-column: 1 / -1; }
.quota-line:hover { text-decoration: none; color: var(--amber); }
.form-row .button { min-height: 40px; }

/* ------------------------------------------------------------------ V19.2 : personnalisation Discord */
.flash-info { border-color: #38d6f066; border-left: 4px solid var(--amethyst); }
.channel-table input { width: 100%; min-width: 0; }
.channel-table .emoji-input { width: 4.2em; text-align: center; font-size: 18px; }
.rename-list li { display: block; }
.rename-list .adopt { margin: 6px 0 0 26px; }
.custom-panel { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: 22px; align-items: start;
  margin-bottom: 18px; }
.custom-panel h3 { margin: 0; }
.custom-preview { min-width: 0; }
@media (max-width: 1000px) { .custom-panel { grid-template-columns: minmax(0, 1fr); } }

/* Aperçu d'un message Discord (thème sombre de Discord, sans style en ligne : la couleur passe par un SVG) */
.dc-msg { display: flex; gap: 12px; background: #313338; color: #dbdee1; border-radius: 8px; padding: 14px 14px 16px;
  font: 400 14.5px/1.4 "gg sans", "Noto Sans", "Segoe UI", system-ui, sans-serif; overflow-wrap: anywhere; }
.dc-avatar { flex: none; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center;
  background: #6f5cd8; color: #fff; font: 600 13px var(--display); }
.dc-body { min-width: 0; flex: 1; }
.dc-head { display: flex; gap: 6px; align-items: center; margin-bottom: 4px; }
.dc-head strong { color: #f2f3f5; }
.dc-bot { background: #5865f2; color: #fff; font-size: 10px; font-weight: 700; padding: 1px 4px; border-radius: 3px; }
.dc-pin { color: #949ba4; font-size: 12px; }
.dc-embed { position: relative; background: #2b2d31; border-radius: 4px; padding: 10px 14px 12px 16px; max-width: 520px; }
.dc-bar { position: absolute; left: 0; top: 0; width: 4px; height: 100%; border-radius: 4px 0 0 4px; }
.dc-author { font-size: 13px; font-weight: 600; color: #f2f3f5; margin-bottom: 6px; }
.dc-title { font-weight: 700; color: #f2f3f5; font-size: 16px; margin-bottom: 6px; }
.dc-desc { font-size: 14px; margin-bottom: 8px; }
.dc-fields { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px 12px; margin: 6px 0 8px; font-size: 14px; }
.dc-field.wide { grid-column: 1 / -1; }
.dc-fname { font-weight: 700; color: #f2f3f5; margin-bottom: 2px; }
.dc-footer { font-size: 12px; color: #b5bac1; margin-top: 6px; }
.dc-ts { background: #3f4147; border-radius: 3px; padding: 0 2px; }
.dc-mention { color: #c9cdfb; background: #5865f24d; border-radius: 3px; padding: 0 2px; }
.dc-msg code { background: #1e1f22; border-radius: 3px; padding: 0 3px; font-size: 13px; }
.dc-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.dc-btn { display: inline-flex; align-items: center; gap: 4px; min-height: 32px; padding: 2px 14px; border-radius: 3px;
  font-size: 14px; font-weight: 500; color: #fff; background: #4e5058; }
.dc-btn.primary { background: #5865f2; }
.dc-btn.success { background: #248046; }
.dc-btn.danger { background: #da373c; }
.dc-select { display: flex; align-items: center; gap: 8px; width: 100%; max-width: 420px; min-height: 40px; padding: 0 12px;
  border-radius: 4px; background: #1e1f22; color: #949ba4; }
.dc-select small { margin-left: auto; }
@media (max-width: 520px) { .dc-fields { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
@media (max-width: 760px) {
  .channel-table thead { display: none; }
  .channel-table tr { display: grid; grid-template-columns: 4.6em minmax(0, 1fr); gap: 6px 10px; padding: 12px;
    border-bottom: 1px solid var(--line); }
  .channel-table td { display: block; padding: 0; border: 0; }
  .channel-table td:first-child, .channel-table td:nth-child(4), .channel-table td:nth-child(5) { grid-column: 1 / -1; }
  .channel-table td:first-child { font-weight: 700; }
  .channel-table td:nth-child(4)::before { content: "Salon actuel : "; color: var(--muted); }
}

/* ------------------------------------------------------------------ V20 : notifications, filtres, pagination */
.bell .count { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px; margin-left: 2px;
  border-radius: 999px; background: var(--amber); color: var(--amber-ink); font-size: 12px; font-weight: 700; }
.notif-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.notif-item { all: unset; box-sizing: border-box; display: grid; gap: 2px; width: 100%; padding: 12px 14px; cursor: pointer;
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); }
.notif-item:hover, .notif-item:focus-visible { border-color: var(--amethyst); }
.notif-list .unread .notif-item { border-left: 4px solid var(--amber); }
.notif-title { font-weight: 700; display: flex; gap: 8px; align-items: center; }
.filters { margin-bottom: 14px; align-items: end; }
.pager { display: flex; gap: 12px; align-items: center; justify-content: center; margin: 16px 0; flex-wrap: wrap; }
.nowrap { white-space: nowrap; }
.dot.warn { background: var(--amber); }
.formula { display: grid; gap: 4px; padding: 12px 14px; border: 1px solid var(--line); border-left: 4px solid var(--amethyst);
  border-radius: var(--radius); background: var(--raised); }
fieldset { border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 14px; margin: 0; }
legend { padding: 0 6px; font-weight: 700; }
.podium { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; align-items: end; margin: 18px 0; }
.podium-step { display: grid; justify-items: center; gap: 2px; padding: 14px 10px; border: 1px solid var(--line);
  border-radius: var(--radius); background: var(--panel); text-align: center; overflow-wrap: anywhere; }
.podium-step.p1 { order: 2; padding-top: 26px; border-color: #f2a93b88; }
.podium-step.p2 { order: 1; }
.podium-step.p3 { order: 3; }
.podium-step .medal { font-size: 26px; }
.move { font-size: 13px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.move.up { color: var(--ok); }
.move.down { color: var(--bad); }
.move.same, .move.new { color: var(--muted); }
.form-row.compact { gap: 6px; flex-wrap: wrap; }
.form-row.compact input { min-width: 0; flex: 1 1 140px; }
.split.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 900px) { .split.three { grid-template-columns: minmax(0, 1fr); } }
ul.plain { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.row-line { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; justify-content: space-between; }
ul.plain.card { padding: 12px 14px; }
.inline-details > summary { list-style: none; cursor: pointer; }
.inline-details > summary::-webkit-details-marker { display: none; }
.inline-details[open] { display: grid; gap: 8px; min-width: 220px; }
.compact-form { gap: 6px; }
.compact-form input { min-width: 0; }
.availability-table .slot { display: inline-flex; gap: 4px; align-items: center; white-space: nowrap; }
.availability-table input[type=time] { width: 7.2em; min-width: 0; }
.heat td { width: 6%; }
.heat .h1 { background: #38d6f01f; }
.heat .h2 { background: #38d6f03d; }
.heat .h3 { background: #38d6f05c; }
.heat .h4 { background: #38d6f080; color: #fff; font-weight: 700; }
.span-all { grid-column: 1 / -1; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 14px 0; }
.chip { padding: 4px 12px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); }
.chip.active { border-color: var(--amber); color: var(--text); }
.chip:hover { text-decoration: none; color: var(--text); }
dl.answers { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2px; margin: 0; }
dl.answers dt { font-weight: 700; margin-top: 8px; }
dl.answers dd { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; }
ul.timeline { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
pre.transcript { white-space: pre-wrap; overflow-wrap: anywhere; max-height: 420px; overflow: auto; font-size: 13px; }
.questions-table input, .questions-table select { min-width: 0; width: 100%; }

/* V20 — avatars Discord dans les classements et la validation des présences */
.avatar { width: 24px; height: 24px; border-radius: 50%; vertical-align: middle; margin-right: 8px; flex: none;
  background: var(--line); object-fit: cover; }
.who { white-space: nowrap; }
.podium-step .avatar { width: 40px; height: 40px; margin: 0 auto 6px; display: block; }
.selector { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 16px; }
.selector a { padding: 6px 12px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); font-size: 14px; }
.selector a.active { color: var(--text); border-color: var(--amethyst); background: #38d6f014; }
.points-formula { font-size: 14px; color: var(--muted); }

/* V20.1 : choix de plusieurs rôles */
.check-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 6px 14px; }
.check-grid label.choice { overflow-wrap: anywhere; }
.table tr.group-row th { padding-top: 14px; font-size: 12.5px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); background: transparent; }

/* ==================================================================================================
   V20.3 — design « Nexus » retravaillé : bleu marine + anthracite pour les surfaces, violet réservé aux actions
   et à l'élément actif, cyan pour l'information. Dégradés discrets, cartes en relief, icônes, animations
   légères (désactivées si l'utilisateur réduit les animations). Remplace la couche V20.2.
   ================================================================================================== */
:root {
  --night: #0a1120;          /* bleu marine profond : fond */
  --night-2: #0d1628;
  --panel: #141a24;          /* anthracite : cartes */
  --panel-2: #181f2b;
  --raised: #1d2533;         /* survol, champs */
  --line: #262f3f;
  --line-2: #323d51;
  --text: #e8ecf4;
  --muted: #98a3b8;
  --amber: #7c5cff;          /* violet : action principale, élément actif (nom historique conservé) */
  --amber-ink: #ffffff;
  --violet-2: #9a82ff;
  --amethyst: #36d3ee;       /* cyan : liens, information */
  --violet-soft: #7c5cff1f;
  --cyan-soft: #36d3ee1a;
  --radius: 12px;
  --shadow: 0 1px 0 #ffffff08 inset, 0 10px 30px -18px #000000cc;
  --shadow-hover: 0 1px 0 #ffffff0d inset, 0 16px 36px -18px #000000e6, 0 0 0 1px #7c5cff40;
  --content-max: 1200px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}
body { background: radial-gradient(1200px 600px at 85% -10%, #1a2550 0%, transparent 60%),
  radial-gradient(900px 500px at -10% 110%, #0f2a3a 0%, transparent 55%), var(--night); background-attachment: fixed; }

/* ---------- cadre */
.topbar { background: #0a1120d9; border-bottom-color: #ffffff0f; }
.brand { display: inline-flex; align-items: center; gap: 8px; color: var(--text); }
.brand::before { content: ""; width: 22px; height: 22px; border-radius: 7px; flex: none;
  background: conic-gradient(from 210deg, var(--amber), var(--amethyst), var(--amber)); box-shadow: 0 0 14px #7c5cff66; }
.brand:hover { color: #fff; }
.topnav .button.small { color: #fff; }
.content { margin: 0 auto; width: 100%; max-width: var(--content-max); padding: 30px 36px 64px; }
.layout > .content { flex: 1 1 auto; }
.sidebar { background: linear-gradient(180deg, #0f1726 0%, #0b1220 100%); border-right-color: #ffffff0f; padding: 18px 14px; }

/* ---------- serveur Discord (haut du menu) */
.server-card { display: flex; gap: 12px; align-items: center; padding: 12px; margin-bottom: 10px; border-radius: 14px;
  color: var(--text); background: linear-gradient(135deg, #18213a, #121a29); border: 1px solid var(--line);
  box-shadow: var(--shadow); transition: border-color .2s var(--ease), transform .2s var(--ease); }
.server-card:hover { text-decoration: none; border-color: #36d3ee55; transform: translateY(-1px); }
.server-avatar { flex: none; width: 44px; height: 44px; border-radius: 14px; object-fit: cover; background: var(--raised); }
.server-avatar-fallback { display: grid; place-items: center; font: 600 16px/1 var(--display); color: #fff; letter-spacing: .04em;
  background: linear-gradient(140deg, #5b44d6 0%, #2b6f9e 60%, #1fa9c4 100%); }
.server-text { display: flex; flex-direction: column; min-width: 0; }
.server-text strong { font: 600 15.5px/1.25 var(--display); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.server-text small { color: var(--muted); font-size: 12.5px; display: flex; align-items: center; gap: 6px; }
.server-text .dot { width: 7px; height: 7px; }
.sidebar-foot { margin-top: auto; display: flex; flex-direction: column; gap: 6px; padding-top: 12px; border-top: 1px solid var(--line); }
.access-pill { display: inline-flex; align-items: center; gap: 6px; align-self: flex-start; margin: 0 10px; padding: 3px 10px;
  font-size: 12.5px; color: var(--amethyst); background: var(--cyan-soft); border: 1px solid #36d3ee33; border-radius: 999px; }
.access-pill .icon { width: 14px; height: 14px; }
.switch { display: flex; align-items: center; gap: 8px; margin-top: 0; }

/* ---------- icônes */
.icon { flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round;
  vertical-align: -3px; }
h1 .icon, h2 .icon, h3 .icon { margin-right: 8px; color: var(--amethyst); }
.button .icon { width: 16px; height: 16px; }

/* ---------- menu latéral : page active nette, sans grande surface violette */
.side-nav a { display: flex; align-items: center; gap: 10px; border-left: 0; padding: 8px 12px; border-radius: 10px;
  transition: background-color .15s var(--ease), color .15s var(--ease), transform .15s var(--ease); position: relative; }
.side-nav a .icon { color: #6f7a90; transition: color .15s var(--ease); }
.side-nav a:hover { background: #ffffff08; color: var(--text); transform: translateX(2px); }
.side-nav a:hover .icon { color: var(--amethyst); }
.side-nav a.active { color: #fff; background: linear-gradient(90deg, #7c5cff24, #7c5cff08 70%, transparent);
  box-shadow: inset 0 0 0 1px #7c5cff33; }
.side-nav a.active::before { content: ""; position: absolute; left: -14px; top: 8px; bottom: 8px; width: 3px; border-radius: 0 3px 3px 0;
  background: linear-gradient(180deg, var(--violet-2), var(--amethyst)); }
.side-nav a.active .icon { color: var(--violet-2); }
.nav-group { text-transform: uppercase; letter-spacing: .08em; font-size: 11px; color: #6d788e; margin: 18px 12px 6px; }

/* ---------- titres et hiérarchie */
h1 { font-size: 30px; letter-spacing: -.005em; margin-bottom: 20px; }
h1::after { display: none; }
h2 { font-size: 19px; color: #f2f4fa; }
h3 { font-size: 16px; color: #e2e6f0; }
.eyebrow { display: inline-flex; align-items: center; gap: 6px; text-transform: uppercase; letter-spacing: .1em;
  font: 600 11.5px/1.3 var(--display); color: var(--amethyst); margin: 0 0 6px; }
.content > h1:first-child, .page-hero h1 { background: linear-gradient(90deg, #fff 30%, #c7bbff 75%, #8fe8f7);
  -webkit-background-clip: text; background-clip: text; color: transparent; }
.page-hero { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 22px; }
.page-hero h1 { margin: 0 0 4px; }
.page-hero p { margin: 0; }
.head, .page-head { margin-bottom: 20px; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.card-head h2, .card-head h3 { margin: 0; display: flex; align-items: center; }
.link-more { display: inline-flex; align-items: center; gap: 4px; font-size: 14px; color: var(--amethyst); }
.link-more .icon { width: 15px; height: 15px; transition: transform .15s var(--ease); }
.link-more:hover { text-decoration: none; }
.link-more:hover .icon { transform: translateX(3px); }

/* ---------- cartes */
.card { background: linear-gradient(180deg, var(--panel-2), var(--panel)); border-color: var(--line); box-shadow: var(--shadow);
  border-radius: var(--radius); }
.card + .card, section.card, .card.stack { margin-bottom: 18px; }
a.tile, a.card { transition: transform .2s var(--ease), box-shadow .2s var(--ease), border-color .2s var(--ease); }
a.tile:hover, a.card:hover { transform: translateY(-2px); box-shadow: var(--shadow-hover); border-color: #7c5cff55; background: linear-gradient(180deg, #1b2230, var(--panel)); text-decoration: none; }
.duo { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin-bottom: 18px; }
.duo > .card { margin: 0; }
.split { gap: 20px; }

/* ---------- statistiques du tableau de bord */
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(175px, 1fr)); gap: 16px; margin-bottom: 18px; }
.stat-card { display: flex; flex-direction: column; gap: 4px; min-height: 140px; position: relative; overflow: hidden; color: var(--text); }
.stat-card::after { content: ""; position: absolute; right: -40px; top: -40px; width: 120px; height: 120px; border-radius: 50%;
  background: radial-gradient(circle, #36d3ee14, transparent 70%); pointer-events: none; }
.stat-label { color: var(--muted); font-size: 13.5px; }
.stat-value { font: 600 30px/1.1 var(--display); font-variant-numeric: tabular-nums; margin-top: 2px; }
.stat-value.stat-text { font-size: 19px; line-height: 1.25; }
.stat-sub { color: var(--muted); font-size: 13px; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.stat-card progress { margin-top: auto; }
.stat-card.alerting { border-color: #ef6f7766; }
.stat-icon { display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 11px; margin-bottom: 6px;
  color: var(--amethyst); background: var(--cyan-soft); border: 1px solid #36d3ee2e; }
.stat-icon .icon { width: 19px; height: 19px; margin: 0; }
.stat-icon.violet { color: var(--violet-2); background: var(--violet-soft); border-color: #7c5cff33; }
.stat-icon.amber { color: #f2b45a; background: #f2b45a17; border-color: #f2b45a33; }
.stat-icon.green { color: var(--ok); background: #57c99317; border-color: #57c99333; }
.stat-icon.red { color: var(--bad); background: #ef6f7717; border-color: #ef6f7744; }
.stat-icon.grey { color: var(--muted); background: #ffffff08; border-color: var(--line); }
.onboarding { border-color: #36d3ee33; }
.checklist li { align-items: center; }
.check-dot { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; flex: none;
  border: 2px solid var(--line-2); }
.check-dot.ok { border-color: var(--ok); background: #57c99322; color: var(--ok); }
.check-dot .icon { width: 13px; height: 13px; stroke-width: 2.6; }
.checklist li.done .muted { text-decoration: line-through; text-decoration-color: #ffffff30; }
progress, progress.meter { appearance: none; -webkit-appearance: none; height: 8px; border: 0; border-radius: 999px;
  background: #ffffff0f; overflow: hidden; }
progress::-webkit-progress-bar { background: #ffffff0f; border-radius: 999px; }
progress::-webkit-progress-value { background: linear-gradient(90deg, var(--amber), var(--amethyst)); border-radius: 999px; }
progress::-moz-progress-bar { background: linear-gradient(90deg, var(--amber), var(--amethyst)); border-radius: 999px; }
.mini-podium { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.mini-podium li { display: grid; grid-template-columns: 30px 1fr auto; align-items: center; gap: 10px; padding: 10px 12px;
  border-radius: 10px; background: #ffffff05; border: 1px solid var(--line); }
.mini-podium li.place-1 { background: linear-gradient(90deg, #f2b45a1c, transparent); border-color: #f2b45a40; }
.mini-podium .medal { font-size: 20px; }
.mini-podium .who-name { font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mini-podium .score { font: 600 14px/1 var(--display); color: var(--amethyst); }
.todo-card { border-color: #e3c35b40; }
.timeline-feed li { display: flex; gap: 10px; }
.table.compact td { padding: 7px 10px; }

/* ---------- boutons */
.button { border-radius: 10px; clip-path: none; background: linear-gradient(135deg, #8a6cff, #6a4cf0); box-shadow: 0 6px 18px -8px #7c5cffaa;
  transition: transform .15s var(--ease), box-shadow .15s var(--ease), filter .15s var(--ease), background-color .15s; }
.button:hover { background: linear-gradient(135deg, #9a80ff, #7458f5); box-shadow: 0 10px 24px -10px #7c5cffcc; transform: translateY(-1px); }
.button:active { transform: translateY(0); }
.button.big { min-height: 48px; padding: 12px 22px; font-size: 16px; }
.button.ghost { background: #ffffff05; border: 1px solid var(--line-2); box-shadow: none; }
.button.ghost:hover { background: #ffffff0c; border-color: #4a5670; box-shadow: none; }
.button.danger { background: transparent; box-shadow: none; }
.button.danger:hover { background: #ef6f771a; box-shadow: none; }
.button.small { border-radius: 8px; }

/* ---------- formulaires et filtres */
input, select, textarea { background: #0b1322; border-color: var(--line-2); border-radius: 10px;
  transition: border-color .15s var(--ease), box-shadow .15s var(--ease), background-color .15s; }
input:hover, select:hover, textarea:hover { border-color: #46526a; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--amethyst); box-shadow: 0 0 0 3px var(--cyan-soft); background: #0d1626; }
label { color: #aab4c8; }
fieldset { border-radius: 12px; border-color: var(--line); background: #ffffff03; }
.chip, .selector a { transition: all .15s var(--ease); }
.chip:hover, .selector a:hover { border-color: #36d3ee66; color: var(--text); text-decoration: none; }
.chip.active, .selector a.active { border-color: #7c5cff88; background: var(--violet-soft); color: #fff; }
details summary { color: var(--amethyst); }
details.fold { border: 1px solid var(--line); border-radius: 12px; padding: 4px 14px; background: #ffffff03; }
details.fold > summary { font: 600 15px/1.4 var(--display); color: var(--text); padding: 8px 0; }
details.fold > summary .muted { font: 400 13px var(--body); }
.channel-cell { display: flex; gap: 8px; align-items: center; }
.channel-emoji { font-size: 18px; }
.check-grid label.choice:hover { color: #fff; }

/* ---------- tableaux */
.table-wrap { border-radius: var(--radius); background: var(--panel); box-shadow: var(--shadow); }
.table th { background: #161e2c; color: #8f9ab0; text-transform: uppercase; letter-spacing: .06em; font-size: 11.5px; }
.table td { border-bottom-color: #1f2737; }
.table tbody tr { transition: background-color .12s; }
.table tbody tr:hover td { background: #36d3ee08; }

/* ---------- onglets et états */
.tabs { border-bottom-color: var(--line); gap: 2px; }
.tabs .tab { border-radius: 8px 8px 0 0; transition: color .15s, background-color .15s, border-color .15s; }
.tabs .tab:hover { background: #ffffff06; border-bottom-color: #36d3ee66; }
.tabs .tab.active { color: #fff; border-bottom-color: var(--amethyst); background: linear-gradient(180deg, transparent, #36d3ee0d); }
.flash { border-radius: 12px; box-shadow: var(--shadow); animation: fm-in .35s var(--ease) both; }
.pill { background: #ffffff05; }
.notif-item .muted { white-space: pre-line; }

/* ---------- fenêtre de confirmation */
.confirm-dialog { border: 1px solid var(--line-2); border-radius: 16px; padding: 0; background: linear-gradient(180deg, #19202d, #121823);
  color: var(--text); width: min(440px, calc(100vw - 32px)); box-shadow: 0 30px 80px -20px #000, 0 0 0 1px #7c5cff22; }
.confirm-dialog::backdrop { background: #050912b3; backdrop-filter: blur(3px); }
.confirm-dialog[open] { animation: fm-pop .18s var(--ease) both; }
.confirm-box { padding: 22px; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.confirm-title { font: 600 18px/1.3 var(--display); margin: 0; }
.confirm-text { margin: 0 0 8px; color: #c9d1e0; }
.confirm-actions { display: flex; justify-content: flex-end; gap: 10px; flex-wrap: wrap; }

/* ---------- pages d'accès (connexion, inscription, faction) */
.content.solo { max-width: var(--content-max); }
.auth-card { margin: 7vh auto 32px; padding: 30px; max-width: 460px; border-color: #ffffff12; box-shadow: 0 30px 60px -30px #000, 0 0 0 1px #7c5cff1f; }
.auth-card h1 { text-align: center; font-size: 26px; background: linear-gradient(90deg, #fff, #c7bbff, #8fe8f7);
  -webkit-background-clip: text; background-clip: text; color: transparent; }
.auth-card .button:not(.ghost):not(.danger) { width: 100%; }
.auth-card > p { text-align: center; margin-left: auto; margin-right: auto; }
.auth-card > p:last-child { margin-bottom: 0; }

/* ---------- page d'accueil publique */
.landing { display: flex; flex-direction: column; gap: 72px; padding: 24px 0 40px; }
.hero { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 40px; align-items: center; }
.hero-title { font-size: clamp(32px, 5vw, 52px); line-height: 1.08; margin: 0 0 16px; color: #fff; }
.gradient-text { background: linear-gradient(90deg, var(--violet-2), var(--amethyst)); -webkit-background-clip: text;
  background-clip: text; color: transparent; }
.lead { font-size: 17.5px; color: #c6cede; max-width: 62ch; }
.lead.center { margin: 0 auto 26px; text-align: center; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin: 22px 0 12px; }
.cta-row.center { justify-content: center; }
.hero-note { font-size: 14px; color: var(--muted); }
.hero-shot, .shot { margin: 0; border-radius: 16px; overflow: hidden; border: 1px solid #ffffff14;
  box-shadow: 0 40px 80px -40px #000, 0 0 0 1px #7c5cff26, 0 0 60px -20px #36d3ee33; background: var(--panel); }
.hero-shot { transform: perspective(1400px) rotateY(-6deg) rotateX(2deg); transition: transform .5s var(--ease); }
.hero-shot:hover { transform: none; }
.hero-shot img, .shot img { display: block; width: 100%; height: auto; }
.section-title { text-align: center; font-size: clamp(24px, 3vw, 32px); margin: 0 0 14px; }
.section-title.left { text-align: left; }
.steps-row, .feature-grid, .plan-grid { display: grid; gap: 16px; }
.steps-row { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.feature-grid { grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.plan-grid { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); max-width: 820px; margin: 0 auto; }
.step-card, .feature-card { padding: 20px; border-radius: 14px; background: linear-gradient(180deg, var(--panel-2), var(--panel));
  border: 1px solid var(--line); box-shadow: var(--shadow); transition: transform .2s var(--ease), border-color .2s var(--ease); }
.step-card:hover, .feature-card:hover { transform: translateY(-3px); border-color: #36d3ee44; }
.step-card h3, .feature-card h3 { margin: 8px 0 6px; }
.step-card p, .feature-card p { margin: 0; font-size: 14.5px; }
.step-num { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; color: #fff;
  font: 600 16px/1 var(--display); background: linear-gradient(135deg, var(--amber), #2a9fc0); }
.split-feature { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 36px; align-items: center; margin-bottom: 44px; }
.split-feature.reverse > div { order: 2; }
.check-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.check-list li { display: flex; gap: 10px; align-items: flex-start; }
.check-list .icon { color: var(--ok); margin-top: 3px; }
.benefit h3 { display: flex; align-items: center; }
.plan-card .price { font: 600 30px/1.1 var(--display); margin: 6px 0 14px; }
.plan-card .price small { font-size: 14px; color: var(--muted); }
.plan-card.featured { border-color: #7c5cff66; box-shadow: var(--shadow-hover); }
.beta-card { max-width: 720px; margin: 0 auto; text-align: center; border-color: #36d3ee44; }
.beta-card h3 { justify-content: center; display: flex; align-items: center; }
.final-cta { text-align: center; padding: 36px 20px; background: radial-gradient(600px 200px at 50% 0%, #7c5cff22, transparent),
  linear-gradient(180deg, var(--panel-2), var(--panel)); }
.final-cta h2 { margin-top: 0; }

/* ---------- animations légères */
@keyframes fm-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@keyframes fm-pop { from { opacity: 0; transform: scale(.97); } to { opacity: 1; transform: none; } }
.content > * { animation: fm-in .25s var(--ease) both; }
.content > *:nth-child(2) { animation-delay: .03s; } .content > *:nth-child(3) { animation-delay: .06s; }
.content > *:nth-child(n+4) { animation-delay: .09s; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .hero-shot { transform: none; }
}

/* ---------- adaptation téléphone */
@media (max-width: 1100px) { .content { padding: 26px 24px 56px; } }
@media (max-width: 900px) {
  .hero, .split-feature { grid-template-columns: 1fr; }
  .split-feature.reverse > div { order: 0; }
  .hero-shot { transform: none; }
  .duo { grid-template-columns: 1fr; }
  .steps-row { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .content { padding: 18px 16px 44px; }
  h1 { font-size: 24px; }
  .landing { gap: 48px; }
  .stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .stat-card { min-height: 0; padding: 14px; }
  .stat-value { font-size: 24px; }
  .js .with-faction .sidebar { background: #0d1524; }
  .side-nav a.active::before { left: -14px; }
  .topnav .button.small { padding: 4px 10px; }
}
@media (max-width: 420px) { .stat-grid { grid-template-columns: 1fr; } .cta-row .button { width: 100%; } }
.card-head h2 .muted { margin-left: 10px; font-weight: 400; }
.card > input[type=hidden] + h2, .card > input[type=hidden] + h3 { margin-top: 0; }

/* ---------- V20.4 : Base Claim Builder (page Découvrir) */
.status-pill { display: inline-flex; align-items: center; padding: 2px 9px; border-radius: 999px; font: 600 11px/1.5 var(--display);
  letter-spacing: .04em; text-transform: uppercase; }
.status-pill.dev { color: #f2b45a; background: #f2b45a17; border: 1px solid #f2b45a44; }
.status-pill { white-space: nowrap; }
.bcb-card-head { flex-wrap: wrap; }
.bcb-card-head .status-pill { font-size: 10px; padding: 1px 7px; letter-spacing: .02em; }
.bcb { position: relative; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 28px 40px; align-items: center;
  padding: 40px; border-radius: 22px; overflow: hidden; border: 1px solid #7c5cff3d;
  background: radial-gradient(700px 320px at 0% 0%, #7c5cff26, transparent 60%), radial-gradient(600px 300px at 100% 100%, #36d3ee1f, transparent 60%),
  linear-gradient(180deg, #121a2c, #0d1424); box-shadow: 0 40px 80px -50px #000; }
.bcb-glow { position: absolute; inset: -40% -10% auto auto; width: 420px; height: 420px; border-radius: 50%;
  background: radial-gradient(circle, #7c5cff33, transparent 65%); pointer-events: none; animation: fm-float 9s ease-in-out infinite; }
.bcb-head { position: relative; }
.bcb-title { font-size: clamp(30px, 4.6vw, 50px); letter-spacing: .06em; margin: 4px 0 6px; line-height: 1.05;
  background: linear-gradient(90deg, #fff 0%, #c7bbff 45%, var(--amethyst) 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.bcb-sub { font: 600 19px/1.4 var(--display); color: #e2e6f2; margin-bottom: 12px; }
.bcb-visual { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 10px; position: relative; }
.bcb-visual figcaption { font-size: 12px; color: var(--muted); }
.iso { display: grid; gap: 6px; transform: rotateX(55deg) rotateZ(-45deg); transform-style: preserve-3d; padding: 30px 0 10px; }
.iso-row { display: grid; grid-template-columns: repeat(6, 34px); gap: 6px; }
.iso-cell { width: 34px; height: 34px; border-radius: 5px; background: #1c2538; border: 1px solid #2b3550;
  box-shadow: 0 6px 0 #0c1220; transition: transform .3s var(--ease), background .3s; }
.iso-cell.w { background: linear-gradient(135deg, #8a6cff, #5b44d6); border-color: #9a82ff; box-shadow: 0 10px 0 #3c2d97; transform: translateZ(10px); }
.iso-cell.d { background: linear-gradient(135deg, #47dcf2, #1fa9c4); border-color: #8fe8f7; box-shadow: 0 8px 0 #12667a; }
.bcb:hover .iso-cell.w { transform: translateY(-4px); }
.bcb-grid { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 14px; position: relative; }
.bcb-card { padding: 18px; border-radius: 14px; background: #ffffff06; border: 1px solid #ffffff14; transition: transform .2s var(--ease), border-color .2s; }
.bcb-card:hover { transform: translateY(-3px); border-color: #7c5cff55; }
.bcb-card-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.bcb-card h3 { margin: 10px 0 8px; }
.muted-list li { color: #b9c2d4; font-size: 14px; }
.bcb-note { grid-column: 1 / -1; margin: 0; position: relative; }
.bcb-status { margin-top: 0; }
@keyframes fm-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(18px); } }
@media (max-width: 900px) { .bcb { grid-template-columns: 1fr; padding: 26px 20px; } .bcb-visual { order: -1; } }
@media (max-width: 420px) { .iso-row { grid-template-columns: repeat(6, 26px); } .iso-cell { width: 26px; height: 26px; } }
