/* Mise en page : colonne centrale de 1180px, héros en deux colonnes (texte + affiches inclinées),
   puis bandes alternées ; la boutique reprend une barre de catégories à gauche et une grille à droite. */
:root {
  color-scheme: dark;
  --nuit: #0f0b08;        /* fond, noir chaud tiré vers l'orange */
  --bitume: #18120d;      /* surfaces */
  --bitume-2: #211811;    /* surfaces relevées */
  --trait: #33261b;       /* bordures */
  --sable: #f7efe6;       /* texte */
  --brume: #b3a394;       /* texte secondaire */
  --soleil: #f5a623;      /* accent Loop */
  --couchant: #ff7a1a;    /* second ton du dégradé */
  --vert: #4ade80;        /* statut en ligne */
  --rouge: #f87171;       /* statut hors ligne */
  --titre: "Unbounded", "Arial Black", system-ui, sans-serif;
  --texte: "Figtree", "Segoe UI", system-ui, sans-serif;
  --feutre: "Permanent Marker", "Comic Sans MS", cursive;
  --rayon: 14px;
  --largeur: 1180px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0;
  background: var(--nuit);
  color: var(--sable);
  font: 400 16px/1.6 var(--texte);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
h1, h2, h3 { font-family: var(--titre); line-height: 1.1; margin: 0; text-wrap: balance; }
p { margin: 0; }
:focus-visible { outline: 2px solid var(--soleil); outline-offset: 3px; border-radius: 6px; }

.cadre { width: 100%; max-width: var(--largeur); margin-inline: auto; padding-inline: 20px; }
.bande { padding-block: 84px; }
.bande--relevee { background: var(--bitume); border-block: 1px solid var(--trait); }
.surtitre {
  font: 700 12px/1 var(--texte); letter-spacing: .18em; text-transform: uppercase;
  color: var(--soleil); margin-bottom: 14px;
}
.titre-bande { font-size: clamp(26px, 4vw, 40px); font-weight: 700; }
.chapeau { color: var(--brume); max-width: 60ch; margin-top: 14px; font-size: 17px; }
.entete-bande { margin-bottom: 44px; }

/* ---------- Boutons ---------- */
.bouton {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 13px 22px; border-radius: 999px; border: 1px solid transparent;
  font-weight: 700; font-size: 15px; white-space: nowrap;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease, border-color .15s ease;
}
.bouton:hover { transform: translateY(-2px); }
.bouton--plein {
  background: linear-gradient(135deg, var(--soleil), var(--couchant));
  color: #1a0f04; box-shadow: 0 10px 30px -12px var(--couchant);
}
.bouton--plein:hover { box-shadow: 0 16px 36px -12px var(--couchant); }
.bouton--contour { border-color: var(--trait); background: var(--bitume); }
.bouton--contour:hover { border-color: var(--soleil); }
.bouton--petit { padding: 9px 16px; font-size: 14px; }

/* ---------- En-tête ---------- */
.entete {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50;
  background: color-mix(in srgb, var(--nuit) 86%, transparent);
  backdrop-filter: blur(14px); border-bottom: 1px solid var(--trait);
}
.entete .cadre { display: flex; align-items: center; gap: 24px; height: 68px; }
.marque { display: flex; align-items: center; gap: 12px; font: 900 17px/1 var(--titre); letter-spacing: .02em; }
.marque img { width: 38px; height: 38px; border-radius: 10px; }
.marque span { color: var(--soleil); }
.menu { display: flex; gap: 4px; margin-left: auto; }
.menu a { padding: 8px 13px; border-radius: 999px; font-weight: 600; font-size: 14.5px; color: var(--brume); }
.menu a:hover { color: var(--sable); background: var(--bitume-2); }
.etat {
  display: inline-flex; align-items: center; gap: 8px; padding: 7px 13px; border-radius: 999px;
  border: 1px solid var(--trait); background: var(--bitume); font-weight: 700; font-size: 13px;
}
.etat i { width: 8px; height: 8px; border-radius: 50%; background: var(--vert); box-shadow: 0 0 0 4px color-mix(in srgb, var(--vert) 22%, transparent); }
.etat[data-etat="ferme"] i { background: var(--rouge); box-shadow: 0 0 0 4px color-mix(in srgb, var(--rouge) 22%, transparent); }
.burger { display: none; margin-left: auto; width: 42px; height: 42px; border-radius: 10px; border: 1px solid var(--trait); background: var(--bitume); }
.burger span { display: block; width: 18px; height: 2px; margin: 4px auto; background: var(--sable); border-radius: 2px; }

/* ---------- Héros ---------- */
.heros { position: relative; padding-block: 64px 0; overflow: hidden; }
.heros::before {
  content: ""; position: absolute; inset: -20% -10% auto auto; width: 70%; aspect-ratio: 1;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--couchant) 38%, transparent), transparent 70%);
  pointer-events: none;
}
.heros .cadre { position: relative; display: grid; grid-template-columns: 1.05fr .95fr; gap: 40px; align-items: center; }
.heros__texte { min-width: 0; }
.heros h1 { font-size: clamp(44px, 8.4vw, 104px); font-weight: 900; letter-spacing: -.02em; }
.heros h1 em {
  font-style: normal; display: block;
  background: linear-gradient(100deg, var(--soleil), var(--couchant)); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.griffe {
  display: inline-block; font: 400 clamp(22px, 3vw, 34px)/1 var(--feutre); color: var(--sable);
  transform: rotate(-4deg); margin: 2px 0 34px 6px;
}
.heros p.accroche { color: var(--brume); font-size: 18px; max-width: 46ch; }
.heros__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.raccourcis { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 26px; }
.raccourcis a {
  font: 700 11.5px/1 var(--texte); letter-spacing: .12em; text-transform: uppercase;
  padding: 10px 14px; border-radius: 8px; border: 1px solid var(--trait); background: color-mix(in srgb, var(--bitume) 80%, transparent);
}
.raccourcis a:hover { border-color: var(--soleil); color: var(--soleil); }

.affiches { position: relative; min-height: 520px; }
.affiche {
  position: absolute; width: 51%; border-radius: 18px; overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--soleil) 40%, var(--trait));
  box-shadow: 0 40px 80px -30px #000;
  transition: transform .35s ease;
}
.affiche img { width: 100%; aspect-ratio: 9 / 16; object-fit: cover; }
.affiche--arriere { right: 0; top: 0; transform: rotate(6deg); }
.affiche--avant { left: 0; top: 56px; transform: rotate(-5deg); z-index: 2; }
.affiches:hover .affiche--arriere { transform: rotate(9deg) translateX(8px); }
.affiches:hover .affiche--avant { transform: rotate(-8deg) translateX(-8px); }

.barre-infos { position: relative; margin-top: 56px; border-top: 1px solid var(--trait); background: var(--bitume); }
.barre-infos .cadre { display: grid; grid-template-columns: repeat(4, 1fr); }
.info { padding: 22px 18px; border-left: 1px solid var(--trait); min-width: 0; }
.info:first-child { border-left: 0; padding-left: 0; }
.info b { display: block; font: 700 19px/1.2 var(--titre); }
.info span { color: var(--brume); font-size: 14px; }

/* ---------- Atouts ---------- */
.atouts { display: grid; grid-template-columns: 1.15fr 1fr; gap: 22px; align-items: stretch; }
.atouts__image { border-radius: var(--rayon); overflow: hidden; border: 1px solid var(--trait); }
.atouts__image img { width: 100%; height: 100%; object-fit: cover; }
.atouts__liste { display: grid; gap: 14px; }
.atout { padding: 22px; border-radius: var(--rayon); background: var(--bitume); border: 1px solid var(--trait); }
.bande--relevee .atout { background: var(--bitume-2); }
.atout h3 { font-size: 17px; font-weight: 700; margin-bottom: 6px; }
.atout p { color: var(--brume); font-size: 15px; }
.atout b { color: var(--soleil); font: 900 26px/1 var(--titre); display: block; margin-bottom: 10px; }

/* ---------- Étapes ---------- */
.etapes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; counter-reset: etape; list-style: none; padding: 0; margin: 0; }
.etape { position: relative; padding: 26px; border-radius: var(--rayon); background: var(--bitume-2); border: 1px solid var(--trait); counter-increment: etape; min-width: 0; }
.etape::before {
  content: "0" counter(etape); display: block; font: 900 44px/1 var(--titre);
  color: transparent; -webkit-text-stroke: 1.5px var(--soleil); margin-bottom: 18px;
}
.etape h3 { font-size: 18px; font-weight: 700; margin-bottom: 8px; }
.etape p { color: var(--brume); font-size: 15px; margin-bottom: 16px; }
.code {
  display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 10px;
  background: var(--nuit); border: 1px dashed var(--trait); font: 600 14px/1.3 ui-monospace, Consolas, monospace;
}
.code span { min-width: 0; overflow-wrap: anywhere; flex: 1; }
.code button { border: 0; background: var(--trait); border-radius: 7px; padding: 6px 10px; font: 700 12px/1 var(--texte); }
.code button:hover { background: var(--soleil); color: #1a0f04; }

/* ---------- Boutique ---------- */
.vedette {
  display: grid; grid-template-columns: 1fr minmax(0, 360px); gap: 24px; align-items: center;
  padding: 30px; border-radius: 20px; border: 1px solid color-mix(in srgb, var(--soleil) 45%, var(--trait));
  background: linear-gradient(120deg, color-mix(in srgb, var(--soleil) 16%, var(--bitume)), var(--bitume) 60%);
  margin-bottom: 30px; overflow: hidden;
}
.vedette__texte { min-width: 0; }
.etiquette { display: inline-block; font: 700 11px/1 var(--texte); letter-spacing: .14em; text-transform: uppercase; padding: 7px 11px; border-radius: 999px; background: var(--soleil); color: #1a0f04; margin-bottom: 14px; }
.vedette h3 { font-size: clamp(22px, 3.2vw, 32px); font-weight: 700; margin-bottom: 10px; }
.vedette p { color: var(--brume); max-width: 48ch; }
.vedette__bas { display: flex; align-items: center; flex-wrap: wrap; gap: 18px; margin-top: 22px; }
.prix { font: 700 26px/1 var(--titre); font-variant-numeric: tabular-nums; }
.prix small { font: 500 14px/1 var(--texte); color: var(--brume); }
.vedette img { filter: drop-shadow(0 30px 40px #000a); }

/* Grades VIP : tableau comparatif à 3 colonnes (avantage, VIP, VIP+) */
.sous-titre { font: 700 22px/1.2 var(--titre); margin: 0 0 18px; }
.grades { margin-bottom: 56px; }
.grades__tete { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 20px; }
.grades__tete .sous-titre { margin: 0; }
.durees { display: inline-flex; flex-wrap: wrap; gap: 4px; padding: 4px; border-radius: 999px; border: 1px solid var(--trait); background: var(--bitume); }
.durees button { border: 0; background: transparent; border-radius: 999px; padding: 8px 14px; font: 700 13.5px/1 var(--texte); color: var(--brume); }
.durees button small { color: var(--vert); font-weight: 700; margin-left: 4px; }
.durees button[aria-pressed="true"] { background: var(--soleil); color: #1a0f04; }
.durees button[aria-pressed="true"] small { color: #1a0f04; }
.tableau { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr) minmax(0, 1fr); border: 1px solid var(--trait); border-radius: 18px; background: var(--bitume); overflow: hidden; }
.tableau > div { padding: 13px 16px; border-top: 1px solid var(--trait); display: flex; align-items: center; min-width: 0; font-size: 14.5px; }
.tableau > div:nth-child(-n+3) { border-top: 0; }
.tableau .col { justify-content: center; text-align: center; font-weight: 700; font-variant-numeric: tabular-nums; }
.tableau .plus { background: color-mix(in srgb, var(--soleil) 9%, transparent); border-inline: 1px solid color-mix(in srgb, var(--soleil) 45%, var(--trait)); }
.tableau .oui { color: var(--soleil); }
.tableau .non { color: var(--brume); opacity: .55; }
.tableau .libelle { color: var(--brume); }
.tableau .offre { flex-direction: column; gap: 8px; padding-block: 26px; text-align: center; }
.offre h4 { margin: 0; font: 700 20px/1 var(--titre); }
.offre .prix { font-size: clamp(18px, 3vw, 28px); }
.offre .detail { font-size: 12.5px; color: var(--brume); min-height: 2.6em; }
.offre .detail b { color: var(--vert); font-weight: 700; display: block; }
.offre .etiquette { margin: 0; }

.boutique { display: grid; grid-template-columns: 200px 1fr; gap: 34px; align-items: start; }
.boutique--simple { grid-template-columns: 1fr; }
.rayons[hidden] { display: none; }
.rayons { position: sticky; top: 92px; display: grid; gap: 4px; }
.rayons button {
  text-align: left; padding: 11px 14px; border-radius: 10px; border: 0; background: transparent;
  font: 600 16px/1.2 var(--texte); color: var(--brume); border-left: 2px solid transparent;
}
.rayons button:hover { color: var(--sable); }
.rayons button[aria-pressed="true"] { color: var(--sable); background: var(--bitume-2); border-left-color: var(--soleil); }
.articles { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 16px; min-width: 0; }
.article { display: flex; flex-direction: column; border-radius: var(--rayon); background: var(--bitume-2); border: 1px solid var(--trait); overflow: hidden; transition: border-color .15s ease, transform .15s ease; }
.article:hover { border-color: var(--soleil); transform: translateY(-3px); }
.article__haut {
  height: 150px; display: grid; place-items: center; position: relative;
  background: radial-gradient(circle at 50% 120%, color-mix(in srgb, var(--soleil) 40%, transparent), transparent 70%), var(--bitume);
  border-bottom: 1px solid var(--trait);
}
.article__haut img { max-height: 118px; max-width: 78%; object-fit: contain; filter: drop-shadow(0 12px 14px #0009); transition: transform .25s ease; }
.article:hover .article__haut img { transform: scale(1.07) rotate(-3deg); }
.article__haut strong { font: 900 30px/1 var(--titre); color: var(--soleil); font-variant-numeric: tabular-nums; }
.article__haut em { position: absolute; top: 10px; left: 10px; font: 700 10.5px/1 var(--texte); font-style: normal; letter-spacing: .12em; text-transform: uppercase; color: var(--brume); }
.article__corps { padding: 18px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.article h4 { margin: 0; font: 700 16px/1.25 var(--texte); }
.article ul { margin: 0; padding-left: 18px; color: var(--brume); font-size: 14px; }
.article p { color: var(--brume); font-size: 14px; }
.article__bas { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: auto; padding-top: 8px; }
.article .prix { font-size: 18px; }
.note { margin-top: 26px; color: var(--brume); font-size: 14px; }
.note a { color: var(--soleil); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Galerie ---------- */
.galerie { display: grid; grid-template-columns: repeat(12, 1fr); gap: 14px; }
.galerie button { padding: 0; border: 1px solid var(--trait); border-radius: var(--rayon); overflow: hidden; background: var(--bitume); grid-column: span 4; }
.galerie button:nth-child(1), .galerie button:nth-child(2) { grid-column: span 6; }
.galerie img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; transition: transform .4s ease; }
.galerie button:hover img { transform: scale(1.04); }
.visionneuse { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 20px; background: #000d; }
.visionneuse img { max-height: 88vh; border-radius: 12px; }
.visionneuse button { position: absolute; top: 18px; right: 18px; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--trait); background: var(--bitume); font-size: 20px; }

/* ---------- Communauté ---------- */
.communaute { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.carte-large { border-radius: 20px; border: 1px solid var(--trait); background: var(--bitume-2); overflow: hidden; display: flex; flex-direction: column; }
.carte-large > img { width: 100%; object-fit: cover; }
.carte-large__corps { padding: 26px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.carte-large h3 { font-size: 21px; font-weight: 700; }
.carte-large p { color: var(--brume); }
.carte-large ol { margin: 0; padding-left: 20px; color: var(--brume); }
.carte-large .bouton { align-self: flex-start; margin-top: auto; }
.reseau { display: grid; grid-template-columns: 150px 1fr; }
.reseau > img { height: 100%; aspect-ratio: 9 / 16; }

/* ---------- Questions ---------- */
.questions { display: grid; gap: 10px; max-width: 820px; }
.questions details { border: 1px solid var(--trait); border-radius: 12px; background: var(--bitume-2); }
.questions summary { cursor: pointer; padding: 18px 20px; font-weight: 700; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.questions summary::-webkit-details-marker { display: none; }
.questions summary::after { content: "+"; color: var(--soleil); font: 700 20px/1 var(--titre); }
.questions details[open] summary::after { content: "–"; }
.questions p { padding: 0 20px 18px; color: var(--brume); }

/* ---------- Appel final + pied ---------- */
.appel { position: relative; border-radius: 24px; overflow: hidden; border: 1px solid var(--trait); }
.appel img { width: 100%; height: 100%; min-height: 320px; object-fit: cover; }
.appel__voile { position: absolute; inset: 0; background: linear-gradient(90deg, #0f0b08f2 0%, #0f0b08b3 45%, transparent 80%); display: flex; align-items: center; }
.appel__texte { padding: 36px; max-width: 520px; }
.appel h2 { font-size: clamp(24px, 3.6vw, 38px); font-weight: 900; margin-bottom: 12px; }
.appel p { color: var(--brume); margin-bottom: 22px; }

.pied { border-top: 1px solid var(--trait); background: var(--bitume); padding-block: 44px 28px; margin-top: 84px; }
.pied__haut { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 30px; }
.pied h4 { margin: 0 0 12px; font: 700 12px/1 var(--texte); letter-spacing: .16em; text-transform: uppercase; color: var(--brume); }
.pied ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.pied a:hover { color: var(--soleil); }
.pied p { color: var(--brume); font-size: 14px; max-width: 44ch; margin-top: 14px; }
.mentions { margin-top: 34px; padding-top: 20px; border-top: 1px solid var(--trait); color: var(--brume); font-size: 12.5px; }

.bulle { position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); z-index: 120; background: var(--soleil); color: #1a0f04; font-weight: 700; padding: 10px 18px; border-radius: 999px; }

/* ---------- Petits écrans ---------- */
@media (max-width: 920px) {
  .menu, .entete .etat, .entete .bouton { display: none; }
  .burger { display: block; }
  .entete[data-ouvert="oui"] .menu {
    display: grid; position: absolute; inset: 68px 0 auto 0; padding: 14px 20px 20px;
    background: var(--nuit); border-bottom: 1px solid var(--trait);
  }
  .entete[data-ouvert="oui"] .menu a { padding: 12px 8px; font-size: 16px; }
  .heros .cadre, .atouts, .communaute, .vedette, .boutique { grid-template-columns: 1fr; }
  .affiches { min-height: 0; aspect-ratio: 1 / 1.05; max-width: 440px; margin-inline: auto; width: 100%; }
  .barre-infos .cadre { grid-template-columns: 1fr 1fr; }
  .info { border-left: 0; padding-left: 0; border-top: 1px solid var(--trait); }
  .info:nth-child(-n+2) { border-top: 0; }
  .etapes { grid-template-columns: 1fr; }
  .rayons { position: static; grid-auto-flow: column; overflow-x: auto; justify-content: start; }
  .rayons button { border-left: 0; border-bottom: 2px solid transparent; white-space: nowrap; }
  .rayons button[aria-pressed="true"] { border-bottom-color: var(--soleil); }
  .vedette img { max-width: 260px; margin-inline: auto; }
  .galerie button, .galerie button:nth-child(1), .galerie button:nth-child(2) { grid-column: span 12; }
  .pied__haut { grid-template-columns: 1fr; }
  .bande { padding-block: 60px; }
  .tableau > div { padding: 11px 10px; font-size: 13px; }
  .offre .bouton { padding: 9px 12px; font-size: 13px; }
  .appel__voile { background: linear-gradient(0deg, #0f0b08f2 30%, #0f0b0899 100%); }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
}

/* ---------- Commun ---------- */
[hidden] { display: none !important; }
.visuellement-cache { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.menu a[aria-current="page"] { color: var(--soleil); }
a[aria-disabled="true"] { opacity: .5; pointer-events: none; }

/* Le menu passe en burger plus tôt, car il a 7 liens */
@media (max-width: 1120px) {
  .menu, .entete .etat, .entete .bouton { display: none; }
  .burger { display: block; }
  .entete[data-ouvert="oui"] .menu {
    display: grid; position: absolute; inset: 68px 0 auto 0; padding: 14px 20px 20px;
    background: var(--nuit); border-bottom: 1px solid var(--trait);
  }
  .entete[data-ouvert="oui"] .menu a { padding: 12px 8px; font-size: 16px; }
}

/* ---------- Page Règlement ----------
   En-tête avec onglets, puis colonne gauche collante (recherche, filtres, sommaire)
   et colonne droite avec les articles numérotés. */
.reg-heros { padding-block: 60px 0; position: relative; overflow: hidden; border-bottom: 1px solid var(--trait); }
.reg-heros::before {
  content: ""; position: absolute; inset: -40% -10% auto auto; width: 55%; aspect-ratio: 1;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--couchant) 30%, transparent), transparent 70%);
  pointer-events: none;
}
.reg-heros .cadre { position: relative; }
.reg-heros h1 { font-size: clamp(34px, 6vw, 64px); font-weight: 900; }
.reg-maj { margin-top: 14px; color: var(--brume); font-size: 14px; }
.reg-maj span { color: var(--sable); font-weight: 700; }
.onglets { display: flex; gap: 6px; margin-top: 34px; overflow-x: auto; }
.onglets button {
  display: inline-flex; align-items: center; gap: 10px; padding: 14px 20px; border: 0; background: transparent;
  font: 700 17px/1 var(--titre); color: var(--brume); border-bottom: 3px solid transparent; white-space: nowrap;
}
.onglets button small { font: 700 12px/1 var(--texte); padding: 4px 8px; border-radius: 999px; background: var(--bitume-2); color: var(--brume); }
.onglets button:hover { color: var(--sable); }
.onglets button[aria-selected="true"] { color: var(--sable); border-bottom-color: var(--soleil); }
.onglets button[aria-selected="true"] small { background: var(--soleil); color: #1a0f04; }

.reg-bande { padding-block: 44px 0; }
.reg-grille { display: grid; grid-template-columns: 270px minmax(0, 1fr); gap: 44px; align-items: start; }
.reg-cote { position: sticky; top: 90px; display: grid; gap: 16px; max-height: calc(100vh - 110px); overflow-y: auto; padding-bottom: 10px; }
.reg-recherche input {
  width: 100%; padding: 13px 16px; border-radius: 12px; border: 1px solid var(--trait); background: var(--bitume);
  color: var(--sable); font: 500 15px/1.2 var(--texte);
}
.reg-recherche input::placeholder { color: var(--brume); }
.reg-recherche input:focus { outline: 2px solid var(--soleil); outline-offset: 1px; border-color: transparent; }
.filtres { display: flex; flex-wrap: wrap; gap: 6px; }
.puce-filtre { border: 1px solid var(--trait); background: var(--bitume); border-radius: 999px; padding: 7px 12px; font: 700 13px/1 var(--texte); color: var(--brume); }
.puce-filtre[aria-pressed="true"] { color: #1a0f04; background: var(--soleil); border-color: var(--soleil); }
.puce-filtre--critique[aria-pressed="true"] { background: var(--rouge); border-color: var(--rouge); }
.compteur { color: var(--brume); font-size: 13px; }
.sommaire { display: grid; gap: 2px; border-left: 1px solid var(--trait); }
.sommaire a { display: grid; grid-template-columns: 26px 1fr auto; gap: 8px; align-items: center; padding: 8px 10px; font-size: 14px; color: var(--brume); border-left: 2px solid transparent; margin-left: -1px; }
.sommaire a span { font: 700 11px/1 var(--titre); color: var(--soleil); }
.sommaire a small { font-size: 12px; color: var(--brume); opacity: .7; }
.sommaire a:hover { color: var(--sable); border-left-color: var(--soleil); background: var(--bitume); }

.reg-intro { font-size: 17px; color: var(--sable); padding: 18px 20px; border-radius: 14px; background: var(--bitume); border: 1px solid var(--trait); margin-bottom: 34px; max-width: 72ch; }
.bloc-regles { display: grid; gap: 12px; margin-bottom: 44px; scroll-margin-top: 90px; }
.bloc-regles__titre { display: flex; align-items: baseline; gap: 14px; font-size: clamp(20px, 2.6vw, 26px); font-weight: 700; margin-bottom: 6px; }
.bloc-regles__titre span { font: 900 15px/1 var(--titre); color: transparent; -webkit-text-stroke: 1px var(--soleil); }
.regle { padding: 20px 22px; border-radius: 14px; background: var(--bitume); border: 1px solid var(--trait); scroll-margin-top: 90px; }
.regle p { color: var(--brume); margin-top: 8px; max-width: 75ch; }
.regle--importante { border-color: color-mix(in srgb, var(--soleil) 45%, var(--trait)); }
.regle--critique { border-color: color-mix(in srgb, var(--rouge) 55%, var(--trait)); background: color-mix(in srgb, var(--rouge) 6%, var(--bitume)); }
.regle__tete { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px; }
.regle__tete h3 { font: 700 17px/1.3 var(--texte); flex: 1; min-width: 12ch; }
.regle__num { font: 700 12px/1 var(--titre); color: var(--brume); padding: 6px 8px; border-radius: 8px; background: var(--bitume-2); font-variant-numeric: tabular-nums; }
.badge { font: 700 10.5px/1 var(--texte); letter-spacing: .12em; text-transform: uppercase; padding: 6px 9px; border-radius: 999px; }
.badge--importante { background: color-mix(in srgb, var(--soleil) 18%, transparent); color: var(--soleil); }
.badge--critique { background: color-mix(in srgb, var(--rouge) 20%, transparent); color: var(--rouge); }
.vide { padding: 30px; text-align: center; border: 1px dashed var(--trait); border-radius: 14px; color: var(--brume); }
.vide strong { display: block; color: var(--sable); margin-bottom: 6px; }

.lexique { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 10px; margin: 0; }
.terme { padding: 16px; border-radius: 12px; background: var(--bitume); border: 1px solid var(--trait); }
.terme dt { font: 700 15px/1.2 var(--titre); color: var(--soleil); margin-bottom: 6px; }
.terme dd { margin: 0; color: var(--brume); font-size: 14px; }
.reg-aide { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px; padding: 24px; border-radius: 16px; border: 1px solid color-mix(in srgb, var(--soleil) 45%, var(--trait)); background: linear-gradient(120deg, color-mix(in srgb, var(--soleil) 14%, var(--bitume)), var(--bitume) 70%); }
.reg-aide p { color: var(--brume); }

.page-404 { padding-block: 120px 40px; }
.page-404 h1 { font-size: clamp(32px, 6vw, 60px); font-weight: 900; margin-bottom: 12px; }

@media (max-width: 920px) {
  .reg-grille { grid-template-columns: 1fr; gap: 24px; }
  .reg-cote { position: static; max-height: none; overflow: visible; }
  .sommaire { grid-auto-flow: column; overflow-x: auto; border-left: 0; border-bottom: 1px solid var(--trait); }
  .sommaire a { grid-template-columns: auto auto; white-space: nowrap; border-left: 0; border-bottom: 2px solid transparent; margin: 0; }
  .sommaire a small { display: none; }
}
