/* OCR · univers sombre, martial, texturé — mais lisible et rapide au téléphone. */
:root {
  --bg: #0f0f10; --panel: #18181a; --panel-2: #212124; --line: #303034; --line-2: #45454b;
  --text: #f1ede4; --muted: #a8a399; --red: #c8102e; --red-2: #e0233f; --gold: #e8b923;
  --ok: #3fae5a; --err: #e05252; --radius: 10px; --tap: 48px;
  --g1: #8b4fbf; --g2: #3a5bd9; --g3: #3cc8d6; --g4: #6bcb3d; --g5: #f2d43a; --g6: #f0922b; --g7: #e03a3a;
  --font-title: "Oswald", "Arial Narrow", Impact, sans-serif;
  --font-body: "Source Sans 3", "Segoe UI", system-ui, sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100vh; display: flex; flex-direction: column;
  color: var(--text); font: 17px/1.55 var(--font-body);
  background-color: var(--bg);
  /* filigrane discret, rappel des fiches du carnet */
  background-image:
    radial-gradient(circle at 20% 10%, rgba(200,16,46,.10), transparent 40%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .05 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
a { color: var(--gold); text-underline-offset: 3px; }
a:hover { color: #ffd34d; }
code { font-size: .85em; background: #0003; padding: 1px 5px; border-radius: 4px; word-break: break-word; }
.muted { color: var(--muted); }
.small { font-size: .9rem; }

/* En-tête */
.top {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  padding: 10px 16px; background: #000; border-bottom: 3px solid var(--red); position: sticky; top: 0; z-index: 5;
}
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; }
.brand-text { font-family: var(--font-title); text-transform: uppercase; font-size: 1.15rem; line-height: 1; letter-spacing: .02em; }
.brand-small { display: block; font-size: .7rem; color: var(--muted); letter-spacing: .12em; }
.brand-logo.asset-ph { width: 40px; height: 40px; font-size: 7px; }
.nav { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.nav a, .nav .link { color: var(--text); text-decoration: none; padding: 10px 10px; border-radius: 8px; font-weight: 600; font-size: .95rem; }
.nav a:hover, .nav .link:hover { background: var(--panel-2); color: var(--text); }
/* Section courante : texte doré, fond léger et trait doré dessous */
.nav a.on { color: var(--gold); background: #e8b9231f; box-shadow: inset 0 -3px 0 var(--gold); border-radius: 8px 8px 0 0; }
.nav a.on:hover { color: var(--gold); background: #e8b92333; }
.lang { display: inline-flex; border: 1px solid var(--line-2); border-radius: 8px; overflow: hidden; font-size: .8rem; font-weight: 700; }
.lang > * { padding: 7px 9px !important; font-size: .8rem !important; border-radius: 0 !important; }
.lang .on { color: #111; background: var(--gold); }
.lang a { color: var(--muted) !important; }
.inline { display: inline; margin: 0; }
button.link { background: none; border: 0; cursor: pointer; font: inherit; }

.wrap { width: 100%; max-width: 880px; margin: 0 auto; padding: 16px; flex: 1; }
.foot { display: flex; justify-content: space-between; gap: 12px; padding: 18px 16px; color: var(--muted);
  font-family: var(--font-title); text-transform: uppercase; letter-spacing: .08em; font-size: .8rem; border-top: 1px solid var(--line); }

/* Titres */
h1, h2, h3, .banner, .kicker, .tile strong { font-family: var(--font-title); font-weight: 600; letter-spacing: .02em; }
.hero { padding: 26px 4px 18px; }
.hero h1 { font-size: clamp(2rem, 7vw, 3.2rem); line-height: 1.05; margin: 4px 0 10px; text-transform: uppercase; }
.hero-small h1 { font-size: clamp(1.7rem, 6vw, 2.4rem); margin-bottom: 6px; }
.lead { font-size: 1.1rem; color: #d9d4c9; max-width: 36em; }
.kicker { margin: 0; color: var(--gold); text-transform: uppercase; font-size: .8rem; letter-spacing: .14em; }
.banner {
  display: inline-block; margin: 0 0 14px; padding: 6px 14px 5px; background: #000; color: #fff;
  text-transform: uppercase; font-size: 1.15rem; border-left: 5px solid var(--red); border-radius: 0;
}
h1.banner { font-size: 1.35rem; }
.sub { font-size: 1rem; text-transform: uppercase; color: var(--muted); margin: 22px 0 8px; letter-spacing: .06em; }

/* Boîte de suggestions (assets/js/suggest.js) */
.suggest-wrap { position: relative; width: 100%; }
.suggest { position: absolute; left: 0; right: 0; top: calc(100% + 4px); z-index: 6; list-style: none; margin: 0; padding: 4px;
  background: var(--panel-2); border: 1px solid var(--line-2); border-radius: 8px;
  max-height: min(300px, 50vh); overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch;
  box-shadow: 0 10px 24px #0009; }
.suggest [role=option] { display: flex; flex-direction: column; gap: 2px; min-height: var(--tap); justify-content: center;
  padding: 8px 10px; border-radius: 6px; cursor: pointer; font-weight: 400; }
.suggest [role=option]:hover, .suggest [aria-selected=true] { background: #ffffff14; }
.suggest [aria-selected=true] { outline: 2px solid var(--gold); outline-offset: -2px; }
.suggest strong { font-weight: 600; color: var(--text); }
.suggest mark { background: none; color: var(--gold); text-decoration: underline; text-underline-offset: 3px; }
.suggest [role=option] span, .suggest .empty { color: var(--muted); font-size: .85rem; }
.suggest .empty { padding: 10px; }

/* Fil d'Ariane */
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; margin: 2px 0 12px; font-size: .92rem; }
.crumbs a { color: var(--gold); text-decoration: none; padding: 6px 0; }
.crumbs a:hover { text-decoration: underline; }
.crumbs .sep { color: var(--muted); }
.crumbs [aria-current] { color: var(--muted); }

/* Panneaux */
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 16px; margin: 0 0 16px; }
.panel.narrow { max-width: 520px; margin-left: auto; margin-right: auto; }
.panel-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 4px; }
.panel-head .banner { margin-bottom: 8px; }
.head-actions { margin-top: 0; }
.card { border: 1px solid var(--line-2); border-radius: var(--radius); padding: 14px; margin: 0 0 12px; background: var(--panel-2); }
.card h3 { margin: 4px 0; font-size: 1.3rem; text-transform: uppercase; }
.note { border-left: 4px solid var(--gold); background: #e8b92314; padding: 10px 12px; border-radius: 0; }
.clan-head { display: flex; align-items: center; gap: 16px; border-left: 6px solid var(--clan); padding-left: 14px; border-radius: 0; }
.blason.asset-ph { width: 64px; height: 76px; flex: none; }
.jump { display: flex; gap: 6px; overflow-x: auto; padding: 2px 0 12px; scrollbar-width: none; }
.jump a { flex: none; padding: 8px 12px; border-radius: 999px; background: var(--panel-2); border: 1px solid var(--line); color: var(--text); text-decoration: none; font-size: .9rem; }

/* Listes */
.rows { list-style: none; margin: 0 0 12px; padding: 0; }
.rows > li { border-top: 1px solid var(--line); }
.rows > li:first-child { border-top: 0; }
.row { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 2px; min-height: var(--tap); }
.row > div { display: flex; flex-direction: column; min-width: 0; }
.row strong { overflow-wrap: anywhere; }
.row .muted { font-size: .9rem; }
.row-link { color: var(--text); text-decoration: none; border-radius: 8px; padding-left: 8px; padding-right: 8px; }
.row-link:hover { background: var(--panel-2); color: var(--text); }
.row-wrap { flex-wrap: wrap; }
.row-tags { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; align-items: center; }
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; margin-bottom: 16px; }
.tile { display: flex; flex-direction: column; gap: 4px; padding: 18px 16px; background: var(--panel); border: 1px solid var(--line);
  border-radius: var(--radius); color: var(--text); text-decoration: none; border-top: 3px solid var(--red); min-height: 96px; }
.tile:hover { border-color: var(--line-2); background: var(--panel-2); color: var(--text); }
.tile strong { text-transform: uppercase; font-size: 1.15rem; }
.tile span { color: var(--muted); font-size: .92rem; }
.count { display: inline-block; min-width: 1.6em; padding: 0 6px; border-radius: 999px; background: var(--red); color: #fff; font-size: .8rem; text-align: center; vertical-align: middle; }
.codes { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.cols { display: grid; gap: 8px 24px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.facts { display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; margin: 10px 0; }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; }
.log { list-style: none; padding: 0; margin: 0; }
.log li { border-top: 1px solid var(--line); padding: 10px 0; }
.log-head { display: flex; flex-direction: column; }
.log summary { cursor: pointer; color: var(--gold); font-size: .9rem; margin-top: 4px; }

/* Pastilles */
.pill { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: .78rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: .04em; border: 1px solid var(--line-2); color: var(--muted); white-space: nowrap; }
.pill-actif, .pill-approuvee { color: #8fe0a2; border-color: #3fae5a88; background: #3fae5a1f; }
.pill-dormance { color: #b9b3a8; border-color: #6a655c; background: #ffffff0d; }
.pill-refusee { color: #f2a0a0; border-color: #e0525288; }
.pill-todo { color: var(--gold); border-color: #e8b92388; }
.pill-minor { color: #9fc6ff; border-color: #3a5bd988; background: #3a5bd91f; }
.pill-role { color: var(--gold); border-color: #e8b92388; display: inline-flex; align-items: center; gap: 6px; }
.x { background: none; border: 0; color: inherit; cursor: pointer; font-size: 1rem; line-height: 1; padding: 0 2px; }

/* Formulaires */
.form { display: flex; flex-direction: column; gap: 12px; }
.form label { display: flex; flex-direction: column; gap: 6px; font-weight: 600; font-size: .95rem; }
.form-row { flex-direction: row; flex-wrap: wrap; align-items: flex-end; }
.form-row label { flex: 1 1 200px; }
.grid2 { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
input, select, textarea {
  width: 100%; min-height: var(--tap); padding: 10px 12px; font: inherit; font-weight: 400; color: var(--text);
  background: #0c0c0d; border: 1px solid var(--line-2); border-radius: 8px;
}
input:focus, select:focus, textarea:focus, button:focus-visible, a:focus-visible { outline: 3px solid var(--gold); outline-offset: 1px; }
input[type=color] { padding: 4px; width: 72px; }
input[type=checkbox], input[type=radio] { width: 24px; height: 24px; min-height: 0; accent-color: var(--red); flex: none; margin: 0; }
.check { flex-direction: row !important; align-items: center; font-weight: 400 !important; }
.switch { flex-direction: row !important; align-items: flex-start; gap: 12px !important; padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; }
.switch > span { display: flex; flex-direction: column; gap: 2px; }
.hint { color: var(--muted); font-weight: 400; font-size: .87rem; }
.field-err { color: var(--err); margin: -6px 0 0; font-size: .9rem; }
.links { text-align: center; margin: 16px 0 0; }

/* Boutons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: var(--tap); padding: 10px 18px;
  font: 600 1rem var(--font-title); letter-spacing: .05em; text-transform: uppercase; text-decoration: none; cursor: pointer;
  color: var(--text); background: var(--panel-2); border: 1px solid var(--line-2); border-radius: 8px;
}
.btn:hover { border-color: #6a6a72; color: var(--text); }
.btn-primary { background: var(--red); border-color: var(--red); color: #fff; }
.btn-primary:hover { background: var(--red-2); color: #fff; }
.btn-ghost { background: transparent; }
.btn-danger { background: transparent; border-color: var(--err); color: #f2a0a0; }
.btn-danger:hover { background: #e052521f; color: #fff; }
.btn:disabled { opacity: .6; cursor: wait; }
.panel-danger { border-color: #e0525255; }
.btn-small { min-height: 38px; padding: 6px 12px; font-size: .85rem; }
.btn-block { width: 100%; }
.actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 8px; }

.flash { padding: 12px 14px; border-radius: 8px; margin: 0 0 14px; border: 1px solid; }
.flash-ok { border-color: #3fae5a88; background: #3fae5a1c; }
.flash-err { border-color: #e0525288; background: #e052521c; }

/* Grades */
.table-scroll { overflow-x: auto; margin: 0 -4px; }
table.grades { border-collapse: collapse; width: 100%; min-width: 640px; }
.grades th, .grades td { padding: 4px; text-align: center; }
.grades tbody th { text-align: left; font-family: var(--font-body); font-weight: 600; font-size: .9rem; white-space: nowrap; padding-right: 10px; }
.grades input { min-height: 40px; min-width: 64px; padding: 6px 2px; text-align: center; }
.grades .mult th { color: var(--muted); font-weight: 400; }
.gdot { display: inline-flex; width: 32px; height: 32px; border-radius: 50%; align-items: center; justify-content: center;
  background: #fff; color: #111; font-family: var(--font-title); border: 4px solid var(--g); }

/* Placeholder d'asset officiel : clairement identifié, jamais un faux symbole */
.asset-ph {
  display: inline-flex; align-items: center; justify-content: center; text-align: center; overflow: hidden;
  border: 1px dashed #8a857a; border-radius: 6px; color: #8a857a; font: 9px/1.1 var(--font-body);
  background: repeating-linear-gradient(45deg, #ffffff08 0 6px, transparent 6px 12px); word-break: break-all; padding: 2px;
}

.dmet-rows .row { display: grid; grid-template-columns: minmax(0, 1fr) auto; }
.dmet-inputs { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.dmet-inputs input[type=number] { width: 110px; text-align: center; }
.dmet-inputs input::placeholder { color: #6f6a62; }
.dmet-state { font-size: .85rem; }
.period-edit { width: 100%; }
.period-edit summary { cursor: pointer; color: var(--gold); font-size: .9rem; padding: 4px 0; }
.period-edit .form-row { margin: 8px 0; }

@media (max-width: 520px) {
  .wrap { padding: 12px; }
  .panel { padding: 14px 12px; }
  .brand-text { font-size: 1rem; }
  .nav a, .nav .link { padding: 8px; font-size: .9rem; }
  .foot { flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; transition: none !important; } }

/* ===== Cours en direct (assets/js/seance.js) ===== */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.seance-cta { margin: 0 0 12px; }
.panel-live { border-color: #c8102e66; }
.tile-live { border-top-color: var(--gold); }
.seance { margin: -16px -16px 0; }
body:has(.seance) .top { position: static; } /* l'en-tête du site ne couvre pas les onglets du cours */
.seance-head { display: flex; align-items: center; gap: 12px; padding: 10px 16px; background: #0b0b0c; border-bottom: 1px solid var(--line); }
.seance-head > div { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.seance-head strong { font-family: var(--font-title); text-transform: uppercase; font-size: 1.1rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.seance-head .muted { font-size: .85rem; }
.seance-back { font-size: 1.4rem; color: var(--text); text-decoration: none; padding: 6px 10px; }
.net { font-size: .75rem; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; padding: 4px 8px; border-radius: 999px; white-space: nowrap; }
.net-ok { color: #8fe0a2; background: #3fae5a1f; }
.net-ok::before { content: '● '; }
.net-wait { color: #1a1a1a; background: var(--gold); }
.seance > .note { margin: 12px 16px 0; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; justify-content: space-between; }
.seance-tabs { display: grid; grid-template-columns: repeat(4, 1fr); position: sticky; top: 0; z-index: 3; background: var(--bg); border-bottom: 1px solid var(--line); }
.seance-tabs button { min-height: 52px; padding: 0 4px; background: none; border: 0; border-bottom: 3px solid transparent; color: var(--muted); font: 600 .88rem var(--font-title);
  text-transform: uppercase; letter-spacing: .04em; cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 6px; }
.seance-tabs [aria-selected=true] { color: var(--text); border-bottom-color: var(--red); }
.seance-body { padding: 14px 16px 120px; }
.seance-tools { display: flex; gap: 8px; align-items: stretch; margin-bottom: 8px; }
.seance-tools .grow { flex: 1; }

/* Présences */
.roll { list-style: none; margin: 0; padding: 0; }
.roll-row { position: relative; overflow: hidden; border-top: 1px solid var(--line); }
.roll-main { position: relative; z-index: 1; display: flex; align-items: center; gap: 12px; padding: 8px 2px; min-height: 64px; background: var(--bg); transition: transform .18s ease; }
.roll-row.open .roll-main { transform: translateX(-150px); }
.roll-row.is-present .roll-main { background: #13160f; }
.roll-check { flex: none; width: 46px; height: 46px; border-radius: 10px; border: 2px solid var(--line-2); background: #0c0c0d; color: #fff; font-size: 1.5rem; cursor: pointer; }
.roll-check[aria-checked=true] { background: var(--ok); border-color: var(--ok); }
.roll-name { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.roll-tags { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; font-size: .85rem; }
.roll-more { flex: none; width: 44px; height: 44px; background: none; border: 0; color: var(--muted); font-size: 1.4rem; cursor: pointer; }
.roll-actions { position: absolute; right: 0; top: 0; bottom: 0; width: 150px; display: flex; flex-direction: column; gap: 4px; justify-content: center; padding: 6px; background: #1c1c1f; }
.roll-noacc { font-size: .78rem; color: var(--muted); line-height: 1.3; }

/* Combats */
.fighter-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; margin: 8px 0 16px; }
.fighter-btn { position: relative; min-height: 76px; padding: 10px; display: flex; flex-direction: column; align-items: flex-start; justify-content: center;
  background: var(--panel); border: 1px solid var(--line-2); border-radius: 10px; color: var(--text); font: inherit; text-align: left; cursor: pointer; }
.fighter-btn strong { font-size: 1.1rem; }
.fighter-btn span { color: var(--muted); font-size: .9rem; }
.fighter-btn .count { position: absolute; top: 8px; right: 8px; color: #fff; }
.sheet { position: fixed; inset: 0; z-index: 20; overflow-y: auto; background: var(--bg); padding: 0 0 110px; }
.sheet-head { position: sticky; top: 0; z-index: 2; display: flex; align-items: center; gap: 12px; padding: 10px 16px; background: #000; border-bottom: 3px solid var(--red); }
.sheet-head > div { display: flex; flex-direction: column; }
.sheet-head strong { font-family: var(--font-title); text-transform: uppercase; font-size: 1.25rem; }
.sheet .fight-card { margin: 14px 16px; }
.sheet-foot { position: fixed; left: 0; right: 0; bottom: 0; z-index: 3; display: flex; gap: 10px; padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); background: #000; border-top: 1px solid var(--line); }
.sheet-foot .btn { flex: 1; min-height: 56px; }
.step { margin: 14px 0 6px; font-weight: 600; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { min-height: 44px; padding: 8px 12px; border-radius: 999px; border: 1px solid var(--line-2); background: #0c0c0d; color: var(--text); font: inherit; font-size: .95rem; cursor: pointer; }
.chip b { color: var(--gold); }
.chip.on { background: #e8b92326; border-color: var(--gold); }
.chip-small { min-height: 38px; padding: 6px 10px; font-size: .88rem; }
.composer { margin-top: 10px; padding: 10px; border: 1px dashed var(--line-2); border-radius: 10px; display: flex; flex-direction: column; gap: 10px; }
.comp { display: flex; flex-direction: column; gap: 6px; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.comp-label { font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.qty { display: inline-flex; align-items: center; gap: 6px; margin-left: 6px; }
.code-preview { margin-left: auto; align-self: center; color: var(--muted); }
.code-preview b { color: var(--gold); font-size: 1.1rem; }
.result-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.result { min-height: 72px; border-radius: 12px; border: 2px solid var(--line-2); background: #0c0c0d; color: var(--text);
  font: 600 1.35rem var(--font-title); text-transform: uppercase; letter-spacing: .05em; cursor: pointer; }
.result-v.on { background: #2f8a46; border-color: #3fae5a; color: #fff; }
.result-d.on { background: #8f1d2c; border-color: var(--red); color: #fff; }

/* Fil */
.feed { list-style: none; padding: 0; margin: 0; }
.feed-item { border-top: 1px solid var(--line); }
.feed-item.pending { padding: 10px 4px; opacity: .7; display: flex; justify-content: space-between; gap: 10px; }
.feed-item.warn { border-left: 4px solid var(--gold); }
.feed-btn { width: 100%; display: flex; flex-direction: column; gap: 2px; align-items: flex-start; padding: 10px 8px; background: none; border: 0; color: var(--text); font: inherit; text-align: left; cursor: pointer; min-height: 60px; }
.feed-btn:disabled { cursor: default; }
.res { display: inline-block; min-width: 1.6em; text-align: center; border-radius: 4px; padding: 0 4px; color: #fff; font-family: var(--font-title); }
.res-V { background: #2f8a46; }
.res-D { background: #8f1d2c; }

/* Fin */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-bottom: 12px; }
.stat { background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 10px 6px; text-align: center; display: flex; flex-direction: column; }
.stat span { color: var(--muted); font-size: .78rem; text-transform: uppercase; letter-spacing: .05em; }
.stat b { font: 600 1.6rem var(--font-title); }
.note-ok { border-left-color: var(--ok); background: #3fae5a14; }
.seance textarea { width: 100%; min-height: 120px; padding: 10px 12px; font: inherit; color: var(--text); background: #0c0c0d; border: 1px solid var(--line-2); border-radius: 8px; margin-bottom: 8px; }
.close-zone { margin-top: 24px; padding-top: 16px; border-top: 1px solid var(--line); }

/* Fenêtres et messages */
.modal-back { position: fixed; inset: 0; z-index: 30; background: #000b; display: flex; align-items: center; justify-content: center; padding: 16px; }
.modal { max-width: 420px; width: 100%; }
.toast { position: fixed; left: 16px; right: 16px; bottom: 90px; z-index: 40; max-width: 520px; margin: 0 auto; padding: 14px 16px; border-radius: 10px;
  background: #1f2a1f; border: 1px solid #3fae5a; color: #fff; box-shadow: 0 10px 30px #000a; }
.toast-err { background: #2a1b1d; border-color: var(--err); }

.headcount { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px; margin: 0 0 14px; }
.headcount label { display: flex; flex-direction: column; gap: 4px; font-weight: 600; font-size: .95rem; }
.headcount input { width: 110px; }

/* Recherche rapide et statistiques de participation (0.2.4) */
.find { margin: 4px 0 14px; }
.find input { width: 100%; }
.session-chips { margin-bottom: 10px; }
.session-chips .chip { text-decoration: none; display: inline-flex; align-items: center; }
.stats-clan { grid-template-columns: repeat(3, 1fr); }
@media (min-width: 720px) { .stats-clan { grid-template-columns: repeat(6, 1fr); } }
.stats-clan .stat span { font-size: .78rem; }
.sort a { color: var(--muted); margin: 0 2px; }
.sort a.on { color: var(--gold); font-weight: 700; text-decoration: none; }
.att { display: inline-grid; grid-template-columns: auto auto; column-gap: 6px; align-items: baseline; min-width: 84px;
  font-size: .85rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.att b { color: var(--text); font-size: 1rem; }
.att em { font-style: normal; color: var(--gold); text-align: right; }
.att i { grid-column: 1 / -1; height: 4px; border-radius: 2px; margin-top: 3px;
  background: linear-gradient(90deg, var(--gold) var(--p), var(--line-2) var(--p)); }
.att-none { min-width: 84px; text-align: center; display: inline-block; }
#clan-fighters li.found > a { animation: found 2.2s ease-out; }
@keyframes found { 0%, 35% { background: #e8b92333; box-shadow: inset 3px 0 0 var(--gold); } 100% { background: transparent; } }

/* Statistiques comparées (0.2.5) */
.stats-clan { grid-template-columns: repeat(auto-fit, minmax(104px, 1fr)); }
.chip-link { text-decoration: none; color: var(--gold); border-style: dashed; }
.table-scroll { overflow-x: auto; margin: 0 -4px 12px; -webkit-overflow-scrolling: touch; }
.cmp { border-collapse: collapse; width: 100%; min-width: 640px; font-variant-numeric: tabular-nums; }
.cmp th, .cmp td { padding: 10px 8px; border-bottom: 1px solid var(--line); text-align: right; vertical-align: top; }
.cmp thead th { font-size: .74rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); vertical-align: bottom; }
.cmp thead th button { all: unset; cursor: pointer; display: inline-block; }
.cmp thead th button:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.cmp thead th[aria-sort] { color: var(--gold); }
.cmp thead th[aria-sort=ascending] button::after { content: ' ▲'; }
.cmp thead th[aria-sort=descending] button::after { content: ' ▼'; }
.cmp th[scope=row], .cmp thead th:first-child { text-align: left; position: sticky; left: 0; background: var(--panel); z-index: 1; }
.cmp th[scope=row] a { color: var(--text); font-weight: 700; }
.cmp td.best { color: var(--gold); font-weight: 700; }
.cmp td small { display: block; color: var(--muted); font-size: .72rem; font-weight: 400; }
.cmp td .bar { display: block; height: 4px; border-radius: 2px; margin-top: 4px; background: linear-gradient(90deg, var(--gold) var(--p), var(--line-2) var(--p)); }
.cmp tfoot th, .cmp tfoot td { border-top: 2px solid var(--line-2); border-bottom: 0; font-weight: 700; }
.defs { padding-left: 18px; margin: 0; }
.defs li { margin: 2px 0; }
.cmp th[scope=row] a { white-space: nowrap; }

/* Cours d'essai (0.2.6) */
.trial-banner { margin: 10px 0; padding: 10px 14px; border-radius: 10px; border: 1px dashed #5aa9e6;
  background: repeating-linear-gradient(135deg, #5aa9e614 0 12px, #5aa9e626 12px 24px); color: #cfe6f8; font-size: .92rem; }
.trial-banner strong { color: #8cc8f2; text-transform: uppercase; letter-spacing: .04em; }
.trial-banner a { color: #8cc8f2; margin-left: 6px; }
.pill-trial { background: #5aa9e626; color: #8cc8f2; border: 1px dashed #5aa9e6; vertical-align: middle; }

/* Compositeur de DMar : type d'arme et longueur bien distincts (0.2.7) */
.comp-guide { margin: 0 0 10px; padding: 8px 12px; border-left: 3px solid var(--gold); background: #e8b92314; border-radius: 0 8px 8px 0; font-size: .92rem; }
.group-label { display: flex; align-items: center; gap: 8px; margin-top: 8px; font-size: .9rem; font-weight: 700; color: var(--text); }
.group-label .num { font-style: normal; display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%;
  background: var(--panel-2); border: 1px solid var(--line-2); font-size: .78rem; color: var(--muted); }
.group-label-soft { font-weight: 400; color: var(--muted); font-size: .84rem; }
/* Types d'arme : tuiles carrées, accent doré */
.chips-type { display: grid; grid-template-columns: repeat(auto-fill, minmax(132px, 1fr)); gap: 8px; }
.chips-type .chip { border-radius: 10px; justify-content: flex-start; text-align: left; }
/* Longueurs : liste en règle graduée, accent acier */
.chips-len { display: flex; flex-direction: column; gap: 0; border: 1px solid #4b5866; border-radius: 10px; overflow: hidden; }
.chips-len .chip { border: 0; border-bottom: 1px solid #2c343d; border-radius: 0; background: #11161b; text-align: left; min-height: 44px; }
.chips-len .chip:last-child { border-bottom: 0; }
.chips-len .chip b { color: #8fb3d9; display: inline-block; min-width: 2.2em; }
.chips-len .chip.on { background: #8fb3d926; box-shadow: inset 4px 0 0 #8fb3d9; }
.chips-mods .chip { border-style: dashed; }
.chips-len .chip { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.chips-len .chip .range { color: #8fb3d9; font-size: .85rem; font-variant-numeric: tabular-nums; white-space: nowrap; }
.code-preview { flex-basis: 100%; }

/* Compositeur : grands titres par arme, options bien visibles (0.2.8) */
.comp { gap: 8px; padding: 14px 0 16px; }
.comp + .comp { border-top: 2px solid var(--line-2); }
.comp-title { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.comp-title h3 { margin: 0; font-family: var(--font-title); text-transform: uppercase; font-size: 1.45rem; letter-spacing: .03em;
  padding-left: 12px; border-left: 5px solid var(--red); line-height: 1.1; }
.group-label { font-size: 1.02rem; margin-top: 12px; }
.group-label-soft { font-size: 1.02rem; font-weight: 700; color: var(--text); }
.chips-mods { gap: 8px; align-items: center; }
.chips-mods .chip { border-style: solid; min-height: 48px; padding: 8px 16px; font-size: 1rem; display: inline-flex; align-items: center; gap: 8px; }
.chips-mods .chip .tick { display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 5px; border: 1.5px solid var(--line-2); font-size: .8rem; color: #111; }
.chips-mods .chip.on .tick { background: var(--gold); border-color: var(--gold); }
.chips-mods .chip.off { opacity: .4; text-decoration: line-through; cursor: not-allowed; }
.chips-mods .qty { display: inline-flex; align-items: center; gap: 8px; margin-left: auto; }
.chips-mods .qty .chip { min-width: 48px; justify-content: center; padding: 8px; }
.chips-mods .qty .chip[disabled] { opacity: .35; }
.composer .actions .btn { min-height: 48px; }

/* Saisie d'un combat : une boîte par étape, avec emplacement d'icône (0.2.9) */
.sheet .fight-card { background: transparent; border: 0; padding: 0; }
.sheet .fight-card > .kicker { margin: 4px 2px 0; font-size: 1rem; }
.fight-part { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 14px 14px 16px; margin-top: 12px; }
.part-head { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.part-head h3 { margin: 0; font-family: var(--font-title); text-transform: uppercase; font-size: 1.35rem; letter-spacing: .03em; line-height: 1.1; }
.part-icon { width: 44px; height: 44px; flex: none; border-radius: 10px; object-fit: contain; }
.part-icon-ph { border: 1.5px dashed var(--line-2); background: repeating-linear-gradient(135deg, #ffffff08 0 6px, transparent 6px 12px); }
.part-sub { margin: -6px 0 10px; font-size: .92rem; }
.part-dmar { border-top: 4px solid var(--gold); }
.part-result { border-top: 4px solid var(--red); }
.part-dmet { border-top: 4px solid #8fb3d9; }
.part-opp { border-top: 4px solid var(--line-2); }
.part-result .result-btns { margin: 0; }
.chips-type .chip { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; padding-top: 10px; padding-bottom: 10px; }
.chips-type .chip .ex { font-size: .78rem; color: var(--muted); line-height: 1.25; font-weight: 400; }
.chips-type .chip.on .ex { color: #e9dcb0; }

/* Combats repliables, mains, titres de types d'armes (0.2.13) */
.sheet .fight-card { margin-top: 10px; }
.fight-toggle { all: unset; box-sizing: border-box; width: 100%; display: flex; align-items: center; gap: 10px; cursor: pointer;
  padding: 14px 16px; border-radius: 14px; background: #000; border: 1px solid var(--line-2); }
.fight-toggle:focus-visible { outline: 2px solid var(--gold); }
.fight-title { font-family: var(--font-title); text-transform: uppercase; font-size: 1.6rem; letter-spacing: .03em; color: var(--gold); line-height: 1.1; flex: none; }
.fight-sum { flex: 1; min-width: 0; color: var(--text); font-size: .92rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fight-sum.todo { color: var(--muted); font-style: italic; }
.fight-toggle .chev { margin-left: auto; color: var(--muted); font-size: .9rem; }
.fight-card.open .fight-toggle { border-color: var(--gold); }
.fight-card.closed .fight-toggle { opacity: .92; }
.hand-slot { display: flex; flex-direction: column; align-items: center; gap: 3px; flex: none; }
.hand-slot .part-icon { width: 48px; height: 48px; }
.hand-slot small { font-size: .7rem; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; white-space: nowrap; }
.comp-title { justify-content: flex-start; }
.comp-title .btn { margin-left: auto; }
.chips-type .chip { position: relative; background-size: cover; background-position: center; min-height: 92px; }
.chips-type .chip[style] { background-color: #0c0c0d; box-shadow: inset 0 0 0 999px #0c0c0dcc; }
.chips-type .chip .tl { font-size: 1.28rem; font-weight: 700; line-height: 1.15; }
.fight-toggle { display: grid; grid-template-columns: 1fr auto; row-gap: 4px; }
.fight-toggle .fight-sum { grid-column: 1 / -1; grid-row: 2; white-space: normal; font-size: .98rem; }
.fight-toggle .chev { grid-column: 2; grid-row: 1; }

/* Recherche d'une arme par son nom, 8e case de la grille des types (0.2.15) */
.chips-type .type-search { border-style: dashed; border-color: #8fb3d9; cursor: text; }
.chips-type .type-search .tl { font-size: 1.05rem; color: #8fb3d9; }
.chips-type .type-search input { width: 100%; min-height: 38px; padding: 6px 8px; margin: 4px 0 2px; font-size: 1rem; background: #000; border: 1px solid var(--line-2); border-radius: 8px; color: var(--text); }
.chips-type .chip.match { border-color: var(--gold); box-shadow: 0 0 0 2px var(--gold); background-color: #e8b9231f; }
.chips-type .chip.dim { opacity: .3; }
.chips-type .chip { min-width: 0; } .chips-type .chip .tl { overflow-wrap: anywhere; hyphens: auto; }
.needs { animation: needs 1.8s ease-out; }
@keyframes needs { 0%, 40% { box-shadow: 0 0 0 3px var(--red-2), 0 0 24px #e0233f66; } 100% { box-shadow: 0 0 0 0 transparent; } }
.saved-badge { display: inline-block; margin-left: 10px; vertical-align: middle; font-family: var(--font-body, inherit); font-size: .72rem; letter-spacing: .04em;
  padding: 3px 8px; border-radius: 999px; background: #3cb37126; color: #7fd8a4; border: 1px solid #3cb37166; }
/* « Autre combinaison » : bouton à part, différent des combinaisons habituelles (0.2.19) */
.btn-other { all: unset; box-sizing: border-box; cursor: pointer; display: flex; align-items: center; gap: 14px; width: 100%; margin-top: 14px;
  padding: 12px 16px; border-radius: 12px; border: 2px dashed #8fb3d9; background: #8fb3d912; color: var(--text); }
.btn-other .plus { display: inline-grid; place-items: center; width: 40px; height: 40px; flex: none; border-radius: 50%; background: #8fb3d9; color: #0b1622; font-size: 1.6rem; font-weight: 700; line-height: 1; }
.btn-other strong { display: block; font-size: 1.1rem; color: #cfe3f7; }
.btn-other small { display: block; color: var(--muted); font-size: .88rem; margin-top: 2px; }
.btn-other.on { border-style: solid; background: #8fb3d926; }
.btn-other.on small { color: #e9dcb0; }
.btn-other:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
/* « Autre combinaison » plus discret (0.2.21) */
.btn-other { gap: 10px; margin-top: 10px; padding: 7px 12px; border-width: 1.5px; border-radius: 10px; background: transparent; }
.btn-other .plus { width: 26px; height: 26px; font-size: 1.1rem; background: transparent; border: 1.5px solid #8fb3d9; color: #8fb3d9; }
.btn-other strong { font-size: .98rem; font-weight: 600; }
.btn-other small { font-size: .8rem; margin-top: 0; }
.btn-other.on { background: #8fb3d914; }
.part-dmar .comp-guide { margin: 0 0 12px; }

/* Fiche publique d'un clan (0.2.22) */
.crumbs { margin: 4px 0 10px; font-size: .9rem; color: var(--muted); }
.crumbs a { color: var(--gold); }
.chev-r { color: var(--muted); font-size: 1.4rem; line-height: 1; }
.pub-roster { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.pub-roster li { display: flex; flex-direction: column; padding: 10px 12px; background: var(--panel-2); border: 1px solid var(--line); border-radius: 10px; }
.pub-roster li .muted { font-size: .85rem; }

/* Solde d'ouverture des fiches papier (0.2.23) */
.opening-lines { list-style: none; margin: 6px 0 10px; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 6px; }
.opening-lines li { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 7px 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--panel-2); }
.opening-lines li.dmar { border-left: 3px solid var(--gold); }
.opening-lines li.dmet { border-left: 3px solid #8fb3d9; }
.opening-lines li b { font-variant-numeric: tabular-nums; }
/* Icônes officielles des disciplines (0.2.24) */
img.part-icon { width: 48px; height: 48px; border-radius: 0; filter: drop-shadow(0 1px 2px #0008); }

/* Textures officielles de l'OCR (0.2.26) : tibonhommes en filigrane sur la page, motif bishamon dans les bandeaux */
body {
  background-color: var(--bg);
  background-image: linear-gradient(rgba(15,15,16,.78), rgba(15,15,16,.78)), url("../textures/tibonhomme.jpg");
  background-size: auto, 500px auto;
  background-attachment: fixed, fixed;
}
.top, .sheet-head, .seance-head {
  background-color: #000;
  background-image: linear-gradient(rgba(0,0,0,.62), rgba(0,0,0,.62)), url("../textures/bishamon.jpg");
  background-size: auto, 70px 70px;
}
.hero {
  position: relative; border-radius: var(--radius); padding-left: 16px; padding-right: 16px; margin-top: 12px;
  background-image: linear-gradient(90deg, rgba(15,15,16,.55), rgba(15,15,16,.92) 70%), url("../textures/bishamon.jpg");
  background-size: auto, 90px 90px; border: 1px solid var(--line);
}
.hero .kicker { color: var(--red-2); letter-spacing: .14em; }
@media (prefers-reduced-motion: no-preference) { .hero { transition: background-position .6s; } }

/* Logos officiels (0.2.27) */
img.brand-logo { width: 42px; height: 42px; flex: none; filter: drop-shadow(0 1px 3px #000c); }
img.blason { width: 76px; height: 76px; flex: none; filter: drop-shadow(0 2px 6px #000c); }
.hero-home { text-align: center; padding-top: 18px; }
.hero-home .signature { display: block; width: min(320px, 78%); height: auto; margin: 0 auto 6px; filter: drop-shadow(0 4px 12px #000); }
.hero-home .actions { justify-content: center; }
.hero-home .lead { max-width: 34ch; margin-left: auto; margin-right: auto; }

/* Progression et grades (0.3.0) */
.gchip { --g: #666; display: inline-grid; place-items: center; width: 36px; height: 36px; flex: none; border-radius: 7px; background: var(--g);
  box-shadow: inset 0 0 0 1px #0004, 0 1px 3px #0008; }
.gchip b { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: #111; color: #fff; font-size: .9rem; line-height: 1; font-variant-numeric: tabular-nums; }
.gchip.g0 { background: transparent; box-shadow: inset 0 0 0 1.5px var(--line-2); }
.gchip.g0 b { background: transparent; }
.progress { margin: 18px 0 8px; }
.globals { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 10px; }
.gbox { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--panel-2); }
.gbox img { width: 40px; height: 40px; }
.gbox div { display: flex; flex-direction: column; min-width: 0; }
.gbox span { color: var(--muted); font-size: .88rem; }
.ghead { display: flex; align-items: center; gap: 10px; margin: 20px 0 8px; font-family: var(--font-title); text-transform: uppercase; font-size: 1.3rem; }
.ghead img { width: 44px; height: 44px; }
.glist { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.glist li { display: flex; align-items: center; gap: 12px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--panel-2); }
.glist .gname { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.glist .gname small { color: var(--muted); font-size: .82rem; }
.glist .gn { font-size: 1.15rem; font-variant-numeric: tabular-nums; }
.opening-src { margin: 12px 0; color: var(--muted); }
.opening-src summary { cursor: pointer; }
.glist .gname .pill { align-self: flex-start; margin: 2px 0; }
.weapon-form { display: inline-flex; gap: 6px; align-items: center; }
.weapon-form input { width: auto; min-width: 7em; text-transform: none; }
.weapon-name { margin: 6px 0 0; display: flex; align-items: center; gap: 8px; }
.weapon-name b { color: var(--gold); font-size: 1.05rem; }
.free-weapon { margin-top: 6px; white-space: normal; text-align: left; }

/* Accueil : fond texturé uni, Shiviganga qui pivote vers la signature (0.3.3) */
.hero-home { background-image: linear-gradient(rgba(15,15,16,.9), rgba(15,15,16,.9)), url("../textures/bishamon.jpg"); background-size: auto, 90px 90px; }
.flip { width: min(300px, 76%); aspect-ratio: 1; margin: 0 auto 8px; perspective: 1000px; cursor: pointer; }
.flip-inner { position: relative; width: 100%; height: 100%; transform-style: preserve-3d; transition: transform .9s cubic-bezier(.4, .2, .2, 1); }
.flip.flipped .flip-inner { transform: rotateY(180deg); }
.flip.instant .flip-inner { transition: none; }
.flip-face { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; backface-visibility: hidden; -webkit-backface-visibility: hidden; filter: drop-shadow(0 4px 14px #000); }
.flip-back { transform: rotateY(180deg); }
.pub-roster li { padding: 0; }
.pub-roster li a { display: flex; flex-direction: column; padding: 10px 12px; color: var(--text); text-decoration: none; border-radius: 10px; }
.pub-roster li a:hover, .pub-roster li a:focus-visible { background: var(--panel); }

/* Progression aérée : grandes icônes (0.3.7) */
.gsum { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 4px 0 8px; }
.gsum a { position: relative; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 10px 4px; border-radius: 12px;
  color: var(--text); text-decoration: none; border: 1px solid var(--line); background: var(--panel-2); text-align: center; }
.gsum a:hover, .gsum a:focus-visible { border-color: var(--gold); }
.gsum img { width: 64px; height: 64px; }
.gsum .gchip { position: absolute; top: 6px; right: 6px; width: 28px; height: 28px; }
.gsum .gchip b { width: 19px; height: 19px; font-size: .75rem; }
.gsum span { font-size: .72rem; line-height: 1.15; color: var(--muted); }
.gsec { margin-top: 26px; scroll-margin-top: 130px; text-align: center; }
.gsec .gbig { width: 120px; height: 120px; display: block; margin: 0 auto 4px; filter: drop-shadow(0 4px 10px #000a); }
.gtitle { font-family: var(--font-title); text-transform: uppercase; font-size: 1.6rem; margin: 0 0 12px; letter-spacing: .02em; }
.gsec .glist { text-align: left; }
.globals { grid-template-columns: 1fr 1fr; }
.gbox { flex-direction: column; text-align: center; gap: 6px; padding: 16px 10px; }
.gbox .gbig { width: 96px; height: 96px; margin: 0 auto; }
.gbox strong { font-size: 1.05rem; }
.gline { display: flex; align-items: center; justify-content: center; gap: 10px; }
.gline .gn { font-size: 1.6rem; }
.center { text-align: center; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
/* Anneau de couleur du grade, centré sur le disque argenté de l'icône (0.3.9) */
.gring { --g: transparent; --d: 78%; position: relative; display: inline-grid; place-items: center; margin: 0 auto; }
.gring::before { content: ""; position: absolute; left: 50%; top: 50%; width: calc(var(--d) + 14%); aspect-ratio: 1; transform: translate(-50%, -50%);
  border-radius: 50%; background: var(--g); box-shadow: 0 0 14px color-mix(in srgb, var(--g) 55%, transparent); }
.gring.g0::before { display: none; }
.gring img { position: relative; width: 100% !important; height: 100% !important; }
.gr-sm { width: 66px; height: 66px; }
.gr-md { width: 112px; height: 112px; }
.gr-lg { width: 150px; height: 150px; margin-bottom: 4px; }
.gline .glabel { font-size: 1.05rem; color: var(--text); }
.gline + .gline { margin-top: 2px; }
.gbox .gline { flex-direction: row; align-items: center; justify-content: center; gap: 10px; }

/* Liste des combattants en tuiles simples (0.3.10) */
.ftiles { list-style: none; margin: 8px 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(165px, 1fr)); gap: 8px; }
.ftiles a { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border: 1px solid var(--line); border-radius: 10px; background: var(--panel-2); color: var(--text); text-decoration: none; min-height: 58px; }
.ftiles a:hover, .ftiles a:focus-visible { border-color: var(--gold); }
.ftiles .fname { display: flex; flex-direction: column; min-width: 0; }
.ftiles .fname strong { line-height: 1.2; overflow-wrap: anywhere; }
.ftiles .fname small { color: var(--muted); font-size: .8rem; font-variant-numeric: tabular-nums; }
.ftiles .todo { color: var(--gold); }
.ftiles li.dormant a { opacity: .55; }
.ftiles li.found > a { animation: found 2.2s ease-out; }
.ftiles .gchip { width: 30px; height: 30px; }
.ftiles .gchip b { width: 20px; height: 20px; font-size: .78rem; }
/* Face joyeuse pour « pas encore de grade » ; doublons (0.3.11) */
.gchip.g0 { background: transparent; box-shadow: none; overflow: hidden; border-radius: 50%; }
.gchip.g0 img { width: 100%; height: 100%; display: block; }
.dups { border: 1px solid var(--gold); border-radius: 12px; padding: 12px 14px; margin: 10px 0; background: #e8b92310; }
.dups h3 { margin: 0 0 4px; }
.dup { padding: 10px 0; border-top: 1px solid var(--line); }
.dup p { margin: 0 0 8px; }
.dup .actions { display: flex; flex-wrap: wrap; gap: 8px; }
.cancel-zone { margin-top: 28px; padding-top: 14px; border-top: 1px dashed var(--line-2); }
/* « Débuter un cours » en jaune pour se démarquer (0.3.17) */
.btn-live, .btn-live.btn-primary, .tile-live { background: #e8b92326; border-color: #e8b923aa; color: var(--gold); }
.btn-live:hover, .btn-live.btn-primary:hover, .tile-live:hover { background: #e8b9233d; border-color: var(--gold); color: var(--gold); }
.tile-live strong { color: var(--gold); }
.tile-live span { color: var(--text); }
.seance-cta .btn-primary:hover { background: #ffd34d; color: #111; }

/* Animation de passage de grade ------------------------------------------------ */
.ga-overlay { --g: #e8b923; --dur: 3s; --lv: 1; position: fixed; inset: 0; z-index: 1000; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 8px; padding: 24px 16px; text-align: center; color: #fff; cursor: pointer; overflow: hidden;
  background: radial-gradient(circle at 50% 42%, color-mix(in srgb, var(--g) 55%, #000) 0%, #0d0d0f 62%);
  animation: ga-in .25s ease-out both; }
.ga-overlay.ga-out { animation: ga-fade .25s ease-in both; }
.ga-stage { position: relative; width: calc(min(52vw, 210px) + var(--lv) * min(2.4vw, 10px)); aspect-ratio: 1; display: grid; place-items: center; }
.ga-rays { position: absolute; inset: calc(-25% - var(--lv) * 6%); border-radius: 50%; opacity: calc(.25 + var(--lv) * .08);
  background: repeating-conic-gradient(from 0deg, color-mix(in srgb, var(--g) 70%, #fff) 0 calc(3deg + var(--lv) * 1deg), transparent 0 20deg);
  -webkit-mask: radial-gradient(circle, #000 18%, transparent 68%); mask: radial-gradient(circle, #000 18%, transparent 68%);
  animation: ga-spin calc(14s - var(--lv) * 1.4s) linear infinite, ga-rays-in .6s .2s ease-out both; }
.ga-medal { position: relative; width: 100%; aspect-ratio: 1; border-radius: 50%; display: grid; place-items: center;
  background: radial-gradient(circle at 35% 30%, color-mix(in srgb, var(--g) 45%, #fff), var(--g) 55%, color-mix(in srgb, var(--g) 70%, #000));
  box-shadow: 0 0 0 6px rgba(255,255,255,.85), 0 0 calc(30px + var(--lv) * 12px) calc(var(--lv) * 4px) color-mix(in srgb, var(--g) 75%, transparent); }
.ga-icon { position: absolute; left: 50%; top: 50%; width: var(--s, 100%); height: var(--s, 100%); transform: translate(-50%, -50%); max-width: none; object-fit: contain; filter: drop-shadow(0 4px 8px rgba(0,0,0,.35)); }
.ga-chip { position: absolute; right: -2%; bottom: 2%; width: 30%; aspect-ratio: 1; border-radius: 50%; display: grid; place-items: center;
  background: #fff; color: #111; font-size: clamp(1.6rem, 9vw, 2.6rem); font-weight: 800; box-shadow: 0 0 0 5px var(--g), 0 6px 14px rgba(0,0,0,.4);
  animation: ga-pop .45s calc(var(--dur) * .28) cubic-bezier(.3,1.6,.5,1) both; }
.ga-text { animation: ga-up .45s .35s ease-out both; }
.ga-text p { margin: 0; }
.ga-name { font-size: 1.15rem; font-weight: 700; }
.ga-kicker { text-transform: uppercase; letter-spacing: .12em; font-size: .85rem; opacity: .85; margin-top: 10px !important; }
.ga-grade { margin: 2px 0 0; font-size: clamp(2.2rem, 11vw, 3.6rem); line-height: 1; text-transform: uppercase; color: #fff;
  text-shadow: 0 0 24px var(--g), 0 2px 0 rgba(0,0,0,.4); }
.ga-label { font-size: 1.05rem; opacity: .95; margin-top: 6px !important; }
.ga-count { font-size: .85rem; opacity: .7; margin-top: 8px !important; }
.ga-bar { position: absolute; left: 0; right: 0; bottom: 0; height: 5px; background: rgba(255,255,255,.12); }
.ga-bar i { display: block; height: 100%; background: var(--g); transform-origin: left; animation: ga-bar var(--dur) linear both; }
.ga-skip { position: absolute; top: 14px; right: 14px; background: rgba(255,255,255,.12); color: #fff; border: 1px solid rgba(255,255,255,.3);
  border-radius: 999px; padding: 8px 16px; font: inherit; font-weight: 700; cursor: pointer; }
.ga-skip:hover, .ga-skip:focus-visible { background: rgba(255,255,255,.25); }
.ga-bit { position: absolute; left: 50%; top: 50%; width: 10px; height: 16px; border-radius: 2px; opacity: 0;
  animation: ga-bit 1.4s cubic-bezier(.2,.7,.4,1) both; }
/* Trois styles au choix du Grand Maître */
.ga-tourne .ga-medal { animation: ga-tourne .9s cubic-bezier(.2,.9,.3,1.15) both; }
.ga-eclat .ga-medal { animation: ga-eclat .7s cubic-bezier(.2,.9,.3,1.2) both; }
.ga-eclat::after { content: ""; position: absolute; inset: 0; background: #fff; pointer-events: none; animation: ga-flash .5s .15s ease-out both; }
.ga-monte .ga-medal { animation: ga-monte .8s cubic-bezier(.25,1.4,.5,1) both; }
@keyframes ga-in { from { opacity: 0; } }
@keyframes ga-fade { to { opacity: 0; } }
@keyframes ga-spin { to { transform: rotate(1turn); } }
@keyframes ga-rays-in { from { opacity: 0; transform: scale(.4); } }
@keyframes ga-pop { from { transform: scale(0); } }
@keyframes ga-up { from { opacity: 0; transform: translateY(16px); } }
@keyframes ga-bar { from { transform: scaleX(1); } to { transform: scaleX(0); } }
@keyframes ga-bit { 0% { opacity: 1; transform: translate(-50%, -50%) rotate(0); } 100% { opacity: 0; transform: translate(calc(-50% + var(--x)), calc(-50% + var(--y) + 120px)) rotate(var(--r)); } }
@keyframes ga-tourne { 0% { transform: perspective(600px) rotateY(-720deg) scale(.2); opacity: 0; } 60% { opacity: 1; } 100% { transform: perspective(600px) rotateY(0) scale(1); } }
@keyframes ga-eclat { 0% { transform: scale(2.6); opacity: 0; filter: blur(8px); } 100% { transform: scale(1); opacity: 1; filter: none; } }
@keyframes ga-flash { 0% { opacity: .9; } 100% { opacity: 0; } }
@keyframes ga-monte { 0% { transform: translateY(70vh) scale(.6); } 100% { transform: none; } }
@media (prefers-reduced-motion: reduce) { .ga-overlay *, .ga-overlay::after { animation-duration: .01s !important; animation-delay: 0s !important; } .ga-bar i { animation-duration: var(--dur) !important; } }
/* Page de réglage */
.anim-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.anim-grid button { display: flex; align-items: center; gap: 10px; padding: 10px 12px; background: var(--panel-2); border: 1px solid var(--line); color: var(--text);
  border-radius: 10px; font: inherit; cursor: pointer; text-align: left; }
.anim-grid button:hover { border-color: var(--line-2); }
.anim-grid img { width: 40px; height: 40px; }
.anim-grades { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0 14px; }
.anim-grades button { width: 44px; height: 44px; border-radius: 50%; border: 3px solid transparent; font: inherit; font-weight: 800; cursor: pointer; color: #111; }
.anim-grades button.on { border-color: #fff; box-shadow: 0 0 0 2px var(--g, #fff); }
.anim-card { display: flex; gap: 14px; align-items: center; }
.anim-card img { width: 64px; height: 64px; flex: none; }
.anim-dur-row { display: flex; align-items: center; gap: 12px; } .anim-dur-row input { flex: 1; max-width: 320px; } .anim-dur-row output { font-weight: 800; min-width: 3.5em; }
.anim-styles { border: 1px solid var(--line); border-radius: 10px; padding: 10px 14px; display: flex; flex-direction: column; gap: 8px; margin: 0; }
.anim-styles legend { font-weight: 700; padding: 0 6px; }
.anim-styles label { display: flex; gap: 10px; align-items: center; }
@media (max-width: 430px) { .nav { gap: 2px; } .nav a, .nav .link { padding: 8px 6px; font-size: .88rem; } .lang > * { padding: 6px 6px !important; font-size: .74rem !important; } }

/* Ascension des grades : ondes, second faisceau, halo, secousse */
.ga-rays2 { opacity: calc(var(--lv) * .05); animation-direction: reverse, normal; inset: calc(-15% - var(--lv) * 4%); }
.ga-wave { position: absolute; inset: 0; border-radius: 50%; border: 3px solid color-mix(in srgb, var(--g) 60%, #fff); opacity: 0;
  animation: ga-wave 1.3s ease-out both; pointer-events: none; }
@keyframes ga-wave { 0% { opacity: .9; transform: scale(.9); } 100% { opacity: 0; transform: scale(2.4); } }
.ga-g5 .ga-grade, .ga-g6 .ga-grade, .ga-g7 .ga-grade { animation: ga-glow 1.6s .6s ease-in-out infinite alternate; }
@keyframes ga-glow { to { text-shadow: 0 0 40px var(--g), 0 0 12px #fff, 0 2px 0 rgba(0,0,0,.4); } }
.ga-g7 .ga-medal::after { content: ""; position: absolute; inset: -14%; border-radius: 50%; pointer-events: none;
  background: conic-gradient(from 0deg, transparent, #fff8 10%, transparent 20%, transparent 50%, #fff8 60%, transparent 70%);
  -webkit-mask: radial-gradient(circle, transparent 62%, #000 64%, #000 70%, transparent 72%); mask: radial-gradient(circle, transparent 62%, #000 64%, #000 70%, transparent 72%);
  animation: ga-spin 2.4s linear infinite; }
.ga-g7 .ga-stage { animation: ga-shake .45s .55s ease-out both; }
@keyframes ga-shake { 0%, 100% { transform: none; } 20% { transform: translate(-6px, 3px); } 40% { transform: translate(5px, -4px); } 60% { transform: translate(-3px, 2px); } 80% { transform: translate(2px, -1px); } }
@media (prefers-reduced-motion: reduce) { .ga-wave, .ga-rays2 { display: none; } }
/* Invitations */
.inv-list { list-style: none; margin: 12px 0 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.inv { border: 1px solid var(--line); border-left: 4px solid var(--gold); border-radius: 10px; padding: 12px 14px; background: var(--panel-2); }
.inv p { margin: 4px 0; }
.inv-head { display: flex; justify-content: space-between; gap: 10px; align-items: center; }
.inv-pill { color: var(--gold); border-color: #e8b92388; }
.inv-acceptee { border-left-color: #3fb26b; } .inv-acceptee .inv-pill { color: #5fd08a; border-color: #3fb26b88; }
.inv-expiree { border-left-color: var(--line-2); opacity: .85; } .inv-expiree .inv-pill { color: var(--muted); border-color: var(--line-2); }
.inv-ok { color: #5fd08a; }
.inv .actions { display: flex; align-items: center; gap: 14px; margin-top: 6px; }
.inv-chips { margin-top: 14px; }
[data-ga] { cursor: pointer; } .ga-tap { display: inline-block; -webkit-tap-highlight-color: transparent; }
.ga-tap:active .gring, .gsum a[data-ga]:active .gring { transform: scale(.94); transition: transform .1s; }
/* Composition de la DMar : pièce en cours ouverte, les autres repliées */
.comp.comp-folded { flex-direction: row; align-items: center; gap: 12px; cursor: pointer; padding: 10px 12px; margin: 8px 0; background: var(--panel-2); border: 1px solid var(--line); border-radius: 10px; }
.comp-folded:hover { border-color: var(--line-2); }
.comp-sum { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.comp-sum b { font-family: var(--font-title); text-transform: uppercase; letter-spacing: .02em; }
.comp-sum span { color: var(--muted); font-size: .92rem; overflow-wrap: anywhere; }
.comp-todo { border-color: #e8b92388 !important; } .comp-todo .comp-sum span { color: var(--gold); }
.comp-edit { color: var(--gold); font-weight: 600; font-size: .9rem; white-space: nowrap; }
.comp.comp-current { border: 2px solid var(--gold); border-radius: 12px; padding: 12px; margin: 8px 0; }
.free-weapon[hidden] { display: none !important; }
.sheet .go-len, .sheet .part-result { scroll-margin-top: 92px; }
.add-me { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 10px 12px; margin-bottom: 14px; border: 1px dashed #e8b92388; border-radius: 10px; background: #e8b92310; }
.staff-tags { display: flex; flex-wrap: wrap; gap: 4px; margin: 3px 0 1px; }
.pill-staff { color: #9fc3ff; border-color: #578ad888; font-size: .72rem; padding: 1px 7px; }
/* Recherche rapide dans la liste du cours, micro */
.filter-bar { display: flex; gap: 8px; align-items: center; margin: 0 0 12px; position: sticky; top: 0; z-index: 3; background: var(--bg, #0f0f10); padding: 6px 0; }
.filter-bar input { flex: 1; min-width: 0; font-size: 1.05rem; }
.filter-bar .mic { min-width: 52px; font-size: 1.25rem; padding: 0 12px; }
.filter-bar .mic.on { background: var(--red); border-color: var(--red); animation: mic-pulse 1s ease-in-out infinite alternate; }
@keyframes mic-pulse { to { box-shadow: 0 0 0 6px #c8102e55; } }
[data-fid][hidden], .filter-none[hidden] { display: none !important; }
/* Transfert de combats */
.transfer-open { margin: 0 0 10px; }
.transfer { border: 1px solid var(--gold); background: #e8b92310; margin-bottom: 12px; display: flex; flex-direction: column; gap: 10px; }
.transfer h3 { margin: 0; font-size: 1.05rem; }
.transfer-results { display: flex; flex-direction: column; gap: 6px; }
.transfer-pick { justify-content: flex-start; text-align: left; text-transform: none; letter-spacing: 0; }
.recent-link { flex: 1; min-width: 220px; }

/* ===== 0.4 : trois espaces (Observatoire, Mon espace, Gestion) ===== */
.ico { width: 1.25em; height: 1.25em; vertical-align: -.25em; flex: none; }
.nav-obs { display: inline-flex; align-items: center; gap: 6px; }
.nav-obs .obs-ico { width: 1.35em; height: 1.35em; }
@media (max-width: 600px) {
  .nav-obs .obs-word { display: inline-block; max-width: 9em; overflow: hidden; white-space: nowrap; transition: max-width .5s ease, opacity .4s ease; }
  .nav-obs .obs-ico { width: 0; opacity: 0; transition: width .4s ease .25s, opacity .4s ease .25s; }
  .nav-obs.compact .obs-word { max-width: 0; opacity: 0; }
  .nav-obs.compact .obs-ico { width: 1.5em; opacity: 1; }
  .nav-obs.compact { gap: 0; }
  .nav-obs.instant *, .nav-obs.instant { transition: none !important; }
}
.view-switch { margin: 0 0 12px; }
.view-switch .btn { display: inline-flex; align-items: center; gap: 8px; }
/* Sections repliables */
details.fold > summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
details.fold > summary::-webkit-details-marker { display: none; }
details.fold > summary h2 { margin: 0; }
details.fold > summary .fold-chev { width: 14px; height: 14px; border-right: 3px solid var(--gold); border-bottom: 3px solid var(--gold); transform: rotate(45deg); transition: transform .2s; margin: 0 8px 6px 0; flex: none; }
details.fold[open] > summary .fold-chev { transform: rotate(-135deg); margin: 6px 8px 0 0; }
details.fold[open] > summary { margin-bottom: 14px; }
details.fold-sub { border-top: 1px solid var(--line); padding: 12px 0 4px; margin-top: 8px; }
details.fold-sub > summary h2.sub { margin: 0; }
details.panel.fold:not([open]) { padding-bottom: 14px; }
/* Mon espace : bandeau doré, six portes (œil = consulter, engrenage = gérer) */
.hero-espace { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  background-image: linear-gradient(90deg, rgba(15,15,16,.96) 0%, rgba(15,15,16,.82) 38%, rgba(15,15,16,.25) 100%), url("../textures/y-or.jpg");
  background-size: auto, cover; background-position: center; }
.hero-espace h1 { margin-bottom: 2px; }
.hero-espace .hero-cta { font-size: 1.15rem; padding: 14px 22px; display: inline-flex; flex-direction: column; align-items: center; gap: 2px; }
.hero-espace .hero-cta small { font-size: .78rem; text-transform: none; letter-spacing: 0; opacity: .85; }
.btn-live.hero-cta { background: rgba(32,26,8,.82); }
.doors { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 28px; }
@media (max-width: 640px) { .doors { grid-template-columns: 1fr; gap: 10px; } }
.door { display: flex; align-items: stretch; background: #000; border-left: 5px solid var(--red); min-height: 50px; }
.door-name { flex: 1; display: flex; align-items: center; padding: 8px 14px; font-family: var(--font-title); text-transform: uppercase; font-size: 1.45rem;
  letter-spacing: .02em; color: #fff; text-decoration: none; }
.door-name:hover { color: var(--gold); }
.door-ico { display: inline-flex; align-items: center; justify-content: center; width: 46px; color: #fff; text-decoration: none; }
a.door-ico:hover { color: var(--gold); background: #ffffff10; }
.door-ico .ico { width: 28px; height: 28px; }
.door-off { opacity: 0; }
.banner-gold { border-left-color: var(--gold) !important; }
.banner-sm { font-size: 1.05rem !important; padding: 6px 14px !important; margin: 18px 0 10px; display: inline-block; }
/* Listes « consulter / gérer » */
.see-rows { display: flex; flex-direction: column; }
.see-row { display: flex; align-items: center; gap: 6px; border-bottom: 1px solid var(--line); }
.see-row > .row, .see-row > a.row { flex: 1; border-bottom: 0; }
.see-row .door-ico { width: 40px; color: var(--muted); }
.see-row .door-manage { color: var(--text); height: 44px; border-radius: 8px; }
.see-row .door-manage:hover { color: var(--gold); }
.observe .lead { margin: 0 0 10px; }
.nav-out .out-ico { display: none; }
@media (max-width: 460px) {
  .nav-out .out-word { display: none; }
  .nav-out .out-ico { display: inline-block; width: 1.35em; height: 1.35em; }
  .door-name { font-size: 1.2rem; }
}
/* Logs */
.log-card { border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; margin: 12px 0; background: var(--panel-2); }
.log-card .kicker { margin: 0; }
.log-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.log-h { margin: 12px 0 2px; font-size: .82rem; text-transform: uppercase; letter-spacing: .06em; color: var(--gold); }
.log-h-incident { color: #ff8a8a; }
.log-text { margin: 0 0 4px; white-space: normal; overflow-wrap: anywhere; }
.log-sec { border: 1px solid var(--line); border-radius: 10px; padding: 8px 12px; margin: 8px 0; background: #0000002a; }
.log-sec > summary { cursor: pointer; font-weight: 700; display: flex; justify-content: space-between; align-items: center; }
.log-sec[open] > summary { margin-bottom: 8px; }
.log-incident { border-color: #c8102e66; }
.log-field { display: flex; gap: 8px; align-items: flex-start; }
.log-field textarea { flex: 1; min-width: 0; }
.log-field .mic.on { background: var(--red); border-color: var(--red); }
.saved-dot { color: var(--gold); font-size: .7rem; }
.log-vis { display: flex; flex-direction: column; gap: 6px; margin-top: 10px; }
.log-vis-f { border: 1px solid var(--line); border-radius: 10px; padding: 10px 14px; display: flex; flex-direction: column; gap: 6px; }
.pill-public { color: #5fd08a; border-color: #3fb26b88; }
.log-card.card { background: var(--panel); }
.log-fold > summary { list-style: none; cursor: pointer; display: flex; flex-direction: column; gap: 6px; }
.log-fold > summary::-webkit-details-marker { display: none; }
.log-fold .log-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.log-first { color: var(--text); opacity: .9; }
.log-fold[open] .log-first { display: none; }
.log-fold[open] > summary { margin-bottom: 6px; }
.see-row .door-see { color: var(--text); height: 44px; border-radius: 8px; } .see-row .door-see:hover { color: var(--gold); }
.role-defs { margin: 6px 0 0; display: flex; flex-direction: column; gap: 10px; }
.role-defs > div { padding: 8px 12px; border-left: 3px solid var(--line-2); }
.role-defs > div.mine { border-left-color: var(--gold); background: #e8b92310; }
.role-defs dt { font-weight: 700; }
.role-defs dd { margin: 2px 0 0; color: var(--muted); }
.dmet-inputs { display: flex; align-items: flex-start; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.dmet-opts > summary { list-style: none; cursor: pointer; width: 46px; height: 46px; display: grid; place-items: center; border: 1px solid var(--line-2); border-radius: 10px; }
.dmet-opts > summary::-webkit-details-marker { display: none; }
.dmet-opts > summary .ico { width: 24px; height: 24px; }
.dmet-opts[open] > summary { border-color: var(--gold); color: var(--gold); }
.dmet-opts { position: relative; }
.dmet-menu { position: absolute; right: 0; top: 54px; z-index: 6; width: min(300px, 82vw); display: flex; flex-direction: column; gap: 8px; padding: 12px; border: 1px solid var(--gold); border-radius: 10px; background: var(--panel-2); box-shadow: 0 10px 30px #000a; }
.dmet-del { color: #ff8a8a; }
.dmet-tools { display: flex; gap: 8px; margin: 4px 0 10px; }
.dmet-tools input { flex: 1; min-width: 0; }
.part-dmet .chip[hidden] { display: none !important; }
.log-fold > summary { text-align: left; }
.log-fold .log-head { flex-direction: row; flex-wrap: nowrap; width: 100%; }
.log-fold .log-head .kicker { flex: 1; text-align: left; }
.sheet .go-mods, .sheet .fight-card { scroll-margin-top: 92px; }
/* Observatoire : les disciplines */
.disc-def { display: flex; gap: 14px; align-items: flex-start; margin: 6px 0 16px; }
.disc-def > img { width: 72px; height: 72px; flex: none; }
.disc-def h3 { margin: 0 0 4px; }
.disc-def p { margin: 0 0 8px; }
.thr-row { display: flex; flex-wrap: wrap; gap: 6px 12px; }
.thr { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; }
.thr b { --g: #888; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--g); color: #111; font-size: .85rem; }
.def-list { list-style: none; margin: 4px 0 16px; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.def-list li { display: flex; gap: 12px; align-items: center; padding: 8px 10px; border: 1px solid var(--line); border-radius: 10px; background: var(--panel-2); }
.def-list li > div { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.def-list img { width: 44px; height: 44px; object-fit: contain; flex: none; }
.def-compact li { padding: 6px 10px; }
.rules { margin: 4px 0 10px; padding-left: 20px; display: flex; flex-direction: column; gap: 4px; }
.sub .num { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--gold); color: #111; font-size: .85rem; margin-right: 4px; }
.dmet-val { font-weight: 800; white-space: nowrap; }
.dmet-val.plus { color: #5fd08a; } .dmet-val.minus { color: #ff8a8a; } .dmet-val.tbd { color: var(--muted); font-weight: 400; font-size: .85rem; }
.roll-more .ico { width: 24px; height: 24px; }
.roll-more { color: var(--text); }
.modal .mlabel { display: flex; flex-direction: column; gap: 4px; margin: 8px 0; font-weight: 600; }
.pub-roster li a { flex-direction: row; align-items: center; gap: 10px; }
.pub-roster .pr-txt { display: flex; flex-direction: column; min-width: 0; }
.stat small { display: block; font-size: .75rem; color: var(--muted); margin-top: 2px; text-transform: none; letter-spacing: 0; }
/* Bandeaux du haut : texture dorée partout, et de l'air dessous */
.hero:not(.hero-home) {
  background-image: linear-gradient(90deg, rgba(15,15,16,.96) 0%, rgba(15,15,16,.84) 42%, rgba(15,15,16,.3) 100%), url("../textures/y-or.jpg");
  background-size: auto, cover; background-position: center;
}
.hero { margin-bottom: 16px; }
.hero + .view-switch, .hero + p.small { margin-top: 0; }
.steps { margin: 4px 0 8px; padding-left: 22px; display: flex; flex-direction: column; gap: 4px; } .install-btn { margin: 4px 0 6px; }
.roll-row.open .roll-main { transform: translateX(-200px); }
.roll-actions { width: 200px; }
.roll-actions .btn { white-space: normal; line-height: 1.15; min-height: 34px; padding: 6px 8px; font-size: .78rem; }
.roll-noacc { font-size: .75rem; line-height: 1.2; }
.chips.sort a { text-decoration: none; }
/* Options d'un combattant (engrenage) : s'ouvrent sous la ligne, la cellule s'agrandit */
.roll-row { display: flex; flex-direction: column; overflow: visible; }
.roll-row.open .roll-main { transform: none; }
.roll-row .roll-actions { position: static; order: 2; width: auto; display: none; flex-direction: row; flex-wrap: wrap; align-items: center; gap: 8px; padding: 10px 12px 12px 64px; background: #1c1c1f; border-top: 1px dashed var(--line); }
.roll-row.open .roll-actions { display: flex; }
.roll-row.open .roll-more { color: var(--gold); }
.roll-actions .btn { width: auto; font-size: .82rem; }
.roll-noacc { flex-basis: 100%; }
/* Une seule boîte pour trouver, ajouter ou créer */
.filter-new { white-space: nowrap; padding: 0 14px; }
.others { display: flex; flex-direction: column; gap: 6px; margin: -4px 0 12px; padding: 8px; border: 1px solid var(--line-2); border-radius: 10px; background: var(--panel-2); }
.other-pick { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; text-align: left; padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--panel); color: var(--text); font: inherit; cursor: pointer; }
.other-pick:hover { border-color: var(--gold); }
.other-new { border-style: dashed; border-color: var(--gold); }
.other-new strong { color: var(--gold); }
.others[hidden] { display: none !important; }
/* De l'air autour des boutons, partout : jamais collés sur autre chose */
:where(section, form, details, article, .card, .panel, .log-card, .close-zone, .cancel-zone) > :is(.btn, button.btn):not(:first-child) { margin-top: 12px; }
:where(section, form, details, article, .card, .panel) > :is(.btn, button.btn):not(:last-child) { margin-bottom: 4px; }
.log-vis { margin-bottom: 14px; }
.actions { gap: 10px; }
.btn + .btn { margin-left: 8px; }
.actions > .btn + .btn, .actions > * + .btn, .dmet-tools .btn, .filter-bar .btn { margin-left: 0; margin-top: 0; }
/* Qui peut lire chaque rubrique */
.log-sec > summary { gap: 10px; }
.log-sec-t { flex: 1; min-width: 0; }
.log-sec-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 8px; font-weight: 700; }
.aud-pill { flex: none; font: inherit; font-size: .78rem; font-weight: 700; padding: 5px 10px; border-radius: 999px; border: 1px solid var(--line-2);
  background: #0006; color: var(--muted); cursor: pointer; white-space: nowrap; max-width: 55%; overflow: hidden; text-overflow: ellipsis; }
.aud-pill.shared { color: var(--gold); border-color: #e8b923aa; background: #e8b9231a; }
.aud-fixed { cursor: default; color: #ff9b9b; border-color: #c8102e88; }
.aud-panel { margin: 4px 0 12px; padding: 12px; border: 1px solid var(--gold); border-radius: 10px; background: var(--panel); display: flex; flex-direction: column; gap: 10px; }
.aud-panel[hidden] { display: none; }
.aud-q { margin: 0; font-weight: 700; }
.aud-circles { display: flex; flex-direction: column; align-items: stretch; gap: 6px; }
.aud-circles .chip { justify-content: flex-start; text-align: left; }
.aud-plus { margin: 4px 0 0; }
.aud-people { display: flex; flex-wrap: wrap; gap: 6px; }
.aud-people:empty { display: none; }
.aud-person { display: inline-flex; align-items: center; gap: 6px; }
.aud-x { background: none; border: 0; color: inherit; cursor: pointer; font-size: .9rem; padding: 0 2px; }
.aud-results { display: flex; flex-direction: column; gap: 4px; }
.aud-results:empty { display: none; }
.aud-result { text-align: left; padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--panel-2); color: var(--text); font: inherit; cursor: pointer; }
.aud-result:hover { border-color: var(--gold); }
.aud-warn { margin: 0; }
.aud-warn[hidden] { display: none; }
.aud-keep { margin: 0; }
.log-main-sec { padding: 10px 12px; }
/* Cote guerrière */
.cg-card { margin: 4px 0 18px; border: 1px solid #e8b923aa; border-radius: 14px; background: linear-gradient(135deg, #e8b92322, #0000 60%), var(--panel-2); }
.cg-card > summary { list-style: none; cursor: pointer; display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 2px 12px; padding: 14px 16px; }
.cg-card > summary::-webkit-details-marker { display: none; }
.cg-label { font-family: var(--font-title); text-transform: uppercase; letter-spacing: .06em; color: var(--gold); font-size: 1.05rem; }
.cg-value { grid-row: span 2; font-family: var(--font-title); font-size: 2.6rem; line-height: 1; color: #fff; }
.cg-wait { grid-row: span 2; color: var(--muted); font-size: .85rem; text-align: right; max-width: 11em; }
.cg-card[data-empty] .cg-label { white-space: nowrap; }
.cg-how { font-size: .82rem; color: var(--muted); text-decoration: underline; }
.cg-calc { padding: 0 16px 14px; }
.cg-calc ul { list-style: none; margin: 6px 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.cg-calc li { display: flex; justify-content: space-between; gap: 10px; padding: 4px 0; border-bottom: 1px dashed var(--line); }
.cg-calc li.cg-div { border-bottom: 1px solid var(--line-2); }
.cg-calc li.cg-tot b { color: var(--gold); font-size: 1.15rem; }
.cg-formula { font-weight: 700; padding: 10px 12px; border-left: 3px solid var(--gold); background: #e8b92314; }
/* Standards de combat */
.std-num { display: inline-grid; place-items: center; width: 1.6em; height: 1.6em; margin-right: 4px; border-radius: 50%; background: var(--gold); color: #111; font-size: .8em; }
.std-toc ol { margin: 0; padding-left: 22px; display: grid; gap: 4px; }
.std-toc a { color: inherit; }
.std-box { border-left: 3px solid var(--gold); background: #e8b92314; padding: 10px 14px; border-radius: 0 10px 10px 0; margin: 10px 0; }
.std-box p { margin: 6px 0; }
.std-quote { font-style: italic; color: var(--gold); text-align: center; margin: 12px 0; }
.std-steps { padding-left: 22px; display: flex; flex-direction: column; gap: 10px; }
.std-systems { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 10px; margin: 12px 0; }
.std-sys { border: 1px solid var(--line); border-radius: 12px; padding: 10px 14px; background: var(--panel-2); }
.std-sys h3 { margin: 0 0 6px; font-size: 1.05rem; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.std-sys p { margin: 0; font-size: .95rem; }
.std-sys.std-default { border-color: #e8b923aa; background: linear-gradient(135deg, #e8b92322, #0000 60%), var(--panel-2); }
.std-two { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 10px; }
.std-two > div { border-radius: 12px; padding: 10px 14px; border: 1px solid var(--line); }
.std-two h3 { margin: 0 0 6px; font-size: 1rem; }
.std-two ul { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 4px; }
.std-yes { border-color: #3fae6a88 !important; background: #3fae6a12; }
.std-no { border-color: #d0453b88 !important; background: #d0453b12; }
.std-src { text-align: center; margin-top: 18px; }
/* Sélecteur de jeux */
.jx-filters { display: flex; flex-direction: column; gap: 12px; margin: 6px 0 14px; }
.jx-f .chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.jx-fl { font-family: var(--font-title); text-transform: uppercase; letter-spacing: .05em; font-size: .85rem; color: var(--muted); }
.jx-acc > summary { cursor: pointer; }
.jx-acc .chip:not(.on) { opacity: .55; text-decoration: line-through; }
.jx-go { width: 100%; font-size: 1.15rem; }
.jx-result { margin-top: 16px; }
.jx-card { border: 1px solid #e8b923aa; border-radius: 16px; overflow: hidden; background: linear-gradient(160deg, #e8b9231c, #0000 50%), var(--panel-2); }
.jx-card.jx-new { animation: jx-in .35s ease-out; }
@keyframes jx-in { from { opacity: 0; transform: translateY(10px) scale(.98); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .jx-card.jx-new { animation: none; } }
.jx-img { display: block; width: 100%; max-height: 220px; object-fit: cover; }
.jx-title { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; padding: 14px 16px 0; }
.jx-title h3 { margin: 0; font-family: var(--font-title); font-size: 1.6rem; color: var(--gold); text-transform: uppercase; }
.jx-intro { font-style: italic; color: var(--muted); padding: 0 16px; margin: 8px 0; }
.jx-sum { padding: 0 16px; margin: 6px 0 10px; }
.jx-lines { list-style: none; margin: 0; padding: 0 12px; display: flex; flex-direction: column; gap: 8px; }
.jx-line { border: 1px solid var(--line); border-radius: 12px; padding: 8px 12px; background: #0c0c0d; }
.jx-line.is-base .jx-lv, .jx-line.is-fixed .jx-lv { color: var(--muted); font-weight: 500; }
.jx-lh { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.jx-ll { font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.jx-acts { display: flex; gap: 6px; }
.jx-ic { min-width: 44px; min-height: 40px; border-radius: 10px; border: 1px solid var(--line-2); background: transparent; color: var(--text); font-size: 1.1rem; cursor: pointer; }
.jx-ic.on { border-color: var(--gold); background: #e8b92326; }
.jx-ic:disabled { opacity: .35; cursor: default; }
.jx-lv { display: block; font-size: 1.05rem; margin-top: 2px; }
.jx-lt { margin: 4px 0 0; font-size: .92rem; color: var(--text-2, var(--text)); }
.jx-cacts { padding: 12px; display: flex; flex-wrap: wrap; gap: 8px; }
.jx-keep { margin-top: 12px; display: flex; flex-direction: column; gap: 10px; border: 1px dashed var(--gold); border-radius: 12px; padding: 12px; }
.jx-keep label { display: flex; flex-direction: column; gap: 4px; }
.jx-kept li { display: flex; align-items: center; gap: 8px; }
.jx-kept li > a { flex: 1; display: flex; flex-direction: column; gap: 2px; color: inherit; text-decoration: none; padding: 8px 0; }
.jx-fiche { border-bottom: 1px solid var(--line); }
.jx-fiche > summary { cursor: pointer; list-style: none; display: flex; gap: 10px; align-items: center; padding: 10px 0; }
.jx-fiche > summary::-webkit-details-marker { display: none; }
.jx-fiche > summary img { width: 56px; height: 56px; object-fit: cover; border-radius: 8px; flex: none; }
.jx-fiche > summary > span { display: flex; flex-direction: column; gap: 2px; }
.jx-body { padding: 0 0 12px; }
.jx-body h4 { font-family: var(--font-title); text-transform: uppercase; letter-spacing: .05em; color: var(--gold); margin: 14px 0 4px; font-size: .95rem; }
.jx-body h5 { margin: 10px 0 2px; font-size: .95rem; }
.jx-body ul { margin: 4px 0; padding-left: 20px; display: flex; flex-direction: column; gap: 3px; }
.jx-body p { margin: 4px 0; }
.jx-var { border-left: 3px solid var(--line-2); padding-left: 10px; margin: 6px 0; }
.jx-var > summary { cursor: pointer; font-weight: 700; }
.jx-sum { cursor: pointer; }
.jx-sum.clamp { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
/* Prise de possession d'une fiche */
.claim-card form + form { margin-top: 14px; padding-top: 12px; border-top: 1px dashed var(--line); }
.claim-q { font-size: 1.15rem; font-weight: 700; border-left: 3px solid var(--gold); padding: 6px 12px; }
.claim summary.btn { list-style: none; cursor: pointer; }
.claim summary.btn::-webkit-details-marker { display: none; }
.log-field + [data-aud-panel] > *, .log-field + .aud-panel { margin-top: 8px; }
.fin-roster { margin: 10px 0; padding: 0; }
.fin-roster > summary { cursor: pointer; padding: 12px 14px; font-weight: 700; }
.fin-roster > .rows { padding: 0 14px 10px; }
.sheet .go-shield { scroll-margin-top: 92px; }
/* Grille de cases d'une discipline */
.glist li { padding: 0 0 0 12px; }
.glist li > .ga-tap { flex: none; padding: 8px 0; }
.glist .grow { flex: 1; min-width: 0; display: flex; align-items: center; gap: 12px; padding: 8px 12px 8px 0; color: inherit; text-decoration: none; }
.glist .gopen, .gopen-t { color: var(--gold); }
.glist .gopen { font-size: 1.3rem; }
.gbox-link { display: flex; flex-direction: column; align-items: center; gap: 6px; color: inherit; text-decoration: none; width: 100%; }
.gopen-t { font-size: .85rem !important; color: var(--gold) !important; }
.gr-head { display: flex; gap: 14px; align-items: center; margin-bottom: 8px; }
.gr-title { margin: 2px 0 4px; font-family: var(--font-title); text-transform: uppercase; font-size: 1.4rem; }
.thr-row .thr.done { opacity: 1; }
.u-legend { display: flex; flex-wrap: wrap; gap: 6px 14px; margin: 10px 0; color: var(--muted); }
.u-legend > span, .u-legend > a { display: inline-flex; align-items: center; gap: 6px; }
.u-legend > a { color: var(--text); }
.u-legend .u { width: 18px; height: 18px; }
.ugrid { display: grid; grid-template-columns: repeat(10, 1fr); gap: 4px; margin: 4px 0; }
.ugrid-head span { text-align: center; font-size: .72rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.u { --c: #2a3a50; position: relative; aspect-ratio: 1; border-radius: 5px; border: 1px solid var(--line-2); display: inline-grid; place-items: center; font-size: .62rem; color: var(--muted); overflow: hidden; }
.u i { font-style: normal; line-height: 1; }
/* Fiche papier : case cochée, barrée en diagonale */
.u-paper { background: linear-gradient(to top right, transparent calc(50% - 1px), #9a9aa2 calc(50% - 1px), #9a9aa2 calc(50% + 1px), transparent calc(50% + 1px)), #2b2b30; border-color: #55555c; }
.u-app { background: var(--c); color: #fff; text-shadow: 0 1px 2px #000; border: 2px solid #ffffff33; }
.u-win { border-color: var(--gold); }
.u-loss { border-color: #5b8fd6; }
.u-todo { background: transparent; border-style: dashed; opacity: .6; }
.u-thr { box-shadow: 0 0 0 2px var(--g); }
.u-thr .u-g { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; background: var(--g); color: #111; font-size: .9rem; font-weight: 800; line-height: 1; }
.u-thr .u-g small { font-size: .5rem; font-weight: 700; text-transform: uppercase; letter-spacing: .02em; }
.u-thr8 .u-g { color: #fff; } .u-thr8 { box-shadow: 0 0 0 2px var(--gold); }
.u-todo.u-thr .u-g { background: transparent; color: var(--g); }
.u-todo.u-thr8 .u-g { color: #fff; }
.u.sel { outline: 2px solid #fff; outline-offset: 1px; }
.u-info { min-height: 1.4em; color: var(--text); }
.thr-row .thr.done { opacity: 1; }
.thr b.thr8 { color: #fff; box-shadow: 0 0 0 2px var(--gold); } .thr b.thr9 { color: #000; }

/* Tous les combattants */
.obs-roster .rank { flex: none; min-width: 1.8em; text-align: right; color: var(--muted); font-variant-numeric: tabular-nums; font-size: .9rem; }
.cg-badge { margin-left: auto; flex: none; font-family: var(--font-title); font-size: 1.2rem; color: var(--gold); }
.cg-badge.cg-none { color: var(--muted); }
.list-find { width: 100%; margin: 4px 0 10px; }
.obs-roster { grid-template-columns: 1fr !important; padding-left: 0; }
.pub-roster:has(.cg-badge) { grid-template-columns: 1fr; }
/* Accueil de l'Observatoire : sections-portes */
a.panel.fold-link { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 12px; color: inherit; text-decoration: none; padding-bottom: 14px; }
a.panel.fold-link h2 { margin: 0; }
a.panel.fold-link .fold-sub-t { flex: 1 1 100%; order: 3; }
a.panel.fold-link .chev-r { margin-left: auto; color: var(--gold); font-size: 1.6rem; line-height: 1; }
a.panel.fold-link:hover, a.panel.fold-link:focus-visible { border-color: var(--gold); }
.obs-how summary .banner { white-space: normal; }
.chips.sort { margin-bottom: 14px; }
picture.flip-face img { width: 100%; height: 100%; object-fit: contain; }
/* Page d'un clan : sections repliables */
.stats-3 { grid-template-columns: repeat(3, 1fr) !important; }
.stats-3 .stat span { font-size: .72rem; line-height: 1.25; }
.sess-now { margin: 6px 0 10px; }
.staff-list { margin: 0; display: flex; flex-direction: column; gap: 12px; }
.staff-list dt { font-family: var(--font-title); text-transform: uppercase; letter-spacing: .05em; color: var(--gold); font-size: .85rem; }
.staff-list dd { margin: 2px 0 0; font-size: 1.05rem; }
/* Grades cachés : 8 noir, 9 blanc */
.gchip.g8 { box-shadow: inset 0 0 0 2px #e8b923; } .gchip.g8 b { background: #e8b923; color: #000; }
.gchip.g9 { box-shadow: inset 0 0 0 2px #000; } .gchip.g9 b { background: #000; color: #fff; }
/* Retour à mon cours : bande sous la barre du haut */
.back-course { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 16px; background: var(--gold); color: #111; font-weight: 800; text-decoration: none; text-transform: uppercase; letter-spacing: .03em; font-size: .92rem; }
.back-course small { font-weight: 600; text-transform: none; letter-spacing: 0; opacity: .8; }
.back-course .live-dot { width: 10px; height: 10px; border-radius: 50%; background: #c8102e; box-shadow: 0 0 0 0 #c8102e88; animation: live-pulse 1.6s infinite; }
@keyframes live-pulse { 70% { box-shadow: 0 0 0 8px #c8102e00; } 100% { box-shadow: 0 0 0 0 #c8102e00; } }
@media (prefers-reduced-motion: reduce) { .back-course .live-dot { animation: none; } }
.pub-roster > li[hidden], .rows > li[hidden] { display: none !important; }
.shield-sizes { margin: 6px 0 4px; }
/* Garde-fou victoires / défaites */
.vd-count { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 8px 12px; margin: 0 0 10px; border-radius: 10px; border: 1px solid #3fae6a88; background: #3fae6a14; }
.vd-count b { font-size: 1.1rem; font-variant-numeric: tabular-nums; }
.vd-count .small { color: var(--muted); }
.vd-count.vd-gap { border-color: #f08a24; background: #f08a2418; }
.vd-count.vd-gap .small { color: #f7b267; font-weight: 700; }
.pair-banner { border: 2px solid var(--gold); border-radius: 12px; padding: 10px 12px; margin: 0 0 12px; background: #e8b9231a; }
.pair-banner p { margin: 0 0 8px; font-weight: 700; }
.pair-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 6px; }
.odd-list { border-color: #f08a24; margin: 10px 0; }
.odd-list .row-btn { width: 100%; display: flex; justify-content: space-between; gap: 10px; background: none; border: 0; color: var(--text); font: inherit; padding: 10px 0; cursor: pointer; text-align: left; }
.odd-n { color: #f7b267; }
.rows .row-odd span:last-child { color: #f7b267; }
/* Boîte titre : fond sombre uniforme (lisibilité). À l'arrivée, la texture dorée s'estompe vers ce fond :
   on sent qu'on vient d'ouvrir quelque chose. */
.hero:not(.hero-home) { background: #161617; isolation: isolate; overflow: hidden; }
.hero:not(.hero-home)::before { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; pointer-events: none;
  background: linear-gradient(90deg, rgba(15,15,16,.55), rgba(15,15,16,.1)), url("../textures/y-or.jpg") center / cover;
  opacity: 0; animation: hero-fade 1.6s ease-out .15s both; }
@keyframes hero-fade { from { opacity: 1; } to { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .hero:not(.hero-home)::before { animation: none; } }
/* Disciplines de méthode : 2 par ligne sur mobile, 3 sur ordinateur */
.dmet-defs { display: grid !important; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
@media (min-width: 720px) { .dmet-defs { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.dmet-defs li { min-width: 0; }
.dmet-defs li strong { overflow-wrap: anywhere; }
/* Flèche de fermeture au bas des longues boîtes */
.fold-close { display: flex; justify-content: flex-end; width: 100%; background: none; border: 0; padding: 10px 8px 2px; cursor: pointer; }
.fold-close .fold-chev { width: 14px; height: 14px; border-right: 3px solid var(--gold); border-bottom: 3px solid var(--gold); transform: rotate(-135deg); margin: 6px 8px 0 0; }
.fold-close:hover .fold-chev, .fold-close:focus-visible .fold-chev { border-color: #fff; }
/* Exemples de spécialisation */
.ex-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 8px; margin: 8px 0; }
.ex-card { border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; background: var(--panel-2); }
.ex-card p { margin: 4px 0; }
.ex-cote { margin-top: 6px !important; color: var(--muted); }
.ex-cote b { color: var(--gold); font-family: var(--font-title); font-size: 1.4rem; margin-left: 4px; }
.sub-big { font-size: 1.05rem; color: var(--gold); margin-top: 22px; }
/* Citations : une typographie à part, pour les citations qu'on ajoutera au fil du temps */
.std-quote, .quote { font-family: "Cormorant Garamond", Georgia, serif; font-style: italic; font-weight: 600; font-size: 1.45rem; line-height: 1.25; color: var(--gold); text-align: center; margin: 6px 0 14px; }
.std-discs li img { width: 40px; height: 40px; }
#sys-gradees:target, #touches-systemes:target { outline: 2px solid var(--gold); outline-offset: 4px; border-radius: 12px; }
