*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  color-scheme: dark;
}

/* Un élément caché par l’attribut hidden le reste, même si sa classe lui donne un display. */
[hidden] {
  display: none !important;
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--dz-night);
  color: var(--dz-text);
  font: 16px/1.65 var(--dz-body);
}

a {
  color: var(--dz-sky);
  text-underline-offset: 4px;
}

a:hover {
  color: var(--dz-text);
}

:focus-visible {
  outline: 2px solid var(--dz-sky);
  outline-offset: 3px;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: var(--dz-display);
  font-weight: 700;
  line-height: 1.05;
  text-transform: uppercase;
  letter-spacing: 1px;
  overflow-wrap: break-word;
}

h1 {
  font-size: clamp(2.4rem, 9vw, 5rem);
}

h2 {
  font-size: clamp(1.5rem, 4vw, 2.2rem);
  margin-bottom: 20px;
}

h3 {
  font-size: clamp(1.5rem, 4vw, 2rem);
}

p {
  margin: 0 0 16px;
}

.dz-skip {
  position: fixed;
  top: -90px;
  left: 12px;
  z-index: 20;
  padding: 12px 16px;
  background: var(--dz-text);
  color: var(--dz-night);
  font-weight: 700;
  border-radius: 6px;
}

.dz-skip:focus {
  top: 12px;
}

/* Accueil : le hall (portails.css). Sur-titre, accroche et boutons sous le titre. */
.dz-hero-kicker {
  color: var(--dz-sky);
  font: 700 0.95rem/1.2 var(--dz-display);
  text-transform: uppercase;
  letter-spacing: 5px;
}

.dz-hero-tagline {
  max-width: 560px;
  color: var(--dz-text);
  font-size: 1.1rem;
  text-wrap: balance;
}

.dz-nowrap {
  white-space: nowrap;
}

.dz-hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 8px !important;
}

.dz-hero-actions .dz-button-discord {
  margin-top: 0;
}

.dz-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 24px;
  border-radius: 8px;
  background: var(--dz-warden);
  color: var(--dz-text);
  font: 700 1.05rem/1.1 var(--dz-display);
  text-transform: uppercase;
  letter-spacing: 1px;
  text-shadow: none;
  text-decoration: none;
  transition: transform 0.15s ease, background-color 0.15s ease;
}

.dz-button:hover {
  background: color-mix(in srgb, var(--dz-warden) 92%, #fff);
  color: var(--dz-text);
  transform: translateY(-1px);
}

.dz-button-discord {
  margin-top: 12px;
  background: var(--dz-discord);
  color: #fff;
}

.dz-button-discord:hover {
  background: #4752c4;
  color: #fff;
}

.dz-button-ghost {
  border: 1px solid var(--dz-line);
  background: rgb(15 26 40 / 75%);
}

.dz-button-ghost:hover {
  background: var(--dz-surface-2);
}

.dz-section {
  width: min(1100px, 100%);
  margin: 0 auto;
  padding: 48px 16px;
}

/* Pages communes : une lueur du hall en haut de page et des titres de page qui en reprennent le dégradé. */
main {
  position: relative;
  isolation: isolate;
}

main::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: -1;
  height: 420px;
  background: radial-gradient(ellipse 70% 100% at 50% 0%, color-mix(in srgb, var(--dz-warden-bright) 22%, transparent), transparent 70%);
  pointer-events: none;
}

.dz-panel main::before {
  display: none;
}

@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  .dz-section > h1 {
    background: linear-gradient(180deg, #fff 30%, var(--dz-warden-bright) 110%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    filter: drop-shadow(0 4px 18px rgb(0 0 0 / 45%));
  }
}

.dz-section > p {
  max-width: 70ch;
  color: var(--dz-muted);
}

.dz-section ul:not(.dz-cards) {
  padding-left: 20px;
}

/* En-tête d'une page de jeu : l'esprit du bandeau d'accueil, en plus court. */
.dz-game-hero {
  --accent: var(--dz-warden);
  --image: none;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: calc(46vh - var(--dz-bar-height));
  padding: 80px 16px 48px;
  border-bottom: 1px solid var(--dz-line);
  background-color: var(--dz-surface);
  background-image:
    linear-gradient(180deg, rgb(7 13 21 / calc(var(--hero-veil, 0.6) * 0.6667)) 0%, rgb(7 13 21 / calc(var(--hero-veil, 0.6) * 1.3333)) 65%, var(--dz-night) 100%),
    var(--image),
    linear-gradient(135deg, var(--accent), var(--dz-night) 70%);
  background-size: cover;
  background-position: center;
}

/* Aligné sur le contenu des sections : 1100 px moins leurs marges intérieures. */
.dz-game-hero > * {
  width: min(1068px, 100%);
  margin-left: auto;
  margin-right: auto;
}

.dz-game-hero h1 {
  font-size: clamp(2.6rem, 10vw, 5.5rem);
  overflow-wrap: anywhere;
  text-shadow: 0 4px 18px rgb(0 0 0 / 50%);
}

.dz-game-hero p {
  max-width: none;
  margin-top: 16px;
  text-shadow: 0 2px 10px rgb(0 0 0 / 60%);
}

.dz-game-hero .dz-button {
  display: flex;
  width: fit-content;
  margin-left: max(0px, calc((100% - 1068px) / 2));
}

/* Le lien vers la carte de la guerre (page Foxhole) : aligné sur les sections, un peu d'air sous le bandeau. */
.dz-war-link {
  padding-top: 32px;
  padding-bottom: 0;
}

.dz-war + .dz-war-link {
  padding-top: 0;
}

/* Accueil, « Qui sommes-nous » : le seul moment qui casse la grille centrée du hall.
   Deux colonnes décalées, un mot géant en filigrane derrière le titre. */
.dz-about {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  align-items: end;
  gap: 20px 56px;
  padding-top: 112px;
  padding-bottom: 96px;
  overflow: clip;
}

/* Sélecteur à deux classes : il passe devant « .dz-section > p » (couleur et largeur des paragraphes). */
.dz-about > .dz-about-ghost {
  position: absolute;
  top: 24px;
  left: 8px;
  z-index: -1;
  max-width: none;
  margin: 0;
  color: transparent;
  font: 700 clamp(5rem, 19vw, 13rem)/0.8 var(--dz-display);
  text-transform: uppercase;
  letter-spacing: 2px;
  white-space: nowrap;
  -webkit-text-stroke: 1.5px color-mix(in srgb, var(--dz-warden-bright) 40%, transparent);
  pointer-events: none;
  user-select: none;
}

.dz-about > h2 {
  margin-bottom: 0;
  font-size: clamp(2.2rem, 5.5vw, 3.6rem);
  line-height: 0.95;
}

.dz-about-text {
  padding-left: 24px;
  border-left: 2px solid color-mix(in srgb, var(--dz-warden-bright) 60%, transparent);
}

.dz-about-text p {
  margin: 0;
  max-width: 60ch;
  color: var(--dz-text);
  font-size: 1.1rem;
}

.dz-about-text .dz-actions {
  justify-content: flex-start;
  align-items: center;
  margin-top: 20px;
}

@media (max-width: 760px) {
  .dz-about {
    grid-template-columns: minmax(0, 1fr);
    padding-top: 88px;
    padding-bottom: 64px;
  }

  .dz-about-text {
    padding-left: 16px;
  }
}

.dz-empty {
  padding: 24px;
  border: 1px dashed var(--dz-line);
  border-radius: 12px;
  background: var(--dz-surface);
}

/* Pied de page : trois colonnes sur ordinateur, empilées sur téléphone. */
.dz-footer {
  /* Positionné : il passe au-dessus du contenu principal (contexte isolé), fond de profil porté compris. */
  position: relative;
  padding: 40px 16px 24px;
  border-top: 1px solid var(--dz-line);
  background: linear-gradient(180deg, var(--dz-surface), var(--dz-night));
  color: var(--dz-muted);
  font-size: 0.95rem;
}

.dz-footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
  gap: 32px;
  width: min(1100px, 100%);
  margin: 0 auto;
}

.dz-footer-brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
}

.dz-footer-brand p {
  margin: 0;
}

.dz-footer-brand .dz-button-discord {
  margin-top: 0;
}

.dz-footer-logo {
  display: flex;
  align-items: center;
  min-height: 44px;
  gap: 10px;
  color: var(--dz-text);
  font: 700 1.3rem/1 var(--dz-display);
  text-transform: uppercase;
  letter-spacing: 1px;
  text-decoration: none;
}

.dz-footer-col h2 {
  margin-bottom: 12px;
  color: var(--dz-text);
  font-size: 1.1rem;
  letter-spacing: 2px;
}

.dz-footer-col ul {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.dz-footer-col p {
  margin: 0;
}

.dz-footer-note {
  width: min(1100px, 100%);
  margin: 32px auto 0;
  padding-top: 16px;
  border-top: 1px solid var(--dz-line);
  font-size: 0.85rem;
}

.dz-footer-lang {
  width: min(1100px, 100%);
  margin: 8px auto 0;
  font-size: 0.85rem;
}

/* Dernière ligne : crédits, droits et pages légales, centrés. */
.dz-footer-end {
  display: grid;
  justify-items: center;
  gap: 6px;
  width: min(1100px, 100%);
  margin: 24px auto 0;
  padding-top: 16px;
  border-top: 1px solid var(--dz-line);
  font-size: 0.85rem;
  text-align: center;
}

.dz-footer-end p {
  margin: 0;
}

.dz-footer-credits {
  color: var(--dz-text);
}

.dz-footer-credits a {
  color: var(--dz-text);
  font-weight: 700;
}

.dz-heart {
  color: #e5484d;
}

.dz-footer-legal a {
  display: inline-block;
  padding: 10px 4px;
  color: var(--dz-muted);
}

.dz-message {
  text-align: center;
}

.dz-message p {
  margin-left: auto;
  margin-right: auto;
}

.dz-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 24px;
}

.dz-actions .dz-button-discord {
  margin-top: 0;
}

.dz-muted {
  color: var(--dz-muted);
}

.dz-admin {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 32px;
  width: min(1200px, 100%);
  margin: 0 auto;
  padding: 32px 16px 64px;
}

.dz-admin-menu {
  align-self: start;
  position: sticky;
  top: calc(var(--dz-bar-height) + 16px);
  padding: 16px;
  border: 1px solid var(--dz-line);
  border-radius: 12px;
  background: var(--dz-surface);
}

.dz-admin-title {
  margin: 0 0 12px;
  color: var(--dz-sky);
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 3px;
}

.dz-admin-menu ul {
  display: grid;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.dz-admin-menu a {
  display: block;
  padding: 10px 12px;
  border-radius: 6px;
  color: var(--dz-text);
  text-decoration: none;
  white-space: nowrap;
}

.dz-admin-menu a:hover {
  background: var(--dz-night);
}

.dz-admin-menu a[aria-current="page"] {
  background: var(--dz-warden);
  font-weight: 700;
}

.dz-admin-main h1 {
  margin-bottom: 24px;
  font-size: clamp(1.8rem, 5vw, 2.6rem);
}

.dz-admin-main h2 {
  margin-top: 32px;
}

.dz-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 12px;
  margin: 0 0 24px;
}

.dz-stats div {
  padding: 16px;
  border: 1px solid var(--dz-line);
  border-radius: 12px;
  background: var(--dz-surface);
}

.dz-stats dt {
  color: var(--dz-muted);
  font-size: 0.85rem;
}

.dz-stats dd {
  margin: 4px 0 0;
  font: 700 2rem/1 var(--dz-display);
}

.dz-notice {
  margin: 0 0 20px;
  padding: 12px 16px;
  border-left: 4px solid var(--dz-sky);
  border-radius: 6px;
  background: var(--dz-surface);
}

.dz-search {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0 0 16px;
}

.dz-field {
  min-height: 40px;
  max-width: 100%;
  padding: 0 10px;
  border: 1px solid var(--dz-line);
  border-radius: 6px;
  background: var(--dz-night);
  color: var(--dz-text);
  font: inherit;
}

.dz-small-button {
  min-height: 44px;
  padding: 0 14px;
  border: 1px solid var(--dz-warden);
  border-radius: 6px;
  background: var(--dz-warden);
  color: var(--dz-text);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

.dz-small-button:hover {
  background: color-mix(in srgb, var(--dz-warden) 92%, #fff);
}

.dz-small-button.dz-danger {
  border-color: #d9705f;
  background: transparent;
  color: #ffb3a6;
}

.dz-small-button.dz-danger:hover {
  background: #3a1f1c;
}

.dz-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--dz-line);
  border-radius: 12px;
}

.dz-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

.dz-table th,
.dz-table td {
  padding: 12px;
  border-bottom: 1px solid var(--dz-line);
  text-align: left;
  vertical-align: middle;
}

.dz-table th {
  color: var(--dz-muted);
  font-weight: 600;
  white-space: nowrap;
}

.dz-table tr:last-child td {
  border-bottom: 0;
}

.dz-table td:first-child {
  min-width: 9rem;
  overflow-wrap: anywhere;
}

.dz-table small {
  display: block;
  color: var(--dz-muted);
  font-size: 0.75rem;
}

.dz-inline-form {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 4px 8px 4px 0;
}

.dz-tag {
  display: inline-block;
  padding: 2px 10px;
  border: 1px solid var(--dz-line);
  border-radius: 999px;
  background: var(--dz-night);
  font-size: 0.85rem;
  white-space: nowrap;
}

.dz-tag-blocked {
  border-color: #d9705f;
  color: #ffb3a6;
}

.dz-pager {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 16px;
}

.dz-error {
  margin: 0 0 20px;
  padding: 12px 16px;
  border-left: 4px solid #d9705f;
  border-radius: 6px;
  background: #2a1614;
  color: #ffd9d2;
}

.dz-draft-banner {
  padding: 10px 16px;
  border: 1px dashed var(--dz-sky);
  border-radius: 6px;
  color: var(--dz-sky);
  font-weight: 600;
}

.dz-article {
  width: min(820px, 100%);
}

.dz-article > .dz-muted {
  max-width: none;
}

.dz-cover {
  display: block;
  width: 100%;
  max-height: 420px;
  margin-bottom: 24px;
  border-radius: 12px;
  object-fit: cover;
}

.dz-article h1 {
  font-size: clamp(2rem, 6vw, 3.2rem);
  margin-bottom: 12px;
  overflow-wrap: anywhere;
}

.dz-toc {
  margin: 24px 0;
  padding: 16px 20px;
  border: 1px solid var(--dz-line);
  border-radius: 12px;
  background: var(--dz-surface);
}

.dz-toc h2 {
  margin-bottom: 8px;
  font-size: 1.1rem;
}

.dz-toc ol {
  margin: 0;
  padding-left: 20px;
}

.dz-toc .dz-toc-sub {
  margin-left: 20px;
  list-style: circle;
}

.dz-prose {
  overflow-wrap: break-word;
}

.dz-prose h2 {
  margin: 36px 0 12px;
}

.dz-prose h3 {
  margin: 28px 0 8px;
  font-size: 1.3rem;
}

.dz-prose h2,
.dz-prose h3 {
  scroll-margin-top: calc(var(--dz-bar-height) + 12px);
}

.dz-prose img {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 8px 0;
  border-radius: 8px;
}

.dz-prose ul,
.dz-prose ol {
  padding-left: 24px;
}

.dz-prose blockquote {
  margin: 16px 0;
  padding: 12px 16px;
  border-left: 4px solid var(--dz-sky);
  border-radius: 6px;
  background: var(--dz-surface);
}

.dz-prose blockquote p {
  margin: 0;
}

.dz-prose hr {
  margin: 28px 0;
  border: 0;
  border-top: 1px solid var(--dz-line);
}

.dz-prose .dz-table-wrap {
  margin: 16px 0;
}

.dz-article-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr));
  gap: 16px;
  margin: 0 0 16px;
  padding: 0;
  list-style: none;
}

.dz-section ul.dz-article-list {
  padding-left: 0;
}

.dz-article-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  height: 100%;
  padding: 16px;
  border: 1px solid var(--dz-line);
  border-radius: 12px;
  background: var(--dz-surface);
  color: var(--dz-text);
  text-decoration: none;
}

.dz-article-card:hover,
.dz-article-card:focus-visible {
  border-color: var(--dz-sky);
  color: var(--dz-text);
}

.dz-article-card img {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 8px;
  object-fit: cover;
}

.dz-article-card h3 {
  font-size: 1.3rem;
  overflow-wrap: anywhere;
}

.dz-article-card p {
  margin: 0;
  color: var(--dz-muted);
}

.dz-article-card .dz-muted {
  margin-top: auto;
  font-size: 0.85rem;
}

.dz-category {
  margin: 24px 0 12px;
  color: var(--dz-sky);
  font-size: 1.1rem;
}

.dz-editor {
  display: grid;
  gap: 16px;
}

.dz-editor label {
  display: grid;
  gap: 6px;
  font-weight: 600;
}

.dz-editor label .dz-muted {
  font-weight: 400;
}

/* Fiches simples du panel (jeu, équipe) : même mise en page que les éditeurs, sans leur script. */
.dz-panel-form {
  display: grid;
  gap: 16px;
}

.dz-panel-form label {
  display: grid;
  gap: 6px;
  font-weight: 600;
}

.dz-panel-form label .dz-muted {
  font-weight: 400;
}

.dz-panel-form label:has(> input[type="checkbox"]),
.dz-panel-form label:has(> input[type="color"]) {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.dz-panel-form textarea.dz-field {
  width: 100%;
  padding: 10px;
  line-height: 1.5;
  resize: vertical;
}

/* Les couleurs de la page d'un jeu : une ligne par couleur, la case puis le sélecteur. */
.dz-game-colors {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 12px 16px;
  border: 1px solid var(--dz-line);
  border-radius: 12px;
}

.dz-game-colors legend {
  padding: 0 6px;
  font-weight: 700;
}

.dz-game-colors p {
  margin: 0;
}

.dz-game-color {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
}

.dz-game-color label {
  min-width: 260px;
  font-weight: 400;
}

/* Une liste au long intitulé ne doit pas élargir la page sur téléphone. */
.dz-panel-form select.dz-field {
  min-width: 0;
  max-width: 100%;
}

.dz-editor-fields {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  gap: 12px;
}

.dz-editor textarea.dz-field {
  width: 100%;
  min-height: 0;
  padding: 10px;
  line-height: 1.5;
  resize: vertical;
}

.dz-editor input.dz-field,
.dz-editor select.dz-field {
  width: 100%;
}

.dz-thumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 0 0 12px;
  padding: 0;
  list-style: none;
}

.dz-admin-main ul.dz-thumbs {
  padding-left: 0;
}

.dz-thumbs li {
  display: grid;
  gap: 6px;
  justify-items: center;
}

.dz-thumbs img {
  width: 96px;
  height: 64px;
  border: 1px solid var(--dz-line);
  border-radius: 6px;
  object-fit: cover;
}

.dz-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  position: sticky;
  top: var(--dz-bar-height);
  z-index: 5;
  padding: 8px 0;
  background: var(--dz-night);
}

.dz-toolbar[hidden] {
  display: none;
}

.dz-editor-panes {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}

#dz-body {
  font-family: Consolas, "Cascadia Mono", Menlo, monospace;
  font-size: 0.95rem;
}

.dz-editor-preview {
  min-width: 0;
  padding: 12px 16px;
  border: 1px solid var(--dz-line);
  border-radius: 12px;
  background: var(--dz-surface);
}

.dz-editor-preview > h2 {
  margin-bottom: 8px;
  color: var(--dz-muted);
  font-size: 0.9rem;
}

.dz-editor-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.dz-editor-actions .dz-button {
  border: 0;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

@media (max-width: 1000px) {
  .dz-editor-panes {
    grid-template-columns: minmax(0, 1fr);
  }

  /* Sur petit écran la barre de boutons prend plusieurs lignes : elle ne reste pas collée en haut. */
  .dz-toolbar {
    position: static;
  }
}


@media (max-width: 800px) {
  .dz-admin {
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
    padding-top: 20px;
  }

  .dz-admin-menu {
    position: static;
  }

  /* Le menu se replie (menus.js) : son titre devient un bouton, les groupes se lisent de haut en bas. */
  .dz-admin-nav > summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 44px;
    padding: 0 12px;
    border: 1px solid var(--dz-line);
    border-radius: 8px;
    background: var(--dz-night);
    font-weight: 700;
    cursor: pointer;
    list-style: none;
  }

  .dz-admin-nav > summary::-webkit-details-marker {
    display: none;
  }

  .dz-admin-nav > summary::after {
    content: "▾";
    color: var(--dz-sky);
  }

  .dz-admin-nav[open] > summary {
    margin-bottom: 12px;
  }

  .dz-admin-nav .dz-admin-title {
    display: none;
  }
}

/* Le titre du menu ne sert qu'à le replier sur téléphone. */
@media (min-width: 801px) {
  .dz-admin-nav > summary {
    display: none;
  }
}

.dz-admin-group {
  margin: 16px 0 6px;
  padding: 0 12px;
  color: var(--dz-muted);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.dz-admin-menu li {
  display: flex;
  align-items: center;
  gap: 6px;
}

.dz-admin-menu li > a {
  flex: 1;
}

/* Ce qui attend dans une rubrique : une pastille, lue « 3 en attente ». */
.dz-admin-count {
  min-width: 24px;
  padding: 2px 8px;
  border-radius: 999px;
  background: #b5402f;
  color: #fff;
  font-size: 0.8rem;
  font-weight: 700;
  text-align: center;
}

/* Lu à voix haute, invisible à l'écran. */
.dz-sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.dz-queues-compact {
  margin: 0 0 24px;
}

.dz-grade-spread {
  margin-top: -8px;
  font-size: 0.9rem;
}

/* Une sanction (bloquer, réinitialiser) : dépliée à la demande, à l'écart des actions ordinaires. */
.dz-sanction {
  margin: 6px 0;
}

.dz-sanction > summary {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 14px;
  border: 1px solid #d9705f;
  border-radius: 6px;
  color: #ffb3a6;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}

.dz-sanction > summary::-webkit-details-marker {
  display: none;
}

.dz-sanction[open] > summary {
  background: #3a1f1c;
}

.dz-sanction-form {
  display: grid;
  gap: 6px;
  max-width: 420px;
  margin-top: 8px;
  padding: 12px 14px;
  border: 1px solid #d9705f;
  border-radius: 8px;
  background: #1d1210;
}

.dz-sanction-form p {
  margin: 0;
}

/* Deux sanctions sur la même page : la seconde prend du champ. */
.dz-sanction-form + h2 {
  margin-top: 32px;
}

.dz-sanction-form button {
  justify-self: start;
  margin-top: 6px;
}

/* Les remises à zéro de tous les grades : en bas, encadrées en rouge. */
.dz-danger-zone {
  margin-top: 40px;
  padding: 16px 20px;
  border: 1px solid #d9705f;
  border-radius: 12px;
}

.dz-danger-zone h2 {
  margin: 0 0 8px;
  color: #ffb3a6;
  font-size: 1.2rem;
}

/* La confirmation du site (forms.js) : le bouton nomme l'action, « Annuler » reçoit le focus. */
.dz-confirm {
  width: min(460px, calc(100vw - 32px));
  padding: 20px;
  border: 1px solid var(--dz-line);
  border-radius: 12px;
  background: var(--dz-surface);
  color: var(--dz-text);
  box-shadow: 0 20px 50px rgb(0 0 0 / 60%);
}

.dz-confirm::backdrop {
  background: rgb(4 7 12 / 72%);
}

.dz-confirm > p:first-child {
  margin: 0 0 12px;
  font-size: 1.05rem;
}

.dz-confirm-typed {
  display: grid;
  gap: 6px;
  margin-bottom: 12px;
}

.dz-confirm .dz-actions {
  justify-content: flex-end;
  margin: 16px 0 0;
}

.dz-confirm button[disabled] {
  opacity: 0.45;
  cursor: not-allowed;
}

/* Sur téléphone, une carte par membre : chaque cellule porte le nom de sa colonne. */
@media (max-width: 640px) {
  .dz-members thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
  }

  .dz-members,
  .dz-members tbody,
  .dz-members tr,
  .dz-members td {
    display: block;
  }

  .dz-members tr {
    padding: 8px 0;
    border-bottom: 1px solid var(--dz-line);
  }

  .dz-members td {
    padding: 6px 12px;
    border-bottom: 0;
  }

  .dz-members td::before { content: attr(data-label); display: block; color: var(--dz-muted); font-size: 0.8rem; }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition: none !important;
    animation: none !important;
  }

  .dz-button:hover,
  .dz-article-card:hover,
  .dz-article-card:focus-visible,
  .dz-event-card:hover,
  .dz-event-card:focus-visible,
  .dz-member-card:hover,
  .dz-member-card:focus-visible {
    transform: none;
  }
}

/* Événements : listes et page. */
.dz-event-list {
  display: grid;
  gap: 12px;
  margin: 0 0 16px;
  padding: 0;
  list-style: none;
}

.dz-section ul.dz-event-list {
  padding-left: 0;
}

.dz-event-card {
  display: grid;
  gap: 4px;
  padding: 14px 16px;
  border: 1px solid var(--dz-line);
  border-left: 4px solid var(--dz-sky);
  border-radius: 12px;
  background: var(--dz-surface);
  color: var(--dz-text);
  text-decoration: none;
}

.dz-event-card:hover,
.dz-event-card:focus-visible {
  border-color: var(--dz-sky);
  color: var(--dz-text);
}

.dz-event-card time {
  color: var(--dz-sky);
  font-weight: 600;
}

.dz-event-card h3 {
  font-size: 1.2rem;
  overflow-wrap: anywhere;
}

.dz-event-facts {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 6px 16px;
  margin: 16px 0;
}

.dz-event-facts dt {
  color: var(--dz-muted);
}

.dz-event-facts dd {
  margin: 0;
  overflow-wrap: anywhere;
}

.dz-when {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  margin: 0;
  padding: 8px 12px 12px;
  border: 1px solid var(--dz-line);
  border-radius: 8px;
}

.dz-when legend {
  padding: 0 6px;
}

.dz-game-image {
  margin-top: 24px;
}

.dz-game-image img {
  max-width: min(100%, 360px);
  border: 1px solid var(--dz-line);
  border-radius: 8px;
}

.dz-footer-pages a {
  overflow-wrap: anywhere;
}

/* Équipe : grille de fiches. */
.dz-team-intro {
  max-width: 70ch;
}

.dz-team {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr));
  gap: 16px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}

.dz-section ul.dz-team {
  padding-left: 0;
}

.dz-team-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 20px 16px;
  border: 1px solid var(--dz-line);
  border-radius: 12px;
  background: var(--dz-surface);
  text-align: center;
}

.dz-team-card h2 {
  font-size: 1.3rem;
  overflow-wrap: anywhere;
}

.dz-team-card p {
  margin: 0;
  overflow-wrap: anywhere;
}

.dz-team-role {
  color: var(--dz-sky);
  font-weight: 600;
}

.dz-avatar {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 96px;
  height: 96px;
  border-radius: 50%;
  background: var(--dz-warden);
  color: var(--dz-text);
  font-size: 2.4rem;
  font-weight: 700;
  object-fit: cover;
}

/* Avatar copié de Discord : l'image remplit le rond. */
.dz-avatar-picture {
  overflow: hidden;
  background: var(--dz-surface);
}

.dz-avatar-picture img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Profils des membres. */
.dz-profile {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 16px 32px;
}

.dz-profile-banner {
  height: clamp(120px, 22vw, 240px);
  border-radius: 0 0 12px 12px;
  background: linear-gradient(135deg, var(--accent), var(--dz-surface)) center / cover no-repeat;
}

.dz-profile-banner[style] {
  background-size: cover;
}

.dz-profile-head {
  display: flex;
  align-items: flex-end;
  gap: 16px;
  margin-top: -48px;
}

.dz-profile-head .dz-avatar {
  flex-shrink: 0;
  border: 4px solid var(--dz-night, #070d15);
  background: var(--accent);
}

.dz-profile-head h1 {
  overflow-wrap: anywhere;
}

.dz-profile h2 {
  margin-top: 28px;
  border-bottom: 2px solid var(--accent);
  padding-bottom: 4px;
}

.dz-medals {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 16px 0;
  padding: 0;
  list-style: none;
}

.dz-medal {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px 6px 6px;
  border: 1px solid var(--dz-line);
  border-radius: 999px;
  background: var(--dz-surface);
  overflow-wrap: anywhere;
}

.dz-medal-icon {
  font-size: 1.6rem;
}

.dz-showcase .dz-medal {
  border-color: var(--accent);
}

.dz-profile-games {
  padding-left: 1.2em;
}

/* Les blocs d'un profil, dans l'ordre choisi par le membre. */
.dz-block {
  margin-top: 24px;
  padding: 4px 20px 20px;
  border: 1px solid var(--dz-line);
  border-radius: 14px;
  background: color-mix(in srgb, var(--dz-surface) 88%, transparent);
}

.dz-block > h2 {
  margin-top: 16px;
}

.dz-block-empty {
  border-style: dashed;
  background: transparent;
}

/* Profil : l'identité en tête (avatar, nom, actions), une phrase, les jeux, les rubriques, puis l'aperçu et,
   sur ordinateur, la colonne des informations courtes. Sur téléphone, une seule colonne. */
/* Avatar, nom, actions sur une ligne ; plus étroit, les actions passent sous le nom. */
.dz-profile-head {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 12px 24px;
  margin-top: -56px;
  padding: 0 8px;
}

.dz-profile-head .dz-avatar {
  width: 128px;
  height: 128px;
  font-size: 3rem;
}

.dz-profile-id {
  min-width: 0;
  padding-bottom: 4px;
}

.dz-profile-id h1 {
  margin: 0;
  font-size: clamp(2rem, 5vw, 3.2rem);
  line-height: 1;
}

.dz-profile-id > p {
  margin: 8px 0 0;
}

.dz-profile-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 10px;
  padding-bottom: 6px;
}

.dz-profile-actions .dz-respect-row {
  margin: 0;
}

.dz-profile-more {
  position: relative;
}

.dz-profile-more > summary {
  display: inline-grid;
  place-items: center;
  min-width: 44px;
  min-height: 44px;
  border: 1px solid var(--dz-line);
  border-radius: 10px;
  background: var(--dz-surface);
  font-size: 1.3rem;
  line-height: 1;
  list-style: none;
  cursor: pointer;
}

.dz-profile-more > summary::-webkit-details-marker {
  display: none;
}

.dz-profile-more > .dz-actions {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  z-index: 5;
  display: grid;
  gap: 10px;
  min-width: 210px;
  margin: 0;
  padding: 12px 14px;
  border: 1px solid var(--dz-line);
  border-radius: 12px;
  background: var(--dz-surface);
  box-shadow: 0 12px 28px rgb(0 0 0 / 40%);
}

/* Phrase et niveau, puis les jeux en pastilles : alignés sous le nom, à droite de l'avatar. */
.dz-profile-intro {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 28px;
  margin: 16px 8px 0 160px;
}

.dz-profile-phrase {
  flex: 1 1 320px;
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.dz-profile-intro .dz-level {
  flex: 0 1 300px;
  margin: 0;
}

.dz-profile-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 14px 8px 0 160px;
  padding: 0;
  list-style: none;
}

.dz-profile-chip {
  padding: 5px 12px;
  border: 1px solid color-mix(in srgb, var(--accent) 55%, var(--dz-line));
  border-radius: 999px;
  background: var(--dz-surface);
  font-size: 0.9rem;
}

.dz-profile-chip a {
  color: var(--dz-text);
  font-weight: 600;
  text-decoration: none;
}

.dz-profile-chip a::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 6px;
  border-radius: 50%;
  background: var(--accent);
  vertical-align: 1px;
}

/* Rubriques : des liens vers les blocs, qui défilent en ligne sur téléphone. */
.dz-profile-tabs {
  display: flex;
  gap: 0 24px;
  margin: 24px 0 0;
  padding: 0 8px;
  overflow-x: auto;
  border-bottom: 1px solid var(--dz-line);
  scrollbar-width: thin;
}

.dz-profile-tab {
  display: inline-flex;
  flex: none;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  border-bottom: 2px solid transparent;
  color: var(--dz-muted);
  font-weight: 600;
  text-decoration: none;
}

.dz-profile-tab:hover,
.dz-profile-tab:focus-visible {
  color: var(--dz-text);
}

.dz-profile-tab[aria-current] {
  border-bottom-color: var(--accent);
  color: var(--dz-text);
}

.dz-count {
  padding: 1px 7px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--dz-line) 70%, transparent);
  color: var(--dz-muted);
  font-size: 0.78rem;
  font-weight: 600;
}

.dz-profile-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 340px);
  gap: 0 24px;
  align-items: start;
}

.dz-profile-main,
.dz-profile-side {
  min-width: 0;
}

.dz-profile-side .dz-block {
  padding: 2px 18px 18px;
}

.dz-profile-side .dz-block > h2 {
  font-size: 1.15rem;
}

.dz-profile-side .dz-game-cards {
  grid-template-columns: minmax(0, 1fr);
}

/* Un lien de rubrique arrive sous la barre du site, pas dessous. */
.dz-profile-layout,
.dz-profile [id^="profil-"],
#livre-d-or {
  scroll-margin-top: calc(var(--dz-bar-height, 56px) + 16px);
}

/* Mise en avant : un guide (illustration à gauche) ou une image. */
.dz-featured {
  display: grid;
  grid-template-columns: minmax(0, 300px) minmax(0, 1fr);
  margin: 12px 0 0;
  overflow: hidden;
  border: 1px solid var(--dz-line);
  border-radius: 12px;
  background: color-mix(in srgb, var(--dz-night) 45%, transparent);
}

.dz-featured-plain {
  grid-template-columns: minmax(0, 1fr);
}

.dz-featured-cover img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 200px;
  object-fit: cover;
}

.dz-featured-text {
  display: grid;
  align-content: start;
  gap: 8px;
  padding: 18px 20px;
}

.dz-featured-text p {
  margin: 0;
}

.dz-featured-text h3 {
  margin: 0;
  font: 700 1.6rem/1.1 var(--dz-display);
}

.dz-featured-text h3 a {
  color: var(--dz-text);
  text-decoration: none;
}

.dz-featured-text h3 a:hover {
  text-decoration: underline;
}

.dz-featured-kicker {
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.dz-featured-image {
  display: block;
}

.dz-featured-image img {
  display: block;
  width: 100%;
  max-height: 440px;
  object-fit: cover;
}

.dz-featured-image figcaption {
  padding: 10px 14px;
  color: var(--dz-muted);
}

/* Vitrine de médailles : l'insigne en grand, le nombre en pastille. */
.dz-medals.dz-showcase {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
}

.dz-medal.dz-medal-card {
  flex-direction: column;
  justify-content: flex-start;
  gap: 6px;
  padding: 16px 10px;
  border-radius: 12px;
  text-align: center;
}

.dz-medal-badge {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 72px;
  height: 72px;
  border: 3px solid var(--accent);
  border-radius: 50%;
  background: var(--dz-night);
}

.dz-medal-badge img {
  width: 52px;
  height: 52px;
}

.dz-medal-badge .dz-medal-icon {
  font-size: 2.2rem;
}

.dz-medal-count {
  position: absolute;
  top: -4px;
  right: -10px;
  min-width: 24px;
  padding: 2px 6px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--dz-night);
  font-size: 0.75rem;
  font-weight: 700;
}

.dz-medal-name {
  font-weight: 600;
}

.dz-medal-text {
  font-size: 0.82rem;
}

/* Mes guides : une ligne par guide, le jeu et la date à droite. */
.dz-guide-list {
  display: grid;
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
}

.dz-guide-list li {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 4px 16px;
  padding: 10px 0;
  border-bottom: 1px solid var(--dz-line);
}

.dz-guide-list li:last-child {
  border-bottom: 0;
}

.dz-block-more {
  margin: 10px 0 0;
}

/* Nouveau membre : trois premiers pas pour lui, une ligne d'accueil pour les autres. */
.dz-welcome {
  margin: 24px 0 0;
  padding: 20px 22px;
  border: 1px solid var(--dz-line);
  border-radius: 14px;
  background: color-mix(in srgb, var(--dz-surface) 88%, transparent);
}

.dz-profile .dz-welcome h2 {
  margin: 0;
  padding: 0;
  border: 0;
}

.dz-welcome > p {
  margin: 6px 0 0;
}

.dz-welcome-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.dz-welcome-steps li {
  position: relative;
  padding: 16px 16px 16px 60px;
  border: 1px solid var(--dz-line);
  border-radius: 12px;
  background: color-mix(in srgb, var(--dz-night) 45%, transparent);
  counter-increment: step;
}

.dz-welcome-steps li::before {
  content: counter(step);
  position: absolute;
  top: 16px;
  left: 16px;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border: 2px solid var(--accent);
  border-radius: 50%;
  font: 700 1rem var(--dz-display);
}

.dz-welcome-steps h3 {
  margin: 0 0 4px;
  font-size: 1rem;
}

.dz-welcome-steps p {
  margin: 0 0 12px;
}

.dz-welcome-note {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
  margin: 20px 0 0;
  padding: 14px 18px;
  border: 1px dashed var(--dz-line);
  border-radius: 12px;
}

@media (max-width: 1099px) {
  .dz-profile-head {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .dz-profile-actions {
    grid-column: 2;
    padding-bottom: 0;
  }
}

@media (max-width: 899px) {
  .dz-profile-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .dz-profile-intro,
  .dz-profile-chips {
    margin-left: 8px;
  }
}

@media (max-width: 599px) {
  .dz-profile-head {
    margin-top: -44px;
  }

  .dz-profile-head .dz-avatar {
    width: 96px;
    height: 96px;
    font-size: 2.4rem;
  }

  .dz-profile-actions {
    grid-column: 1 / -1;
  }

  .dz-profile-actions > .dz-button {
    flex: 1 1 auto;
  }

  .dz-featured {
    grid-template-columns: minmax(0, 1fr);
  }

  .dz-featured-cover img {
    min-height: 0;
    aspect-ratio: 16 / 9;
  }
}

/* Cartes de jeu : une par jeu, dans la couleur du jeu. */
.dz-game-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr));
  gap: 12px;
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
}

.dz-game-card {
  padding: 14px 16px;
  border: 1px solid color-mix(in srgb, var(--accent) 55%, var(--dz-line));
  border-left: 4px solid var(--accent);
  border-radius: 12px;
  background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 22%, transparent), transparent 70%);
}

.dz-game-card-name {
  color: var(--dz-text);
  font: 700 1.25rem/1.1 var(--dz-display);
  text-transform: uppercase;
  letter-spacing: 1px;
  text-decoration: none;
}

.dz-game-card dl {
  display: grid;
  gap: 4px;
  margin: 10px 0 0;
}

.dz-game-card dl div {
  display: flex;
  flex-wrap: wrap;
  gap: 0 8px;
}

.dz-game-card dt {
  color: var(--dz-muted);
}

.dz-game-card dd {
  margin: 0;
  overflow-wrap: anywhere;
}

/* Liens et chaînes du membre. */
.dz-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
}

.dz-links a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 6px 14px;
  border: 1px solid var(--dz-line);
  border-radius: 999px;
  background: var(--dz-surface);
  color: var(--dz-text);
  text-decoration: none;
  overflow-wrap: anywhere;
}

.dz-links a:hover {
  border-color: var(--accent);
}

.dz-link-site {
  color: var(--accent);
  font-weight: 700;
}

/* Galerie du profil : une grille d'images, chacune ouvrable en grand. */
.dz-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 180px), 1fr));
  gap: 12px;
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
}

.dz-gallery figure {
  margin: 0;
}

/* Le cadre de l'image seulement : le lien « Signaler » sous la légende reste un lien de texte. */
.dz-gallery figure > a {
  display: block;
  overflow: hidden;
  border-radius: 10px;
  aspect-ratio: 4 / 3;
  background: var(--dz-surface);
}

.dz-gallery img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.dz-gallery figure > a:hover img,
.dz-gallery figure > a:focus-visible img {
  transform: scale(1.05);
}

.dz-gallery figcaption {
  margin-top: 6px;
  color: var(--dz-muted);
  font-size: 0.9rem;
  overflow-wrap: anywhere;
}

.dz-gallery-editor {
  display: grid;
  gap: 14px;
  margin: 12px 0;
  padding: 0;
  list-style: none;
}

.dz-gallery-editor li {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
}

.dz-gallery-editor img {
  border-radius: 8px;
  object-fit: cover;
}

/* Livre d'or : un message par ligne, avec l'avatar de son auteur. */
.dz-guestbook {
  display: grid;
  gap: 12px;
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
}

.dz-guestbook-message {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.dz-guestbook-message .dz-avatar {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  font-size: 1.1rem;
}

.dz-guestbook-message > div {
  min-width: 0;
  flex: 1;
}

.dz-guestbook-message p {
  margin: 0 0 4px;
  overflow-wrap: anywhere;
}

.dz-guestbook-message .dz-actions {
  justify-content: flex-start;
  align-items: center;
  gap: 8px;
  margin-top: 4px;
}

/* Activité récente et respects. */
.dz-activity {
  display: grid;
  gap: 6px;
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
}

.dz-activity li {
  overflow-wrap: anywhere;
}

.dz-respect-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  margin: 6px 0 0;
}

.dz-respects strong {
  color: var(--accent);
}

/* Mini-profil au survol d'un pseudo (hovercard.js). */
.dz-hovercard {
  --accent: var(--dz-warden-bright);
  position: absolute;
  z-index: 40;
  width: min(290px, calc(100vw - 16px));
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--accent) 55%, var(--dz-line));
  border-radius: 14px;
  background: var(--dz-surface);
  box-shadow: 0 18px 40px rgb(0 0 0 / 55%);
  color: var(--dz-text);
  pointer-events: none;
  animation: dz-card-in 0.16s ease-out;
}

.dz-hovercard-banner {
  height: 64px;
  background: linear-gradient(135deg, var(--accent), var(--dz-surface)) center / cover no-repeat;
}

.dz-hovercard-head {
  display: flex;
  align-items: flex-end;
  gap: 10px;
  margin-top: -28px;
  padding: 0 14px 10px;
}

.dz-hovercard .dz-avatar {
  width: 56px;
  height: 56px;
  border: 3px solid var(--dz-surface);
  font-size: 1.4rem;
}

.dz-hovercard-names {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  min-width: 0;
}

.dz-hovercard-name {
  font: 700 1.2rem/1.1 var(--dz-display);
  text-transform: uppercase;
  overflow-wrap: anywhere;
}

.dz-hovercard .dz-member-title {
  margin: 0;
  font-size: 0.85rem;
}

.dz-hovercard-games {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0;
  padding: 0 14px 14px;
  list-style: none;
}

.dz-hovercard-games li {
  padding: 2px 8px;
  border: 1px solid var(--dz-line);
  border-radius: 999px;
  font-size: 0.8rem;
}

@keyframes dz-card-in {
  from { opacity: 0; transform: translateY(4px); }
}

/* Signalements : lien discret sur les profils, liste dans le panel. */
.dz-report-link {
  color: var(--dz-muted);
  font-size: 0.9rem;
}

.dz-report-image {
  max-width: min(100%, 320px);
  max-height: 240px;
  border-radius: 8px;
  object-fit: contain;
}

.dz-reports {
  display: grid;
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.dz-report {
  padding: 16px;
  border: 1px solid var(--dz-line);
  border-left: 4px solid #d9705f;
  border-radius: 12px;
  background: var(--dz-surface);
}

.dz-report-detail {
  white-space: pre-line;
  overflow-wrap: anywhere;
}

/* Page « moi » : les images envoyées, avec la ligne à copier. */
.dz-me-images {
  display: grid;
  gap: 10px;
  margin: 12px 0;
  padding: 0;
  list-style: none;
}

.dz-me-images li {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.dz-me-images img {
  border-radius: 6px;
  object-fit: cover;
}

.dz-me-images code {
  overflow-wrap: anywhere;
}

.dz-me .dz-prose img {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
}

.dz-me-name {
  margin: 0;
  font: 700 clamp(1.8rem, 6vw, 2.8rem)/1 var(--dz-display);
  text-transform: uppercase;
  overflow-wrap: anywhere;
}

/* Section « Disposition » de l'éditeur : un bloc par ligne. */
.dz-member-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr));
  gap: 12px;
  margin: 16px 0;
  padding: 0;
  list-style: none;
}

.dz-member-card {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  padding: 10px 12px;
  border: 1px solid var(--dz-line);
  border-radius: 12px;
  background: var(--dz-surface);
  color: var(--dz-text);
  text-decoration: none;
}

.dz-member-card .dz-avatar {
  width: 40px;
  height: 40px;
  font-size: 1.1rem;
}

.dz-member-name {
  overflow-wrap: anywhere;
}

.dz-member-medals {
  display: flex;
  gap: 4px;
}

/* Statistiques en direct. */
/* Chiffres en direct : des pastilles. */
.dz-live {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
}

.dz-chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin: 0;
}

.dz-chips[hidden] {
  display: none;
}

/* En bloc en ligne, pas en flex : le texte et les nombres restent une seule phrase qui passe à la ligne. */
.dz-chip {
  display: inline-block;
  min-height: 32px;
  padding: 5px 14px;
  text-align: center;
  border: 1px solid var(--dz-line);
  border-radius: 999px;
  background: rgb(15 26 40 / 82%);
  color: var(--dz-text);
  font: 600 1rem/1.2 var(--dz-display);
  text-decoration: none;
  text-shadow: none;
  overflow-wrap: anywhere;
}

a.dz-chip:hover {
  border-color: var(--dz-warden-bright);
  color: var(--dz-text);
}

.dz-chip strong {
  color: var(--dz-sky);
}

.dz-live-dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  margin-right: 6px;
  border-radius: 50%;
  background: var(--dz-live);
  box-shadow: 0 0 0 3px rgb(59 165 93 / 25%);
}

.dz-war-side {
  display: grid;
  grid-template-columns: 7rem 1fr auto;
  align-items: center;
  gap: 12px;
  margin: 8px 0;
}

.dz-war-side progress {
  width: 100%;
  height: 14px;
}

.dz-war-winner {
  font-size: 1.3rem;
  font-weight: 700;
}

@media (max-width: 480px) {
  .dz-war-side {
    grid-template-columns: 1fr auto;
  }

  .dz-war-side progress {
    grid-column: 1 / -1;
    grid-row: 2;
  }
}

/* Passe design : un même style pour toutes les cartes et un trait d'accent sous les titres de section. */
.dz-article-card,
.dz-event-card,
.dz-team-card,
.dz-member-card {
  border-radius: var(--dz-radius);
  background: linear-gradient(180deg, var(--dz-surface-2), var(--dz-surface) 55%);
  box-shadow: 0 10px 24px rgb(0 0 0 / 25%);
}

.dz-article-card,
.dz-event-card,
.dz-member-card {
  transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.dz-article-card:hover,
.dz-article-card:focus-visible,
.dz-event-card:hover,
.dz-event-card:focus-visible,
.dz-member-card:hover,
.dz-member-card:focus-visible {
  border-color: var(--dz-warden-bright);
  box-shadow: 0 14px 30px rgb(0 0 0 / 35%);
  transform: translateY(-2px);
}

.dz-event-card {
  border-left-color: var(--dz-warden-bright);
}

/* Les cartes de membres d’une même ligne ont la même hauteur. */
.dz-member-list .dz-member-card {
  height: 100%;
}

.dz-member-name {
  font-family: var(--dz-display);
  font-weight: 700;
  font-size: 1.1rem;
}

.dz-section > h2::after {
  content: "";
  display: block;
  width: 48px;
  height: 3px;
  margin-top: 10px;
  border-radius: 2px;
  background: var(--dz-warden-bright);
}

/* Boutique. */
.dz-section.dz-shop-group {
  padding-top: 8px;
  padding-bottom: 24px;
}

.dz-shop-balance {
  font-size: 1.1rem;
}

.dz-shop-balance strong {
  color: var(--dz-sky);
  font: 700 1.5rem/1 var(--dz-display);
}

.dz-shop-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr));
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.dz-section ul.dz-shop-list {
  padding-left: 0;
}

.dz-shop-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 16px;
  border: 1px solid var(--dz-line);
  border-radius: var(--dz-radius);
  background: linear-gradient(180deg, var(--dz-surface-2), var(--dz-surface) 55%);
  box-shadow: 0 10px 24px rgb(0 0 0 / 25%);
  overflow-wrap: anywhere;
}

.dz-shop-card h3 {
  font-size: 1.4rem;
}

.dz-shop-card p {
  margin: 0;
}

.dz-shop-price strong {
  color: var(--dz-sky);
  font-family: var(--dz-display);
  font-size: 1.2rem;
}

.dz-shop-action {
  margin-top: auto !important;
}

.dz-shop-preview {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 96px;
  padding: 12px;
  border-radius: 8px;
  background: var(--dz-night);
  text-align: center;
}

.dz-preview-title {
  color: var(--dz-sky);
  font: 600 1.1rem/1.2 var(--dz-display);
  letter-spacing: 1px;
}

.dz-preview-name {
  font: 700 1.5rem/1.1 var(--dz-display);
}

img.dz-shop-preview {
  width: 100%;
  height: 120px;
  padding: 0;
  object-fit: cover;
}

.dz-preview-empty {
  font-size: 2.4rem;
}

.dz-shop-confirm .dz-shop-preview {
  max-width: 420px;
  margin: 16px 0;
}

/* Cosmétiques portés : pseudo en couleur ou en dégradé, cadre d'avatar, titre. */
.dz-name-color {
  color: var(--name-1);
}

@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  .dz-name-gradient {
    background: linear-gradient(90deg, var(--name-1), var(--name-2));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
  }
}

.dz-framed {
  position: relative;
  display: inline-flex;
  flex-shrink: 0;
}

/* Présence sur le site : un point vert en bas à droite de l'avatar (environ un quart de sa taille), au-dessus du cadre. */
.dz-presence-wrap {
  position: relative;
  display: inline-flex;
  flex-shrink: 0;
}

.dz-presence {
  position: absolute;
  right: 4%;
  bottom: 4%;
  z-index: 1;
  width: 24%;
  min-width: 10px;
  max-width: 22px;
  aspect-ratio: 1;
  border: 2px solid var(--dz-night, #070d15);
  border-radius: 50%;
  background: #3ba55d;
}

.dz-profile-head .dz-presence {
  border-width: 3px;
}

/* « Membre depuis … · En ligne » : le point médian vient d'ici, le texte de la date reste entier. */
.dz-profile-head .dz-presence-text::before {
  content: " · ";
}

.dz-hovercard .dz-presence-text {
  color: var(--dz-muted);
  font-size: 0.85rem;
}

/* Page Membres : « En ligne » puis « Hors ligne », chacun avec son nombre. */
.dz-members-part + .dz-members-part {
  margin-top: 28px;
}

.dz-members-heading {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 20px 0 12px;
  font-size: 1.15rem;
}

.dz-members-total {
  padding: 1px 9px;
  border: 1px solid var(--dz-line);
  border-radius: 999px;
  color: var(--dz-muted);
  font-size: 0.85rem;
  font-weight: 600;
}

.dz-presence-count::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 8px;
  border-radius: 50%;
  background: #3ba55d;
  vertical-align: 1px;
}

.dz-presence-none::before {
  background: var(--dz-muted);
}

.dz-frame {
  position: absolute;
  inset: -14%;
  width: 128%;
  height: 128%;
  pointer-events: none;
}

.dz-member-title {
  margin: 4px 0 0;
  color: var(--dz-sky);
  font: 600 1.05rem/1.2 var(--dz-display);
  letter-spacing: 1px;
}

.dz-purchases {
  display: grid;
  gap: 10px;
  padding-left: 20px;
}

/* Audit UI : zones tactiles du bas de page, pages vides, boutons de l'accueil, icônes, erreurs sous les champs. */
.dz-footer-col ul a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}

.dz-footer-pages a {
  display: inline-block;
  padding: 10px 0;
}

.dz-empty > :last-child {
  margin-bottom: 0;
}

.dz-empty .dz-button-discord {
  margin-top: 4px;
}

@media (max-width: 560px) {
  .dz-hero-actions .dz-button {
    width: min(100%, 300px);
  }
}

.dz-icon {
  display: block;
  width: 1.5em;
  height: 1.5em;
}

.dz-medal-icon {
  display: inline-flex;
  color: var(--dz-sky);
}

.dz-preview-empty {
  color: var(--dz-sky);
  font-size: 2rem;
}

[aria-invalid="true"] {
  border-color: #ff8a8a !important;
  box-shadow: 0 0 0 2px rgb(255 138 138 / 35%);
}

.dz-field-error {
  display: block;
  margin-top: 6px;
  color: #ffb4b4;
  font-weight: 600;
  font-size: 0.95rem;
}

/* Participants d'un événement (page publique) et présences (panel). */
.dz-participants {
  margin-top: 32px;
}

.dz-signups {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  margin: 12px 0;
  padding: 0;
  list-style: none;
}

.dz-signups li {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  overflow-wrap: anywhere;
}

.dz-signups .dz-avatar {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  font-size: 0.9rem;
}

.dz-participant-list {
  display: grid;
  gap: 12px;
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
}

.dz-participant-list li {
  padding: 12px 16px;
  border: 1px solid var(--dz-line);
  border-radius: 8px;
}

.dz-participant-list p {
  margin: 0;
  overflow-wrap: anywhere;
}

.dz-participant-list .dz-actions {
  justify-content: flex-start;
  gap: 8px;
  margin-top: 8px;
}

/* Niveau du profil : badge, barre jusqu'au suivant, détail de l'expérience. */
.dz-level {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-top: 12px;
}

.dz-level-badge {
  display: inline-grid;
  place-items: center;
  flex-shrink: 0;
  min-width: 44px;
  height: 44px;
  padding: 0 6px;
  border: 2px solid var(--accent, var(--dz-warden-bright));
  border-radius: 50%;
  font-family: var(--dz-display);
  font-size: 1.2rem;
  font-weight: 700;
}

.dz-level-text {
  flex: 1;
  min-width: 0;
}

.dz-level-text p {
  margin: 0 0 4px;
}

.dz-level-bar {
  overflow: hidden;
  height: 8px;
  margin: 4px 0;
  border-radius: 4px;
  background: var(--dz-line);
}

.dz-level-bar span {
  display: block;
  height: 100%;
  background: var(--accent, var(--dz-warden-bright));
}

.dz-xp-detail ul {
  margin: 6px 0 0;
  padding-left: 18px;
}

/* Succès : liste du profil, vitrine et panel. La rareté colore le liseré de l'icône. */
.dz-achievements,
.dz-holders {
  display: grid;
  gap: 12px;
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
}

.dz-achievement {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  min-width: 0;
  --rarity: var(--dz-muted);
}

.dz-achievement > div {
  flex: 1;
  min-width: 0;
  overflow-wrap: anywhere;
}

.dz-achievement p {
  margin: 0 0 4px;
}

.dz-achievement-icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border: 2px solid var(--rarity);
  border-radius: 10px;
  object-fit: cover;
}

.dz-achievement-icon-empty {
  display: inline-grid;
  place-items: center;
  font-size: 1.4rem;
  color: var(--rarity);
}

.dz-rarity-uncommon { --rarity: #4caf6e; }
.dz-rarity-rare { --rarity: #3f8fd8; }
.dz-rarity-epic { --rarity: #a66be0; }
.dz-rarity-legendary { --rarity: #e0a43a; }

.dz-trophies {
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr));
}

.dz-achievements-next .dz-achievement-icon {
  opacity: 0.6;
}

/* « Mon profil » : un sommaire, puis une colonne de cartes ; la barre « Enregistrer » reste à portée. */
.dz-profile-editor {
  display: grid;
  gap: 20px;
  align-items: start;
}

.dz-edit-main {
  display: grid;
  gap: 20px;
  min-width: 0;
  max-width: 860px;
}

.dz-edit-main > form {
  display: grid;
  gap: 20px;
}

.dz-edit-head h1 {
  margin: 0 0 12px;
}

.dz-edit-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
}

.dz-edit-links a,
.dz-edit-nav a {
  display: inline-block;
  padding: 6px 14px;
  border: 1px solid var(--dz-line);
  border-radius: 999px;
  color: var(--dz-text);
  font-size: 0.92rem;
  text-decoration: none;
  background: color-mix(in srgb, var(--dz-surface) 70%, transparent);
}

.dz-edit-links a:hover,
.dz-edit-links a:focus-visible,
.dz-edit-nav a:hover,
.dz-edit-nav a:focus-visible {
  border-color: var(--dz-warden-bright);
  color: var(--dz-text);
}

/* Sur téléphone, le sommaire est une bande qui défile de côté, sous le titre. */
.dz-edit-nav {
  min-width: 0;
}

.dz-edit-nav ul {
  display: flex;
  gap: 6px;
  margin: 0;
  padding: 0 0 4px;
  overflow-x: auto;
  list-style: none;
  scrollbar-width: thin;
}

.dz-edit-nav li {
  flex-shrink: 0;
}

.dz-edit-nav a {
  color: var(--dz-muted);
}

@media (min-width: 1000px) {
  .dz-profile-editor {
    grid-template-columns: 190px minmax(0, 1fr);
    gap: 24px 32px;
  }

  .dz-edit-head {
    grid-column: 1 / -1;
  }

  .dz-edit-nav ul {
    overflow: visible;
  }

  .dz-edit-nav {
    position: sticky;
    top: calc(var(--dz-bar-height, 56px) + 24px);
  }

  .dz-edit-nav ul {
    flex-direction: column;
    gap: 2px;
  }

  .dz-edit-nav a {
    display: block;
    padding: 7px 12px;
    border: 0;
    border-left: 2px solid var(--dz-line);
    border-radius: 0;
    background: none;
  }

  .dz-edit-nav a:hover,
  .dz-edit-nav a:focus-visible {
    border-left-color: var(--dz-warden-bright);
  }
}

/* Une carte par partie, titre en tête. */
.dz-edit-card {
  display: grid;
  gap: 14px;
  min-width: 0;
  margin: 0;
  padding: 20px 24px 24px;
  border: 1px solid var(--dz-line);
  border-radius: 14px;
  background: color-mix(in srgb, var(--dz-surface) 88%, transparent);
  scroll-margin-top: calc(var(--dz-bar-height, 56px) + 16px);
}

.dz-edit-card > h2 {
  margin: 0;
  font-size: 1.2rem;
}

.dz-edit-card h3 {
  margin: 8px 0 0;
  font-size: 1rem;
}

.dz-edit-card h3 .dz-muted {
  font-size: 0.85rem;
  font-weight: 400;
}

.dz-edit-card > p,
.dz-edit-card .dz-game-image > p {
  margin: 0;
}

/* Un champ : son intitulé au-dessus, toute la largeur. */
.dz-edit-card label {
  display: grid;
  gap: 6px;
  min-width: 0;
  font-weight: 600;
}

.dz-edit-card label .dz-muted {
  font-weight: 400;
}

.dz-edit-card .dz-field {
  width: 100%;
  min-width: 0;
  max-width: 100%;
}

.dz-edit-card textarea.dz-field {
  padding: 10px;
  line-height: 1.5;
  resize: vertical;
}

.dz-edit-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr));
  gap: 12px 16px;
}

/* Cases et couleur : une ligne, la case ou la pastille à gauche, l'explication dessous. */
.dz-edit-card .dz-check-row,
.dz-edit-card .dz-color-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-top: 14px;
  border-top: 1px solid var(--dz-line);
  font-weight: 400;
}

.dz-check-row > span,
.dz-color-row > span {
  display: grid;
  gap: 2px;
}

.dz-check-row input[type="checkbox"],
.dz-edit-card .dz-check input[type="checkbox"],
.dz-game-edit-head input[type="checkbox"],
.dz-choice-chips input[type="checkbox"] {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  margin: 0;
  accent-color: var(--dz-warden-bright);
}

.dz-color-row input[type="color"] {
  flex-shrink: 0;
  width: 52px;
  height: 40px;
  padding: 2px;
  border: 1px solid var(--dz-line);
  border-radius: 10px;
  background: var(--dz-night);
  cursor: pointer;
}

/* Mes jeux : une carte par jeu, au liseré de sa couleur ; la fiche ne s'ouvre que pour un jeu coché. */
.dz-game-edit-list {
  display: grid;
  gap: 10px;
}

.dz-game-edit {
  padding: 12px 16px;
  border: 1px solid var(--dz-line);
  border-left: 4px solid var(--accent, var(--dz-warden-bright));
  border-radius: 10px;
  background: color-mix(in srgb, var(--dz-night) 40%, transparent);
}

.dz-edit-card .dz-game-edit-head {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.05rem;
  cursor: pointer;
}

.dz-game-edit-fields {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 190px), 1fr));
  gap: 10px 14px;
  margin-top: 12px;
}

.dz-game-edit-fields label {
  font-weight: 500;
  font-size: 0.92rem;
}

.dz-game-edit:not(:has(input[name="game"]:checked)) .dz-game-edit-fields {
  display: none;
}

/* Liens : un numéro, l'intitulé, l'adresse. */
.dz-link-list {
  display: grid;
  gap: 10px;
}

.dz-link-row {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) minmax(0, 2fr);
  align-items: end;
  gap: 8px 12px;
}

.dz-link-row label {
  font-weight: 500;
  font-size: 0.88rem;
}

.dz-link-index {
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 38px;
  color: var(--dz-muted);
  font-weight: 700;
}

@media (max-width: 599px) {
  .dz-link-row {
    grid-template-columns: 28px minmax(0, 1fr);
  }

  .dz-link-row label:last-child {
    grid-column: 2;
  }
}

/* Sur grand écran, les intitulés des colonnes ne s'affichent qu'à la première ligne (toujours lus à voix haute). */
@media (min-width: 600px) {
  .dz-link-list .dz-link-row:not(:first-child) .dz-link-caption,
  .dz-more-links .dz-link-caption {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }
}

.dz-more-links summary {
  width: fit-content;
  color: var(--dz-warden-bright);
  cursor: pointer;
}

.dz-more-links[open] summary {
  margin-bottom: 10px;
}

/* Vitrines : des pastilles à cocher. */
.dz-choice-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.dz-edit-card .dz-choice-chips label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  border: 1px solid var(--dz-line);
  border-radius: 999px;
  font-weight: 500;
  cursor: pointer;
  background: color-mix(in srgb, var(--dz-night) 40%, transparent);
}

.dz-edit-card .dz-choice-chips label:has(input:checked) {
  border-color: var(--dz-warden-bright);
  background: color-mix(in srgb, var(--dz-warden-bright) 16%, transparent);
}

/* Disposition : une ligne par bloc. */
.dz-layout-list {
  display: grid;
}

.dz-layout-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 8px 16px;
  padding: 10px 0;
  border-top: 1px solid var(--dz-line);
}

.dz-layout-name {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  overflow-wrap: anywhere;
}

.dz-edit-card .dz-layout-position {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 400;
  color: var(--dz-muted);
}

.dz-layout-position .dz-field {
  width: auto;
}

.dz-edit-card .dz-check {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 400;
}

@media (max-width: 479px) {
  .dz-layout-row {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .dz-layout-name {
    grid-column: 1 / -1;
  }
}

/* La barre « Enregistrer » colle au bas de l'écran tant que le formulaire est visible. */
.dz-save-bar {
  position: sticky;
  bottom: 12px;
  z-index: 5;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 16px;
  padding: 12px 16px 12px 20px;
  border: 1px solid var(--dz-line);
  border-radius: 14px;
  background: color-mix(in srgb, var(--dz-night) 92%, transparent);
  box-shadow: 0 12px 32px rgb(0 0 0 / 45%);
  backdrop-filter: blur(8px);
}

.dz-save-bar p {
  margin: 0;
  font-size: 0.88rem;
}

.dz-save-bar .dz-button {
  margin-left: auto;
}

/* « Modifications non enregistrées » (site/unsaved.js) : visible aussi sur téléphone, à côté du bouton. */
.dz-unsaved {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.88rem;
  font-weight: 600;
  color: #f2c36b;
}

.dz-unsaved::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
}

.dz-unsaved[hidden] {
  display: none;
}

@media (max-width: 599px) {
  .dz-save-bar p {
    display: none;
  }

  .dz-save-bar {
    padding: 8px;
  }
}

/* Bannière, galerie, fond : les aperçus prennent la largeur de la carte. */
.dz-edit-card.dz-game-image {
  margin-top: 0;
}

.dz-banner-preview img[data-preview] {
  display: block;
  width: 100%;
  max-height: 220px;
  border-radius: 10px;
  object-fit: cover;
}

.dz-edit-card .dz-gallery-editor {
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr));
  margin: 0;
}

.dz-edit-card .dz-gallery-editor li {
  align-items: stretch;
  padding: 10px;
  border: 1px solid var(--dz-line);
  border-radius: 10px;
}

.dz-edit-card .dz-gallery-editor img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
}

.dz-edit-card .dz-gallery-editor .dz-inline-form:first-of-type {
  display: grid;
  width: 100%;
  gap: 8px;
}

/* Panel : la page « Modération », une ligne par file d'attente. */
.dz-queues {
  display: grid;
  gap: 12px;
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
}

.dz-queue {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 4px 16px;
  padding: 16px 20px;
  border: 1px solid var(--dz-line);
  border-radius: 12px;
  background: color-mix(in srgb, var(--dz-surface) 88%, transparent);
}

.dz-queue a {
  font-weight: 700;
}

.dz-queue strong {
  font-size: 1.4rem;
}

.dz-queue .dz-muted {
  grid-column: 1 / -1;
}

/* Panel : le tableau des pouvoirs par grade, qui défile de côté sur téléphone, la première colonne restant visible. */
.dz-grade-table {
  overflow-x: auto;
  border: 1px solid var(--dz-line);
  border-radius: 12px;
}

.dz-grade-table table {
  width: 100%;
  min-width: 720px;
  border-collapse: collapse;
}

.dz-grade-table th,
.dz-grade-table td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--dz-line);
  text-align: center;
  vertical-align: middle;
}

.dz-grade-table th[scope="row"],
.dz-grade-table thead th:first-child {
  position: sticky;
  left: 0;
  z-index: 1;
  min-width: 220px;
  text-align: left;
  font-weight: 500;
  background: var(--dz-surface);
}

.dz-grade-table thead th {
  font-size: 0.85rem;
  color: var(--dz-muted);
}

.dz-grade-group th {
  padding-top: 18px;
  text-align: left;
  font-family: var(--dz-display);
  letter-spacing: 0.04em;
  color: var(--dz-warden-bright);
}

.dz-grade-table input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--dz-warden-bright);
}

/* Demandes d'éditeur de guide : une carte par demande ou par éditeur. */
.dz-editor-requests {
  display: grid;
  gap: 16px;
  margin: 12px 0 24px;
  padding: 0;
  list-style: none;
}

.dz-editor-requests h2,
.dz-editor-requests h3 {
  margin: 0;
  font-size: 1.05rem;
}

.dz-write-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
}

/* Format d'un guide (guide, tutoriel, astuce) et filtre de la liste des guides d'un jeu. */
.dz-article-card .dz-format {
  align-self: flex-start;
  margin-bottom: 6px;
}

.dz-format-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 12px 0 20px;
}

.dz-format-filter a {
  padding: 5px 14px;
  border: 1px solid var(--dz-line);
  border-radius: 999px;
  color: var(--dz-muted);
  text-decoration: none;
}

.dz-format-filter a[aria-current="page"],
.dz-format-filter a:hover,
.dz-format-filter a:focus-visible {
  border-color: var(--dz-warden-bright);
  color: var(--dz-text);
}

.dz-review-preview {
  padding: 16px 20px;
  border: 1px solid var(--dz-line);
  border-radius: 12px;
}

/* Icône d'un grade, devant son nom : de la couleur du badge. */
.dz-grade-icon {
  width: 1em;
  height: 1em;
  margin-right: .3em;
  vertical-align: -.14em;
  fill: currentColor;
}

/* Badge de grade : sa couleur (--grade-color) est réglée dans Administration → Grades. */
.dz-grade {
  border-color: var(--grade-color, var(--dz-line));
  color: var(--grade-color, var(--dz-text));
  font-weight: 600;
}

/* Administration → Grades : la liste, du plus haut au plus bas. */
.dz-grade-list {
  display: grid;
  gap: 10px;
  margin: 0 0 24px;
  padding: 0;
  list-style: none;
}

.dz-grade-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 4px 16px;
  padding: 12px 16px;
  border: 1px solid var(--dz-line);
  border-radius: 12px;
  background: color-mix(in srgb, var(--dz-surface) 88%, transparent);
}

.dz-grade-row-name {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.dz-grade-row > p {
  margin: 0;
}

.dz-grade-row .dz-actions {
  grid-column: 2;
  grid-row: 1 / span 3;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
}

.dz-grade-row .dz-actions form {
  margin: 0;
}

.dz-grade-row .dz-actions .dz-small-button {
  line-height: 1.2;
}

@media (max-width: 640px) {
  .dz-grade-row {
    grid-template-columns: 1fr;
  }

  .dz-grade-row .dz-actions {
    grid-column: 1;
    grid-row: auto;
    justify-content: flex-start;
  }
}

/* Fiche d'un grade : nom et description côte à côte, le reste sur toute la largeur. */
.dz-grade-identity > :not(label:has(> input[name="name"]), label:has(> textarea)) {
  grid-column: 1 / -1;
}

.dz-grade-identity input[type="color"] {
  width: 4.5rem;
  height: 2.5rem;
  padding: 2px;
}

.dz-grade-identity > p {
  margin: 0;
}

/* Fiche d'un grade : icônes au choix, aperçu du badge, pouvoirs expliqués. */
.dz-icon-choices {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(7.5rem, 1fr));
  gap: 6px;
  margin: 0;
  padding: 10px 12px 12px;
  border: 1px solid var(--dz-line);
  border-radius: 10px;
}

.dz-panel-form .dz-icon-choice {
  display: flex;
  align-items: center;
  gap: 6px;
  min-height: 2.25rem;
  padding: 4px 8px;
  border-radius: 8px;
  font-weight: 400;
  cursor: pointer;
}

.dz-icon-choice:has(input:checked) {
  background: color-mix(in srgb, var(--dz-text) 10%, transparent);
}

.dz-icon-choice .dz-grade-icon {
  width: 1.2em;
  height: 1.2em;
  margin: 0;
}

.dz-grade-preview {
  margin: 0;
}

.dz-power-group {
  margin: 0;
  padding: 10px 14px 4px;
  border: 1px solid var(--dz-line);
  border-radius: 10px;
}

.dz-power-group legend {
  padding: 0 6px;
  font-weight: 600;
}

.dz-check-all {
  margin-left: 6px;
  font-weight: 400;
}

.dz-power-list {
  display: grid;
  gap: 10px;
  margin: 6px 0 10px;
  padding: 0;
  list-style: none;
}

.dz-power-list label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
}

.dz-power-list input[type="checkbox"] {
  flex: none;
  width: 1.1rem;
  height: 1.1rem;
  margin: 0;
}

.dz-power-help {
  margin: 2px 0 0 1.7rem;
  font-size: .9rem;
}

.dz-grade-opens,
.dz-grade-members {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.dz-grade-table th a {
  color: inherit;
}

/* Page « Nouveautés » : une carte par mise à jour, la plus récente en haut. */
.dz-changelog {
  max-width: 820px;
}

.dz-changelog-entry {
  margin-top: 18px;
  padding: 18px 24px 20px;
  border: 1px solid var(--dz-line);
  border-radius: 14px;
  background: color-mix(in srgb, var(--dz-surface) 88%, transparent);
  scroll-margin-top: calc(var(--dz-bar-height, 56px) + 16px);
}

.dz-changelog-entry h2 {
  margin: 0;
  font-size: 1.3rem;
}

.dz-changelog-entry > p {
  margin: 4px 0 12px;
}

.dz-changelog-entry ul {
  display: grid;
  gap: 6px;
  margin: 0;
  padding-left: 1.2em;
}

/* Boîte à idées (/idees) : filtres en puces, une carte par idée avec ses soutiens à gauche. */
.dz-idea-propose > summary {
  cursor: pointer;
  font: 600 1.15rem/1.3 var(--dz-display);
}

.dz-idea-propose[open] > summary {
  margin-bottom: 4px;
}

.dz-idea-toolbar {
  display: grid;
  gap: 10px;
  margin: 24px 0 16px;
}

.dz-idea-filters {
  justify-content: flex-start;
}

.dz-idea-filters .dz-chip {
  min-height: 32px;
  font-size: 0.95rem;
}

.dz-idea-filters .dz-chip[aria-current="page"] {
  border-color: var(--dz-warden-bright);
  background: var(--dz-warden);
}

.dz-ideas {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.dz-idea {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr);
  gap: 16px;
  padding: 16px 20px;
  border: 1px solid var(--dz-line);
  border-radius: var(--dz-radius);
  background: color-mix(in srgb, var(--dz-surface) 88%, transparent);
  scroll-margin-top: calc(var(--dz-bar-height, 56px) + 16px);
}

.dz-idea-main {
  min-width: 0;
}

.dz-idea-main h1,
.dz-idea-main h2 {
  margin: 0 0 6px;
  overflow-wrap: anywhere;
}

.dz-idea-main h2 {
  font-size: 1.2rem;
}

.dz-idea-main h2 a {
  color: var(--dz-text);
  text-decoration: none;
}

.dz-idea-main h2 a:hover {
  color: var(--dz-sky);
  text-decoration: underline;
}

.dz-idea-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 8px;
  margin: 0 0 8px;
}

.dz-idea-excerpt {
  margin: 0;
  color: var(--dz-muted);
  overflow-wrap: anywhere;
}

.dz-idea-votes {
  display: grid;
  justify-items: center;
  align-content: start;
  gap: 6px;
  text-align: center;
}

.dz-idea-vote {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  min-width: 72px;
  min-height: 44px;
  padding: 6px 8px;
  border: 1px solid var(--dz-line);
  border-radius: 10px;
  background: var(--dz-night);
  color: var(--dz-text);
  font: 600 0.85rem/1.1 var(--dz-display);
  text-decoration: none;
  cursor: pointer;
}

.dz-idea-vote:hover,
.dz-idea-vote:focus-visible {
  border-color: var(--dz-warden-bright);
  color: var(--dz-text);
}

.dz-idea-vote[aria-pressed="true"] {
  border-color: var(--dz-warden-bright);
  background: var(--dz-warden);
}

.dz-idea-arrow {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.dz-idea-count {
  margin: 0;
  color: var(--dz-muted);
  font-size: 0.85rem;
  line-height: 1.2;
}

.dz-idea-count strong {
  display: block;
  color: var(--dz-text);
  font: 700 1.3rem/1.1 var(--dz-display);
}

.dz-idea-status-review {
  border-color: #c9a227;
  color: #f3d77a;
}

.dz-idea-status-planned {
  border-color: var(--dz-warden-bright);
  color: var(--dz-sky);
}

.dz-idea-status-done {
  border-color: var(--dz-live);
  color: #8fe0a8;
}

.dz-idea-status-refused {
  border-color: #d9705f;
  color: #ffb3a6;
}

.dz-idea-answered {
  border-color: var(--dz-sky);
}

.dz-idea-full {
  margin-bottom: 20px;
}

.dz-idea-full h1 {
  font-size: clamp(1.5rem, 1.1rem + 2vw, 2.25rem);
  line-height: 1.15;
}

.dz-idea-response {
  margin: 0 0 20px;
  padding: 16px 20px;
  border-left: 4px solid var(--dz-warden-bright);
  border-radius: 6px;
  background: color-mix(in srgb, var(--dz-warden) 22%, var(--dz-surface));
}

.dz-idea-response h2 {
  margin: 0 0 8px;
  font-size: 1.1rem;
}

.dz-idea-page .dz-edit-card {
  margin-bottom: 20px;
}

@media (max-width: 640px) {
  .dz-idea {
    grid-template-columns: 76px minmax(0, 1fr);
    gap: 12px;
    padding: 14px;
  }

  .dz-idea-votes > form,
  .dz-idea-vote {
    width: 100%;
  }

  .dz-idea-vote {
    min-width: 0;
    padding: 6px 4px;
  }
}

/* Page Voter (/voter) : les étapes du vote Top Serveurs. */
.dz-vote-page {
  max-width: 820px;
}

.dz-vote-reward {
  margin-bottom: 4px;
  font-size: 1.1rem;
  font-weight: 600;
}

.dz-vote-steps {
  display: grid;
  gap: 16px;
  margin: 24px 0;
  padding: 0;
  list-style: none;
  counter-reset: dz-vote-step;
}

.dz-vote-steps > li {
  position: relative;
  min-width: 0;
  padding: 20px 24px 20px 72px;
  border: 1px solid var(--dz-line);
  border-radius: 14px;
  background: color-mix(in srgb, var(--dz-surface) 88%, transparent);
  counter-increment: dz-vote-step;
}

.dz-vote-steps > li::before {
  position: absolute;
  top: 20px;
  left: 22px;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--dz-warden) 35%, var(--dz-surface));
  color: var(--dz-text);
  font-family: var(--dz-display);
  font-weight: 700;
  content: counter(dz-vote-step);
}

.dz-vote-steps h2 {
  margin: 4px 0 8px;
  font-size: 1.15rem;
}

.dz-vote-steps p:last-child,
.dz-vote-steps form:last-child {
  margin-bottom: 0;
}

.dz-vote-name-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.dz-vote-name {
  padding: 6px 14px;
  border: 1px solid var(--dz-line);
  border-radius: 8px;
  background: var(--dz-night);
  color: var(--dz-warden-bright);
  font-family: ui-monospace, 'Cascadia Mono', Consolas, monospace;
  font-size: 1.2rem;
  font-weight: 700;
  overflow-wrap: anywhere;
}

.dz-vote-today strong {
  color: var(--dz-warden-bright);
}

.dz-vote-details {
  margin-top: 8px;
}

.dz-vote-details summary {
  cursor: pointer;
  font-weight: 600;
}

@media (max-width: 640px) {
  .dz-vote-steps > li {
    padding: 64px 16px 16px;
  }

  .dz-vote-steps > li::before {
    top: 18px;
    left: 16px;
  }
}

/* Bouton « Voter » de l'accueil : le gain d'un vote en pastille. */
.dz-button-vote {
  gap: 10px;
}

.dz-vote-gain {
  padding: 2px 8px;
  border-radius: 999px;
  background: rgb(240 192 64 / 16%);
  color: #f3cf6a;
  font-size: 0.9rem;
  letter-spacing: 0.5px;
}

/* Bouton « Voter » de la barre, juste avant le compte ; sur téléphone, il passe en tête du menu. */
.dz-bar .dz-vote-link {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 12px;
  border: 1px solid rgb(240 192 64 / 45%);
  border-radius: 6px;
  white-space: nowrap;
}

.dz-bar .dz-vote-link:hover {
  background: var(--dz-surface);
}

.dz-bar .dz-vote-link[aria-current="page"] {
  border-color: #f3cf6a;
}

.dz-bar .dz-vote-link .dz-vote-gain,
.dz-mobile-menu .dz-vote-gain {
  font-size: 0.8rem;
}

@media (max-width: 560px) {
  .dz-bar .dz-vote-link {
    display: none;
  }
}

/* Petite carte d'invitation au vote, en bas à droite (site/invitation-vote.js). */
.dz-vote-nudge {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 20;
  width: min(340px, calc(100vw - 32px));
  box-sizing: border-box;
  padding: 16px;
  border: 1px solid var(--dz-line);
  border-radius: var(--dz-radius);
  background: var(--dz-surface);
  box-shadow: 0 12px 32px rgb(0 0 0 / 45%);
}

.dz-vote-nudge[hidden] {
  display: none;
}

.dz-vote-nudge p {
  margin: 0;
}

.dz-vote-nudge-actions {
  display: flex;
  gap: 8px;
  margin-top: 12px !important;
}

.dz-vote-nudge a.dz-small-button {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.dz-vote-nudge .dz-vote-nudge-later {
  border-color: var(--dz-line);
  background: transparent;
}

.dz-vote-nudge .dz-vote-nudge-later:hover {
  background: var(--dz-surface-2);
}
