/* Site public (D66 ; direction visuelle D74.2, public-site.md « Trailers par défaut, direction visuelle (18k) » ;
   exceptions du PL en 18q, D80). Mêmes couleurs que la vitrine (redland-site/public/style.css), dont le premier écran de
   l'accueil reste l'élément fort : ces règles n'y changent que le menu, l'image et le pied. Sous lui, tout est calme :
   casse de phrase, images à leur vrai format, angles nets. Exceptions voulues par le PL (D80) : Germania One pour le
   menu, Barlow Condensed pour les titres, Source Sans 3 pour le texte (18r, D81.1) ; blocs centrés ou alternés ; liens rouges ; bouton
   Discord de la vitrine, en pastille ronde. Polices citées par leur nom à empreinte (remplacé au chargement,
   packages/public-site/src/assets.ts), licences OFL servies à côté (/site/OFL-<police>.txt). */
@font-face {
  font-family: "Poppins";
  font-weight: 400;
  font-display: swap;
  src: url("poppins-400.7d93459d86.woff2") format("woff2");
}

@font-face {
  font-family: "Poppins";
  font-weight: 600;
  font-display: swap;
  src: url("poppins-600.f4e80d9dfd.woff2") format("woff2");
}

@font-face {
  font-family: "Germania One";
  font-weight: 400;
  font-display: swap;
  src: url("germania-one-400.d68fcab8c2.woff2") format("woff2");
}

@font-face {
  font-family: "Barlow Condensed";
  font-weight: 600;
  font-display: swap;
  src: url("barlow-condensed-600.215a93c696.woff2") format("woff2");
}

@font-face {
  font-family: "Source Sans 3";
  font-weight: 400;
  font-display: swap;
  src: url("source-sans-3-400.0f73f35e08.woff2") format("woff2");
}

@font-face {
  font-family: "Source Sans 3";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("source-sans-3-400-italic.3c230c0342.woff2") format("woff2");
}

@font-face {
  font-family: "Source Sans 3";
  font-weight: 700;
  font-display: swap;
  src: url("source-sans-3-700.ae35266f2a.woff2") format("woff2");
}

/* Palette (D74, lecture 2) et mesure du texte. */
:root {
  --bg: #000;
  --ink: #f2efe8;
  --muted: #adaaa4;
  --gold: #c8a04a;
  --line: #33322f;
  /* Liens du texte (D80, lecture 13) : le rouge de la bannière du PL, à 5,0:1 sur le noir. */
  --link: #f80000;
  --measure: 68ch;
  /* Bouton Discord (D80.4) : la couleur officielle de la vitrine ; texte blanc à 4,6:1. */
  --discord: #5865f2;
  --discord-hover: #4752c4;
  /* Polices (D81.1, lecture 15) : texte, titres, menu et boutons ; Poppins pour les commandes de la vitrine. */
  --font-text: "Source Sans 3", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-title: "Barlow Condensed", "Arial Narrow", system-ui, sans-serif;
  --font-menu: "Germania One", Georgia, serif;
  --font-ui: "Poppins", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-text);
  font-size: 16px;
  line-height: 1.6;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  margin: 0;
  background: var(--bg);
}

@supports (min-height: 100dvh) {
  body {
    min-height: 100dvh;
  }
}

a {
  color: var(--ink);
  text-underline-offset: 3px;
}

a:hover {
  color: #fff;
}

a:focus-visible,
button:focus-visible,
summary:focus-visible,
select:focus-visible,
input:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

/* Liens du contenu : le rouge, souligné (D80, lecture 13 ; l'or avant, D74, lecture 4). */
.rich a,
.text-link {
  color: var(--link);
  text-decoration-thickness: 1px;
}

.rich a:hover,
.text-link:hover {
  color: var(--ink);
}

/* Titres en Barlow Condensed 600 (D81.1, lecture 15). */
h1,
h2,
h3,
.wordmark {
  font-family: var(--font-title);
  font-weight: 600;
}

/* Bouton Discord (D80.4, lecture 19) : celui de la vitrine (.discord de /style.css), sans déplacement au survol. */
.discord-button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 12px 22px;
  border-radius: 999px;
  background: var(--discord);
  color: #fff;
  /* Germania One, comme le menu (D81.1, lecture 15). */
  font-family: var(--font-menu);
  font-size: 19px;
  font-weight: 400;
  line-height: 1.2;
  text-decoration: none;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.35);
}

.discord-button:hover {
  background: var(--discord-hover);
  color: #fff;
}

.discord-button img {
  width: 26px;
  height: auto;
  filter: brightness(0) invert(1);
}

/* Version réduite de l'en-tête (D80, lecture 20). */
.discord-button-small {
  gap: 8px;
  min-height: 32px;
  padding: 6px 14px;
  font-size: 17px;
  box-shadow: none;
}

.discord-button-small img {
  width: 18px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* --- En-tête, menu, pied ------------------------------------------------------------------------------------------ */

.site-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 32px;
  padding: max(16px, env(safe-area-inset-top)) max(24px, env(safe-area-inset-right)) 16px
    max(24px, env(safe-area-inset-left));
  border-bottom: 1px solid var(--line);
}

.wordmark {
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
}

.site-nav ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav-wide {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 24px;
}

/* Menu en Germania One, agrandie de 35 % (D81.1, lecture 15) : ses entrées et le bouton « Menu » ; le lien de la
   musique garde la police de son bloc (.music-credit .music-link.trailer). */
.site-nav a {
  display: inline-block;
  padding: 6px 0;
  color: var(--muted);
  font-family: var(--font-menu);
  font-size: 23px;
  text-decoration: none;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--ink);
}

.site-nav a[aria-current="page"] {
  text-decoration: underline;
  text-decoration-color: var(--gold);
  text-decoration-thickness: 2px;
  text-underline-offset: 8px;
}

.nav-compact {
  display: none;
}

.nav-compact summary {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 4px;
  font-family: var(--font-menu);
  font-size: 23px;
  cursor: pointer;
  list-style: none;
}

.nav-compact summary::-webkit-details-marker {
  display: none;
}

.nav-compact ul {
  position: absolute;
  z-index: 20;
  margin-top: 8px;
  padding: 8px 16px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--bg);
}

.nav-compact a {
  display: block;
  min-width: 180px;
  padding: 10px 0;
}

/* Menu replié de l'en-tête, posé à droite : le panneau s'ouvre vers la gauche, dans l'écran (18m). */
.site-header .nav-compact {
  position: relative;
}

.site-header .nav-panel {
  right: 0;
  max-width: calc(100vw - 32px);
}

.header-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 20px;
}

@media (max-width: 860px) {
  .nav-wide,
  .header-actions .discord-button {
    display: none;
  }

  .nav-compact {
    display: block;
  }
}

/* Son des pages autres que l'accueil : la commande de la vitrine (/main.js), sans pastille hors de la vidéo. */
.site-header .corner {
  display: flex;
}

.site-header #sound-controls {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 40px;
  padding: 0 12px 0 0;
  border: 1px solid var(--line);
  border-radius: 4px;
}

.site-header #sound-controls:hover,
.site-header #sound-controls:focus-within {
  border-color: var(--muted);
}

.site-header #sound {
  display: inline-flex;
  align-self: stretch;
  align-items: center;
  padding: 8px 8px 8px 12px;
  border: 0;
  background: none;
  color: inherit;
  font-family: inherit;
  font-size: 15px;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
}

.site-header #sound .icon {
  display: none;
}

.site-header #volume {
  width: 72px;
  margin: 0;
  accent-color: var(--ink);
  cursor: pointer;
}

.site-header #volume[hidden] {
  display: none;
}

.site-header #sound-controls:has(#volume[hidden]) {
  padding-right: 4px;
}

.site-header #sound-controls.off #volume {
  opacity: 0.5;
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  padding: 24px max(24px, env(safe-area-inset-right)) max(24px, env(safe-area-inset-bottom))
    max(24px, env(safe-area-inset-left));
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
}

.site-footer .copyright {
  margin: 0;
}

.site-footer a {
  color: var(--muted);
}

/* Aperçu dans /app (18c) : bandeau, jamais sur le site public. */
.preview-banner {
  position: sticky;
  top: 0;
  z-index: 10;
  margin: 0;
  padding: 8px 24px;
  background: var(--gold);
  color: #000;
  font-size: 15px;
  font-weight: 600;
}

.preview-note {
  max-width: var(--measure);
  padding: 12px 16px;
  border-left: 2px solid var(--gold);
  color: var(--muted);
}

/* Image du premier écran dans l'aperçu de Home (D80.1, lecture 7) : à son format, comme sur la vidéo. */
.preview-first-screen {
  margin: 24px 0 0;
}

.preview-first-screen img {
  display: block;
  max-width: min(100%, 1040px);
  max-height: 56vh;
  width: auto;
  height: auto;
}

/* --- Pages : mesure, échelle (13, 15, 16, 20, 28, 40), boutons --------------------------------------------------- */

.site-main {
  flex: 1;
  width: 100%;
  max-width: 760px;
  margin: 0 auto;
  padding: 48px max(24px, env(safe-area-inset-right)) 64px max(24px, env(safe-area-inset-left));
}

.site-main-wide {
  max-width: 1120px;
}

.prose h1 {
  max-width: var(--measure);
  margin: 0 0 32px;
  font-size: clamp(28px, 5vw, 40px);
  font-weight: 600;
  line-height: 1.15;
}

/* Intertitres des sections (D83.1, lecture 1) : 25 px, 22 px sur téléphone, sous le titre de page (40 px, 28 px). */
.prose h2 {
  max-width: var(--measure);
  margin: 48px 0 16px;
  font-size: 25px;
  font-weight: 600;
  line-height: 1.2;
}

@media (max-width: 560px) {
  .prose h2 {
    font-size: 22px;
  }
}

.prose h3 {
  margin: 32px 0 8px;
  font-size: 16px;
  font-weight: 600;
}

.prose p,
.prose li {
  max-width: var(--measure);
}

.prose ul {
  padding-left: 20px;
}

.prose li + li {
  margin-top: 8px;
}

.prose strong {
  font-weight: 600;
}

.prose code {
  font-family: inherit;
}

.muted,
.line .label {
  color: var(--muted);
}

.rich {
  max-width: var(--measure);
  margin-top: 16px;
}

.lead {
  font-size: 20px;
  line-height: 1.5;
}

.mention {
  font-weight: 600;
}

/* Boutons du contenu : angles nets ; l'action principale en or. Survol : une couleur, jamais un déplacement. */
.pill {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid var(--muted);
  border-radius: 4px;
  background: none;
  color: var(--ink);
  /* Boutons en Germania One (D81.1, lecture 15). */
  font-family: var(--font-menu);
  font-size: 19px;
  font-weight: 400;
  text-decoration: none;
  cursor: pointer;
}

.pill:hover {
  border-color: var(--ink);
  color: var(--ink);
}

.pill-gold {
  border-color: var(--gold);
  background: var(--gold);
  color: #000;
}

.pill-gold:hover {
  border-color: var(--ink);
  background: var(--ink);
  color: #000;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 16px;
  margin: 24px 0 0;
}

/* Faits d'une page (jeu, statut, cadre ; mentions légales ; coordonnées) : une liste, pas des pastilles. */
.facts,
.identity {
  display: grid;
  grid-template-columns: minmax(120px, max-content) 1fr;
  gap: 8px 24px;
  max-width: var(--measure);
  margin: 0;
}

.facts dt,
.identity dt {
  color: var(--muted);
}

.facts dd,
.identity dd {
  margin: 0;
  overflow-wrap: anywhere;
}

@media (max-width: 560px) {
  .facts,
  .identity {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .facts dd + dt,
  .identity dd + dt {
    margin-top: 12px;
  }
}

.message p {
  max-width: var(--measure);
}

/* --- Pages de la section Website (18c, D69) ------------------------------------------------------------------------ */

.page-section + .page-section {
  margin-top: 16px;
}

.picture {
  margin: 24px 0;
}

.picture img,
.gallery img {
  display: block;
  width: 100%;
  height: auto;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin: 24px 0;
  padding: 0;
  list-style: none;
}

.gallery-link {
  display: block;
}

/* Page projet : grand visuel non recadré, logo et nom, faits, résumé, actions. */
.project-head {
  margin-bottom: 32px;
}

.project-hero {
  margin: 0 0 32px;
}

.project-hero img {
  display: block;
  width: 100%;
  height: auto;
}

.project-title {
  display: grid;
  gap: 16px;
}

.project-title h1 {
  margin: 0;
}

.project-logo {
  display: block;
  width: auto;
  max-width: 160px;
  max-height: 120px;
}

/* Logo à gauche du nom et des faits, entier dans un carré de 168 px ; nom et faits centrés en hauteur à côté (D80,
   lecture 14). Téléphone : le logo au-dessus, 96 px. */
.project-identity {
  display: grid;
  grid-template-columns: 168px minmax(0, 1fr);
  gap: 16px 32px;
  align-items: center;
}

.project-identity-plain {
  grid-template-columns: minmax(0, 1fr);
}

.project-identity-text {
  display: grid;
  gap: 16px;
}

.project-identity .project-logo {
  width: 168px;
  height: 168px;
  max-width: none;
  max-height: none;
  object-fit: contain;
}

/* Ligne Game : le logo du jeu (D80, lecture 11). */
.game-logo {
  display: block;
  width: auto;
  height: 28px;
}

@media (max-width: 560px) {
  .project-identity {
    grid-template-columns: minmax(0, 1fr);
  }

  .project-identity .project-logo {
    width: 96px;
    height: 96px;
  }
}

/* Catalogue et accueil (D78.2) : entrées l'une sous l'autre, image et texte à parts égales, le côté de l'image
   s'inverse d'une entrée à la suivante ; un filet fin entre les entrées, et d'un groupe de jeu à l'autre. */
.catalogue-group + .catalogue-group {
  margin-top: 40px;
  padding-top: 40px;
  border-top: 1px solid var(--line);
}

/* Intertitre d'un groupe : le logo du jeu, 48 px de haut (D80, lecture 11). Règle limitée à lui : le nom d'un mod (h3)
   n'en prend plus la marge basse, et se centre sur son logo (lecture 10). */
.catalogue-group .catalogue-game {
  display: flex;
  align-items: center;
  gap: 24px;
  margin: 0 0 32px;
  line-height: 0;
}

/* Le logo du jeu, puis un filet jusqu'au bord (D81.1, lecture 11). */
.catalogue-game::after {
  flex: 1;
  border-top: 1px solid var(--line);
  content: "";
}

.catalogue-game img {
  display: block;
  width: auto;
  height: 48px;
}

.project-cards {
  margin: 0;
  padding: 0;
  list-style: none;
}

/* Image toujours à gauche, sur un tiers (D81.1, lecture 11 ; fin de l'alternance de D78.2). */
.project-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
  gap: 16px 40px;
  align-items: start;
}

/* Toute la largeur de la page (D78.2, lecture 2) : pas la mesure des listes de texte. */
.prose .project-card {
  max-width: none;
}

/* Sans image ni cadre : le texte sur toute la largeur. */
.project-card-plain {
  grid-template-columns: minmax(0, 1fr);
}

.project-card + .project-card {
  margin-top: 40px;
  padding-top: 40px;
  border-top: 1px solid var(--line);
}

.project-card-image {
  display: block;
  width: 100%;
  height: auto;
}

.project-card-body {
  display: grid;
  gap: 8px;
  align-content: start;
}

/* Logo sur la ligne du nom (D78.2, lecture 3). */
.project-card-title {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Nom : 28 px, la taille affichée jusqu'en 18p (D80, lecture 10), sans marge, centré sur le logo de sa ligne. */
.project-card-title .project-card-name {
  min-width: 0;
  margin: 0;
  font-size: 28px;
  font-weight: 600;
  line-height: 1.3;
}

.project-card-featured .project-card-name {
  font-size: 28px;
}

.project-card-name a {
  color: var(--ink);
  text-decoration: none;
}

.project-card-name a:hover {
  text-decoration: underline;
}

/* Statut en pastille et cadre sur une ligne (lecture 11). */
.project-card-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 16px;
  margin: 0;
  color: var(--muted);
  font-size: 15px;
}

/* Pastilles de statut (lecture 12) : chaque texte à 4,5:1 au moins sur son fond. */
.status-pill {
  padding: 2px 10px;
  border-radius: 4px;
  background: #2b2b2b;
  color: #d6d3cc;
  font-size: 14px;
  font-weight: 700;
}

.status-in_development {
  background: #3a2e12;
  color: #f0c060;
}

.status-released {
  background: #18311f;
  color: #9fe0a8;
}

.status-beta_testing {
  background: #142a40;
  color: #9cc8f5;
}

.project-card-summary {
  margin: 0;
}

/* Téléphone : une colonne, l'image au-dessus du texte pour toutes les entrées. */
@media (max-width: 760px) {
  .project-card {
    grid-template-columns: minmax(0, 1fr);
  }

  .catalogue-game img {
    height: 36px;
  }
}

/* Sections alternées de Join us, The Collective et des pages projet (D80, lecture 9) : le titre et le texte en un
   bloc de 640 px, à gauche puis à droite ; texte aligné à gauche ; images, galerie, trailer et membres sur toute la
   largeur ; une colonne sur téléphone. */
.section-text {
  max-width: 640px;
}

.section-right .section-text {
  margin-left: auto;
}

@media (max-width: 760px) {
  .section-right .section-text {
    margin-left: 0;
  }
}

/* Images à côté du texte (D83.2, lectures 4 à 8) : du côté opposé au texte (640 px), dans une colonne de 384 px (220 au
   moins), 48 px entre eux ; texte d’abord dans le code. La colonne prend la hauteur du texte (images hors du flux,
   200 px au moins et 720 px au plus par image, 16 px entre deux, en haut si le texte est plus long) ; image entière,
   centrée dans sa part, sans fond, bord ni ombre. Téléphone : sous le texte, pleine largeur, 420 px au plus. */
.section-row {
  display: grid;
  grid-template-columns: minmax(0, 640px) minmax(220px, 1fr);
  column-gap: 48px;
  /* La marge haute de l’intertitre passe à la ligne : le haut des images est celui du titre. */
  margin-top: 48px;
}

.page-opening > .section-row {
  margin-top: 0;
}

.section-row > .section-text {
  grid-row: 1;
  grid-column: 1;
  max-width: none;
  margin-left: 0;
}

.section-row > .section-text > :first-child,
.section-row > .section-text > .rich:first-child > :first-child {
  margin-top: 0;
}

.section-row > .section-text > :last-child,
.section-row > .section-text > .rich:last-child > :last-child {
  margin-bottom: 0;
}

.section-beside {
  position: relative;
  grid-row: 1;
  grid-column: 2;
  min-height: 200px;
}

.section-right > .section-row {
  grid-template-columns: minmax(220px, 1fr) minmax(0, 640px);
}

.section-right > .section-row > .section-text {
  grid-column: 2;
}

.section-right .section-beside {
  grid-column: 1;
}

.section-beside-2 {
  min-height: 416px;
}

.section-beside-inner {
  position: absolute;
  top: 0;
  left: 0;
  display: grid;
  grid-template-rows: minmax(0, 1fr);
  gap: 16px;
  width: 100%;
  height: 100%;
  max-height: 720px;
}

.section-beside-2 .section-beside-inner {
  grid-template-rows: repeat(2, minmax(0, 1fr));
  max-height: 1456px;
}

.beside-picture {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: contain;
  object-position: center;
  border: 0;
  background: none;
  box-shadow: none;
}

@media (max-width: 760px) {
  .section-row,
  .section-right > .section-row {
    display: block;
  }

  .section-beside,
  .section-beside-2 {
    min-height: 0;
    margin-top: 24px;
  }

  .section-beside-inner {
    position: static;
    display: flex;
    flex-direction: column;
    height: auto;
    max-height: none;
  }

  .beside-picture {
    height: auto;
    max-height: 420px;
  }
}

/* Bannière d'une page commune (D78.3) : hors de la colonne de texte, jusqu'à 1120 px, centrée ; l'image à son vrai
   format, jamais agrandie ni recadrée, 480 px de haut au plus ; vide : un cadre au format 4:1. */
.page-banner {
  position: relative;
  left: 50%;
  width: min(1120px, calc(100vw - 48px));
  margin: 0 0 40px;
  transform: translateX(-50%);
}

.page-banner img {
  display: block;
  max-width: 100%;
  max-height: 480px;
  width: auto;
  height: auto;
  margin: 0 auto;
}

/* Who we are : profils de l'équipe (D69.5), une liste séparée par des filets. */
.team {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr));
  gap: 0 32px;
  /* Sa largeur d'avant la 18q, sur une page passée à 1120 px (D80, lecture 9). */
  max-width: 712px;
  margin: 24px 0;
  padding: 0;
  list-style: none;
}

/* Entrée (D77.2) : l'image carrée mène, le texte à côté ; sans image, l'initiale dans un cadre à filet. */
.team-card {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  align-items: start;
  gap: 16px;
  padding: 20px 0;
  border-top: 1px solid var(--line);
}

.team-picture {
  display: block;
  width: 96px;
  height: 96px;
  object-fit: cover;
}

.team-initial {
  display: grid;
  place-items: center;
  box-sizing: border-box;
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 32px;
  font-weight: 600;
}

.team-text {
  display: grid;
  gap: 4px;
}

.team-description {
  font-size: 15px;
}

.team-name {
  font-weight: 600;
}

.team-specialty,
.team-discord {
  color: var(--muted);
  font-size: 15px;
}

.team-links {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 16px;
  font-size: 15px;
}

/* Trailers : vignettes vers YouTube (lien sortant, la musique se coupe). */
.trailer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 32px 24px;
  margin: 24px 0;
  padding: 0;
  list-style: none;
}

.trailer-grid .trailer {
  display: grid;
  gap: 8px;
  color: var(--ink);
  text-decoration: none;
}

.trailer-thumb img {
  display: block;
  width: 100%;
  height: auto;
}

.trailer-caption {
  display: grid;
}

.trailer-project {
  color: var(--muted);
  font-size: 15px;
}

.trailer-grid .trailer:hover .trailer-title {
  text-decoration: underline;
}

/* Trailer d'une page projet : vignette et lien en un bloc, comme sur la page Trailers (D75, lecture 2). */
.project-trailer {
  max-width: 560px;
  margin: 24px 0;
}

.project-trailer .trailer {
  display: grid;
  gap: 8px;
  color: var(--ink);
  text-decoration: none;
}

.project-trailer .trailer:hover .trailer-title {
  text-decoration: underline;
}

.project-trailer img {
  display: block;
  width: 100%;
  height: auto;
}

/* Cadres des cases d'image vides (D75.1) : un filet et le nom de la case, à son format ; ni fond, ni image, ni
   mouvement. Cachés des lecteurs d'écran ; le réglage Show empty picture frames les retire. */
.frame {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 1px solid var(--line);
}

.frame-square {
  width: 96px;
  aspect-ratio: 1;
}

.frame-banner {
  aspect-ratio: 4 / 1;
}

.frame-label {
  position: absolute;
  top: 12px;
  right: 12px;
  left: 12px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.3;
}

/* Les listes d'images et de cartes ne prennent ni le retrait ni l'espacement des listes de texte (.prose ul). */
.prose .gallery,
.prose .team,
.prose .trailer-grid,
.prose .project-cards,
.prose .concept-cards {
  padding-left: 0;
}

.prose .gallery li + li,
.prose .team li + li,
.prose .trailer-grid li + li,
.prose .concept-cards li + li {
  margin-top: 0;
}

/* --- Titre de la musique et lien YouTube (D76.2, lecture 10) : près du son ; dans l'en-tête quand le menu complet
   s'affiche, sinon dans le menu compact, sous les liens. Le lien garde la classe `trailer` de la vitrine (la musique se
   coupe au clic), sans son allure de vignette. ------------------------------------------------------------------- */

.music-credit {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 12px;
  font-size: 13px;
  line-height: 1.4;
}

.music-title {
  color: var(--muted);
}

/* Note et titre dans un bouton (D91, lecture 12) : un clic lance la musique ; à l'allure du texte. */
.music-play {
  min-height: 32px;
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  text-align: inherit;
  cursor: pointer;
}

.music-play:hover .music-title {
  color: var(--ink);
}

.music-play:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

/* Note de musique devant le titre (D82, lecture 9) : couleur du texte, à la taille de la ligne. */
.music-note {
  width: 1.15em;
  height: 1.15em;
  margin-right: 0.35em;
  vertical-align: -0.2em;
}

/* Hors de la vidéo : un lien souligné, comme ceux de l'en-tête (D74.2 : pas de pastille). */
.music-credit .music-link.trailer {
  display: inline-flex;
  align-items: center;
  width: auto;
  min-height: 32px;
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: none;
  color: var(--ink);
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  transform: none;
}

.music-credit .music-link.trailer:hover {
  color: #fff;
  transform: none;
}

.music-credit .music-link.trailer:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

.nav-compact .nav-music .music-credit {
  flex-direction: column;
  align-items: flex-start;
  padding-top: 8px;
  border-top: 1px solid var(--line);
}

@media (max-width: 860px) {
  .header-music {
    display: none;
  }
}

/* Premier écran : sous les commandes du son, sur la vidéo, lisible comme le menu. Plus fixes (D82, lecture 8) : en haut
   à droite du premier écran, elles défilent avec lui comme le menu et ne recouvrent plus rien. */
.home-page .corner {
  position: absolute;
  flex-direction: column;
  align-items: flex-end;
}

.home-page .corner-music {
  justify-content: flex-end;
  max-width: min(480px, calc(100vw - 32px));
  text-align: right;
}

.home-page .corner-music .music-title {
  color: var(--ink);
  text-shadow:
    0 0 10px rgba(0, 0, 0, 0.9),
    0 1px 3px rgba(0, 0, 0, 0.9);
}

/* Sur la vidéo, la note garde le halo du titre. */
.home-page .corner-music .music-note {
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.9));
}

/* Sur la vidéo : la pastille des commandes du son. */
.home-page .corner-music .music-link.trailer {
  padding: 0 12px;
  border: 1px solid rgba(242, 239, 232, 0.35);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.55);
  text-decoration: none;
}

@media (max-width: 640px) {
  /* Place pour le titre sous la pastille du son, au-dessus du logo. */
  .home-page:has(.corner-music) .page {
    padding-top: calc(max(16px, env(safe-area-inset-top)) + 140px);
  }
}

/* Premier écran : la police de la vitrine, sauf le menu (D80, lecture 15). */
.home-page .page,
.home-page .corner {
  font-family: var(--font-ui);
}

/* --- Accueil (18d) : le premier écran vient de la vitrine (/style.css) ; ces règles n'ajoutent que le menu, le projet
   à l'affiche et l'image du premier écran (18q), posés sur la vidéo, puis les parties dessous, sur fond plein. ----- */

.home-page .home-nav {
  position: absolute;
  top: max(16px, env(safe-area-inset-top));
  left: max(16px, env(safe-area-inset-left));
  z-index: 5;
}

.home-page .home-nav .nav-wide a {
  color: var(--ink);
  text-shadow:
    0 0 10px rgba(0, 0, 0, 0.9),
    0 1px 3px rgba(0, 0, 0, 0.9);
}

/* Commande posée sur la vidéo : la pastille de la vitrine. */
.home-page .home-nav .nav-compact summary {
  border-color: rgba(242, 239, 232, 0.35);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.55);
}

.featured-project {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 6px 12px;
  min-height: 44px;
  padding: 8px 18px;
  border: 1px solid var(--gold);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.55);
  color: var(--ink);
  font-size: 15px;
  text-decoration: none;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

/* Capitales espacées du premier écran, comme le titre « Trailers » de la vitrine (D74, lecture 7). */
.featured-label {
  color: var(--gold);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

.featured-status {
  color: var(--muted);
  font-size: 13px;
}

/* Image du premier écran (D80.1, lecture 2) : à son format, jamais agrandie ni recadrée, 1040 px de large et 56 % de la
   hauteur de l'écran au plus ; l'ombre portée du logo de la vitrine. */
.home-page .first-screen-picture {
  display: block;
  width: auto;
  height: auto;
  max-width: min(100%, 1040px);
  max-height: 56vh;
  filter: drop-shadow(0 6px 24px rgba(0, 0, 0, 0.45));
}

/* « Legal notice » à la place du copyright, à sa taille (D80.1, lecture 4). */
.home-page .footer-text .legal {
  font-size: clamp(12px, 1.1vw, 16px);
}

/* Sous le premier écran (D81.1, lectures 1 à 3) : la vidéo reste visible derrière toute la page ; Latest news dans une
   bande assombrie, puis la colonne noire, côtés estompés (exception voulue par le PL à D74.2). */
.home-below {
  position: relative;
  z-index: 1;
  background: transparent;
  line-height: 1.6;
}

/* Colonne noire (D82, lecture 6) : son fond, dans un pseudo-élément, estompé sur ses quatre bords (120 px) par deux
   dégradés en intersection ; marges du haut et du bas à la mesure de l'estompe : aucun texte dessus. */
.home-column {
  position: relative;
  isolation: isolate;
  max-width: 1360px;
  margin: 0 auto;
  padding: 56px 0 120px;
}

.home-column::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--bg);
  -webkit-mask-image:
    linear-gradient(to right, transparent, #000 120px, #000 calc(100% - 120px), transparent),
    linear-gradient(to bottom, transparent, #000 120px, #000 calc(100% - 120px), transparent);
  -webkit-mask-composite: source-in;
  mask-image:
    linear-gradient(to right, transparent, #000 120px, #000 calc(100% - 120px), transparent),
    linear-gradient(to bottom, transparent, #000 120px, #000 calc(100% - 120px), transparent);
  mask-composite: intersect;
}

.home-section {
  max-width: 1120px;
  margin: 0 auto;
  padding: 64px max(24px, env(safe-area-inset-right)) 0 max(24px, env(safe-area-inset-left));
}

/* Titres de section de l'accueil en capitales (D81.1, lecture 13). */
.home-section > h2,
.home-news > h2 {
  margin: 0 0 32px;
  font-size: 40px;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.home-section p {
  max-width: var(--measure);
}

/* Sur l'accueil, le nom d'un mod passe sous le titre de la section. */
.home-section .project-card-title .project-card-name {
  font-size: 28px;
}

.home-intro .mention {
  margin: 0;
  font-size: 22px;
  font-weight: 700;
}

/* Introduction en deux colonnes (lecture 10) : l'encadré à filet rouge à droite. */
.home-intro-split .home-intro-columns {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
  gap: 32px 64px;
  align-items: center;
}

.home-highlight {
  margin-top: 16px;
  padding-left: 24px;
  border-left: 2px solid var(--link);
  font-size: 22px;
  font-weight: 700;
  line-height: 1.4;
}

/* Latest news (lectures 4 à 9) : cartes refaites en HTML, défilement de droite à gauche. */
/* Development updates (D82, lecture 1) : sans fond, la vidéo se voit ; titres lisibles par leur halo, les cartes et les
   boutons gardent leur fond. La dernière annonce, même bande, de même. */
.home-news {
  padding: 64px 0;
  text-align: center;
}

.home-news > h2,
.news-subtitle {
  padding: 0 24px;
  text-shadow:
    0 0 12px rgba(0, 0, 0, 0.95),
    0 1px 3px rgba(0, 0, 0, 0.95);
}

/* Titre et sous-titre de Development updates en Germania One (lecture 2). */
.home-news > h2#home-news-title {
  margin-bottom: 8px;
  font-family: var(--font-menu);
  font-weight: 400;
}

.home-news .news-subtitle {
  max-width: none;
  margin: 0 0 24px;
  font-family: var(--font-menu);
  font-size: 23px;
}

.news-viewport {
  display: flex;
  overflow: hidden;
}

.news-track {
  display: flex;
  flex: none;
  gap: 24px;
  margin: 0;
  padding: 0 12px;
  list-style: none;
  animation: news-scroll 80s linear infinite;
}

@keyframes news-scroll {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-100%);
  }
}

/* Arrêt au survol, au focus et par la case Pause (WCAG 2.2.2). */
.news-viewport:hover .news-track,
.news-viewport:focus-within .news-track,
.news-pause:checked ~ .news-viewport .news-track {
  animation-play-state: paused;
}

.news-pause-label {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin: 0 0 24px;
  padding: 0 18px;
  border: 1px solid rgba(242, 239, 232, 0.35);
  border-radius: 4px;
  background: rgba(0, 0, 0, 0.55);
  font-family: var(--font-menu);
  font-size: 19px;
  cursor: pointer;
}

.news-pause:checked + .news-pause-label {
  border-color: var(--ink);
}

/* Texte du bouton selon l'état (D82, lecture 3) : l'autre texte caché, hors de l'arbre d'accessibilité. */
.news-pause-off,
.news-pause:checked + .news-pause-label .news-pause-on {
  display: none;
}

.news-pause:checked + .news-pause-label .news-pause-off {
  display: inline;
}

.news-pause:focus-visible + .news-pause-label {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

.news-card {
  display: grid;
  flex: none;
  align-content: start;
  gap: 6px;
  width: 340px;
  padding: 16px 18px;
  border-left: 4px solid var(--gold);
  border-radius: 4px;
  background: #1e1f22;
  text-align: left;
}

.news-tone-creation {
  border-left-color: #2f9e57;
}

.news-tone-integration {
  border-left-color: #9a5fd0;
}

.news-tone-blueprint {
  border-left-color: #3d7fe0;
}

.news-tone-quality-assurance {
  border-left-color: #cf711d;
}

.news-tone-bug-fixing {
  border-left-color: #e0473c;
}

.news-image {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 2px;
}

.news-card p {
  margin: 0;
}

.news-title {
  font-weight: 700;
}

.news-asset {
  font-family: var(--font-title);
  font-size: 20px;
  font-weight: 600;
}

.news-line,
.news-progress {
  font-size: 15px;
}

.news-footer {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-size: 13px;
}

/* Logo du projet devant son nom (D82, lecture 4). */
.news-project-logo {
  flex: none;
  width: 20px;
  height: 20px;
  border-radius: 3px;
}

.news-actions {
  justify-content: center;
  margin-top: 32px;
}

/* Bouton rouge du suivi (capture 02 du PL) : texte crème sur le rouge sombre de la bannière, 8:1. */
.pill-red {
  border-color: #7a0e0e;
  background: #7a0e0e;
  color: var(--ink);
}

.pill-red:hover {
  border-color: var(--ink);
  background: #5c0a0a;
  color: var(--ink);
}

/* Dernière annonce du Discord public (D81.2, lecture 7) : sur la vidéo, comme Latest news ; une carte lisible. */
/* Juste après Latest news : une seule bande. */
.home-news + .home-announcement {
  padding-top: 0;
}

.announcement {
  max-width: 760px;
  margin: 0 auto;
  padding: 20px 24px;
  border-left: 4px solid var(--discord);
  border-radius: 4px;
  background: #1e1f22;
  text-align: left;
}

.announcement-meta {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 14px;
}

.announcement-author {
  color: var(--ink);
  font-weight: 700;
}

.announcement-image {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 0 0 12px;
  border-radius: 2px;
}

.announcement-text p {
  margin: 0 0 12px;
}

/* Liens sur le fond de la carte : un rouge plus clair, à 5,9:1 (le rouge du site n'y aurait que 4,2:1). */
.announcement-text .text-link {
  color: #ff6b6b;
}

.announcement-heading {
  font-family: var(--font-title);
  font-size: 24px;
  font-weight: 600;
}

/* Bouton de l'annonce (capture 03 du PL) : texte crème sur un bleu sombre, 10:1. */
.pill-blue {
  border-color: #2b3a7a;
  background: #2b3a7a;
  color: var(--ink);
}

.pill-blue:hover {
  border-color: var(--ink);
  background: #1f2b5c;
  color: var(--ink);
}

/* Mouvement réduit : rangée immobile, qu'on fait défiler soi-même ; sans copie ni case Pause. */
@media (prefers-reduced-motion: reduce) {
  .news-viewport {
    overflow-x: auto;
  }

  .news-track {
    animation: none;
  }

  .news-track[aria-hidden="true"],
  .news-pause-label {
    display: none;
  }
}

/* Trois colonnes (lecture 14) : The Collective, Join us, Contact côte à côte ; liens rouges ; un seul bouton Discord,
   agrandi, centré sous Join us. */
.home-blocks {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 40px;
}

.home-block {
  display: flex;
  flex-direction: column;
}

.home-block h2 {
  margin: 0 0 12px;
  font-size: 32px;
  font-weight: 600;
}

.home-block .rich {
  margin-top: 0;
}

/* Liens centrés, poussés en bas : les trois sur la même ligne (D82, lecture 7). */
.home-section .home-block-link {
  max-width: none;
  margin: auto 0 0;
  padding-top: 16px;
  text-align: center;
}

/* Bouton Discord sur sa ligne, centré sous les trois colonnes (téléphone : après le dernier bloc). */
.home-section .home-blocks-discord {
  grid-column: 1 / -1;
  justify-content: center;
  max-width: none;
  margin: 0;
}

.discord-button-large {
  padding: 16px 28px;
  font-size: 23px;
}

.discord-button-large img {
  width: 32px;
}

.home-below .site-footer {
  background: var(--bg);
}

/* Téléphone (lecture 3) : colonne pleine, sans côtés estompés ; une colonne pour l'introduction et les blocs. */
@media (max-width: 760px) {
  .home-column::before {
    -webkit-mask-image: linear-gradient(
      to bottom,
      transparent,
      #000 120px,
      #000 calc(100% - 120px),
      transparent
    );
    mask-image: linear-gradient(to bottom, transparent, #000 120px, #000 calc(100% - 120px), transparent);
  }

  .home-intro-split .home-intro-columns,
  .home-blocks {
    grid-template-columns: minmax(0, 1fr);
  }

  .home-section > h2,
  .home-news > h2 {
    font-size: 32px;
  }

  .news-card {
    width: min(300px, calc(100vw - 64px));
  }
}

/* Cadre du tableau (D97) : conteneur des colonnes, repère du fondu. */
.board-frame {
  position: relative;
  container: board / inline-size;
}

/* Vue d'ensemble du suivi en pleine largeur (D97, lecture 1) : la page sans largeur maximale ; chaque bloc garde la
   colonne de texte (1 072 px, comme `site-main-wide`), sauf le cadre du tableau, de la largeur de la fenêtre moins la
   marge du site (le padding de `site-main`). */
.site-main-board {
  max-width: none;
}

.site-main-board .page-tracking > *,
.site-main-board .board-section > * {
  max-width: 1072px;
  margin-inline: auto;
}

.site-main-board .page-tracking > .board-section,
.site-main-board .board-section > .board-frame {
  max-width: none;
}

/* Tableau du suivi public (D81.3 ; à la manière du tableau Trello du projet, D96, lecture 6) : les jalons à gauche, une
   colonne par étape. Carte : couverture approuvée en image en haut, type à la couleur de sa famille et étiquettes
   publiques, nom, tâches faites sur le total, avatars des membres d'accord. La CSP refuse les styles en ligne : couleurs
   par classes, chacune à 4,5:1 au moins.
   Colonnes entières au repos (D97, lectures 2 à 5) : le cadre est un conteneur ; `--board-cols` est le plus grand nombre
   de colonnes de 256 px au moins avec 12 px d'écart (seuils `n × 256 + (n − 1) × 12`), la largeur est partagée ;
   défilement accroché au début de chaque colonne ; fondu au bord droit tant qu'il reste des colonnes. */
/* Repère des textes masqués (`visually-hidden`) : ils restent dans le défilement du tableau. */
.board {
  --board-cols: 1;
  --board-gap: 12px;
  position: relative;
  display: flex;
  gap: var(--board-gap);
  overflow-x: auto;
  padding: 4px 0 16px;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scrollbar-color: #6b6964 #16171a;
}

@container board (min-width: 524px) {
  .board {
    --board-cols: 2;
  }
}

@container board (min-width: 792px) {
  .board {
    --board-cols: 3;
  }
}

@container board (min-width: 1060px) {
  .board {
    --board-cols: 4;
  }
}

@container board (min-width: 1328px) {
  .board {
    --board-cols: 5;
  }
}

@container board (min-width: 1596px) {
  .board {
    --board-cols: 6;
  }
}

@container board (min-width: 1864px) {
  .board {
    --board-cols: 7;
  }
}

@container board (min-width: 2132px) {
  .board {
    --board-cols: 8;
  }
}

@container board (min-width: 2400px) {
  .board {
    --board-cols: 9;
  }
}

@container board (min-width: 2668px) {
  .board {
    --board-cols: 10;
  }
}

.board:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

@media (prefers-reduced-motion: no-preference) {
  .board {
    scroll-behavior: smooth;
  }
}

.board-column {
  flex: none;
  align-self: flex-start;
  width: calc((100cqi - (var(--board-cols) - 1) * var(--board-gap)) / var(--board-cols));
  padding: 12px;
  border-radius: 4px;
  background: #16171a;
  scroll-snap-align: start;
}

/* La suite se devine (D97, lecture 4) : fondu léger vers le fond de la page, sans clic ni script. Avec une minuterie de
   défilement, il s'efface en fin de défilement et quand tout tient (minuterie inactive : valeur de base) ; sans elle, il
   reste. */
.board-frame::after {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 40px;
  background: linear-gradient(to right, rgb(0 0 0 / 0%), var(--bg));
  content: "";
  pointer-events: none;
}

@supports (animation-timeline: scroll()) {
  .board-frame {
    timeline-scope: --board;
  }

  .board {
    scroll-timeline: --board x;
  }

  .board-frame::after {
    opacity: 0;
    animation: board-fade linear both;
    animation-timeline: --board;
  }
}

@keyframes board-fade {
  from,
  95% {
    opacity: 1;
  }

  to {
    opacity: 0;
  }
}

.board-milestones {
  border: 1px solid var(--line);
}

.board-column .board-column-title {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin: 0 0 12px;
  font-size: 16px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.board-count {
  color: var(--muted);
}

.prose .board-cards {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.board-card {
  position: relative;
  overflow: hidden;
  border-radius: 4px;
  background: #1e1f22;
}

.board-card-link {
  display: block;
  color: var(--ink);
  text-decoration: none;
}

/* Couverture approuvée : recadrage de bannière, entière en largeur, comme une couverture de carte Trello. */
.board-cover {
  display: block;
  width: 100%;
  aspect-ratio: 3 / 1;
  object-fit: cover;
}

.board-card-body {
  display: grid;
  gap: 6px;
  padding: 8px 10px 10px;
}

.board-card-name {
  font-weight: 700;
  overflow-wrap: anywhere;
}

.board-card-link:hover .board-card-name {
  text-decoration: underline;
}

.board-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.board-tag {
  padding: 0 8px;
  border: 1px solid var(--line);
  border-radius: 4px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.board-standby {
  color: var(--muted);
}

.board-card-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.board-counter {
  padding: 0 6px;
  border-radius: 4px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.board-milestone-state {
  color: var(--muted);
  font-weight: 700;
}

/* Toutes les tâches faites, jalon atteint : vert plein, comme une checklist terminée. */
.board-counter.board-done,
.board-milestone-state.board-done {
  justify-self: start;
  padding: 0 6px;
  border-radius: 4px;
  background: #2e7d32;
  color: #ffffff;
}

.board-avatars {
  display: flex;
  margin-left: auto;
}

.board-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  margin-left: -6px;
  border: 2px solid #1e1f22;
  border-radius: 50%;
  background: #3a3b40;
  color: #ffffff;
  font-size: 11px;
  font-weight: 700;
  object-fit: cover;
}

.board-avatar:first-child {
  margin-left: 0;
}

/* Cartouche d'un asset (D100, lecture 3) : la couverture approuvée en fond, estompée sur le fond de la carte (voile
   uni, sans dégradé, D74.2) ; le nom en blanc sur une ligne ; le pourcentage en couleur et les tâches faites sur une
   pastille sombre unie, lisibles quelle que soit l'image (11 teintes, 4,5:1 au moins sur cette pastille). */
.board-card-cartouche .board-cover {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  aspect-ratio: auto;
  object-fit: cover;
  opacity: 0.22;
}

.board-card-cartouche .board-card-body {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 72px;
  padding: 10px 10px 10px 12px;
}

.board-card-main {
  display: grid;
  flex: 1;
  gap: 6px;
  min-width: 0;
}

.board-card-cartouche .board-card-link .board-card-name {
  overflow: hidden;
  color: #ffffff;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.board-score {
  display: grid;
  flex: none;
  justify-items: center;
  min-width: 64px;
  padding: 4px 8px;
  border-radius: 4px;
  background: #16171a;
}

.board-percent {
  font-size: 22px;
  font-weight: 700;
  line-height: 1.1;
}

.board-card-cartouche .board-counter {
  padding: 0;
  color: var(--muted);
  font-size: 12px;
}

.board-card-cartouche .board-avatars {
  margin-left: 0;
}

.board-card-cartouche .board-avatar {
  width: 22px;
  height: 22px;
  margin-left: -8px;
}

.board-card-cartouche .board-avatar:first-child {
  margin-left: 0;
}

.pct-0 {
  color: #ff6b6b;
}

.pct-1 {
  color: #ff7f5c;
}

.pct-2 {
  color: #ff944d;
}

.pct-3 {
  color: #ffa940;
}

.pct-4 {
  color: #ffbe33;
}

.pct-5 {
  color: #e8c62e;
}

.pct-6 {
  color: #c8cf3a;
}

.pct-7 {
  color: #a6d64a;
}

.pct-8 {
  color: #86db5c;
}

.pct-9 {
  color: #66e070;
}

.pct-10 {
  color: #4fe385;
}

/* Types par famille (D50, lecture 20 ; couleurs de core, texte de `pillTextOn`, comme dans /app). */
.board-tag.type-firearms {
  border-color: transparent;
  background: #c77d1a;
  color: #000000;
}

.board-tag.type-vehicles {
  border-color: transparent;
  background: #1f9e89;
  color: #000000;
}

.board-tag.type-commander {
  border-color: transparent;
  background: #8a5cc2;
  color: #ffffff;
}

.board-tag.type-explosives {
  border-color: transparent;
  background: #c4453c;
  color: #ffffff;
}

.board-tag.type-faction {
  border-color: transparent;
  background: #c8a04a;
  color: #000000;
}

.board-tag.type-miscellaneous {
  border-color: transparent;
  background: #7c8590;
  color: #000000;
}

.board-tag.type-neutral {
  border-color: transparent;
  background: #3a3a37;
  color: #ffffff;
}

/* Couleurs des étiquettes (palette de core, comme dans /app). */
.board-tag.tag-neutral {
  border-color: transparent;
  background: #3a3a37;
  color: #ffffff;
}

.board-tag.tag-red {
  border-color: transparent;
  background: #b3261e;
  color: #ffffff;
}

.board-tag.tag-orange {
  border-color: transparent;
  background: #b05300;
  color: #ffffff;
}

.board-tag.tag-gold {
  border-color: transparent;
  background: #8a6d00;
  color: #ffffff;
}

.board-tag.tag-green {
  border-color: transparent;
  background: #2e7d32;
  color: #ffffff;
}

.board-tag.tag-teal {
  border-color: transparent;
  background: #00695c;
  color: #ffffff;
}

.board-tag.tag-blue {
  border-color: transparent;
  background: #1565c0;
  color: #ffffff;
}

.board-tag.tag-indigo {
  border-color: transparent;
  background: #3949ab;
  color: #ffffff;
}

.board-tag.tag-violet {
  border-color: transparent;
  background: #6a1b9a;
  color: #ffffff;
}

.board-tag.tag-pink {
  border-color: transparent;
  background: #ad1457;
  color: #ffffff;
}

.board-tag.tag-slate {
  border-color: transparent;
  background: #546e7a;
  color: #ffffff;
}

/* --- Suivi public (18e, D71) : un registre ; tableaux denses, barres fines, états en mots (D74, lecture 6). ------- */

.tracking-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 24px;
  margin: 0 0 32px;
}

.prose .tracking-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 20px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.prose .tracking-nav li + li {
  margin-top: 0;
}

.tracking-back {
  color: var(--gold);
}

.tracking-tab {
  color: var(--muted);
  text-decoration: none;
}

.tracking-tab:hover,
.tracking-tab[aria-current="page"] {
  color: var(--ink);
}

.tracking-tab[aria-current="page"] {
  text-decoration: underline;
  text-decoration-color: var(--gold);
  text-underline-offset: 6px;
}

.tracking-meta {
  margin: -16px 0 32px;
  color: var(--muted);
  font-size: 15px;
}

/* Bannière du projet ou de la mise à jour (19q, D103, lectures 2 et 3) : entière, à son format, jamais recadrée,
   transparence gardée, 320 px de haut au plus ; sous le titre sous 1 000 px de large. Sans bannière : rien. */
.tracking-banner {
  margin: -8px 0 32px;
}

.tracking-banner-image {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 320px;
}

/* À partir de 1 000 px : deux colonnes. Le bloc du titre garde sa place (début de la colonne de texte de 1 072 px,
   520 px de large) ; la bannière à droite, en haut, jusqu'au bord droit du cadre du tableau ; la dernière rangée, en
   `fr`, prend la hauteur d'une bannière plus haute que le bloc. */
@media (min-width: 1000px) {
  .tracking-head {
    display: grid;
    grid-template-columns: max(0px, calc((100% - 1072px) / 2)) minmax(0, 520px) minmax(0, 1fr);
    grid-template-rows: auto auto auto 1fr;
  }

  .site-main-board .page-tracking > .tracking-head {
    max-width: none;
  }

  .tracking-head > * {
    grid-column: 2;
  }

  .tracking-head > .tracking-banner {
    grid-column: 3;
    grid-row: 1 / 5;
    align-self: start;
    margin: 0 0 0 32px;
  }

  /* Dans la grille, les marges ne fusionnent plus : celles d'avant (48 px sous la date). */
  .tracking-head > .page-section > h2:first-child {
    margin-top: 16px;
  }
}

/* Badge RELEASED (19q, D103, lecture 4) : à la place de l'avancement d'un projet sorti, aux couleurs de la pastille
   « Released » (#9fe0a8 sur #18311f : 9,1:1), en plus grand ; capitales par la feuille. */
.tracking-released,
.prose .tracker-released {
  margin: 0;
}

.released-badge {
  display: inline-block;
  padding: 6px 18px;
  border: 1px solid #2f6b3c;
  border-radius: 4px;
  background: #18311f;
  color: #9fe0a8;
  font-family: var(--font-title);
  font-size: 24px;
  font-weight: 600;
  letter-spacing: 0.08em;
  line-height: 1.2;
  text-transform: uppercase;
}

.tracker-released .released-badge {
  padding: 4px 14px;
  font-size: 20px;
}

/* Badge ON HOLD (20a, D113.2) : projet en pause, sur la carte de Production trackers et l'Overview du suivi ; aux
   couleurs de la pastille « On hold » de la page du mod (#d6d3cc sur #2b2b2b : 10,4:1), l'avancement gardé à côté. */
.progress-on-hold {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 16px;
}

.on-hold-badge {
  display: inline-block;
  padding: 4px 14px;
  border: 1px solid #5c5a55;
  border-radius: 4px;
  background: #2b2b2b;
  color: #d6d3cc;
  font-family: var(--font-title);
  font-size: 20px;
  font-weight: 600;
  letter-spacing: 0.08em;
  line-height: 1.2;
  text-transform: uppercase;
}

.progress-line {
  margin: 0;
}

.progress {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 12px;
  font-variant-numeric: tabular-nums;
}

.progress progress {
  width: 160px;
  height: 4px;
  overflow: hidden;
  border: 0;
  background: var(--line);
  appearance: none;
}

.progress progress::-webkit-progress-bar {
  background: var(--line);
}

.progress progress::-webkit-progress-value {
  background: var(--gold);
}

.progress progress::-moz-progress-bar {
  background: var(--gold);
}

.progress-value {
  min-width: 3.5em;
  font-weight: 600;
}

.milestone {
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.milestone + .milestone {
  margin-top: 40px;
}

.prose .milestone h3 {
  margin: 0 0 8px;
  font-size: 20px;
}

.milestone-state {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 15px;
}

.milestone-image {
  display: block;
  width: 100%;
  max-width: 640px;
  height: auto;
  margin: 16px 0;
}

/* Filtres en GET, sans script : une colonne par filtre, qui passe à la ligne sur téléphone. */
.tracking-filters {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 12px 16px;
  margin: 0 0 32px;
}

.tracking-filters label {
  display: flex;
  flex: 1 1 160px;
  flex-direction: column;
  gap: 4px;
  min-width: 160px;
  color: var(--muted);
  font-size: 13px;
}

.tracking-filters select,
.tracking-filters input {
  min-height: 44px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--bg);
  color: var(--ink);
  font: inherit;
  font-size: 15px;
}

.filter-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

/* Tableaux : défilent dans leur cadre sur téléphone, jamais la page. */
.table-wrap {
  margin: 0 0 24px;
  overflow-x: auto;
}

.tracking-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
  font-variant-numeric: tabular-nums;
}

.tracking-table th {
  padding: 8px 12px 8px 0;
  border-bottom: 1px solid var(--muted);
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  text-align: left;
  white-space: nowrap;
}

.tracking-table td {
  padding: 8px 12px 8px 0;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

.tracking-table .number {
  text-align: right;
  white-space: nowrap;
}

/* Dates et décomptes sur une ligne ; le tableau des étapes à sa largeur utile. */
.tracking-table td:last-child {
  white-space: nowrap;
}

.stage-table {
  width: auto;
  min-width: min(100%, 360px);
}

.tracking-table .table-section th {
  padding-top: 16px;
  border-bottom-color: var(--line);
  color: var(--ink);
  font-size: 15px;
}

.asset-cell {
  min-width: 200px;
}

.asset-thumb {
  display: block;
  width: 160px;
  height: 32px;
  margin-bottom: 6px;
  object-fit: cover;
}

.cell-note {
  display: block;
  color: var(--muted);
  font-size: 13px;
}

.tracking-pages {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 16px;
  color: var(--muted);
}

.asset-banner {
  margin: 0 0 32px;
}

.asset-banner img {
  display: block;
  width: 100%;
  height: auto;
}

/* Concepts « Public » : par colonne, l'image et le nom. */
.prose .concept-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 32px 24px;
  margin: 0;
  list-style: none;
}

.concept-card-link {
  display: grid;
  gap: 8px;
  color: var(--ink);
  text-decoration: none;
}

.concept-card-link:hover strong {
  text-decoration: underline;
}

.concept-card img {
  display: block;
  width: 100%;
  height: auto;
}

.back-line {
  margin: 0 0 24px;
}

@media (max-width: 560px) {
  .gallery {
    grid-template-columns: minmax(0, 1fr);
  }

  .tracking-table .progress progress {
    width: 64px;
  }
}

/* Captures de la communauté (D84, lecture 9) : grille comme les trailers ; image entière, à son format (jamais
   recadrée) ; vidéo : l'affiche et un bouton de lecture dessiné, puis le lecteur à sa place ; légende, puis le crédit
   « by <nom> » ; phrase de retrait sous la catégorie. Rien de Discord. */
/* Ni le retrait ni l’espacement des listes de texte (.prose ul, .prose li + li). */
ul.community-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 24px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}

.community-grid > .community-cell {
  max-width: none;
  margin: 0;
}

.community-item {
  margin: 0;
}

.community-item img,
.community-video {
  display: block;
  width: 100%;
  height: auto;
  /* Transparence gardée (D84, lecture 4) : aucun fond derrière l’image. */
  background: none;
}

.community-play {
  position: relative;
  display: block;
  color: var(--ink);
}

.community-play-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 64px;
  height: 64px;
  border: 2px solid var(--ink);
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.6);
  transform: translate(-50%, -50%);
}

.community-play-icon::after {
  position: absolute;
  top: 50%;
  left: 54%;
  border-top: 12px solid transparent;
  border-bottom: 12px solid transparent;
  border-left: 20px solid var(--ink);
  content: "";
  transform: translate(-50%, -50%);
}

.community-play:hover .community-play-icon,
.community-play:focus-visible .community-play-icon {
  background: rgba(0, 0, 0, 0.85);
}

.community-video:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

.community-item figcaption {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-top: 8px;
  font-size: 15px;
  line-height: 1.4;
}

.community-credit {
  color: var(--muted);
}

.community-notice {
  margin: 24px 0 0;
  color: var(--muted);
}

/* --- Onglet « Production trackers » (19n, D100, lecture 2) : un projet par ligne, logo, avancement, lien. ---------- */

.prose .trackers {
  display: grid;
  gap: 16px;
  margin: 32px 0 0;
  padding: 0;
  list-style: none;
}

.prose .tracker {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 24px;
  margin: 0;
  padding: 20px 24px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: #16171a;
}

.tracker-logo {
  flex: none;
  width: 72px;
  height: 72px;
  object-fit: contain;
}

.tracker-main {
  flex: 1 1 280px;
  min-width: 0;
}

.prose .tracker-name {
  margin: 0;
  font-size: 22px;
}

.prose .tracker-game {
  margin: 4px 0 8px;
}

.tracker-open {
  flex: none;
  padding: 8px 16px;
  border: 1px solid var(--gold);
  border-radius: 4px;
  color: var(--ink);
  font-weight: 600;
  text-decoration: none;
}

.tracker-open:hover {
  background: var(--gold);
  color: #000;
}

.tracking-trail {
  margin: 0;
}

/* --- Fiche d'un asset façon Trello (19n, D100, lecture 4) : un panneau ; bandeau sombre (couverture approuvée au
   centre, étape, ×), puis Members, Labels, Description, Pictures et les checklists, cases cochées pour le fait. ------- */

.sheet-card {
  overflow: hidden;
  margin-top: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #1e1f22;
}

.sheet-band {
  position: relative;
  display: flex;
  justify-content: center;
  min-height: 56px;
  background: #2b2c30;
}

.sheet-cover {
  display: block;
  max-width: 100%;
  max-height: 240px;
  object-fit: contain;
}

.sheet-stage {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 2px 8px;
  border-radius: 4px;
  background: #16171a;
  color: var(--ink);
  font-size: 13px;
  font-weight: 700;
}

.sheet-close {
  position: absolute;
  top: 8px;
  right: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #16171a;
  color: var(--ink);
  font-size: 22px;
  line-height: 1;
  text-decoration: none;
}

.sheet-close:hover {
  background: #3a3b40;
  color: #ffffff;
}

.sheet-body {
  padding: 20px 24px 28px;
}

.prose .sheet-title {
  max-width: none;
  margin: 0 0 16px;
  font-size: clamp(24px, 4vw, 32px);
}

.sheet-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 32px;
  margin-bottom: 12px;
}

.prose .sheet-label,
.prose .sheet-heading {
  margin: 0 0 8px;
  font-size: 14px;
  color: var(--muted);
}

.prose .sheet-heading {
  margin-top: 28px;
  font-size: 16px;
  color: var(--ink);
}

.prose .sheet-members {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.prose .sheet-member {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
}

.sheet-members .board-avatar {
  margin-left: 0;
}

.prose .sheet-dates {
  margin: 4px 0 0;
  font-size: 14px;
}

.prose .checklist-name {
  margin: 20px 0 6px;
  font-size: 16px;
}

.prose .checklist-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 8px;
}

.checklist-percent {
  min-width: 3ch;
  font-size: 13px;
  font-weight: 700;
}

.checklist-bar progress {
  flex: 1;
  max-width: 480px;
}

.prose .checklist-items {
  margin: 0;
  padding: 0;
  list-style: none;
}

.prose .checklist-item {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 6px;
  margin: 0;
  padding: 4px 0;
}

.checklist-box {
  flex: none;
  align-self: center;
  width: 14px;
  height: 14px;
  border: 2px solid var(--muted);
  border-radius: 3px;
}

.checklist-done .checklist-box {
  border-color: #4fe385;
  background: #4fe385;
}

.checklist-done .checklist-title {
  color: var(--muted);
  text-decoration: line-through;
}

@media (max-width: 560px) {
  .sheet-body {
    padding: 16px;
  }
}
