/* Composant « Règlement » (reglement-regie.js) : #/reglement (les trois affiches de film) et #/reglement/<cle>[/<section>/<n>]
   (intérieur « Régie B Minimale »). Modèle de rendu : maquettes-reglement/v5/reglement-regie-b.html (choix du propriétaire).
   Tout est sous la classe racine .rgx (la page et le calque fixe .rgx.rgx-calque) ; chaque classe créée par le composant
   commence par « rgx- » (@keyframes et identifiants aussi). Le site garde son en-tête, son pied de page et son fond
   (la lueur de la couleur du règlement est posée par le site sur .fond[data-reglement]).
   Classes du site reprises telles quelles : .wrap, .ph, .ph-tag, .ph-title, .ph-desc, .hl (dégradé « Voile »), .dg-vert, .dg-rouge,
   .old, .couronne, .tape, .btn, .btn-out.
   Aucune règle prefers-reduced-motion : les animations restent actives (demande du propriétaire). */

/* ---------- Couleur de chaque règlement ----------
   --t lueurs, filets, barres (r, g, b) · --tt texte coloré sur fond sombre · --t-grad fond plein · --t-on texte posé dessus · --grade teinte des photos
   Global = beige (couleur du site), Légal = vert, Illégal = rouge. La racine porte la classe du règlement ouvert. */
.rgx {
  --line: rgba(236, 211, 177, .1); --line-2: rgba(236, 211, 177, .22);
  --t: 236, 211, 177; --tt: #ecd3b1; --t-grad: linear-gradient(180deg, #f3dfc2, #e2c39b); --t-on: #0d0c0b; --grade: 0;
}
.rgx.rgx-t-global, .rgx .rgx-t-global { --t: 236, 211, 177; --tt: #ecd3b1; --t-grad: linear-gradient(180deg, #f3dfc2, #e2c39b); --t-on: #0d0c0b; --grade: 0; }
.rgx.rgx-t-legal, .rgx .rgx-t-legal { --t: 84, 168, 122; --tt: #98d1ae; --t-grad: linear-gradient(180deg, #4c8e6a, #285b42); --t-on: #f4ede1; --grade: .22; }
.rgx.rgx-t-illegal, .rgx .rgx-t-illegal { --t: 200, 64, 48; --tt: #ef8f7b; --t-grad: linear-gradient(180deg, #be3f2d, #87221a); --t-on: #fbf0e6; --grade: .3; }

/* Mot en valeur du titre (« Voile ») : voile vert pour le Légal, rouge pour l'Illégal, mot clair (réglage de la maquette) */
.rgx .dg-vert { --dg-rgb: 34 107 76; --dg-barre: linear-gradient(180deg, #62bb8f, #2a7b56); --dg-encre: var(--dg-clair);
  --dg-voile-rgb: 26 80 52; --dg-v0: .93; --dg-v1: .85; --dg-v2: .68; --dg-v3: .42; --dg-v4: .16; }
.rgx .dg-rouge { --dg-rgb: 163 41 29; --dg-barre: linear-gradient(180deg, #d9573f, #a3291d); --dg-encre: var(--dg-clair);
  --dg-voile-rgb: 118 27 19; --dg-v0: .93; --dg-v1: .85; --dg-v2: .68; --dg-v3: .42; --dg-v4: .16; }

.rgx .rgx-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.rgx mark { padding: 0 3px; border-radius: 1px; background: var(--acc); color: var(--on-acc); -webkit-text-fill-color: var(--on-acc); }

/* ==========================================================================
   ACCUEIL #/reglement : trois affiches de film
   ========================================================================== */
.rgx .rgx-ac-grid { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 18px 48px; align-items: end; }
.rgx .rgx-ac-ph { padding-top: calc(var(--hd) + clamp(26px, 4.4vh, 52px)); padding-bottom: clamp(30px, 3.6vw, 50px); }
.rgx .rgx-ac-ph .ph-title { margin-bottom: 0; font-size: clamp(46px, 5.4vw, 84px); }
.rgx .rgx-ac-ph .ph-desc { padding-bottom: 10px; }
.rgx .rgx-ac-ph .ph-tag { background: var(--beige); color: var(--on-acc); }
.rgx .rgx-ac-corps { padding: 6px 0 clamp(80px, 9vw, 130px); }
.rgx .rgx-affiches { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(22px, 3vw, 48px); }
.rgx .rgx-af { --rot: 0deg; position: relative; display: block; padding: 10px; background: #efe6d8; rotate: var(--rot); box-shadow: 0 34px 60px -26px rgba(0, 0, 0, .95);
  transition: transform .8s var(--ease), rotate .8s var(--ease), box-shadow .6s; }
.rgx .rgx-af:nth-child(2) { margin-top: 30px; }
.rgx .rgx-af:hover { rotate: 0deg; transform: translateY(-14px) scale(1.02); box-shadow: 0 54px 90px -30px #000; z-index: 2; }
.rgx .rgx-af-in { position: relative; display: block; aspect-ratio: 3 / 4.15; overflow: hidden; isolation: isolate; background: #0d0c0b; container-type: inline-size; }
.rgx .rgx-af-photo { position: absolute; inset: 0; z-index: -3; background: var(--img) var(--pos) / var(--size) no-repeat; filter: grayscale(.32) contrast(1.06); transform: scale(1.02);
  transition: transform 1.6s var(--ease), filter .7s; }
.rgx .rgx-af-photo::after { content: ""; position: absolute; inset: 0; mix-blend-mode: multiply; opacity: .22; background-image: radial-gradient(rgba(0, 0, 0, .55) 1px, transparent 1.5px); background-size: 4px 4px; }
.rgx .rgx-af:hover .rgx-af-photo { filter: none; transform: scale(1.08); }
.rgx .rgx-af-grade { position: absolute; inset: 0; z-index: -2; background: rgb(var(--t)); opacity: var(--grade); mix-blend-mode: color; transition: opacity .7s; }
.rgx .rgx-af:hover .rgx-af-grade { opacity: calc(var(--grade) * .5); }
.rgx .rgx-af-voile { position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(10, 9, 8, .62) 0%, rgba(10, 9, 8, 0) 18%, rgba(10, 9, 8, .08) 30%, rgba(10, 9, 8, .55) 44%, rgba(10, 9, 8, .84) 60%, rgba(10, 9, 8, .96) 100%); }
.rgx .rgx-af-haut { position: absolute; left: 16px; right: 14px; top: 14px; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.rgx .rgx-af-studio { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 900; font-style: italic; letter-spacing: .02em; text-transform: uppercase; color: #fff; text-shadow: 0 2px 12px rgba(0, 0, 0, .6); }
.rgx .rgx-af-studio .couronne { width: 24px; color: var(--couronne); }
.rgx .rgx-af-ico { flex: none; width: 42px; height: 42px; display: grid; place-items: center; border-radius: 50%; background: var(--on-acc); color: var(--tt); font-size: 21px; box-shadow: 0 0 0 2px rgba(var(--t), .4); }
.rgx .rgx-af-bas { position: absolute; left: 0; right: 0; bottom: 0; padding: 0 clamp(16px, 6cqi, 26px) clamp(16px, 6cqi, 26px); }
.rgx .rgx-af-kick { display: block; font-size: clamp(20px, 6.6cqi, 28px); line-height: 1.2; color: var(--tt); text-shadow: 0 2px 14px rgba(0, 0, 0, .6); }
.rgx .rgx-af-titre { display: block; margin: 4px 0 12px; font-size: clamp(40px, 19cqi, 90px); font-weight: 900; font-style: italic; line-height: .9; letter-spacing: -.045em; text-transform: uppercase; color: #fff; text-shadow: 0 6px 30px rgba(0, 0, 0, .5); }
.rgx .rgx-af-compte { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 10px; margin-bottom: 10px; font-style: italic; text-transform: uppercase; }
.rgx .rgx-af-compte b { padding: 0 8px; font-size: clamp(22px, 8cqi, 32px); font-weight: 900; line-height: 1.15; color: var(--t-on); background: var(--t-grad); transform: skewX(-8deg); display: inline-block; }
.rgx .rgx-af-compte > span { font-size: 15px; font-weight: 900; color: #fff; }
.rgx .rgx-af-compte small { font-size: 12px; font-weight: 800; color: rgba(246, 241, 234, .62); }
.rgx .rgx-af-desc { display: block; margin: 0 0 16px; font-size: 13.5px; line-height: 1.6; color: rgba(246, 241, 234, .76); }
.rgx .rgx-af-b { display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 20px; font-size: 13px; font-weight: 800; font-style: italic; letter-spacing: .03em; text-transform: uppercase;
  background: var(--beige); color: var(--on-acc); transform: skewX(-8deg); box-shadow: 5px 5px 0 rgba(236, 211, 177, .2); transition: gap .45s var(--ease), box-shadow .4s, transform .5s var(--ease); }
.rgx .rgx-af-b > * { transform: skewX(8deg); }
.rgx .rgx-af-b i { font-size: 19px; }
.rgx .rgx-af:hover .rgx-af-b { gap: 14px; box-shadow: 8px 8px 0 rgba(236, 211, 177, .28); transform: skewX(-8deg) translate(-2px, -2px); }
.rgx .rgx-af-tape { top: -13px; left: 38%; rotate: -5deg; }
.rgx .rgx-af:nth-child(2) .rgx-af-tape { left: auto; right: 22%; rotate: 6deg; width: 96px; }
.rgx .rgx-ac-avert { display: flex; justify-content: center; margin-top: clamp(46px, 5vw, 70px); }

/* Avertissement de l'accueil (texte des données) : carton d'avant-film */
.rgx .rgx-carton { position: relative; display: flex; align-items: center; gap: 14px; max-width: 760px; padding: 14px 20px 14px 14px; border: 1.5px solid rgba(240, 120, 100, .4); border-radius: 3px;
  background: rgba(40, 16, 12, .5); color: #f1b3a2; font-size: 14px; font-weight: 600; line-height: 1.55; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.rgx .rgx-carton > i { flex: none; width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; background: rgba(240, 120, 100, .14); color: #f08a76; font-size: 21px; }
.rgx .rgx-carton p { margin: 0; }

/* ==========================================================================
   INTÉRIEUR « RÉGIE MINIMALE » #/reglement/<cle>
   ========================================================================== */

/* ---------- En-tête du règlement : retour, titre en Voile, avertissement en une phrase, chiffres ---------- */
.rgx .rgx-rh { position: relative; padding: calc(var(--hd) + clamp(18px, 3.4vh, 40px)) 0 clamp(22px, 2.4vw, 32px); }
.rgx .rgx-rh-grid { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 18px 56px; align-items: end; }
/* Au-dessus du titre : les lettres découpées du titre débordent vers le haut (place de leur animation) */
.rgx .rgx-rh-retour { position: relative; z-index: 2; display: inline-flex; align-items: center; gap: 6px; min-height: 40px; margin: 0 0 4px -6px; padding: 0 12px 0 4px; border-radius: 3px;
  font-size: 12.5px; font-weight: 800; font-style: italic; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); transition: color .3s, background .3s; }
.rgx .rgx-rh-retour i { font-size: 20px; transition: transform .5s var(--ease); }
.rgx .rgx-rh-retour:hover { color: var(--acc); background: rgba(255, 255, 255, .04); }
.rgx .rgx-rh-retour:hover i { transform: translateX(-4px); }
.rgx .rgx-rh-titre { margin: 0; font-weight: 900; font-style: italic; font-size: clamp(44px, 5.5vw, 86px); line-height: 1.04; letter-spacing: -.035em; word-spacing: .12em; text-transform: uppercase; }
.rgx .rgx-rh-titre .hl { --hd-delay: .45s; }
.rgx .rgx-rh-avert { display: flex; align-items: flex-start; gap: 10px; max-width: 780px; margin: 16px 0 0; font-size: 15px; font-weight: 600; line-height: 1.55; color: #f1c4b6; }
.rgx .rgx-rh-avert i { flex: none; margin-top: 1px; font-size: 20px; color: #f08a76; }
.rgx .rgx-rh-stats { display: flex; margin: 0; padding: 0 0 6px; }
.rgx .rgx-rh-stat { display: flex; flex-direction: column; align-items: flex-end; margin-left: 30px; padding-left: 30px; border-left: 1px solid var(--line-2); }
.rgx .rgx-rh-stat:first-child { margin-left: 0; padding-left: 0; border-left: 0; }
.rgx .rgx-rh-stat dd { order: -1; margin: 0; padding-right: .06em; font-size: clamp(40px, 3.7vw, 58px); font-weight: 900; font-style: italic; line-height: 1; letter-spacing: -.04em; font-variant-numeric: tabular-nums;
  background: linear-gradient(180deg, #fff 10%, var(--tt) 95%); -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent; }
.rgx .rgx-rh-stat dt { margin-top: 7px; font-size: 11.5px; font-weight: 800; font-style: italic; letter-spacing: .07em; text-transform: uppercase; color: var(--muted); }

.rgx .rgx-lec { position: relative; padding-bottom: clamp(90px, 10vw, 150px); }

/* ---------- La barre collée de la lecture : règlements · chapitre en cours · recherche, progression en bas ----------
   C'est la BARRE DE FILTRES COMMUNE du site : .fx-barre de commun.css (mécanique Ultimate.filtres de commun.js, guide
   FILTRES.md), la même que Le Business / Le Milieu. Segments Global / Légal / Illégal (data-fx-ton beige / vert / rouge posé
   sur chaque segment : la barre prend la couleur du règlement ouvert), menu du chapitre (.fx-menu), recherche (.fx-rech),
   trait de progression par chapitre (.fx-prog). Rien à styler ici : même apparence et même comportement sur toutes les pages.
   (La liste des chapitres qui s'ouvre sous la barre reste celle de la page, dans le calque fixe ci-dessous.)
   La marge qui évite de rogner la dernière lettre italique du titre du chapitre (« MASS RP ») est dans commun.css (toutes les barres). */

/* ---------- Calque fixe (hors de la page, au-dessus de l'en-tête) : liste des chapitres et petite notification ---------- */
.rgx.rgx-calque { position: fixed; inset: 0; z-index: 58; pointer-events: none; }
/* Liste des chapitres : menu sous la barre (ordinateur), tiroir du bas (téléphone) */
.rgx .rgx-som-voile { position: fixed; inset: 0; z-index: 58; background: rgba(5, 5, 4, .6); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); pointer-events: auto; }
.rgx .rgx-som-p { position: fixed; z-index: 60; top: var(--som-top, 160px); left: var(--som-l, 40px); width: var(--som-w, 600px); max-height: min(62vh, 540px); overflow: auto; overscroll-behavior: contain;
  padding: 8px; border: 1px solid var(--verre-bord); border-radius: 6px; background: rgba(17, 16, 14, .97); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  box-shadow: 0 34px 70px -24px rgba(0, 0, 0, .95); scrollbar-width: thin; pointer-events: auto; }
.rgx .rgx-som-h { display: none; align-items: center; justify-content: space-between; gap: 12px; margin: 0 4px 8px 8px; }
.rgx .rgx-som-h b { display: inline-flex; align-items: baseline; gap: 10px; font-size: 14px; font-weight: 900; font-style: italic; text-transform: uppercase; }
.rgx .rgx-som-h b small { font-size: 11px; font-weight: 800; color: var(--muted); }
.rgx .rgx-som-f { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 3px; font-size: 22px; color: var(--muted); transition: color .3s, background .3s; }
.rgx .rgx-som-f:hover { color: #fff; background: rgba(255, 255, 255, .06); }
.rgx .rgx-som-g { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2px; }
.rgx .rgx-som-i { position: relative; display: grid; grid-template-columns: 30px minmax(0, 1fr) auto; align-items: center; gap: 10px; min-height: 46px; padding: 8px 12px 8px 14px; border-radius: 3px;
  text-align: left; transition: background .25s; }
.rgx .rgx-som-i:hover, .rgx .rgx-som-i:focus-visible { background: rgba(var(--t), .08); }
.rgx .rgx-som-i:focus-visible { outline-offset: -2px; }
.rgx .rgx-som-i.is-cur { background: rgba(var(--t), .12); }
.rgx .rgx-som-i.is-cur::before { content: ""; position: absolute; left: 4px; top: 10px; bottom: 10px; width: 2px; border-radius: 2px; background: rgb(var(--t)); }
.rgx .rgx-som-num { font-size: 14px; font-weight: 900; font-style: italic; color: var(--tt); font-variant-numeric: tabular-nums; }
.rgx .rgx-som-t { font-size: 13.5px; font-weight: 700; line-height: 1.3; }
.rgx .rgx-som-c { font-size: 11px; font-weight: 800; font-style: italic; text-transform: uppercase; white-space: nowrap; color: var(--dim); }

/* Petite notification (« Lien copié ») */
.rgx .rgx-toast { position: fixed; left: 50%; bottom: 26px; z-index: 70; display: inline-flex; align-items: center; gap: 10px; max-width: calc(100vw - 32px); padding: 11px 18px; border: 1px solid rgba(236, 211, 177, .3); border-radius: 3px;
  background: rgba(17, 16, 14, .96); font-size: 13px; font-weight: 700; box-shadow: 0 20px 40px -18px rgba(0, 0, 0, .9); transform: translate(-50%, 20px); opacity: 0; pointer-events: none;
  transition: opacity .35s, transform .5s var(--ease); }
.rgx .rgx-toast i { font-size: 19px; color: #8fdca3; }
.rgx .rgx-toast.is-on { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Chapitres : grand numéro, titre, nombre de règles, filet de couleur ---------- */
.rgx .rgx-cp { padding-bottom: clamp(36px, 3.8vw, 56px); }
.rgx .rgx-cp-h { position: relative; display: flex; align-items: flex-end; gap: clamp(14px, 1.6vw, 22px); padding: 0 6px 14px 2px; }
.rgx .rgx-cp-h::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; transform-origin: left; transform: scaleX(var(--ligne, 1));
  background: linear-gradient(90deg, rgba(var(--t), .75), rgba(var(--t), .18) 45%, rgba(var(--t), 0)); }
.rgx .rgx-cp-n { flex: none; padding-right: .06em; font-size: clamp(42px, 3.8vw, 60px); font-weight: 900; font-style: italic; line-height: .9; letter-spacing: -.05em; font-variant-numeric: tabular-nums;
  background: linear-gradient(180deg, #fff 5%, var(--tt) 90%); -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent; }
.rgx .rgx-cp-t { flex: 1; min-width: 0; margin: 0; padding-bottom: 2px; font-size: clamp(22px, 2.15vw, 32px); font-weight: 900; font-style: italic; line-height: 1.06; letter-spacing: -.02em; word-spacing: .08em;
  text-transform: uppercase; text-wrap: balance; transition: color .4s; }
.rgx .rgx-cp-c { flex: none; padding-bottom: 6px; font-size: 11.5px; font-weight: 800; font-style: italic; letter-spacing: .06em; text-transform: uppercase; white-space: nowrap; color: var(--muted); }
.rgx .rgx-cp.is-flash .rgx-cp-t { animation: rgx-cp-flash 1.6s var(--ease); }
@keyframes rgx-cp-flash { 0%, 35% { color: var(--tt); } 100% { color: var(--text); } }
.rgx .rgx-cp-l { margin-top: 12px; border: 1px solid var(--verre-bord); border-radius: 6px; background: rgba(16, 15, 13, .82); box-shadow: 0 24px 50px -36px rgba(0, 0, 0, .95); }

/* ---------- Les règles : une ligne lisible (numéro, titre, aperçu), le texte s'ouvre dessous ----------
   Ouverture d'une règle : animation « 1 · Déroulé » (maquettes-reglement/v5/reglement-animations.html?anim=1), partie CSS
   (la partie animée par GSAP est dans reglement-regie.js, fonction animerOuverture) : le liseré de la couleur du règlement
   descend depuis le haut (::before), fond teinté, titre coloré, aperçu replié, flèche retournée. Les courbes sont les mêmes que
   celles de GSAP : ouverture cubic-bezier(.32, .72, 0, 1) en 0,55 s ; fermeture cubic-bezier(.4, 0, .2, 1) en 0,42 s,
   l'aperçu ne revenant qu'une fois le texte parti (pas de doublon avec le point 01). */
.rgx .rgx-ln { position: relative; border-top: 1px solid var(--line); transition: background-color .4s; }
.rgx .rgx-ln:first-child { border-top: 0; border-radius: 5px 5px 0 0; }
.rgx .rgx-ln:last-child { border-radius: 0 0 5px 5px; }
.rgx .rgx-ln:only-child { border-radius: 5px; }
.rgx .rgx-ln::before { content: ""; position: absolute; z-index: 1; left: -1px; top: -1px; bottom: -1px; width: 3px; border-radius: 3px; pointer-events: none; background: rgb(var(--t));
  box-shadow: 0 0 14px rgba(var(--t), .85); transform: scaleY(0); transform-origin: 50% 0; transition: transform .55s cubic-bezier(.32, .72, 0, 1); }
.rgx .rgx-ln:not(.is-open)::before { transition: transform .42s cubic-bezier(.4, 0, .2, 1) .03s; }
.rgx .rgx-ln:hover { background-color: rgba(255, 255, 255, .025); }
.rgx .rgx-ln.is-open { background-color: rgba(var(--t), .055); }
.rgx .rgx-ln.is-open::before { transform: scaleY(1); }
/* Numéro et titre alignés en haut (la ligne raccourcit en douceur quand l'aperçu se replie), flèche centrée */
.rgx .rgx-ln-q { display: grid; grid-template-columns: 64px minmax(0, 1fr) 40px; align-items: start; column-gap: 14px; width: 100%; padding: 14px 16px 14px 22px; text-align: left; }
.rgx .rgx-ln-q:focus-visible { outline-offset: -3px; }
.rgx .rgx-ln-n { font-size: 17px; font-weight: 900; font-style: italic; line-height: 1.3; letter-spacing: -.01em; white-space: nowrap; font-variant-numeric: tabular-nums; color: var(--tt); }
.rgx .rgx-ln-mid { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.rgx .rgx-ln-t { font-size: 17px; font-weight: 900; font-style: italic; line-height: 1.3; letter-spacing: -.005em; word-spacing: .05em; text-transform: uppercase; transition: color .35s; }
.rgx .rgx-ln.is-open .rgx-ln-t { color: var(--tt); }
.rgx .rgx-ln-ap { display: block; max-height: 1.6em; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-size: 14.5px; line-height: 1.6; color: rgba(246, 241, 234, .58);
  transition: max-height .55s cubic-bezier(.32, .72, 0, 1), opacity .14s, color .3s; }
.rgx .rgx-ln:not(.is-open) .rgx-ln-ap { transition: max-height .42s cubic-bezier(.4, 0, .2, 1) .03s, opacity .2s .26s, color .3s; }
.rgx .rgx-ln:hover .rgx-ln-ap { color: rgba(246, 241, 234, .76); }
.rgx .rgx-ln.is-open .rgx-ln-ap { max-height: 0; opacity: 0; }
/* Ouverture instantanée (lien direct, recherche, règle refermée au-dessus) : l'aperçu se replie d'un coup */
.rgx .rgx-ln.rgx-net .rgx-ln-ap { transition: none !important; }
.rgx .rgx-ln-i { align-self: center; width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; font-size: 22px; color: var(--muted); transition: transform .55s cubic-bezier(.32, .72, 0, 1), color .3s, background .3s; }
.rgx .rgx-ln:not(.is-open) .rgx-ln-i { transition: transform .42s cubic-bezier(.4, 0, .2, 1), color .3s, background .3s; }
.rgx .rgx-ln-q:hover .rgx-ln-i { color: var(--tt); background: rgba(var(--t), .1); }
.rgx .rgx-ln.is-open .rgx-ln-i { transform: rotate(180deg); color: var(--tt); }
.rgx .rgx-ln-r { height: 0; overflow: hidden; }
.rgx .rgx-ln-in { padding: 0 70px 18px 100px; }
.rgx .rgx-ln-l { margin: 0; padding: 0; list-style: none; }
.rgx .rgx-ln-l li { display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 4px; padding: 5px 0; }
.rgx .rgx-ln-l.rgx-un li { display: block; }
.rgx .rgx-ln-ln { font-size: 12.5px; font-weight: 900; font-style: italic; line-height: calc(15.5px * 1.75); letter-spacing: .02em; font-variant-numeric: tabular-nums; color: var(--tt); }
.rgx .rgx-ln-l p { max-width: 920px; margin: 0; font-size: 15.5px; line-height: 1.75; color: rgba(246, 241, 234, .93); }
.rgx .rgx-ln-pied { display: flex; margin-top: 12px; }
.rgx .rgx-ln-b { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 14px; border: 1px solid rgba(255, 255, 255, .1); border-radius: 3px;
  font-size: 11.5px; font-weight: 800; font-style: italic; letter-spacing: .04em; text-transform: uppercase; color: rgba(246, 241, 234, .78); transition: border-color .3s, color .3s; }
.rgx .rgx-ln-b i { font-size: 17px; }
.rgx .rgx-ln-b:hover { border-color: rgba(var(--t), .6); color: var(--tt); }
.rgx .rgx-ln-b.is-ok, .rgx .rgx-ln-b.is-ok:hover { border-color: rgba(98, 212, 127, .6); color: #9be3ad; }
/* Lien direct ouvert : la règle s'éclaire deux fois */
.rgx .rgx-ln.is-flash { animation: rgx-ln-flash 2.4s var(--ease); }
@keyframes rgx-ln-flash {
  0%, 18%, 48% { background-color: rgba(var(--t), .2); }
  33% { background-color: rgba(var(--t), .07); }
  100% { background-color: rgba(var(--t), .055); }
}

/* Recherche sans résultat */
.rgx .rgx-vide { padding: 40px 24px; border: 2px dashed var(--line-2); border-radius: 4px; text-align: center; }
.rgx .rgx-vide p { margin: 0; font-weight: 700; font-style: italic; color: var(--muted); }
.rgx .rgx-vide-autres { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.rgx .rgx-vide-a { display: inline-flex; align-items: center; gap: 10px; height: 44px; padding: 0 16px; border: 1.5px solid var(--line-2); border-radius: 3px; background: rgba(13, 12, 11, .5);
  font-size: 13px; font-weight: 800; font-style: italic; text-transform: uppercase; transition: border-color .3s, transform .5s var(--ease); }
.rgx .rgx-vide-a i { font-size: 18px; color: var(--tt); }
.rgx .rgx-vide-a b { padding: 3px 6px 2px; border-radius: 2px; font-size: 10.5px; background: rgba(var(--t), .18); color: var(--tt); }
.rgx .rgx-vide-a:hover { border-color: var(--tt); transform: skewX(-8deg); }

/* Fin du règlement : passer aux deux autres */
.rgx .rgx-fin { padding-top: clamp(14px, 2vw, 30px); text-align: center; }
.rgx .rgx-fin-old { display: block; font-size: clamp(58px, 6.4vw, 96px); line-height: 1.15; color: var(--tt); text-shadow: 0 10px 40px rgba(0, 0, 0, .6); }
.rgx .rgx-fin-autres { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; margin-top: 16px; }
.rgx .rgx-fin-a { display: inline-flex; align-items: center; gap: 14px; min-width: 300px; min-height: 68px; padding: 10px 18px 10px 12px; border: 1px solid var(--verre-bord); border-radius: 4px;
  background: rgba(17, 16, 14, .82); text-align: left; transition: border-color .4s, transform .6s var(--ease), background .4s; }
.rgx .rgx-fin-a:hover { border-color: rgba(var(--t), .55); background: rgba(var(--t), .07); transform: translateY(-3px); }
.rgx .rgx-fin-a-ico { flex: none; width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; background: rgba(var(--t), .12); color: var(--tt); font-size: 21px; }
.rgx .rgx-fin-a-t { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; line-height: 1.15; }
.rgx .rgx-fin-a-t b { font-size: 17px; font-weight: 900; font-style: italic; letter-spacing: -.01em; text-transform: uppercase; }
.rgx .rgx-fin-a-t span { font-size: 11.5px; font-weight: 800; font-style: italic; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); }
.rgx .rgx-fin-a > .bx-right-arrow-alt { flex: none; font-size: 24px; color: var(--tt); transition: transform .5s var(--ease); }
.rgx .rgx-fin-a:hover > .bx-right-arrow-alt { transform: translateX(5px); }
.rgx .rgx-fin-retour { margin-top: 30px; }

/* ---------- Adaptation écrans (mêmes paliers que la maquette ; la barre collée suit ceux de la barre commune) ---------- */
@media (max-width: 1220px) {
  .rgx .rgx-som-g { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .rgx .rgx-rh-grid { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .rgx .rgx-rh-stats { padding: 0; }
  .rgx .rgx-rh-stat { flex-direction: row; align-items: baseline; gap: 8px; margin-left: 20px; padding-left: 20px; }
  .rgx .rgx-rh-stat dd { font-size: 30px; }
  .rgx .rgx-rh-stat dt { margin: 0; }
}
@media (max-width: 960px) {
  .rgx .rgx-ac-grid { grid-template-columns: minmax(0, 1fr); }
  .rgx .rgx-affiches { grid-template-columns: minmax(0, 1fr); max-width: 460px; margin-inline: auto; gap: 34px; }
  .rgx .rgx-af:nth-child(2) { margin-top: 0; }
  .rgx .rgx-ln-in { padding-right: 40px; }
}
@media (max-width: 760px) {
  /* Tiroir du bas */
  .rgx .rgx-som-p { top: auto; left: 0; right: 0; bottom: 0; width: auto; max-height: 78vh; padding: 14px 12px calc(16px + env(safe-area-inset-bottom)); border-radius: 14px 14px 0 0; border-bottom: 0; }
  .rgx .rgx-som-p::before { content: ""; display: block; width: 44px; height: 4px; margin: -2px auto 10px; border-radius: 2px; background: rgba(255, 255, 255, .18); }
  .rgx .rgx-som-h { display: flex; }
  .rgx .rgx-som-g { grid-template-columns: minmax(0, 1fr); }
  /* En-tête du règlement */
  .rgx .rgx-rh-avert { font-size: 14px; }
  /* Chapitres et règles */
  .rgx .rgx-cp-h { gap: 12px; padding: 0 2px 12px; }
  .rgx .rgx-cp-n { font-size: 40px; }
  .rgx .rgx-cp-t { font-size: clamp(19px, 5.6vw, 24px); }
  .rgx .rgx-cp-c { display: none; }
  .rgx .rgx-cp-l { margin-top: 10px; }
  .rgx .rgx-ln-q { grid-template-columns: 46px minmax(0, 1fr) 36px; column-gap: 10px; padding: 12px 8px 12px 14px; }
  .rgx .rgx-ln-n { font-size: 14.5px; line-height: 1.32; }
  .rgx .rgx-ln-t { font-size: 15px; line-height: 1.32; }
  .rgx .rgx-ln-ap { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; max-height: 3.2em; white-space: normal; font-size: 13.5px; }
  .rgx .rgx-ln-i { width: 36px; height: 36px; font-size: 21px; }
  .rgx .rgx-ln-in { padding: 0 14px 16px 14px; }
  .rgx .rgx-ln-l li { grid-template-columns: 28px minmax(0, 1fr); }
  .rgx .rgx-ln-l p { font-size: 15px; }
  .rgx .rgx-ln-ln { line-height: calc(15px * 1.75); }
  .rgx .rgx-fin-autres { flex-direction: column; align-items: stretch; }
  .rgx .rgx-fin-a { min-width: 0; }
  .rgx .rgx-fin-retour { width: 100%; }
}
@media (max-width: 700px) {
  .rgx .ph-title, .rgx .rgx-ac-ph .ph-title { font-size: clamp(40px, 12.4vw, 64px); }
  .rgx .ph-desc { font-size: 15.5px; }
  .rgx .rgx-affiches { padding-inline: 6px; }
  .rgx .rgx-af-in { aspect-ratio: 3 / 3.9; }
  .rgx .rgx-af:nth-child(1) { --rot: -1.2deg; } .rgx .rgx-af:nth-child(2) { --rot: 1deg; } .rgx .rgx-af:nth-child(3) { --rot: -.8deg; }
  .rgx .rgx-carton { font-size: 13.5px; padding: 12px 14px 12px 12px; }
  .rgx .rgx-rh-titre { font-size: clamp(38px, 11.4vw, 60px); }
  .rgx .rgx-rh-stat dd { font-size: 26px; }
}
