/* Wiki Antalya V — « la nuit à Los Santos » : vert du logo, néon des affiches, police Montserrat. */
@font-face {
  font-family: "Montserrat";
  src: url("../fonts/montserrat.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --night: #0C1512;
  --asphalt: #15201B;
  --asphalt-2: #1C2A23;
  --line: #27382F;
  --brand: #00843F;
  --brand-deep: #005C2C;
  --neon: #00F06A;
  --neon-soft: rgba(0, 240, 106, .14);
  --paper: #EEF5F0;
  --text: #C9D6CE;
  --muted: #8DA396;
  --siren-red: #FF3B4E;
  --siren-blue: #3D8BFF;
  --amber: #FFB020;
  --display: "Montserrat", "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
  --body: "Montserrat", "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
  --topbar: 64px;
  --sidebar: 288px;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-top: calc(var(--topbar) + 20px); -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--night); color: var(--text); font: 500 16px/1.75 var(--body); }
a { color: var(--neon); text-decoration-thickness: 1px; text-underline-offset: 3px; }
img, video { max-width: 100%; height: auto; display: block; }
kbd { font: 600 11px/1 var(--body); border: 1px solid var(--line); border-radius: 5px; padding: 3px 6px; color: var(--muted); }
:focus-visible { outline: 3px solid var(--neon); outline-offset: 3px; }
.skip-link { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--neon); color: #04140B; padding: 8px 14px; border-radius: 8px; font-weight: 700; }
.skip-link:focus { left: 8px; }
.muted { color: var(--muted); }
.wrap { max-width: 1240px; margin: 0 auto; padding: 0 28px; }
.wrap-narrow { max-width: 780px; }

/* Décalage rouge/cyan des affiches */
.glitch { text-shadow: -2px 0 rgba(255, 45, 85, .75), 2px 0 rgba(0, 210, 255, .65); }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 22px; border-radius: 10px; border: 2px solid transparent;
  font: 700 15px/1 var(--body); text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: transform .12s ease, background-color .12s ease, border-color .12s ease;
}
.btn:active { transform: translateY(1px); }
.btn-neon { background: var(--neon); color: #04140B; }
.btn-neon:hover { background: #5CFFA2; }
.btn-ghost { border-color: rgba(238, 245, 240, .35); color: var(--paper); background: rgba(12, 21, 18, .35); }
.btn-ghost:hover { border-color: var(--paper); }

/* ---------- Barre du haut ---------- */
.topbar {
  position: sticky; top: 0; z-index: 40; height: var(--topbar);
  display: flex; align-items: center; gap: 22px; padding: 0 24px;
  background: rgba(12, 21, 18, .92); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.is-home .topbar { position: fixed; left: 0; right: 0; background: linear-gradient(rgba(5, 10, 8, .75), rgba(5, 10, 8, 0)); border-bottom-color: transparent; backdrop-filter: none; }
.is-home .topbar.is-scrolled { background: rgba(12, 21, 18, .94); border-bottom-color: var(--line); backdrop-filter: blur(10px); }
.brand { display: flex; align-items: center; gap: 10px; color: var(--paper); text-decoration: none; flex: none; }
.brand img { width: 36px; height: 36px; border-radius: 9px; }
.brand-word { font: 800 21px/1 var(--display); text-transform: uppercase; letter-spacing: -.01em; }
.brand-word b { font-weight: 900; color: var(--neon); }
.topnav { display: flex; gap: 2px; margin-left: 8px; }
.topnav a { color: var(--text); text-decoration: none; font-weight: 600; font-size: 15px; padding: 8px 12px; border-radius: 8px; }
.topnav a:hover { color: var(--paper); background: rgba(255, 255, 255, .06); }
.topnav a[aria-current] { color: var(--neon); }
.search-btn {
  margin-left: auto; display: flex; align-items: center; gap: 8px; min-width: 200px; padding: 8px 10px 8px 12px;
  color: var(--muted); font-size: 15px; text-decoration: none;
  background: rgba(255, 255, 255, .05); border: 1px solid var(--line); border-radius: 10px;
}
.search-btn:hover { color: var(--paper); border-color: var(--muted); }
.search-btn kbd { margin-left: auto; }
.btn-play { padding: 10px 18px; }
.menu-btn { display: none; background: none; border: 0; color: var(--paper); padding: 6px; border-radius: 8px; cursor: pointer; }

/* ---------- Accueil : héros vidéo ---------- */
.hero { position: relative; min-height: 100vh; min-height: 100svh; display: flex; align-items: flex-end; overflow: hidden; isolation: isolate; }
.hero-video, .hero-shade { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-video { object-fit: cover; z-index: -2; }
.hero-shade {
  z-index: -1;
  background:
    linear-gradient(to top, var(--night) 0%, rgba(12, 21, 18, .82) 26%, rgba(12, 21, 18, .15) 62%, rgba(12, 21, 18, .35) 100%),
    linear-gradient(to right, rgba(12, 21, 18, .78) 0%, rgba(12, 21, 18, 0) 60%);
}
.hero-shade::after { /* trame d'écran des affiches */
  content: ""; position: absolute; inset: 0; opacity: .5;
  background: repeating-linear-gradient(0deg, rgba(0, 0, 0, .22) 0 1px, transparent 1px 3px);
}
.hero-content { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 28px 9vh; }
.hero-title { margin: 0; color: #fff; font: 900 clamp(34px, 5.6vw, 86px)/1.02 var(--display); letter-spacing: -.035em; }
.hero-title span { display: block; }
.hero-lead { max-width: 560px; margin: 24px 0 0; color: var(--paper); font-size: clamp(17px, 1.6vw, 20px); line-height: 1.55; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.hero-pause {
  position: absolute; right: 24px; bottom: 24px; width: 42px; height: 42px; display: grid; place-items: center;
  border-radius: 50%; border: 1px solid rgba(238, 245, 240, .35); background: rgba(12, 21, 18, .5); color: var(--paper); cursor: pointer;
}
.hero-pause .i-play, .hero-pause[aria-pressed="true"] .i-pause { display: none; }
.hero-pause[aria-pressed="true"] .i-play { display: inline; }

/* ---------- Accueil : mur d'affiches ---------- */
.wall { padding: 72px 0 40px; }
.wall-title, .home-intro h2 { margin: 0 0 28px; color: var(--paper); font: 800 clamp(28px, 3.4vw, 42px)/1.1 var(--display); letter-spacing: -.025em; }
.wall-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px; }
.poster {
  position: relative; display: block; overflow: hidden; isolation: isolate; aspect-ratio: 640 / 681;
  border-radius: 16px; border: 2px solid var(--line); color: #fff; text-decoration: none;
  transition: border-color .15s ease, transform .15s ease;
}
.poster-img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.poster::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(to top, rgba(6, 14, 10, .96) 0%, rgba(6, 14, 10, .62) 36%, rgba(6, 14, 10, 0) 66%); }
.poster:hover, .poster:focus-visible { border-color: var(--neon); transform: translateY(-4px); outline: none; }
.poster:hover .poster-img, .poster:focus-visible .poster-img { transform: scale(1.04); }
.poster-overlay { position: absolute; left: 0; right: 0; bottom: 0; display: grid; justify-items: start; gap: 6px; padding: 18px; }
.poster-overlay img { border-radius: 50%; box-shadow: 0 0 0 2px rgba(255, 255, 255, .85); margin-bottom: 6px; }
.poster-title { font: 900 26px/1.05 var(--display); letter-spacing: -.03em; text-shadow: -2px 0 rgba(255, 45, 85, .6), 2px 0 rgba(0, 210, 255, .55); }
.poster-sub { color: #D5F5E2; font-size: 14px; font-weight: 600; line-height: 1.4; }
.home-intro { padding: 48px 0 24px; }
.invite { padding: 40px 0 80px; }
.invite-banner img { width: 100%; border-radius: 16px; border: 2px solid var(--line); }
.invite-banner:hover img { border-color: var(--neon); }
.invite-row { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 22px; }

/* ---------- Pages : structure ---------- */
.shell { display: grid; grid-template-columns: var(--sidebar) minmax(0, 1fr); min-height: calc(100vh - var(--topbar)); }
.sidebar {
  position: sticky; top: var(--topbar); height: calc(100vh - var(--topbar)); overflow-y: auto;
  display: flex; flex-direction: column; gap: 20px; padding: 24px 16px;
  background: #0A120F; border-right: 1px solid var(--line);
  scrollbar-width: thin; scrollbar-color: var(--line) transparent;
}
.sidebar nav { flex: 1; display: grid; gap: 22px; align-content: start; }
.nav-section-title { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; color: var(--paper); text-decoration: none; font: 800 16px/1.2 var(--display); }
.nav-section-title img { border-radius: 50%; }
.nav-list { list-style: none; margin: 0; padding: 0; }
.nav-list .nav-list { display: none; margin: 2px 0 4px 14px; padding-left: 10px; border-left: 1px solid var(--line); }
.nav-list li.is-open > .nav-list { display: block; }
.nav-row { display: flex; align-items: center; border-radius: 8px; }
.nav-row:hover { background: rgba(255, 255, 255, .04); }
.nav-row a { flex: 1; padding: 7px 10px 7px 12px; color: var(--muted); text-decoration: none; font-size: 15px; line-height: 1.35; border-left: 3px solid transparent; border-radius: 0; }
.nav-row a:hover { color: var(--paper); }
.nav-row.is-active { background: var(--neon-soft); }
.nav-row.is-active a { color: var(--neon); font-weight: 700; border-left-color: var(--neon); }
.nav-toggle { flex: none; display: grid; place-items: center; width: 30px; height: 30px; background: none; border: 0; border-radius: 6px; color: var(--muted); cursor: pointer; }
.nav-toggle:hover { color: var(--paper); background: var(--line); }
.nav-toggle svg { transition: transform .15s ease; }
li.is-open > .nav-row .nav-toggle svg { transform: rotate(90deg); }
.sidebar-discord { display: grid; gap: 2px; padding: 14px; border-radius: 12px; text-decoration: none; color: var(--paper); background: var(--brand) url("../media/fond.webp") center / 360px; }
.sidebar-discord span { color: #D5F5E2; font-size: 14px; line-height: 1.4; }
.sidebar-discord:hover { outline: 2px solid var(--neon); }
.main { min-width: 0; }

/* Plaque de titre : texture verte de la DA */
.plate {
  position: relative; overflow: hidden;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 40%, rgba(12, 21, 18, .55) 100%), var(--brand) url("../media/fond.webp") center / 700px;
  border-bottom: 3px solid var(--neon);
}
.plate-inner { display: flex; align-items: center; gap: 22px; max-width: 1100px; margin: 0 auto; padding: 38px 40px 34px; }
.plate-badge { flex: none; width: 72px; height: 72px; border-radius: 50%; box-shadow: 0 0 0 3px rgba(255, 255, 255, .85); }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: 14px; font-weight: 600; color: #CFF5DD; }
.crumbs a { color: #E9FFF1; text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }
.plate-title { margin: 4px 0 0; color: #fff; font: 900 clamp(30px, 4.2vw, 50px)/1.05 var(--display); letter-spacing: -.03em; text-shadow: -2px 0 rgba(255, 45, 85, .55), 2px 0 rgba(0, 210, 255, .5); }
.plate-lead { margin: 10px 0 0; color: #E3F7EA; font-size: 18px; max-width: 60ch; }

.page-grid { display: grid; grid-template-columns: minmax(0, 760px); gap: 56px; justify-content: center; padding: 0 40px; }
.page-grid.has-toc { grid-template-columns: minmax(0, 760px) 220px; }
.page { min-width: 0; padding: 40px 0 24px; }
.page-updated { margin: 48px 0 0; color: var(--muted); font-size: 14px; }

/* ---------- Texte des pages ---------- */
.prose { overflow-wrap: break-word; }
.prose > :first-child { margin-top: 0; }
.prose h2 { position: relative; margin: 2em 0 .6em; padding-top: 14px; color: var(--paper); font: 800 27px/1.2 var(--display); letter-spacing: -.02em; }
.prose h2::before { content: ""; position: absolute; top: 0; left: 0; width: 48px; height: 4px; border-radius: 2px; background: var(--neon); }
.prose h3 { margin: 1.6em 0 .5em; color: var(--paper); font-size: 19px; font-weight: 800; line-height: 1.3; letter-spacing: -.01em; }
.prose h4 { margin: 1.4em 0 .4em; color: var(--paper); font-size: 17px; }
.prose .anchor { display: none; }
.prose p, .prose ul, .prose ol { margin: 0 0 1em; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin: .3em 0; padding-left: .2em; }
.prose li::marker { color: var(--neon); font-weight: 700; }
.prose strong { color: var(--paper); }
.prose a { color: var(--neon); }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 2.4em 0; }
.prose img { border-radius: 12px; border: 1px solid var(--line); }
.prose code { font: .9em ui-monospace, Consolas, monospace; background: var(--asphalt-2); border: 1px solid var(--line); border-radius: 6px; padding: .1em .4em; color: var(--paper); }
.prose pre { background: var(--asphalt); border: 1px solid var(--line); border-radius: 10px; padding: 14px 16px; overflow-x: auto; }
.prose pre code { background: none; border: 0; padding: 0; }
.prose blockquote { margin: 0 0 1em; padding: 4px 18px; border-left: 3px solid var(--line); color: var(--muted); }

/* Encadrés : couleurs des gyrophares */
.callout { margin: 0 0 1.3em; padding: 16px 18px; border-radius: 12px; border: 1px solid; border-left-width: 5px; }
.callout > :last-child { margin-bottom: 0; }
.callout-title { margin: 0 0 .35em !important; color: var(--paper); font: 800 16px/1.3 var(--display); }
.callout-info { background: rgba(61, 139, 255, .09); border-color: rgba(61, 139, 255, .45); }
.callout-astuce { background: var(--neon-soft); border-color: rgba(0, 240, 106, .5); }
.callout-attention { background: rgba(255, 176, 32, .09); border-color: rgba(255, 176, 32, .5); }
.callout-interdit { background: rgba(255, 59, 78, .1); border-color: rgba(255, 59, 78, .55); }
.callout-exemple { background: var(--asphalt); border-color: var(--line); border-left-color: var(--muted); }
.callout-exemple .callout-title { color: var(--muted); font-size: 15px; }

/* Ancre « # » au survol des titres : pour partager le lien exact d'une règle */
.prose h2 .anchor, .prose h3 .anchor { display: inline; position: absolute; left: -28px; color: var(--muted); text-decoration: none; opacity: 0; font-family: var(--body); font-weight: 700; }
.prose h2 .anchor { top: 18px; }
.prose h2:hover .anchor, .prose h3:hover .anchor, .prose .anchor:focus { opacity: 1; }
.prose h3 { position: relative; }

/* Règles d'or de l'accueil */
.home-intro ol { list-style: none; padding: 0; counter-reset: gold; display: grid; gap: 12px; margin: 0 0 1.4em; }
.home-intro ol li { counter-increment: gold; position: relative; display: block; min-height: 80px; margin: 0; padding: 24px 18px 22px 82px; background: var(--asphalt); border: 1px solid var(--line); border-radius: 14px; }
.home-intro ol li::before { content: counter(gold); position: absolute; left: 14px; top: 50%; transform: translateY(-50%); display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: var(--brand) url("../media/fond.webp") center / 200px; color: #fff; font: 800 22px/1 var(--display); }
/* Page d'accueil d'une section */
.index-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.index-card { display: grid; gap: 4px; padding: 18px 20px; border: 2px solid var(--line); border-radius: 14px; background: var(--asphalt); color: var(--paper); text-decoration: none; }
.index-card:hover { border-color: var(--neon); }
.index-title { font: 800 20px/1.25 var(--display); letter-spacing: -.01em; }
.index-desc { color: var(--muted); font-size: 15.5px; }
.index-children { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0 0; padding: 0 0 0 20px; }
.index-children a { display: inline-block; padding: 5px 12px; border-radius: 999px; border: 1px solid var(--line); color: var(--text); text-decoration: none; font-size: 14px; }
.index-children a:hover { border-color: var(--neon); color: var(--neon); }
.nav-section-title.is-active span { color: var(--neon); }

/* Tableaux */
.table-wrap { margin: 0 0 1.3em; overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; }
.table-filter { display: flex; align-items: center; gap: 8px; margin: 0 0 10px; padding: 10px 14px; background: var(--asphalt); border: 1px solid var(--line); border-radius: 10px; color: var(--muted); }
.table-filter input { flex: 1; background: none; border: 0; color: var(--paper); font: inherit; outline: none; }
.prose table { width: 100%; border-collapse: collapse; font-size: 15.5px; }
.prose th, .prose td { padding: 11px 14px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.prose th { background: var(--brand-deep); color: #fff; font-weight: 700; white-space: nowrap; }
.prose tr:last-child td { border-bottom: 0; }
.prose tbody tr:nth-child(even) { background: rgba(255, 255, 255, .02); }

/* Précédent / suivant */
.pager { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 36px; }
.pager-link { display: grid; gap: 4px; padding: 16px 18px; border: 2px solid var(--line); border-radius: 12px; text-decoration: none; color: var(--paper); }
.pager-link:hover { border-color: var(--neon); }
.pager-next { grid-column: 2; text-align: right; }
.pager-label { color: var(--muted); font-size: 14px; }
.pager-title { font: 800 18px/1.25 var(--display); }

/* Sommaire de la page */
.toc { position: sticky; top: calc(var(--topbar) + 32px); align-self: start; padding-top: 40px; max-height: calc(100vh - var(--topbar) - 48px); overflow-y: auto; font-size: 14px; }
.toc-title { margin: 0 0 10px; color: var(--paper); font: 800 14px/1 var(--display); }
.toc ul { list-style: none; margin: 0; padding: 0; border-left: 1px solid var(--line); }
.toc a { display: block; padding: 5px 0 5px 14px; margin-left: -1px; border-left: 2px solid transparent; color: var(--muted); text-decoration: none; line-height: 1.4; }
.toc a:hover { color: var(--paper); }
.toc a.is-active { color: var(--neon); border-left-color: var(--neon); }
.toc-l3 a { padding-left: 26px; }

/* ---------- Pied de page ---------- */
.site-footer { border-top: 1px solid var(--line); background: #08100C; }
.footer-inner { display: flex; align-items: center; gap: 18px; max-width: 1240px; margin: 0 auto; padding: 26px 28px; color: var(--muted); font-size: 14px; }
.footer-inner p { margin: 0; flex: 1; }
.footer-inner nav { display: flex; gap: 16px; }
.footer-inner a { color: var(--text); text-decoration: none; font-weight: 600; }
.footer-inner a:hover { color: var(--neon); }

/* ---------- Recherche ---------- */
.search-dialog { width: min(660px, calc(100vw - 24px)); max-height: min(580px, calc(100vh - 80px)); margin: 76px auto auto; padding: 0; background: var(--asphalt); color: var(--text); border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 30px 80px rgba(0, 0, 0, .6); }
.search-dialog::backdrop { background: rgba(4, 8, 6, .7); }
.search-dialog[open] { display: flex; flex-direction: column; }
.search-form { display: flex; align-items: center; gap: 10px; padding: 16px 18px; border-bottom: 1px solid var(--line); color: var(--muted); }
.search-form input { flex: 1; background: none; border: 0; color: var(--paper); font: 18px var(--body); outline: none; }
.search-form input::-webkit-search-cancel-button { display: none; }
.search-results, .result-list { list-style: none; margin: 0; padding: 8px; overflow-y: auto; }
.search-results a, .result-list a { display: grid; gap: 3px; padding: 11px 14px; border-radius: 10px; color: var(--text); text-decoration: none; }
.search-results a:hover, .search-results a[aria-selected="true"], .result-list a:hover { background: var(--asphalt-2); }
.search-results a[aria-selected="true"] { box-shadow: inset 3px 0 0 var(--neon); }
.result-title { color: var(--paper); font-weight: 700; }
.result-section { color: var(--neon); font-size: 13px; font-weight: 600; }
.result-snippet { color: var(--muted); font-size: 14px; line-height: 1.5; }
.result-snippet mark, .search-results mark { background: rgba(0, 240, 106, .22); color: var(--paper); border-radius: 3px; padding: 0 2px; }
.search-empty { margin: 0; padding: 26px; text-align: center; color: var(--muted); }
.result-list { padding: 0; }
.search-inline { display: flex; gap: 10px; margin: 0 0 22px; }
.search-inline input { flex: 1; min-width: 0; padding: 12px 14px; background: var(--asphalt); border: 1px solid var(--line); border-radius: 10px; color: var(--paper); font: inherit; }

/* ---------- Pages d'état (404, erreur) ---------- */
.state { max-width: 620px; margin: 0 auto; padding: 72px 24px; text-align: center; }
.state > img { margin: 0 auto; border-radius: 50%; }
.state-code { margin: 16px 0 0; color: var(--neon); font: 900 88px/1 var(--display); letter-spacing: -.04em; }
.state h1 { margin: 10px 0 12px; color: var(--paper); font: 800 30px/1.15 var(--display); letter-spacing: -.02em; }
.state .search-inline { margin: 26px 0; }
.error-detail { text-align: left; white-space: pre-wrap; background: var(--asphalt); border: 1px solid var(--line); border-radius: 10px; padding: 12px; font: 13px ui-monospace, monospace; }

/* ---------- Adaptation aux écrans ---------- */
@media (max-width: 1279px) {
  .page-grid.has-toc { grid-template-columns: minmax(0, 760px); }
  .toc { display: none; }
}
@media (max-width: 1100px) {
  .topnav { display: none; }
  .wall-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 1023px) {
  .is-docs .menu-btn { display: inline-flex; }
  .shell { grid-template-columns: minmax(0, 1fr); }
  .sidebar {
    position: fixed; top: var(--topbar); left: 0; bottom: 0; z-index: 45; width: min(320px, 86vw); height: auto;
    transform: translateX(-100%); transition: transform .2s ease;
  }
  body.menu-open .sidebar { transform: none; }
  .sidebar-backdrop { position: fixed; inset: var(--topbar) 0 0 0; z-index: 42; background: rgba(4, 8, 6, .6); }
  .page-grid { padding: 0 22px; }
  .plate-inner { padding: 30px 22px 26px; }
}
@media (max-width: 640px) {
  :root { --topbar: 58px; }
  body { font-size: 16px; }
  .topbar { gap: 10px; padding: 0 12px; }
  .brand-word { font-size: 18px; }
  .search-btn { min-width: 0; padding: 9px; }
  .search-btn .search-label, .search-btn kbd { display: none; }
  .btn-play { padding: 9px 14px; }
  .wrap { padding: 0 18px; }
  .hero-content { padding: 0 18px 80px; }
  .hero-actions .btn { flex: 1 1 100%; }
  .hero-pause { right: 14px; bottom: 14px; }
  .wall { padding-top: 48px; }
  .wall-grid { gap: 16px; }
  .poster { aspect-ratio: 3 / 4; }
  .poster-overlay { padding: 12px; gap: 4px; }
  .poster-overlay img { width: 32px; height: 32px; margin-bottom: 2px; }
  .poster-title { font-size: 19px; }
  .poster-sub { font-size: 12.5px; }
  .plate-inner { gap: 14px; }
  .plate-badge { width: 52px; height: 52px; }
  .page-grid { padding: 0 16px; }
  .page { padding-top: 28px; }
  .prose h2 { font-size: 23px; }
  .prose h2 .anchor, .prose h3 .anchor { display: none; }
  .home-intro ol li { padding: 12px 14px 12px 66px; min-height: 66px; }
  .home-intro ol li::before { width: 42px; height: 42px; font-size: 21px; }
  .pager { grid-template-columns: 1fr; }
  .pager-next { grid-column: 1; }
  .footer-inner { flex-direction: column; text-align: center; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
  .poster:hover, .poster:hover .poster-img { transform: none; }
}

/* Video de tuto integree dans une page */
.tuto-video { margin: 0 0 1.6em; }
.tuto-video video { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; border-radius: 14px; border: 2px solid var(--line); background: var(--night); }
.tuto-video figcaption { margin-top: 8px; color: var(--muted); font-size: 14px; }
