/* ==========================================================
   METRO ROLEPLAY — Feuille de style principale
   Couleurs & polices : voir Metro_Roleplay_Kit_Complet/LISEZ-MOI.txt
   ========================================================== */

:root {
  --rouge: #E3141C;
  --rouge-sombre: #7A0A0F;
  --noir: #16171B;
  --noir-2: #1D1E23;
  --noir-3: #25262C;
  --acier: #9097A1;
  --blanc: #FFFFFF;
  --cyan: #27E1F0;

  --ligne: rgba(255, 255, 255, 0.08);
  --skew: -12deg;
  --max: 1200px;
  --nav-h: 72px;

  --f-titre: "Anton", "Impact", sans-serif;
  --f-texte: "Barlow Condensed", "Arial Narrow", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 24px); }

body {
  margin: 0;
  background: var(--noir);
  color: var(--blanc);
  font-family: var(--f-texte);
  font-size: 1.15rem;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; }

.wrap { width: min(var(--max), 100% - 32px); margin-inline: auto; }

.sr-only {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

/* Texture de rayures obliques (reprise de la bannière FiveM) */
.stripes {
  background-image: repeating-linear-gradient(
    60deg,
    rgba(255, 255, 255, 0.03) 0 12px,
    transparent 12px 48px
  );
}

/* ---------- Typo ---------- */

h1, h2, h3, h4 {
  font-family: var(--f-titre);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  line-height: 1.02;
  margin: 0;
}

.kicker {
  display: inline-block;
  font-family: var(--f-texte);
  font-weight: 700;
  font-style: italic;
  font-size: 0.95rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--acier);
}

/* Titre de section avec bloc "M" rouge, inspiré des entêtes du kit */
.section-title {
  display: inline-flex;
  align-items: stretch;
  transform: skewX(var(--skew));
  margin-bottom: 28px;
  font-family: var(--f-titre);
  font-size: clamp(1.6rem, 3.4vw, 2.6rem);
  line-height: 1;
}
.section-title .tag,
.section-title h2 {
  display: flex;
  align-items: center;
  font-size: inherit;
  line-height: inherit;
  padding: .32em .5em;
}
.section-title .tag { background: var(--rouge); padding-inline: .42em; }
.section-title h2 {
  background: var(--rouge-sombre);
  padding-right: .7em;
  /* filet rouge du bas : compensé pour garder le texte centré visuellement */
  padding-bottom: calc(.32em + 5px);
  box-shadow: inset 0 -5px 0 var(--rouge);
}
.section-title span { display: block; transform: skewX(calc(var(--skew) * -1)); }

.lead { font-size: 1.3rem; color: #D6D9DE; max-width: 62ch; }

/* Centrage optique : rogne l'interligne au-dessus des capitales et sous la ligne de base */
.section-title span, .btn > span, .hero__strap span, .chapter__num span,
.ticker__track span, .status dd {
  text-box: trim-both cap alphabetic;
}

/* ---------- Boutons ---------- */

.btn {
  --bg: var(--rouge);
  --fg: var(--blanc);
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 20px 30px;
  font-family: var(--f-texte);
  font-weight: 800;
  font-style: italic;
  font-size: 1.15rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--fg);
  background: var(--bg);
  border: 0;
  cursor: pointer;
  transform: skewX(var(--skew));
  box-shadow: -6px 6px 0 var(--rouge-sombre);
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.btn > * { transform: skewX(calc(var(--skew) * -1)); }
.btn:hover { transform: skewX(var(--skew)) translate(3px, -3px); box-shadow: -9px 9px 0 var(--rouge-sombre); }
.btn:active { transform: skewX(var(--skew)) translate(0, 0); box-shadow: -3px 3px 0 var(--rouge-sombre); }
.btn:focus-visible { outline: 3px solid var(--cyan); outline-offset: 4px; }

.btn--ghost {
  --bg: transparent;
  box-shadow: inset 0 0 0 2px var(--blanc);
}
.btn--ghost:hover { --bg: var(--blanc); --fg: var(--noir); box-shadow: inset 0 0 0 2px var(--blanc), -6px 6px 0 var(--rouge); }

.btn--dark { --bg: var(--noir); box-shadow: -6px 6px 0 rgba(0,0,0,.35); }

.btn svg { width: 20px; height: 20px; flex: none; }

/* ---------- Barre du haut ---------- */

.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--nav-h);
  background: var(--rouge);
  border-bottom: 4px solid var(--rouge-sombre);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
}
.topbar .wrap {
  height: 100%;
  display: flex;
  align-items: center;
  gap: 24px;
}
.brand { display: flex; align-items: center; text-decoration: none; flex: none; }
.brand img { height: 46px; width: auto; }

.nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.nav a {
  position: relative;
  padding: 10px 16px;
  font-weight: 700;
  font-style: italic;
  font-size: 1.05rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-decoration: none;
  color: rgba(255, 255, 255, 0.78);
  transition: color .15s;
}
.nav a:hover, .nav a[aria-current="page"] { color: var(--blanc); }
.nav a[aria-current="page"]::after {
  content: "";
  position: absolute; left: 16px; right: 16px; bottom: 2px; height: 4px;
  background: var(--blanc);
  transform: skewX(var(--skew));
}
.nav .btn { --bg: var(--noir); margin-left: 14px; padding: 14px 22px; font-size: 1rem; box-shadow: -4px 4px 0 var(--rouge-sombre); }
.nav .btn::after { display: none; }
.nav .btn:hover { color: var(--blanc); }

.nav-toggle {
  display: none;
  margin-left: auto;
  width: 46px; height: 46px;
  background: var(--noir);
  border: 0;
  color: var(--blanc);
  transform: skewX(var(--skew));
  cursor: pointer;
}
.nav-toggle svg { width: 24px; height: 24px; transform: skewX(12deg); }

@media (max-width: 860px) {
  .nav-toggle { display: grid; place-items: center; }
  .nav {
    position: fixed;
    inset: var(--nav-h) 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 12px 16px 24px;
    background: var(--rouge);
    border-bottom: 4px solid var(--rouge-sombre);
    transform: translateY(-8px);
    opacity: 0;
    visibility: hidden;
    transition: opacity .18s, transform .18s, visibility .18s;
  }
  .nav.is-open { opacity: 1; transform: none; visibility: visible; }
  .nav a { padding: 14px 4px; border-bottom: 1px solid rgba(255,255,255,.18); font-size: 1.2rem; }
  .nav a[aria-current="page"]::after { left: auto; right: 4px; top: 50%; bottom: auto; width: 18px; height: 18px; margin-top: -9px; }
  .nav .btn { margin: 18px 0 0; justify-content: center; }
  .brand img { height: 40px; }
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  min-height: calc(100svh - var(--nav-h));
  display: grid;
  align-items: center;
  overflow: hidden;
  isolation: isolate;
  padding: 80px 0 140px;
}
.hero__sky {
  position: absolute; inset: 0; z-index: -3;
  background:
    radial-gradient(ellipse 70% 55% at 72% 78%, rgba(227, 20, 28, 0.55), transparent 70%),
    radial-gradient(ellipse 40% 30% at 72% 82%, rgba(255, 140, 60, 0.28), transparent 70%),
    linear-gradient(180deg, #0E0F12 0%, #16171B 45%, #2A0B0E 100%);
}
.hero__sky::after {
  content: "";
  position: absolute; inset: 0;
  background-image: repeating-linear-gradient(60deg, rgba(255,255,255,.028) 0 14px, transparent 14px 56px);
}
.hero__city {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: -2;
  width: 100%; height: 46%;
}
.hero__city img { width: 100%; height: 100%; display: block; object-fit: cover; object-position: 60% 100%; }
.hero__fade {
  position: absolute; inset: auto 0 0 0; height: 120px; z-index: -1;
  background: linear-gradient(transparent, var(--noir));
}

.hero__inner { display: grid; gap: 28px; justify-items: start; }
.hero__logo {
  width: min(620px, 92%);
  filter: drop-shadow(0 18px 40px rgba(0,0,0,.55));
  animation: slam .7s cubic-bezier(.2,.9,.25,1.15) both;
}
@keyframes slam {
  from { opacity: 0; transform: translateX(-40px) skewX(-8deg) scale(1.04); }
  to   { opacity: 1; transform: none; }
}
.hero__strap {
  display: inline-block;
  background: var(--noir);
  padding: 13px 22px;
  transform: skewX(var(--skew));
  box-shadow: 0 0 0 1px var(--ligne);
  font-weight: 700;
  font-style: italic;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  font-size: clamp(.85rem, 2.2vw, 1.05rem);
}
.hero__strap span { display: inline-block; transform: skewX(12deg); }
.hero__strap b { color: var(--rouge); font-weight: 800; }

.hero__pitch { font-size: clamp(1.2rem, 2.4vw, 1.45rem); max-width: 46ch; color: #E2E4E8; margin: 0; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 18px 22px; margin-top: 6px; }

/* Encart statut serveur, style HUD */
.status {
  position: absolute;
  right: max(16px, calc((100vw - var(--max)) / 2));
  bottom: 48px;
  display: flex;
  align-items: stretch;
  transform: skewX(var(--skew));
  background: rgba(22,23,27,.85);
  border-left: 6px solid var(--rouge);
  box-shadow: 0 12px 30px rgba(0,0,0,.4);
}
.status > div { padding: 12px 22px; transform: skewX(12deg); }
.status > div + div { border-left: 1px solid var(--ligne); }
.status dt { font-size: .8rem; letter-spacing: .22em; text-transform: uppercase; color: var(--acier); font-weight: 700; }
.status dd { margin: 8px 0 0; font-family: var(--f-titre); font-size: 1.7rem; line-height: 1.1; }
.status .live { display: inline-flex; align-items: center; gap: 8px; }
.status .live::before {
  content: ""; width: 10px; height: 10px; border-radius: 50%;
  background: #52BD4B; box-shadow: 0 0 0 0 rgba(82,189,75,.6);
  animation: pulse 1.8s infinite;
}
@keyframes pulse { 70% { box-shadow: 0 0 0 10px rgba(82,189,75,0); } 100% { box-shadow: 0 0 0 0 rgba(82,189,75,0); } }

@media (max-width: 720px) {
  .hero { padding: 48px 0 48px; min-height: auto; }
  .hero__city { height: 34%; opacity: .7; }
  .status { position: static; margin: 36px 16px 0; width: calc(100% - 32px); }
  .status > div { flex: 1; padding: 10px 14px; }
  .status dd { font-size: 1.35rem; }
  .hero > .status { justify-self: start; }
}

/* ---------- Bandeau défilant ---------- */

.ticker {
  position: relative; z-index: 2;
  background: var(--rouge);
  border-bottom: 8px solid var(--rouge-sombre);
  overflow: hidden;
  height: 64px;
  display: flex;
  align-items: center;
}
.ticker__track {
  display: flex;
  width: max-content;
  animation: ticker 38s linear infinite;
}
.ticker__track span {
  display: flex;
  align-items: center;
  font-family: var(--f-titre);
  font-size: 1.55rem;
  line-height: 1;
  text-transform: uppercase;
  white-space: nowrap;
}
.ticker__track span::after {
  content: "";
  width: 12px; height: 26px;
  margin: 0 30px;
  background: var(--noir);
  transform: skewX(var(--skew));
}
@keyframes ticker { to { transform: translateX(-50%); } }

/* ---------- Sections ---------- */

.section { padding: 110px 0; position: relative; }
.section--alt { background: var(--noir-2); }
.section__head { margin-bottom: 44px; }
.section__head .lead { margin-top: 4px; }

/* Présentation */
.about {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 64px;
  align-items: center;
}
.about p { margin: 0 0 16px; color: #D6D9DE; }
.about strong { color: var(--blanc); }

.postcard {
  position: relative;
  aspect-ratio: 4 / 3.2;
  transform: skewX(var(--skew));
  background:
    linear-gradient(180deg, transparent 40%, rgba(22,23,27,.95)),
    radial-gradient(circle at 70% 65%, #FF7A3D 0 9%, transparent 9.5%),
    linear-gradient(180deg, #2B1A3A 0%, #8E1B2A 48%, #E3141C 72%, #F2703A 100%);
  box-shadow: -14px 14px 0 var(--rouge-sombre);
  overflow: hidden;
}
.postcard > img { position: absolute; inset: auto 0 0 0; width: 100%; height: 70%; object-fit: cover; object-position: 70% 100%; }
.postcard__label {
  position: absolute; left: 30px; bottom: 26px;
  transform: skewX(12deg);
}
.postcard__label small { display: block; letter-spacing: .3em; font-weight: 700; color: var(--acier); text-transform: uppercase; font-size: .85rem; }
.postcard__label strong { font-family: var(--f-titre); font-size: clamp(2rem, 4vw, 3rem); line-height: 1; text-transform: uppercase; font-weight: 400; }
.postcard::before {
  content: "";
  position: absolute; inset: 14px; z-index: 2;
  border: 2px solid rgba(255,255,255,.75);
  pointer-events: none;
}

@media (max-width: 900px) {
  .about { grid-template-columns: 1fr; gap: 48px; }
  .postcard { margin: 0 14px 0 20px; }
}

/* Chiffres */
.stats {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 0; margin-top: 56px;
  border-top: 1px solid var(--ligne);
}
.stats div { padding: 26px 20px 0 0; }
.stats b { display: block; font-family: var(--f-titre); font-weight: 400; font-size: clamp(2.2rem, 4.5vw, 3.4rem); line-height: 1; }
.stats b em { font-style: normal; color: var(--rouge); }
.stats span { color: var(--acier); font-weight: 700; letter-spacing: .16em; text-transform: uppercase; font-size: .9rem; }
@media (max-width: 720px) { .stats { grid-template-columns: repeat(2, 1fr); row-gap: 8px; } }

/* Cartes activités */
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.card {
  position: relative;
  background: var(--noir-3);
  padding: 30px 28px 32px;
  border-top: 4px solid var(--rouge);
  overflow: hidden;
  transition: transform .2s ease, background .2s ease;
}
.card:hover { transform: translateY(-4px); background: #2B2C33; }
.card::after {
  content: attr(data-n);
  position: absolute; right: 14px; bottom: -22px;
  font-family: var(--f-titre); font-size: 7rem; line-height: 1;
  color: rgba(255,255,255,.035);
  font-style: italic;
}
.card__icon {
  width: 56px; height: 56px;
  display: grid; place-items: center;
  background: var(--rouge);
  transform: skewX(var(--skew));
  box-shadow: -5px 5px 0 var(--rouge-sombre);
  margin-bottom: 22px;
}
.card__icon svg { width: 28px; height: 28px; transform: skewX(12deg); }
.card h3 { font-size: 1.7rem; margin-bottom: 10px; }
.card p { margin: 0; color: #C3C7CE; }
.card ul { margin: 14px 0 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 6px; }
.card li {
  font-size: .85rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  padding: 3px 10px; background: rgba(255,255,255,.06); color: var(--acier);
}
@media (max-width: 960px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .cards { grid-template-columns: 1fr; } }

/* Étapes */
.steps {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 22px; counter-reset: step;
}
.step {
  position: relative;
  padding: 34px 28px 30px;
  background: linear-gradient(135deg, rgba(227,20,28,.12), transparent 60%), var(--noir-3);
  border-left: 1px solid var(--ligne);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.step__n {
  font-family: var(--f-titre);
  font-size: 4.2rem; line-height: .9;
  color: transparent;
  -webkit-text-stroke: 2px var(--rouge);
  font-style: italic;
  display: block; margin-bottom: 12px;
}
.step h3 { font-size: 1.6rem; margin-bottom: 8px; }
.step p { margin: 0 0 20px; color: #C3C7CE; }
.step .btn { font-size: .95rem; padding: 15px 20px; margin-top: auto; }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr; } }

/* Équipe / rôles */
.roles {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.role {
  display: flex; align-items: center; gap: 16px;
  background: var(--noir-3);
  padding: 16px 18px;
}
.role img { width: 52px; height: 52px; flex: none; }
.role b { display: block; font-family: var(--f-titre); font-weight: 400; font-size: 1.3rem; text-transform: uppercase; line-height: 1.1; }
.role span { color: var(--acier); font-size: .98rem; line-height: 1.3; display: block; }
@media (max-width: 960px) { .roles { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .roles { grid-template-columns: 1fr; } }

/* Appel à l'action */
.cta {
  position: relative;
  background: var(--rouge);
  overflow: hidden;
  padding: 80px 0;
}
.cta::before {
  content: "";
  position: absolute; inset: 0;
  background-image: repeating-linear-gradient(60deg, rgba(0,0,0,.08) 0 18px, transparent 18px 64px);
}
.cta::after {
  content: "M";
  position: absolute; right: -2%; top: 50%;
  transform: translateY(-50%) skewX(var(--skew));
  font-family: var(--f-titre);
  font-size: clamp(16rem, 34vw, 30rem);
  line-height: 1;
  color: var(--rouge-sombre);
  opacity: .45;
}
.cta .wrap { position: relative; z-index: 1; display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.cta h2 { font-size: clamp(2.2rem, 5vw, 3.8rem); max-width: 16ch; }
.cta p { margin: 10px 0 0; font-size: 1.25rem; max-width: 48ch; }
.cta .btn--dark:hover { box-shadow: -9px 9px 0 rgba(0,0,0,.35); }

/* ---------- Pied de page ---------- */

.footer {
  background: #0F1013;
  padding: 64px 0 28px;
  border-top: 3px solid var(--rouge);
}
.footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
}
.footer img { height: 58px; width: auto; margin-bottom: 16px; }
.footer p { color: var(--acier); margin: 0; max-width: 38ch; }
.footer h4 { font-size: 1.1rem; letter-spacing: .08em; margin-bottom: 14px; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.footer ul a { color: var(--acier); text-decoration: none; }
.footer ul a:hover { color: var(--blanc); }
.footer__legal {
  margin-top: 48px; padding-top: 22px;
  border-top: 1px solid var(--ligne);
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  font-size: .9rem; color: #6C727B;
}
@media (max-width: 760px) { .footer__grid { grid-template-columns: 1fr 1fr; } .footer__grid > :first-child { grid-column: 1 / -1; } }

/* ==========================================================
   PAGE RÈGLEMENT
   ========================================================== */

.page-head {
  position: relative;
  padding: 90px 0 70px;
  overflow: hidden;
  background:
    radial-gradient(ellipse 60% 80% at 85% 100%, rgba(227,20,28,.35), transparent 70%),
    linear-gradient(180deg, #0E0F12, var(--noir));
}
.page-head::after {
  content: "";
  position: absolute; inset: 0;
  background-image: repeating-linear-gradient(60deg, rgba(255,255,255,.028) 0 14px, transparent 14px 56px);
  pointer-events: none;
}
.page-head .wrap { position: relative; z-index: 1; }
.page-head__banner { width: min(640px, 100%); height: auto; margin: 14px 0 22px -8px; }
.page-head .lead { margin: 0; }
.page-head__meta { display: flex; flex-wrap: wrap; gap: 10px 26px; margin-top: 22px; color: var(--acier); font-weight: 700; letter-spacing: .12em; text-transform: uppercase; font-size: .9rem; }
.page-head__meta b { color: var(--blanc); }

.rules-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 56px;
  align-items: start;
  padding: 56px 0 110px;
}

.toc {
  position: sticky;
  top: calc(var(--nav-h) + 24px);
}
.search {
  position: relative;
  margin-bottom: 22px;
}
.search input {
  width: 100%;
  padding: 13px 14px 13px 44px;
  background: var(--noir-3);
  border: 1px solid var(--ligne);
  border-bottom: 3px solid var(--rouge);
  color: var(--blanc);
  font: inherit;
  font-size: 1.05rem;
}
.search input::placeholder { color: #737983; }
.search input:focus { outline: none; border-color: rgba(255,255,255,.25); }
.search svg { position: absolute; left: 14px; top: 50%; width: 20px; height: 20px; margin-top: -11px; color: var(--acier); }

.toc ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; counter-reset: toc; }
.toc a {
  display: flex; align-items: baseline; gap: 12px;
  padding: 9px 12px;
  text-decoration: none;
  color: var(--acier);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  border-left: 3px solid transparent;
  transition: color .15s, background .15s, border-color .15s;
}
.toc a small { font-family: var(--f-titre); font-size: 1rem; color: #5B616A; letter-spacing: 0; font-weight: 400; min-width: 22px; }
.toc a:hover { color: var(--blanc); background: rgba(255,255,255,.04); }
.toc a.is-active { color: var(--blanc); border-left-color: var(--rouge); background: rgba(227,20,28,.1); }
.toc a.is-active small { color: var(--rouge); }

.toc nav {
  max-height: calc(100vh - var(--nav-h) - 140px);
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--rouge-sombre) transparent;
  padding-right: 4px;
}
.toc__rules { margin: 2px 0 8px 14px !important; gap: 0 !important; border-left: 1px solid var(--ligne); }
.toc__rules a {
  padding: 4px 10px;
  font-size: .95rem;
  text-transform: none;
  letter-spacing: .01em;
  font-weight: 500;
  line-height: 1.3;
}
.toc__rules a small { font-size: .85rem; min-width: 20px; }

.toc__note {
  margin-top: 22px; padding: 16px;
  background: var(--noir-3);
  font-size: 1rem; color: var(--acier);
  border-left: 3px solid var(--cyan);
}
.toc__note a { color: var(--blanc); }

.rules { display: grid; gap: 64px; }

.chapter__head {
  display: flex; align-items: center; gap: 18px;
  margin-bottom: 22px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--ligne);
}
.chapter__num {
  flex: none;
  width: 62px; height: 62px;
  display: grid; place-items: center;
  background: var(--rouge);
  transform: skewX(var(--skew));
  box-shadow: -5px 5px 0 var(--rouge-sombre);
  font-family: var(--f-titre);
  font-size: 1.9rem;
}
.chapter__num span { transform: skewX(12deg); }
.chapter__head h2 { font-size: clamp(1.8rem, 3.6vw, 2.5rem); }
.chapter__intro { color: #C3C7CE; margin: 0 0 22px; }

.rule {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 18px;
  padding: 18px 20px;
  background: var(--noir-2);
  border-left: 3px solid transparent;
  transition: border-color .15s, background .15s;
}
.rule + .rule { margin-top: 8px; }
.rule:hover { border-left-color: var(--rouge); background: #202127; }
.rule__id {
  font-family: var(--f-titre);
  color: var(--rouge);
  font-size: 1.6rem;
  line-height: 1.1;
  text-decoration: none;
}
.rule__id:hover { color: var(--blanc); }
.rule__label {
  margin-top: 14px !important;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  font-size: .95rem;
  color: var(--blanc) !important;
}

/* Philosophie */
.philo { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.philo > div {
  background: linear-gradient(160deg, rgba(227,20,28,.14), transparent 55%), var(--noir-2);
  border-top: 4px solid var(--rouge);
  padding: 24px 22px;
}
.philo h3 { font-size: 1.45rem; margin-bottom: 10px; }
.philo p { margin: 0; color: #C3C7CE; }
.philo p + p { margin-top: 10px; }
@media (max-width: 1100px) { .philo { grid-template-columns: 1fr; } }
.rule h3 {
  font-family: var(--f-texte);
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: .04em;
  margin-bottom: 4px;
}
.rule p { margin: 0; color: #C3C7CE; }
.rule p + p { margin-top: 8px; }
.rule ul { margin: 8px 0 0; padding-left: 20px; color: #C3C7CE; }
.rule li::marker { color: var(--rouge); }
.rule strong { color: var(--blanc); }

mark { background: rgba(227,20,28,.4); color: var(--blanc); padding: 0 2px; }

.no-result { display: none; padding: 26px; background: var(--noir-2); color: var(--acier); text-align: center; }
.no-result.is-visible { display: block; }

@media (max-width: 960px) {
  .rules-layout { grid-template-columns: 1fr; gap: 32px; padding-top: 32px; }
  .toc { position: static; }
  .toc nav { max-height: none; }
  .toc__rules { display: none !important; }
  .toc ol { grid-template-columns: repeat(3, 1fr); }
  .toc__note { display: none; }
}
@media (max-width: 520px) {
  .toc ol { grid-template-columns: 1fr; }
  .rule { grid-template-columns: 1fr; gap: 6px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}
