@charset "UTF-8";
/*
 * Le guide du jeu : vient par-dessus site.css, l'habillage des
 * pages du site (nuit profonde et or). Trois colonnes sur grand écran :
 * le sommaire du guide, l'article, le plan de la page. Une seule colonne
 * sur téléphone, le sommaire repliable en tête.
 */

:root {
  --g-large: 1380px;
  --g-nav: 272px;
  --g-toc: 232px;
  --g-texte: 17px;
  --g-carte: linear-gradient(160deg, rgba(34, 48, 108, 0.42), rgba(16, 24, 60, 0.42));
  --g-carte-plein: #0e1638;
  --g-lueur: 0 10px 40px rgba(0, 0, 0, 0.35);
  --g-rayon: 18px;
  /* Les statuts, chacun sa teinte (les mêmes que les pastilles du jeu, à peu près). */
  --st-sleep: #a9b4ff;
  --st-poison: #c98cf0;
  --st-paralysis: #ffd85c;
  --st-burn: #ff8a55;
  --st-confusion: #ff9fd0;
  --st-trapped: #d2a870;
  --st-frozen: #8fe0ff;
  --st-seeded: #8fd99a;
  --st-drowsy: #c2c9ff;
}

* { box-sizing: border-box; }

body.guide {
  color: var(--v-texte);
  font: 400 var(--g-texte) / 1.65 var(--v-sans);
  -webkit-font-smoothing: antialiased;
}
body.guide a { color: var(--v-lien); text-decoration-thickness: 1px; text-underline-offset: 3px; }
body.guide a:hover { color: #fff; }
body.guide h1, body.guide h2, body.guide h3 { font-family: var(--v-pixel); font-weight: 600; letter-spacing: 0.01em; color: #fff; line-height: 1.15; margin: 0; }
body.guide h1 { font-size: 44px; }
body.guide h2 { font-size: 30px; margin-top: 44px; scroll-margin-top: 90px; }
body.guide h3 { font-size: 22px; margin-top: 30px; scroll-margin-top: 90px; color: var(--v-or); }
body.guide p { margin: 0 0 1em; }
body.guide strong { color: #fff; }
body.guide code { font: 600 0.92em var(--v-sans); color: #fff; background: rgba(255, 255, 255, 0.07); padding: 1px 6px; border-radius: 6px; }
.g-chiffre, .g-nombre { font-family: var(--v-pixel); font-weight: 600; }

/* ---------- La barre du haut : logo, recherche, langue, Jouer ---------- */
.g-barre {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(6, 10, 24, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--v-bord);
}
.g-barre__dedans {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 18px;
  max-width: var(--g-large);
  margin: 0 auto;
  padding: 10px 20px;
}
.g-barre__logo img { display: block; width: 112px; height: auto; }
.g-barre__guide {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none !important;
}
.g-barre__guide span {
  padding: 4px 10px;
  border: 1px solid var(--v-bord-or);
  border-radius: 999px;
  color: var(--v-or) !important;
  font: 600 13px/1 var(--v-pixel);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.g-barre .langues--barre { display: flex; align-items: center; gap: 10px; color: var(--v-pale); font-size: 14px; }
.g-barre .langues--barre svg { width: 18px; height: 18px; }
.g-barre .langues--barre a { color: var(--v-pale); text-decoration: none; }
.g-barre .langues--barre a[aria-current] { color: #fff; font-weight: 600; }
.g-barre .v-bouton { min-height: 42px; padding: 0 18px; font-size: 15px; }

/* ---------- La recherche ---------- */
.g-recherche { position: relative; max-width: 620px; justify-self: center; width: 100%; }
.g-recherche svg.loupe {
  position: absolute; left: 16px; top: 50%; width: 20px; height: 20px; transform: translateY(-50%);
  color: var(--v-pale); pointer-events: none;
}
.g-recherche input {
  width: 100%;
  min-height: 46px;
  padding: 0 16px 0 46px;
  border: 1px solid rgba(160, 180, 255, 0.22);
  border-radius: 999px;
  background: rgba(14, 22, 56, 0.85);
  color: #fff;
  font: 400 16px/1 var(--v-sans);
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.g-recherche input::placeholder { color: var(--v-pale); }
.g-recherche input:focus { border-color: rgba(255, 216, 92, 0.65); box-shadow: 0 0 0 4px rgba(255, 216, 92, 0.12); }
.g-recherche--grande input { min-height: 60px; font-size: 19px; padding-left: 56px; border-radius: 18px; }
.g-recherche--grande svg.loupe { left: 20px; width: 24px; height: 24px; }

.g-resultats {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  left: 0; right: 0;
  z-index: 30;
  padding: 10px;
  border: 1px solid var(--v-bord-or);
  border-radius: 18px;
  background: var(--g-carte-plein);
  box-shadow: var(--g-lueur);
  text-align: left;
}
.g-recherche.ouvert .g-resultats { display: block; }
.g-resultats__groupe { padding: 8px 10px 4px; color: var(--v-pale); font: 700 12px/1 var(--v-sans); letter-spacing: 0.12em; text-transform: uppercase; }
.g-resultats a {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 9px 10px;
  border-radius: 12px;
  color: var(--v-texte);
  text-decoration: none;
}
.g-resultats a:hover, .g-resultats a.actif { background: rgba(255, 216, 92, 0.1); }
.g-resultats a img { width: 36px; height: 36px; object-fit: contain; image-rendering: pixelated; }
.g-resultats a b { display: block; font-size: 16px; color: #fff; }
.g-resultats a b mark { background: none; color: var(--v-or); }
.g-resultats a small { display: block; color: var(--v-pale); font-size: 13px; }
.g-resultats a .g-resultats__fil { color: var(--v-pale); font-size: 13px; white-space: nowrap; }
.g-resultats__pied { padding: 10px 10px 4px; border-top: 1px solid var(--v-bord); margin-top: 6px; color: var(--v-pale); font-size: 14px; display: flex; justify-content: space-between; }
.g-resultats__pied a { display: inline; padding: 0; color: var(--v-lien); }

/* ---------- La grille des pages ---------- */
.g-page {
  display: grid;
  grid-template-columns: var(--g-nav) minmax(0, 1fr) var(--g-toc);
  gap: 44px;
  align-items: start;
  max-width: var(--g-large);
  margin: 0 auto;
  padding: 26px 20px 0;
}
.g-page--large { grid-template-columns: var(--g-nav) minmax(0, 1fr); }

/* Le sommaire du guide, à gauche. */
.g-sommaire { position: sticky; top: 82px; max-height: calc(100vh - 100px); overflow: auto; padding-right: 6px; scrollbar-width: thin; scrollbar-color: rgba(160, 180, 255, 0.25) transparent; }
.g-sommaire > summary { display: none; }
.g-nav__retour { display: flex; align-items: center; gap: 8px; margin: 2px 0 14px; color: var(--v-pale); font-size: 14px; text-decoration: none; }
.g-nav__retour:hover { color: #fff; }
.g-nav details { margin: 0 0 4px; }
.g-nav summary {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 10px;
  border-radius: 12px;
  color: var(--v-texte);
  font: 600 15px/1.2 var(--v-sans);
  cursor: pointer;
  list-style: none;
}
.g-nav summary::-webkit-details-marker { display: none; }
.g-nav summary:hover { background: rgba(255, 255, 255, 0.04); }
.g-nav summary .g-nav__ico { width: 26px; height: 26px; flex: none; display: grid; place-items: center; border-radius: 8px; background: rgba(255, 216, 92, 0.1); color: var(--v-or); }
.g-nav summary .g-nav__ico svg { width: 16px; height: 16px; }
.g-nav summary .g-nav__n { margin-left: auto; color: var(--v-pale); font: 600 12px/1 var(--v-pixel); }
.g-nav summary::after { content: ''; width: 7px; height: 7px; margin-left: 4px; border-right: 2px solid var(--v-pale); border-bottom: 2px solid var(--v-pale); transform: rotate(-45deg); transition: transform 0.15s ease; }
.g-nav details[open] > summary::after { transform: rotate(45deg); }
.g-nav details[open] > summary { color: #fff; }
.g-nav ul { list-style: none; margin: 2px 0 8px; padding: 0 0 0 22px; border-left: 1px solid var(--v-bord); margin-left: 22px; }
.g-nav li a {
  display: block;
  padding: 6px 10px;
  margin-left: -1px;
  border-left: 2px solid transparent;
  border-radius: 0 10px 10px 0;
  color: var(--v-doux);
  font-size: 14.5px;
  text-decoration: none;
}
.g-nav li a:hover { color: #fff; background: rgba(255, 255, 255, 0.04); }
.g-nav li a[aria-current] { color: var(--v-or); border-left-color: var(--v-or); background: rgba(255, 216, 92, 0.08); font-weight: 600; }
.g-nav li a .g-nouveau { margin-left: 6px; }

/* Le plan de la page, à droite. */
.g-toc { position: sticky; top: 82px; font-size: 14px; }
.g-toc > summary { display: none; }
.g-toc__titre { margin: 0 0 10px; color: var(--v-pale); font: 700 12px/1 var(--v-sans); letter-spacing: 0.12em; text-transform: uppercase; }
.g-toc ol { list-style: none; margin: 0; padding: 0; border-left: 1px solid var(--v-bord); }
.g-toc li a { display: block; padding: 6px 14px; margin-left: -1px; border-left: 2px solid transparent; color: var(--v-doux); text-decoration: none; line-height: 1.35; }
.g-toc li li a { padding-left: 26px; font-size: 13.5px; color: var(--v-pale); }
.g-toc li a:hover { color: #fff; }
.g-toc li a.actif { color: var(--v-or); border-left-color: var(--v-or); }
.g-toc__outils { margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--v-bord); display: grid; gap: 8px; }
.g-toc__outils a { display: flex; align-items: center; gap: 8px; color: var(--v-pale); text-decoration: none; }
.g-toc__outils a:hover { color: #fff; }
.g-toc__outils svg { width: 16px; height: 16px; }

/* ---------- L'article ---------- */
.g-article { max-width: 780px; min-width: 0; }
.g-article .s-fil { margin: 0 0 14px; }
.g-article .s-fil a:hover { color: #fff; }
.g-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin: 14px 0 22px; color: var(--v-pale); font-size: 14px; }
.g-meta .g-rubrique { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; background: rgba(255, 216, 92, 0.1); color: var(--v-or); font-weight: 600; text-decoration: none; }
.g-meta time { color: var(--v-doux); }
.g-meta .g-ok { display: inline-flex; align-items: center; gap: 6px; color: #8fd99a; }
.g-meta .g-ok svg { width: 15px; height: 15px; }
.g-chapeau { font-size: 20px; line-height: 1.55; color: var(--v-doux); margin: 0 0 22px; }

.g-bref {
  margin: 0 0 30px;
  padding: 18px 22px;
  border: 1px solid var(--v-bord-or);
  border-radius: var(--g-rayon);
  background: var(--g-carte);
}
.g-bref h2 { margin: 0 0 12px; font-size: 16px; color: var(--v-or); letter-spacing: 0.1em; text-transform: uppercase; }
.g-bref dl { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 28px; margin: 0; }
.g-bref dl > div { padding-left: 12px; border-left: 2px solid rgba(255, 216, 92, 0.35); }
.g-bref dt { color: var(--v-pale); font-size: 12.5px; text-transform: uppercase; letter-spacing: 0.1em; }
.g-bref dd { margin: 3px 0 0; color: #fff; font-size: 16px; line-height: 1.45; }

.g-encart {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 14px;
  margin: 22px 0;
  padding: 16px 18px;
  border: 1px solid var(--v-bord);
  border-left-width: 4px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.03);
  font-size: 16px;
}
.g-encart p:last-child { margin: 0; }
.g-encart__ico { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 10px; }
.g-encart__ico svg { width: 20px; height: 20px; }
.g-encart b.g-encart__titre { display: block; margin-bottom: 2px; color: #fff; }
.g-encart--astuce { border-left-color: var(--v-or); }
.g-encart--astuce .g-encart__ico { background: rgba(255, 216, 92, 0.14); color: var(--v-or); }
.g-encart--attention { border-left-color: #ff8a55; }
.g-encart--attention .g-encart__ico { background: rgba(255, 138, 85, 0.14); color: #ff8a55; }
.g-encart--note { border-left-color: #8fb4ff; }
.g-encart--note .g-encart__ico { background: rgba(143, 180, 255, 0.14); color: #8fb4ff; }

/* Les tableaux du guide (par-dessus .s-table). */
.g-article .s-table { margin: 18px 0 24px; background: rgba(8, 12, 32, 0.4); }
.g-article .s-table td { font-size: 15.5px; line-height: 1.5; }
.g-article .s-table td:first-child { white-space: nowrap; }
.g-tours { font-family: var(--v-pixel); font-weight: 600; color: #fff; }

/* Une pastille de statut. */
.g-statut { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: #fff; }
.g-statut::before { content: ''; width: 12px; height: 12px; border-radius: 50%; background: var(--st, var(--v-pale)); box-shadow: 0 0 0 3px color-mix(in srgb, var(--st, var(--v-pale)) 25%, transparent); }

/* Un objet cité dans le texte : icône + nom, qui mène à sa fiche. */
.g-objet { display: inline-flex; align-items: center; gap: 6px; padding: 2px 10px 2px 4px; border: 1px solid var(--v-bord); border-radius: 999px; background: rgba(255, 255, 255, 0.04); color: #fff; font-weight: 600; font-size: 0.94em; text-decoration: none; white-space: nowrap; vertical-align: middle; }
.g-objet img { width: 22px; height: 22px; image-rendering: pixelated; }
.g-objet:hover { border-color: var(--v-bord-or); background: rgba(255, 216, 92, 0.1); color: var(--v-or); }
.g-poke { display: inline-flex; align-items: center; gap: 6px; color: #fff; font-weight: 600; text-decoration: none; }
.g-poke img { width: 24px; height: 24px; border-radius: 6px; }
.g-poke:hover { color: var(--v-or); }
.g-nouveau { display: inline-block; padding: 1px 7px; border-radius: 999px; background: rgba(143, 217, 154, 0.16); color: #8fd99a; font: 700 11px/1.5 var(--v-sans); letter-spacing: 0.08em; text-transform: uppercase; vertical-align: middle; }

.g-article ul, .g-article ol { padding-left: 1.3em; color: var(--v-doux); }
.g-article li { margin-bottom: 0.45em; }
.g-article li::marker { color: var(--v-or); }

/* Le spoiler : une bande qu'on ouvre soi-même. */
.g-spoiler { margin: 18px 0; border: 1px dashed var(--v-bord-or); border-radius: 14px; background: rgba(255, 216, 92, 0.04); }
.g-spoiler summary { display: flex; align-items: center; gap: 10px; padding: 12px 16px; color: var(--v-or); font-weight: 600; cursor: pointer; list-style: none; }
.g-spoiler summary::-webkit-details-marker { display: none; }
.g-spoiler summary svg { width: 18px; height: 18px; }
.g-spoiler summary small { margin-left: auto; color: var(--v-pale); font-weight: 400; font-size: 13px; }
.g-spoiler > div { padding: 0 16px 14px; color: var(--v-doux); }

/* La fiche (Pokémon, objet, lieu) : à droite du texte sur grand écran. */
.g-fiche {
  float: right;
  width: 300px;
  margin: 6px 0 20px 28px;
  padding: 16px;
  border: 1px solid var(--v-bord-or);
  border-radius: var(--g-rayon);
  background: var(--g-carte);
  box-shadow: var(--g-lueur);
  font-size: 15px;
}
.g-fiche__portrait { display: grid; place-items: center; padding: 14px; border-radius: 14px; background: radial-gradient(ellipse at 50% 35%, rgba(255, 216, 92, 0.22), rgba(14, 22, 56, 0.2) 70%); }
.g-fiche__portrait img { width: 120px; height: 120px; image-rendering: pixelated; filter: drop-shadow(0 6px 14px rgba(0, 0, 0, 0.5)); }
.g-fiche__nom { margin: 12px 0 2px; text-align: center; font: 600 24px/1.1 var(--v-pixel); color: #fff; }
.g-fiche__num { text-align: center; color: var(--v-pale); font-size: 13px; margin-bottom: 12px; }
.g-fiche dl { margin: 0; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 8px 14px; align-items: baseline; }
.g-fiche dt { color: var(--v-pale); font-size: 13px; }
.g-fiche dd { margin: 0; color: #fff; }
.g-fiche dd small { color: var(--v-pale); font-size: 13px; }
.g-fiche hr { border: 0; border-top: 1px solid var(--v-bord); margin: 14px 0; }
.g-type { display: inline-block; padding: 2px 9px; border-radius: 999px; font: 700 12.5px/1.5 var(--v-sans); letter-spacing: 0.04em; text-transform: uppercase; background: rgba(255, 255, 255, 0.1); color: #fff; vertical-align: middle; }
.g-fiche__portraits { display: flex; justify-content: center; gap: 6px; margin-top: 10px; }
.g-fiche__portraits img { width: 40px; height: 40px; border-radius: 8px; image-rendering: pixelated; opacity: 0.85; }
.g-fiche__portraits img:hover { opacity: 1; }

/* ---------- Images ---------- */
/* Une image dans le texte, avec sa légende. */
.g-figure { margin: 22px 0 26px; }
.g-figure img { display: block; width: 100%; height: auto; border: 1px solid var(--v-bord); border-radius: 16px; box-shadow: var(--g-lueur); }
.g-figure--pixel img { image-rendering: pixelated; }
.g-figure figcaption { margin-top: 8px; color: var(--v-pale); font-size: 13.5px; line-height: 1.45; }

/* Le bandeau peint en tête d'un article ou d'une fiche. */
.g-bandeau { position: relative; margin: 0 0 24px; border: 1px solid var(--v-bord-or); border-radius: 20px; overflow: hidden; aspect-ratio: 21 / 9; background: #0b1230; box-shadow: var(--g-lueur); }
.g-bandeau img { display: block; width: 100%; height: 100%; object-fit: cover; }
.g-bandeau--pixel img { image-rendering: pixelated; }
.g-bandeau figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 36px 18px 12px; background: linear-gradient(180deg, transparent, rgba(6, 10, 24, 0.88)); color: var(--v-doux); font-size: 13.5px; }

/* Le sprite qui marche, dans la fiche (planche SpriteCollab : 7 pas de 40 × 48, la première ligne regarde vers nous). */
.g-fiche__sprite { height: 110px; display: grid; justify-items: center; align-items: start; padding-top: 6px; }
.g-sprite { width: 40px; height: 48px; background: url('/assets/sprites/0133/Walk-Anim.png') 0 0 no-repeat; image-rendering: pixelated; transform: scale(2); transform-origin: top center; animation: g-marche 0.84s steps(7) infinite; }
@keyframes g-marche { to { background-position: -280px 0; } }

/* Les Mues d'Évoli : une carte par forme, sur le décor qui la décide. */
.g-mues { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 18px 0 24px; padding: 0; list-style: none; }
.g-mues li { position: relative; overflow: hidden; min-height: 168px; border: 1px solid var(--v-bord); border-radius: 16px; background: #0b1230; }
.g-mues li.g-mues--defaut { border-color: var(--v-bord-or); box-shadow: 0 0 0 1px rgba(255, 216, 92, 0.25); }
.g-mues__fond { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; image-rendering: pixelated; }
.g-mues li::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(6, 10, 24, 0.05) 0%, rgba(6, 10, 24, 0.5) 42%, rgba(6, 10, 24, 0.94) 100%); }
.g-mues__corps { position: relative; z-index: 1; display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 12px; align-items: end; padding: 78px 14px 12px; }
.g-mues__portrait { width: 64px; height: 64px; border: 2px solid rgba(255, 255, 255, 0.18); border-radius: 12px; image-rendering: pixelated; box-shadow: 0 6px 16px rgba(0, 0, 0, 0.5); }
.g-mues b { display: block; color: #fff; font-size: 17px; text-shadow: 0 1px 3px rgba(0, 0, 0, 0.6); }
.g-mues span:not(.g-type) { display: block; color: var(--v-doux); font-size: 14px; line-height: 1.4; text-shadow: 0 1px 3px rgba(0, 0, 0, 0.6); }
.g-mues .g-type { font-size: 11.5px; padding: 1px 7px; margin-left: 4px; }

/* Les portraits qui font la tête du statut, dans le tableau. */
.g-statut img { width: 36px; height: 36px; border-radius: 9px; image-rendering: pixelated; box-shadow: 0 0 0 2px var(--st, var(--v-pale)); }
.g-statut.avec-portrait::before { display: none; }

/* Voir aussi, en cartes. */
.g-voir-aussi { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 16px 0 0; padding: 0; list-style: none; }
.g-voir-aussi a { display: block; height: 100%; padding: 14px 16px; border: 1px solid var(--v-bord); border-radius: 14px; background: rgba(255, 255, 255, 0.03); color: var(--v-texte); text-decoration: none; transition: border-color 0.2s ease, transform 0.2s ease; }
.g-voir-aussi a:hover { border-color: var(--v-bord-or); transform: translateY(-2px); }
.g-voir-aussi small { display: block; color: var(--v-pale); font-size: 12.5px; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 4px; }
.g-voir-aussi b { display: block; color: #fff; font-size: 16px; }
.g-voir-aussi span { display: block; color: var(--v-doux); font-size: 14px; margin-top: 4px; }

/* Le pied de l'article : vérifié quand, une erreur ?, précédent / suivant. */
.g-pied-article { margin-top: 44px; padding-top: 22px; border-top: 1px solid var(--v-bord); }
.g-pied-article__verif { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 22px; color: var(--v-pale); font-size: 14px; }
.g-pied-article__verif a { display: inline-flex; align-items: center; gap: 6px; }
.g-pied-article__verif svg { width: 15px; height: 15px; }
.g-prec-suiv { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 22px; }
.g-prec-suiv a { display: block; padding: 14px 18px; border: 1px solid var(--v-bord); border-radius: 14px; background: rgba(255, 255, 255, 0.03); text-decoration: none; color: #fff; }
.g-prec-suiv a:hover { border-color: var(--v-bord-or); }
.g-prec-suiv a small { display: block; color: var(--v-pale); font-size: 12.5px; letter-spacing: 0.08em; text-transform: uppercase; }
.g-prec-suiv a + a { text-align: right; }

/* ---------- L'accueil du guide ---------- */
.g-accueil { max-width: var(--g-large); margin: 0 auto; padding: 0 20px; }
.g-hero {
  position: relative;
  margin: 24px 0 36px;
  padding: 56px 48px 50px;
  border: 1px solid var(--v-bord-or);
  border-radius: 26px;
  background:
    radial-gradient(ellipse 60% 70% at 85% 20%, rgba(255, 216, 92, 0.18), transparent 60%),
    radial-gradient(ellipse 50% 60% at 10% 100%, rgba(90, 120, 255, 0.25), transparent 60%),
    linear-gradient(160deg, #141f52, #0b1230 70%);
  box-shadow: var(--g-lueur);
  text-align: center;
}
.g-hero__decor { position: absolute; inset: 0; border-radius: inherit; overflow: hidden; background: url('/assets/combe/chapitres/prologue-v1.png') center 38% / cover no-repeat; opacity: 0.28; mask-image: linear-gradient(180deg, rgba(0,0,0,0.9), transparent 85%); -webkit-mask-image: linear-gradient(180deg, rgba(0,0,0,0.9), transparent 85%); }
.g-hero > * { position: relative; }

/* L'accueil avec une peinture : le texte à gauche, le seuil de la Combe à droite. */
.g-hero--peinture { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 0.95fr); padding: 0; text-align: left; background: #111a46; }
.g-hero--peinture .g-hero__texte { padding: 54px 40px 46px 48px; }
.g-hero--peinture .g-hero__texte p { margin-left: 0; }
.g-hero--peinture .g-recherche { margin: 0; max-width: none; }
.g-hero--peinture .g-puces { justify-content: flex-start; }
.g-hero__peinture { position: relative; min-height: 440px; border-radius: 0 26px 26px 0; background: #111a46 70% 45% / cover no-repeat; }
.g-hero__peinture::before { content: ''; position: absolute; inset: 0; border-radius: inherit; background: linear-gradient(90deg, #111a46 0%, rgba(17, 26, 70, 0.7) 14%, rgba(17, 26, 70, 0) 42%), linear-gradient(180deg, rgba(17, 26, 70, 0) 70%, rgba(17, 26, 70, 0.55) 100%); }
.g-hero__peinture small { position: absolute; right: 16px; bottom: 12px; color: rgba(230, 234, 255, 0.75); font-size: 12px; }

/* Les lieux, en bande d'images. */
.g-lieux { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; margin: 0; padding: 0; list-style: none; }
.g-lieux a { position: relative; display: block; aspect-ratio: 4 / 3; overflow: hidden; border: 1px solid var(--v-bord); border-radius: 16px; background: #0b1230; color: #fff; text-decoration: none; transition: transform 0.2s ease, border-color 0.2s ease; }
.g-lieux a:hover { transform: translateY(-3px); border-color: var(--v-bord-or); }
.g-lieux img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; image-rendering: pixelated; }
.g-lieux span { position: absolute; left: 0; right: 0; bottom: 0; padding: 30px 12px 10px; background: linear-gradient(180deg, transparent, rgba(6, 10, 24, 0.92)); font-weight: 600; font-size: 14px; line-height: 1.3; }
.g-lieux small { display: block; color: var(--v-pale); font-weight: 400; font-size: 12px; }
.g-surtitre { display: block; margin-bottom: 10px; color: var(--v-or); font: 600 14px/1 var(--v-pixel); letter-spacing: 0.18em; text-transform: uppercase; }
.g-hero h1 { font-size: 52px; }
.g-hero p { max-width: 720px; margin: 16px auto 26px; font-size: 19px; color: var(--v-doux); }
.g-hero .g-recherche { margin: 0 auto; max-width: 720px; }
.g-puces { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 18px 0 0; padding: 0; list-style: none; }
.g-puces li span { color: var(--v-pale); font-size: 14px; margin-right: 4px; }
.g-puces a { display: inline-flex; align-items: center; min-height: 34px; padding: 0 14px; border: 1px solid var(--v-bord); border-radius: 999px; background: rgba(8, 12, 32, 0.5); color: var(--v-texte); font-size: 14px; text-decoration: none; }
.g-puces a:hover { border-color: var(--v-bord-or); color: var(--v-or); }

.g-titre-section { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin: 40px 0 16px; }
.g-titre-section h2 { margin: 0; font-size: 28px; }
.g-titre-section a { color: var(--v-pale); font-size: 14px; text-decoration: none; }
.g-titre-section a:hover { color: #fff; }

.g-rubriques { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin: 0; padding: 0; list-style: none; }
.g-rubrique-carte {
  display: flex; flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--v-bord);
  border-radius: 20px;
  background: var(--g-carte);
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}
.g-rubrique-carte:hover { border-color: var(--v-bord-or); transform: translateY(-3px); box-shadow: var(--g-lueur); }
.g-rubrique-carte__image { position: relative; height: 150px; background: #0b1230 center / cover no-repeat; }
.g-rubrique-carte__image::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 40%, rgba(14, 22, 56, 0.95)); }
.g-rubrique-carte__image img.g-mosaique { position: absolute; width: 56px; height: 56px; image-rendering: pixelated; filter: drop-shadow(0 4px 8px rgba(0,0,0,0.5)); }
.g-rubrique-carte__corps { padding: 4px 18px 16px; }
.g-rubrique-carte__corps h3 { margin: 0; font-size: 22px; color: #fff; }
.g-rubrique-carte__corps h3 a { color: #fff; text-decoration: none; }
.g-rubrique-carte__corps h3 a::after { content: ''; position: absolute; inset: 0; }
.g-rubrique-carte { position: relative; }
.g-rubrique-carte__corps > p { margin: 6px 0 10px; color: var(--v-doux); font-size: 14.5px; line-height: 1.5; }
.g-rubrique-carte__liens { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; position: relative; z-index: 1; }
.g-rubrique-carte__liens a { display: inline-block; padding: 3px 10px; border-radius: 999px; background: rgba(255, 255, 255, 0.06); color: var(--v-doux); font-size: 13px; text-decoration: none; }
.g-rubrique-carte__liens a:hover { background: rgba(255, 216, 92, 0.14); color: var(--v-or); }
.g-rubrique-carte__n { margin-top: 12px; color: var(--v-pale); font-size: 13px; }
.g-rubrique-carte__n b { color: var(--v-doux); font-family: var(--v-pixel); font-weight: 600; }

.g-deux { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.g-liste-carte { padding: 18px 22px; border: 1px solid var(--v-bord); border-radius: 20px; background: var(--g-carte); }
.g-liste-carte h2 { font-size: 22px; margin: 0 0 12px; }
.g-liste-carte ol, .g-liste-carte ul { margin: 0; padding: 0; list-style: none; }
.g-liste-carte li { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 10px 0; border-top: 1px solid var(--v-bord); }
.g-liste-carte li:first-child { border-top: 0; }
.g-liste-carte .g-rang { width: 28px; height: 28px; display: grid; place-items: center; border-radius: 8px; background: rgba(255, 216, 92, 0.1); color: var(--v-or); font: 600 14px/1 var(--v-pixel); }
.g-liste-carte li a { color: #fff; font-weight: 600; text-decoration: none; }
.g-liste-carte li a:hover { color: var(--v-or); }
.g-liste-carte li small { display: block; color: var(--v-pale); font-size: 13px; font-weight: 400; }
.g-liste-carte li time, .g-liste-carte li .g-lectures { color: var(--v-pale); font-size: 13px; white-space: nowrap; }
.g-liste-carte img { width: 32px; height: 32px; image-rendering: pixelated; }

.g-questions { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 0; padding: 0; list-style: none; }
.g-questions a { display: grid; grid-template-columns: 46px minmax(0, 1fr); gap: 12px; align-items: start; height: 100%; padding: 14px 16px; border: 1px solid var(--v-bord); border-radius: 14px; background: rgba(255, 255, 255, 0.03); color: var(--v-texte); text-decoration: none; }
.g-questions a:hover { border-color: var(--v-bord-or); }
.g-questions img { width: 46px; height: 46px; border-radius: 10px; object-fit: contain; image-rendering: pixelated; background: rgba(255, 255, 255, 0.05); }
.g-questions b { display: block; color: #fff; font-size: 16px; margin-bottom: 4px; }
.g-questions span { color: var(--v-doux); font-size: 14px; line-height: 1.45; }

.g-aide { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 24px; margin: 40px 0 0; padding: 24px 28px; border: 1px solid var(--v-bord-or); border-radius: 20px; background: linear-gradient(120deg, rgba(255, 216, 92, 0.1), rgba(90, 120, 255, 0.1)); }
.g-aide__portrait { width: 88px; height: 88px; border: 2px solid var(--v-bord-or); border-radius: 20px; image-rendering: pixelated; box-shadow: var(--g-lueur); }
.g-aide h2 { font-size: 24px; margin: 0 0 6px; }
.g-aide p { margin: 0; color: var(--v-doux); }
.g-aide .v-actions { display: flex; gap: 10px; margin: 0; }
.g-aide .v-bouton { min-height: 46px; font-size: 16px; }

/* ---------- Téléphone et petits écrans ---------- */
@media (max-width: 1180px) {
  .g-page { grid-template-columns: var(--g-nav) minmax(0, 1fr); }
  .g-toc { position: static; margin: 0 0 18px; border: 1px solid var(--v-bord); border-radius: 14px; background: rgba(255, 255, 255, 0.03); }
  .g-toc > summary { display: flex; align-items: center; gap: 10px; padding: 12px 16px; cursor: pointer; color: var(--v-or); font-weight: 600; list-style: none; }
  .g-toc > summary::-webkit-details-marker { display: none; }
  .g-toc .g-toc__titre { display: none; }
  .g-toc ol { margin: 0 16px 12px; }
  .g-toc__outils { display: none; }
  .g-toc--fin { display: none; }
  .g-voir-aussi { grid-template-columns: 1fr 1fr; }
  .g-rubriques, .g-questions { grid-template-columns: 1fr 1fr; }
  .g-lieux { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  :root { --g-texte: 16.5px; }
  body.guide h1 { font-size: 34px; }
  body.guide h2 { font-size: 26px; }
  .g-barre__dedans { grid-template-columns: auto minmax(0, 1fr) auto; gap: 10px; padding: 8px 12px; }
  .g-barre .langues--barre { display: none; }
  .g-barre__guide span { display: none; }
  .g-barre__logo img { width: 84px; }
  .g-barre .v-bouton { min-height: 38px; padding: 0 14px; font-size: 14px; }
  .g-recherche input { min-height: 40px; font-size: 15px; }
  .g-page { grid-template-columns: minmax(0, 1fr); gap: 14px; padding: 14px 14px 0; }
  .g-sommaire { position: static; max-height: none; overflow: visible; padding: 0; border: 1px solid var(--v-bord); border-radius: 14px; background: rgba(255, 255, 255, 0.03); }
  .g-sommaire > summary { display: flex; align-items: center; gap: 10px; padding: 12px 16px; cursor: pointer; color: var(--v-or); font-weight: 600; list-style: none; }
  .g-sommaire > summary::-webkit-details-marker { display: none; }
  .g-sommaire > summary svg { width: 18px; height: 18px; }
  .g-sommaire .g-nav { padding: 0 10px 10px; }
  .g-nav__retour { display: none; }
  .g-meta { gap: 8px 12px; font-size: 13px; }
  .g-chapeau { font-size: 18px; }
  .g-bref dl { grid-template-columns: 1fr; }
  .g-fiche { float: none; width: auto; margin: 0 0 22px; }
  .g-mues { grid-template-columns: 1fr; }
  .g-voir-aussi { grid-template-columns: 1fr; }
  .g-prec-suiv { grid-template-columns: 1fr; }
  .g-prec-suiv a + a { text-align: left; }
  .g-article .s-table th { position: static; }
  .g-article .s-table td:first-child { white-space: normal; }
  .g-accueil { padding: 0 14px; }
  .g-hero { margin: 14px 0 26px; padding: 36px 20px 30px; border-radius: 20px; }
  .g-hero h1 { font-size: 34px; }
  .g-hero p { font-size: 16.5px; }
  .g-recherche--grande input { min-height: 52px; font-size: 16px; }
  .g-rubriques, .g-questions, .g-deux { grid-template-columns: 1fr; }
  .g-hero--peinture { grid-template-columns: 1fr; }
  .g-hero--peinture .g-hero__texte { padding: 26px 18px 28px; }
  .g-hero__peinture { order: -1; min-height: 200px; border-radius: 20px 20px 0 0; background-position: 60% 45%; }
  .g-hero__peinture::before { background: linear-gradient(180deg, rgba(17, 26, 70, 0) 55%, #111a46 100%); }
  .g-lieux { grid-template-columns: 1fr 1fr; }
  .g-aide { grid-template-columns: auto minmax(0, 1fr); padding: 20px; }
  .g-aide .v-actions { grid-column: 1 / -1; }
  .g-aide__portrait { width: 64px; height: 64px; }
  .g-bandeau { aspect-ratio: 16 / 9; border-radius: 16px; }
  .g-aide .v-actions { flex-wrap: wrap; }
  .g-titre-section { margin: 30px 0 12px; }
  .g-titre-section h2 { font-size: 24px; }
}

/* ---------- La table des types : dix-huit colonnes qui tiennent dans l'article ---------- */
.g-types table { font-size: 12px; table-layout: fixed; }
.g-types th, .g-types td { padding: 5px 2px; text-align: center; border-bottom: 1px solid var(--v-bord); }
.g-types thead th:first-child { width: 72px; font-size: 10px; letter-spacing: 0.04em; text-align: left; }
.g-types .g-t__tete { height: 78px; vertical-align: bottom; padding-bottom: 6px; }
.g-types .g-t__tete span { display: inline-block; writing-mode: vertical-rl; transform: rotate(180deg); font: 700 10.5px/1 var(--v-sans); letter-spacing: 0.04em; text-transform: uppercase; color: var(--v-or); }
.g-types .g-t__ligne { text-align: left; font: 700 10.5px/1.2 var(--v-sans); letter-spacing: 0.04em; text-transform: uppercase; color: var(--v-or); background: rgba(12, 18, 46, 0.6); white-space: nowrap; }
.g-types .g-t { font-family: var(--v-pixel); font-weight: 600; font-size: 12px; }
.g-types .g-t--1 { color: rgba(143, 152, 196, 0.45); }
.g-types .g-t--fort { background: rgba(143, 217, 154, 0.16); color: #8fd99a; }
.g-types .g-t--faible { background: rgba(255, 138, 85, 0.14); color: #ff8a55; }
.g-types .g-t--peu { background: rgba(143, 180, 255, 0.14); color: #8fb4ff; }
.g-types tbody tr:hover td, .g-types tbody tr:hover th { filter: brightness(1.25); }
@media (max-width: 900px) {
  .g-types table { table-layout: auto; }
  .g-types .g-t__tete { height: 70px; }
}

/* Une lecture au calme : des lignes mesurées, des repères et des contrôles accessibles. */
:root { --g-large: 1540px; --g-nav: 250px; --g-toc: 210px; --g-texte: 18px; }
body.guide { line-height: 1.8; color: #e2e7f5; }
body.guide h2, body.guide h3 { font-family: var(--v-sans); letter-spacing: -.025em; line-height: 1.35; }
body.guide h2 { font-size: 26px; margin: 44px 0 18px; }
body.guide h3 { font-size: 20px; margin: 30px 0 12px; }
body.guide a:focus-visible, body.guide summary:focus-visible, body.guide input:focus-visible { outline: 3px solid #ffdc83; outline-offset: 4px; }
body.guide [hidden] { display: none !important; }
.g-evitement { position: fixed; top: -120px; left: 20px; z-index: 100; background: #172545; border: 2px solid #ffdc83; padding: 10px 18px; }
.g-evitement:focus { top: 12px; }
.g-page { gap: 30px; padding-top: 32px; }
.g-article { width: 100%; max-width: 850px; padding: 32px 38px; border: 1px solid rgba(181, 198, 237, .13); border-radius: 20px; background: #10192d; }
.g-article h1 { text-wrap: balance; line-height: 1.15; }
.g-article > p, .g-article > ul, .g-article > ol { max-width: 72ch; }
.g-article > ul, .g-article > ol { padding-left: 24px; margin: 18px 0 28px; }
.g-article li { margin-bottom: 10px; padding-left: 3px; }
.g-article li::marker { color: #ddbf76; }
.g-article .s-fil { line-height: 1.55; font-size: 13px; margin-bottom: 24px; color: #abb9d4; }
.g-chapeau { color: #c2cee4; font-size: 19px; line-height: 1.7; padding-bottom: 26px; border-bottom: 1px solid rgba(181, 198, 237, .14); }
.g-article h2:first-of-type { color: #f1d89e; }
.g-meta { font-size: 12px; line-height: 1.6; margin: 18px 0 24px; }
.g-meta .g-ok { color: #b4c9b8; }
.g-sommaire { top: 88px; }
.g-nav summary { padding: 12px 8px; }
.g-nav li a { line-height: 1.55; padding: 8px 10px; color: #bdc9e0; }
.g-toc { top: 94px; line-height: 1.6; }
.g-toc--haut { display: none; }
.g-toc .g-toc__sub a { padding-left: 24px; font-size: 12px; }
.g-toc li a { padding: 8px 12px; color: #bdc9e0; font-size: 13px; }
.g-encart { background: #17243b; border-color: rgba(221, 191, 118, .26); line-height: 1.75; }
.g-encart p:last-child { margin-bottom: 0; }
.g-article .s-table { max-width: 100%; overflow: auto; margin: 26px 0 32px; border: 1px solid rgba(181, 198, 237, .18); border-radius: 12px; scrollbar-width: thin; }
.g-article .s-table table { width: 100%; font-size: 14px; line-height: 1.6; border-collapse: collapse; }
.g-article .s-table th { padding: 14px; background: #1d2b43; color: #f3db9f; position: static; text-align: left; }
.g-article .s-table td { padding: 14px; vertical-align: top; border-bottom: 1px solid rgba(181, 198, 237, .12); }
.g-article .s-table tr:nth-child(even) { background: rgba(181, 198, 237, .035); }
.g-article .s-table td:first-child { white-space: normal; min-width: 140px; }
.g-article .s-table td:nth-child(2) { min-width: 180px; }
.g-article .s-table .g-objet { white-space: normal; }
.g-article .g-types table { min-width: 650px; font-size: 12px; }
.g-article .g-types th, .g-article .g-types td { padding: 7px 3px; min-width: 25px !important; }
.g-article .g-types th:first-child { min-width: 72px !important; }
.g-resultats:not([hidden]) { display: block; }
.g-resultats { max-height: min(65vh, 620px); overflow-y: auto; overscroll-behavior: contain; border-radius: 14px; }
.g-resultats a { grid-template-columns: minmax(0, 1fr); padding: 12px; }
.g-resultats a b { font-size: 16px; }
.g-resultats a small { line-height: 1.55; margin-top: 4px; }
.g-resultats__vide { padding: 14px; margin: 0 !important; font-size: 15px; }
.g-recrutement { margin: 30px 0; padding: 24px; border: 1px solid #6d785f; border-radius: 16px; background: #182d2e; }
.g-recrutement > p { font-size: 15px; line-height: 1.7; color: #d1e2d9; }
.g-recrutement .g-recrutement__titre { color: #eef5dd; font-size: 21px; font-weight: 700; margin-bottom: 6px; }
.g-video { display: block; width: 100%; height: auto; margin: 24px 0; border-radius: 14px; border: 1px solid #6d785f; background: #0f1d1e; }
.g-recrutement ol { list-style: none; margin: 20px 0; padding: 0; display: grid; gap: 10px; }
.g-recrutement li { display: grid; grid-template-columns: 38px minmax(0,1fr) auto; gap: 12px; align-items: center; padding: 12px; margin: 0; border-radius: 10px; background: rgba(255,255,255,.045); font-size: 15px; line-height: 1.5; }
.g-recrutement li img { image-rendering: pixelated; object-fit: contain; }
.g-recrutement li b { color: #f3d397; font-size: 23px; }
.g-recrutement__trait { font-size: 12px; font-weight: 700; color: #e6d79e; text-align: center; }
.g-recrutement .g-recrutement__resultat { color: #f3d397; font-weight: 700; font-size: 20px; padding-top: 16px; border-top: 1px solid rgba(211,226,217,.2); }
.g-recrutement summary { cursor: pointer; color: #e6d79e; font-size: 15px; padding: 8px 0; }
.g-recrutement details p { font-size: 15px; margin-top: 14px; }
.g-barre__dedans { grid-template-columns: auto minmax(0, 1fr) auto auto; }
.g-barre .langues--barre { gap: 8px; font-size: 12px; }
.g-hero { border-color: rgba(221, 191, 118, .27); }
.g-hero__texte h1 { text-wrap: balance; }
.g-hero__texte > p { color: #c2cee4; line-height: 1.75; }
.g-hero--peinture .g-hero__texte { padding: 48px 36px; }
.g-rubriques { gap: 22px; }
.g-rubrique-carte { background: #10192d; border-color: rgba(181, 198, 237, .18); }
.g-rubrique-carte__image { height: 126px; }
.g-rubrique-carte__image--mosaique { display: flex; align-items: center; justify-content: center; gap: 12px; padding: 16px; }
.g-rubrique-carte__image img.g-mosaique { position: static !important; width: 44px; height: 44px; transform: none !important; filter: none; }
.g-rubrique-carte__corps { padding: 12px 22px 22px; }
.g-rubrique-carte__corps h3 { font-family: var(--v-sans); font-size: 21px; letter-spacing: -.02em; }
.g-rubrique-carte__corps > p { line-height: 1.7; color: #bdc9e0; margin: 12px 0 18px; }
.g-rubrique-carte__liens { display: grid; gap: 0; }
.g-rubrique-carte__liens a { display: block; padding: 9px 0; border-radius: 0; border-bottom: 1px solid rgba(181, 198, 237, .12); font-size: 14px; background: transparent; color: #d7e2f6; }
.g-rubrique-carte__liens a:hover { background: transparent; color: #ffdc83; }
.g-rubrique-carte__liens a::before { content: '›'; display: inline-block; margin-right: 10px; color: #ddbf76; }
.g-rubrique-carte__corps .g-rubrique-carte__n { margin-bottom: 0; color: #9baecc; }
.g-lieux li a { min-height: 140px; }
.g-lieux li span { line-height: 1.35; font-size: 19px; }
.g-voir-aussi { grid-template-columns: 1fr; }
.g-voir-aussi a { line-height: 1.6; }
.g-voir-aussi li { margin-bottom: 0; }
.g-titre-section h2 { font-family: var(--v-sans); font-size: 28px; }
.g-pied-article { margin-top: 36px; }
@media (min-width: 1181px) and (max-width: 1350px) { :root { --g-nav: 215px; --g-toc: 175px; } .g-page { gap: 20px; } .g-article { padding: 28px; } }
@media (max-width: 1180px) { .g-page { grid-template-columns: 230px minmax(0, 1fr); } .g-page > aside { display: none; } .g-article { padding: 28px; } .g-toc--haut { display: block; } .g-barre .langues--barre svg { display: none; } }
@media (max-width: 900px) {
  :root { --g-texte: 17px; }
  .g-page { grid-template-columns: minmax(0, 1fr); padding: 16px 12px 0; gap: 16px; }
  .g-article { padding: 26px 20px; border-radius: 16px; }
  .g-barre__dedans { grid-template-columns: auto minmax(0, 1fr) auto; }
  .g-barre .langues--barre { display: flex; grid-column: 1 / -1; justify-content: center; padding-bottom: 3px; gap: 22px; }
  .g-barre .v-bouton { grid-column: 3; grid-row: 1; }
  .g-barre__guide { grid-row: 1; }
  .g-barre .g-recherche { grid-row: 1; }
  body.guide h2, body.guide h3 { scroll-margin-top: 140px; }
  .g-hero--peinture .g-hero__texte { padding: 28px 22px; }
  .g-hero__peinture { min-height: 180px; }
  .g-chapeau { font-size: 18px; }
  .g-rubrique-carte__image { height: 130px; }
  .g-article .s-table td, .g-article .s-table th { padding: 10px; }
  .g-lieux li span { font-size: 17px; }
}
@media (max-width: 420px) { .g-article { padding: 24px 16px; } .g-barre__logo img { width: 64px; } .g-barre .v-bouton { padding: 0 10px; } .g-recherche input { padding-left: 34px; } .g-recherche svg.loupe { left: 10px; width: 16px; } .g-lieux { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; } }
@media print { .g-barre, .g-sommaire, .g-page > aside, .g-voir-aussi, .g-pied-article, .v-pied { display: none; } .g-page { display: block; } .g-article { background: white; color: black; border: 0; } body.guide .g-article :is(h1,h2,h3,strong,a) { color: black; } }

/* ======================================================================
 * Lanternes et rubriques (novembre 2026) : une couleur par rubrique,
 * l'accueil sur la peinture avec un écriteau de bois sombre et or, les
 * encadrés en fenêtres de menu à double filet. Jamais de voile sombre :
 * la peinture s'éclaire par le bas.
 * ==================================================================== */
:root {
  --r-debuter: #8fe3a0;
  --r-combe: #ffbf6b;
  --r-donjons: #6fd6e0;
  --r-combat: #ff7f6b;
  --r-pokemon: #ff9fd0;
  --r-objets: #ffd85c;
  --r-artisanat: #b8e986;
  --r-activites: #b79bff;
  --r-communaute: #8fb6ff;
  --r-reference: #c8cde6;
  --g-bois: #2a1d17;
  --g-bois-2: #3b2a20;
  --g-laiton: #c9a24a;
  --g-fenetre: linear-gradient(170deg, rgba(30, 44, 110, 0.62), rgba(14, 21, 58, 0.72));
  --g-filet: 0 0 0 4px rgba(7, 11, 28, 0.9), 0 0 0 5px rgba(160, 190, 255, 0.18), 0 18px 50px rgba(0, 0, 0, 0.3);
}
[data-rubrique] { --c: var(--v-or); }
[data-rubrique="debuter"] { --c: var(--r-debuter); }
[data-rubrique="combe"] { --c: var(--r-combe); }
[data-rubrique="donjons"] { --c: var(--r-donjons); }
[data-rubrique="combat"] { --c: var(--r-combat); }
[data-rubrique="pokemon"] { --c: var(--r-pokemon); }
[data-rubrique="objets"] { --c: var(--r-objets); }
[data-rubrique="artisanat"] { --c: var(--r-artisanat); }
[data-rubrique="activites"] { --c: var(--r-activites); }
[data-rubrique="communaute"] { --c: var(--r-communaute); }
[data-rubrique="reference"] { --c: var(--r-reference); }

/* Le ciel derrière : un halo de lanterne. */
body.guide {
  background:
    radial-gradient(1200px 600px at 78% -10%, rgba(255, 170, 80, 0.13), transparent 60%),
    radial-gradient(900px 700px at -10% 30%, rgba(90, 120, 255, 0.12), transparent 60%),
    linear-gradient(180deg, #0a1030, var(--v-nuit) 900px) var(--v-nuit);
}
body.guide h1, body.guide h2 { font-family: var(--v-pixel); font-weight: 600; letter-spacing: 0.01em; }

/* La barre du haut. */
.g-barre { background: linear-gradient(180deg, rgba(12, 19, 48, 0.94), rgba(12, 19, 48, 0.8)); }
.g-barre__guide span { border-radius: 6px; letter-spacing: 0.14em; }
.g-barre .g-recherche input { border-radius: 12px; background: rgba(255, 255, 255, 0.05); border-color: rgba(170, 185, 255, 0.18); }
.g-barre .v-bouton--or { box-shadow: 0 6px 22px rgba(255, 170, 60, 0.3); }

/* ---------- L'accueil ---------- */
.g-hero--peinture {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: end;
  min-height: 540px;
  margin: 28px 0 40px;
  border: 0;
  border-radius: 28px;
  background: #111a46;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.4);
}
.g-hero__peinture { position: absolute; inset: 0; min-height: 0; border-radius: inherit; background-position: center 30%; }
.g-hero__peinture::before { background: radial-gradient(900px 380px at 18% 112%, rgba(255, 190, 110, 0.32), transparent 70%); mix-blend-mode: screen; }
.g-hero__peinture small { right: 18px; bottom: 14px; padding: 3px 10px; border-radius: 999px; background: rgba(10, 14, 30, 0.45); color: #fff; backdrop-filter: blur(6px); }
.g-hero--peinture .g-hero__texte {
  position: relative;
  z-index: 2;
  max-width: 660px;
  margin: 36px;
  padding: 30px 34px 28px;
  border: 2px solid var(--g-laiton);
  border-radius: 14px;
  background: linear-gradient(180deg, var(--g-bois-2), var(--g-bois));
  box-shadow: 0 0 0 5px rgba(42, 29, 23, 0.85), 0 0 0 6px rgba(201, 162, 74, 0.4), 0 24px 60px rgba(0, 0, 0, 0.45);
}
.g-hero__texte::before, .g-hero__texte::after { content: ''; position: absolute; top: 13px; width: 9px; height: 9px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #ffe9a8, #a77c2a); }
.g-hero__texte::before { left: 13px; }
.g-hero__texte::after { right: 13px; }
.g-hero--peinture h1 { font-size: 50px; line-height: 1.04; color: #fff6dc; text-shadow: 0 3px 0 #5a3a12; }
.g-hero--peinture .g-hero__texte > p { margin: 12px 0 20px; color: #ecdcc0; font-size: 17.5px; line-height: 1.6; }
.g-hero--peinture .g-recherche input { border-color: rgba(201, 162, 74, 0.45); background: rgba(0, 0, 0, 0.28); }
.g-hero--peinture .g-recherche input::placeholder { color: #cdb894; }
.g-hero--peinture .g-puces li span { color: #cdb894; }
.g-hero--peinture .g-puces a { min-height: 30px; border-color: rgba(201, 162, 74, 0.4); background: rgba(255, 216, 92, 0.08); color: #f3e3c3; font-weight: 600; font-size: 13.5px; }
.g-hero--peinture .g-puces a:hover { background: rgba(255, 216, 92, 0.18); color: #fff; }

.g-titre-section { justify-content: flex-start; align-items: center; }
body.guide .g-titre-section h2 { font-family: var(--v-pixel); font-size: 30px; }
.g-titre-section::after { content: ''; flex: 1; height: 1px; background: linear-gradient(90deg, rgba(255, 216, 92, 0.38), transparent); }

/* Les rubriques : quatre colonnes, les deux premières en grand. */
.g-rubriques { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px; }
.g-rubrique-carte:nth-child(-n + 2) { grid-column: span 2; }
.g-rubrique-carte {
  border: 1px solid var(--v-bord);
  background: linear-gradient(180deg, rgba(25, 36, 92, 0.7), rgba(13, 19, 52, 0.85));
}
.g-rubrique-carte:hover { transform: translateY(-4px); border-color: color-mix(in srgb, var(--c) 60%, transparent); box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35), 0 0 40px color-mix(in srgb, var(--c) 16%, transparent); }
.g-rubrique-carte__image { height: 150px; }
.g-rubrique-carte__image::after { inset: auto 0 0; height: 3px; background: var(--c); box-shadow: 0 0 18px var(--c); }
.g-rubrique-carte__image--mosaique { background: radial-gradient(circle at 50% 60%, color-mix(in srgb, var(--c) 28%, transparent), transparent 70%), #131c45; }
.g-rubrique-carte__image--mosaique { flex-wrap: wrap; align-content: center; gap: 8px 10px; overflow: hidden; }
.g-rubrique-carte__image img.g-mosaique { width: 50px; height: 50px; filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.5)); }
.g-rubrique-carte__corps { padding: 16px 20px 18px; display: flex; flex-direction: column; flex: 1; }
body.guide .g-rubrique-carte__corps h3 { display: flex; align-items: center; gap: 10px; font: 600 22px/1.2 var(--v-pixel); letter-spacing: 0.01em; }
.g-rubrique-carte__corps h3::before { content: ''; flex: none; width: 10px; height: 10px; border-radius: 3px; background: var(--c); box-shadow: 0 0 10px var(--c); }
.g-rubrique-carte__corps > p { margin: 8px 0 14px; font-size: 15px; line-height: 1.55; color: var(--v-doux); }
.g-rubrique-carte__liens { display: flex; flex-wrap: wrap; gap: 6px; }
.g-rubrique-carte__liens a { display: inline-block; padding: 3px 10px; border: 0; border-radius: 8px; background: rgba(255, 255, 255, 0.06); color: var(--v-texte); font-size: 13px; font-weight: 600; }
.g-rubrique-carte__liens a::before { content: none; }
.g-rubrique-carte__liens a:hover { background: color-mix(in srgb, var(--c) 18%, transparent); color: #fff; }
.g-rubrique-carte__corps .g-rubrique-carte__n { margin-top: auto; padding-top: 14px; color: var(--c); font-weight: 700; font-size: 13px; }

.g-lieux a, .g-questions a, .g-liste-carte, .g-voir-aussi a, .g-prec-suiv a {
  border: 2px solid rgba(160, 190, 255, 0.28);
  background: var(--g-fenetre);
  box-shadow: var(--g-filet);
}
.g-lieux a:hover, .g-questions a:hover, .g-voir-aussi a:hover, .g-prec-suiv a:hover { border-color: rgba(255, 216, 92, 0.55); }
body.guide .g-liste-carte h2, body.guide .g-aide h2 { font-family: var(--v-pixel); }
.g-aide { border: 2px solid rgba(255, 216, 92, 0.35); box-shadow: var(--g-filet); }

/* ---------- Les pages ---------- */
.g-nav details > summary .g-nav__ico { background: color-mix(in srgb, var(--c) 18%, transparent); color: var(--c); border: 1px solid color-mix(in srgb, var(--c) 45%, transparent); }
.g-nav details[open] > summary { background: color-mix(in srgb, var(--c) 9%, transparent); }
.g-nav details > ul { border-left: 2px solid color-mix(in srgb, var(--c) 32%, transparent); }
.g-nav li a[aria-current] { color: #1a0f08; background: var(--c); border-left-color: var(--c); font-weight: 700; }

.g-article { padding: 8px 0 0; border: 0; border-radius: 0; background: none; }
.g-article .s-fil { color: var(--v-pale); font-weight: 600; }
.g-article .s-fil a:nth-of-type(3) { color: var(--c); }
.g-article h1 { font-size: 56px; line-height: 1.02; }
.g-meta { font-size: 13px; font-weight: 600; }
.g-meta .g-rubrique { padding: 4px 12px; border: 1px solid color-mix(in srgb, var(--c) 45%, transparent); background: color-mix(in srgb, var(--c) 16%, transparent); color: var(--c); font-weight: 700; }
.g-meta .g-ok, .g-meta > span:last-child { padding: 4px 11px; border-radius: 999px; background: rgba(255, 255, 255, 0.06); }
.g-meta .g-ok { color: #b9e8c2; }
.g-bandeau { border: 0; border-radius: 20px; box-shadow: 0 18px 50px rgba(0, 0, 0, 0.35); }
.g-bandeau figcaption { left: 16px; right: auto; bottom: 14px; padding: 4px 12px; border-radius: 999px; background: rgba(10, 14, 30, 0.5); color: #fff; font-weight: 600; font-size: 13px; backdrop-filter: blur(6px); }
.g-chapeau { color: #f4f6ff; font-size: 20px; line-height: 1.6; border-bottom: 0; padding-bottom: 0; margin-bottom: 28px; }

body.guide .g-article h2 { font-size: 30px; margin: 46px 0 16px; color: #fff; display: flex; align-items: baseline; gap: 12px; }
body.guide .g-article h2::before { content: '#'; color: color-mix(in srgb, var(--c) 75%, transparent); font-size: 0.8em; }
body.guide .g-article h3 { color: var(--c); }

/* « En bref » : une fenêtre de menu. */
.g-bref { padding: 22px 26px 20px; border: 2px solid rgba(160, 190, 255, 0.35); border-radius: 16px; background: var(--g-fenetre); box-shadow: var(--g-filet); }
body.guide .g-bref h2 { margin: 0 0 14px; font-size: 18px; color: var(--v-or); letter-spacing: 0.04em; text-transform: none; }
body.guide .g-bref h2::before { content: ''; align-self: center; width: 0; height: 0; border-left: 9px solid var(--v-or); border-top: 6px solid transparent; border-bottom: 6px solid transparent; }
.g-bref dl > div { border-left-color: color-mix(in srgb, var(--c) 55%, transparent); }
/* Le « ## En bref » des pages et sa liste : le haut et le bas d'une même fenêtre. */
body.guide .g-article h2.g-bref__titre { margin: 34px 0 0; padding: 20px 26px 6px; font-size: 18px; color: var(--v-or); border: 2px solid rgba(160, 190, 255, 0.35); border-bottom: 0; border-radius: 16px 16px 0 0; background: rgba(30, 44, 110, 0.62); box-shadow: 0 0 0 4px rgba(7, 11, 28, 0.9), 0 0 0 5px rgba(160, 190, 255, 0.18); clip-path: inset(-6px -6px 0 -6px); }
body.guide .g-article h2.g-bref__titre::before { content: ''; align-self: center; width: 0; height: 0; border-left: 9px solid var(--v-or); border-top: 6px solid transparent; border-bottom: 6px solid transparent; }
.g-article > h2.g-bref__titre + ul { max-width: none; margin: 0 0 36px; padding: 6px 26px 16px 46px; border: 2px solid rgba(160, 190, 255, 0.35); border-top: 0; border-radius: 0 0 16px 16px; background: linear-gradient(180deg, rgba(30, 44, 110, 0.62), rgba(14, 21, 58, 0.72)); box-shadow: 0 0 0 4px rgba(7, 11, 28, 0.9), 0 0 0 5px rgba(160, 190, 255, 0.18), 0 18px 50px rgba(0, 0, 0, 0.3); clip-path: inset(0 -6px -60px -6px); }
.g-article > h2.g-bref__titre + ul li { color: var(--v-texte); }
.g-article > h2.g-bref__titre + ul li::marker { color: var(--c); }

.g-encart { border-width: 1px; border-radius: 16px; background: linear-gradient(90deg, rgba(255, 216, 92, 0.12), rgba(255, 216, 92, 0.03)); border-color: rgba(255, 216, 92, 0.3); }
.g-encart--attention { background: linear-gradient(90deg, rgba(255, 138, 85, 0.13), rgba(255, 138, 85, 0.03)); border-color: rgba(255, 138, 85, 0.35); }
.g-encart--note { background: linear-gradient(90deg, rgba(143, 180, 255, 0.13), rgba(143, 180, 255, 0.03)); border-color: rgba(143, 180, 255, 0.35); }
.g-encart__ico { width: 40px; height: 40px; border-radius: 12px; }
.g-encart b.g-encart__titre { font: 600 16px var(--v-pixel); letter-spacing: 0.04em; color: var(--v-or); }
.g-encart--attention b.g-encart__titre { color: #ff8a55; }
.g-encart--note b.g-encart__titre { color: #8fb4ff; }

.g-article .s-table { border: 2px solid rgba(160, 190, 255, 0.22); border-radius: 16px; background: rgba(14, 21, 58, 0.6); }
.g-article .s-table th { background: rgba(30, 44, 110, 0.7); color: var(--v-or); font-size: 12.5px; letter-spacing: 0.08em; text-transform: uppercase; }
.g-video { border: 0; border-radius: 18px; box-shadow: 0 18px 50px rgba(0, 0, 0, 0.35); }
.g-prec-suiv a { padding: 18px 22px; font: 600 20px/1.25 var(--v-pixel); }
.g-prec-suiv a small { margin-bottom: 4px; font: 800 12.5px/1.4 var(--v-sans); }

/* Le plan de page : le titre lu s'allume, une barre dit où on en est. */
.g-page:has(.g-article[data-rubrique="debuter"]) .g-toc { --c: var(--r-debuter); }
.g-page:has(.g-article[data-rubrique="combe"]) .g-toc { --c: var(--r-combe); }
.g-page:has(.g-article[data-rubrique="donjons"]) .g-toc { --c: var(--r-donjons); }
.g-page:has(.g-article[data-rubrique="combat"]) .g-toc { --c: var(--r-combat); }
.g-page:has(.g-article[data-rubrique="pokemon"]) .g-toc { --c: var(--r-pokemon); }
.g-page:has(.g-article[data-rubrique="objets"]) .g-toc { --c: var(--r-objets); }
.g-page:has(.g-article[data-rubrique="artisanat"]) .g-toc { --c: var(--r-artisanat); }
.g-page:has(.g-article[data-rubrique="activites"]) .g-toc { --c: var(--r-activites); }
.g-page:has(.g-article[data-rubrique="communaute"]) .g-toc { --c: var(--r-communaute); }
.g-page:has(.g-article[data-rubrique="reference"]) .g-toc { --c: var(--r-reference); }
.g-page > aside { align-self: stretch; }
.g-toc li a.actif { color: #fff; border-left-color: var(--c, var(--v-or)); }
.g-article > .g-voir-aussi { grid-template-columns: repeat(3, minmax(0, 1fr)); max-width: none; padding: 0; }
.g-voir-aussi small { color: var(--v-pale); }
.g-toc--fin::after { content: ''; display: block; height: 6px; margin-top: 18px; border-radius: 999px; background: linear-gradient(90deg, var(--c, var(--v-or)), var(--v-or)) 0 0 / calc(var(--lu, 0) * 100%) 100% no-repeat, rgba(255, 255, 255, 0.08); }

@media (max-width: 1180px) {
  .g-rubriques { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .g-hero--peinture { min-height: 0; margin: 14px 0 26px; padding: 0; border-radius: 20px; }
  .g-bandeau figcaption { right: 12px; left: 12px; bottom: 10px; border-radius: 12px; }
  .g-hero__peinture { position: relative; inset: auto; order: -1; min-height: 190px; border-radius: 20px 20px 0 0; }
  .g-hero--peinture .g-hero__texte { max-width: none; margin: 0; padding: 24px 20px; border-width: 2px 0 0; border-radius: 0 0 20px 20px; box-shadow: none; }
  .g-hero--peinture h1 { font-size: 34px; }
  .g-rubriques { grid-template-columns: 1fr; }
  .g-rubrique-carte:nth-child(-n + 2) { grid-column: auto; }
  .g-article > .g-voir-aussi { grid-template-columns: 1fr; }
  .g-article { padding: 0; }
  .g-article h1 { font-size: 38px; }
  body.guide .g-article h2 { font-size: 25px; }
}
@media print { body.guide { background: white; } .g-bref, .g-encart, .g-article .s-table { box-shadow: none; background: white; } }

/* Bande-annonce de l'accueil : elle joue dans la partie droite de la peinture, à côté de l'écriteau,
   et se fond dans la peinture par son bord gauche. Sur téléphone, elle prend toute la peinture. */
.g-hero__peinture::before { z-index: 1; }
.g-hero__video { position: absolute; top: 0; right: 0; width: calc(100% - min(720px, 46%)); height: 100%; object-fit: cover; border-radius: 0 28px 28px 0; opacity: 0; transition: opacity .6s ease; -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%); mask-image: linear-gradient(90deg, transparent, #000 10%); }
@media (max-width: 900px) { .g-hero__video { left: 0; width: 100%; border-radius: inherit; -webkit-mask-image: none; mask-image: none; } }
.g-hero__video.joue { opacity: 1; }
.g-hero__son { position: absolute; z-index: 2; right: 14px; bottom: 12px; display: grid; place-items: center; width: 40px; height: 40px; padding: 0; border: 1px solid rgba(233, 169, 58, .55); border-radius: 50%; background: rgba(17, 26, 70, .62); color: #ffd77a; cursor: pointer; transition: background .2s, transform .2s; }
.g-hero__son:hover, .g-hero__son:focus-visible { background: rgba(233, 169, 58, .9); color: #2a1a08; transform: scale(1.06); }
.g-hero__son svg { width: 22px; height: 22px; }
.g-hero__son[aria-pressed="false"] .g-hero__son-onde, .g-hero__son[aria-pressed="true"] .g-hero__son-coupe { display: none; }
