/* Amakya v2 : « interface du jeu, avec ses images ». Fond sombre chaud, panneaux parchemin encadrés de bois,
   boutons orange Dofus. Aucun JavaScript, aucun style en ligne. Composants documentés dans docs/DESIGN.md. */

:root {
  --fond-haut: #1b120c;
  --fond-bas: #241810;
  --sombre: #2a1b11;
  --sombre-2: #3a2616;
  --parchemin: #f3e7cc;
  --parchemin-2: #ebdcb8;
  --parchemin-3: #e0cfa5;
  --encre: #2b1b10;
  --encre-douce: #5b4430;
  --bois: #5b3a1f;
  --bois-clair: #7a5230;
  --filet: #b88a55;
  --or: #e2b04a;
  --or-clair: #f1cd7a;
  --orange: #f0891f;
  --orange-fonce: #c96a0f;
  --creme: #fff4de;
  --vert: #58a33b;
  --vert-fonce: #2f6a1a;
  --rouge: #c9452b;
  --rouge-fonce: #8f2a16;
  --lien: #9c4a0e;
  --texte-sombre: #e9dcc0;
  --police-titre: 'Alegreya SC', Georgia, 'Times New Roman', serif;
  --police-texte: 'Source Sans 3', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --rayon: 8px;
  --largeur: 1200px;
  --ombre: 0 6px 18px rgba(0, 0, 0, 0.45);
}

/* Base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; background: var(--fond-haut); }
body {
  margin: 0; min-height: 100vh; display: flex; flex-direction: column;
  font-family: var(--police-texte); font-size: 1.0625rem; line-height: 1.6;
  color: var(--texte-sombre);
  background: linear-gradient(180deg, var(--fond-haut) 0%, var(--fond-bas) 100%) fixed;
}
@media (min-width: 1800px) { html { font-size: 112.5%; } }
img, svg { max-width: 100%; }
img { height: auto; }
h1, h2, h3, h4 { font-family: var(--police-titre); font-weight: 700; line-height: 1.2; margin: 0 0 0.5em; color: var(--or); }
h1 { font-size: clamp(2rem, 4.5vw, 2.9rem); letter-spacing: 0.03em; }
h2 { font-size: 1.6rem; letter-spacing: 0.04em; }
h3 { font-size: 1.25rem; letter-spacing: 0.03em; }
p { margin: 0 0 1em; }
a { color: var(--or-clair); text-underline-offset: 0.15em; }
a:hover { color: #fff; }
strong { font-weight: 700; }
:focus-visible { outline: 3px solid var(--or-clair); outline-offset: 2px; border-radius: 4px; }
.page { width: 100%; max-width: var(--largeur); margin-inline: auto; padding-inline: 16px; }
.principal { padding-block: 28px 56px; flex: 1; }
.principal > * + * { margin-top: 28px; }
.visuellement-cache { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.pot-de-miel { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.lien-evitement { position: absolute; left: 8px; top: -80px; z-index: 50; padding: 0.5em 1em; background: var(--parchemin); color: var(--encre); border: 3px solid var(--bois); border-radius: 8px; }
.lien-evitement:focus { top: 8px; }

/* En-tête */
.entete {
  background: linear-gradient(180deg, #120b07, #1f140c);
  border-bottom: 3px solid var(--bois); box-shadow: 0 1px 0 var(--filet), 0 4px 14px rgba(0, 0, 0, 0.5);
  position: relative; z-index: 20;
}
.entete__barre { display: flex; align-items: center; gap: 20px; min-height: 76px; }
.marque { display: block; flex: none; line-height: 0; }
.marque img { width: 170px; height: 48px; object-fit: contain; object-position: left center; }
.nav { flex: 1; min-width: 0; }
.nav__liste { display: flex; flex-wrap: nowrap; justify-content: center; gap: 0; list-style: none; margin: 0; padding: 0; }
.nav__liste a {
  display: block; padding: 8px 6px; border-radius: 6px; text-decoration: none; color: var(--texte-sombre); white-space: nowrap;
  font-family: var(--police-titre); font-size: 0.95rem; letter-spacing: 0.04em; text-transform: lowercase; font-variant: small-caps;
}
.nav__liste a:hover { background: rgba(226, 176, 74, 0.14); color: var(--or-clair); }
.nav__liste a[aria-current='page'] { color: var(--or); background: rgba(226, 176, 74, 0.16); box-shadow: inset 0 -2px 0 var(--or); }
.entete__compte { display: flex; align-items: center; gap: 10px; flex: none; margin-left: 8px; }
.entete__compte .nom { color: var(--or-clair); font-weight: 600; max-width: 140px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.entete__admin { padding: 6px 12px; border: 2px solid var(--filet); border-radius: 6px; text-decoration: none; color: var(--or-clair); font-family: var(--police-titre); font-size: 0.95rem; letter-spacing: 0.06em; font-variant: small-caps; }
.entete__admin:hover, .entete__admin[aria-current='page'] { background: rgba(226, 176, 74, 0.16); color: var(--or); }
.form-ligne { display: inline; margin: 0; }
.form-ligne--droite { display: flex; justify-content: flex-end; }
.menu-mobile { display: none; }

/* Boutons */
.bouton {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 0.62em 1.3em; border: 2px solid var(--orange-fonce); border-radius: 6px; cursor: pointer;
  font-family: var(--police-titre); font-size: 1.08rem; font-weight: 700; letter-spacing: 0.05em; line-height: 1.2;
  text-decoration: none; color: var(--creme); text-shadow: 0 1px 2px rgba(60, 25, 0, 0.7);
  background: linear-gradient(180deg, #f6a03f 0%, var(--orange) 45%, var(--orange-fonce) 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.45), 0 3px 0 #8a4308, 0 6px 10px rgba(0, 0, 0, 0.35);
  transition: filter 0.12s, transform 0.12s, box-shadow 0.12s;
}
.bouton:hover { filter: brightness(1.08); color: #fff; }
.bouton:active { transform: translateY(2px); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35), 0 1px 0 #8a4308; }
.bouton--orange { }
.bouton--bois {
  color: var(--creme); border-color: #3a2410;
  background: linear-gradient(180deg, #8a6038 0%, var(--bois-clair) 45%, var(--bois) 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25), 0 3px 0 #2c1a0a, 0 6px 10px rgba(0, 0, 0, 0.35);
}
.bouton--petit { padding: 0.4em 0.95em; font-size: 0.95rem; }
.bouton--grand { padding: 0.8em 1.7em; font-size: 1.22rem; }
.bouton--plein { display: flex; width: 100%; }
.bouton[disabled], .bouton--inactif { filter: grayscale(0.7); opacity: 0.65; cursor: not-allowed; }

/* Panneau (fenêtre 1.29) */
.panneau {
  background: var(--parchemin); color: var(--encre);
  border: 3px solid var(--bois); border-radius: var(--rayon); box-shadow: var(--ombre), inset 0 0 0 1px var(--filet);
  overflow: hidden;
}
.panneau__titre {
  margin: 0; padding: 9px 18px; background: linear-gradient(180deg, #6c4626, var(--bois));
  border-bottom: 2px solid var(--filet); color: var(--or);
  font-family: var(--police-titre); font-size: 1.2rem; font-weight: 700; letter-spacing: 0.1em; text-shadow: 0 1px 2px rgba(0, 0, 0, 0.6);
}
.panneau__corps { padding: 20px 22px; }
.panneau h1, .panneau h2, .panneau h3, .panneau h4 { color: var(--bois); }
.panneau .panneau__titre { color: var(--or); }
.panneau h2 { font-size: 1.4rem; }
.panneau a { color: var(--lien); }
.panneau a:hover { color: var(--rouge-fonce); }
.panneau .bouton, .panneau .bouton:hover { color: var(--creme); }
.panneau .aide, .aide { font-size: 0.92rem; color: var(--encre-douce); margin: 0.3em 0 0; }
.panneau__corps > :last-child { margin-bottom: 0; }

/* Titres de section sur fond sombre */
.titre-section {
  display: flex; align-items: center; gap: 16px; margin: 0 0 18px; color: var(--or);
  font-size: clamp(1.4rem, 3vw, 1.9rem); letter-spacing: 0.14em; font-variant: small-caps; text-shadow: 0 2px 4px rgba(0, 0, 0, 0.6);
}
.titre-section::before, .titre-section::after { content: ''; flex: 1; height: 2px; background: linear-gradient(90deg, transparent, var(--filet)); opacity: 0.7; }
.titre-section::after { background: linear-gradient(270deg, transparent, var(--filet)); }
.titre-section--gauche::before { display: none; }
.titre-section a { font-family: var(--police-texte); font-size: 0.95rem; letter-spacing: 0.04em; font-variant: normal; white-space: nowrap; }
.section + .section { margin-top: 44px; }

/* Bandeau d'accueil */
.hero { position: relative; overflow: hidden; border-bottom: 3px solid var(--bois); background: #1a110a; }
.hero__fond { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 52%; filter: saturate(1.05); }
.hero::after { content: ''; position: absolute; inset: 0; background:
  linear-gradient(180deg, rgba(27, 18, 12, 0.35) 0%, rgba(27, 18, 12, 0.6) 55%, var(--fond-haut) 100%),
  linear-gradient(90deg, rgba(27, 18, 12, 0.94) 0%, rgba(27, 18, 12, 0.88) 38%, rgba(27, 18, 12, 0.45) 62%, rgba(27, 18, 12, 0.08) 100%); }
.hero__contenu { position: relative; z-index: 2; padding-block: 64px 70px; max-width: 920px; margin-inline: 0; }
.hero .page { position: relative; z-index: 2; }
.hero__logo { width: min(440px, 90%); height: auto; margin: 0 0 14px; filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.7)); }
.hero h1 { font-size: clamp(1.9rem, 4.6vw, 3.1rem); color: var(--creme); text-shadow: 0 3px 8px rgba(0, 0, 0, 0.85); margin-bottom: 0.3em; }
.hero__texte { font-size: 1.2rem; max-width: 36em; color: #f6ecd2; text-shadow: 0 2px 6px rgba(0, 0, 0, 0.9); }
.actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 22px; }
.actions--centre { justify-content: center; }

/* Bandeau fin des pages */
.entete-page { position: relative; overflow: hidden; border-bottom: 3px solid var(--bois); background: #1a110a; }
.entete-page__image { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 48%; }
.entete-page::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(27, 18, 12, 0.92) 0%, rgba(27, 18, 12, 0.6) 55%, rgba(27, 18, 12, 0.35) 100%); }
.entete-page .page { position: relative; z-index: 2; padding-block: 34px 32px; }
.entete-page h1 { color: var(--creme); text-shadow: 0 3px 8px rgba(0, 0, 0, 0.9); margin-bottom: 0.2em; }
.entete-page__texte { max-width: 44em; margin: 0; color: #f1e5c8; text-shadow: 0 2px 5px rgba(0, 0, 0, 0.9); font-size: 1.1rem; }
.fil { margin: 0 0 6px; font-size: 0.92rem; }

/* Chiffres */
.chiffres-serveur { background: linear-gradient(180deg, #33200f, #261709); border-block: 2px solid var(--bois); box-shadow: inset 0 1px 0 var(--filet), inset 0 -1px 0 var(--filet); }
.chiffres-serveur__liste { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; list-style: none; margin: 0; padding: 0; }
.tuile-chiffre { padding: 16px 12px; text-align: center; border-left: 1px solid rgba(184, 138, 85, 0.35); }
.tuile-chiffre:first-child { border-left: 0; }
.tuile-chiffre__valeur { display: block; font-family: var(--police-titre); font-size: 2rem; font-weight: 700; color: var(--or); line-height: 1.15; text-shadow: 0 2px 4px rgba(0, 0, 0, 0.6); }
.tuile-chiffre__libelle { display: block; font-size: 0.88rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--texte-sombre); }
.tuile-chiffre--clair { background: var(--parchemin-2); border: 2px solid var(--filet); border-radius: 6px; }
.tuile-chiffre--clair .tuile-chiffre__valeur { color: var(--bois); text-shadow: none; }
.tuile-chiffre--clair .tuile-chiffre__libelle { color: var(--encre-douce); }
.pastille { display: inline-block; width: 11px; height: 11px; margin-right: 8px; border-radius: 50%; background: var(--vert); box-shadow: 0 0 8px var(--vert); vertical-align: middle; }
.pastille--rouge { background: var(--rouge); box-shadow: 0 0 8px var(--rouge); }

/* Grilles */
.grille { display: grid; gap: 22px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); list-style: none; margin: 0; padding: 0; }
.grille--2 { grid-template-columns: repeat(2, 1fr); }
.grille--3 { grid-template-columns: repeat(3, 1fr); }
.grille--4 { grid-template-columns: repeat(4, 1fr); }
.principal > * + .titre-section { margin-top: 40px; }
.principal > * + .grille { margin-top: 28px; }
.deux-colonnes { display: grid; grid-template-columns: 1.4fr 1fr; gap: 22px; align-items: start; }

/* Cartes */
.carte {
  display: flex; flex-direction: column; background: var(--parchemin); color: var(--encre);
  border: 3px solid var(--bois); border-radius: var(--rayon); box-shadow: var(--ombre), inset 0 0 0 1px var(--filet); overflow: hidden;
  transition: transform 0.15s, box-shadow 0.15s;
}
.carte:hover { transform: translateY(-3px); box-shadow: 0 10px 24px rgba(0, 0, 0, 0.55), inset 0 0 0 1px var(--filet); }
.carte__image { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; object-position: 50% 40%; background: #1a110a; border-bottom: 3px solid var(--bois); }
.grille--2 .carte__image { aspect-ratio: 21 / 9; }
.carte__image--haute { aspect-ratio: 4 / 3; object-position: 50% 0; }
.carte__corps { display: flex; flex-direction: column; flex: 1; padding: 14px 18px 18px; }
.carte__titre { margin: 0 0 0.35em; font-size: 1.25rem; color: var(--bois); }
.carte__titre a { color: inherit; text-decoration: none; }
.carte__titre a:hover { color: var(--lien); text-decoration: underline; }
.carte__meta { margin: 0 0 6px; font-size: 0.88rem; letter-spacing: 0.04em; color: var(--encre-douce); }
.carte__texte { flex: 1; margin: 0 0 12px; }
.carte__lien { margin: 0; font-weight: 600; }
.carte__lien a { color: var(--lien); }
.carte__pastille { display: block; width: 56px; height: 56px; margin: 0 0 8px; object-fit: contain; }

/* Défilement des classes */
.classes { display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 6px 4px 18px; list-style: none; margin: 0; scrollbar-color: var(--filet) transparent; }
.classes__item { flex: none; scroll-snap-align: start; }
.classes__lien {
  display: flex; flex-direction: column; align-items: center; gap: 8px; width: 132px; padding: 14px 8px 12px; text-decoration: none;
  background: linear-gradient(180deg, var(--parchemin) 0%, var(--parchemin-3) 100%); color: var(--encre);
  border: 3px solid var(--bois); border-radius: var(--rayon); box-shadow: var(--ombre), inset 0 0 0 1px var(--filet);
  font-family: var(--police-titre); font-size: 1.1rem; font-weight: 700; letter-spacing: 0.05em; transition: transform 0.15s;
}
.classes__lien:hover { transform: translateY(-4px); color: var(--lien); }
.classes__lien img { width: 84px; height: 84px; object-fit: contain; filter: drop-shadow(0 3px 3px rgba(60, 30, 5, 0.35)); }

/* Galerie */
.galerie { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; list-style: none; margin: 0; padding: 0; }
.galerie__vignette { margin: 0; position: relative; overflow: hidden; border: 3px solid var(--bois); border-radius: var(--rayon); box-shadow: var(--ombre), 0 0 0 1px var(--filet); background: #1a110a; }
.galerie__vignette img { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; transition: transform 0.3s; }
.galerie__vignette a { display: block; }
.galerie__vignette:hover img { transform: scale(1.05); }
.galerie__legende { position: absolute; inset: auto 0 0 0; padding: 18px 12px 8px; font-size: 0.92rem; color: var(--creme); background: linear-gradient(180deg, transparent, rgba(20, 12, 6, 0.9)); }

/* Onglets */
.onglets { display: flex; flex-wrap: wrap; gap: 4px; list-style: none; margin: 0 0 -3px; padding: 0 8px; position: relative; z-index: 2; }
.onglets a {
  display: block; padding: 9px 20px 8px; text-decoration: none; color: var(--texte-sombre);
  background: linear-gradient(180deg, #4a2f19, #38220f); border: 3px solid var(--bois); border-bottom: 0; border-radius: 8px 8px 0 0;
  font-family: var(--police-titre); font-size: 1.05rem; letter-spacing: 0.06em;
}
.onglets a:hover { color: var(--or-clair); }
.onglets .onglets__actif, .onglets a.onglets--actif, .onglets .onglets--actif > a { background: var(--parchemin); color: var(--bois); font-weight: 700; box-shadow: inset 0 3px 0 var(--orange); }
.onglets + .panneau { border-top-left-radius: 0; }

/* Badges */
.badge { display: inline-block; padding: 1px 10px; border-radius: 999px; font-size: 0.82rem; font-weight: 700; letter-spacing: 0.04em; background: var(--parchemin-3); color: var(--bois); border: 1px solid var(--filet); }
.badge--vert { background: #dcefd0; color: #1f4f0f; border-color: var(--vert); }
.badge--rouge { background: #f7ddd5; color: #8f2a16; border-color: var(--rouge); }
.badge--or { background: #f8e3aa; color: #5c3a05; border-color: var(--or); }

/* Tableau */
.tableau-defilant { overflow-x: auto; }
.tableau { width: 100%; border-collapse: collapse; color: var(--encre); }
.tableau caption { text-align: left; padding: 0 0 8px; font-size: 0.92rem; color: var(--encre-douce); }
.tableau th, .tableau td { padding: 9px 14px; text-align: left; vertical-align: middle; }
.tableau thead th { background: linear-gradient(180deg, #6c4626, var(--bois)); color: var(--or); font-family: var(--police-titre); letter-spacing: 0.06em; font-size: 1rem; border-bottom: 2px solid var(--filet); white-space: nowrap; }
.tableau tbody tr:nth-child(odd) { background: rgba(255, 255, 255, 0.35); }
.tableau tbody tr:nth-child(even) { background: rgba(184, 138, 85, 0.17); }
.tableau tbody tr:hover { background: rgba(240, 137, 31, 0.15); }
.tableau tbody th { font-weight: 700; color: var(--bois); }
.tableau .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.tableau .vide { text-align: center; padding: 22px; color: var(--encre-douce); font-style: italic; }
.classe { display: inline-flex; align-items: center; gap: 8px; }
.icone-classe { flex: none; width: 24px; height: 24px; }

/* Recherche */
.recherche { display: flex; gap: 8px; max-width: 560px; }
.recherche input[type='search'], .recherche input[type='text'] { flex: 1; min-width: 0; }
.recherche--large { max-width: none; }

/* Pagination */
.pagination { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 6px; margin: 20px 0 0; }
.pagination a, .pagination span {
  min-width: 40px; padding: 6px 12px; text-align: center; border-radius: 6px; text-decoration: none; font-weight: 600;
  background: var(--parchemin-2); color: var(--bois); border: 2px solid var(--filet);
}
.pagination a:hover { background: var(--or-clair); color: var(--encre); }
.pagination .pagination__actuelle, .pagination [aria-current='page'] { background: var(--bois); color: var(--or); border-color: var(--bois); }
.pagination__etat { background: transparent; border-color: transparent; color: var(--encre-douce); }
.principal > .pagination a, .principal > .pagination span { }

/* Fiche d'encyclopédie */
.fiche { display: grid; grid-template-columns: 120px 1fr; gap: 22px; align-items: center; }
.fiche__image { display: flex; align-items: center; justify-content: center; width: 120px; height: 120px; padding: 8px; background: radial-gradient(circle, #fbf3de, var(--parchemin-3)); border: 3px solid var(--bois); border-radius: var(--rayon); box-shadow: inset 0 0 0 1px var(--filet); }
.fiche__image img { max-width: 100%; max-height: 100%; object-fit: contain; }
.fiche__titre { margin: 0 0 6px; font-size: clamp(1.6rem, 3vw, 2.2rem); color: var(--bois); }
.fiche__meta { display: flex; flex-wrap: wrap; gap: 8px 22px; margin: 0; padding: 0; list-style: none; }
.fiche__meta dt, .fiche__meta .libelle { font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--encre-douce); }
.fiche__meta dd, .fiche__meta .valeur { margin: 0; font-weight: 700; color: var(--encre); }
.fiche__meta div { display: block; }

/* Grille d'icônes */
.grille-icones { display: grid; grid-template-columns: repeat(auto-fill, 64px); gap: 10px; list-style: none; margin: 0; padding: 0; }
.grille-icones__item { position: relative; }
.grille-icones__item a, .grille-icones__item > span:first-child {
  display: flex; align-items: center; justify-content: center; width: 64px; height: 64px; padding: 4px;
  background: radial-gradient(circle, #fbf3de, var(--parchemin-3)); border: 2px solid var(--filet); border-radius: 6px;
}
.grille-icones__item a:hover, .grille-icones__item a:focus-visible { border-color: var(--orange); background: #fff4de; z-index: 5; }
.grille-icones__item img { max-width: 100%; max-height: 100%; }
.grille-icones__nom {
  position: absolute; z-index: 6; left: 50%; bottom: calc(100% + 6px); transform: translateX(-50%);
  width: max-content; max-width: 220px; padding: 5px 10px; border-radius: 6px; pointer-events: none;
  font-size: 0.85rem; line-height: 1.3; text-align: center; background: #1b120c; color: var(--or-clair); border: 1px solid var(--filet);
  opacity: 0; visibility: hidden; transition: opacity 0.12s;
}
.grille-icones__item:hover .grille-icones__nom, .grille-icones__item:focus-within .grille-icones__nom { opacity: 1; visibility: visible; }
.icone-objet { width: 40px; height: 40px; vertical-align: middle; object-fit: contain; }
.icone-sort { width: 40px; height: 40px; vertical-align: middle; object-fit: contain; border: 2px solid var(--filet); border-radius: 6px; background: var(--sombre-2); padding: 2px; }
.fiche__image img[src^='/jeu/sorts/'] { background: var(--sombre-2); border-radius: 6px; padding: 8px; }
.avec-icone { display: inline-flex; align-items: center; gap: 10px; }

/* Barre de progression */
.barre { display: block; margin: 0 0 12px; }
.barre__libelle { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 4px; font-size: 0.92rem; font-weight: 600; }
.barre progress, .barre__jauge { appearance: none; -webkit-appearance: none; display: block; width: 100%; height: 16px; border: 2px solid var(--bois); border-radius: 999px; background: #d8c79e; overflow: hidden; }
.barre progress::-webkit-progress-bar { background: #d8c79e; }
.barre progress::-webkit-progress-value { background: linear-gradient(180deg, #f6a03f, var(--orange-fonce)); border-radius: 999px; }
.barre progress::-moz-progress-bar { background: linear-gradient(180deg, #f6a03f, var(--orange-fonce)); }

/* Alertes et messages */
.alerte, .message { margin: 0 0 16px; padding: 12px 16px; border-radius: 6px; border: 2px solid; border-left-width: 8px; font-weight: 600; }
.alerte--info, .message-info { background: #e3ecf0; border-color: #2f6a86; color: #123a4e; }
.alerte--succes, .message-succes { background: #dcefd0; border-color: var(--vert-fonce); color: #1c4309; }
.alerte--erreur, .message-erreur { background: #f7ddd5; border-color: var(--rouge); color: #6e1a0a; }
.principal > .alerte, .principal > .message { margin-bottom: 0; }
.alerte a, .message a { color: var(--lien); font-weight: 700; }
.alerte a:hover, .message a:hover { color: var(--rouge-fonce); }
.prix .aide a { color: var(--lien); }

/* Étapes illustrées */
.etapes { counter-reset: etape; display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; list-style: none; margin: 0; padding: 0; }
.etapes__item { counter-increment: etape; position: relative; display: flex; flex-direction: column; background: var(--parchemin); color: var(--encre); border: 3px solid var(--bois); border-radius: var(--rayon); box-shadow: var(--ombre), inset 0 0 0 1px var(--filet); overflow: hidden; }
.etapes__item::before {
  content: counter(etape); position: absolute; top: 10px; left: 10px; z-index: 2; width: 42px; height: 42px; display: grid; place-items: center;
  border-radius: 50%; background: linear-gradient(180deg, #f6a03f, var(--orange-fonce)); border: 3px solid var(--bois); color: var(--creme);
  font-family: var(--police-titre); font-size: 1.5rem; font-weight: 700; text-shadow: 0 1px 2px rgba(60, 25, 0, 0.7);
}
.etapes__item img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; object-position: 50% 0; border-bottom: 3px solid var(--bois); background: #1a110a; }
.etapes__corps { padding: 14px 18px 18px; }
.etapes__corps h3 { margin: 0 0 0.3em; color: var(--bois); }
.etapes__corps p { margin: 0; }
.etapes--texte .etapes__item { padding: 18px 18px 18px 64px; }
.etapes--texte .etapes__item::before { top: 16px; left: 12px; }

/* Prix (boutique) */
.prix { display: flex; flex-direction: column; text-align: center; background: var(--parchemin); color: var(--encre); border: 3px solid var(--bois); border-radius: var(--rayon); box-shadow: var(--ombre), inset 0 0 0 1px var(--filet); overflow: hidden; }
.prix__image { display: grid; place-items: center; height: 140px; background: radial-gradient(circle at 50% 40%, #fbf3de, var(--parchemin-3)); border-bottom: 3px solid var(--bois); }
.prix__image img { max-width: 100px; max-height: 100px; object-fit: contain; filter: drop-shadow(0 4px 4px rgba(60, 30, 5, 0.35)); }
.prix__image img.prix__photo { max-width: none; max-height: none; width: 100%; height: 100%; object-fit: cover; filter: none; }
.prix__corps { display: flex; flex-direction: column; align-items: center; flex: 1; gap: 6px; padding: 14px 16px 18px; }
.prix__titre { margin: 0; font-size: 1.3rem; color: var(--bois); }
.prix__detail { margin: 0; color: var(--encre-douce); font-size: 0.95rem; }
.prix__montant { margin: 4px 0 8px; font-family: var(--police-titre); font-size: 2rem; font-weight: 700; color: var(--orange-fonce); }
.prix__corps .bouton { margin-top: auto; }
.prix--vedette { border-color: var(--orange-fonce); }

/* Formulaires */
.formulaire fieldset { margin: 0 0 22px; padding: 14px 18px 4px; border: 2px solid var(--filet); border-radius: 6px; background: rgba(255, 255, 255, 0.28); }
.formulaire legend { padding: 0 10px; font-family: var(--police-titre); font-size: 1.15rem; font-weight: 700; letter-spacing: 0.06em; color: var(--bois); }
.champ { margin-bottom: 16px; }
.champ label { display: block; margin-bottom: 4px; font-weight: 700; color: var(--encre); }
.champ .facultatif { font-weight: 400; color: var(--encre-douce); }
input[type='text'], input[type='email'], input[type='password'], input[type='search'], input[type='number'], input[type='url'], input[type='date'], input[type='datetime-local'], select, textarea {
  width: 100%; padding: 9px 12px; font: inherit; color: var(--encre); background: #fffaf0;
  border: 2px solid var(--bois-clair); border-radius: 5px; box-shadow: inset 0 2px 4px rgba(60, 30, 5, 0.18);
}
input[type='datetime-local'] { color-scheme: light; }
input:focus, select:focus, textarea:focus { outline: 3px solid var(--orange); outline-offset: 1px; border-color: var(--orange-fonce); }
.champ-erreur input, .champ-erreur select { border-color: var(--rouge); background: #fff3ef; }
.champ .erreur { margin: 4px 0 0; font-size: 0.92rem; font-weight: 700; color: #a32a12; }
.champ-case { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; }
.champ-case input { width: 22px; height: 22px; accent-color: var(--orange-fonce); }
.champ-case label { margin: 0; flex: 1; }
.champ-case .aide, .champ-case .erreur { flex-basis: 100%; }
.formulaire-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; margin-top: 8px; }
.formulaire-liens { margin: 18px 0 0; text-align: center; }
.page-etroite { max-width: 520px; margin-inline: auto; }
.page-formulaire { max-width: 760px; margin-inline: auto; }
.page-formulaire.page-etroite { max-width: 520px; }
.filtre { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 14px; margin-bottom: 20px; }
.filtre .champ { margin: 0; min-width: 220px; }

/* Texte riche (Markdown rendu) */
.texte { max-width: 46em; }
.texte h2 { margin-top: 1.4em; }
.texte ul, .texte ol { padding-left: 1.4em; }
.texte li { margin-bottom: 0.35em; }
.texte img { border: 3px solid var(--bois); border-radius: 6px; }
.texte table { border-collapse: collapse; }
.texte th, .texte td { padding: 6px 12px; border: 1px solid var(--filet); }
.texte code { padding: 1px 6px; border-radius: 4px; background: var(--parchemin-3); }
.meta { color: var(--encre-douce); }

/* Sous-menu du compte */
.sous-menu { display: flex; flex-wrap: wrap; gap: 8px; }
.sous-menu a { padding: 6px 14px; border-radius: 999px; text-decoration: none; font-weight: 600; background: var(--parchemin-2); color: var(--bois); border: 2px solid var(--filet); }
.sous-menu a:hover { background: var(--or-clair); }
.sous-menu a[aria-current='page'] { background: var(--bois); color: var(--or); border-color: var(--bois); }

/* Comptes de jeu */
.cartes-comptes { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 18px; list-style: none; margin: 0 0 20px; padding: 0; }
.carte-compte { padding: 16px 18px; background: rgba(255, 255, 255, 0.4); border: 2px solid var(--filet); border-radius: 6px; }
.carte-compte h3 { margin: 0; overflow-wrap: anywhere; }
.carte-compte .pseudo { margin: 0 0 10px; color: var(--encre-douce); }
.personnages { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.personnages li { display: flex; align-items: center; gap: 10px; padding: 6px 10px; background: var(--parchemin-2); border-radius: 6px; border: 1px solid var(--filet); flex-wrap: wrap; }
.personnages .icone-classe { width: 28px; height: 28px; }
.personnages .nom { font-weight: 700; }
.personnages .detail { color: var(--encre-douce); font-size: 0.92rem; }
.compte-actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* Téléchargement */
.telechargement { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px; }
.telechargement-titre { margin: 0; font-family: var(--police-titre); font-size: 1.5rem; font-weight: 700; color: var(--bois); }

/* Mini-classement et Discord */
.mini-classement { list-style: none; margin: 0 0 14px; padding: 0; }
.mini-classement li { display: flex; align-items: center; gap: 10px; padding: 8px 4px; border-bottom: 1px dashed var(--filet); }
.mini-classement li:last-child { border-bottom: 0; }
.mini-classement .rang { flex: none; width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%; background: var(--bois); color: var(--or); font-family: var(--police-titre); font-weight: 700; }
.mini-classement li:first-child .rang { background: linear-gradient(180deg, var(--or-clair), var(--or)); color: var(--encre); }
.mini-classement .nom { flex: 1; min-width: 0; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mini-classement .niveau { color: var(--encre-douce); font-size: 0.92rem; white-space: nowrap; }
.discord { display: flex; flex-direction: column; gap: 14px; }
.discord__chiffres { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.discord__chiffres .tuile-chiffre { border-left: 0; }

/* Pages d'erreur */
.page-erreur { text-align: center; max-width: 600px; margin-inline: auto; }
.page-erreur img { width: 110px; height: 110px; margin-bottom: 6px; }
.code-erreur { margin: 0; font-family: var(--police-titre); font-size: 5rem; font-weight: 700; line-height: 1; color: var(--orange-fonce); }

/* Pied de page */
.pied { margin-top: auto; background: linear-gradient(180deg, #1a110a, #0f0905); border-top: 3px solid var(--bois); box-shadow: 0 -1px 0 var(--filet); padding-block: 34px 28px; }
.pied__colonnes { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 28px; }
.pied h2 { font-size: 1.1rem; letter-spacing: 0.12em; margin-bottom: 0.6em; }
.pied ul { list-style: none; margin: 0; padding: 0; }
.pied li { margin-bottom: 0.35em; }
.pied__marque img { width: 170px; height: 48px; object-fit: contain; object-position: left center; margin-bottom: 8px; }
.pied__mention { margin: 24px 0 0; padding-top: 18px; border-top: 1px solid rgba(184, 138, 85, 0.35); font-size: 0.9rem; color: #c9b894; }

/* Sélecteur de bannière (admin) */
.choix-banniere { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 12px; list-style: none; margin: 0; padding: 0; }
.choix-banniere label { display: flex; flex-direction: column; align-items: center; gap: 6px; height: 100%; padding: 6px; font-size: 0.9rem; font-weight: 600; text-align: center; cursor: pointer; border: 3px solid var(--filet); border-radius: 6px; background: rgba(255, 255, 255, 0.3); }
.choix-banniere img { display: block; width: 100%; max-width: 120px; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 4px; }
.choix-banniere label:has(:checked) { border-color: var(--orange); background: #fff4de; box-shadow: 0 0 0 2px var(--orange); }
.choix-banniere input { width: auto; margin-right: 4px; accent-color: var(--orange-fonce); }
.choix-banniere label:has(:focus-visible) { outline: 3px solid var(--orange); }

.panneau .chiffres-serveur__liste { grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 10px; margin: 0 0 12px; }
.panneau .chiffres-serveur__liste .tuile-chiffre { border-left: 2px solid var(--filet); }
.graphique { display: block; width: 100%; height: auto; max-height: 300px; }

/* Panneau vide */
.panneau .vide-etat { margin: 0; padding: 18px; text-align: center; font-style: italic; color: var(--encre-douce); border: 2px dashed var(--filet); border-radius: 6px; background: rgba(255, 255, 255, 0.3); }

/* Adaptation */
@media (max-width: 1099px) {
  .nav--bureau, .entete__admin { display: none; }
  .entete__barre { flex-wrap: wrap; min-height: 64px; padding-block: 8px; }
  .entete__compte { margin-left: auto; }
  .menu-mobile { display: block; flex-basis: 100%; order: 5; }
  .menu-mobile summary {
    list-style: none; cursor: pointer; padding: 9px 16px; text-align: center; border-radius: 6px; color: var(--or);
    font-family: var(--police-titre); font-size: 1.1rem; letter-spacing: 0.1em; border: 2px solid var(--bois); background: #2e1d10;
  }
  .menu-mobile summary::-webkit-details-marker { display: none; }
  .menu-mobile[open] summary { border-color: var(--filet); }
  .menu-mobile .nav__liste { flex-direction: column; flex-wrap: wrap; margin-top: 8px; }
  .menu-mobile .nav__liste a { padding: 11px 14px; background: rgba(255, 255, 255, 0.04); }
}
@media (max-width: 960px) {
  .grille--4 { grid-template-columns: repeat(2, 1fr); }
  .grille--3 { grid-template-columns: repeat(2, 1fr); }
  .deux-colonnes { grid-template-columns: 1fr; }
  .etapes { grid-template-columns: 1fr; }
  .galerie { grid-template-columns: repeat(2, 1fr); }
  .pied__colonnes { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  body { font-size: 1rem; }
  .grille--2, .grille--3, .grille--4 { grid-template-columns: 1fr; }
  .chiffres-serveur__liste { grid-template-columns: 1fr 1fr; }
  .tuile-chiffre:nth-child(3) { border-left: 0; }
  .tuile-chiffre:nth-child(n + 3) { border-top: 1px solid rgba(184, 138, 85, 0.35); }
  .tuile-chiffre__valeur { font-size: 1.6rem; }
  .galerie { grid-template-columns: 1fr; }
  .hero__contenu { padding-block: 36px 40px; }
  .hero__texte { font-size: 1.05rem; }
  .actions .bouton { flex: 1 1 100%; }
  .panneau__corps { padding: 16px 14px; }
  .fiche { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .fiche__meta { justify-content: center; }
  .marque img { width: 140px; height: 40px; }
  .entete__compte .bouton { padding-inline: 0.8em; }
  .pied__colonnes { grid-template-columns: 1fr; }
  .tableau th, .tableau td { padding: 8px 8px; }
  .tableau-defilant { max-width: 100%; -webkit-overflow-scrolling: touch; }
  .onglets a { padding: 8px 12px 7px; font-size: 0.95rem; }
  .recherche { flex-wrap: wrap; }
  .code-erreur { font-size: 4rem; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }

/* ==== Finition 2 : texture, ornements, navigation à icônes, relief (additif) ==== */
:root {
  --grain-sombre: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='6' height='6'%3E%3Cpath d='M0 6L6 0' stroke='%23e2b04a' stroke-opacity='.035' stroke-width='1'/%3E%3C/svg%3E");
  --grain-parchemin: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .35 0 0 0 0 .22 0 0 0 0 .08 0 0 0 .5 0'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='.11'/%3E%3C/svg%3E");
  --ornement-coins: url(/svg/ornements/coin.svg) left 3px top 3px / 20px 20px no-repeat,
    url(/svg/ornements/coin-2.svg) right 3px top 3px / 20px 20px no-repeat,
    url(/svg/ornements/coin-3.svg) left 3px bottom 3px / 20px 20px no-repeat,
    url(/svg/ornements/coin-4.svg) right 3px bottom 3px / 20px 20px no-repeat;
}

/* 1. Texture et profondeur */
body {
  background:
    radial-gradient(ellipse 120% 90% at 50% 35%, transparent 55%, rgba(0, 0, 0, 0.38) 100%) fixed,
    var(--grain-sombre),
    linear-gradient(180deg, var(--fond-haut) 0%, var(--fond-bas) 100%) fixed;
}
.panneau, .carte, .prix, .etapes__item {
  background-image: var(--grain-parchemin);
  background-color: var(--parchemin);
}
.classes__lien { background-image: var(--grain-parchemin), linear-gradient(180deg, var(--parchemin) 0%, var(--parchemin-3) 100%); }
.panneau__corps { box-shadow: inset 0 7px 9px -7px rgba(70, 38, 8, 0.38); }
.panneau, .hero { position: relative; }
.panneau::before, .hero::before {
  content: ''; position: absolute; inset: 0; z-index: 4; pointer-events: none; background: var(--ornement-coins);
}
.panneau::before { opacity: 0.9; }
.hero::before { inset: 10px; z-index: 3; opacity: 0.75; }

/* 2. Titres de section : filets et losange central */
.titre-section::before, .titre-section::after { height: 14px; opacity: 1; }
.titre-section::before { background: linear-gradient(90deg, transparent, var(--filet)) left center / calc(100% - 22px) 2px no-repeat, url(/svg/ornements/separateur.svg) right center / auto 12px no-repeat; }
.titre-section::after { background: linear-gradient(270deg, transparent, var(--filet)) right center / calc(100% - 22px) 2px no-repeat, url(/svg/ornements/separateur.svg) left center / auto 12px no-repeat; }
.panneau__titre { box-shadow: inset 0 1px 0 rgba(255, 220, 150, 0.25), inset 0 -2px 4px rgba(0, 0, 0, 0.25); }

/* 3. Navigation à icônes (icônes colorées : voir 12. Icônes) */
.nav__liste a { display: flex; align-items: center; transition: background 0.15s, color 0.15s; }
.nav__plus { position: relative; }
.nav__plus summary {
  display: flex; align-items: center; gap: 4px; padding: 8px 8px; border-radius: 6px; cursor: pointer; list-style: none; white-space: nowrap;
  color: var(--texte-sombre); font-family: var(--police-titre); font-size: 0.95rem; letter-spacing: 0.04em; font-variant: small-caps; text-transform: lowercase;
}
.nav__plus summary::-webkit-details-marker { display: none; }
.nav__plus summary::after { content: ''; width: 6px; height: 6px; margin: -3px 0 0 4px; border: solid currentColor; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.nav__plus summary:hover, .nav__plus details[open] summary { background: rgba(226, 176, 74, 0.14); color: var(--or-clair); }
.nav__sous {
  position: absolute; right: 0; top: calc(100% + 6px); z-index: 30; min-width: 190px; display: block; padding: 6px; list-style: none; margin: 0;
  background: #1f140c; border: 2px solid var(--bois); border-radius: 8px; box-shadow: 0 0 0 1px var(--filet), 0 10px 24px rgba(0, 0, 0, 0.6);
}
.nav__sous a { padding: 8px 10px; }
.entete { background-image: var(--grain-sombre), linear-gradient(180deg, #120b07, #1f140c); }
@media (min-width: 1400px) { .entete .page { max-width: 1400px; } .nav__liste { gap: 2px; } }

/* 4. Cartes, boutons, badges */
.carte:hover, .prix:hover, .classes__lien:hover { transform: translateY(-2px); box-shadow: 0 12px 26px rgba(0, 0, 0, 0.55), inset 0 0 0 1px var(--filet); }
.prix { transition: transform 0.15s, box-shadow 0.15s; }
.bouton {
  border-color: #7a3c06; transition: filter 0.15s, transform 0.15s, box-shadow 0.15s;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.28) 0%, rgba(255, 255, 255, 0) 48%), linear-gradient(180deg, #f8a844 0%, var(--orange) 50%, var(--orange-fonce) 100%);
}
.bouton:hover { transform: translateY(-1px); filter: brightness(1.07); }
.bouton:active { transform: translateY(2px); filter: brightness(0.96); box-shadow: inset 0 3px 5px rgba(80, 30, 0, 0.45), 0 1px 0 #8a4308; }
.bouton--bois { border-color: #2c1a0a; background: linear-gradient(180deg, rgba(255, 255, 255, 0.18) 0%, rgba(255, 255, 255, 0) 48%), linear-gradient(180deg, #8a6038 0%, var(--bois-clair) 50%, var(--bois) 100%); }
.badge { box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6), 0 1px 2px rgba(60, 30, 5, 0.3); }
.badge--bonta { background: #d9e8f7; color: #123f75; border-color: #3b78bd; }
.badge--brakmar { background: #f5d9d3; color: #7d1d10; border-color: #b8361f; }

/* 5. Barre de chiffres */
.chiffres-serveur { background-image: var(--grain-sombre), linear-gradient(180deg, #33200f, #261709); }
.tuile-chiffre { position: relative; border-left: 0; }
.tuile-chiffre + .tuile-chiffre::after { content: ''; position: absolute; left: 0; top: 18%; bottom: 18%; width: 1px; background: linear-gradient(180deg, transparent, var(--filet), transparent); }
.tuile-chiffre + .tuile-chiffre::before { content: ''; position: absolute; left: -7px; top: 50%; width: 14px; height: 14px; margin-top: -7px; background: url(/svg/ornements/separateur.svg) center / 14px no-repeat; }
.tuile-chiffre__valeur { color: var(--or-clair); text-shadow: 0 0 14px rgba(226, 176, 74, 0.35), 0 2px 3px rgba(0, 0, 0, 0.7); }
.tuile-chiffre--clair .tuile-chiffre__valeur { color: var(--bois); text-shadow: none; }
.panneau .tuile-chiffre { position: static; }
.panneau .tuile-chiffre::after, .panneau .tuile-chiffre::before { display: none; }

/* 6. Pied de page */
.pied { background-image: var(--grain-sombre), linear-gradient(180deg, #1a110a, #0f0905); }
.pied__discord { display: flex; align-items: center; margin: 12px 0 0; font-size: 0.92rem; color: var(--or-clair); }
.pied__mention { display: flex; align-items: center; gap: 14px; }
.pied__mention::before { content: ''; flex: none; width: 40px; height: 14px; background: url(/svg/ornements/separateur.svg) center / contain no-repeat; }
.pied__version { margin: 8px 0 0; font-size: 0.8rem; color: #a8977a; }

/* Profils publics */
.profil__tete { display: flex; align-items: center; gap: 28px; padding-bottom: 20px; margin-bottom: 18px; border-bottom: 2px dashed var(--filet); }
.profil__portrait {
  flex: none; display: grid; place-items: center; width: 190px; height: 190px; padding: 12px;
  background: radial-gradient(circle at 50% 40%, #fbf3de, var(--parchemin-3)); border: 3px solid var(--bois); border-radius: var(--rayon); box-shadow: inset 0 0 0 1px var(--filet), 0 4px 10px rgba(60, 30, 5, 0.3);
}
.profil__portrait img { width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 4px 4px rgba(60, 30, 5, 0.35)); }
.profil__nom { margin: 0 0 4px; font-size: clamp(2rem, 4vw, 2.8rem); color: var(--bois); overflow-wrap: anywhere; }
.profil__classe { margin: 0 0 10px; font-size: 1.2rem; color: var(--encre-douce); }
.profil__badges { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; }
.profil__badges .badge { font-size: 0.95rem; padding: 3px 14px; }
.profil__faits { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; margin: 0; }
.profil__faits div { padding: 10px 14px; background: var(--parchemin-2); border: 2px solid var(--filet); border-radius: 6px; box-shadow: inset 0 2px 4px rgba(60, 30, 5, 0.12); }
.profil__faits dt { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--encre-douce); }
.profil__faits dd { margin: 2px 0 0; font-family: var(--police-titre); font-size: 1.35rem; font-weight: 700; color: var(--bois); overflow-wrap: anywhere; }
.profil__chiffres { display: grid; grid-template-columns: repeat(2, 1fr); list-style: none; margin: 0; padding: 0; background: #2d1c0e; border: 3px solid var(--bois); border-radius: var(--rayon); box-shadow: inset 0 0 0 1px var(--filet); }
.metiers { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px 24px; list-style: none; margin: 0; padding: 0; }
.metiers__item { display: flex; align-items: center; gap: 12px; }
.metiers__icone { flex: none; width: 40px; height: 40px; padding: 3px; background: radial-gradient(circle, #fbf3de, var(--parchemin-3)); border: 2px solid var(--filet); border-radius: 6px; }
.metiers__corps { flex: 1; min-width: 0; }
.metiers__corps .barre { margin: 0; }
.profil-public { margin: 14px 0 0; }

@media (max-width: 640px) {
  .profil__tete { flex-direction: column; text-align: center; gap: 14px; }
  .profil__badges { justify-content: center; }
  .profil__portrait { width: 150px; height: 150px; }
  .tuile-chiffre:nth-child(odd)::after, .tuile-chiffre:nth-child(odd)::before { display: none; }
  .titre-section { gap: 8px; letter-spacing: 0.08em; }
  .pied__mention { align-items: flex-start; }
  .pied__mention::before { margin-top: 5px; }
}
@media (prefers-reduced-motion: reduce) { .carte:hover, .prix:hover, .classes__lien:hover, .bouton:hover { transform: none; } }

/* Wiki : sommaire à gauche (collant) sur grand écran, <details> sur mobile */
.wiki-sommaire-mobile summary {
  list-style: none; cursor: pointer; padding: 9px 16px; text-align: center; border-radius: 6px; color: var(--or);
  font-family: var(--police-titre); font-size: 1.1rem; letter-spacing: 0.1em; border: 2px solid var(--bois); background: #2e1d10;
}
.wiki-sommaire-mobile summary::-webkit-details-marker { display: none; }
.wiki-sommaire-mobile[open] summary { border-color: var(--filet); margin-bottom: 10px; }
.wiki-sommaire h3 { margin: 1em 0 0.3em; font-size: 1rem; letter-spacing: 0.08em; color: var(--bois); border-bottom: 1px solid var(--filet); padding-bottom: 3px; }
.wiki-sommaire h3:first-child, .wiki-sommaire-mobile h3:first-child { margin-top: 0; }
.wiki-sommaire-mobile h3 { margin: 1em 0 0.3em; font-size: 1rem; color: var(--bois); }
.wiki-sommaire ul, .wiki-sommaire-mobile ul { list-style: none; margin: 0; padding: 0; }
.wiki-sommaire li, .wiki-sommaire-mobile li { margin: 0; }
.wiki-sommaire a, .wiki-sommaire-mobile a { display: block; padding: 3px 8px; border-radius: 4px; font-size: 0.95rem; line-height: 1.35; text-decoration: none; }
.wiki-sommaire a:hover, .wiki-sommaire-mobile a:hover { background: rgba(240, 137, 31, 0.15); }
.wiki-sommaire a[aria-current='page'], .wiki-sommaire-mobile a[aria-current='page'] { color: var(--orange-fonce); font-weight: 700; background: rgba(240, 137, 31, 0.14); box-shadow: inset 3px 0 0 var(--orange); }
.wiki-sommaire .panneau__corps { padding: 14px 14px 16px; }
.wiki-contenu > * + * { margin-top: 20px; }
.wiki-contenu .texte { max-width: none; }
.wiki-contenu .texte img { display: block; width: 100%; height: auto; margin: 0 auto; border: 3px solid var(--bois); border-radius: 6px; box-shadow: 0 4px 12px rgba(60, 30, 5, 0.3); }
.wiki-contenu .texte p:has(> img) { text-align: center; margin: 1.2em 0; }
.wiki-contenu .texte p:has(> img) em { display: block; margin-top: 6px; font-size: 0.88rem; color: var(--encre-douce); }
@media (min-width: 1024px) {
  .wiki-mise-en-page { grid-template-columns: 280px minmax(0, 1fr); gap: 24px; }
  .wiki-sommaire.nav--bureau { display: block; order: -1; position: sticky; top: 16px; align-self: start; flex: none; }
  .wiki-sommaire-mobile.menu-mobile { display: none; }
}
@media (max-width: 1023px) {
  .wiki-mise-en-page { grid-template-columns: 1fr; }
  .wiki-sommaire.nav--bureau { display: none; }
  .wiki-sommaire-mobile.menu-mobile { display: block; flex-basis: auto; order: 0; }
}

/* Fil de messages des rapports de bugs : bulles */
.fil-messages { display: flex; flex-direction: column; gap: 14px; }
.bulle { position: relative; max-width: 75%; padding: 10px 16px 12px; border-radius: 14px; border: 2px solid var(--filet); box-shadow: 0 2px 6px rgba(60, 30, 5, 0.22); overflow-wrap: anywhere; }
.bulle--joueur { align-self: flex-end; background: #fbf4e2; color: var(--encre); border-bottom-right-radius: 3px; }
.bulle--equipe { align-self: flex-start; background: var(--parchemin-3); color: var(--encre); border-color: var(--bois-clair); border-left: 6px solid var(--orange); border-bottom-left-radius: 3px; }
.bulle__auteur { margin: 0 0 4px; font-size: 0.82rem; color: var(--encre-douce); }
.bulle__auteur strong { color: var(--bois); }
.bulle__texte { line-height: 1.5; }
@media (max-width: 640px) { .bulle { max-width: 92%; } }

/* Titres h3 dans les panneaux de fiche */
.panneau__corps > h3, .panneau__corps > div > h3, .panneau__corps > section > h3 { margin-top: 1.25em; }
.panneau__corps > h3:first-child, .panneau__corps > :first-child h3:first-child { margin-top: 0; }

/* Rapports de bugs envoyés depuis le jeu : contexte, pellicule (images jouées en boucle), trames */
.contexte { width: 100%; border-collapse: collapse; margin: 8px 0 0; }
.contexte th, .contexte td { padding: 4px 10px; text-align: left; border-bottom: 1px solid var(--filet); vertical-align: top; }
.contexte th { width: 12em; color: var(--bois); font-weight: 700; }
.pellicule { position: relative; max-width: 1100px; aspect-ratio: 16 / 10; overflow: hidden; border: 3px solid var(--bois); border-radius: var(--rayon); background: #1a110a; box-shadow: var(--ombre), 0 0 0 1px var(--filet); }
.pellicule__image { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; opacity: 0; animation-timing-function: steps(1); animation-iteration-count: infinite; }
.pellicule__legende { margin: 6px 0 0; font-size: 0.88rem; color: var(--encre-douce); }
.pellicule__vignettes { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0 0; padding: 0; list-style: none; }
.pellicule__vignettes img { display: block; width: 120px; height: 75px; object-fit: cover; border: 2px solid var(--bois); border-radius: 4px; }
.pellicule__vignettes a:hover img, .pellicule__vignettes a:focus-visible img { border-color: var(--orange); }
.trames { margin: 12px 0 0; }
.trames summary { cursor: pointer; font-weight: 700; color: var(--bois); }
.trames pre { max-height: 360px; overflow: auto; margin: 8px 0 0; padding: 10px 12px; background: #1a110a; color: var(--texte-sombre); border: 2px solid var(--bois); border-radius: 6px; font: 0.82rem/1.45 ui-monospace, Consolas, monospace; white-space: pre-wrap; overflow-wrap: anywhere; }
@media (prefers-reduced-motion: reduce) {
  .pellicule.pellicule .pellicule__image { animation: none; }
  .pellicule.pellicule .pellicule__image:first-child { opacity: 1; }
}

/* Vidéo AMKF des rapports du jeu (lecteur : public/js/lecteur-film.js) */
.film { max-width: 1100px; border: 3px solid var(--bois); border-radius: var(--rayon); background: #1a110a; box-shadow: var(--ombre), 0 0 0 1px var(--filet); color: var(--texte-sombre); overflow: hidden; }
.film__affiche, .film__canevas { display: block; width: 100%; height: auto; background: #000; }
.film__legende { margin: 0; padding: 6px 10px; font-size: 0.88rem; }
.film__legende a { color: var(--orange); }
.film__barre { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 8px 10px; border-top: 2px solid var(--bois); }
.film__bouton { min-width: 6em; padding: 4px 12px; font: inherit; font-weight: 700; color: #fff; background: var(--bois); border: 2px solid var(--filet); border-radius: 4px; cursor: pointer; }
.film__bouton:hover, .film__bouton:focus-visible { border-color: var(--orange); }
.film__position { flex: 1 1 200px; min-width: 120px; accent-color: var(--orange); }
.film__temps, .film__cadence { font-size: 0.88rem; font-variant-numeric: tabular-nums; white-space: nowrap; }
.film__message { margin: 0; padding: 8px 10px; font-size: 0.9rem; color: var(--orange); }
.film:focus-within { outline: 2px solid var(--orange); }
/* Plein écran : le lecteur occupe tout l'écran, l'image garde ses proportions, la barre reste en bas. */
.film:fullscreen { display: flex; flex-direction: column; max-width: none; width: 100%; height: 100%; border: 0; border-radius: 0; background: #000; }
.film:fullscreen .film__canevas { flex: 1 1 auto; min-height: 0; width: 100%; height: auto; object-fit: contain; cursor: pointer; }
.film:fullscreen .film__legende { display: none; }
.film:fullscreen .film__barre { background: #1a110a; }
.film__plein { margin-left: auto; }

/* pellicule : généré */
@keyframes pellicule-1 { 0%, 100% { opacity: 1; } }
@keyframes pellicule-2 { 0% { opacity: 1; } 50% { opacity: 0; } 100% { opacity: 0; } }
@keyframes pellicule-3 { 0% { opacity: 1; } 33.3333% { opacity: 0; } 100% { opacity: 0; } }
@keyframes pellicule-4 { 0% { opacity: 1; } 25% { opacity: 0; } 100% { opacity: 0; } }
@keyframes pellicule-5 { 0% { opacity: 1; } 20% { opacity: 0; } 100% { opacity: 0; } }
@keyframes pellicule-6 { 0% { opacity: 1; } 16.6667% { opacity: 0; } 100% { opacity: 0; } }
@keyframes pellicule-7 { 0% { opacity: 1; } 14.2857% { opacity: 0; } 100% { opacity: 0; } }
@keyframes pellicule-8 { 0% { opacity: 1; } 12.5% { opacity: 0; } 100% { opacity: 0; } }
@keyframes pellicule-9 { 0% { opacity: 1; } 11.1111% { opacity: 0; } 100% { opacity: 0; } }
@keyframes pellicule-10 { 0% { opacity: 1; } 10% { opacity: 0; } 100% { opacity: 0; } }
@keyframes pellicule-11 { 0% { opacity: 1; } 9.0909% { opacity: 0; } 100% { opacity: 0; } }
@keyframes pellicule-12 { 0% { opacity: 1; } 8.3333% { opacity: 0; } 100% { opacity: 0; } }
@keyframes pellicule-13 { 0% { opacity: 1; } 7.6923% { opacity: 0; } 100% { opacity: 0; } }
@keyframes pellicule-14 { 0% { opacity: 1; } 7.1429% { opacity: 0; } 100% { opacity: 0; } }
@keyframes pellicule-15 { 0% { opacity: 1; } 6.6667% { opacity: 0; } 100% { opacity: 0; } }
@keyframes pellicule-16 { 0% { opacity: 1; } 6.25% { opacity: 0; } 100% { opacity: 0; } }
@keyframes pellicule-17 { 0% { opacity: 1; } 5.8824% { opacity: 0; } 100% { opacity: 0; } }
@keyframes pellicule-18 { 0% { opacity: 1; } 5.5556% { opacity: 0; } 100% { opacity: 0; } }
@keyframes pellicule-19 { 0% { opacity: 1; } 5.2632% { opacity: 0; } 100% { opacity: 0; } }
@keyframes pellicule-20 { 0% { opacity: 1; } 5% { opacity: 0; } 100% { opacity: 0; } }
@keyframes pellicule-21 { 0% { opacity: 1; } 4.7619% { opacity: 0; } 100% { opacity: 0; } }
@keyframes pellicule-22 { 0% { opacity: 1; } 4.5455% { opacity: 0; } 100% { opacity: 0; } }
@keyframes pellicule-23 { 0% { opacity: 1; } 4.3478% { opacity: 0; } 100% { opacity: 0; } }
@keyframes pellicule-24 { 0% { opacity: 1; } 4.1667% { opacity: 0; } 100% { opacity: 0; } }
@keyframes pellicule-25 { 0% { opacity: 1; } 4% { opacity: 0; } 100% { opacity: 0; } }
@keyframes pellicule-26 { 0% { opacity: 1; } 3.8462% { opacity: 0; } 100% { opacity: 0; } }
@keyframes pellicule-27 { 0% { opacity: 1; } 3.7037% { opacity: 0; } 100% { opacity: 0; } }
@keyframes pellicule-28 { 0% { opacity: 1; } 3.5714% { opacity: 0; } 100% { opacity: 0; } }
@keyframes pellicule-29 { 0% { opacity: 1; } 3.4483% { opacity: 0; } 100% { opacity: 0; } }
@keyframes pellicule-30 { 0% { opacity: 1; } 3.3333% { opacity: 0; } 100% { opacity: 0; } }
@keyframes pellicule-31 { 0% { opacity: 1; } 3.2258% { opacity: 0; } 100% { opacity: 0; } }
@keyframes pellicule-32 { 0% { opacity: 1; } 3.125% { opacity: 0; } 100% { opacity: 0; } }
@keyframes pellicule-33 { 0% { opacity: 1; } 3.0303% { opacity: 0; } 100% { opacity: 0; } }
@keyframes pellicule-34 { 0% { opacity: 1; } 2.9412% { opacity: 0; } 100% { opacity: 0; } }
@keyframes pellicule-35 { 0% { opacity: 1; } 2.8571% { opacity: 0; } 100% { opacity: 0; } }
@keyframes pellicule-36 { 0% { opacity: 1; } 2.7778% { opacity: 0; } 100% { opacity: 0; } }
@keyframes pellicule-37 { 0% { opacity: 1; } 2.7027% { opacity: 0; } 100% { opacity: 0; } }
@keyframes pellicule-38 { 0% { opacity: 1; } 2.6316% { opacity: 0; } 100% { opacity: 0; } }
@keyframes pellicule-39 { 0% { opacity: 1; } 2.5641% { opacity: 0; } 100% { opacity: 0; } }
@keyframes pellicule-40 { 0% { opacity: 1; } 2.5% { opacity: 0; } 100% { opacity: 0; } }
.pellicule--1 .pellicule__image { animation-name: pellicule-1; animation-duration: 0.25s; }
.pellicule--2 .pellicule__image { animation-name: pellicule-2; animation-duration: 0.5s; }
.pellicule--3 .pellicule__image { animation-name: pellicule-3; animation-duration: 0.75s; }
.pellicule--4 .pellicule__image { animation-name: pellicule-4; animation-duration: 1s; }
.pellicule--5 .pellicule__image { animation-name: pellicule-5; animation-duration: 1.25s; }
.pellicule--6 .pellicule__image { animation-name: pellicule-6; animation-duration: 1.5s; }
.pellicule--7 .pellicule__image { animation-name: pellicule-7; animation-duration: 1.75s; }
.pellicule--8 .pellicule__image { animation-name: pellicule-8; animation-duration: 2s; }
.pellicule--9 .pellicule__image { animation-name: pellicule-9; animation-duration: 2.25s; }
.pellicule--10 .pellicule__image { animation-name: pellicule-10; animation-duration: 2.5s; }
.pellicule--11 .pellicule__image { animation-name: pellicule-11; animation-duration: 2.75s; }
.pellicule--12 .pellicule__image { animation-name: pellicule-12; animation-duration: 3s; }
.pellicule--13 .pellicule__image { animation-name: pellicule-13; animation-duration: 3.25s; }
.pellicule--14 .pellicule__image { animation-name: pellicule-14; animation-duration: 3.5s; }
.pellicule--15 .pellicule__image { animation-name: pellicule-15; animation-duration: 3.75s; }
.pellicule--16 .pellicule__image { animation-name: pellicule-16; animation-duration: 4s; }
.pellicule--17 .pellicule__image { animation-name: pellicule-17; animation-duration: 4.25s; }
.pellicule--18 .pellicule__image { animation-name: pellicule-18; animation-duration: 4.5s; }
.pellicule--19 .pellicule__image { animation-name: pellicule-19; animation-duration: 4.75s; }
.pellicule--20 .pellicule__image { animation-name: pellicule-20; animation-duration: 5s; }
.pellicule--21 .pellicule__image { animation-name: pellicule-21; animation-duration: 5.25s; }
.pellicule--22 .pellicule__image { animation-name: pellicule-22; animation-duration: 5.5s; }
.pellicule--23 .pellicule__image { animation-name: pellicule-23; animation-duration: 5.75s; }
.pellicule--24 .pellicule__image { animation-name: pellicule-24; animation-duration: 6s; }
.pellicule--25 .pellicule__image { animation-name: pellicule-25; animation-duration: 6.25s; }
.pellicule--26 .pellicule__image { animation-name: pellicule-26; animation-duration: 6.5s; }
.pellicule--27 .pellicule__image { animation-name: pellicule-27; animation-duration: 6.75s; }
.pellicule--28 .pellicule__image { animation-name: pellicule-28; animation-duration: 7s; }
.pellicule--29 .pellicule__image { animation-name: pellicule-29; animation-duration: 7.25s; }
.pellicule--30 .pellicule__image { animation-name: pellicule-30; animation-duration: 7.5s; }
.pellicule--31 .pellicule__image { animation-name: pellicule-31; animation-duration: 7.75s; }
.pellicule--32 .pellicule__image { animation-name: pellicule-32; animation-duration: 8s; }
.pellicule--33 .pellicule__image { animation-name: pellicule-33; animation-duration: 8.25s; }
.pellicule--34 .pellicule__image { animation-name: pellicule-34; animation-duration: 8.5s; }
.pellicule--35 .pellicule__image { animation-name: pellicule-35; animation-duration: 8.75s; }
.pellicule--36 .pellicule__image { animation-name: pellicule-36; animation-duration: 9s; }
.pellicule--37 .pellicule__image { animation-name: pellicule-37; animation-duration: 9.25s; }
.pellicule--38 .pellicule__image { animation-name: pellicule-38; animation-duration: 9.5s; }
.pellicule--39 .pellicule__image { animation-name: pellicule-39; animation-duration: 9.75s; }
.pellicule--40 .pellicule__image { animation-name: pellicule-40; animation-duration: 10s; }
.pellicule__image:nth-child(1) { animation-delay: 0s; }
.pellicule__image:nth-child(2) { animation-delay: 0.25s; }
.pellicule__image:nth-child(3) { animation-delay: 0.5s; }
.pellicule__image:nth-child(4) { animation-delay: 0.75s; }
.pellicule__image:nth-child(5) { animation-delay: 1s; }
.pellicule__image:nth-child(6) { animation-delay: 1.25s; }
.pellicule__image:nth-child(7) { animation-delay: 1.5s; }
.pellicule__image:nth-child(8) { animation-delay: 1.75s; }
.pellicule__image:nth-child(9) { animation-delay: 2s; }
.pellicule__image:nth-child(10) { animation-delay: 2.25s; }
.pellicule__image:nth-child(11) { animation-delay: 2.5s; }
.pellicule__image:nth-child(12) { animation-delay: 2.75s; }
.pellicule__image:nth-child(13) { animation-delay: 3s; }
.pellicule__image:nth-child(14) { animation-delay: 3.25s; }
.pellicule__image:nth-child(15) { animation-delay: 3.5s; }
.pellicule__image:nth-child(16) { animation-delay: 3.75s; }
.pellicule__image:nth-child(17) { animation-delay: 4s; }
.pellicule__image:nth-child(18) { animation-delay: 4.25s; }
.pellicule__image:nth-child(19) { animation-delay: 4.5s; }
.pellicule__image:nth-child(20) { animation-delay: 4.75s; }
.pellicule__image:nth-child(21) { animation-delay: 5s; }
.pellicule__image:nth-child(22) { animation-delay: 5.25s; }
.pellicule__image:nth-child(23) { animation-delay: 5.5s; }
.pellicule__image:nth-child(24) { animation-delay: 5.75s; }
.pellicule__image:nth-child(25) { animation-delay: 6s; }
.pellicule__image:nth-child(26) { animation-delay: 6.25s; }
.pellicule__image:nth-child(27) { animation-delay: 6.5s; }
.pellicule__image:nth-child(28) { animation-delay: 6.75s; }
.pellicule__image:nth-child(29) { animation-delay: 7s; }
.pellicule__image:nth-child(30) { animation-delay: 7.25s; }
.pellicule__image:nth-child(31) { animation-delay: 7.5s; }
.pellicule__image:nth-child(32) { animation-delay: 7.75s; }
.pellicule__image:nth-child(33) { animation-delay: 8s; }
.pellicule__image:nth-child(34) { animation-delay: 8.25s; }
.pellicule__image:nth-child(35) { animation-delay: 8.5s; }
.pellicule__image:nth-child(36) { animation-delay: 8.75s; }
.pellicule__image:nth-child(37) { animation-delay: 9s; }
.pellicule__image:nth-child(38) { animation-delay: 9.25s; }
.pellicule__image:nth-child(39) { animation-delay: 9.5s; }
.pellicule__image:nth-child(40) { animation-delay: 9.75s; }
/* fin pellicule */

/* Capture jointe à un rapport de bug : pleine largeur, en qualité d'origine, clic = image entière. */
.capture-jointe { display: block; max-width: 1100px; margin: 0 0 8px; border: 3px solid var(--bois); border-radius: var(--rayon); overflow: hidden; background: #1a110a; box-shadow: var(--ombre), 0 0 0 1px var(--filet); }
.capture-jointe img { display: block; width: 100%; height: auto; }

/* 12. Icônes colorées, onglets, menus (médaillons de public/img/icones) */
.ico { display: inline-block; flex: none; vertical-align: middle; object-fit: contain; filter: drop-shadow(0 1px 1.5px rgba(30, 15, 5, 0.45)); }
.avec-ico { display: inline-flex; align-items: center; gap: 8px; }
.panneau__titre { display: flex; align-items: center; gap: 10px; }
.panneau__titre .ico { margin: -4px 0; }
.titre-section .ico { margin-right: 4px; }

/* Navigation principale : une seule ligne, icône + libellé court */
.entete .nav__liste { gap: 2px; }
.entete .nav__liste a, .entete .nav__plus summary { display: flex; align-items: center; gap: 7px; padding: 6px 9px; font-size: 1rem; }
.entete .nav__liste a .ico, .entete .nav__plus summary .ico { width: 26px; height: 26px; }
.nav__plus summary::after { margin-left: 2px; }
.nav__repli { display: none; }
.entete__admin { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px 4px 6px; }
.entete .page { max-width: 1400px; }
@media (min-width: 1500px) { .entete__barre { gap: 24px; } .entete .nav__liste a, .entete .nav__plus summary { padding-inline: 12px; } }
@media (max-width: 1499px) { .nav__niv2 { display: none; } .nav__repli2 { display: block; } .entete__barre { gap: 14px; } .entete__admin { display: none; } }
@media (max-width: 1279px) { .nav__niv3 { display: none; } .nav__repli3 { display: block; } .entete .nav__liste a, .entete .nav__plus summary { padding-inline: 7px; gap: 5px; font-size: 0.95rem; } }
.nav__sous { min-width: 210px; }
.nav__sous a { gap: 10px; }
.nav__sous .ico { width: 26px; height: 26px; }

/* Menu replié : grille d'entrées à icônes */
@media (max-width: 1099px) {
  .menu-mobile summary { display: flex; align-items: center; justify-content: center; gap: 10px; }
  .menu-mobile .nav__liste { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; margin-top: 10px; }
  .menu-mobile .nav__liste a { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 10px 6px; text-align: center; border: 2px solid rgba(184, 138, 85, 0.3); border-radius: 8px; background: rgba(255, 255, 255, 0.04); font-size: 1rem; white-space: normal; }
  .menu-mobile .nav__liste a[aria-current='page'] { border-color: var(--or); }
}
@media (max-width: 420px) { .menu-mobile .nav__liste { grid-template-columns: repeat(3, 1fr); gap: 6px; } .menu-mobile .nav__liste a { font-size: 0.9rem; padding: 8px 2px; } }

/* Onglets : une seule rangée qui défile (jusqu'à 8), grille de puces au-delà */
.onglets-nav { position: relative; }
.onglets { flex-wrap: nowrap; overflow-x: auto; overflow-y: hidden; scroll-snap-type: x proximity; scroll-behavior: smooth; scrollbar-width: none; padding: 0 16px; gap: 5px; -webkit-mask-image: linear-gradient(90deg, transparent, #000 14px, #000 calc(100% - 14px), transparent); mask-image: linear-gradient(90deg, transparent, #000 14px, #000 calc(100% - 14px), transparent); }
.onglets::-webkit-scrollbar { display: none; }
.onglets li { flex: none; scroll-snap-align: start; }
.onglets a { display: flex; align-items: center; gap: 8px; padding: 7px 18px 7px 12px; white-space: nowrap; }
.onglets a .ico { width: 24px; height: 24px; }
.onglet__n { display: inline-block; min-width: 1.5em; padding: 0 6px; border-radius: 999px; background: rgba(0, 0, 0, 0.28); color: var(--or-clair); font-size: 0.8rem; font-family: var(--police-texte); font-weight: 700; text-align: center; line-height: 1.5; }
.onglets--actif .onglet__n, a.onglets--actif .onglet__n { background: var(--bois); color: var(--or); }
.onglets-nav + .onglets-nav { margin-top: 10px; }
.onglets-nav--puces + .panneau, .onglets-nav--puces + .onglets-nav, .onglets-nav--puces + .principal-suite { margin-top: 12px; }
.onglets--puces { display: grid; grid-template-columns: repeat(auto-fill, minmax(158px, 1fr)); gap: 8px; margin: 0; padding: 0; overflow: visible; -webkit-mask-image: none; mask-image: none; }
.onglets--puces li { min-width: 0; }
.onglets--puces a { height: 100%; gap: 6px; padding: 5px 8px 5px 6px; border: 2px solid var(--bois); border-radius: 10px; white-space: normal; background: linear-gradient(180deg, #4a2f19, #38220f); box-shadow: inset 0 1px 0 rgba(255, 220, 150, 0.12); font-size: 0.92rem; letter-spacing: 0; line-height: 1.15; }
.onglets--puces a:hover { border-color: var(--filet); background: linear-gradient(180deg, #5a3a1f, #46291a); }
.onglets--puces a.onglets--actif { background: var(--parchemin); border-color: var(--orange); box-shadow: inset 0 3px 0 var(--orange), 0 0 0 1px var(--filet); color: var(--bois); }
.onglets--puces .onglet__texte { flex: 1; min-width: 0; }
.onglets--puces .onglet__n { padding: 0 5px; min-width: 1.3em; font-size: 0.75rem; }
.onglets--puces .ico { width: 28px; height: 28px; }
.onglets-nav:not(.onglets-nav--puces) + .panneau { border-top-left-radius: 0; }

/* Tuiles de statut des rapports : cinq sur une rangée */
.statuts { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; list-style: none; margin: 0 0 24px; padding: 0; }
.statuts__tuile { display: grid; justify-items: center; align-content: center; gap: 2px; padding: 12px 8px; height: 100%; text-align: center; text-decoration: none; background: var(--parchemin-2); border: 3px solid var(--bois); border-radius: 10px; box-shadow: var(--ombre), inset 0 0 0 1px var(--filet); transition: transform 0.15s, box-shadow 0.15s; }
.statuts__tuile:hover { transform: translateY(-2px); }
.statuts__nombre { font-family: var(--police-titre); font-size: 1.7rem; font-weight: 700; color: var(--bois); line-height: 1.1; }
.statuts__libelle { font-size: 0.82rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--encre-douce); }
@media (max-width: 899px) { .statuts { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 560px) { .statuts { grid-template-columns: repeat(2, 1fr); } .statuts li:last-child { grid-column: 1 / -1; } }

/* Menu d'administration : trois groupes de puces à icônes */
.menu-admin { margin-bottom: 22px; padding: 6px 12px; background: rgba(0, 0, 0, 0.22); border: 2px solid var(--bois); border-radius: 10px; }
.menu-admin__groupe { display: flex; align-items: center; gap: 14px; padding: 6px 0; }
.menu-admin__groupe + .menu-admin__groupe { border-top: 1px solid rgba(184, 138, 85, 0.3); }
.menu-admin__titre { flex: none; width: 150px; margin: 0; font-family: var(--police-titre); font-size: 0.85rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--filet); }
.menu-admin__liste { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; margin: 0; padding: 0; }
.menu-admin__liste a { display: flex; align-items: center; gap: 8px; padding: 4px 14px 4px 5px; border: 2px solid var(--bois); border-radius: 999px; text-decoration: none; color: var(--texte-sombre); background: linear-gradient(180deg, #4a2f19, #38220f); font-family: var(--police-titre); font-size: 0.98rem; letter-spacing: 0.04em; white-space: nowrap; }
.menu-admin__liste a:hover { color: var(--or-clair); border-color: var(--filet); }
.menu-admin__liste a.onglets--actif { background: var(--parchemin); color: var(--bois); border-color: var(--orange); font-weight: 700; box-shadow: inset 0 -3px 0 var(--orange); }
@media (max-width: 760px) { .menu-admin__groupe { flex-direction: column; align-items: stretch; gap: 6px; } .menu-admin__titre { width: auto; } .menu-admin__liste { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); } .menu-admin__liste a { border-radius: 10px; white-space: normal; } }

/* Menu « Mon compte » : puces à icônes */
.sous-menu { display: grid; grid-template-columns: repeat(auto-fill, minmax(255px, 1fr)); gap: 8px; margin-bottom: 20px; }
.sous-menu a { display: flex; align-items: center; gap: 10px; padding: 6px 12px 6px 8px; border-radius: 10px; line-height: 1.2; }
.sous-menu a .ico { width: 28px; height: 28px; }

/* Tuiles de chiffres et cartes à icône */
.tuile-chiffre__ico { display: block; margin-bottom: 4px; line-height: 0; }
.chiffres-serveur .tuile-chiffre__ico { display: flex; justify-content: center; }
.carte__ico { display: block; width: 52px; height: 52px; margin: -38px 0 6px; position: relative; line-height: 0; }
.carte__ico .ico { width: 52px; height: 52px; filter: drop-shadow(0 3px 4px rgba(0, 0, 0, 0.55)); }
.badge .ico { margin: -3px 5px -3px -6px; width: 18px; height: 18px; filter: none; vertical-align: middle; }
.pied li a .ico, .pied__discord .ico { margin-right: 8px; vertical-align: -5px; }
.pied__discord .ico { vertical-align: middle; }
.tableau td .avec-ico .ico { width: 22px; height: 22px; }
.avec-ico > span { line-height: 1.2; }

/* Audit 30/10 : tableaux défilants avec ombres d'indice aux bords (classement, hdv, statistiques). */
.tableau-defilant {
  background:
    linear-gradient(90deg, var(--parchemin), rgba(0, 0, 0, 0)) left center / 28px 100% no-repeat local,
    linear-gradient(270deg, var(--parchemin), rgba(0, 0, 0, 0)) right center / 28px 100% no-repeat local,
    linear-gradient(90deg, rgba(60, 35, 12, 0.35), rgba(0, 0, 0, 0)) left center / 12px 100% no-repeat scroll,
    linear-gradient(270deg, rgba(60, 35, 12, 0.35), rgba(0, 0, 0, 0)) right center / 12px 100% no-repeat scroll;
}
@media (max-width: 640px) {
  .tableau-defilant .tableau { min-width: 520px; }
  .tableau-defilant .tableau thead th { font-size: 0.9rem; }
}

/* Menu « Plus » en colonnes groupées (30/10) : remplace la longue liste plate. */
.nav__sous {
  display: grid; grid-template-columns: repeat(3, minmax(190px, 1fr)); gap: 6px 22px; width: max-content; max-width: min(720px, 92vw); padding: 14px 18px 16px;
}
.nav__sous ul { list-style: none; margin: 0; padding: 0; }
.nav__groupe-titre {
  margin: 0 0 6px; padding: 0 10px 5px; border-bottom: 1px solid var(--filet); color: var(--or-clair);
  font-family: var(--police-titre); font-size: 0.8rem; letter-spacing: 0.12em; text-transform: uppercase;
}
.nav__sous a { display: flex; align-items: center; gap: 10px; padding: 7px 10px; border-radius: 6px; white-space: nowrap; }
.nav__sous a:hover, .nav__sous a[aria-current='page'] { background: rgba(226, 176, 74, 0.14); color: var(--or-clair); }
.nav__sous .ico { flex: none; width: 24px; height: 24px; }
@media (max-width: 1279px) { .nav__sous { grid-template-columns: repeat(2, minmax(180px, 1fr)); } }
