:root {
  --or: #e8c14a;
  --encre: #1a1024;
  --fond: #100818;
  --coulisse: #181022;
  --casier: #1e1628;
  --ligne: #3a2d4a;
  --texte: #f4ecf8;
  --muted: #b5a4c4;
  --violet: #8b5cf6;
  --magenta: #d946a6;
  --rayon: 14px;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-bottom: 88px; }
body {
  margin: 0;
  background: var(--fond);
  color: var(--texte);
  font: 15px/1.5 "Segoe UI", system-ui, sans-serif;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; }
button, input { font: inherit; color: inherit; }
.loggia {
  position: sticky;
  top: 0;
  z-index: 40;
  height: 64px;
  margin-left: 248px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 18px;
  background: rgba(16, 8, 24, .94);
  border-bottom: 1px solid var(--ligne);
  backdrop-filter: blur(8px);
}
.bouton-loge {
  display: none;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  padding: 8px;
  cursor: pointer;
}
.bouton-loge svg { width: 22px; height: 22px; stroke: #fff; fill: none; stroke-width: 2; }
.sceau { display: flex; align-items: center; margin-right: auto; }
.sceau img { height: 44px; width: auto; display: block; }
.loggia-actes { display: flex; align-items: center; gap: 8px; }
.bouton-trappe, .lien-entrer, .lien-ouvrir {
  border: 0;
  cursor: pointer;
  background: transparent;
}
.bouton-trappe {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: grid;
  place-items: center;
}
.bouton-trappe svg { width: 20px; height: 20px; stroke: #eadcf4; fill: none; stroke-width: 2; }
.lien-entrer {
  color: #fff;
  padding: 8px 10px;
  font-weight: 650;
}
.lien-ouvrir, .btn-or {
  background: var(--or);
  color: var(--encre);
  font-weight: 750;
  border-radius: 10px;
  padding: 10px 16px;
  display: inline-block;
}
.trappe {
  position: absolute;
  left: 248px;
  right: 18px;
  top: 70px;
  z-index: 45;
}
.trappe input {
  width: min(420px, 100%);
  margin-left: auto;
  display: block;
  background: #24182f;
  border: 1px solid var(--ligne);
  border-radius: 12px;
  padding: 12px 14px;
  outline: none;
}
.trappe input:focus { border-color: var(--or); }
.coulisse {
  position: fixed;
  inset: 0 auto 0 0;
  width: 248px;
  overflow: auto;
  background: var(--coulisse);
  border-right: 1px solid var(--ligne);
  z-index: 50;
  padding: 12px 12px 96px;
}
.feuilletage { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 16px; }
.feuillet {
  min-height: 72px;
  border-radius: 12px;
  padding: 10px 10px 8px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  line-height: 1.15;
}
.feuillet span { font-size: 12px; opacity: .85; }
.feuillet strong { font-size: 15px; }
.feuillet.pack { background: var(--or); color: var(--encre); }
.feuillet.mise { background: #3b1d6e; color: #f3e8ff; }
.feuillet.cash { grid-column: 1 / -1; background: linear-gradient(90deg, #3a1248, #6b1d5c); color: #fff; min-height: 58px; border: 1px solid #8a3a72; }
.rubrique {
  margin: 16px 8px 6px;
  font-size: 11px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #8a7a99;
  font-weight: 700;
}
.coulisse a.sentinelle {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 8px;
  border-radius: 8px;
  color: #e4d6ef;
  font-size: 13.5px;
}
.coulisse a.sentinelle:hover, .coulisse a.sentinelle.actif { background: #2a1d38; color: #fff; }
.grain {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--or);
  flex: 0 0 auto;
}
.voile { display: none; }
.plateau { margin-left: 248px; padding: 22px 22px 120px; }
.plateau h1 { margin: 0 0 4px; font-size: 28px; letter-spacing: -.02em; }
.chapiteau { margin: 0 0 4px; color: var(--muted); }
.rideau { margin: 16px 0 22px; }
.file-caisse {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 12px;
}
.sigles-caisse { display: flex; align-items: center; gap: 10px; margin: 0; }
.sigles-caisse svg { display: block; height: 16px; width: auto; }
.note-vip { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.35; text-align: right; max-width: 280px; }
.rideau .rang-capsules { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.rideau .capsule {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 118px;
  padding: 14px 16px 14px 20px;
  border-radius: 28px;
  background:
    radial-gradient(ellipse 58% 90% at 86% 50%, rgba(139, 92, 246, .48), rgba(88, 40, 180, .12) 46%, transparent 68%),
    linear-gradient(180deg, #26143a 0%, #14081e 100%);
  border: 1px solid rgba(139, 92, 246, .32);
  box-shadow: inset 0 0 0 1px rgba(232, 193, 74, .04);
  color: #fff;
  text-decoration: none;
}
.rideau .capsule:hover {
  border-color: rgba(167, 112, 255, .55);
  background:
    radial-gradient(ellipse 62% 95% at 86% 50%, rgba(167, 112, 255, .56), rgba(88, 40, 180, .18) 48%, transparent 70%),
    linear-gradient(180deg, #2e1848 0%, #14081e 100%);
}
.rideau .capsule p { margin: 0; font-size: 15px; font-weight: 600; line-height: 1.35; }
.rideau .capsule img {
  width: 88px;
  height: 88px;
  object-fit: contain;
  flex-shrink: 0;
  filter: drop-shadow(0 8px 16px rgba(70, 24, 140, .45));
}
.duo-loge { display: grid; grid-template-columns: 1.45fr .9fr; gap: 12px; margin-bottom: 22px; }
.casier {
  background: var(--casier);
  border: 1px solid var(--ligne);
  border-radius: 16px;
  padding: 22px;
}
.casier h2 { margin: 0 0 8px; font-size: 22px; }
.casier p { margin: 0 0 16px; color: #d8cce4; }
.file-titre {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin: 8px 0 12px;
}
.file-titre h2 { margin: 0; font-size: 20px; }
.file-titre .compteur { color: var(--muted); font-size: 13px; }
.file-titre a { margin-left: auto; color: var(--or); font-weight: 700; font-size: 14px; }
.tapisserie {
  display: grid;
  grid-auto-flow: column;
  grid-template-rows: repeat(2, auto);
  grid-auto-columns: 164px;
  gap: 16px 12px;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: thin;
  padding-bottom: 6px;
}
.tapisserie::-webkit-scrollbar { height: 8px; }
.tapisserie::-webkit-scrollbar-thumb { background: #3a2d4a; border-radius: 8px; }
.tapisserie.filtre-actif {
  display: flex;
  flex-wrap: wrap;
  overflow: visible;
}
.affiche { position: relative; width: 164px; }
.affiche img {
  width: 164px;
  height: 218px;
  object-fit: cover;
  border-radius: 12px;
  display: block;
  background: #24182f;
}
.affiche figcaption {
  margin-top: 6px;
  font-size: 12.5px;
  line-height: 1.3;
  min-height: 32px;
}
.calque-affiche {
  position: absolute;
  left: 0; right: 0; top: 0;
  height: 218px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: rgba(16, 8, 24, .5);
  opacity: 0;
  transition: opacity .15s ease;
}
.affiche:hover .calque-affiche, .affiche:focus-within .calque-affiche { opacity: 1; }
.prose-salle { max-width: 860px; margin-top: 28px; }
.prose-salle h2 { font-size: 22px; margin: 28px 0 8px; }
.prose-salle p, .prose-salle li { color: #e4d6ef; }
.prose-salle a { color: var(--or); }
.interrogation {
  width: 100%;
  text-align: left;
  background: #1e1628;
  border: 1px solid var(--ligne);
  border-radius: 10px;
  padding: 14px 16px;
  margin-top: 10px;
  cursor: pointer;
  font-weight: 650;
  color: #fff;
  font-size: 15px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background .15s ease, border-color .15s ease;
}
.interrogation:hover {
  background: #281938;
  border-color: var(--or);
}
.interrogation::after {
  content: "+";
  color: var(--or);
  font-size: 20px;
  font-weight: 700;
  margin-left: 10px;
  transition: transform .2s ease;
}
.interrogation[aria-expanded="true"] {
  border-color: var(--or);
  background: #241434;
}
.interrogation[aria-expanded="true"]::after {
  content: "−";
}
.reponse-salle {
  padding: 12px 14px 16px;
  color: #e4d6ef;
  line-height: 1.65;
  background: rgba(30, 22, 40, 0.4);
  border-radius: 0 0 10px 10px;
  border-left: 2px solid var(--or);
  margin-bottom: 6px;
}
.date-update { color: var(--muted); font-size: 13px; }
.soubassement {
  margin-top: 36px;
  padding-top: 22px;
  border-top: 1px solid var(--ligne);
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 18px;
  align-items: start;
}
.soubassement h2 { margin: 0 0 6px; font-size: 18px; }
.soubassement p { margin: 0 0 4px; color: #d8cce4; }
.plan-atelier { border: 0; width: 100%; height: 220px; border-radius: 12px; background: #24182f; }
.ligne-18 { grid-column: 1 / -1; color: var(--muted); font-size: 13px; }
.ligne-18 a { color: var(--or); margin-right: 12px; }
.estrade {
  position: fixed;
  left: 248px;
  right: 0;
  bottom: 0;
  z-index: 35;
  display: flex;
  justify-content: center;
  padding: 10px 16px;
  background: rgba(16, 8, 24, .96);
  border-top: 1px solid var(--ligne);
}
.estrade a { min-width: min(280px, 100%); text-align: center; }
@media (max-width: 980px) {
  .bouton-loge { display: grid; }
  .lien-entrer { display: none; }
  .loggia, .plateau, .estrade { margin-left: 0; left: 0; }
  .trappe { left: 12px; }
  .coulisse { transform: translateX(-105%); transition: transform .2s ease; }
  body.loge-ouverte .coulisse { transform: none; }
  body.loge-ouverte .voile { display: block; position: fixed; inset: 0; background: rgba(0,0,0,.55); z-index: 45; }
  .file-caisse { flex-direction: column; align-items: flex-start; }
  .note-vip { text-align: left; }
  .rideau .rang-capsules { grid-template-columns: 1fr; }
  .duo-loge, .soubassement { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .plateau { padding: 16px 14px 120px; }
  .plateau h1 { font-size: 24px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .coulisse, .calque-affiche { transition: none; }
}
.cta-wrap { margin: 20px 0; }
.prose-salle a.btn-or {
  color: var(--encre) !important;
  background: var(--or);
  font-weight: 750;
  display: inline-block;
  padding: 10px 18px;
  border-radius: 10px;
  text-decoration: none;
}
.prose-salle a.btn-or:hover {
  filter: brightness(1.08);
  text-decoration: none;
}
.prose-salle ul, .prose-salle ol {
  padding-left: 22px;
  margin: 12px 0 18px;
}
.prose-salle li { margin-bottom: 8px; line-height: 1.6; }
.prose-salle p { line-height: 1.65; margin: 14px 0; }
.table-responsive {
  width: 100%;
  overflow-x: auto;
  margin: 24px 0 30px;
  -webkit-overflow-scrolling: touch;
}
.table-responsive table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0 7px;
  font-size: 14px;
  min-width: 520px;
}
.table-responsive thead th {
  background: #32164a;
  color: #fff;
  font-weight: 700;
  text-align: left;
  padding: 12px 14px;
  border-bottom: 2px solid var(--or);
}
.table-responsive thead th:first-child { border-radius: 8px 0 0 8px; }
.table-responsive thead th:last-child { border-radius: 0 8px 8px 0; }
.table-responsive tbody tr { background: #1e1628; }
.table-responsive tbody tr:nth-child(even) { background: #251a32; }
.table-responsive tbody tr:hover { background: #322243; }
.table-responsive tbody td {
  padding: 12px 14px;
  color: #e4d6ef;
  vertical-align: middle;
}
.table-responsive tbody td:first-child {
  border-radius: 8px 0 0 8px;
  font-weight: 650;
  color: #fff;
}
.table-responsive tbody td:last-child { border-radius: 0 8px 8px 0; }
.table-responsive td strong { color: var(--or); }
.prose-salle ul { list-style: none !important; padding-left: 0 !important; }
.prose-salle ul li { position: relative; padding-left: 24px; margin-bottom: 10px; }
.prose-salle ul li::before {
  content: "•";
  position: absolute;
  left: 6px;
  top: -2px;
  color: var(--or);
  font-size: 22px;
  line-height: 1;
}
.prose-salle ol {
  padding-left: 0 !important;
  list-style: none !important;
  counter-reset: etape-cpt;
  margin: 18px 0 24px;
}
.prose-salle ol li {
  position: relative;
  padding-left: 38px;
  margin-bottom: 14px;
  line-height: 1.6;
  counter-increment: etape-cpt;
}
.prose-salle ol li::before {
  content: counter(etape-cpt);
  position: absolute;
  left: 0;
  top: 2px;
  width: 26px;
  height: 26px;
  background: var(--or);
  color: var(--encre);
  font-weight: 800;
  font-size: 13px;
  border-radius: 50%;
  display: grid;
  place-items: center;
}

/* Illustrations officielles Trixino */
.prose-media {
  margin: 26px 0 30px;
  background: #181022;
  border: 1px solid var(--ligne);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 26px rgba(0, 0, 0, 0.45);
}
.prose-media img {
  display: block;
  width: 100%;
  height: auto;
  border-bottom: 1px solid rgba(232, 193, 74, 0.22);
  background: #140b1e;
}
.prose-media figcaption {
  padding: 12px 16px;
  font-size: 13.5px;
  color: #c9bad6;
  background: #1c1129;
  line-height: 1.55;
  display: flex;
  align-items: center;
  gap: 10px;
}
.prose-media figcaption::before {
  content: "📷";
  font-size: 15px;
  opacity: 0.85;
}
.prose-media figcaption strong {
  color: var(--or);
  font-weight: 650;
}

