/* La station (20/10), interface façon Ixion : panneaux anthracite à coins coupés, filets clairs, or des objectifs, barre rouge de
   la coque, barre bleue de la confiance, chiffres condensés, cadre à hachures jaunes et noires. */
:root {
  --fond: #050608; --panneau: rgba(13, 15, 18, .9); --panneau2: rgba(22, 25, 29, .94); --filet: #3a4047; --filet2: #5b636c;
  --texte: #dfe3e8; --pale: #8d959e; --or: #e5b52b; --or2: #f2cf6a; --rouge: #a8282e; --rouge2: #d2453b; --bleu: #3f86b5;
  --bleu2: #6fb3e0; --vert: #49d17a; --orange: #ef8a34; --cyan: #7fdcf0;
  --titre: "Barlow Condensed", "Arial Narrow", sans-serif; --corps: "Barlow", system-ui, sans-serif;
  --coin: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px);
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; height: 100%; overflow: hidden; background: var(--fond); color: var(--texte); font: 14px/1.35 var(--corps); }
button { font: inherit; color: inherit; }
canvas#gl, canvas#carte { position: fixed; inset: 0; width: 100%; height: 100%; display: block; touch-action: none; }
body[data-vue="station"] canvas#carte { visibility: hidden; }
canvas#carte { z-index: 1; }   /* icônes et étiquettes de la carte, par-dessus son fond 3D (rendu dans #gl) */
body[data-vue="station"] .seul-systeme, body[data-vue="systeme"] .seul-station { display: none !important; }
body[data-vue="systeme"] #objectifs, body[data-vue="systeme"] #fiche, body[data-vue="systeme"] #journal,
body[data-vue="systeme"] #construction, body[data-vue="systeme"] #barrePlacement { display: none !important; }
body[data-vue="station"] #stations, body[data-vue="station"] #flotte, body[data-vue="station"] #ficheGisement, body[data-vue="station"] #zooms { display: none !important; }
.hachures { position: fixed; inset: 0; pointer-events: none; z-index: 30; border: 5px solid transparent;
  border-image: repeating-linear-gradient(45deg, #d9a82a 0 9px, #101010 9px 18px) 5; opacity: .85; }
#etiquettes { position: fixed; inset: 0; pointer-events: none; z-index: 4; }
.etiquette { position: absolute; transform: translate(-50%, -100%); font: 600 11px/1 var(--titre); letter-spacing: .08em; color: #c9d6ea;
  text-shadow: 0 0 4px #000, 0 0 2px #000; white-space: nowrap; }
.etiquette.voisine::before { content: ''; display: block; width: 1px; height: 10px; margin: 0 auto 3px; background: rgba(200,214,234,.5); order: 2; }
.ico { display: inline-flex; width: 18px; height: 18px; flex: none; }
.ico svg { width: 100%; height: 100%; }
kbd { font: 600 10px/1 var(--titre); border: 1px solid var(--filet2); border-radius: 3px; padding: 1px 4px; color: var(--pale); }
.rouge { color: var(--rouge2); } .bleu { color: var(--bleu2); } .vert { color: var(--vert); } .or { color: var(--or2); }

/* ---------- barre du haut ---------- */
.hud { position: fixed; top: 12px; left: 50%; transform: translateX(-50%); z-index: 10; display: flex; align-items: flex-start; gap: 8px;
  font-family: var(--titre); }
.groupe { display: flex; background: var(--panneau); border: 1px solid var(--filet); clip-path: var(--coin); padding: 5px 4px; cursor: default; }
button.groupe { cursor: pointer; }
button.groupe:hover, button.groupe[aria-expanded="true"] { border-color: var(--filet2); background: var(--panneau2); }
.res { display: grid; grid-template-columns: auto auto; grid-template-rows: auto auto; column-gap: 7px; align-items: center; padding: 0 10px;
  border-left: 1px solid #262b31; min-width: 74px; }
.res:first-child { border-left: 0; }
.res .ico { grid-row: 1 / 3; color: var(--texte); width: 20px; height: 20px; }
.res b { font: 600 19px/1 var(--titre); letter-spacing: .02em; }
.res small { font: 500 12px/1.2 var(--titre); color: var(--pale); white-space: nowrap; }
.res small.plus { color: var(--vert); } .res small.moins { color: var(--rouge2); }
.res.plein b { color: var(--or2); } .res.vide b { color: var(--rouge2); }
.jauge { display: flex; flex-direction: column; align-items: center; gap: 4px; width: 240px; cursor: help; outline: none; }
.jauge .barre { position: relative; display: block; width: 100%; height: 30px; background: #111417; border: 1px solid var(--filet); overflow: hidden; }
.jauge .barre i { position: absolute; inset: 0 auto 0 0; width: 50%; transition: width .6s; }
.jauge.coque .barre i { background: linear-gradient(180deg, #c3333a, #8e1f25); }
.jauge.confiance .barre i { background: linear-gradient(180deg, #4b97c6, #2f6c94); }
.jauge .barre em { position: absolute; inset: 0 auto 0 10px; display: flex; align-items: center; font: 600 15px/1 var(--titre); letter-spacing: .1em;
  font-style: normal; color: #f1f3f5; text-shadow: 0 1px 2px rgba(0,0,0,.6); }
.jauge .barre b { position: absolute; right: 9px; top: 50%; transform: translateY(-50%); font: 700 16px/1 var(--titre); color: #fff; text-shadow: 0 1px 2px rgba(0,0,0,.6); }
.jauge .taux { font: 600 12px/1 var(--titre); padding: 3px 9px; border: 1px solid #1f5a33; background: rgba(10,30,18,.85); color: var(--vert); }
.jauge .taux.moins { border-color: #6a2226; background: rgba(40,10,12,.85); color: #ff7a6e; }
.jauge.alerte .barre { animation: clignote 1s steps(2) infinite; }
@keyframes clignote { 50% { border-color: #ff5a4a; } }
.energie { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; width: 132px; height: 66px; margin-top: -4px;
  background: linear-gradient(180deg, #1c1a12, #0e0d09); border: 2px solid #8f7425; outline: none;
  clip-path: polygon(14px 0, calc(100% - 14px) 0, 100% 50%, calc(100% - 14px) 100%, 14px 100%, 0 50%); cursor: help; }
.energie span { font: 600 13px/1 var(--titre); letter-spacing: .12em; color: var(--or); }
.energie b { display: flex; align-items: center; gap: 4px; font: 600 28px/1.1 var(--titre); color: #f3f0e6; }
.energie b .ico { color: var(--or); width: 20px; height: 22px; }
.energie.manque { border-color: var(--rouge2); } .energie.manque b, .energie.manque span { color: #ff7a6e; }
.cycle { display: grid; grid-template-columns: auto auto; align-items: center; column-gap: 8px; padding: 6px 12px; background: var(--panneau);
  border: 1px solid var(--filet); clip-path: var(--coin); }
.cycle .ico { grid-row: 1 / 3; width: 26px; height: 26px; color: var(--pale); }
.cycle span { font: 600 12px/1 var(--titre); letter-spacing: .14em; color: var(--pale); }
.cycle b { font: 500 24px/1 var(--titre); letter-spacing: .1em; color: #e9ecef; }
.cycle b .zero { color: #3c434a; }
.vues { position: fixed; top: 92px; right: 16px; z-index: 10; display: flex; gap: 6px; }
.vues button { width: 44px; height: 44px; display: grid; place-items: center; background: var(--panneau); border: 1px solid var(--filet); cursor: pointer;
  clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%); }
.vues button .ico { width: 24px; height: 24px; color: var(--pale); }
.vues button[aria-pressed="true"] { background: #2a2512; border-color: var(--or); }
.vues button[aria-pressed="true"] .ico { color: var(--or2); }
.vues button:hover .ico { color: var(--texte); }
.vues #aide b { font: 700 18px/1 var(--titre); color: var(--pale); }
.tag-demo { position: fixed; top: 14px; left: 16px; z-index: 11; font: 700 12px/1 var(--titre); letter-spacing: .14em; padding: 5px 9px;
  border: 1px solid #8a63d2; color: #c8a8ff; background: rgba(40, 20, 70, .7); }

/* ---------- panneaux ---------- */
.panneau { background: var(--panneau); border: 1px solid var(--filet); clip-path: var(--coin); }
.panneau h3 { margin: 0; font: 700 15px/1.2 var(--titre); letter-spacing: .08em; text-transform: uppercase; }
.detail-ressources { position: fixed; top: 74px; left: 50%; transform: translateX(-50%); margin-left: -330px; z-index: 12; width: 330px; padding: 12px 14px; }
.detail-ressources table { width: 100%; border-collapse: collapse; font-family: var(--titre); }
.detail-ressources td { padding: 3px 4px; border-bottom: 1px solid #22272d; }
.detail-ressources td:nth-child(n+2) { text-align: right; }
.detail-ressources .ligne-titre td { color: var(--pale); font-size: 12px; letter-spacing: .1em; border-bottom: 1px solid var(--filet); }
.infobulle { position: fixed; z-index: 40; max-width: 300px; padding: 9px 12px; background: rgba(10, 12, 15, .96); border: 1px solid var(--filet2);
  font-size: 13px; pointer-events: none; clip-path: var(--coin); }
.infobulle b { font: 700 15px/1.2 var(--titre); letter-spacing: .04em; }
.infobulle ul { margin: 6px 0 0; padding: 0; list-style: none; }
.infobulle li { display: flex; justify-content: space-between; gap: 14px; }

/* ---------- objectifs (cadre or, comme Ixion) ---------- */
.objectifs { position: fixed; right: 16px; top: 46%; z-index: 9; width: 330px; display: flex; flex-direction: column; gap: 8px; }
.objectif { display: grid; grid-template-columns: 26px 1fr; gap: 4px 10px; padding: 10px 12px; background: rgba(10, 10, 9, .9);
  border: 1px solid #5e4c17; border-left: 3px solid var(--or); }
.objectif .marque { grid-row: 1 / 3; width: 22px; height: 22px; border: 2px solid var(--or); transform: rotate(45deg); margin: 3px 0 0 2px;
  display: grid; place-items: center; }
.objectif .marque span { transform: rotate(-45deg); font: 800 13px/1 var(--titre); color: var(--or); }
.objectif b { font: 700 15px/1.15 var(--titre); letter-spacing: .06em; color: var(--or2); text-transform: uppercase; }
.objectif small { color: #c9cdd2; font-size: 12.5px; }
.objectif.secondaire { opacity: .72; }
.objectif.fait { border-left-color: var(--vert); } .objectif.fait b { color: var(--vert); }
body.fiche-ouverte .objectifs { display: none; }

/* ---------- fiche du module choisi ---------- */
.fiche { position: fixed; right: 16px; top: 150px; z-index: 11; width: 330px; max-height: calc(100vh - 340px); overflow: auto; padding: 14px 16px; }
.fiche .entete { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.fiche h3 { font-size: 19px; }
.fiche .fermer { border: 0; background: none; color: var(--pale); font-size: 22px; line-height: 1; cursor: pointer; padding: 0 2px; }
.etat-module { display: inline-block; margin-top: 4px; font: 700 11px/1 var(--titre); letter-spacing: .12em; padding: 3px 7px; border: 1px solid; }
.etat-module.actif { color: var(--vert); border-color: #23603a; } .etat-module.arrete { color: var(--orange); border-color: #6b4318; }
.etat-module.chantier { color: var(--or2); border-color: #6b5617; } .etat-module.manque { color: #ff7a6e; border-color: #6a2226; }
.fiche p.desc { color: #b9c0c7; font-size: 13px; margin: 10px 0; }
.lignes { display: grid; grid-template-columns: 1fr auto; gap: 4px 10px; margin: 8px 0; font-family: var(--titre); font-size: 15px; }
.lignes dt { color: var(--pale); } .lignes dd { margin: 0; text-align: right; }
.lignes .plus { color: var(--vert); } .lignes .moins { color: #ff8a7a; }
.mini-barre { height: 6px; background: #1a1e22; border: 1px solid #2c3238; margin: 4px 0 8px; }
.mini-barre i { display: block; height: 100%; background: var(--or); }
.mini-barre.stress i { background: linear-gradient(90deg, #49d17a, #e5b52b 50%, #d2453b); }
.causes { list-style: none; margin: 0 0 8px; padding: 0; font-size: 13px; }
.causes li { display: flex; justify-content: space-between; border-bottom: 1px dashed #262b31; padding: 2px 0; }
.actions { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.bouton { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; font: 700 14px/1 var(--titre); letter-spacing: .08em; text-transform: uppercase;
  color: #1a1505; background: linear-gradient(180deg, #f0c54a, #c89a1f); border: 0; cursor: pointer; clip-path: var(--coin); }
.bouton:hover { filter: brightness(1.12); }
.bouton:disabled { filter: grayscale(1) brightness(.6); cursor: not-allowed; }
.bouton.discret { color: var(--texte); background: #2a3037; }
.bouton.danger { color: #fff; background: linear-gradient(180deg, #c33a36, #8e1f25); }

/* ---------- journal ---------- */
.journal { position: fixed; left: 16px; top: 74px; z-index: 8; width: 340px; display: flex; flex-direction: column; gap: 4px; pointer-events: none; }
.journal .entree { padding: 6px 10px; background: rgba(10, 12, 15, .78); border-left: 2px solid var(--filet2); font-size: 12.5px; color: #c8ced5; }
.journal .entree.neuve { animation: entre .5s ease-out; }
.journal .entree time { display: block; font: 600 11px/1 var(--titre); letter-spacing: .08em; color: var(--pale); margin-bottom: 2px; }
.journal .entree.alerte { border-left-color: var(--rouge2); color: #ffc2b8; }
.journal .entree.expedition { border-left-color: var(--or); } .journal .entree.construction { border-left-color: var(--vert); }
.journal .entree.systeme { border-left-color: var(--cyan); }
.journal .entree.vieille { opacity: .55; }
@keyframes entre { from { opacity: 0; transform: translateX(-12px); } }

/* ---------- construction (bas de l'écran) ---------- */
#construction { position: fixed; left: 16px; right: 16px; bottom: 14px; z-index: 9; display: grid; grid-template-columns: auto auto 1fr; align-items: end; gap: 12px;
  pointer-events: none; }
#construction > * { pointer-events: auto; }
.plaque { display: flex; flex-direction: column; justify-content: center; padding: 10px 16px; min-width: 190px; background: var(--panneau); border: 1px solid var(--filet);
  clip-path: var(--coin); font-family: var(--titre); }
.plaque b { font: 700 20px/1.1 var(--titre); letter-spacing: .12em; color: #eef0f2; }
.plaque span { color: var(--pale); font-size: 13px; letter-spacing: .04em; }
.plaque .detresse { color: #ff6a5a; font-weight: 700; animation: clignote2 1s steps(2) infinite; }
@keyframes clignote2 { 50% { opacity: .35; } }
.categories { display: flex; gap: 6px; }
.categories button { position: relative; width: 62px; height: 70px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
  background: var(--panneau); border: 0; cursor: pointer; clip-path: polygon(50% 0, 100% 22%, 100% 78%, 50% 100%, 0 78%, 0 22%); }
.categories button::before { content: ''; position: absolute; inset: 1px; background: #191c20; clip-path: inherit; z-index: -1; }
.categories button .ico { width: 24px; height: 24px; color: var(--pale); }
.categories button small { font: 600 10px/1 var(--titre); letter-spacing: .08em; color: var(--pale); text-transform: uppercase; }
.categories button[aria-selected="true"] { background: var(--or); }
.categories button[aria-selected="true"] .ico, .categories button[aria-selected="true"] small { color: var(--or2); }
.cartes { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 2px; scrollbar-width: thin; }
.carte-module { position: relative; flex: none; width: 128px; display: flex; flex-direction: column; background: #15181c; border: 1px solid var(--filet); cursor: pointer;
  clip-path: var(--coin); text-align: left; padding: 0; }
.carte-module img { width: 128px; height: 84px; object-fit: cover; display: block; background: #15181c; }
.carte-module .nom { font: 700 13px/1.1 var(--titre); letter-spacing: .04em; padding: 5px 7px 2px; text-transform: uppercase; min-height: 32px; }
.carte-module .prix { display: flex; flex-wrap: wrap; gap: 2px 7px; padding: 0 7px 6px; font: 600 12px/1.2 var(--titre); color: #c9cdd2; }
.carte-module .prix .manque { color: #ff7a6e; }
.carte-module .duree { position: absolute; top: 4px; right: 5px; font: 600 11px/1 var(--titre); color: #d8dde2; background: rgba(0,0,0,.6); padding: 2px 5px; }
.carte-module .verrou { position: absolute; inset: 0 0 auto 0; height: 84px; display: grid; place-items: center; background: rgba(5,6,8,.62);
  font: 700 12px/1.2 var(--titre); color: var(--cyan); text-align: center; letter-spacing: .06em; }
.carte-module:hover { border-color: var(--filet2); }
.carte-module.choisie { border-color: var(--or); box-shadow: inset 0 0 0 1px var(--or); }
.carte-module.cher { opacity: .7; }
.placement { position: fixed; left: 50%; bottom: 196px; transform: translateX(-50%); z-index: 12; display: flex; align-items: center; gap: 10px; padding: 8px 10px 8px 16px;
  background: rgba(12, 14, 10, .94); border: 1px solid #5e4c17; border-left: 3px solid var(--or); font-family: var(--titre); font-size: 15px; letter-spacing: .03em; }
.placement b { color: var(--or2); }
.placement .ko { color: #ff8a7a; }

/* ---------- vue système solaire ---------- */
.stations { position: fixed; left: 16px; top: 74px; z-index: 9; width: 300px; max-height: 40vh; overflow: auto; padding: 12px 14px; }
.stations ul { list-style: none; margin: 8px 0 0; padding: 0; }
.stations li { display: grid; grid-template-columns: 1fr auto; gap: 0 8px; padding: 5px 0; border-bottom: 1px solid #22272d; font-family: var(--titre); }
.stations li small { grid-column: 1 / 3; color: var(--pale); font-size: 12px; }
.stations li.moi b { color: var(--or2); } .stations li.detresse b { color: #ff6a5a; }
.flotte { position: fixed; left: 16px; bottom: 16px; z-index: 9; width: 360px; max-height: 42vh; overflow: auto; padding: 12px 14px; }
.flotte .resume { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 6px; }
.flotte .resume b { font: 700 22px/1 var(--titre); color: var(--or2); }
.expedition { padding: 7px 0; border-top: 1px solid #22272d; font-family: var(--titre); }
.expedition .haut { display: flex; justify-content: space-between; gap: 8px; }
.expedition .haut b { font-size: 15px; letter-spacing: .03em; }
.expedition .bas { display: flex; justify-content: space-between; color: var(--pale); font-size: 13px; }
.expedition button.boucle { border: 1px solid var(--filet); background: #1a1e22; color: var(--pale); font: 600 11px/1 var(--titre); padding: 3px 7px; cursor: pointer; letter-spacing: .06em; }
.expedition button.boucle[aria-pressed="true"] { color: var(--or2); border-color: #6b5617; }
.gisement { position: fixed; right: 16px; top: 150px; z-index: 9; width: 340px; padding: 14px 16px; max-height: calc(100vh - 180px); overflow: auto; }
.gisement .sorte { font: 600 12px/1 var(--titre); letter-spacing: .12em; color: var(--pale); text-transform: uppercase; }
.gisement h3 { font-size: 20px; margin: 4px 0 6px; }
.gisement p.recit { color: #c1c7ce; font-size: 13px; font-style: italic; margin: 6px 0; }
.composition { display: flex; height: 10px; margin: 6px 0 4px; border: 1px solid #2c3238; }
.composition i { display: block; height: 100%; }
.legende { display: flex; flex-wrap: wrap; gap: 4px 12px; font: 600 12px/1.2 var(--titre); color: #c9cdd2; }
.legende span::before { content: ''; display: inline-block; width: 8px; height: 8px; margin-right: 4px; background: var(--c); }
.envoi { margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--filet); display: grid; gap: 8px; }
.compteur { display: flex; align-items: center; gap: 8px; font-family: var(--titre); }
.compteur button { width: 30px; height: 30px; border: 1px solid var(--filet2); background: #1a1e22; color: var(--texte); font-size: 18px; cursor: pointer; }
.compteur b { font-size: 20px; min-width: 26px; text-align: center; }
.envoi label { display: flex; align-items: center; gap: 8px; font-family: var(--titre); font-size: 14px; cursor: pointer; }
.envoi .estimation { color: var(--pale); font-size: 13px; font-family: var(--titre); }
.zooms { position: fixed; right: 16px; bottom: 16px; z-index: 9; display: flex; gap: 6px; }
.zooms button { padding: 8px 12px; background: var(--panneau); border: 1px solid var(--filet); font: 600 13px/1 var(--titre); letter-spacing: .08em; text-transform: uppercase; cursor: pointer; }
.zooms button:hover { border-color: var(--or); color: var(--or2); }

/* ---------- toasts, aide, chargement ---------- */
.toasts { position: fixed; top: 96px; left: 50%; transform: translateX(-50%); z-index: 20; display: flex; flex-direction: column; align-items: center; gap: 6px; pointer-events: none; }
.toast { padding: 9px 16px; background: rgba(12, 14, 17, .95); border: 1px solid var(--filet2); border-left: 3px solid var(--or); font-size: 14px; max-width: min(560px, 90vw);
  animation: entre .3s ease-out; }
.toast.erreur { border-left-color: var(--rouge2); color: #ffd0c8; }
.toast.bon { border-left-color: var(--vert); }
.voile { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; background: rgba(0, 0, 0, .6); padding: 16px; }
.aide { max-width: 620px; padding: 22px 26px; }
.aide h2 { margin: 0 0 10px; font: 700 24px/1.1 var(--titre); letter-spacing: .1em; text-transform: uppercase; color: var(--or2); }
.aide p { color: #ccd2d8; }
.aide p.credits { font-size: 12px; color: var(--pale); border-top: 1px solid var(--filet); padding-top: 8px; }
.aide p.credits a { color: var(--or2); }
.chargement { position: fixed; inset: 0; z-index: 60; display: grid; place-items: center; background: var(--fond); font: 600 18px/1 var(--titre); letter-spacing: .3em;
  color: var(--or); transition: opacity .8s; }
.chargement .err { max-width: 520px; padding: 18px; font: 15px/1.4 var(--corps); letter-spacing: 0; color: #ffd0c8; }

/* ---------- écrans moyens et téléphones ---------- */
@media (max-width: 1500px) {
  .jauge { width: 180px; } .res { min-width: 62px; padding: 0 7px; } .res b { font-size: 17px; }
  .journal { width: 290px; }
}
@media (max-width: 1180px) {
  .hud { flex-wrap: wrap; justify-content: center; width: calc(100vw - 32px); }
  .journal { top: 140px; } .vues { top: 140px; } .fiche, .gisement { top: 196px; } .stations { top: 140px; }
  .detail-ressources { margin-left: 0; top: 130px; }
}
@media (max-width: 760px) {
  body { font-size: 13px; }
  .hachures { border-width: 3px; }
  .hud { top: 6px; gap: 4px; }
  .groupe { padding: 3px 2px; } .res { min-width: 0; padding: 0 5px; column-gap: 4px; } .res .ico { width: 15px; height: 15px; } .res b { font-size: 14px; } .res small { font-size: 10px; }
  .jauge { width: calc(50vw - 84px); } .jauge .barre { height: 24px; } .jauge .barre em { font-size: 11px; left: 6px; } .jauge .barre b { font-size: 13px; right: 6px; }
  .energie { width: 92px; height: 50px; margin-top: 0; } .energie span { font-size: 10px; } .energie b { font-size: 20px; }
  .cycle { display: none; }
  .vues { top: auto; bottom: 214px; right: 8px; flex-direction: column; } .vues button { width: 40px; height: 40px; }
  .journal { display: none; }
  .objectifs { top: auto; bottom: 214px; right: auto; left: 8px; width: calc(100vw - 70px); }
  .objectif { padding: 6px 9px; } .objectif.secondaire { display: none; } .objectif small { display: none; }
  #construction { left: 8px; right: 8px; bottom: 8px; grid-template-columns: 1fr; gap: 6px; }
  .plaque { display: none; }
  .categories { justify-content: space-between; } .categories button { width: 54px; height: 58px; }
  .carte-module { width: 108px; } .carte-module img { width: 108px; height: 64px; } .carte-module .verrou { height: 64px; }
  .fiche, .gisement { left: 8px; right: 8px; top: auto; bottom: 8px; width: auto; max-height: 55vh; z-index: 14; background: rgba(13, 15, 18, .98); }
  body.gisement-ouvert #flotte { display: none; }
  .placement { bottom: 220px; left: 8px; right: 8px; transform: none; flex-wrap: wrap; font-size: 13px; }
  .stations { top: 100px; left: 8px; width: calc(100vw - 16px); max-height: 22vh; }
  .flotte { left: 8px; bottom: 8px; width: calc(100vw - 16px); max-height: 30vh; }
  .zooms { bottom: auto; top: 100px; right: 8px; }
  body[data-vue="systeme"] .stations { display: none; }
  .detail-ressources { left: 8px; right: 8px; width: auto; transform: none; top: 96px; }
  .toasts { top: 100px; width: calc(100vw - 24px); }
}

/* mode photo : seule la scène reste, avec un bouton discret pour sortir */
body.photo .hud, body.photo .vues, body.photo .journal, body.photo .objectifs, body.photo #construction, body.photo .fiche,
body.photo .panneau, body.photo #etiquettes, body.photo .tag-demo, body.photo .toasts, body.photo .bulle, body.photo .hachures, body.photo .infobulle { display: none !important; }
.photo-sortie { position: fixed; right: 16px; bottom: 16px; z-index: 20; padding: 8px 12px; background: rgba(10, 12, 16, .55); color: var(--pale);
  border: 1px solid var(--filet); font: 600 12px/1 var(--titre); letter-spacing: .08em; text-transform: uppercase; cursor: pointer; opacity: .55; transition: opacity .3s; }
.photo-sortie:hover { opacity: 1; color: var(--texte); }
.photo-sortie kbd { margin-left: 6px; padding: 1px 5px; border: 1px solid var(--filet); font: inherit; font-size: 10px; }
