@charset "UTF-8";
/*
 * Le guide du jeu (maquette) : 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; }
}
