.tech-page {
  max-width: 1280px;
  margin: 0 auto;
  padding: 24px 16px 48px;
}

body.tech-plein .topbar,
body.tech-plein footer {
  display: none;
}

#vue-arbre.plein {
  position: fixed;
  inset: 0;
  z-index: 500;
  overflow: auto;
  padding: 16px 20px;
  background: #08111f;
}

#vue-arbre.plein .arbre-scroll {
  height: auto;
  max-height: calc(100vh - 260px);
}

.tech-statut,
.tech-note,
.tech-sous {
  color: #9fb0c8;
  font-size: 0.95rem;
}

.tech-eyebrow {
  margin: 0;
  color: #f0c97a;
  letter-spacing: 0.2em;
  font-size: 0.75rem;
}

.tech-titre {
  margin: 4px 0 8px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 1.6rem;
}

#vue-menu {
  text-align: center;
}

.hex-grille {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px 10px;
  margin-top: 24px;
}

.recap-branches {
  margin-top: 28px;
}

.recap-titre {
  font-size: 1.1rem;
  margin: 0 0 10px;
}

.recap-boutons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.recap-bouton {
  padding: 6px 12px;
  border-radius: 8px;
  border: 1px solid var(--c, #3b5a6b);
  background: #101d33;
  color: #e6edf7;
  cursor: pointer;
}

.recap-bouton.actif {
  background: var(--c, #3b5a6b);
}

.hex-bloc {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 6px;
}

.hex-recap {
  padding: 6px 10px;
  border-radius: 8px;
  border: 1px solid var(--c, #3b5a6b);
  background: #101d33;
  color: #e6edf7;
  cursor: pointer;
}

.recap-cartes {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  width: 100%;
}

.recap-cartes[hidden] {
  display: none;
}

.recap-bonus {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 4px 16px;
  margin-top: 8px;
  font-size: 0.85rem;
  color: #9fe3b8;
}

.recap-carte {
  padding: 12px 14px;
  border-radius: 10px;
  background: #101d33;
  border-left: 4px solid var(--c);
}

.recap-carte h3 {
  margin: 0 0 6px;
  font-size: 1rem;
}

.recap-stats {
  margin: 2px 0;
  font-size: 0.85rem;
  color: #cfd9ea;
}

.retour-hub {
  flex-basis: 100%;
  justify-self: start;
  align-self: flex-start;
  background: #1d2430;
  color: #e8edf5;
  border: 1px solid #4a5a72;
  border-radius: 6px;
  padding: 6px 14px;
  cursor: pointer;
  margin-bottom: 8px;
}

.hex {
  position: relative;
  width: 170px;
  height: 196px;
  border: 0;
  padding: 0;
  cursor: pointer;
  color: #fff;
  overflow: hidden;
  clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
  background: var(--c, #3b4a6b);
  transition: transform 0.15s, filter 0.15s;
}

.hex-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hex::before {
  content: "";
  position: absolute;
  inset: 3px;
  clip-path: inherit;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.12), rgba(0, 0, 0, 0.55));
}

.hex:hover {
  transform: translateY(-3px);
  filter: brightness(1.15);
}

.hex-texte {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 0 28px;
  text-transform: uppercase;
  font-weight: 700;
  line-height: 1.15;
  text-shadow: 0 2px 6px #000;
}

.hex-progress {
  font-size: 0.8rem;
  font-weight: 500;
  text-transform: none;
  color: #ffe9b0;
}

.hex-badge {
  font-size: 0.7rem;
  font-weight: 700;
  color: #ffd45c;
  text-transform: uppercase;
}

.hex-nom {
  font-size: 0.95rem;
}

.hex-barre {
  position: absolute;
  left: 22%;
  right: 22%;
  bottom: 34px;
  height: 6px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.18);
  overflow: hidden;
}

.hex-barre-fill {
  display: block;
  height: 100%;
  background: var(--c, #3aa0ff);
}

.hex-pct {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 10px;
  font-size: 0.8rem;
  font-weight: 700;
  text-align: center;
  text-shadow: 0 2px 6px #000;
}

.arbre-entete {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  justify-content: space-between;
}

.arbre-entete .tech-titre {
  margin-bottom: 0;
}

.arbre-progress {
  color: #ffe9b0;
  font-weight: 600;
}

.totaux-acces {
  display: flex;
  justify-content: center;
  margin: 18px 0;
}

.totaux-liste {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 260px));
  justify-content: start;
  gap: 8px;
  padding: 0 4px 24px;
}

.totaux-famille {
  grid-column: 1 / -1;
  font-size: 1.1rem;
  margin: 16px 0 4px;
}

.totaux-carte {
  display: grid;
  gap: 2px;
  text-align: left;
  color: inherit;
  font: inherit;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-left: 4px solid #94a3b8;
  border-radius: 8px;
  padding: 8px 10px;
  cursor: pointer;
}

.totaux-carte:hover {
  background: rgba(255, 255, 255, 0.08);
}

.totaux-valeur {
  color: #4ade80;
  font-weight: 600;
}

.totaux-prog {
  color: #94a3b8;
  font-size: 0.85rem;
}

.totaux-modal {
  width: min(640px, 92vw);
  max-height: 88vh;
  background: #0b1222;
  color: #e2e8f0;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  padding: 16px 20px;
}

.totaux-modal::backdrop {
  background: rgba(0, 0, 0, 0.6);
}

#plan-modal {
  width: min(1320px, 96vw);
}

.totaux-modal-entete {
  display: flex;
  justify-content: flex-end;
}

.totaux-modal-titre {
  margin: 0 0 6px;
}

.totaux-modal-total {
  color: #4ade80;
  font-weight: 600;
  margin: 0 0 6px;
}

.totaux-modal-synthese {
  color: #94a3b8;
  font-size: 0.9rem;
  margin: 8px 0;
}

.totaux-modal-pct {
  display: block;
  text-align: right;
  color: #4ade80;
  font-weight: 600;
  margin-top: 2px;
}

.totaux-barre {
  height: 8px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  overflow: hidden;
  margin: 4px 0;
}

.totaux-barre-fill {
  height: 100%;
  background: #3b82f6;
}

.totaux-barre-grand .totaux-barre-fill {
  background: #4ade80;
}

.totaux-branche {
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-left: 4px solid #94a3b8;
  border-radius: 8px;
  padding: 10px 12px;
  margin: 10px 0;
}

.totaux-branche-entete {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

.totaux-badge {
  background: rgba(59, 130, 246, 0.35);
  border-radius: 12px;
  padding: 2px 10px;
  font-size: 0.85rem;
}

.totaux-sous-entete {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin: 10px 0 2px;
  color: #60a5fa;
  font-size: 0.9rem;
}

.totaux-sous-valeur {
  color: #94a3b8;
  font-size: 0.85rem;
}

.totaux-ligne {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 5px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 0.9rem;
}

.totaux-ligne.fait {
  color: #4ade80;
  font-weight: 600;
}

.totaux-modal-pied {
  color: #94a3b8;
  font-size: 0.85rem;
  margin: 10px 0 0;
}

.arbre-outils {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: end;
  margin: 16px 0;
}

.arbre-outils label {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
  min-width: 220px;
}

.arbre-scroll {
  overflow: auto;
  border: 1px solid #1f2d44;
  border-radius: 10px;
  background: radial-gradient(ellipse at center, #1a1030 0%, #0a0f1c 70%);
  max-height: 70vh;
}

.arbre {
  position: relative;
  min-width: 100%;
  min-height: 400px;
}

.arbre svg {
  position: absolute;
  top: 0;
  left: 0;
  pointer-events: none;
}

.lien {
  fill: none;
  stroke: #3a4f75;
  stroke-width: 2;
}

.lien.fait {
  stroke: #3c8f5a;
}

.noeud {
  position: absolute;
  width: 190px;
  height: 72px;
  box-sizing: border-box;
  padding: 6px 8px;
  border: 1px solid #3a4f75;
  border-radius: 8px;
  background: #101d33;
  color: #e6edf8;
  font: inherit;
  font-size: 0.85rem;
  text-align: left;
  cursor: pointer;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 8px;
}

.noeud-image {
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  object-fit: contain;
}

.noeud-texte {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 2px;
  min-width: 0;
}

.noeud-texte span {
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.noeud small {
  color: #9fb0c8;
  font-size: 0.75rem;
}

.noeud.termine {
  border-color: #3c8f5a;
  background: #13331f;
}

.noeud.actif {
  box-shadow: 0 0 0 2px #f0c97a;
}

.noeud.hors {
  opacity: 0.2;
}

.etoile {
  position: absolute;
  top: 2px;
  right: 6px;
  font-size: 0.95rem;
  line-height: 1;
  color: #4a5b7a;
  cursor: pointer;
}

.noeud.souhait .etoile {
  color: #f0c97a;
}

.souhaits-cout {
  color: #f0c97a;
  font-weight: 600;
}

.souhaits-liste {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 12px;
  margin-top: 12px;
}

.souhait-carte {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 12px;
  border: 1px solid #22314d;
  border-radius: 8px;
  background: #101d33;
}

.souhait-carte {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border: 1px solid #22314d;
  border-radius: 12px;
  background: #101d33;
}

.souhait-anneau {
  --pct: 0;
  flex: 0 0 56px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: conic-gradient(#3b82f6 calc(var(--pct) * 1%), #1b2a44 0);
  position: relative;
}

.souhait-anneau::before {
  content: "";
  position: absolute;
  inset: 6px;
  border-radius: 50%;
  background: #101d33;
}

.souhait-anneau span {
  position: relative;
  font-size: 0.75rem;
  font-weight: 600;
  color: #e6edf7;
}

.souhait-bonus .souhait-anneau {
  background: conic-gradient(#a855f7 calc(var(--pct) * 1%), #1b2a44 0);
}

.souhait-carte.atteint .souhait-anneau {
  background: conic-gradient(#4ade80 calc(var(--pct) * 1%), #1b2a44 0);
}

.souhait-corps {
  flex: 1;
  min-width: 0;
  display: grid;
  gap: 2px;
}

.souhait-nom {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.souhait-etiquette {
  justify-self: start;
  padding: 1px 8px;
  border-radius: 999px;
  background: #1b2a44;
  color: #cfe0f5;
  font-size: 0.78rem;
}

.souhait-carte.atteint .souhait-etiquette {
  background: #14532d;
  color: #bbf7d0;
}

.souhait-corps small {
  color: #9fb0c8;
}

.souhait-retirer {
  align-self: flex-start;
  padding: 0 8px;
  font-size: 0.8rem;
}

.mm {
  display: flex;
  align-items: stretch;
  gap: 32px;
  overflow-x: auto;
  padding: 12px 4px 16px;
}

.mm-racine {
  flex: 0 0 200px;
  align-self: center;
  display: grid;
  gap: 6px;
  padding: 18px 14px;
  border: 1px solid #f0c97a;
  border-radius: 14px;
  background: #101d33;
  text-align: center;
  font-size: 0.95rem;
}

.mm-racine small {
  color: #94a3b8;
}

.mm-branches {
  flex: 1 0 auto;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-evenly;
  gap: 18px;
  padding-left: 32px;
}

.mm-branches::before {
  content: "";
  position: absolute;
  left: 0;
  top: 20px;
  bottom: 20px;
  width: 2px;
  background: #2a3b5c;
}

.mm-branche {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 18px;
}

.mm-branche::before {
  content: "";
  position: absolute;
  left: -32px;
  top: 22px;
  width: 32px;
  height: 2px;
  background: #2a3b5c;
}

.mm-phase {
  flex: 0 0 130px;
  padding: 10px 12px;
  border-radius: 10px;
  background: #1b2a44;
  color: #f0c97a;
  font-weight: 700;
  font-size: 1rem;
}

.mm-phase small {
  display: block;
  margin-top: 4px;
  color: #94a3b8;
  font-weight: 400;
  font-size: 0.8rem;
}

.mm-noeuds {
  position: relative;
  display: flex;
  flex-wrap: nowrap;
  gap: 26px;
  padding-top: 18px;
  border-top: 2px solid #2a3b5c;
}

.mm-noeud {
  position: relative;
  flex: 0 0 240px;
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 4px 10px;
  padding: 10px;
  border: 1px solid #22314d;
  border-left: 5px solid #3b82f6;
  border-radius: 12px;
  background: #101d33;
}

.mm-noeud::before {
  content: "";
  position: absolute;
  left: 50%;
  top: -18px;
  width: 2px;
  height: 18px;
  background: #2a3b5c;
}

.mm-noeud.etat-prochain,
.mm-noeud.etat-souhait {
  border-left-color: #4ade80;
}

.mm-noeud.etat-valide {
  border-left-color: #a855f7;
}

.mm-noeud.etat-verrouille {
  border-left-color: #64748b;
}

.mm-image {
  grid-row: span 2;
  width: 52px;
  height: 52px;
  border-radius: 8px;
  object-fit: cover;
}

.mm-image-vide {
  display: grid;
  place-items: center;
  background: #1b2a44;
  color: #f0c97a;
}

.mm-nom {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  font-size: 0.95rem;
}

.mm-info {
  color: #94a3b8;
  font-size: 0.78rem;
  line-height: 1.3;
}

.mm-pips {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 6px;
}

.mm-pip {
  width: 14px;
  height: 14px;
  border-radius: 4px;
  background: #1b2a44;
}

.mm-pip.etat-prochain,
.mm-pip.etat-souhait {
  background: #4ade80;
}

.mm-pip.etat-valide {
  background: #a855f7;
}

.mm-pip.etat-verrouille {
  background: #64748b;
}

.plan-frise {
  display: grid;
  gap: 12px;
}

.plan-phase-entete {
  margin-bottom: 6px;
  font-weight: 600;
  color: #f0c97a;
}

.plan-cartes {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.plan-carte {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  width: 200px;
  padding: 6px;
  border: 1px solid #22314d;
  border-left: 4px solid #3b82f6;
  border-radius: 8px;
  background: #101d33;
}

.plan-carte.etat-verrouille {
  border-left-color: #64748b;
  opacity: 0.8;
}

.plan-carte.etat-prochain,
.plan-carte.etat-souhait {
  border-left-color: #4ade80;
}

.plan-carte.etat-valide {
  border-left-color: #a855f7;
}

.plan-carte-image {
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  border-radius: 6px;
  object-fit: cover;
}

.plan-carte-vide {
  display: grid;
  place-items: center;
  background: #1b2a44;
  color: #f0c97a;
}

.plan-carte-corps {
  display: grid;
  min-width: 0;
}

.plan-carte-nom {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.85rem;
}

.plan-carte-plage {
  font-size: 0.78rem;
  color: #cfe0f5;
}

.plan-carte-duree {
  color: #9fb0c8;
}

.plan-carte-etat-badge {
  position: absolute;
  top: -8px;
  right: 6px;
  padding: 0 6px;
  border-radius: 999px;
  background: #1b2a44;
  color: #cfe0f5;
  font-size: 0.68rem;
}

.plan-groupe,
.plan-arbre-details {
  padding: 8px 12px;
  border: 1px solid #22314d;
  border-radius: 8px;
  background: #101d33;
}

.plan-groupe summary,
.plan-arbre-details summary {
  cursor: pointer;
  color: #e6edf7;
}

.plan-groupe-nom {
  font-weight: 600;
  margin-left: 8px;
}

.plan-arbre-details {
  margin-top: 12px;
}

.souhaits-cout {
  padding: 10px 14px;
  border: 1px solid #5c4a1f;
  border-radius: 8px;
  background: #2a2212;
}

.souhait-carte {
  border-left: 4px solid #3b82f6;
}

.souhait-carte.souhait-bonus {
  border-left-color: #a855f7;
}

.souhait-carte.atteint {
  border-left-color: #4ade80;
  background: #0f2a22;
}

.souhait-barre {
  height: 6px;
  margin: 4px 0;
  border-radius: 3px;
  background: #1b2a44;
  overflow: hidden;
}

.souhait-barre-remplissage {
  height: 100%;
  background: linear-gradient(90deg, #3b82f6, #4ade80);
  transition: width 0.3s ease;
}

.souhait-carte.souhait-bonus .souhait-barre-remplissage {
  background: linear-gradient(90deg, #a855f7, #f0c97a);
}

.bonus-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.bonus-form label,
.totaux-modal-entete label {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 0.9rem;
}

.totaux-modal-entete label[hidden] {
  display: none;
}

.bonus-apercu {
  white-space: pre-line;
  color: #9fb0c8;
  font-size: 0.85rem;
}

.plan-titre {
  margin: 16px 0 6px;
}

.plan-ordre,
.plan-arbre,
.plan-arbre ul {
  padding-left: 18px;
}

.plan-etape,
.plan-noeud {
  margin: 4px 0;
}

.plan-etat {
  display: inline-block;
  min-width: 78px;
  margin-right: 6px;
  padding: 1px 6px;
  border-radius: 4px;
  font-size: 0.75rem;
  background: #22314d;
}

.plan-noeud-etat {
  margin-left: 6px;
  font-size: 0.75rem;
  color: #9fb0c8;
}

.etat-valide .plan-etat,
.plan-noeud.etat-valide > .plan-noeud-nom {
  color: #4ade80;
}

.etat-souhait .plan-etat,
.plan-noeud.etat-souhait > .plan-noeud-nom {
  color: #f0c97a;
}

.etat-prochain .plan-etat,
.plan-noeud.etat-prochain > .plan-noeud-nom {
  color: #7cc4ff;
}

.etat-verrouille .plan-etat,
.plan-noeud.etat-verrouille > .plan-noeud-nom {
  color: #9fb0c8;
}

.tech-detail {
  margin-top: 20px;
  padding: 16px;
  border: 1px solid #22314d;
  border-radius: 10px;
  background: #0d1729;
}

.tech-detail h2 {
  margin: 0 0 4px;
  font-size: 1.2rem;
}

.tech-detail .en {
  margin: 0 0 12px;
  color: #9fb0c8;
  font-size: 0.9rem;
}

.tech-vide {
  color: #9fb0c8;
}

.tech-niveaux {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 6px;
}

@media (max-width: 1100px) {
  .tech-niveaux {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.tech-niveau {
  padding: 6px 8px;
  border-radius: 6px;
  background: #101d33;
}

.tech-niveau.fait {
  opacity: 0.7;
}

.tech-niveau label {
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
}

.tech-niveau p {
  margin: 2px 0 0;
  font-size: 0.85rem;
}

.tech-cout {
  color: #cfd9ea;
}

.tech-bonus {
  color: #8fd3a0;
}

.tech-prereq {
  color: #f0c97a;
}

@media (max-width: 640px) {
  .hex {
    width: 140px;
    height: 162px;
  }
}
