@charset "UTF-8";
/*
 * La présentation du jeu : sous l'écran titre de index.html (.vitrine), et les
 * pages du site qui l'accompagnent (guide, Pokémon de départ, nouveautés), que
 * scripts/site-pages.mjs écrit dans dist/ à la construction.
 *
 * Nuit profonde et or, comme l'écran de chargement. La police pixel ne sert
 * qu'aux titres courts : les chiffres et le texte courant restent dans une
 * police nette, lisible à toutes les tailles. Après une retouche ici, relever
 * le ?v= des pages qui le chargent (index.html et site-pages.mjs).
 */

/* Les chiffres de la police pixel se lisent mal (5 et S, 2 et Z) : dans la même famille, les chiffres
   seuls viennent de Nunito (licence OFL, réduite aux chiffres). Deux graisses, calées sur celles du texte. */
@font-face {
  font-family: 'Pixelify Sans';
  src: url('../fonts/PixelifySans.ttf') format('truetype');
  font-weight: 400 599;
  font-display: swap;
}
@font-face {
  font-family: 'Pixelify Sans';
  src: url('../fonts/PixelifySans.ttf') format('truetype');
  font-weight: 600 700;
  font-display: swap;
}
@font-face {
  font-family: 'Pixelify Sans';
  src: url('../fonts/Nunito-SemiBold-chiffres.woff2') format('woff2');
  font-weight: 400 599;
  font-display: swap;
  unicode-range: U+0030-0039;
}
@font-face {
  font-family: 'Pixelify Sans';
  src: url('../fonts/Nunito-ExtraBold-chiffres.woff2') format('woff2');
  font-weight: 600 700;
  font-display: swap;
  unicode-range: U+0030-0039;
}

:root {
  --v-nuit: #060a18;
  --v-nuit-2: #0b1230;
  --v-nuit-3: #111a40;
  --v-carte: linear-gradient(160deg, rgba(34, 48, 108, 0.55), rgba(16, 24, 60, 0.55));
  --v-bord: rgba(160, 180, 255, 0.14);
  --v-bord-or: rgba(255, 216, 92, 0.32);
  --v-or: #ffd85c;
  --v-or-2: #ff9a3c;
  --v-texte: #e6eaff;
  --v-doux: #bcc5ea;
  --v-pale: #8f98c4;
  --v-lien: #a9c8ff;
  --v-large: 1120px;
  --v-sans: 'Segoe UI', system-ui, -apple-system, Roboto, 'Helvetica Neue', Arial, sans-serif;
  --v-pixel: 'Pixelify Sans', 'Trebuchet MS', sans-serif;
}

.vitrine,
.site-page {
  color: var(--v-texte);
  font: 16px/1.7 var(--v-sans);
  -webkit-font-smoothing: antialiased;
}

.vitrine *,
.site-page * {
  box-sizing: border-box;
}

.vitrine a,
.site-page a {
  color: var(--v-lien);
  text-underline-offset: 3px;
}

.vitrine h1,
.vitrine h2,
.vitrine h3,
.site-page h1,
.site-page h2,
.site-page h3 {
  margin: 0 0 0.5em;
  font-family: var(--v-pixel);
  font-weight: 600;
  line-height: 1.18;
  letter-spacing: 0.01em;
  text-wrap: balance;
}

.vitrine h1,
.site-page h1 {
  font-size: clamp(32px, 5.6vw, 58px);
  background: linear-gradient(#fff8d6, var(--v-or) 55%, var(--v-or-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 4px 14px rgba(0, 0, 0, 0.55));
}

.vitrine h2,
.site-page h2 {
  font-size: clamp(26px, 3.6vw, 38px);
  color: #fff;
}

.vitrine h3,
.site-page h3 {
  font-size: 19px;
  color: #fff;
}

.vitrine p,
.site-page p {
  margin: 0 0 1em;
}

.vitrine strong,
.site-page strong {
  color: #fff;
  font-weight: 600;
}

/* ——— La présentation sous le jeu ——— */

.vitrine {
  position: relative;
  overflow: hidden;
  padding: 0 16px;
  background: var(--v-nuit);
}

/* Un liseré doré marque la frontière entre le jeu et la présentation. */
.vitrine::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 2;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(255, 216, 92, 0.8) 30%, rgba(255, 216, 92, 0.8) 70%, transparent);
}

.v-entete,
.v-bloc,
.v-pied {
  position: relative;
  max-width: var(--v-large);
  margin: 0 auto;
}

/* L'en-tête, sur l'illustration de l'écran de chargement qui s'éteint dans la nuit. */
.v-entete {
  padding: clamp(64px, 10vw, 120px) 0 0;
  text-align: center;
}

.v-entete__decor {
  position: absolute;
  top: 0;
  left: 50%;
  z-index: 0;
  width: 100vw;
  height: 100%;
  transform: translateX(-50%);
  background:
    linear-gradient(180deg, rgba(6, 10, 24, 0.55) 0%, rgba(6, 10, 24, 0.82) 45%, var(--v-nuit) 88%),
    radial-gradient(ellipse 70% 60% at 50% 30%, rgba(60, 90, 200, 0.25), transparent 70%),
    url('../ui/fond-chargement.webp?v=2') 60% 45% / cover no-repeat;
  opacity: 0.95;
}

.v-entete__corps,
.v-atouts {
  position: relative;
  z-index: 1;
}

.v-surtitre {
  display: inline-block;
  margin: 0 0 18px !important;
  padding: 6px 16px;
  border: 1px solid var(--v-bord-or);
  border-radius: 999px;
  background: rgba(255, 216, 92, 0.08);
  color: var(--v-or);
  font: 600 12.5px/1.4 var(--v-sans);
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.v-chapeau {
  max-width: 780px;
  margin: 0 auto 32px !important;
  color: var(--v-doux);
  font-size: clamp(16px, 1.9vw, 19px);
  line-height: 1.7;
}

.v-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.v-bouton {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 52px;
  padding: 0 26px;
  border: 2px solid rgba(255, 216, 92, 0.5);
  border-radius: 999px;
  color: var(--v-or) !important;
  font: 600 18px/1 var(--v-pixel);
  letter-spacing: 0.03em;
  text-decoration: none;
  background: rgba(8, 12, 32, 0.55);
  transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.v-bouton svg {
  width: 20px;
  height: 20px;
}

.v-bouton:hover,
.v-bouton:focus-visible {
  background: rgba(255, 216, 92, 0.14);
  transform: translateY(-2px);
}

.v-bouton--or {
  border-color: transparent;
  color: #2a1600 !important;
  background: linear-gradient(#ffe68a, var(--v-or) 45%, var(--v-or-2));
  box-shadow: 0 8px 28px rgba(255, 170, 60, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.v-bouton--or:hover,
.v-bouton--or:focus-visible {
  background: linear-gradient(#fff0b0, #ffe070 45%, #ffab52);
  box-shadow: 0 10px 34px rgba(255, 170, 60, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

/* Les chiffres : une police nette, grande, dorée ; jamais la police pixel, qui brouille 3, 8 et 13. */
.v-atouts {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  margin: clamp(48px, 7vw, 80px) 0 0;
  padding: 0;
  border: 1px solid var(--v-bord);
  border-radius: 20px;
  background: rgba(12, 18, 46, 0.72);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
  list-style: none;
  overflow: hidden;
}

.v-atouts li {
  display: grid;
  align-content: center;
  gap: 6px;
  padding: 22px 12px;
  text-align: center;
}

.v-atouts li + li {
  border-left: 1px solid var(--v-bord);
}

.v-atouts b {
  color: var(--v-or);
  font: 800 clamp(30px, 3.4vw, 40px)/1 var(--v-sans);
  font-variant-numeric: lining-nums tabular-nums;
  letter-spacing: -0.01em;
  background: linear-gradient(#fff3c4, var(--v-or) 50%, #ffb347);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.v-atouts span {
  color: var(--v-doux);
  font-size: 13.5px;
  line-height: 1.35;
}

/* ——— Les sections ——— */

.v-bloc {
  padding: clamp(64px, 9vw, 110px) 0 0;
}

.v-bloc > p {
  max-width: 820px;
  color: var(--v-doux);
  font-size: 17px;
}

/* La petite étiquette dorée au-dessus de chaque titre. */
.v-rubrique {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 10px !important;
  color: var(--v-or) !important;
  font: 700 13px/1 var(--v-sans) !important;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.v-rubrique::before {
  content: '';
  width: 10px;
  height: 10px;
  transform: rotate(45deg);
  background: linear-gradient(135deg, #fff3c4, var(--v-or-2));
  box-shadow: 0 0 10px rgba(255, 200, 80, 0.6);
}

.v-bloc h2 {
  margin-bottom: 24px;
}

/* La galerie : une grande image, quatre petites à côté. */
.v-galerie {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.v-galerie__une {
  grid-column: span 2;
  grid-row: span 2;
}

.v-galerie figure {
  position: relative;
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--v-bord);
  border-radius: 16px;
  background: #000;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.4);
}

.v-galerie img {
  display: block;
  width: 100%;
  height: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.v-galerie figure:hover img {
  transform: scale(1.03);
}

.v-galerie figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 28px 14px 10px;
  color: #fff;
  font-size: 13.5px;
  line-height: 1.4;
  background: linear-gradient(transparent, rgba(4, 7, 20, 0.88));
}

.v-galerie__une figcaption {
  padding: 40px 18px 14px;
  font-size: 15px;
}

/* L'histoire, à côté de la carte de la Combe. */
.v-histoire {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  align-items: center;
  gap: clamp(28px, 5vw, 64px);
}

.v-histoire__texte > p {
  color: var(--v-doux);
  font-size: 17px;
}

.v-reperes {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 22px 0;
}

.v-reperes div {
  flex: 1 1 110px;
  padding: 14px 16px;
  border: 1px solid var(--v-bord);
  border-radius: 14px;
  background: var(--v-carte);
}

.v-reperes dt {
  color: var(--v-or);
  font: 800 26px/1.1 var(--v-sans);
}

.v-reperes dd {
  margin: 4px 0 0;
  color: var(--v-doux);
  font-size: 14px;
}

.v-discret {
  color: var(--v-pale) !important;
  font-size: 15px !important;
}

.v-histoire__carte {
  margin: 0;
  padding: 10px;
  border: 1px solid var(--v-bord-or);
  border-radius: 18px;
  background: linear-gradient(160deg, rgba(255, 216, 92, 0.12), rgba(255, 216, 92, 0.02));
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
  transform: rotate(0.8deg);
}

.v-histoire__carte img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 10px;
}

.v-histoire__carte figcaption {
  padding: 10px 6px 2px;
  color: var(--v-pale);
  font-size: 13px;
  text-align: center;
}

/* Les cartes du programme, chacune avec son Pokémon. */
.v-cartes {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.v-cartes article {
  position: relative;
  padding: 22px 20px 6px;
  border: 1px solid var(--v-bord);
  border-radius: 18px;
  background: var(--v-carte);
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.v-cartes article:hover {
  transform: translateY(-3px);
  border-color: var(--v-bord-or);
}

.v-cartes img {
  display: block;
  width: 56px;
  height: 56px;
  margin-bottom: 14px;
  border: 2px solid var(--v-bord-or);
  border-radius: 14px;
  background: #1b2552;
  image-rendering: pixelated;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.35);
}

.v-cartes h3 {
  font-size: 18px;
}

.v-cartes p {
  color: var(--v-doux);
  font-size: 14.5px;
  line-height: 1.6;
}

/* Les 31 Pokémon de départ. */
.v-portraits {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(58px, 1fr));
  gap: 10px;
  margin: 10px 0 20px;
  padding: 0;
  list-style: none;
}

.v-portraits img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  border: 2px solid rgba(255, 216, 92, 0.3);
  border-radius: 12px;
  background: #1b2552;
  image-rendering: pixelated;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.v-portraits img:hover {
  transform: translateY(-3px) scale(1.06);
  border-color: var(--v-or);
}

.v-lien {
  font-weight: 600;
}

.v-lien a {
  color: var(--v-or);
  text-decoration: none;
}

.v-lien a:hover {
  text-decoration: underline;
}

/* La foire aux questions. */
.v-faq details {
  max-width: 880px;
  margin-bottom: 10px;
  border: 1px solid var(--v-bord);
  border-radius: 16px;
  background: var(--v-carte);
  transition: border-color 0.2s ease;
}

.v-faq details[open] {
  border-color: var(--v-bord-or);
}

.v-faq summary {
  position: relative;
  padding: 18px 56px 18px 22px;
  color: #fff;
  font-size: 16.5px;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}

.v-faq summary::-webkit-details-marker {
  display: none;
}

.v-faq summary::after {
  content: '';
  position: absolute;
  right: 24px;
  top: 50%;
  width: 9px;
  height: 9px;
  border-right: 2.5px solid var(--v-or);
  border-bottom: 2.5px solid var(--v-or);
  transform: translateY(-70%) rotate(45deg);
  transition: transform 0.2s ease;
}

.v-faq details[open] summary::after {
  transform: translateY(-30%) rotate(-135deg);
}

.v-faq details p {
  margin: 0;
  padding: 0 22px 20px;
  color: var(--v-doux);
}

/* L'appel final, sur l'illustration de l'écran titre. */
.v-fin {
  margin-top: clamp(64px, 9vw, 110px);
  padding: clamp(48px, 7vw, 80px) 24px;
  overflow: hidden;
  border: 1px solid var(--v-bord-or);
  border-radius: 24px;
  text-align: center;
}

.v-fin__decor {
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    linear-gradient(rgba(6, 10, 24, 0.72), rgba(6, 10, 24, 0.86)),
    url('../ui/title-wallpaper.jpeg') 50% 40% / cover no-repeat;
}

.v-fin > :not(.v-fin__decor) {
  position: relative;
  z-index: 1;
}

.v-fin > p {
  margin-inline: auto;
  color: var(--v-doux);
  font-size: 17px;
}

.v-fin .v-actions {
  margin-top: 24px;
}

.v-en {
  padding-top: 56px;
  opacity: 0.8;
}

.v-en h2 {
  margin-bottom: 10px;
  font-size: 20px;
}

.v-en p {
  font-size: 15px !important;
}

/* Le pied de page : un liseré doré, le logo, des liens en pastilles bien visibles, la mention légale lisible. */
.v-pied {
  margin-top: 64px;
  padding: 36px 0 48px;
  color: var(--v-doux);
  font-size: 14px;
  text-align: center;
}

.v-pied::before {
  content: '';
  display: block;
  height: 1px;
  margin-bottom: 32px;
  background: linear-gradient(90deg, transparent, rgba(255, 216, 92, 0.55) 25%, rgba(255, 216, 92, 0.55) 75%, transparent);
}

.v-pied__logo {
  display: block;
  width: 150px;
  height: auto;
  margin: 0 auto 22px;
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.5));
}

.v-pied nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-bottom: 24px;
}

.v-pied nav a {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0 20px;
  border: 1px solid var(--v-bord-or);
  border-radius: 999px;
  background: rgba(255, 216, 92, 0.06);
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.v-pied nav a:hover,
.v-pied nav a:focus-visible {
  border-color: var(--v-or);
  background: rgba(255, 216, 92, 0.16);
  color: var(--v-or);
}

.v-pied nav a.v-pied__discord {
  border-color: transparent;
  background: #5865f2;
}

.v-pied nav a.v-pied__discord:hover,
.v-pied nav a.v-pied__discord:focus-visible {
  background: #6d78f5;
  color: #fff;
}

.v-pied p {
  max-width: 780px;
  margin-inline: auto;
  color: var(--v-doux);
  font-size: 14px;
  line-height: 1.7;
}

/* ——— Écrans moyens et petits ——— */

@media (max-width: 960px) {
  .v-atouts {
    grid-template-columns: repeat(3, 1fr);
  }

  .v-atouts li:nth-child(4) {
    border-left: 0;
  }

  .v-atouts li:nth-child(n + 4) {
    border-top: 1px solid var(--v-bord);
  }

  .v-cartes {
    grid-template-columns: repeat(2, 1fr);
  }

  .v-galerie {
    grid-template-columns: repeat(2, 1fr);
  }

  .v-histoire {
    grid-template-columns: 1fr;
  }

  .v-histoire__carte {
    transform: none;
  }
}

@media (max-width: 560px) {
  .v-atouts {
    grid-template-columns: repeat(2, 1fr);
  }

  .v-atouts li:nth-child(n) {
    border-left: 0;
    border-top: 1px solid var(--v-bord);
  }

  .v-atouts li:nth-child(-n + 2) {
    border-top: 0;
  }

  .v-atouts li:nth-child(even) {
    border-left: 1px solid var(--v-bord);
  }

  .v-cartes,
  .v-galerie {
    grid-template-columns: 1fr;
  }

  .v-galerie__une {
    grid-column: auto;
    grid-row: auto;
  }

  .v-bouton {
    width: 100%;
    justify-content: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  .v-bouton,
  .v-galerie img,
  .v-cartes article,
  .v-portraits img {
    transition: none;
  }
}

/* ——— Les pages du site (guide, Pokémon, nouveautés) ——— */

html:has(body.site-page) {
  background: var(--v-nuit);
}

body.site-page {
  min-height: 100vh;
  margin: 0;
  background:
    radial-gradient(ellipse 80% 30% at 50% 0%, rgba(62, 88, 190, 0.3), transparent 70%),
    linear-gradient(var(--v-nuit-2), var(--v-nuit) 60%);
}

.s-barre {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  max-width: var(--v-large);
  margin: 0 auto;
  padding: 14px 16px;
}

.s-barre img {
  display: block;
  width: 120px;
  height: auto;
}

.s-barre .v-bouton {
  min-height: 42px;
  padding: 0 18px;
  font-size: 15px;
}

.s-contenu {
  max-width: 860px;
  margin: 0 auto;
  padding: 24px 16px 0;
}

.s-contenu > p,
.s-contenu li {
  color: var(--v-doux);
}

.s-contenu h2 {
  margin-top: 1.6em;
}

.s-contenu ul,
.s-contenu ol {
  padding-left: 1.3em;
}

.s-contenu li {
  margin-bottom: 0.5em;
}

.s-fil {
  margin: 0 0 18px;
  color: var(--v-pale);
  font-size: 14px;
}

.s-fil a {
  color: var(--v-pale);
}

.s-starters {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 12px;
  margin: 0 0 12px;
  padding: 0;
  list-style: none;
}

.s-starters li {
  display: grid;
  justify-items: center;
  gap: 4px;
  margin: 0;
  padding: 16px 10px 12px;
  border: 1px solid var(--v-bord);
  border-radius: 14px;
  background: var(--v-carte);
  text-align: center;
}

.s-starters img {
  width: 80px;
  height: 80px;
  border-radius: 12px;
  background: #1b2552;
  image-rendering: pixelated;
}

.s-starters b {
  color: #fff;
  font: 600 18px/1.2 'Pixelify Sans', 'Trebuchet MS', sans-serif;
}

.s-starters small {
  color: var(--v-pale);
  font-size: 13px;
}

.s-type {
  display: inline-block;
  margin: 2px;
  padding: 1px 9px;
  border-radius: 999px;
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  background: var(--type, #6b7394);
}

.s-note {
  padding: 14px 18px;
  border: 1px solid rgba(255, 216, 92, 0.3);
  border-radius: 14px;
  background: rgba(255, 216, 92, 0.06);
  color: var(--v-doux);
}

.s-maj {
  margin: 0 0 18px;
  padding: 18px 20px 6px;
  border: 1px solid var(--v-bord);
  border-radius: 16px;
  background: var(--v-carte);
}

.s-maj h2 {
  margin-top: 0 !important;
  font-size: 22px;
}

.s-maj time {
  display: block;
  margin-bottom: 4px;
  color: var(--v-pale);
  font-size: 13px;
}

.s-maj ul {
  padding-left: 0;
  list-style: none;
}

.s-maj li::before {
  content: '+ ';
  color: #a6efb1;
  font-weight: 700;
}

.s-maj li.retire::before {
  content: '– ';
  color: #ff8a80;
}

.s-maj li strong {
  color: #fff;
}

@media (prefers-reduced-motion: reduce) {
  .v-bouton {
    transition: none;
  }
}

.s-table {
  overflow-x: auto;
  margin: 0 0 18px;
  border: 1px solid var(--v-bord);
  border-radius: 16px;
}

.s-table table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
}

.s-table th,
.s-table td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--v-bord);
  text-align: left;
  vertical-align: top;
}

.s-table th {
  color: var(--v-or);
  font: 700 13px/1.3 var(--v-sans);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: rgba(12, 18, 46, 0.8);
}

.s-table tr:last-child td {
  border-bottom: 0;
}

.s-table td {
  color: var(--v-doux);
}

.s-table small {
  color: var(--v-pale);
  font-size: 13px;
}

.site-page .v-pied {
  padding-inline: 16px;
}

.s-captures {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 8px;
  margin: 0 0 14px;
}

.s-captures img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--v-bord);
  border-radius: 10px;
}

/* Le scénario caché : une bande qui se découvre au survol ou au toucher, des images derrière un clic. */
.s-spoiler {
  padding: 0 3px;
  border-radius: 4px;
  background: #22284a;
  color: transparent;
  cursor: pointer;
  transition: color 0.2s ease, background 0.2s ease;
}

.s-spoiler strong {
  color: transparent;
}

.s-spoiler:hover,
.s-spoiler:focus,
.s-spoiler:hover strong,
.s-spoiler:focus strong {
  background: rgba(255, 216, 92, 0.08);
  color: var(--v-doux);
  outline: none;
}

.s-avert {
  padding: 8px 12px;
  border-left: 3px solid var(--v-or);
  border-radius: 6px;
  background: rgba(255, 216, 92, 0.06);
  color: var(--v-doux);
  font-size: 14px;
}

.s-spoil {
  margin: 0 0 14px;
}

.s-spoil summary {
  cursor: pointer;
  color: var(--v-or);
  font-weight: 600;
}

.s-spoil[open] summary {
  margin-bottom: 10px;
}

/* Le choix de la langue : une pastille fixe en haut à droite, les deux langues écrites chacune dans la sienne. */
.langues {
  position: fixed;
  top: max(14px, env(safe-area-inset-top));
  right: max(14px, env(safe-area-inset-right));
  z-index: 40;
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 5px 6px 5px 12px;
  border: 2px solid rgba(255, 216, 92, 0.7);
  border-radius: 999px;
  background: rgba(8, 12, 32, 0.8);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.45);
  font: 600 15px/1 var(--v-pixel);
  letter-spacing: 0.03em;
  transition: opacity 0.3s ease;
}
.langues svg { width: 18px; height: 18px; margin-right: 6px; color: var(--v-or); flex: none; }
.langues a {
  padding: 7px 11px;
  border-radius: 999px;
  color: var(--v-doux);
  text-decoration: none;
  white-space: nowrap;
}
.langues a:hover, .langues a:focus-visible { color: #fff; background: rgba(255, 216, 92, 0.16); outline: none; }
.langues a[aria-current] { color: #1b1203; background: var(--v-or); }
.langues a[aria-current]:hover { color: #1b1203; background: #ffe27a; }
@media (max-width: 560px) {
  .langues { font-size: 13px; padding: 4px 5px 4px 9px; }
  .langues a { padding: 6px 9px; }
}
/* Dans l'en-tête des pages du site, la pastille prend sa place à côté du bouton « Jouer ». */
.langues--barre { position: static; margin-left: auto; box-shadow: none; }
.s-barre .langues--barre .v-bouton { min-height: 0; }
