/* adept-site.css (15/11/2026) : feuille unique du site. Réunit site.css (vitrine, règles), joueurs.css (accès joueurs) et
   modeles.css (éditeur 3D), gardés sur le disque. Pages générées par adept/gabarit.php (modèle en PHP, remplace tools/gabarit.py).
   Portées : commun = toutes les pages ; :where(.ancien) = habillage de l'ancien site (<body class=ancien>, ../template.html) ;
   .editeur3d = éditeur de modèles (modeles.php). :where() n'ajoute rien à la spécificité : les règles gardent leur ordre d'avant.
   liste.css non reprise (chargée par aucune page). */

/* ===================================================================== commun (site.css) */
@font-face { font-family: "MedievalSharp"; src: url("/i/presentation/police/MedievalSharp-Regular.ttf") format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "MedievalSharp"; src: url("/i/presentation/police/MedievalSharp-Bold.ttf") format("truetype"); font-weight: 700; font-display: swap; }
:root {
  --sable: #dcc195; --sable-clair: #e3cfa9; --parchemin: #efe0c2;
  --brun: #5a3214; --brun-fonce: #2f1a0b; --ocre: #b5782f; --vert: #2f7d32;
  --texte: #2f1a0b; --ombre: 0 6px 24px rgba(47, 26, 11, .18);
  --jeu: "MedievalSharp", Georgia, serif;
  --ez-cadre: #886340; --ez-fond: #633d18; --ez-noir: #160604; --ez-texte: #e0bb7e; --ez-survol: #8a5a2b; --ez-appui: #3b1c08;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: Georgia, "Times New Roman", serif; color: var(--texte); background: var(--sable-clair); line-height: 1.6; }
a { color: var(--brun); }
.conteneur { max-width: 1080px; margin: 0 auto; padding: 0 20px; }

/* Menu (vitrine) : fixe, transparent sur le bandeau, fond brun dès qu'on descend (.plein posée par /js/site.js) */
#menu { position: fixed; top: 0; left: 0; right: 0; z-index: 10; padding: 28px 0 10px; font-family: var(--jeu);
  transition: background .25s, padding .25s, box-shadow .25s; }
#menu.plein { background: var(--brun-fonce); padding: 10px 0; box-shadow: 0 2px 12px rgba(47,26,11,.35); }
#menu .conteneur { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
#menu .marque { text-shadow: 0 1px 4px rgba(47,26,11,.9); display: flex; align-items: center; gap: 10px; font-weight: bold; letter-spacing: .08em; color: var(--parchemin); text-decoration: none; }
#menu .marque img { width: 44px; height: 44px; }
#menu ul { list-style: none; display: flex; gap: 20px; margin: 0; padding: 0; font-size: 18px; }
#menu ul a { color: var(--parchemin); text-decoration: none; opacity: .95; text-shadow: 0 1px 4px rgba(47,26,11,.9); }
#menu ul a:hover, #menu ul a[aria-current] { opacity: 1; text-decoration: underline; }

/* Bandeau : paysage du logo en couches (parallaxe, /js/site.js), titre de la page */
.bandeau { position: relative; overflow: hidden; color: var(--parchemin); min-height: 320px; padding: 120px 0 40px;
  background: linear-gradient(180deg, #ec6f27 0%, #f3923c 40%, #f8b866 75%); }
/* sous le menu des joueurs (collé, pas fixe) : moins de place réservée en haut */
#menu.joueurs + .bandeau { min-height: 260px; padding-top: 56px; }
.paysage { position: absolute; inset: 0; pointer-events: none; }
.paysage::after { content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(47,26,11,.6), rgba(47,26,11,.2) 55%, rgba(47,26,11,0) 80%); }
.pile { position: absolute; left: 50%; bottom: -30%; width: max(100%, 1000px); aspect-ratio: 3072 / 1006; transform: translateX(-50%); }
.pile > * { position: absolute; left: 0; bottom: 0; width: 100%; will-change: transform; }
.soleil { left: 46%; bottom: auto; top: 6%; width: 9%; aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle, #fffbe6 0 50%, #ffe9a6 60%, rgba(255,233,166,0) 71%); }
.bandeau .conteneur { position: relative; }
.bandeau h1 { font-family: var(--jeu); font-size: clamp(30px, 5vw, 48px); line-height: 1.1; margin: 0 0 8px; overflow-wrap: break-word;
  text-shadow: 0 2px 10px rgba(0,0,0,.5); scroll-margin-top: 0; }
.bandeau p { margin: 0; font-size: 17px; max-width: 620px; text-shadow: 0 1px 6px rgba(0,0,0,.6); }

/* Contenu : <main class="adept-doc"><div id="contenu" class="conteneur"> (classe .adept-doc lue par /regles/commentaires.js) */
#contenu { max-width: 860px; padding-top: 12px; padding-bottom: 40px; text-align: left; }
#contenu h1, #contenu h2, #contenu h3 { font-family: var(--jeu); color: var(--brun); }
#contenu h1 { margin: 32px 0 4px; }
#contenu h2 { margin-top: 32px; border-bottom: 1px solid var(--ocre); }
#contenu h2, #contenu h3 { scroll-margin-top: 80px; }
#contenu .date { color: var(--ocre); margin: 0 0 24px; }
#contenu nav.sommaire { background: var(--parchemin); border: 1px solid var(--ocre); border-radius: 6px; padding: 8px 16px; margin: 16px 0; }
#contenu nav.sommaire ul { margin: 4px 0; padding-left: 20px; }
#contenu table { border-collapse: collapse; margin: 12px 0; background: var(--parchemin); font-size: 15px; }
#contenu th, #contenu td { border: 1px solid #d8c29a; padding: 4px 8px; text-align: left; vertical-align: top; }
#contenu th { background: #ecd9b4; }
#contenu .table-large { overflow-x: auto; }
#contenu .note { background: var(--parchemin); border-left: 4px solid var(--ocre); padding: 6px 12px; margin: 12px 0; }
#contenu code { background: #ecd9b4; padding: 0 4px; border-radius: 3px; font-size: 90%; }
#contenu .auteurs { font-size: 14px; font-style: italic; color: var(--ocre); margin-top: -4px; }
#contenu .suite { display: flex; justify-content: space-between; margin-top: 32px; }

/* Boutons .ez / .bouton (4/11) : comme EZBouton2 d'Unreal en CSS seul */
.ez, .bouton {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: .4em;
  min-height: 44px; padding: 6px 20px; margin: 3px; cursor: pointer; text-decoration: none; vertical-align: middle;
  font: 700 19px/1.15 var(--jeu); color: var(--ez-texte); letter-spacing: .02em;
  text-shadow: 1px 1px 0 var(--ez-noir), -1px -1px 0 var(--ez-noir), 1px -1px 0 var(--ez-noir), -1px 1px 0 var(--ez-noir);
  background: var(--ez-fond); border: 5px solid var(--ez-cadre); border-radius: 14px;
  box-shadow: 0 0 0 2px var(--ez-noir), inset 0 0 0 2px var(--ez-noir), inset 0 0 0 5px var(--ez-fond),
    inset 0 0 0 6px rgba(22, 6, 4, .75), 0 4px 10px rgba(47, 26, 11, .35);
  transition: background .12s, color .12s, transform .06s;
}
.ez:hover, .bouton:hover { background: var(--ez-survol); color: #f6e2b8; box-shadow: 0 0 0 2px var(--ez-noir), inset 0 0 0 2px var(--ez-noir),
  inset 0 0 0 5px var(--ez-survol), inset 0 0 0 6px rgba(22, 6, 4, .75), 0 4px 10px rgba(47, 26, 11, .35); }
.ez:active, .bouton:active { background: var(--ez-appui); transform: translateY(1px) scale(.98); box-shadow: 0 0 0 2px var(--ez-noir),
  inset 0 0 0 2px var(--ez-noir), inset 0 0 0 5px var(--ez-appui), inset 0 0 0 6px rgba(22, 6, 4, .75); }
.ez:focus-visible, .bouton:focus-visible { outline: 3px solid var(--ocre); outline-offset: 3px; }
.ez:disabled, .ez[aria-disabled=true] { opacity: .5; cursor: default; transform: none; }
.ez img { max-height: 28px; }
.ez.petit { min-height: 34px; padding: 2px 12px; font-size: 16px; border-width: 4px; border-radius: 11px; }

/* Bas de page */
footer { background: var(--brun-fonce); color: var(--sable); border-top: 1px solid rgba(233,211,168,.2); padding: 22px 0; font: 14px system-ui, sans-serif; }
footer .conteneur { display: flex; flex-wrap: wrap; gap: 18px; justify-content: space-between; }
footer a { color: var(--sable); }

@media (max-width: 760px) {
  #menu ul { gap: 14px; font-size: 16px; overflow-x: auto; white-space: nowrap; min-width: 0; scrollbar-width: none; }
  #menu ul::-webkit-scrollbar { display: none; }
  #menu .marque span { display: none; }
  .bandeau { min-height: 240px; padding-top: 100px; }
  #menu.joueurs + .bandeau { min-height: 200px; padding-top: 40px; }
  .paysage::after { background: rgba(47,26,11,.35); }
}

/* ===================================================================== menu des joueurs (commun à tout le site) */
/* barre collée en haut, toujours pleine ; liens en bannières .ez4 ; bouton « Menu » déroulant (co.php liensmenu, gabarit.php) */
#menu.joueurs { position: sticky; top: 0; padding: 8px 0; }
#menu.joueurs .conteneur { max-width: none; flex-wrap: wrap; }
#menu.joueurs .marque img { width: 36px; height: 36px; }
#volets { display: flex; flex-wrap: wrap; align-items: center; gap: 2px; font-family: var(--jeu); }
#menu .outils .but, #menu .outils button, #menu .outils input[type="image"], #menu.joueurs .liens > summary {
  display: inline-flex; align-items: center; cursor: pointer;
  min-height: 34px; margin: 0 2px; padding: 4px 12px; background: none; border: 0; border-radius: 8px; box-shadow: none; text-shadow: none;
  color: #f1e3c4; font: 700 16px/1.1 var(--jeu); letter-spacing: .03em; }
#menu .outils input.but[type="image"], #menu .outils button.but { width: 38px; height: 38px; padding: 6px; background: #c99a5f; }
#menu .outils .but:hover, #menu .outils button:hover, #menu .outils input[type="image"]:hover, #menu.joueurs .liens > summary:hover {
  background: rgba(241, 227, 196, .2); box-shadow: none; color: #fff; }
#menu .outils input.but[type="image"]:hover, #menu .outils button.but:hover { background: #e3bd84; }
.liens > div a { cursor: pointer; }
/* grand écran : liens de navigation dans la barre ; petit écran : dans le menu déroulant seulement */
.navmenu { display: contents; }
.rapides { display: none; }
@media (min-width: 1000px) { .rapides { display: contents; } .navmenu { display: none; } .liens.petit-ecran { display: none; } }
.liens { position: relative; }
.liens summary { list-style: none; }
.liens summary::-webkit-details-marker { display: none; }
.liens > div { position: absolute; left: 0; top: 100%; z-index: 50; min-width: 190px; display: flex; flex-direction: column; padding: 6px;
  background: var(--sable); border: 2px solid var(--ocre); border-radius: 10px; box-shadow: 0 4px 12px rgba(47, 26, 11, .35); }
/* menu à droite de la barre : liste ouverte vers la gauche pour rester dans l'écran */
#menu .liens > div { left: auto; right: 0; }
.liens > div a { padding: 7px 12px; font: 700 17px/1.2 var(--jeu); text-decoration: none; }
.liens > div a[aria-current] { text-decoration: underline; }
.liens > div hr { margin: 4px 0; border: 0; border-top: 1px solid var(--ocre); opacity: .6; }
#sousmenu { display: flex; flex-wrap: wrap; justify-content: center; gap: 2px; padding: 6px 8px; background: var(--sable); border-bottom: 1px solid var(--ocre); }
#sousmenu:empty { display: none; }
#volets a.but { font-size: 16px; }
@media (max-width: 760px) { #menu.joueurs .marque span { display: none; } }

/* ===================================================================== menu en colonne (15/11, adept/gabarit.php)
   Utilisateur : « le menu en colonne avec les étiquettes comme dans index.php », « fixe, pas déroulant ».
   Colonne fixe à gauche : logo puis bannières .ez4 empilées ; le contenu se décale de sa largeur.
   Petit écran : barre en haut (logo + bouton ☰), la colonne s'ouvre par-dessus la page (classe .ouvert posée par le bouton). */
:root { --colonne: 210px; }
#menu.colonne { position: fixed; top: 0; bottom: 0; left: 0; right: auto; width: var(--colonne); z-index: 30; padding: 14px 10px;
  display: flex; flex-direction: column; gap: 10px; overflow-y: auto; overscroll-behavior: contain;
  background: var(--brun-fonce); box-shadow: 2px 0 12px rgba(47,26,11,.35); transition: none; }
#menu.colonne .haut { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
#menu.colonne .marque { flex-direction: column; gap: 4px; margin: 0 auto; font-size: 15px; }
#menu.colonne .marque img { width: 64px; height: 64px; }
#menu.colonne .basculer { display: none; }
#menu.colonne .etiquettes { display: flex; flex-direction: column; align-items: stretch; }
#menu.colonne .etiquettes :is(a, button).ez4 { width: 100%; justify-content: flex-start; margin: 2px 0; padding: 0 4px; min-height: 40px; font-size: 16px; }
#menu.colonne .etiquettes :is(a, button).ez4:hover { margin: 2px 0; }
#menu.colonne .etiquettes :is(a[aria-current], button.actif).ez4 { filter: brightness(1.12); text-decoration: underline; }
#menu.colonne .etiquettes hr { width: 100%; margin: 8px 0; border: 0; border-top: 1px solid rgba(224,187,126,.35); opacity: 1; height: 0; }
/* accès joueurs (co.php) : boutons du compte (messages, jour / nuit, déconnexion…) ou formulaire de connexion, en rangée en tête */
#menu.colonne .outils { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px; margin-bottom: 8px; }
#menu.colonne .outils:empty { display: none; }
#menu.colonne .outils input:not([type=image]):not([type=submit]):not([type=button]) { width: 100% !important; }
#menu.colonne .basculer, #menu.colonne .basculer:hover { box-shadow: none; text-shadow: none; margin: 0; }
body:has(> #menu.colonne) { padding-left: var(--colonne); }
/* bandeau des pages : plus de menu au-dessus, moins de place réservée en haut */
#menu.colonne ~ .bandeau { min-height: 260px; padding-top: 60px; }
/* sommaire dans la colonne (15/11, /js/site.js) : copie du sommaire de la page, visible quand l'original est sorti de l'écran */
.sommaire-colonne { display: none; padding: 8px 4px 4px; border-top: 1px solid rgba(224,187,126,.35); font: 15px/1.3 var(--jeu); }
.sommaire-colonne.vue { display: block; }
/* #menu ul (ancien menu de la vitrine, en ligne) annulé : liste en colonne */
#menu .sommaire-colonne ul { display: flex; flex-direction: column; gap: 0; list-style: none; margin: 0; padding: 0; font-size: 15px;
  overflow: visible; white-space: normal; }
#menu .sommaire-colonne a { display: block; padding: 5px 8px; border-radius: 6px; color: #f1e3c4; text-decoration: none; text-shadow: none; opacity: 1; }
#menu .sommaire-colonne a:hover { background: rgba(241,227,196,.15); }
#menu .sommaire-colonne a[aria-current] { background: rgba(224,187,126,.25); color: #fff; border-left: 3px solid var(--ez-texte); }
@media (max-width: 760px) {
  .sommaire-colonne.vue { display: none; }
  #menu.colonne.ouvert .sommaire-colonne.vue { display: block; }
}

/* titre collé (15/11, /js/site.js) : bandeau réduit qui reste en haut quand on descend (utilisateur : « bandeau réduit, avec paysage »,
   pas une bande façon menu) : même ciel orangé, montagnes du paysage, voile brun à gauche, titre de la page comme dans le grand bandeau */
.titre-colle { position: fixed; top: 0; left: var(--colonne); right: 0; z-index: 25; height: 68px; padding: 0 24px; cursor: pointer;
  display: flex; align-items: center;
  font: 700 28px/1.1 var(--jeu); color: var(--parchemin); text-shadow: 0 2px 10px rgba(0,0,0,.5);
  background: linear-gradient(90deg, rgba(47,26,11,.6), rgba(47,26,11,.2) 55%, rgba(47,26,11,0) 80%),
    url(/i/presentation/montagnes-large.webp) center 78% / cover no-repeat,
    linear-gradient(180deg, #ec6f27 0%, #f3923c 40%, #f8b866 75%);
  box-shadow: 0 2px 12px rgba(47,26,11,.35);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  transform: translateY(-110%); transition: transform .2s; }
.titre-colle.vue { transform: none; }
body:not(:has(> #menu.colonne)) .titre-colle { display: none; }
@media (max-width: 760px) {
  .titre-colle { top: 54px; left: 0; height: 50px; padding: 0 16px; font-size: 21px; }
  body:has(> #menu.colonne) { padding-left: 0; padding-top: 56px; }
  #menu.colonne { bottom: auto; right: 0; width: auto; padding: 6px 12px; max-height: 100vh; }
  #menu.colonne .marque { flex-direction: row; margin: 0; }
  #menu.colonne .marque img { width: 40px; height: 40px; }
  #menu.colonne .marque span { display: inline; }
  #menu.colonne .basculer { display: inline-flex; align-items: center; justify-content: center; min-width: 46px; min-height: 42px; padding: 0 10px;
    font: 700 24px/1 var(--jeu); color: #f1e3c4; background: none; border: 1px solid rgba(241,227,196,.4); border-radius: 8px; cursor: pointer; }
  #menu.colonne .etiquettes { display: none; padding: 6px 0 10px; }
  #menu.colonne.ouvert .etiquettes { display: flex; }
  #menu.colonne ~ .bandeau { min-height: 200px; padding-top: 40px; }
}

/* ===================================================================== page de présentation (/index.html ; la Gazette est index.php), variante « accueil » de gabarit.php)
   Repris du <style> de l'ancienne index.html (30/10), même rendu ; couleurs communes du site (un peu moins claires, 4/11). */
.bandeau.accueil { min-height: clamp(560px, 94vh, 920px); padding: 100px 0 0; }
#menu.colonne ~ .bandeau.accueil { min-height: clamp(520px, 90vh, 900px); padding-top: 20px; }
.bandeau.accueil .paysage::after { background: linear-gradient(90deg, rgba(47,26,11,.55), rgba(47,26,11,.15) 55%, rgba(47,26,11,0) 75%); }
.bandeau.accueil .pile { bottom: -14%; height: 120%; width: auto; }
.accroche { max-width: 620px; margin-top: clamp(30px, 8vh, 90px); }
.bandeau .accroche h1 { font-size: clamp(30px, 5vw, 52px); line-height: 1.1; margin: 0 0 14px; }
.bandeau .accroche p { font-size: 19px; max-width: 560px; margin: 0 0 26px; }
/* boutons de la page de présentation : ocre plein (pas le bouton EZ du reste du site) */
.accueil .bouton, .accueil .bouton:hover, .accueil .bouton:active {
  display: inline-block; min-height: 0; margin: 0; background: var(--ocre); color: #fff; border: 0; cursor: pointer; letter-spacing: 0;
  padding: 13px 26px; border-radius: 8px; font: bold 19px var(--jeu); text-decoration: none; text-shadow: none;
  box-shadow: var(--ombre); transform: none; }
.accueil .bouton:hover { background: var(--brun); }
.accueil .bouton.discret { background: transparent; border: 2px solid var(--parchemin); margin-left: 10px; box-shadow: none; }
.accueil .bouton.discret:hover { background: rgba(47,26,11,.35); }
main.accueil section { padding: 60px 0; scroll-margin-top: 70px; }
main.accueil h2, main.accueil h3, main.accueil .etape strong { font-family: var(--jeu); }
main.accueil section h2 { font-size: 32px; margin: 0 0 8px; color: var(--brun); }
main.accueil .chapeau { font-size: 18px; margin: 0 0 32px; max-width: 720px; }
/* cartes en hexagones (pointe en haut, comme le logo) : bord ocre = fond, intérieur = ::before */
main.accueil .cartes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; filter: drop-shadow(0 8px 14px rgba(47, 26, 11, .22)); }
main.accueil .carte {
  --hex: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
  position: relative; aspect-ratio: 1 / 1.1547; clip-path: var(--hex);
  background: linear-gradient(160deg, #f6b25a, var(--ocre) 45%, var(--brun));
  display: flex; flex-direction: column; justify-content: center; align-items: center;
  text-align: center; padding: 16% 13%;
}
main.accueil .carte::before { content: ""; position: absolute; inset: 5px; clip-path: var(--hex); background: var(--parchemin); }
main.accueil .carte > * { position: relative; }
main.accueil .carte .icone { font-size: 38px; line-height: 1; }
main.accueil .carte h3 { margin: 10px 0 8px; color: var(--brun); font-size: 22px; }
main.accueil .carte p { margin: 0; font-size: 15.5px; line-height: 1.5; }
main.accueil .bande { background: var(--sable); }
main.accueil .deux { display: grid; grid-template-columns: 1.1fr 1fr; gap: 36px; align-items: center; }
main.accueil .deux img { width: 100%; border-radius: 12px; box-shadow: var(--ombre); border: 4px solid var(--parchemin); }
main.accueil .liste { list-style: none; padding: 0; margin: 0; }
main.accueil .liste li { padding: 10px 0 10px 34px; position: relative; border-bottom: 1px dashed rgba(90,50,20,.25); }
main.accueil .liste li::before { content: "⚀"; position: absolute; left: 0; top: 8px; font-size: 20px; color: var(--ocre); }
/* avancement */
main.accueil .etapes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; position: relative; margin: 10px 0 18px; }
main.accueil .etape { text-align: center; position: relative; padding-top: 34px; font: 15px system-ui, sans-serif; }
main.accueil .etape::before { content: ""; position: absolute; top: 9px; left: 50%; width: 22px; height: 22px; margin-left: -11px;
  border-radius: 50%; background: var(--sable); border: 3px solid var(--brun); z-index: 1; }
main.accueil .etape::after { content: ""; position: absolute; top: 18px; left: 0; right: 0; height: 4px; background: var(--sable); }
main.accueil .etape.fait::before { background: var(--vert); border-color: var(--vert); }
main.accueil .etape.encours::before { background: var(--ocre); border-color: var(--brun); box-shadow: 0 0 0 6px rgba(181,120,47,.25); }
main.accueil .etape.fait::after { background: var(--vert); }
main.accueil .etape strong { display: block; font-size: 17px; color: var(--brun); }
main.accueil .barre { height: 14px; background: var(--sable); border-radius: 8px; overflow: hidden; }
main.accueil .barre span { display: block; height: 100%; width: 30%; background: linear-gradient(90deg, var(--vert), var(--ocre)); }
main.accueil .petit { font: 14px system-ui, sans-serif; opacity: .8; }
/* préinscription */
main.accueil .inscription { background: var(--brun-fonce); color: var(--parchemin); }
main.accueil .inscription h2 { color: var(--sable); }
main.accueil form { display: grid; grid-template-columns: 1fr auto; gap: 12px; max-width: 620px; }
main.accueil form input[type=email] { padding: 13px 14px; border-radius: 8px; border: 2px solid var(--sable); font: 17px system-ui, sans-serif;
  background: var(--parchemin); color: var(--texte); }
main.accueil form label.consentement { grid-column: 1 / -1; font: 14px/1.5 system-ui, sans-serif; display: flex; gap: 8px; align-items: flex-start; }
main.accueil form .message { grid-column: 1 / -1; font: 15px system-ui, sans-serif; min-height: 1.5em; color: var(--sable); }
main.accueil .inscription a { color: var(--sable); }
@media (max-width: 760px) {
  .bandeau.accueil, #menu.colonne ~ .bandeau.accueil { padding-top: 24px; min-height: clamp(480px, 88vh, 800px); }
  main.accueil section { scroll-margin-top: 110px; }
  main.accueil .deux, main.accueil .cartes { grid-template-columns: 1fr; }
  main.accueil .carte { width: min(100%, 340px); margin: 0 auto; }
  .accueil .bouton.discret { margin: 12px 0 0; }
  main.accueil form { grid-template-columns: 1fr; }
}

/* ===================================================================== légendes (anciens forums, /legendes/*.html, 15/11)
   Contenu repris tel quel dans <div class="ancien legende"> (habillage de l'ancien site ci-dessous : .msg, .mesg en parchemin) ;
   ici seulement ce que faisait adept.css (plus chargée) : en-tête du message (avatar, auteur), liste des messages du fil. */
.legende .letter { margin: 8px 0 24px; }
.legende .letter > .center:first-child { margin-bottom: 8px; }
.legende .ta, .legende .ro { display: block; }
.legende .newlu, .legende .new { display: flex; align-items: center; gap: 12px; margin: 18px 0 8px; cursor: default; }
.legende .avatar img { width: 64px; height: 64px; object-fit: cover; border-radius: 8px; border: 2px solid var(--ocre); vertical-align: middle; }
.legende .author { font: 700 19px/1.2 var(--jeu); }
.legende .author a { text-decoration: none; }
.legende .msg { padding: 14px 18px; line-height: 1.65; }
.legende .msg .mesg { font-style: italic; margin: 12px 0; box-shadow: none; }
.legende .timeline { display: flex; flex-wrap: wrap; gap: 4px 10px; margin: 24px 0 0; padding-top: 10px; border-top: 1px solid var(--ocre); }
.legende .timeline a { text-decoration: none; }
.legende .timeline h2 { margin: 0; padding: 2px 10px; border: 1px solid var(--ocre); border-radius: 999px; font: 14px/1.4 Georgia, serif; color: var(--brun); }

/* ===================================================================== habillage de l'ancien site (joueurs.css, <body class=ancien>) */
html:has(> body.ancien) { background: var(--sable-clair); }
/* hauteur 100 % d'adept.css gardée : le canvas de jeu.php (même gabarit) en dépend */
body:where(.ancien) { font-family: Georgia, "Times New Roman", serif; color: var(--texte); background: var(--sable-clair); line-height: 1.5; font-variant-numeric: lining-nums; }
:where(.ancien) a:link, :where(.ancien) a:visited { color: var(--brun); }
:where(.ancien) a:hover { color: var(--ocre); }
:where(.ancien) H1, :where(.ancien) H2, :where(.ancien) H3 { font-family: var(--jeu); color: var(--brun); background: none; }
:where(.ancien) H1 { font-size: 1.6em; }
:where(.ancien) H2 { font-size: 1.25em; }
:where(.ancien) hr, :where(.ancien) hr.branche { border: 0; border-top: 1px solid var(--ocre); background: none; height: 0; opacity: .6; }

/* Boutons de l'ancien site → EZBouton2 */
:where(.ancien) .but, :where(.ancien) .button, :where(.ancien) .btns, :where(.ancien) .push, :where(.ancien) .btnslarge, :where(.ancien) .inp,
:where(.ancien) a.inp, :where(.ancien) input[type="submit"], :where(.ancien) input[type="button"], :where(.ancien) button:not(.nom) {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: .35em;
  min-height: 38px; height: auto; padding: 3px 14px; margin: 3px; cursor: pointer; text-decoration: none; vertical-align: middle;
  font: 700 17px/1.15 var(--jeu); color: var(--ez-texte); letter-spacing: .02em; width: auto;
  text-shadow: 1px 1px 0 var(--ez-noir), -1px -1px 0 var(--ez-noir), 1px -1px 0 var(--ez-noir), -1px 1px 0 var(--ez-noir);
  background: var(--ez-fond); border: 4px solid var(--ez-cadre); border-radius: 12px;
  box-shadow: 0 0 0 2px var(--ez-noir), inset 0 0 0 2px var(--ez-noir), inset 0 0 0 4px var(--ez-fond),
    inset 0 0 0 5px rgba(22, 6, 4, .75), 0 3px 8px rgba(47, 26, 11, .3);
  transition: background .12s, color .12s, transform .06s;
}
:where(.ancien) .but:hover, :where(.ancien) .button:hover, :where(.ancien) .btns:hover, :where(.ancien) .push:hover, :where(.ancien) .btnslarge:hover,
:where(.ancien) .inp:hover, :where(.ancien) a.inp:hover, :where(.ancien) input[type="submit"]:hover, :where(.ancien) input[type="button"]:hover,
:where(.ancien) button:not(.nom):hover {
  background: var(--ez-survol); color: #f6e2b8; margin: 3px; border-radius: 12px;
  box-shadow: 0 0 0 2px var(--ez-noir), inset 0 0 0 2px var(--ez-noir), inset 0 0 0 4px var(--ez-survol),
    inset 0 0 0 5px rgba(22, 6, 4, .75), 0 3px 8px rgba(47, 26, 11, .3);
}
:where(.ancien) .but:active, :where(.ancien) .button:active, :where(.ancien) .btns:active, :where(.ancien) .push:active, :where(.ancien) .inp:active,
:where(.ancien) input[type="submit"]:active, :where(.ancien) button:not(.nom):active {
  background: var(--ez-appui); transform: translateY(1px) scale(.98);
}
:where(.ancien) a.but:link, :where(.ancien) a.but:visited, :where(.ancien) a.button:link, :where(.ancien) a.button:visited,
:where(.ancien) a.inp:link, :where(.ancien) a.inp:visited, :where(.ancien) a.push:link, :where(.ancien) a.push:visited { color: var(--ez-texte); }
:where(.ancien) a.but:hover, :where(.ancien) a.button:hover, :where(.ancien) a.inp:hover, :where(.ancien) a.push:hover { color: #f6e2b8; }
:where(.ancien) input.but[type="image"] { width: 46px; height: 46px; min-height: 0; padding: 7px; object-fit: contain; background: #c99a5f;
  box-shadow: 0 0 0 2px var(--ez-noir), inset 0 0 0 2px var(--ez-noir), 0 3px 8px rgba(47, 26, 11, .3); }
:where(.ancien) input.but[type="image"]:hover { background: #e3bd84; box-shadow: 0 0 0 2px var(--ez-noir), inset 0 0 0 2px var(--ez-noir), 0 3px 8px rgba(47, 26, 11, .3); }
:where(.ancien) .but img, :where(.ancien) .button img, :where(.ancien) .inp img { max-height: 26px; }

/* Petites étiquettes (.info) */
:where(.ancien) .info, :where(.ancien) a.info { display: inline-flex; align-items: center; height: auto; min-height: 0; padding: 1px 8px; margin: 2px; border-radius: 999px;
  background: var(--parchemin); color: var(--brun); border: 1px solid var(--ocre); box-shadow: none; font: 14px/1.4 Georgia, serif; text-decoration: none; }
:where(.ancien) .info:hover, :where(.ancien) a.info:hover { background: var(--sable); color: var(--brun-fonce); }
:where(.ancien) .info img { height: 1.2em; width: auto; vertical-align: middle; }

/* Champs */
:where(.ancien) input[type="text"], :where(.ancien) input[type="password"], :where(.ancien) input[type="email"], :where(.ancien) input[type="number"],
:where(.ancien) input[type="search"], :where(.ancien) input:not([type]), :where(.ancien) select, :where(.ancien) textarea {
  font: 16px Georgia, serif; color: var(--texte); background: var(--parchemin); border: 1px solid var(--ocre); border-radius: 6px; padding: 5px 8px; height: auto; box-shadow: none;
}
:where(.ancien) input[type="text"]:hover, :where(.ancien) input:not([type]):hover, :where(.ancien) textarea:hover { background: #fff; color: var(--texte); }
:where(.ancien) input:focus, :where(.ancien) select:focus, :where(.ancien) textarea:focus { outline: 2px solid var(--ocre); outline-offset: 0; }

/* Cadres : parchemin de la vitrine */
:where(.ancien) :is(.mesg, .letter, .letters, .cadre, .cadrep, .cadrec, .cadrea, .cadreb, .cadred, .cadree, .cadref, .parch, .parche, .parch1, .msg, .post, .bloc) {
  background: var(--parchemin); background-image: none; color: var(--texte);
  border: 1px solid #d8c29a; border-radius: 8px; box-shadow: var(--ombre);
}
:where(.ancien) :is(.letters:before, .letters:after, .cadrep:after, .parch:before, .parch:after) { display: none; }
:where(.ancien) .cadrec { padding: 12px 14px; }
:where(.ancien) .mesg { padding: 10px 14px; margin: 10px 0; }
:where(.ancien) H2.tour, :where(.ancien) .tour { font-family: var(--jeu); color: var(--brun); }
:where(.ancien) .fiches div span { background: rgba(47, 26, 11, .82); color: var(--ez-texte); font-family: var(--jeu); }
:where(.ancien) .fiches .nom { background: var(--sable); box-shadow: var(--ombre); }
:where(.ancien) .author, :where(.ancien) .date { color: var(--ocre); }

/* Tableaux de données (ceux qui ont des th) */
:where(.ancien) table:has(th) { border-collapse: collapse; background: var(--parchemin); }
:where(.ancien) table:has(th) th, :where(.ancien) table:has(th) td { border: 1px solid #d8c29a; padding: 3px 7px; }
:where(.ancien) table:has(th) th { background: #ecd9b4; font-family: var(--jeu); color: var(--brun); }

/* jeu.php (ancien jeu 3D, canvas #c) : ciel d'adept.css derrière la scène, sous-menu transparent au-dessus du canvas */
html:has(> body.ancien canvas#c) { background: linear-gradient(var(--desert-1), var(--desert-2)) no-repeat center center fixed; }
html:has(> body.ancien canvas#c) body { background: transparent; }
html:has(> body.ancien canvas#c) #sousmenu { background: none; border: 0; position: relative; z-index: 3; }

/* Mode sombre : bouton jour / nuit (#horizon, horizon() de index.js) qui met adeptn.css au lieu d'adeptj.css dans <link id=style> */
html:has(link#style[href*="adeptn"]) {
  --sable-clair: #120803; --sable: #2b1709; --parchemin: #1f1007; --brun: #e0bb7e; --brun-fonce: #080302; --ocre: #b68f55;
  --texte: #e6d3ae; color-scheme: dark;
}
html:has(link#style[href*="adeptn"]) table:has(th) th { background: #2b1709; }
html:has(link#style[href*="adeptn"]) #menu .marque { color: var(--brun); }
html:has(link#style[href*="adeptn"]) :is(.mesg, .letter, .letters, .cadre, .cadrep, .cadrec, .cadrea, .cadreb, .cadred, .cadree, .cadref,
  .parch, .parche, .parch1, .msg, .post, .bloc), html:has(link#style[href*="adeptn"]) table:has(th) :is(th, td) { border-color: #3f2611; }
html:has(link#style[href*="adeptn"]) input[type="text"]:hover, html:has(link#style[href*="adeptn"]) textarea:hover { background: #2b1709; }
html:has(link#style[href*="adeptn"]) img[src$=".svg"]:not(.but) { filter: invert(.85) sepia(.4); }
#horizon { font-size: 20px; min-width: 46px; }
#horizon::before { content: "☀"; }
html:has(link#style[href*="adeptn"]) #horizon::before { content: "☾"; }
/* admin : sombre par défaut, clair avec <body class="admin jour"> (bouton jour / nuit de la colonne, 15/11) */
body.admin:not(.jour) #horizon::before { content: "☾"; }
body.admin.jour {
  --sable-clair: #e3cfa9; --sable: #dcc195; --parchemin: #efe0c2; --brun: #5a3214; --brun-fonce: #2f1a0b; --ocre: #b5782f;
  --texte: #2f1a0b; --doux: #7a5a35; --ligne: #d8c29a; --survol: #e6d2ab; --nok: #b8452c; --ok: #4f7d2e;
  color-scheme: light;
}

@media (max-width: 760px) {
  :where(.ancien) .but, :where(.ancien) .button, :where(.ancien) .inp, :where(.ancien) input[type="submit"], :where(.ancien) button:not(.nom) {
    font-size: 15px; min-height: 34px; padding: 2px 10px; }
  :where(.ancien) input.but[type="image"] { width: 40px; height: 40px; }
}

/* messagerie (TODO 63) : balises [b]…[/b] des messages (js/mp.js) */
.mp { white-space: pre-line; }
.mp-b { font-weight: bold; }
.mp-i { font-style: italic; }
.mp-u { text-decoration: underline; }
.mp-s { text-decoration: line-through; }
.mp-rouge { color: #b81414; }
.mp-bleu { color: #1a3fc4; }
.mp-vert { color: #128c1e; }
.mp-violet { color: #7a1f96; }
.mp-jaune { color: #c9a400; }
.mp-titre { font-family: "BlackChancery", serif; font-size: 1.6em; text-transform: uppercase; }
html:has(link#style[href*=adeptn]) .mp-rouge { color: #ff6b6b; }
html:has(link#style[href*=adeptn]) .mp-bleu { color: #7fa0ff; }
html:has(link#style[href*=adeptn]) .mp-vert { color: #6fdc7a; }
html:has(link#style[href*=adeptn]) .mp-violet { color: #d48cf0; }
.mp-barre { display: flex; gap: 4px; margin: 4px 0; }
.mp-bouton { min-width: 2em; padding: 2px 6px; font-weight: bold; cursor: pointer; }
.mp-bouton.mp-i { font-style: italic; } .mp-bouton.mp-u { text-decoration: underline; }
.mp-barre .mp-bouton.mp-rouge { color: #b81414; } .mp-barre .mp-bouton.mp-bleu { color: #1a3fc4; }
.mp-barre .mp-bouton.mp-vert { color: #128c1e; } .mp-barre .mp-bouton.mp-violet { color: #7a1f96; }

/* ===================================================================== boutons du jeu (TODO 137), tout le site
   .ez3 = EZBouton3 : navigation ; .ez2 = EZBouton2 : action (fond --fond : .vert, .rouge, .bleu) ; .ez4 = EZBouton4 : menu / onglets.
   Écrits après la règle générale de l'ancien site (.but, button:not(.nom)) : même spécificité, ils l'emportent. */
button.ez2, a.ez2 {
  --fond: #b0946a;
  display: inline-flex; align-items: center; justify-content: center; gap: .35em; min-height: 46px; padding: 2px 10px; margin: 3px;
  font: 700 17px/1.15 var(--jeu); color: #140c06; letter-spacing: .02em; text-decoration: none; text-shadow: none; cursor: pointer;
  background: var(--fond); border-radius: 0; box-shadow: 0 3px 6px rgba(47, 26, 11, .3);
  border-style: solid; border-width: 13px; border-image: url(/i/panel-am-noir.png) 10 / 13px stretch; image-rendering: pixelated;
}
button.ez2:hover, a.ez2:hover { background: var(--fond); color: #000; filter: brightness(1.12); margin: 3px; border-radius: 0; box-shadow: 0 3px 6px rgba(47, 26, 11, .3); }
button.ez2:active, a.ez2:active { background: var(--fond); filter: brightness(.82); transform: translateY(1px); }
button.ez2:disabled { filter: grayscale(.8) brightness(.8); opacity: .6; cursor: default; }
.ez2.vert { --fond: #6f9c4c; } .ez2.rouge { --fond: #c0634f; } .ez2.bleu { --fond: #6d8fb5; }
button.ez3, a.ez3 {
  display: inline-flex; align-items: center; justify-content: center; gap: .35em; min-height: 44px; padding: 4px 16px; margin: 3px;
  font: 700 17px/1.15 var(--jeu); color: var(--ez-texte); letter-spacing: .02em; text-decoration: none; cursor: pointer;
  text-shadow: 1px 1px 0 var(--ez-noir), -1px -1px 0 var(--ez-noir), 1px -1px 0 var(--ez-noir), -1px 1px 0 var(--ez-noir);
  background: #633d18; border: 4px solid #886340; border-radius: 15px;
  box-shadow: 0 0 0 2px #000, inset 0 0 0 3px #000, 0 3px 8px rgba(47, 26, 11, .3);
}
button.ez3:hover, a.ez3:hover { background: #d9ad7a; color: var(--ez-noir); text-shadow: none; margin: 3px; border-radius: 15px;
  box-shadow: 0 0 0 2px #000, inset 0 0 0 3px #000, 0 3px 8px rgba(47, 26, 11, .3); }
button.ez3:active, a.ez3:active { background: #75380d; color: var(--ez-texte); transform: translateY(1px) scale(.98); }
button.ez4, a.ez4 {
  display: inline-flex; align-items: center; justify-content: center; min-height: 40px; margin: 3px; padding: 0 4px;
  font: 700 16px/1.1 var(--jeu); color: #2b2420; letter-spacing: .02em; text-decoration: none; text-shadow: none; cursor: pointer;
  background: none; box-shadow: none; border-radius: 0;
  border-style: solid; border-width: 7px 26px 7px 12px; border-image: url(/i/onglet_inverse.svg) 26 100 26 44 fill / 7px 26px 7px 12px stretch;
}
button.ez4:hover, a.ez4:hover { background: none; box-shadow: none; color: #000; filter: brightness(1.07); margin: 3px; border-radius: 0; }
button.ez4:active, a.ez4:active { background: none; box-shadow: none; filter: brightness(.82); transform: none; }
button.ez4:disabled { filter: brightness(.6) grayscale(.4); cursor: default; }
a.ez4[aria-current] { text-decoration: underline; }
/* bannières dans la barre du haut : un peu plus petites */
#menu.joueurs #volets a.ez4 { min-height: 34px; font-size: 15px; margin: 2px 1px; border-width: 6px 22px 6px 10px; border-image-width: 6px 22px 6px 10px; }

/* ===================================================================== éditeur de modèles 3D (modeles.css, <body class=editeur3d>) */
/* menu des joueurs en haut, scène (#scene) dessous : la vue 3D et le volet se placent dans #scene */
[hidden] { display: none !important; }
html:has(> body.editeur3d) { height: 100%; overflow: hidden; background: #15130f; }
body.editeur3d { margin: 0; height: 100%; overflow: hidden; background: #15130f; color: #eee; font: 15px sans-serif; line-height: normal;
  display: flex; flex-direction: column; --volet: 360px; --tactile: 34px; }
@media (pointer: coarse) { body.editeur3d { --tactile: 44px; } }
.editeur3d #scene { position: relative; flex: 1; min-height: 0; }
.editeur3d #c { position: absolute; left: 0; top: 0; width: calc(100% - var(--volet)); height: 100%; display: block; touch-action: none; outline: none; }
.editeur3d #volet { position: absolute; right: 0; top: 0; bottom: 0; width: var(--volet); box-sizing: border-box; background: #100e0b; border-left: 1px solid #3a3326;
  display: flex; flex-direction: column; }
.editeur3d #volet-corps { overflow-y: auto; padding: 6px 10px calc(10px + env(safe-area-inset-bottom)); flex: 1; overscroll-behavior: contain; }
.editeur3d #replier { display: none; }
.editeur3d section { border-bottom: 1px solid #2a261e; padding: 6px 0; }
.editeur3d h2 { font-size: 13px; text-transform: uppercase; letter-spacing: .05em; color: #c9b27a; margin: 2px 0 4px; font-weight: normal; }
.editeur3d h2 .note { text-transform: none; letter-spacing: 0; }
.editeur3d .ligne { margin: 5px 0; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.editeur3d .grille-boutons { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.editeur3d #scene button { background: #3a3326; color: #eee; border: 1px solid #6d5f44; border-radius: 6px; padding: 4px 10px; min-height: var(--tactile); cursor: pointer; font: inherit;
  touch-action: manipulation; }
.editeur3d #scene button:hover { background: #4d4430; }
.editeur3d #scene button:disabled { opacity: .45; cursor: default; }
.editeur3d #scene button.actif { background: #8a6d2e; border-color: #d2a53a; }
.editeur3d #scene button.secondaire { background: #26231d; }
.editeur3d #scene button.danger { background: #5a2420; border-color: #8e3a32; }
.editeur3d #scene input, .editeur3d #scene select { background: #222; color: #eee; border: 1px solid #555; border-radius: 6px; padding: 3px 6px; font: inherit; min-height: calc(var(--tactile) - 8px); box-sizing: border-box; }
.editeur3d input[type=number] { width: 4.2em; }
.editeur3d input[type=range] { flex: 1; min-width: 80px; accent-color: #d2a53a; }
.editeur3d #nom { flex: 1; min-width: 0; }
.editeur3d label { display: inline-flex; gap: 4px; align-items: center; }
.editeur3d .note { color: #aaa; font-size: 13px; }
.editeur3d #aide { margin: 4px 0; }
.editeur3d #point-xyz input { width: 3.6em; }
.editeur3d #palette { display: grid; grid-template-columns: repeat(auto-fill, minmax(44px, 1fr)); gap: 4px; max-height: 30vh; overflow-y: auto; }
.editeur3d #scene .mat { width: 100%; aspect-ratio: 1; min-height: 0; padding: 0; border-width: 3px; border-color: #2a261e; }
.editeur3d #scene .mat.actif { border-color: #fff; box-shadow: 0 0 0 2px #d2a53a; }
.editeur3d .etiquette { font-size: 12px; padding: 2px 8px; border-radius: 8px; background: #333; }
.editeur3d .e0 { background: #444; } .editeur3d .e1 { background: #6d5a1a; } .editeur3d .e2 { background: #2c5e2a; } .editeur3d .e3 { background: #6a2420; }
.editeur3d #tests div { margin: 2px 0; font-size: 13px; }
.editeur3d #tests .nok { color: #ff8a7a; } .editeur3d #tests .alerte { color: #ffd27a; } .editeur3d #tests .ok { color: #9fdc8f; }
.editeur3d #mes { padding: 6px 0; } .editeur3d #mes summary { min-height: var(--tactile); line-height: var(--tactile); cursor: pointer; }
.editeur3d #liste { max-height: 40vh; overflow: auto; }
.editeur3d #liste .m { display: flex; gap: 6px; align-items: center; padding: 3px 0; border-bottom: 1px solid #333; cursor: pointer; min-height: var(--tactile); }
.editeur3d #liste .m:hover { background: #2a261e; }
.editeur3d #liste .m span:first-child { flex: 1; }
.editeur3d #toast { position: absolute; top: 12px; left: calc((100% - var(--volet)) / 2); transform: translateX(-50%); background: #2c5e2a; padding: 8px 14px; border-radius: 6px; z-index: 5; max-width: 80vw; }
.editeur3d #toast.nok { background: #6a2420; }
/* menu de l'éditeur : sur le fond sombre de l'éditeur, liste déroulante au-dessus de la vue 3D */
.editeur3d #menu.joueurs { position: relative; z-index: 20; flex: none; }

/* téléphone / écran étroit : vue 3D en haut, volet en tiroir en bas (repliable : 3D plein écran) */
@media (max-width: 800px) {
  body.editeur3d { --volet: 0px; --tiroir: 46vh; }
  .editeur3d #c { width: 100%; height: calc(100% - var(--tiroir)); }
  .editeur3d #volet { top: auto; left: 0; width: 100%; height: var(--tiroir); border-left: 0; border-top: 1px solid #3a3326; }
  .editeur3d #scene #replier { display: block; width: 100%; border-radius: 0; border-width: 0 0 1px; }
  body.editeur3d.replie { --tiroir: calc(var(--tactile) + 1px + env(safe-area-inset-bottom)); }
  body.editeur3d.replie #volet-corps { display: none; }
  .editeur3d #palette { max-height: none; }
  .editeur3d #toast { left: 50%; }
}

/* ===================================================================== admin (mj-…/index.php, <body class=admin>), 15/11
   Reprise d admin.css?v=26 (gardée sur le disque) : chaque sélecteur préfixé par :where(.admin) (spécificité inchangée), palette sombre
   posée sur body:where(.admin). Onglets = étiquettes .ez4 de la colonne (#menu.colonne #onglets). */
/* admin.css (2026-11-04) : interface admin, au style de la vitrine (TODO 165) : site.css chargée avant (police
   MedievalSharp, boutons .ez comme EZBouton2) ; ici la mise en page propre à l'admin.
   Très sombre, aux teintes de l'interface du jeu (EZBouton2 : fond #633d18, cadre #886340, contour #160604, texte #b68f55)
   pour voir tout de suite qu'on est « de l'autre côté » (4/11) : la palette de la vitrine est redéfinie ici seulement. */
body:where(.admin) {
  --sable-clair: #120803; --sable: #2b1709; --parchemin: #1f1007; --brun: #e0bb7e; --brun-fonce: #080302; --ocre: #b68f55;
  --texte: #e6d3ae;
  --fond: var(--sable-clair); --carte: var(--parchemin); --doux: #a8875a; --ligne: #3f2611;
  --accent: var(--ocre); --accent-texte: #160604; --ok: #8fbf6a; --nok: #e07a5f; --survol: #33190a;
  color-scheme: dark;
}
:where(.admin) * { box-sizing: border-box; }
body:where(.admin) { margin: 0; background: var(--fond); color: var(--texte); font: 15px/1.45 Georgia, "Times New Roman", serif; font-variant-numeric: lining-nums tabular-nums; }
:where(.admin) button, :where(.admin) input, :where(.admin) select { font: inherit; color: inherit; }
:where(.admin) a { color: var(--brun); }
:where(.admin) h1, :where(.admin) h2, :where(.admin) h3 { font-family: var(--jeu); color: var(--brun); }

/* 15/11 : barre du haut (.barre, #onglets en ligne) remplacée par la colonne du site ; anciennes règles retirées (admin.css les garde) */
:where(.admin) #moi { display: block; padding: 4px 6px; color: var(--doux); font-size: .95em; font-family: var(--jeu); }

:where(.admin) main { padding: 16px; max-width: 1400px; margin: 0 auto; }
:where(.admin) .refus { background: var(--carte); border: 1px solid var(--ligne); border-radius: 8px; padding: 1rem 1.25rem; }
:where(.admin) .vide { color: var(--doux); }

:where(.admin) .filtres { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1rem; }
:where(.admin) .filtres input[type=search] { flex: 1 1 16rem; }
:where(.admin) .filtres input[type=number] { width: 7rem; }
:where(.admin) input, :where(.admin) select { background: var(--carte); border: 1px solid var(--ligne); border-radius: 6px; padding: .4rem .6rem; }
:where(.admin) input:focus, :where(.admin) select:focus { outline: 2px solid var(--accent); outline-offset: -1px; }
:where(.admin) input:disabled { color: var(--doux); background: transparent; border-style: dashed; }
/* boutons : EZBouton2 (mêmes valeurs que .ez de site.css, version compacte) */
:where(.admin) button { position: relative; display: inline-flex; align-items: center; justify-content: center; min-height: 36px; padding: 2px 14px; cursor: pointer;
  font: 700 16px/1.15 var(--jeu); color: var(--ez-texte); letter-spacing: .02em;
  text-shadow: 1px 1px 0 var(--ez-noir), -1px -1px 0 var(--ez-noir), 1px -1px 0 var(--ez-noir), -1px 1px 0 var(--ez-noir);
  background: var(--ez-fond); border: 4px solid var(--ez-cadre); border-radius: 11px;
  box-shadow: 0 0 0 2px var(--ez-noir), inset 0 0 0 2px var(--ez-noir), inset 0 0 0 4px var(--ez-fond), inset 0 0 0 5px rgba(22,6,4,.75);
  transition: background .12s, color .12s, transform .06s; }
:where(.admin) button:hover { background: var(--ez-survol); color: #f6e2b8;
  box-shadow: 0 0 0 2px var(--ez-noir), inset 0 0 0 2px var(--ez-noir), inset 0 0 0 4px var(--ez-survol), inset 0 0 0 5px rgba(22,6,4,.75); }
:where(.admin) button:active { background: var(--ez-appui); transform: translateY(1px) scale(.98); }
/* secondaire : parchemin cerné d'ocre */
:where(.admin) button.secondaire { background: var(--parchemin); color: var(--brun); text-shadow: none; border: 2px solid var(--ocre); box-shadow: none; font-weight: 400; }
:where(.admin) button.secondaire:hover { background: var(--survol); color: var(--brun-fonce); box-shadow: none; }
:where(.admin) button:disabled { opacity: .5; cursor: default; transform: none; }

:where(.admin) .deux { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1rem; }
@media (min-width: 1000px) { :where(.admin) .deux { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); align-items: start; } }
:where(.admin) .table-defile { overflow-x: auto; background: var(--carte); border: 1px solid var(--ligne); border-radius: 8px; }
:where(.admin) table.liste { border-collapse: collapse; width: 100%; font-size: .92em; }
:where(.admin) .liste th, :where(.admin) .liste td { padding: .35rem .6rem; text-align: left; border-bottom: 1px solid var(--ligne); white-space: nowrap; }
:where(.admin) .liste th { color: var(--doux); font-weight: 600; position: sticky; top: 0; background: var(--carte); }
:where(.admin) .liste td.long { white-space: normal; min-width: 18rem; }
:where(.admin) .liste tr.cliquable { cursor: pointer; }
:where(.admin) .liste tr.cliquable:hover, :where(.admin) .liste tr.choisi { background: var(--survol); }
:where(.admin) .num { text-align: right; font-variant-numeric: tabular-nums; }
:where(.admin) .etiquette { display: inline-block; padding: 0 .4rem; border-radius: 4px; font-size: .82em; background: var(--survol); color: var(--doux); }
:where(.admin) .etiquette.barbare { background: var(--nok); color: #160604; }
:where(.admin) .etiquette.admin { background: var(--accent); color: var(--accent-texte); }

:where(.admin) .fiche { background: var(--carte); border: 1px solid var(--ligne); border-radius: 8px; padding: 1rem; position: sticky; top: 4rem; }
:where(.admin) .fiche h2 { margin: 0 0 .75rem; font-size: 1.2em; }
:where(.admin) .fiche h3 { margin: 1.25rem 0 .4rem; font-size: 1em; color: var(--doux); }
:where(.admin) .champs { display: grid; grid-template-columns: repeat(auto-fill, minmax(9.5rem, 1fr)); gap: .5rem .75rem; }
:where(.admin) .champs label { display: flex; flex-direction: column; font-size: .8em; color: var(--doux); }
:where(.admin) .champs input { font-size: 1.05em; color: var(--texte); }
:where(.admin) .champs input.change { border-color: var(--accent); background: var(--survol); }
:where(.admin) .actions { display: flex; gap: .5rem; margin-top: .9rem; align-items: center; }
:where(.admin) .note { font-size: .85em; color: var(--doux); }
:where(.admin) .puces { display: flex; flex-wrap: wrap; gap: .3rem; }
:where(.admin) .puces button { min-height: 0; background: var(--parchemin); color: var(--brun); padding: .1rem .55rem; font: 14px Georgia, serif; text-shadow: none; border: 1px solid var(--ocre); border-radius: 999px; box-shadow: none; }
:where(.admin) .puces button:hover { background: var(--survol); color: var(--brun-fonce); box-shadow: none; }

:where(.admin) .reglages { display: grid; gap: 0; max-width: 48rem; background: var(--carte); border: 1px solid var(--ligne); border-radius: 8px; padding: .25rem 1rem 1rem; }
:where(.admin) .reglage { display: grid; grid-template-columns: 1fr 7rem; gap: .2rem 1rem; align-items: center; padding: .8rem 0; border-bottom: 1px solid var(--ligne); }
:where(.admin) .reglage label { font-weight: 600; }
:where(.admin) .reglage small { grid-column: 1 / -1; color: var(--doux); }
:where(.admin) .reglages button { justify-self: start; margin-top: 1rem; }

:where(.admin) .aller { display: flex; gap: .3rem; }
:where(.admin) .aller input { width: 5.5rem; }
:where(.admin) .coche { display: flex; align-items: center; gap: .3rem; color: var(--doux); }
:where(.admin) .carte-cadre { background: var(--carte); border: 1px solid var(--ligne); border-radius: 8px; overflow: hidden; height: min(75vh, 900px); touch-action: none; }
:where(.admin) #carte-canvas { display: block; width: 100%; height: 100%; cursor: crosshair; }
@media (min-width: 1000px) { :where(.admin) .carte-deux { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); } }
:where(.admin) .ligne-case { border-top: 1px solid var(--ligne); padding-top: .6rem; margin-top: .6rem; }
:where(.admin) .ligne-case .champs { grid-template-columns: repeat(auto-fill, minmax(7rem, 1fr)); }
:where(.admin) button.danger { background: #7a1f12; color: #ffd9c7; box-shadow: 0 0 0 2px var(--ez-noir), inset 0 0 0 2px var(--ez-noir), inset 0 0 0 4px #7a1f12, inset 0 0 0 5px rgba(22,6,4,.75); }
:where(.admin) button.danger:hover { background: #a12a2a; box-shadow: 0 0 0 2px var(--ez-noir), inset 0 0 0 2px var(--ez-noir), inset 0 0 0 4px #a12a2a, inset 0 0 0 5px rgba(22,6,4,.75); }

:where(.admin) .colonne { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1rem; align-content: start; min-width: 0; }
:where(.admin) .colonne .liste td, :where(.admin) .colonne .liste th { white-space: normal; }
:where(.admin) .colonne .liste td.long { min-width: 0; }
:where(.admin) .deux > * { min-width: 0; }
/* page Icônes : liste compacte (une ligne par icône, sans ascenseur) à gauche, fiche à droite */
@media (min-width: 1000px) { :where(.admin) .deux-icones { grid-template-columns: max-content minmax(20rem, 1fr); } }
:where(.admin) .deux-icones .table-defile { overflow: visible; }
:where(.admin) .deux-icones .liste td, :where(.admin) .deux-icones .liste th { padding: .15rem .4rem; }
:where(.admin) .deux-icones .liste td.ico-nom { max-width: 15rem; overflow: hidden; text-overflow: ellipsis; }
:where(.admin) .deux-icones .fiche { top: 3.5rem; max-height: calc(100vh - 4.5rem); overflow-y: auto; padding: .6rem .8rem; }
:where(.admin) .deux-icones .fiche .actions button { padding: 2px 8px; }
:where(.admin) .deux-icones .fiche h3 { margin: .6rem 0 .25rem; }
:where(.admin) .deux-icones .fiche textarea { height: 2.6rem; }
:where(.admin) .colonne .fiche { position: static; }
:where(.admin) .chat-cadre { max-height: 75vh; overflow-y: auto; }
:where(.admin) .liste tr.refuse td { color: var(--nok); }
:where(.admin) .liste tr.nouveau { animation: nouveau 2s ease-out; }
@keyframes nouveau { from { background: var(--survol); } }
:where(.admin) .nom, :where(.admin) .nom:hover { min-height: 0; background: none; color: var(--brun); padding: 0; border: 0; box-shadow: none; text-shadow: none; font: 600 15px Georgia, serif; transform: none; }
:where(.admin) .nom:hover { text-decoration: underline; }
:where(.admin) .durees { display: flex; flex-wrap: wrap; gap: .35rem; margin: .5rem 0; }
:where(.admin) .durees button { min-height: 32px; font-size: 15px; }
:where(.admin) .durees button.actif { background: var(--ocre); color: #fff; box-shadow: 0 0 0 2px var(--ez-noir), inset 0 0 0 2px var(--ez-noir), inset 0 0 0 4px var(--ocre), inset 0 0 0 5px rgba(22,6,4,.75); }
:where(.admin) .fiche input.large { width: 100%; }
:where(.admin) .fiche h2 .note { font-weight: normal; }

:where(.admin) .toast { position: fixed; bottom: 16px; left: 50%; transform: translateX(-50%); background: var(--texte); color: var(--fond);
  padding: .6rem 1.1rem; border-radius: 8px; max-width: calc(100% - 32px); box-shadow: 0 4px 18px rgba(0,0,0,.25); }
:where(.admin) .toast.nok { background: var(--nok); color: #160604; }

/* bugs et suivi (TODO 166) */
:where(.admin) #onglets .compte:not(:empty) { display: inline-block; min-width: 1.3em; padding: 0 .3rem; margin-left: .2rem; border-radius: 999px; background: var(--nok); color: #160604; font: 700 12px/1.4 Georgia, serif; text-shadow: none; }
:where(.admin) .etiquette.bug0 { background: var(--nok); color: #160604; }
:where(.admin) .etiquette.bug1 { background: var(--accent); color: var(--accent-texte); }
:where(.admin) .etiquette.bug2 { background: var(--ok); color: #160604; }
:where(.admin) .fiche .message { white-space: pre-wrap; background: var(--fond); border: 1px solid var(--ligne); border-radius: 6px; padding: .6rem .8rem; }
:where(.admin) .fiche img.capture { display: block; max-width: 100%; max-height: 60vh; border: 1px solid var(--ligne); border-radius: 6px; }
:where(.admin) textarea { font: inherit; color: inherit; background: var(--carte); border: 1px solid var(--ligne); border-radius: 6px; padding: .4rem .6rem; }
:where(.admin) textarea.large { width: 100%; }
:where(.admin) .graphe svg { width: 100%; height: auto; max-height: 240px; }
:where(.admin) .graphe rect { fill: var(--ocre); }
:where(.admin) .graphe .barre-jour:hover rect { fill: var(--brun); }
:where(.admin) .graphe rect.prevu { fill: none; stroke: var(--ocre); stroke-width: 1; stroke-dasharray: 3 2; }
:where(.admin) .graphe .barre-jour:hover rect.prevu { fill: none; stroke: var(--brun); }
:where(.admin) .graphe .futur text.jour { fill: var(--ocre); }
:where(.admin) .graphe text { fill: var(--doux); font: 11px Georgia, serif; text-anchor: middle; }
:where(.admin) .graphe text.valeur { fill: var(--texte); }
:where(.admin) .plans details { border-bottom: 1px solid var(--ligne); padding: .35rem 0; }
:where(.admin) .plans summary { cursor: pointer; }
:where(.admin) .plans ul, :where(.admin) ul.taches { margin: .3rem 0 .3rem 0; padding-left: 1.1rem; }
:where(.admin) .plans li.fait { color: var(--doux); text-decoration: line-through; }
:where(.admin) .plans li.fait .nom { color: var(--doux); }
:where(.admin) .jour-barre { display: inline-flex; gap: 2px; vertical-align: middle; margin-left: .6rem; }
:where(.admin) .jour-barre i { width: 14px; height: 12px; border-radius: 2px; background: var(--accent); }
:where(.admin) .jour-barre i.fait { background: var(--ok); }
:where(.admin) .jour-barre i.trop { background: var(--nok); }
:where(.admin) code { font: .9em Consolas, monospace; background: var(--fond); padding: 0 .25rem; border-radius: 3px; }
:where(.admin) .md p { margin: .25rem 0; }
:where(.admin) .md p.puce::before { content: '• '; color: var(--doux); }
:where(.admin) #tache-fiche { max-height: 70vh; overflow-y: auto; }

/* messages signalés (TODO 62) : message signalé dans sa conversation */
:where(.admin) .fiche .fil { max-height: 40vh; overflow-y: auto; }
:where(.admin) .fiche .fil .message.choisi { outline: 2px solid var(--nok); }

/* commerce (5/11) : ligne avec une alerte d'abus */
:where(.admin) table.liste tr.alerte td { color: #e8a14a; }

:where(.admin) /* 5/11 : attribut hidden respecté (button { display: … } :where(.admin) le masquait : « Plus ancien… » toujours visible) */
[hidden] { display: none !important; }
/* balises des messages (5/11) : comme le jeu */
:where(.admin) .mp-b { font-weight: bold; } :where(.admin) .mp-i { font-style: italic; } :where(.admin) .mp-u { text-decoration: underline; } :where(.admin) .mp-s { text-decoration: line-through; }
:where(.admin) .mp-rouge { color: #ff6b6b; } :where(.admin) .mp-bleu { color: #7fa0ff; } :where(.admin) .mp-vert { color: #6fdc7a; } :where(.admin) .mp-violet { color: #d48cf0; } :where(.admin) .mp-jaune { color: #f2d04a; }
:where(.admin) .mp-titre { font-size: 1.4em; text-transform: uppercase; letter-spacing: .05em; }

/* aperçu d un modèle de l éditeur (onglet Modèles, TODO 176) */
:where(.admin) .apercu-modele { width: 100%; height: 460px; border: 1px solid #444; border-radius: 6px; background: #15130f; }

/* onglet Annonces (10/11, TODO 241) : titre de chaque bloc (annonces, pancartes) */
:where(.admin) h2.titre-bloc { margin: 18px 0 6px; font-size: 1.1em; }
:where(.admin) h2.titre-bloc:first-child { margin-top: 4px; }
/* choix d une case (13/11, TODO 260) : fenêtre de tous les types, icône + nom + code */
:where(.admin) .types-fond { position: fixed; inset: 0; background: rgba(0,0,0,.45); z-index: 50; display: flex; align-items: center; justify-content: center; }
:where(.admin) .types-boite { background: var(--fond); border: 1px solid var(--ligne); border-radius: 8px; padding: .8rem; width: min(900px, 94vw); max-height: 84vh; display: flex; flex-direction: column; gap: .5rem; }
:where(.admin) .types-grille { overflow: auto; display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 6px; }
:where(.admin) .types-grille button { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 4px; background: var(--carte); border: 1px solid var(--ligne); border-radius: 6px; color: var(--texte); cursor: pointer; font-size: 12px; }
:where(.admin) .types-grille button:hover { outline: 2px solid var(--accent); }
:where(.admin) .types-grille img, :where(.admin) .types-grille .sans { width: 48px; height: 48px; object-fit: contain; }
:where(.admin) .types-grille .sans { display: flex; align-items: center; justify-content: center; font-weight: bold; opacity: .6; }
:where(.admin) button.petit { padding: 0 .4em; margin-left: 2px; }
:where(.admin) .avec-bouton { display: flex; gap: 2px; align-items: stretch; } :where(.admin) .avec-bouton input { flex: 1; min-width: 0; }
/* pinceau actif (13/11) : fiche de case cachée, carte sur toute la largeur ; titres des champs du pinceau */
:where(.admin) .carte-deux.pinceau-actif { grid-template-columns: minmax(0, 1fr); } :where(.admin) .carte-deux.pinceau-actif #case-fiche { display: none; }
:where(.admin) .pinceau label.mini { display: inline-flex; flex-direction: column; font-size: .75em; color: var(--doux); vertical-align: bottom; margin-right: 2px; }
:where(.admin) .pinceau label.mini input { font-size: 1.2em; }
/* boutons de mode du pinceau (13/11) */
:where(.admin) .modes { display: inline-flex; gap: 0; border: 1px solid var(--ligne); border-radius: 6px; overflow: hidden; vertical-align: bottom; }
:where(.admin) .modes button { border: 0; border-radius: 0; background: var(--carte); color: var(--texte); padding: .3em .7em; }
:where(.admin) .modes button + button { border-left: 1px solid var(--ligne); }
:where(.admin) .modes button.actif, :where(.admin) #carte-pinceau-bouton.actif { background: var(--accent); color: var(--fond); font-weight: bold; }
:where(.admin) .mode-texte { font-size: .85em; font-weight: bold; color: var(--accent); margin: 0 .5em; }
/* 14/11 : bilan des points du niveau hors règle (onglet Persos, niveauPerso) */
:where(.admin) .note.alerte { color: #e8a14a; }
/* 14/11 : onglet Bestiaire (TODO 294), visionneuse des SVG face / dos */
:where(.admin) .bestiaire-outils { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1.5rem; margin: 0 0 1rem; }
:where(.admin) .bestiaire-grille { --bete: 220px; display: grid; grid-template-columns: repeat(auto-fill, minmax(calc(var(--bete) * 2 + 1.5rem), 1fr)); gap: 1rem; padding: 1rem; border-radius: 8px; border: 1px solid var(--ligne); }
:where(.admin) .bestiaire-grille.fond-clair { background: #efe6d2; }
:where(.admin) .bestiaire-grille.fond-sombre { background: #2a2420; }
:where(.admin) .bestiaire-grille.fond-damier { background: repeating-conic-gradient(#cfcfcf 0 25%, #f4f4f4 0 50%) 0 0 / 24px 24px; }
:where(.admin) .bete { margin: 0; text-align: center; }
:where(.admin) .bete-vues { display: flex; justify-content: center; gap: .5rem; }
:where(.admin) .bete-vues img, :where(.admin) .bete-manque { width: var(--bete); height: var(--bete); object-fit: contain; }
:where(.admin) .bete-manque { display: grid; place-items: center; color: var(--doux); border: 1px dashed var(--ligne); border-radius: 6px; }
:where(.admin) .bete figcaption { margin-top: .25rem; font-weight: bold; color: #3f2611; }
:where(.admin) .fond-sombre .bete figcaption { color: #efe6d2; }
/* 16/11 (TODO 312) onglet Compétences : pilules de filtre (pas de liste déroulante), cartes par caractéristique, fiche + essai à droite */
:where(.admin) .comp-filtres { align-items: center; }
:where(.admin) .comp-pilules .info { padding: 2px 10px; margin: 2px; border: 1px solid var(--ligne); border-radius: 999px; background: var(--carte); color: var(--texte); font: inherit; cursor: pointer; }
:where(.admin) .comp-pilules .info.choisie { background: var(--ocre); color: var(--brun-fonce); border-color: var(--ocre); }
:where(.admin) .comp-deux { display: grid; grid-template-columns: minmax(0, 1fr) minmax(18rem, 26rem); gap: 1rem; align-items: start; }
@media (max-width: 900px) { :where(.admin) .comp-deux { grid-template-columns: minmax(0, 1fr); } }
:where(.admin) .comp-groupe h3 { margin: 1rem 0 .4rem; border-bottom: 1px solid var(--ligne); }
:where(.admin) .comp-grille { display: grid; grid-template-columns: repeat(auto-fill, minmax(8.5rem, 1fr)); gap: .5rem; }
:where(.admin) .comp-carte { display: flex; flex-direction: column; align-items: center; gap: .15rem; padding: .5rem .4rem; border: 1px solid var(--ligne); border-radius: 8px;
  background: var(--carte); color: var(--texte); font: inherit; text-align: center; cursor: pointer; }
:where(.admin) .comp-carte:hover, :where(.admin) .comp-carte.choisie { outline: 2px solid var(--ocre); }
:where(.admin) .comp-carte.inactive { opacity: .45; }
:where(.admin) .comp-carte img, :where(.admin) .comp-sans { width: 48px; height: 48px; object-fit: contain; }
/* icônes à l'encre noire : fond parchemin pour le thème sombre */
:where(.admin) .comp-carte img, :where(.admin) .comp-fiche h2 img { background: #efe0c2; border-radius: 6px; padding: 3px; }
:where(.admin) .comp-sans { display: grid; place-items: center; border: 1px dashed var(--ligne); border-radius: 6px; color: var(--doux); }
:where(.admin) .comp-carte b { line-height: 1.15; }
:where(.admin) .comp-carte small { color: var(--doux); }
:where(.admin) .comp-etat { font-size: .8em; padding: 0 .5rem; border-radius: 999px; }
:where(.admin) .comp-etat.jeu { background: var(--ok); color: #fff; }
:where(.admin) .comp-etat.venir { background: var(--ligne); color: var(--texte); }
:where(.admin) .comp-etat.tech { border: 1px dashed var(--ligne); color: var(--doux); }
:where(.admin) .comp-fiche { position: sticky; top: 1rem; padding: 1rem; border: 1px solid var(--ligne); border-radius: 8px; background: var(--carte); }
:where(.admin) .comp-fiche h2 { display: flex; align-items: center; gap: .5rem; margin-top: 0; }
:where(.admin) .comp-fiche h2 img { width: 40px; height: 40px; }
:where(.admin) .comp-details th { text-align: left; padding-right: 1rem; color: var(--doux); font-weight: normal; }
:where(.admin) .comp-essai { display: flex; gap: .5rem; flex-wrap: wrap; align-items: center; }
:where(.admin) .comp-essai input { flex: 1 1 12rem; }
:where(.admin) .comp-journal { margin-top: .5rem; max-height: 16rem; overflow: auto; font-size: .9em; }
:where(.admin) .comp-journal .nok { color: var(--nok); }

/* Fair-play (TODO 126, 18/11) : fiche du perso (voirperso.fiche.php) ; bleue = défaites acceptées (monte vers la gauche),
   rouge = combats quittés (monte vers la droite) ; chaque barre rapportée au maximum de tous les joueurs */
.fiches .fairplay { display: flex; align-items: center; gap: .3rem; justify-content: center; }
.fiches .fairplay progress { flex: 1 1 4rem; width: 4rem; height: .7rem; appearance: none; -webkit-appearance: none; border: 0; background: rgba(0, 0, 0, .12); }
.fiches .fairplay progress::-webkit-progress-bar { background: rgba(0, 0, 0, .12); box-shadow: none; }
.fiches .fairplay .fp-bleu { direction: rtl; }
.fiches .fairplay .fp-bleu::-webkit-progress-value { background: #0d40bf; }
.fiches .fairplay .fp-bleu::-moz-progress-bar { background: #0d40bf; }
.fiches .fairplay .fp-rouge::-webkit-progress-value { background: #b30f0a; }
.fiches .fairplay .fp-rouge::-moz-progress-bar { background: #b30f0a; }
.fiches .fairplay b { font-family: var(--jeu); }
.fiches .fairplay .fp-b { color: #0d40bf; }
.fiches .fairplay .fp-r { color: #b30f0a; }

/* ===================================================================== admin : onglet « Visages » (20/11, TODO 354 lot 2)
   Tri des pièces de visage porté de la page locale 127.0.0.1:8765 (rustsocket tools/points_web.py) : mêmes zones, id préfixés
   « vs- », classes d'état (bilan, vue, tri, dbl, gomme, remplir, elements) sur la section #visages. Les images restent sur
   papier clair (encre sombre des pièces) ; actions = .ez2, navigation = .ez3, petits outils = pilules. */
#visages { --vs-papier: #efe6d2; --vs-clair: #f8f2e4; --vs-encre: #2a2018; --vs-bord: #b9a98a; --vs-accent: #8a3b2e; }
#visages .vs-tete { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; margin-bottom: .4rem; }
#visages #vs-onglets .ez3.sel { background: #d9ad7a; color: var(--ez-noir); text-shadow: none; }
#visages #vs-etat { margin-left: auto; }
#visages .vs-barre { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; margin-bottom: .5rem; }
#visages kbd { border: 1px solid var(--ligne); border-radius: 3px; padding: 0 3px; font-size: .85em; }
/* petits boutons (filtres, outils, catégories) : pilules, pas le gros cadre des boutons de l'admin */
#visages .vs-pilules button, #visages .leg button, #visages .vs-outils button, #vs-unDeplMenu button, #vs-dblListe button, #vs-cats button {
  min-height: 0; padding: .1rem .55rem; margin: 1px; font: 14px Georgia, serif; text-shadow: none; box-shadow: none;
  background: var(--parchemin); color: var(--brun); border: 1px solid var(--ocre); border-radius: 999px; }
#visages .vs-pilules button:hover, #visages .leg button:hover, #visages .vs-outils button:hover, #vs-unDeplMenu button:hover, #vs-dblListe button:hover, #vs-cats button:hover {
  background: var(--survol); color: var(--brun); box-shadow: none; }
#visages .vs-pilules button.sel, #visages .leg button.sel, #visages .vs-outils button.sel, #vs-cats button.sel { background: var(--accent); color: var(--accent-texte); }
#visages .ez2.sel { --fond: #6d8fb5; }
#vs-cats { display: flex; gap: 4px; flex-wrap: wrap; margin-bottom: .5rem; }
#vs-cats button { flex-direction: column; border-radius: 6px; font-size: 12px; line-height: 1.1; padding: 2px 6px; }
#vs-cats button img { width: 38px; height: 38px; object-fit: contain; background: var(--vs-clair); border-radius: 3px; }
#vs-main, #visages .pts { display: none !important; }
#visages:not(.bilan) #vs-bilan, #visages:not(.tri) #vs-tri, #visages:not(.vue) #vs-vue, #visages:not(.dbl) #vs-dbl, #visages.bilan #vs-cats { display: none; }
/* bilan */
#visages .vs-bilan { width: auto; }
#visages .vs-ok { color: var(--ok); } #visages .vs-nok { color: var(--nok); } #visages .vs-gras { font-weight: bold; }
#visages .vs-total td { border-top: 2px solid var(--ocre); font-weight: bold; }
#visages .vs-bilan progress { width: 8rem; vertical-align: middle; accent-color: var(--ok); }
/* aperçu (grille) */
#vs-vueGrille { display: grid; grid-template-columns: repeat(auto-fill, minmax(var(--t, 96px), 1fr)); gap: 5px; }
#visages .vg { position: relative; border: 3px solid #d8ccb0; border-radius: 5px; background: var(--vs-clair); cursor: pointer; }
#visages .vg img { width: 100%; aspect-ratio: 1; object-fit: contain; display: block; }
#visages .vg span { position: absolute; left: 3px; bottom: 0; font-size: 10px; color: #7a6a50; }
#visages .vg.valide { border-color: #2e8b3a; } #visages .vg.ecarte { border-color: #b3261e; } #visages .vg.ecarte img { opacity: .3; }
#visages .vg:hover { outline: 2px solid var(--accent); }
#visages .vg.valide::after { content: "✓"; position: absolute; right: 3px; top: -2px; color: #2e8b3a; font: bold 16px Arial; }
#visages .vg.ecarte::after { content: "✗"; position: absolute; right: 3px; top: -2px; color: #b3261e; font: bold 16px Arial; }
/* doublons */
#visages .grp { border: 1px solid var(--ligne); border-radius: 6px; background: var(--carte); padding: 6px; margin-bottom: 8px; }
#visages .grp .tete { font-size: 13px; margin-bottom: 4px; display: flex; gap: 10px; align-items: center; }
#visages .grp .pcs { display: flex; gap: 8px; flex-wrap: wrap; }
#visages .pc { border: 2px solid #d8ccb0; border-radius: 5px; background: var(--vs-clair); color: var(--vs-encre); width: 220px; text-align: center; font-size: 12px; }
#visages .pc .im { display: flex; } #visages .pc img { width: 50%; aspect-ratio: 1; object-fit: contain; } #visages .pc img.o { background: #fff; }
#visages .pc.valide { border-color: #2e8b3a; }
/* tri : une pièce à la fois */
#vs-un { display: flex; gap: 12px; justify-content: center; } #vs-un .cote { flex: 1; max-width: 46vw; min-width: 0; }
#vs-un .leg { font-size: 13px; text-align: center; margin-bottom: 3px; }
#vs-un img { width: 100%; height: calc(100vh - 300px); object-fit: contain; background: #fff; border: 3px solid #d8ccb0; border-radius: 6px; }
#vs-un img#vs-unOrig { height: calc(62vh - 170px); }
#vs-un.valide #vs-unOrig { border-color: #2e8b3a; } #vs-un.ecarte #vs-unOrig { border-color: #b3261e; }
#vs-origBox { position: relative; } #vs-gommeCan { position: absolute; left: 0; top: 0; pointer-events: none; }
#visages.gomme #vs-gommeCan { pointer-events: auto; cursor: cell; }
#vs-gommeTaille { width: 80px; vertical-align: middle; padding: 0; }
#vs-unApercu { display: flex; gap: 4px; height: calc(38vh - 110px); }
#vs-unApercu div { flex: 1; background: var(--vs-papier); border: 1px solid var(--vs-bord); border-radius: 4px; }
#vs-unApercu svg { width: 100%; height: 100%; } #vs-unMulti { color: var(--nok); font-weight: bold; }
#vs-unVar { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; height: calc(100vh - 300px); }
#vs-unVar figure { margin: 0; border: 3px solid #d8ccb0; border-radius: 6px; background: var(--vs-clair); color: var(--vs-encre); cursor: pointer; display: flex; flex-direction: column; min-height: 0; }
#vs-unVar figure.legere { border-color: #2e8b3a; } #vs-unVar figure:hover { border-color: var(--vs-accent); } #vs-unVar figure.choisie { border-color: #2e8b3a; background: #e6f3e2; }
#vs-unVar .s { flex: 1; min-height: 0; } #vs-unVar .s svg { width: 100%; height: 100%; } #vs-unVar figcaption { font-size: 12px; text-align: center; padding: 2px; }
#vs-unVar p { grid-column: 1 / -1; text-align: center; align-self: center; }
#vs-unConsigne:not(:empty) { background: #fbe3c8; color: #6a2b00; border: 1px solid #d87000; border-radius: 5px; padding: 4px 8px; margin-bottom: 4px; font-size: 14px; text-align: center; }
#vs-unBoutons { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; align-items: center; margin-top: 10px; }
#vs-unNom { min-width: 180px; text-align: center; font-weight: bold; font-family: var(--jeu); color: var(--brun); }
#vs-unDeplMenu { display: none; position: absolute; bottom: 110%; left: 0; background: var(--carte); border: 1px solid var(--ocre); border-radius: 6px; padding: 6px; z-index: 20; width: 330px; flex-wrap: wrap; gap: 4px; }
#vs-unDeplMenu.ouvert { display: flex; }
#visages .vs-aide { text-align: center; margin-top: 4px; }
/* étape points (éditeur déplacé dans #vs-unPts) */
#vs-unPts { flex-direction: column; height: calc(100vh - 300px); } #vs-unPts #vs-zone { flex: 1; min-height: 0; } #vs-unPts #vs-legende { font-size: 12px; }
#vs-unPts .barrePts { display: flex; gap: 8px; justify-content: center; margin-top: 4px; }
/* 20/11 TODO 354 lot 3 : bandeau des doublons de la pièce validée */
#vs-dblDe { border: 2px solid #b8860b; border-radius: 6px; background: var(--vs-clair); color: var(--vs-encre); padding: 6px; margin: 4px 0; font-size: 13px; }
#vs-dblDe .l { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0; max-height: 170px; overflow-y: auto; }
#vs-dblDe .dd { width: 72px; text-align: center; border: 2px solid #d8ccb0; border-radius: 4px; cursor: pointer; opacity: .55; }
#vs-dblDe .dd.sel { border-color: #b22222; opacity: 1; } #vs-dblDe .dd img { width: 100%; aspect-ratio: 1; object-fit: contain; display: block; }
#vs-dblDe .b { display: flex; gap: 6px; flex-wrap: wrap; justify-content: center; }
#vs-zone { position: relative; border: 1px solid var(--vs-bord); background: var(--vs-clair); touch-action: none; overflow: hidden; }
#vs-zone svg.piece { position: absolute; inset: 0; width: 100%; height: 100%; }
#vs-legende { font-size: 13px; margin-top: 4px; line-height: 1.5; background: var(--vs-clair); padding: 2px 6px; border-radius: 4px; }
#visages .manque { opacity: .5; text-decoration: line-through; }
#vs-tailleBox { font-size: 13px; }
#visages.remplir #vs-zone svg { cursor: crosshair; }
#visages.elements #vs-zone svg { cursor: pointer; }
#vs-zone .elemSel { stroke: #e0007a !important; stroke-width: 4px !important; vector-effect: non-scaling-stroke; stroke-dasharray: 6 3; }
/* redécoupe : plein écran */
#vs-dec { position: fixed; inset: 0; background: rgba(18, 8, 3, .88); z-index: 50; display: flex; flex-direction: column; align-items: center; padding: 8px; }
#vs-dec .barre { background: var(--carte); border: 1px solid var(--ocre); padding: 4px 10px; border-radius: 5px; margin-bottom: 6px; font-size: 14px; }
#vs-decZone { position: relative; line-height: 0; background: #fff; } #vs-decImg { max-width: 96vw; max-height: calc(100vh - 110px); display: block; }
#vs-decSvg { position: absolute; inset: 0; width: 100%; height: 100%; cursor: crosshair; touch-action: none; }
@media (max-width: 900px) { #vs-un { flex-direction: column; } #vs-un .cote { max-width: none; } #vs-unVar { grid-template-columns: repeat(2, 1fr); } }

/* 21/11 (TODO 365 lot 1) : onglet Univers de l'admin (univers.js) = bible du monde. Préfixe u-. Couleur d'intrigue : --u-c. */
#univers .u-tete, #univers .u-barre { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; margin-bottom: .6rem; }
#univers #u-vues .ez3.sel { background: #d9ad7a; color: var(--ez-noir); text-shadow: none; }
#univers .u-tete > a.ez2 { margin-left: auto; text-decoration: none; }
#univers .u-pilules button, #univers .u-barre > button:not(.ez2), #univers .u-valider button, #univers .u-x, #univers .u-revel button, #univers .u-genre, #univers .u-noeud {
  border: 1px solid var(--ligne); background: var(--carte); color: var(--texte); border-radius: 999px; padding: 1px 9px; cursor: pointer; font: inherit; font-size: .9em; }
#univers .u-pilules button.sel, #univers .u-barre > button.sel { background: var(--accent); color: var(--accent-texte); }
#univers .u-deux { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 1rem; align-items: start; }
#univers #u-panneau { top: 3.5rem; max-height: calc(100vh - 4.5rem); overflow-y: auto; }
#univers .note { color: var(--doux); }
#univers .vide { color: var(--doux); font-style: italic; }
/* grille livres × intrigues : colonne des livres figée */
#univers .u-defile { overflow-x: auto; border: 1px solid var(--ligne); border-radius: 8px; }
#univers .u-grille { border-collapse: separate; border-spacing: 0; min-width: 100%; }
#univers .u-grille th, #univers .u-grille td { border-right: 1px solid var(--ligne); border-bottom: 1px solid var(--ligne); padding: 5px 7px; vertical-align: top; text-align: left; }
#univers .u-grille th.u-col { border-top: 5px solid var(--u-c); min-width: 150px; cursor: pointer; background: var(--carte); position: sticky; top: 0; }
#univers .u-grille th small, #univers .u-livre small { display: block; font-weight: normal; color: var(--doux); font-size: .8em; }
#univers .u-livre { position: sticky; left: 0; z-index: 1; background: var(--carte); min-width: 170px; cursor: pointer; }
#univers .u-coin { background: var(--carte); }
#univers .u-case { cursor: pointer; font-size: .9em; min-height: 3em; border-left: 3px solid transparent; }
#univers .u-case:hover, #univers .u-livre:hover, #univers th.u-col:hover { background: var(--survol); }
#univers .u-case.valide { border-left-color: var(--u-c); }
#univers .u-case.propose { outline: 2px dashed var(--u-c); outline-offset: -4px; }
#univers .u-case.refuse .u-texte { text-decoration: line-through; color: var(--doux); }
#univers .u-case.oubli { background: repeating-linear-gradient(45deg, transparent 0 8px, rgba(205, 120, 30, .13) 8px 16px); }
#univers .u-oubli { color: #c8781e; font-size: 1.2em; }
#univers .choisi { box-shadow: inset 0 0 0 2px var(--accent); }
#univers .u-type { display: inline-block; font-size: .75em; text-transform: uppercase; letter-spacing: .03em; color: var(--doux); margin-right: .35em; }
#univers .u-type.revelation { color: var(--nok); font-weight: bold; }
#univers .u-type.rappel { font-style: italic; }
#univers .u-valider { display: flex; gap: 4px; margin-top: 4px; }
#univers .u-valider .ok { color: var(--ok); } #univers .u-valider .nok { color: var(--nok); }
#univers .propose { border-style: dashed; }
#univers .refuse { opacity: .55; }
#univers .u-etiq { font-size: .75em; border: 1px solid var(--ligne); border-radius: 4px; padding: 0 4px; margin: 0 2px; color: var(--doux); }
#univers .u-etiq.propose { border: 1px dashed var(--accent); color: var(--accent); }
#univers .u-secret, #univers textarea.u-secret { background: rgba(184, 69, 44, .1); border-left: 3px solid var(--nok); }
#univers p.u-secret { padding: 3px 6px; }
#univers .u-alerte { color: var(--nok); }
/* panneau */
#univers .u-form label { display: flex; flex-direction: column; gap: 2px; margin-bottom: .45rem; font-size: .85em; color: var(--doux); }
#univers .u-form input:not([type=color]), #univers .u-form select, #univers .u-form textarea, #univers .u-ajout textarea, #univers .u-frags textarea, #univers .u-propose input { width: 100%; box-sizing: border-box; font: inherit; color: var(--texte); }
#univers .actions { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; }
#univers .danger { color: var(--nok); border-color: var(--nok); }
#univers .u-propose { border: 1px dashed var(--accent); border-radius: 6px; padding: .5rem; margin-bottom: .6rem; }
#univers .u-frags, #univers .u-liens { padding-left: 1.2rem; margin: .3rem 0; }
#univers .u-frags li { margin-bottom: .4rem; }
#univers .u-frags select { width: 100%; font-size: .85em; }
#univers .u-liens li { margin: .2rem 0; }
#univers .u-ajout { display: flex; flex-wrap: wrap; gap: .4rem; align-items: center; margin-bottom: .4rem; }
#univers .u-ajout select { max-width: 100%; }
/* fiches */
#univers .u-genre.lieu { border-color: #b5782f; } #univers .u-genre.pnj { border-color: #3f7a6a; } #univers .u-genre.faction { border-color: #6d5fa8; }
#univers .u-genre.dieu { border-color: #c8a227; } #univers .u-genre.evenement { border-color: #8a3b2e; } #univers .u-genre.objet { border-color: #6d8fb5; }
#univers .u-fiches, #univers .u-cartes { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: .6rem; }
#univers .u-carte-fiche { text-align: left; display: flex; flex-direction: column; gap: 3px; padding: .5rem .6rem; background: var(--carte); color: var(--texte);
  border: 1px solid var(--ligne); border-radius: 8px; cursor: pointer; font: inherit; }
#univers .u-carte-fiche .u-genre { align-self: flex-start; font-size: .75em; }
#univers .u-carte-fiche small { color: var(--doux); }
/* intrigues, dieux */
#univers .u-intrigue, #univers .u-dieu { background: var(--carte); border: 1px solid var(--ligne); border-top: 5px solid var(--u-c, var(--ocre)); border-radius: 8px; padding: .5rem .7rem; }
#univers .u-intrigue h3, #univers .u-dieu h3 { margin: 0 0 .4rem; cursor: pointer; font-size: 1.05em; }
#univers .u-revel { padding-left: 1.3rem; } #univers .u-revel button { padding: 0 5px; margin-left: 4px; }
/* mythologie : 8 cases des penchants (21/11) */
#univers .u-octants { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: .7rem; margin-bottom: 1rem; }
#univers .u-octant { border: 1px solid var(--ligne); border-radius: 8px; padding: .5rem; display: flex; flex-direction: column; gap: .5rem; }
#univers .u-octant > h3 { margin: 0; font-size: 1em; } #univers .u-octant > h3 small { display: block; font-weight: normal; color: var(--doux); font-size: .8em; }
#univers .u-noms { list-style: none; padding: 0; margin: .3rem 0 0; display: flex; flex-direction: column; gap: 3px; }
#univers .u-mytho { display: inline-block; min-width: 7.5em; font-size: .8em; color: var(--doux); }
/* tableau des penchants (image du jeu, 21/11) : bandeaux colorés + hexagone central */
#univers .u-tableau { display: grid; grid-template-columns: 1fr auto 1fr; grid-template-rows: repeat(3, 48px); gap: 8px 0; align-items: center; max-width: 760px; margin: .5rem auto 1.2rem; }
#univers .u-bandeau { --u-c: #888; height: 44px; border: 4px solid #1a0f08; border-radius: 8px; background: var(--u-c);
  box-shadow: inset 0 0 0 3px rgba(0, 0, 0, .25), 0 3px 0 #1a0f08; font-family: var(--jeu); font-size: 1.6em; color: #9a7448;
  text-shadow: 1px 1px 0 #3a230f, -1px -1px 0 rgba(255, 255, 255, .25); cursor: pointer; padding: 0 1rem; }
#univers .u-bandeau.g { grid-column: 1; text-align: left; margin-right: -30px; padding-right: 40px; }
#univers .u-bandeau.d { grid-column: 3; text-align: right; margin-left: -30px; padding-left: 40px; }
#univers .u-bandeau.eteint { filter: grayscale(.85) brightness(.75); }
#univers .u-tableau-hex { grid-column: 2; grid-row: 1 / 4; position: relative; z-index: 1; filter: drop-shadow(0 3px 2px rgba(0, 0, 0, .45)); }
#univers .u-hex { display: block; }
#univers .u-tri.clic { cursor: pointer; } #univers .u-tri.clic:hover { opacity: .8; }
#univers .u-hex-n { font-family: var(--jeu); font-weight: bold; pointer-events: none; paint-order: stroke; }
#univers .u-octant-tete { display: flex; gap: .6rem; align-items: center; }
#univers .u-octant-tete small { display: block; color: var(--doux); font-size: .8em; }
#univers .u-pole { display: inline-block; border: 2px solid #1a0f08; border-radius: 5px; background: var(--u-c); color: #fff8e8;
  text-shadow: 0 1px 1px #000; font-family: var(--jeu); font-size: .85em; padding: 0 6px; margin: 0 3px 2px 0; }
@media (max-width: 600px) { #univers .u-bandeau { font-size: 1.05em; } #univers .u-tableau { grid-template-rows: repeat(3, 38px); } #univers .u-tableau-hex svg { width: 120px; height: 120px; } }
/* ⚠ religion active (21/11) */
#univers .u-religion { display: inline-block; font-size: .72em; font-weight: bold; border-radius: 4px; padding: 0 5px; border: 1px solid; vertical-align: middle; }
#univers .u-religion.forte { background: var(--nok); border-color: var(--nok); color: #fff; }
#univers .u-religion.faible { color: #c8781e; border-color: #c8781e; }
#univers .u-ref { font-size: .82em; color: var(--doux); font-style: italic; margin: .2rem 0; }
/* liste À valider (21/11) */
#univers .u-bloc-valider { margin-bottom: 1rem; }
#univers .u-bloc-valider h3 { display: flex; align-items: center; gap: .5rem; margin: .4rem 0; }
#univers .u-liste-valider { width: 100%; }
#univers .u-liste-valider td { vertical-align: top; white-space: normal; }  /* 21/11 : texte à la ligne (sinon nowrap de .liste : tableau sous le panneau) */
#univers .u-liste-valider .u-quoi { width: 30%; }
#univers .u-liste-valider .u-quoi, #univers .u-liste-valider .u-detail { cursor: pointer; }
#univers .u-liste-valider .u-detail { color: var(--doux); font-size: .88em; }
#univers .u-liste-valider .u-actions { width: 1%; white-space: nowrap; }
#univers .u-liste-valider tr:hover td { background: var(--survol); }
/* passages entre cartes (21/11) */
#univers .u-carte-jeu { margin: .2rem 0 0 .4rem; }
#univers .u-passages { list-style: none; padding-left: .8rem; margin: .2rem 0; font-size: .88em; }
#univers .u-passages li { margin: 2px 0; }
#univers .u-prevu { color: var(--doux); font-style: italic; }
/* lieux */
#univers .u-arbre, #univers .u-arbre ul { list-style: none; padding-left: 1.2rem; border-left: 1px dotted var(--ligne); }
#univers .u-arbre li { margin: .3rem 0; }
#univers .u-noeud { font-weight: bold; }
#univers .u-hotes { margin-left: .4rem; display: inline-flex; flex-wrap: wrap; gap: 3px; vertical-align: middle; }
/* chronologie */
#univers .u-frise { border-left: 3px solid var(--ocre); padding-left: 1rem; }
#univers .u-ere { margin: 1rem 0 .4rem -1.6rem; background: var(--fond); padding-left: .3rem; }
#univers .u-evt { display: flex; gap: .7rem; padding: .4rem .5rem; border: 1px solid var(--ligne); border-radius: 6px; margin-bottom: .4rem; background: var(--carte); cursor: pointer; }
#univers .u-evt p { margin: .2rem 0; }
#univers .u-date { min-width: 4.5em; font-weight: bold; color: var(--accent); }
/* carte */
#univers .u-fond { position: relative; aspect-ratio: 16 / 10; border: 1px solid var(--ligne); border-radius: 8px; background: var(--parchemin);
  background-image: radial-gradient(circle at 50% 55%, rgba(181, 120, 47, .25) 0 18%, transparent 19%); }
#univers .u-fond.pose { cursor: crosshair; outline: 2px dashed var(--accent); }
#univers .u-point { position: absolute; transform: translate(-50%, -50%); border: 1px solid var(--brun); background: var(--carte); color: var(--texte);
  border-radius: 999px; padding: 0 7px; font: inherit; font-size: .85em; cursor: pointer; white-space: nowrap; }
#univers .u-point::before { content: "●"; color: var(--nok); margin-right: 3px; }
/* 22/11 (TODO 368, utilisateur : « mode jour, les boutons clairs pour univers / carte sont illisibles ») : les pilules héritaient du
   bouton de l'admin (contour de texte sombre + triple cadre, faits pour le texte clair de la nuit) → en jour, texte sombre sur
   contour sombre ; pilules et points sans ombre ni cadre en jour */
body.admin.jour #univers .u-pilules button, body.admin.jour #univers .u-barre > button:not(.ez2), body.admin.jour #univers .u-valider button,
body.admin.jour #univers .u-x, body.admin.jour #univers .u-revel button, body.admin.jour #univers .u-genre, body.admin.jour #univers .u-noeud,
body.admin.jour #univers .u-point { text-shadow: none; box-shadow: none; }
/* 22/11 (TODO 368, utilisateur : « même chose sur univers / fiches ») : toutes les vues (fiches = boutons .u-carte-fiche, .u-plus,
   .u-bandeau, .ok / .nok…) : tout bouton clair de l'onglet sans ombre ni cadre hérités, sauf les vrais boutons du jeu (.ez2/.ez3/.ez4),
   .secondaire et le zoom de la carte */
body.admin.jour #univers button:not(.ez2):not(.ez3):not(.ez4):not(.secondaire):not(.u-zoom button) { text-shadow: none; box-shadow: none; }
body.admin.jour #univers button.choisi:not(.ez2):not(.ez3):not(.ez4) { box-shadow: inset 0 0 0 2px var(--accent); }
body.admin.jour #univers .u-pilules button.sel, body.admin.jour #univers .u-barre > button.sel { color: #fff8ea; }
/* 22/11 (TODO 368, utilisateur : « il faudrait pouvoir bouger / zoomer la carte ») : fenêtre fixe, carte dedans déplacée (glisser) et
   zoomée (molette, + / −) par une transformation ; les noms gardent leur taille (contre-échelle --u-z) */
#univers .u-vue-carte { position: relative; overflow: hidden; border: 1px solid var(--ligne); border-radius: 8px; aspect-ratio: 16 / 10; touch-action: none; cursor: grab; }
#univers .u-vue-carte.glisse { cursor: grabbing; }
#univers .u-vue-carte .u-fond { position: absolute; inset: 0; aspect-ratio: auto; border: 0; border-radius: 0; transform-origin: 0 0; }
#univers .u-vue-carte .u-point { transform: translate(-50%, -50%) scale(calc(1 / var(--u-z, 1))); }
#univers .u-zoom { position: absolute; right: 8px; top: 8px; z-index: 2; display: flex; gap: 4px; }
#univers .u-zoom button { min-width: 2rem; padding: 0 6px; }
@media (max-width: 900px) { #univers .u-deux { grid-template-columns: 1fr; } #univers #u-panneau { position: static; max-height: none; } }
/* 21/11 (TODO 365) : Secret MJ — largeur bloquée dans le panneau, édition en grand dans une fenêtre */
#univers textarea { resize: vertical; max-width: 100%; }
#univers .u-ta-grand { display: block; } #univers .u-ta-grand button { margin-top: 4px; }
.u-grand-fond { position: fixed; inset: 0; z-index: 1000; background: rgba(0, 0, 0, .55); display: flex; align-items: center; justify-content: center; padding: 16px; }
.u-grand-boite { background: var(--carte, #f0e3c4); color: var(--texte, #2a2118); border-radius: 8px; padding: 1rem; width: min(1000px, 100%); max-height: 100%; display: flex; flex-direction: column; gap: .6rem; box-shadow: 0 8px 30px rgba(0, 0, 0, .5); }
.u-grand-boite h3 { margin: 0; }
.u-grand-boite textarea { width: 100%; box-sizing: border-box; height: 70vh; resize: none; font: inherit; font-size: 1.05em; line-height: 1.5; padding: .6rem; color: inherit; background: rgba(184, 69, 44, .08); border: 1px solid var(--ligne, #b9a27a); border-left: 3px solid var(--nok, #b8452c); }
.u-grand-boite .actions { display: flex; gap: .5rem; align-items: center; flex-wrap: wrap; }
