/* Recherche T11 — styles propres à la page #t11 (référence : arbre de l'Académie de guerre). */

/* Page : même fond, même titre centré que les autres modules. */
/* Fond de page : brun-rouge de l'Académie, éclairé par une lumière chaude placée derrière la case Hélios
   (voir .t11-tree::before) qui s'assombrit jusqu'aux bords de la page. */
#t11{position:relative;isolation:isolate;overflow:hidden;padding:42px 22px 80px;color:#fff;background:#381726}
/* Fond sur toute la largeur et la hauteur de l'écran ; le contenu reste dans la colonne centrale de 1240 px
   (les côtés accueilleront les bandeaux publicitaires verticaux). */
#t11.view{max-width:none;margin:0;min-height:calc(100svh - 76px);padding-inline:max(22px,calc((100% - 1240px) / 2 + 22px))}
#t11 .section-head{max-width:900px;margin:0 auto 22px;text-align:center}
#t11 .section-head>div{max-width:760px;margin-inline:auto}
#t11 .section-head h1{margin:0 0 12px;font-size:32px;color:#fff}
#t11 .section-head p{margin:0;font-size:16px;color:#d4efff}

/* Onglets de troupe. */
#t11 .t11-tabs{display:flex;justify-content:center;gap:6px;max-width:420px;margin:0 auto 18px;padding:5px;border:2px solid rgba(240,170,120,.42);border-radius:18px;background:rgba(42,14,12,.55)}
#t11 .t11-tabs button{flex:1;padding:10px 8px;border:0;border-radius:13px;background:transparent;color:#f3d2bb;font:inherit;font-size:16px;cursor:pointer}
#t11 .t11-tabs button:hover{color:#fff;background:rgba(255,190,140,.12)}
#t11 .t11-tabs button.active{color:#fff;background:linear-gradient(180deg,#b5603d,#8c4129);box-shadow:inset 0 1px rgba(255,220,190,.3),0 3px 8px rgba(30,6,6,.4)}

/* Panneau de l'arbre : fond brun-rouge chaud de l'Académie. */
#t11 .t11-board{max-width:900px;margin:0 auto 22px;padding:22px 16px 30px;background:transparent}
#t11 .t11-tree{position:relative;width:min(100%,520px);aspect-ratio:1000/1400;margin:0 auto;container-type:inline-size}
/* Lumière chaude centrée sur la case Hélios (x 50 %, y 870/1400 de l'arbre), étalée sur toute la page. */
#t11 .t11-tree::before{content:"";position:absolute;left:50%;top:62.14%;z-index:-1;width:560cqi;height:560cqi;transform:translate(-50%,-50%);pointer-events:none;background:radial-gradient(circle,#b9573f 0,#ad4f3e 8cqi,#a74c3d 18cqi,#8c4139 30cqi,#70322f 44cqi,#60313b 56cqi,#502735 70cqi,#45202f 86cqi,#3d1b2b 105cqi,#381726 135cqi)}  /* teintes relevées sur la capture du jeu */

/* Couleur des chemins de lumière (liaisons + liseré des nœuds) selon la troupe :
   bleu pour Lancier, vert pour Infanterie, rouge pour Tireur. */
#t11 .t11-tree{--t11-glow:rgba(64,160,255,.5);--t11-core:#2f8cf0;--t11-light:#9fdcff;--t11-rim:#7fd6ff;--t11-rim-dark:#1c5fc4;--t11-halo:rgba(72,170,255,.75);--t11-rim-on:#b9f0ff;--t11-rim-on-dark:#1c7fe0;--t11-halo-on:rgba(120,210,255,.85)}
#t11 .t11-tree[data-troop="infantry"]{--t11-glow:rgba(95,230,35,.58);--t11-core:#4ee01a;--t11-light:#d4f7b4;--t11-rim:#96ea62;--t11-rim-dark:#27860b;--t11-halo:rgba(105,235,45,.78);--t11-rim-on:#e0fbc8;--t11-rim-on-dark:#37ad12;--t11-halo-on:rgba(145,240,80,.88)}
#t11 .t11-tree[data-troop="marksman"]{--t11-glow:rgba(245,110,45,.6);--t11-core:#eb7835;--t11-light:#ffd0a0;--t11-rim:#f2ae72;--t11-rim-dark:#91341a;--t11-halo:rgba(245,120,55,.75);--t11-rim-on:#ffdab6;--t11-rim-on-dark:#b24c24;--t11-halo-on:rgba(255,150,90,.85)}

/* Liaisons lumineuses. */
#t11 .t11-links{position:absolute;inset:0;width:100%;height:100%;overflow:visible}
#t11 .t11-links path{fill:none;stroke-linejoin:round;stroke-linecap:round;vector-effect:non-scaling-stroke}
#t11 .t11-link-off path{stroke:rgba(28,8,8,.6);stroke-width:5px}
#t11 .t11-link-glow path{stroke:var(--t11-glow);stroke-width:14px;filter:blur(5px)}
#t11 .t11-link-core path{stroke:var(--t11-core);stroke-width:6px}
#t11 .t11-link-light path{stroke:var(--t11-light);stroke-width:1.6px}

/* Nœuds : case rouge, liseré bleu lumineux, pictogramme blanc. */
#t11 .t11-node{position:absolute;z-index:1;aspect-ratio:1;padding:0;transform:translate(-50%,-50%);border:2px solid var(--t11-light);border-radius:18%;background:#3a0e0d;box-shadow:inset 0 0 0 2px var(--t11-core),0 0 6px 1px var(--t11-glow),0 0 14px 3px var(--t11-glow);cursor:pointer;transition:transform .15s ease,box-shadow .15s ease}
#t11 .t11-node:hover{transform:translate(-50%,-50%) scale(1.05)}
#t11 .t11-node:focus-visible{outline:3px solid #fff;outline-offset:4px}
#t11 .t11-ico{position:absolute;inset:calc(2px + 3%);width:calc(94% - 4px);height:calc(94% - 4px);object-fit:cover;border-radius:12%;pointer-events:none;user-select:none}
#t11 .t11-badge{position:absolute;right:5%;bottom:3%;font-size:clamp(9px,3.5cqi,18px);line-height:1;color:#fff;-webkit-text-stroke:3px #2a1410;paint-order:stroke fill}
#t11 .t11-target{position:absolute;top:-12%;right:-16%;padding:2px 5px;border-radius:8px;font-size:clamp(8px,2.7cqi,13px);line-height:1.1;color:#2a1410;background:var(--t11-rim-on);box-shadow:0 2px 4px rgba(20,4,4,.5),0 0 8px var(--t11-halo-on)}
#t11 .t11-node.planned{border-color:var(--t11-rim-on);box-shadow:inset 0 0 0 2px var(--t11-core),0 0 8px 2px var(--t11-halo-on),0 0 18px 5px var(--t11-glow)}
/* Recherche verrouillée (prérequis non remplis) : éteinte, sans halo. */
#t11 .t11-node.locked{border-color:#8d7b78;box-shadow:inset 0 0 0 2px #5a4644;filter:grayscale(.7) brightness(.6)}
#t11 .t11-label{position:absolute;z-index:1;width:34%;transform:translateX(-50%);text-align:center;font-size:clamp(10px,3.4cqi,17px);line-height:1.15;color:#ecdcdc;-webkit-text-stroke:3px #3a1712;paint-order:stroke fill;pointer-events:none}

/* Interrupteur « Remettre à zéro » : même composant que les autres pages, en tons bruns. */
#t11 .t11-actions{max-width:900px;margin:-8px auto 18px}
#t11 .t11-actions .charm-bulk-select{margin:0;border-color:rgba(240,170,120,.42);background:rgba(42,14,12,.72);box-shadow:inset 0 1px rgba(255,220,190,.12),0 5px 14px rgba(20,4,4,.3);color:#fff}
#t11 .t11-actions .bulk-toggle{border-color:rgba(240,180,140,.5);background:linear-gradient(180deg,#6a3326,#4a2119);box-shadow:inset 0 2px 5px rgba(20,4,4,.45),0 1px rgba(255,220,190,.14)}
#t11 .t11-actions .bulk-toggle i{background:linear-gradient(180deg,#fff,#f3dccd)}
#t11 .t11-actions input:checked+.bulk-toggle{border-color:#ffc79c;background:linear-gradient(180deg,#d9804f,#a8502f);box-shadow:inset 0 1px rgba(255,255,255,.35),0 0 9px rgba(240,140,80,.45)}

/* Coût de recherche : mêmes cases que la page Chaudière. */
#t11 .t11-result{max-width:900px;margin:0 auto;padding:14px 18px 20px;border:2px solid rgba(240,170,120,.42);border-radius:26px;background:rgba(42,14,12,.72);box-shadow:inset 0 1px rgba(255,220,190,.14),0 14px 35px rgba(20,4,4,.4)}
#t11 .t11-result h2{margin:0 0 16px;padding:9px;border-radius:16px;font-size:20px;text-align:center;color:#fff;background:linear-gradient(180deg,#b5603d,#8c4129)}
/* Coûts sur 2 lignes centrées : 4 puis 3. */
#t11 .t11-cost-grid{display:flex;flex-wrap:wrap;justify-content:center;gap:16px 28px;max-width:calc(4 * 76px + 3 * 28px);margin:0 auto}
#t11 .t11-cost{position:relative;display:grid;justify-items:center;align-content:start;gap:6px;width:76px;outline:none}
#t11 .t11-cost-tile{display:grid;place-items:center;width:76px;height:76px;border:3px solid #76afee;border-radius:17px;background:linear-gradient(180deg,#365894,#a7d4f2);box-shadow:0 6px 12px rgba(0,15,39,.35)}
#t11 .t11-cost-shard .t11-cost-tile{border-color:#eba16e;background:linear-gradient(180deg,#935b2d,#f2ceaf)}
/* Ressources de base : cases vertes, comme sur la page Chaudière. */
#t11 :is(.t11-cost-meat,.t11-cost-wood,.t11-cost-coal,.t11-cost-iron) .t11-cost-tile{border-color:#6fc96a;background:linear-gradient(180deg,#2c7a2a,#a9e09c)}
/* Accélérateurs : même case bleue et même taille de pictogramme que la page Chaudière. */
#t11 .t11-cost-time .t11-cost-tile{border-color:#76afee;background:linear-gradient(180deg,#365894,#a7d4f2)}
#t11 .t11-cost-time .t11-cost-tile img{width:92%;height:92%}
/* Acier : pictogramme agrandi (l'image comporte des marges transparentes). */
#t11 .t11-cost-steel .t11-cost-tile img{width:100%;height:100%}
#t11 .t11-cost-tile img{width:82%;height:82%;object-fit:contain;filter:drop-shadow(0 4px 4px rgba(3,35,61,.32))}
#t11 .t11-cost strong{font-size:18px;color:#fff}

/* Fenêtre de réglage d'une recherche : couleurs des fenêtres d'information du jeu
   (fond rose pâle, rebord rosé, titre bordeaux, zone grisée, voile sombre flouté). */
#t11Picker{width:min(92vw,440px);padding:0;border:0;border-radius:22px;color:#665454;background:#f6e2e2;box-shadow:0 5px 0 #e4a2a2,0 24px 60px rgba(0,0,0,.55)}
#t11Picker::backdrop{background:rgba(24,12,15,.78);-webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px)}
#t11Picker form{position:relative;display:grid;gap:14px;padding:20px 20px 22px;font-family:var(--site-font)}
#t11Picker .t11-close{position:absolute;top:12px;right:12px;width:32px;height:32px;border:1px solid #dec6c0;border-radius:50%;color:#843030;background:#fbeeee;font:inherit;font-size:20px;line-height:1;cursor:pointer}
#t11Picker .t11-picker-head{display:grid;grid-template-columns:auto minmax(0,1fr);align-items:center;gap:14px;padding:0 34px 14px 0;border-bottom:2px solid #dec6c0}
#t11Picker .t11-eyebrow{margin:0 0 2px;font-size:12px;letter-spacing:.12em;color:#b47e7e}
#t11Picker h2{margin:0 0 4px;font-size:22px;line-height:1.1;color:#843030}
#t11Picker .t11-picker-desc{margin:0;font-size:13px;line-height:1.3;color:#b47e7e}
#t11Picker .t11-node.t11-node-preview{position:relative;display:block;width:78px;transform:none;cursor:default;border-color:#ffc08a;box-shadow:inset 0 0 0 2px #f08a4a,0 3px 0 #b5602e}
#t11Picker .t11-node.t11-node-preview:hover{transform:none}
#t11Picker .t11-steppers{display:flex;align-items:center;justify-content:center;gap:10px;padding:14px 12px;border-radius:12px;background:#e0c5c5}
#t11Picker .t11-stepper{display:grid;justify-items:center;gap:7px}
#t11Picker .t11-stepper small{font-size:13px;letter-spacing:.08em;color:#a84e4e}
#t11Picker .t11-stepper>div{display:flex;align-items:center;gap:6px}
#t11Picker .t11-stepper output{min-width:54px;text-align:center;font-size:22px;color:#665454}
#t11Picker .t11-stepper button,#t11Picker .t11-max{border:1px solid #c99a9a;color:#843030;background:#fbeeee;font:inherit;cursor:pointer;box-shadow:0 2px 0 #c99a9a}
#t11Picker .t11-stepper [data-t11-step]{width:36px;height:36px;border-radius:11px;font-size:20px;line-height:1}
#t11Picker .t11-max{padding:5px 14px;border-radius:10px;font-size:13px}
#t11Picker button:disabled{opacity:.4;cursor:default}
#t11Picker .t11-stepper-arrow{font-size:30px;color:#c09090}
#t11Picker .t11-reqs{display:grid;gap:4px;margin:0;padding:10px 12px;border-radius:12px;background:#efd6d4;font-size:14px}
#t11Picker .t11-reqs[hidden]{display:none}
#t11Picker .t11-reqs small{font-size:12px;letter-spacing:.08em;color:#a84e4e}
#t11Picker .t11-reqs .ok{color:#3f7a3a}
#t11Picker .t11-reqs .missing{color:#a83a32}
#t11Picker .t11-apply{justify-self:center;margin-top:2px;padding:11px 34px;border:0;border-radius:14px;color:#fff;background:linear-gradient(180deg,#b5603d,#8c4129);font:inherit;font-size:17px;cursor:pointer;box-shadow:0 4px 0 #6a2e1d}

@media(max-width:600px){
  #t11.view{padding:26px 6px 60px}
  #t11 .t11-tree{width:100%;--t11-node-scale:1.14}
  #t11 .section-head h1{font-size:28px}
  #t11 .section-head p{font-size:14px}
  #t11 .t11-board{padding:14px 0 20px}
  #t11 .t11-tabs,#t11 .t11-actions,#t11 .t11-result,#t11 .section-head{margin-inline:8px}
  #t11 .t11-node{box-shadow:inset 0 0 0 2px var(--t11-core),0 0 5px 1px var(--t11-glow),0 0 10px 2px var(--t11-glow)}
  #t11 .t11-node.locked{box-shadow:inset 0 0 0 2px #5a4644}
  #t11 .t11-node.planned{box-shadow:inset 0 0 0 2px var(--t11-core),0 0 6px 2px var(--t11-halo-on),0 0 12px 3px var(--t11-glow)}
  #t11 .t11-badge{-webkit-text-stroke:2px #2a1410}
  #t11 .t11-label{-webkit-text-stroke:2px #3a1712}
  #t11 .t11-cost-tile{width:58px;height:58px;border-radius:13px}
  #t11 .t11-cost{width:58px}
  #t11 .t11-cost-grid{gap:14px 16px;max-width:calc(4 * 58px + 3 * 16px)}
  #t11 .t11-cost strong{font-size:15px}
}

@media(max-width:600px){
  #t11Picker form{padding:18px 14px 20px}
  #t11Picker .t11-picker-head{gap:12px}
  #t11Picker .t11-node.t11-node-preview{width:68px}
  #t11Picker h2{font-size:19px}
  #t11Picker .t11-steppers{gap:4px;padding:12px 6px}
  #t11Picker .t11-stepper>div{gap:4px}
  #t11Picker .t11-stepper [data-t11-step]{width:30px;height:30px;border-radius:9px;font-size:18px}
  #t11Picker .t11-stepper output{min-width:46px;font-size:19px}
  #t11Picker .t11-stepper-arrow{font-size:22px}
}

/* Pictogrammes des ressources : dessin visible à 73 % de la case, comme sur la page Talismans
   (tailles calculées d'après les marges transparentes de chaque image ; léger recentrage du dessin). */
#t11 .t11-cost-shard .t11-cost-tile img{width:80.2%!important;height:80.2%!important;max-width:none}
#t11 .t11-cost-steel .t11-cost-tile img{width:106.5%!important;height:106.5%!important;max-width:none;transform:translate(-2.8%,-0.5%)}
#t11 .t11-cost-meat .t11-cost-tile img{width:107.1%!important;height:107.1%!important;max-width:none;transform:translate(-2.1%,-0.2%)}
#t11 .t11-cost-wood .t11-cost-tile img{width:118%!important;height:118%!important;max-width:none;transform:translate(-0.4%,-0.8%)}
#t11 .t11-cost-coal .t11-cost-tile img{width:124.5%!important;height:124.5%!important;max-width:none;transform:translate(-2.1%,-1.4%)}
#t11 .t11-cost-iron .t11-cost-tile img{width:114.3%!important;height:114.3%!important;max-width:none;transform:translate(-3.4%,0.8%)}
#t11 .t11-cost-time .t11-cost-tile img{width:112.1%!important;height:112.1%!important;max-width:none;transform:translate(-0.8%,0.2%)}

/* Encadrement de l'arbre, aussi large que le cadre de coût (l'arbre garde sa taille, centré) */
#t11 .t11-board{max-width:900px;box-sizing:border-box;border:2px solid rgba(240,170,120,.42);border-radius:26px;background:rgba(42,14,12,.45);box-shadow:inset 0 1px rgba(255,220,190,.14),0 14px 35px rgba(20,4,4,.4)}
@media(max-width:600px){#t11 .t11-board{margin-inline:8px;padding-inline:6px}}
/* Fond de l'arbre (comme dans le jeu) : lueur chaude au centre et quadrillage en losanges qui suit cette lumière
   (mélange doux, fondu vers les bords) ; un losange ≈ les deux tiers d'un petit médaillon */
#t11 .t11-board{position:relative;background:radial-gradient(ellipse 70% 55% at 50% 35%,rgba(150,62,52,.42),transparent 75%),rgba(42,14,12,.45)}
#t11 .t11-board::before{content:"";position:absolute;inset:0;z-index:0;border-radius:inherit;pointer-events:none;
  background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='54' height='62'%3E%3Cpath d='M27.0 0L54 31.0L27.0 62L0 31.0Z' fill='none' stroke='white' stroke-width='1'/%3E%3C/svg%3E") 0 0/54px 62px;opacity:.11;mix-blend-mode:soft-light;
  -webkit-mask:radial-gradient(ellipse 75% 65% at 50% 38%,#000 20%,transparent 85%);mask:radial-gradient(ellipse 75% 65% at 50% 38%,#000 20%,transparent 85%)}
@media(max-width:600px){#t11 .t11-board::before{background-size:36px 41px}}

/* Ressources : une seule ligne quand le cadre de coût est assez large (7 cases), sinon disposition actuelle */
#t11 .t11-result{container-type:inline-size}
@container (min-width:740px){#t11 .t11-cost-grid{max-width:none;flex-wrap:nowrap}}
/* niveau sur l'icône de la fenêtre de réglage */
#t11Picker .t11-node-preview{position:relative}
#t11Picker .t11-node-preview .t11-badge{position:absolute;right:6%;bottom:4%;font-size:15px;line-height:1;color:#fff;-webkit-text-stroke:3px #2a1410;paint-order:stroke fill}
/* bas de l'icône assombri derrière le niveau : fond la zone retouchée où était le badge du jeu */
#t11Picker .t11-node-preview::after{content:"";position:absolute;inset:0;border-radius:inherit;pointer-events:none;background:linear-gradient(180deg,transparent 45%,rgba(40,10,6,.55) 72%,rgba(30,6,4,.85) 100%)}
#t11Picker .t11-node-preview .t11-badge{z-index:1}

/* Liens comme dans le jeu : trait fin et plein, avec un halo doux qui éclaire le fond autour (plus d'effet « tuyau ») */
#t11 .t11-link-off path{stroke:rgba(28,8,8,.42);stroke-width:3px}
#t11 .t11-link-glow{filter:drop-shadow(0 0 10px var(--t11-glow)) drop-shadow(0 0 26px var(--t11-glow))}
#t11 .t11-link-glow path{stroke:var(--t11-glow);stroke-width:9px;filter:blur(3px)}
#t11 .t11-link-core path{stroke:color-mix(in srgb,var(--t11-core) 70%,var(--t11-light));stroke-width:3.4px}
#t11 .t11-link-light path{stroke:var(--t11-light);stroke-width:1px;opacity:.55}
/* lumière de la page visible dans l'encadrement : voile allégé */
#t11 .t11-board{background:radial-gradient(ellipse 70% 55% at 50% 35%,rgba(150,62,52,.18),transparent 75%),rgba(42,14,12,.16)}

/* Interrupteurs de l'arbre : même encadré que ceux de la Chaudière (cadre unique, deux interrupteurs empilés), couleurs de la page */
#t11 .t11-toggles{display:flex;flex-direction:column;align-items:stretch;gap:0;width:max-content;max-width:calc(100% - 24px);padding:9px 13px;border:1px solid rgba(240,170,120,.42);border-radius:11px;background:rgba(42,14,12,.72);box-shadow:inset 0 1px rgba(255,220,190,.12),0 5px 14px rgba(20,4,4,.3)}
#t11 .t11-toggles .charm-bulk-select{width:auto;max-width:100%;margin:0;padding:0;background:transparent;border:0;border-radius:0;box-shadow:none}
