/* ---------------------------------------------------------------------------------
   RÈGLEMENTS (reglement.php, généré par ~/reglement-site/outils/reglement.py ; JS : assets/js/reglement.js)
   15/11/2026 : feuille propre à la page (avant : fin de style.css). Clair + sombre (html[data-theme="dark"]).
   --------------------------------------------------------------------------------- */
html { --rg-bar: 0px; --rg-stick: 0px; }
html.rg-bar-on { --rg-bar: 66px; }

/* ---- haut de page */
.rg-progress { position: fixed; left: 0; right: 0; top: calc(var(--nav-h) + var(--rg-bar)); height: 3px; z-index: 60; pointer-events: none; }
.rg-progress span { display: block; height: 100%; background: linear-gradient(90deg, var(--sky-4), var(--violet)); transform: scaleX(0); transform-origin: left; }
.rg-hero { position: relative; padding: 56px 0 44px; background: radial-gradient(900px 320px at 50% -60px, color-mix(in srgb, var(--sky-4) 22%, transparent), transparent 70%), var(--bg); border-bottom: 1px solid var(--line); }
.rg-hero-in { max-width: 860px; text-align: center; }
.rg-crumb { font-size: 13.5px; font-weight: 600; color: var(--ink-3); margin-bottom: 18px; }
.rg-crumb a { color: var(--ink-3); text-decoration: none; }
.rg-crumb a:hover { color: var(--sky-5); }
.rg-crumb span { margin: 0 8px; opacity: .5; }
.rg-logo { display: block; width: 140px; height: auto; margin: -6px auto 6px; filter: drop-shadow(0 18px 24px rgba(27, 23, 64, .28)); }
.rg-hero h1 { font-family: var(--font-body); font-weight: 800; letter-spacing: -.025em; font-size: clamp(34px, 4.6vw, 52px); color: var(--ink); margin-bottom: 14px; }
.rg-sub { font-size: clamp(16px, 1.6vw, 18.5px); color: var(--ink-2); max-width: 620px; margin: 0 auto 26px; line-height: 1.6; }

.rg-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; max-width: 640px; margin: 0 auto 18px; }
.rg-tab { --c: #2f7bf0; display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 16px; background: var(--surface); border: 1.5px solid var(--line); text-decoration: none; color: var(--ink); text-align: left; transition: border-color .15s, box-shadow .15s, transform .15s; }
.rg-tab-d { --c: #5865f2; }
.rg-tab:hover { border-color: color-mix(in srgb, var(--c) 50%, var(--line)); transform: translateY(-2px); color: var(--ink); }
.rg-tab.on { border-color: var(--c); box-shadow: 0 0 0 3px color-mix(in srgb, var(--c) 20%, transparent), 0 14px 30px -20px var(--c); }
.rg-tab-i { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; flex: 0 0 auto; color: var(--c); background: color-mix(in srgb, var(--c) 13%, var(--surface)); }
.rg-tab.on .rg-tab-i { background: var(--c); color: #fff; }
.rg-tab-i svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.rg-tab-t strong { display: block; font-size: 17px; font-weight: 800; line-height: 1.2; }
.rg-tab-t small { display: block; font-size: 12.5px; font-weight: 600; color: var(--ink-3); margin-top: 2px; }

/* ---- recherche (fixée sous le menu pendant la lecture) */
.rg-search-spot { max-width: 640px; margin: 0 auto; min-height: 58px; }
.rg-search { position: relative; max-width: 640px; margin: 0 auto; }
.rg-search > svg { position: absolute; left: 18px; top: 50%; width: 20px; height: 20px; transform: translateY(-50%); fill: none; stroke: var(--ink-3); stroke-width: 2.2; stroke-linecap: round; pointer-events: none; }
.rg-search input { width: 100%; font: inherit; font-size: 16px; color: var(--ink); background: var(--surface); border: 1.5px solid var(--line-strong); border-radius: 14px; padding: 16px 52px 16px 50px; box-shadow: 0 10px 30px -18px rgba(27, 23, 64, .35); transition: border-color .15s, box-shadow .15s; }
.rg-search input::placeholder { color: var(--text-faint); }
.rg-search input:focus { outline: none; border-color: var(--sky-4); box-shadow: 0 0 0 4px color-mix(in srgb, var(--sky-4) 22%, transparent); }
.rg-search input::-webkit-search-cancel-button { cursor: pointer; }
.rg-search kbd { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); font-family: var(--font-mono); font-size: 12px; color: var(--ink-3); border: 1px solid var(--line-strong); border-bottom-width: 2px; border-radius: 6px; padding: 2px 8px; background: var(--surface-2); pointer-events: none; }
.rg-sclose { display: none; }
.rg-search input:not(:placeholder-shown) ~ kbd { display: none; }
.rg-found { min-height: 22px; margin-top: 12px; font-size: 14px; font-weight: 700; color: var(--sky-5); }
.rg-bar-on .rg-search { position: fixed; z-index: 55; top: var(--nav-h); left: 0; right: 0; max-width: none; margin: 0; padding: 9px max(16px, calc((100vw - 680px) / 2)); background: var(--nav-bg); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); animation: rgBarIn .2s ease; }
.rg-bar-on .rg-search input { padding-top: 11px; padding-bottom: 11px; box-shadow: none; }
.rg-bar-on .rg-search > svg { left: max(34px, calc((100vw - 680px) / 2 + 18px)); }
.rg-bar-on .rg-search kbd { right: max(30px, calc((100vw - 680px) / 2 + 14px)); }
@keyframes rgBarIn { from { transform: translateY(-8px); opacity: 0; } to { transform: none; opacity: 1; } }

/* ---- mise en page : sommaire à gauche, texte à droite */
.rg-body { padding: 44px 0 90px; }
.rg-layout { display: grid; grid-template-columns: 264px minmax(0, 1fr); gap: 48px; align-items: start; max-width: 1180px; margin: 0 auto; }
.rg-side { position: sticky; top: calc(var(--nav-h) + var(--rg-bar) + 24px); }
.rg-switch { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; margin-bottom: 20px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); }
.rg-switch a { text-align: center; padding: 8px 6px; border-radius: 9px; font-size: 14px; font-weight: 800; color: var(--ink-3); text-decoration: none; }
.rg-switch a:hover { color: var(--ink); background: var(--sky-1); }
.rg-switch a.on { color: #fff; background: var(--sky-5); }
.rg-discord .rg-switch a.on { background: #5865f2; }
.rg-toc summary { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 12px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); padding: 0 0 12px 12px; cursor: default; pointer-events: none; }
.rg-toc summary::-webkit-details-marker { display: none; }
.rg-toc-cur { display: none; }
.rg-nav { list-style: none; margin: 0; padding: 0; max-height: calc(100vh - var(--nav-h) - var(--rg-bar) - 150px); overflow-y: auto; scrollbar-width: thin; }
.rg-nav > li { margin: 1px 0; }
.rg-nav-part { display: flex; align-items: baseline; gap: 10px; padding: 7px 12px; border-radius: 9px; font-size: 14.5px; font-weight: 700; color: var(--ink-2); text-decoration: none; line-height: 1.35; }
.rg-nav-part > span:last-child { min-width: 0; }
.rg-nav-n { min-width: 28px; font-size: 12px; font-weight: 800; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.rg-nav-part:hover { background: var(--sky-1); color: var(--ink); }
.rg-nav > li.on > .rg-nav-part { background: var(--sky-1); color: var(--sky-5); }
.rg-nav > li.on .rg-nav-n { color: var(--sky-5); }
.rg-nav ul { list-style: none; margin: 4px 0 8px 31px; padding: 0 0 0 12px; border-left: 2px solid var(--line); display: none; }
.rg-nav > li.on ul { display: block; }
.rg-nav ul a { display: block; position: relative; padding: 5px 8px; font-size: 13.5px; font-weight: 600; line-height: 1.35; color: var(--ink-3); text-decoration: none; }
.rg-nav ul a:hover { color: var(--ink); }
.rg-nav ul a.active { color: var(--sky-5); }
.rg-nav ul a.active::before { content: ""; position: absolute; left: -14px; top: 6px; bottom: 6px; width: 2px; background: var(--sky-5); border-radius: 2px; }
.rg-sbtn { display: none; }

/* ---- introduction + historique des changements */
.rg-intro { margin: 0 0 48px; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 28px 32px; box-shadow: 0 18px 40px -30px rgba(27, 23, 64, .35); }
.rg-intro h2 { font-family: var(--font-body); font-weight: 800; font-size: 21px; letter-spacing: -.01em; margin: 0; }
.rg-intro p { color: var(--ink-2); line-height: 1.7; margin: 10px 0; }
.rg-intro-h { display: flex; align-items: center; gap: 14px; margin-bottom: 8px; }
.rg-intro-h img { width: 44px; height: 44px; flex: 0 0 auto; filter: drop-shadow(0 4px 6px rgba(27, 23, 64, .2)); }
.rg-intro-h span { display: block; font-size: 13px; font-weight: 700; color: var(--ink-3); margin-top: 2px; }
.rg-intro .rg-note { margin-bottom: 0; }
.rg-hist { margin-top: 18px; border-top: 1px solid var(--line); padding-top: 14px; }
.rg-hist summary { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; font-size: 14px; font-weight: 800; color: var(--sky-5); list-style: none; padding: 6px 10px; margin-left: -10px; border-radius: 9px; }
.rg-hist summary::-webkit-details-marker { display: none; }
.rg-hist summary:hover { background: var(--sky-1); }
.rg-hist summary svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.rg-hist summary small { font-size: 12.5px; font-weight: 700; color: var(--ink-3); }
.rg-hist summary::after { content: ""; width: 7px; height: 7px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg) translateY(-2px); margin-left: 2px; transition: transform .2s; }
.rg-hist[open] summary::after { transform: rotate(-135deg); }
.rg-hist-l { list-style: none; margin: 10px 0 0; padding: 0 0 0 16px; border-left: 2px solid var(--line); display: grid; gap: 16px; }
.rg-hist-l > li { position: relative; }
.rg-hist-l > li::before { content: ""; position: absolute; left: -22px; top: 6px; width: 10px; height: 10px; border-radius: 50%; background: var(--surface); border: 2px solid var(--sky-4); }
.rg-hist-l time { font-size: 14px; font-weight: 800; color: var(--ink); }
.rg-hist .rg-hist-note { margin: 2px 0 0; font-size: 14.5px; }
.rg-hist-l ul { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 8px; }
.rg-hist-l ul li { font-size: 14px; line-height: 1.55; color: var(--ink-2); padding: 9px 12px; border-radius: 10px; background: var(--surface-2); }
.rg-hist-l ul li > a, .rg-hist-l ul li > span:not(.rg-chg) { font-family: var(--font-mono); font-size: 12.5px; font-weight: 600; margin-left: 8px; }
.rg-hist-l ul li p { margin: 4px 0 0; font-size: 14px; line-height: 1.55; }
.rg-chg { display: inline-block; font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; padding: 2px 7px; border-radius: 6px; color: #fff; }
.rg-chg-mod { background: #8f5600; } .rg-chg-add { background: #237a31; } .rg-chg-del { background: #c42536; }
.rg-hist del { color: #b3261e; background: color-mix(in srgb, #e5394a 12%, transparent); text-decoration-thickness: 1.5px; border-radius: 3px; padding: 0 2px; }
.rg-hist ins { color: #1d6b2a; background: color-mix(in srgb, #6cc04a 20%, transparent); text-decoration: none; border-radius: 3px; padding: 0 2px; font-weight: 700; }

/* ---- parties et articles */
.rg-doc { min-width: 0; max-width: 820px; }
.rg-doc section.rg-part { padding: 0; }
.c-sky { --c: #2f7bf0; } .c-violet { --c: #6d4cf0; } .c-grass { --c: #2a8a37; } .c-diamond { --c: #0b8299; } .c-gold { --c: #a86a00; } .c-ruby { --c: #d6293b; }
/* --ct : la même couleur, assez foncée pour du petit texte (contraste >= 4,5, mesuré le 15/11) */
.rg-part, .rg-hit { --ct: color-mix(in srgb, var(--c) 72%, #1b1740); }
html[data-theme="dark"] .rg-part, html[data-theme="dark"] .rg-hit { --ct: var(--c); }
.rg-part { scroll-margin-top: calc(var(--nav-h) + var(--rg-bar) + var(--rg-stick) + 24px); margin-bottom: 56px; }
.rg-part-h { display: flex; align-items: center; gap: 16px; padding-bottom: 18px; margin-bottom: 8px; border-bottom: 1px solid var(--line); }
.rg-part-h > div { flex: 1; min-width: 0; }
.rg-ico { display: inline-grid; place-items: center; width: 50px; height: 50px; border-radius: 14px; background: color-mix(in srgb, var(--c) 14%, var(--surface)); color: var(--c); flex: 0 0 auto; }
.rg-ico svg { width: 25px; height: 25px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.rg-part-k { display: block; font-size: 12.5px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--ct); margin-bottom: 2px; }
.rg-part-h h2 { font-family: var(--font-body); font-weight: 800; letter-spacing: -.02em; font-size: clamp(24px, 2.6vw, 30px); line-height: 1.2; }
.rg-art { scroll-margin-top: calc(var(--nav-h) + var(--rg-bar) + var(--rg-stick) + 24px); padding: 22px 0 6px; border-radius: 14px; transition: background .6s ease, box-shadow .6s ease; }
.rg-art + .rg-art { border-top: 1px dashed var(--line); }
.rg-art-h { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 4px; }
.rg-letter { flex: 0 0 auto; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 9px; font-size: 14px; font-weight: 800; color: var(--ct); background: color-mix(in srgb, var(--c) 12%, var(--surface)); margin-top: 1px; }
.rg-letter-sub svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.rg-art-h h3 { flex: 1; font-size: 19px; font-weight: 800; line-height: 1.35; letter-spacing: -.01em; padding-top: 3px; }
.rg-link { flex: 0 0 auto; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 9px; border: 1px solid transparent; background: none; color: var(--ink-3); cursor: pointer; opacity: 0; transition: opacity .15s, background .15s, color .15s; }
.rg-link svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.rg-part-h:hover .rg-link, .rg-art-h:hover .rg-link, .rg-link:focus-visible { opacity: 1; }
.rg-link:hover { background: var(--sky-1); color: var(--sky-5); }
.rg-link.ok { opacity: 1; color: var(--grass-dark); background: color-mix(in srgb, var(--grass) 16%, var(--surface)); }
@media (hover: none) { .rg-link { opacity: .7; } }
.rg-art.rg-flash { background: color-mix(in srgb, var(--sky-4) 9%, transparent); box-shadow: 0 0 0 12px color-mix(in srgb, var(--sky-4) 9%, transparent); }

/* ---- texte des articles, points numérotés (clic sur le numéro = lien de la règle) */
.rg-art-b { font-size: 16.5px; line-height: 1.75; color: var(--ink-2); }
.rg-art-h + .rg-art-b { padding-left: 42px; }
.rg-art-b p { margin: 10px 0; }
.rg-art-b .rg-lead { margin: 16px 0 6px; color: var(--ink); font-weight: 700; }
.rg-art-b ul { list-style: none; margin: 8px 0 12px; padding: 0; display: grid; gap: 8px; }
.rg-art-b li { position: relative; padding-left: 38px; border-radius: 10px; scroll-margin-top: calc(var(--nav-h) + var(--rg-bar) + var(--rg-stick) + 40px); transition: background .5s ease, box-shadow .5s ease; }
.rg-art-b li ul { margin: 8px 0 2px; gap: 6px; }
.rg-art-b li li { padding-left: 30px; }
.rg-art-b li.rg-plain { padding-left: 22px; }
.rg-art-b li.rg-plain::before { content: ""; position: absolute; left: 3px; top: .72em; width: 7px; height: 7px; border-radius: 2px; background: var(--c); transform: rotate(45deg); }
.rg-pt { position: absolute; left: 0; top: calc((1.75em - 26px) / 2); min-width: 28px; height: 26px; padding: 0 6px; display: inline-flex; align-items: center; justify-content: center; border-radius: 8px; border: 0; font-family: var(--font-mono); font-size: 13px; font-weight: 600; line-height: 1; padding-top: 1px; color: var(--ct); background: color-mix(in srgb, var(--c) 13%, var(--surface)); cursor: pointer; transition: background .15s, color .15s; }
.rg-pt:hover, .rg-pt:focus-visible { background: var(--c); color: #fff; outline: none; }
.rg-pt:focus-visible { box-shadow: 0 0 0 3px color-mix(in srgb, var(--c) 35%, transparent); }
.rg-pt.ok { background: var(--grass-dark); color: #fff; }
.rg-pt-s { min-width: 22px; height: 22px; top: calc((1.75em - 22px) / 2); font-size: 12px; color: var(--ct); background: var(--surface); box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--c) 35%, transparent); }
.rg-art-b li.rg-flash { background: color-mix(in srgb, var(--sky-4) 13%, transparent); box-shadow: 0 0 0 8px color-mix(in srgb, var(--sky-4) 13%, transparent); }
.rg-art-b strong { color: var(--ink); font-weight: 750; }
.rg-art-b code { font-family: var(--font-mono); font-size: .85em; font-weight: 600; color: var(--sky-5); background: var(--sky-1); border: 1px solid var(--sky-2); padding: 1px 6px; border-radius: 6px; white-space: nowrap; }
.rg-art-b a { font-weight: 700; color: var(--sky-5); text-decoration: underline; text-decoration-color: color-mix(in srgb, var(--sky-5) 40%, transparent); text-underline-offset: 3px; }
.rg-art-b a:hover { text-decoration-color: currentColor; }
.rg-art-b a strong { color: inherit; }
.rg-art-b mark { background: #ffd666; color: #1b1740; border-radius: 3px; padding: 0 1px; }

.rg-note { --n: var(--sky-4); margin: 18px 0; padding: 14px 18px; border-radius: 12px; border: 1px solid color-mix(in srgb, var(--n) 30%, var(--line)); border-left: 4px solid var(--n); background: color-mix(in srgb, var(--n) 7%, var(--surface)); font-size: 15.5px; line-height: 1.65; color: var(--ink-2); }
.rg-note.warn { --n: #e5a00d; } .rg-note.danger { --n: var(--ruby); }
.rg-note-h { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: color-mix(in srgb, var(--n) 60%, var(--ink)); margin-bottom: 4px; }
.rg-note-h svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.rg-note p { margin: 4px 0; }
.rg-note .rg-note { margin: 12px 0 2px; }

/* ---- fin du règlement */
.rg-end { margin-top: 24px; padding-top: 30px; border-top: 1px solid var(--line); }
.rg-end > p { font-style: italic; color: var(--ink-3); text-align: center; line-height: 1.6; }
.rg-seal { display: grid; justify-items: center; gap: 2px; margin-bottom: 14px; }
.rg-seal img { width: 72px; height: 72px; margin-bottom: 6px; filter: drop-shadow(0 8px 12px rgba(27, 23, 64, .25)); }
.rg-seal strong { font-size: 16px; font-weight: 800; color: var(--ink); }
.rg-seal span { font-family: var(--font-mono); font-size: 13px; color: var(--sky-5); }
.rg-end-cta { margin-top: 26px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 20px; padding: 20px 24px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); }
.rg-end-cta span { font-weight: 700; color: var(--ink); }
.rg-btn { display: inline-flex; align-items: center; font-weight: 800; font-size: 15px; color: #fff; background: #5865f2; padding: 11px 18px; border-radius: 11px; text-decoration: none; transition: filter .15s, transform .15s; }
.rg-btn:hover { color: #fff; filter: brightness(1.08); transform: translateY(-1px); }
.rg-top { position: fixed; right: 22px; bottom: 22px; z-index: 50; width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; background: var(--surface); color: var(--ink); border: 1px solid var(--line-strong); box-shadow: 0 12px 28px -14px rgba(27, 23, 64, .5); cursor: pointer; opacity: 0; transform: translateY(10px); pointer-events: none; transition: opacity .2s, transform .2s; }
.rg-top.show { opacity: 1; transform: none; pointer-events: auto; }
.rg-top svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }

/* ---- résultats de recherche (les deux règlements) */
.rg-cat[hidden], .rg-results[hidden] { display: none !important; }
.rg-searching .rg-hero { padding-bottom: 28px; }
.rg-results { max-width: 900px; margin: 0 auto; display: grid; gap: 40px; }
.rg-results section.rg-group { padding: 0; }
.rg-hint { margin: 0 0 -16px; padding: 10px 14px; border-radius: 12px; background: var(--sky-1); border: 1px solid var(--sky-2); color: var(--ink-2); font-size: 14.5px; font-weight: 600; }
.rg-group { display: grid; gap: 14px; }
.rg-group-h { display: flex; align-items: center; gap: 12px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.rg-group-h .rg-tab-i { --c: #2f7bf0; }
.rg-group-discord .rg-group-h .rg-tab-i { --c: #5865f2; }
.rg-group-t strong { display: block; font-size: 19px; font-weight: 800; color: var(--ink); line-height: 1.2; }
.rg-group-t span { font-size: 13.5px; font-weight: 700; color: var(--ink-3); }
.rg-hit { padding: 18px 22px 16px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--c, var(--sky-4)); }
.rg-hit-c { display: flex; flex-wrap: wrap; gap: 4px 0; font-size: 12.5px; font-weight: 800; color: var(--ink-3); margin-bottom: 6px; }
.rg-hit-c span + span::before { content: "›"; margin: 0 8px; opacity: .6; }
.rg-hit-c span:first-child { color: var(--ct, var(--sky-5)); text-transform: uppercase; letter-spacing: .06em; }
.rg-hit-c span:last-child { color: var(--ink); }
.rg-hit .rg-art-b { font-size: 15.5px; padding: 0; }
.rg-hit-f { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 16px; margin-top: 8px; }
.rg-hit-go { font-size: 14px; font-weight: 800; text-decoration: none; color: var(--sky-5); border-radius: 6px; }
.rg-hit-go:hover { text-decoration: underline; }
.rg-hit-go:focus-visible { outline: 3px solid color-mix(in srgb, var(--sky-4) 45%, transparent); outline-offset: 3px; }
.rg-hit-more { font-size: 13px; font-weight: 700; color: var(--ink-3); }
.rg-group-discord .rg-hit-go { color: #4752c4; }
.rg-code-t { display: block; font-size: 20px; font-weight: 800; color: var(--ink); margin-bottom: 4px; }
.rg-hit-code { border-width: 1.5px 1.5px 1.5px 5px; box-shadow: 0 18px 40px -28px color-mix(in srgb, var(--c) 70%, transparent); }
.rg-empty { text-align: center; padding: 44px 20px; border: 1px dashed var(--line-strong); border-radius: 16px; color: var(--ink-2); font-weight: 600; }
.rg-empty p { margin: 0; }
.rg-empty .rg-empty-s { margin-top: 6px; font-size: 14.5px; color: var(--ink-3); }
.rg-clear { margin-top: 14px; font: inherit; font-weight: 700; font-size: 14px; color: var(--sky-5); background: var(--sky-1); border: 1px solid var(--sky-2); border-radius: 10px; padding: 8px 14px; cursor: pointer; }

/* ---- mode sombre */
html[data-theme="dark"] .c-sky { --c: #7fb2ff; } html[data-theme="dark"] .c-violet { --c: #a993ff; } html[data-theme="dark"] .c-grass { --c: #74d67f; }
html[data-theme="dark"] .c-diamond { --c: #5fd3e8; } html[data-theme="dark"] .c-gold { --c: #ffc94d; } html[data-theme="dark"] .c-ruby { --c: #ff7b88; }
html[data-theme="dark"] .rg-note-h { color: var(--n); }
html[data-theme="dark"] .rg-note.warn { --n: #ffc94d; }
html[data-theme="dark"] .rg-note.info { --n: #8fbcff; }
html[data-theme="dark"] .rg-note.danger { --n: #ff7b88; }
html[data-theme="dark"] .rg-tab { --c: #7fb2ff; } html[data-theme="dark"] .rg-tab-d { --c: #9aa3ff; }
html[data-theme="dark"] .rg-tab.on .rg-tab-i { color: var(--ink-fixed); }
html[data-theme="dark"] .rg-switch a.on { color: var(--ink-fixed); background: #7fb2ff; }
html[data-theme="dark"] .rg-discord .rg-switch a.on { background: #9aa3ff; }
html[data-theme="dark"] .rg-group-h .rg-tab-i { --c: #7fb2ff; }
html[data-theme="dark"] .rg-group-discord .rg-group-h .rg-tab-i { --c: #9aa3ff; }
html[data-theme="dark"] .rg-group-discord .rg-hit-go { color: #9aa3ff; }
html[data-theme="dark"] .rg-pt:hover, html[data-theme="dark"] .rg-pt:focus-visible { color: var(--ink-fixed); }
html[data-theme="dark"] .rg-pt.ok { color: var(--ink-fixed); background: #74d67f; }
html[data-theme="dark"] .rg-chg-mod { background: #ffc94d; color: var(--ink-fixed); } html[data-theme="dark"] .rg-chg-add { background: #74d67f; color: var(--ink-fixed); } html[data-theme="dark"] .rg-chg-del { background: #ff7b88; color: var(--ink-fixed); }
html[data-theme="dark"] .rg-hist del { color: #ffa3ad; } html[data-theme="dark"] .rg-hist ins { color: #a6ecae; }

/* ---- tablette et téléphone : UNE seule barre fixe (sommaire + loupe) */
@media (max-width: 980px) {
	html { --rg-stick: 64px; }
	html.rg-msearch { --rg-stick: 0px; }
	.rg-layout { grid-template-columns: 1fr; gap: 0; }
	.rg-side { top: var(--nav-h); z-index: 40; display: flex; align-items: center; gap: 8px; margin: 0 -20px 24px; padding: 10px 20px; background: var(--nav-bg); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
	html.rg-msearch .rg-side { visibility: hidden; }
	.rg-switch { display: none; }
	.rg-toc { flex: 1; min-width: 0; }
	.rg-toc summary { pointer-events: auto; cursor: pointer; padding: 10px 14px; border: 1px solid var(--line-strong); border-radius: 12px; background: var(--surface); text-transform: none; letter-spacing: 0; font-size: 14.5px; color: var(--ink); }
	.rg-toc summary::after { content: ""; width: 9px; height: 9px; border-right: 2px solid var(--ink-3); border-bottom: 2px solid var(--ink-3); transform: rotate(45deg) translateY(-3px); flex: 0 0 auto; transition: transform .2s; }
	.rg-toc[open] summary::after { transform: rotate(-135deg); }
	.rg-toc-cur { display: block; flex: 1; text-align: right; color: var(--sky-5); font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
	.rg-nav { position: absolute; left: 20px; right: 20px; top: calc(100% - 2px); max-height: 62vh; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 6px; box-shadow: 0 24px 50px -20px rgba(27, 23, 64, .45); }
	.rg-sbtn { display: grid; place-items: center; flex: 0 0 auto; width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--line-strong); background: var(--surface); color: var(--ink); cursor: pointer; }
	.rg-sbtn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; }
	.rg-bar-on .rg-search { padding: 10px 20px; }
	.rg-bar-on .rg-search > svg { left: 38px; }
	.rg-bar-on .rg-search input { padding-right: 56px; }
	.rg-bar-on .rg-search kbd { display: none; }
	.rg-bar-on .rg-sclose { display: grid; place-items: center; position: absolute; right: 26px; top: 50%; transform: translateY(-50%); width: 36px; height: 36px; border: 0; border-radius: 10px; background: var(--surface-2); color: var(--ink-2); cursor: pointer; }
	.rg-sclose svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; }
	.rg-bar-on .rg-search input::-webkit-search-cancel-button { display: none; }
}
@media (max-width: 720px) {
	.rg-hero { padding: 22px 0 22px; }
	.rg-crumb, .rg-sub { display: none; }
	.rg-logo { width: 76px; margin: 0 auto 4px; }
	.rg-hero h1 { font-size: 27px; margin-bottom: 14px; }
	.rg-tabs { gap: 8px; margin-bottom: 12px; }
	.rg-tab { gap: 10px; padding: 10px 12px; border-radius: 14px; }
	.rg-tab-i { width: 34px; height: 34px; border-radius: 10px; }
	.rg-tab-i svg { width: 20px; height: 20px; }
	.rg-tab-t strong { font-size: 15px; }
	.rg-tab-t small { font-size: 11px; }
	.rg-tab-x { display: none; }
	.rg-search kbd { display: none; }
	.rg-search input { padding: 13px 16px 13px 46px; }
	.rg-search > svg { left: 16px; }
	.rg-search-spot { min-height: 50px; }
	.rg-found { margin-top: 8px; }
	.rg-body { padding-top: 22px; }
	.rg-intro { padding: 22px 20px; }
	.rg-art-h + .rg-art-b { padding-left: 0; }
	.rg-art-b { font-size: 16px; }
	.rg-art-b li { padding-left: 35px; }
	.rg-hit { padding: 16px 16px 14px; }
}

/* (16/11) téléphone : la barre du sommaire suit la marge réelle de la page (18 px), elle débordait de 2 px */
@media (max-width: 980px) { .rg-layout { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 640px) { .rg-side { margin-left: -18px; margin-right: -18px; padding-left: 18px; padding-right: 18px; } }
