body {
	background: #111;
	font-family: 'Segoe UI', sans-serif;
	padding: 20px;
	color: white;
}



.picto-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
	gap: 12px;
}



.picto {
	display: inline-flex;
	align-items: center;
	justify-content: space-between;
	padding: 3px 10px;
	margin: 6px;
	border-radius: 8px;
	font-size: 15px;
	font-weight: 600;
	min-width: 150px;
	border: 2px solid transparent;
	box-sizing: border-box;
	user-select: none;
	-webkit-user-drag: none;
}



.picto .name {
	white-space: nowrap;
}



.picto .cost {
	margin-left: 10px;
	color: #9be5f4;
}



/* Style possédé */

.picto.possessed {
	background: #1c1c1c;
	border: 1px solid #555;
	color: #00ff9f;
}



/* Style équipé */

.picto.equipped {
	background: #4b2b48;
	border: 1px solid #744c70;
	color: #f4e3c0;
}



/* Style non possédé */

.picto.non-possessed {
	background: transparent;
	border: 1px dashed #333;
	color: #fff;
	opacity: 0.5;
	filter: grayscale(20%);
}





.actions {
  margin: 20px 0;
  display: flex;
  gap: 16px;
  align-items: center;
  flex-wrap: wrap;
}



.actions label {
  font-weight: 500;
  color: #ccc;
}



.actions button {
  background-color: #1e1e1e;
  border: 1px solid #666;
  color: #cdd6f4;
  padding: 6px 14px;
  border-radius: 6px;
  cursor: pointer;
  font-weight: bold;
  transition: background 0.2s, border 0.2s;
}



.actions button:hover {
  background-color: #3a3a3a;
  border-color: #888;
}



.actions input[type="number"] {
  background: #151515;
  border: 1px solid #444;
  color: #9be5f4;
  border-radius: 4px;
  padding: 5px 10px 5px 12px; /* Ajout d’un padding gauche */
  font-size: 14px;
  width: 90px; /* Légèrement plus large */
  text-align: left; /* Aligné à gauche pour pas coller aux flèches */
}



.actions input[type="number"]::-webkit-inner-spin-button {
  margin-left: 4px; /* Décale un peu les flèches sur Chrome */
}

.actions button {
  margin-right: 6px;
}



.tabs {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
}



.tab-btn {
  background: #1c1c1c;
  color: #ccc;
  border: 1px solid #444;
  border-radius: 6px 6px 0 0;
  padding: 8px 16px;
  cursor: pointer;
  font-weight: bold;
  transition: background 0.2s;
}



.tab-btn:hover {
  background: #2e2e2e;
}



.tab-btn.active {
  background: #4b2b48;
  color: #f4e3c0;
  border-bottom: none;
}



.tab-content {
  background: #1a1a1a;
  border: 1px solid #444;
  border-radius: 0 6px 6px 6px;
  padding: 20px;
  display: none;
}

.tab-content.active {
  display: block;
}


.perso {
  background: #1c1c1c;
  border: 1px solid #555;
  border-radius: 8px;
  padding: 6px 10px;
  margin: 6px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-width: 200px;
  font-weight: 600;
  user-select: none;
  -webkit-user-drag: none;
}

.perso-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
	gap: 12px;
}



.perso.possessed {
	background: #1c1c1c;
	border: 1px solid #555;
	color: #00ff9f;
}


.perso.equipped {
	background: #4b2b48;
	border: 1px solid #744c70;
	color: #f4e3c0;
}

.perso.non-possessed {
	background: transparent;
	border: 1px dashed #333;
	color: #fff;
	opacity: 0.5;
	filter: grayscale(20%);
}


.perso-armes {
  margin-bottom: 20px;
}

.perso-name {
  color: #60a0ff;
  font-size: 1.2em;
  margin-bottom: 8px;
  font-weight: bold;
}

.arme {
  background: #1c1c1c;
  border: 1px solid #555;
  border-radius: 8px;
  padding: 6px 10px;
  margin: 6px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-width: 200px;
  font-weight: 600;
  user-select: none;
  -webkit-user-drag: none;
}

.arme-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}


.arme-actions {
  margin-bottom: 12px;
}

.arme.possessed {
	background: #1c1c1c;
	border: 1px solid #555;
	color: #ff8800;
}


.arme.equipped {
	background: #4b2b48;
	border: 1px solid #744c70;
	color: #f4e3c0;
}

.arme.non-possessed {
	background: transparent;
	border: 1px dashed #333;
	color: #fff;
	opacity: 0.5;
	filter: grayscale(20%);
}

.results-section {
  margin-top: 20px;
  padding-top: 10px;
  border-top: 1px solid #555;
}

.perso-result {
  margin-bottom: 20px;
}

.picto-line,
.arme-line,
.competence-line {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
  margin-bottom: 1rem;
}

.perso-result .picto,
.perso-result .arme {
  cursor: default;
  opacity: 0.9;
}

.picto, .perso, .arme {
  cursor: pointer;
  transition: transform 0.1s ease;
}
.picto:active, .perso:active, .arme:active {
  transform: scale(0.98);
}

.attributs-line {
  margin-top: 10px;
  padding: 8px;
  border-top: 1px dashed #555;
  color: #ccc;
}
.attributs-line div {
  margin: 2px 0;
}

#tab-competences .competence-grid {
	display: flex;
	flex-direction: column;
	gap: 1em;
	padding: 1em;
}

.perso-competences {
  	margin-bottom: 20px;
}

.perso-competences .perso-name {
	color: #00ccff;
	margin-bottom: 0.5em;
}

.competence-list {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5em;
}

.competence {
 background: #1c1c1c;
  border: 1px solid #555;
  border-radius: 8px;
  padding: 6px 10px;
  margin: 6px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-width: 200px;
  font-weight: 600;
  user-select: none;
  -webkit-user-drag: none;
}


.competence.possessed {
	background: #1c1c1c;
	border: 1px solid #555;
	color: #00aaff;
}

.competence.equipped {
	background: #4b2b48;
	border: 1px solid #744c70;
	color: #f4e3c0;
}

.competence.non-possessed {
	background: transparent;
	border: 1px dashed #333;
	color: #fff;
	opacity: 0.5;
	filter: grayscale(20%);
}


.competence-line .competence {
  display: inline-block;
  padding: 6px 12px;
  background-color: #1c1c1c;
  color: #00aaff;
  border: 1px solid #555;
  border-radius: 8px;
  white-space: nowrap;
}

.picto-line h4,
.arme-line h4,
.competence-line h4 {
  width: 100%;
  margin: 0 0 0.5rem 0;
  font-size: 1rem;
  color: #ccc;
}




details {
  display: block;
  background-color: #1e1e1e;
  color: #f0f0f0;
  padding: 12px 20px;
  margin: 10px auto;
  border: 1px solid #333;
  border-radius: 8px;
  max-width: 650px;
  font-family: 'Segoe UI', sans-serif;
}

summary {
  display: flex;
  font-size: 1.1em;
  font-weight: bold;
  cursor: pointer;
  outline: none;
  color: #ff8800;
  position: relative;
  padding-right: 200px;
  box-sizing: border-box;
}

.status {
  font-size: 1.2em;
}

.check-ok {
  color: #00cc66;
}

.check-fail {
  color: #cc3333;
  margin-left: 8px;
  flex-shrink: 0;
  font-size: 1.3em;
}

.summary-title {
  display: flex;
  align-items: center;
  gap: 8px;
}

.indicateurs {
  position: absolute;
  right: 2px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  gap: 4px;
  font-size: 1em;
  align-items: center;
}

.ind-histoire {
  color: #00c2ff;
}

.ind-end {
  color: #ff5a36;
}

details[open] summary {
  margin-bottom: 8px;
}

.score-endgame {
  display: inline-block;
  width: 2ch;
  font-variant-numeric: tabular-nums;
  text-align: left;
}

.roulette-list {
  list-style: none;
  padding-left: 0;
  margin: 0;
  max-width: 100%;
}

.roulette-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-width: 0;
}

.roulette-list .boss-label {
  flex: 1 1 auto;
  min-width: 0;
  text-overflow: ellipsis;
  overflow: hidden;
  white-space: nowrap;
}


.tab-buttons {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin: 20px 0;
  flex-wrap: wrap;
}


/* conteneur centré & largeur fixée */
.route-wrap { max-width: 650px; margin: 20px auto; }

/* boutons centrés */
.route-filters{
  display:flex; justify-content:center; gap:10px; margin:12px 0 16px;
  flex-wrap:wrap;
}
.route-filter{
  background:#1c1c1c; border:1px solid #444; color:#ccc;
  padding:6px 12px; border-radius:8px; font-weight:700; cursor:pointer;
}
.route-filter.active{ background:#4b2b48; color:#f4e3c0; border-color:#744c70; }

/* lignes ennemis */
#route-list{ display:flex; flex-direction:column; gap:8px; }
.enemy{
  display:flex; align-items:center; gap:10px;
  background:#1a1a1a; border:1px solid #333; border-radius:10px;
  padding:10px 12px; margin:0 auto;  /* centré */
  max-width:650px; width:100%;
}

/* numéro & icône : sans anneau */
.order-num{ font-weight:800; color:#9be5f4; user-select:none; min-width:2ch; }
.type-icon{ font-size:16px; line-height:1; user-select:none; }

/* couleur des noms selon type */
.enemy[data-type="CHROMATIC_BOSS"] .enemy-name{ color:#ff8800; }
.enemy[data-type="OPTIONNAL_BOSS"] .enemy-name{ color:#ff8800; }
.enemy[data-type="STORY_BOSS"] .enemy-name{ color:#ff8800; }
.enemy-name{ font-weight:700; }

/* Seeds */
/* ---------- Onglets Seeds (même style que tes onglets normaux) ---------- */

.seed-tab-buttons {
  display: flex;
  gap: 4px;
  margin-bottom: 12px;
}

.seed-tab-btn {
  background: #1c1c1c;
  color: #ccc;
  border: 1px solid #444;
  border-radius: 6px 6px 0 0;
  padding: 8px 16px;
  cursor: pointer;
  font-weight: bold;
  transition: background 0.2s;
}

.seed-tab-btn:hover {
  background: #2e2e2e;
}

.seed-tab-btn.active {
  background: #4b2b48;
  color: #f4e3c0;
  border-bottom: none;
}

/* ---------- Contenu Seeds ---------- */

.seed-tab-content {
  background: #1a1a1a;
  border: 1px solid #444;
  border-radius: 0 6px 6px 6px;
  padding: 20px;
  display: none;
}

.seed-tab-content.active {
  display: block;
}

/* ---------- Zone (details) ---------- */

.seed-zone {
  display: block;
  background-color: #1e1e1e;
  color: #f0f0f0;
  padding: 12px 20px;
  margin: 10px auto;
  border: 1px solid #333;
  border-radius: 8px;
  max-width: 650px;
  font-family: 'Segoe UI', sans-serif;
}


.seed-zone-summary {
  display: flex;
  font-size: 1.1em;
  font-weight: bold;
  cursor: pointer;
  outline: none;
  color: #ff8800;
  position: relative;
  padding-right: 200px;
  box-sizing: border-box;
}


.seed-zone-summary::-webkit-details-marker {
  display: none;
}

.seed-zone[open] .seed-zone-summary {
  margin-bottom: 8px;
}


/* ---------- Corps de la zone ---------- */

.seed-zone-body {
  margin-top: 8px;
  padding: 0;              /* le padding est déjà géré par .seed-zone */
  background: transparent; /* même fond que le container, comme pour les défis */
  display: flex;
  flex-direction: column;
  gap: 10px;               /* on garde l’espace entre les pictos */
}


/* ---------- Carte picto ---------- */

.seed-picto {
  background: #202020;
  border-radius: 6px;
  border: 1px solid #333;
  padding: 8px 10px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.4);
}

/* Pour que ce soit bien aéré même si ton thème met les <div> en inline */
.seed-picto,
.seed-picto-header,
.seed-picto-desc,
.seed-picto-loc {
  display: block;
}

/* Picto caché (??? ) */

.seed-picto-hidden {
  text-align: center;
  font-style: italic;
  letter-spacing: 0.08em;
  color: #888;
  padding: 10px 0;
}

/* ---------- Header du picto : nom | coût + obtention ---------- */

.seed-picto-header {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  align-items: baseline;
}

.seed-picto-name {
  font-weight: 600;
  color: #f4e3c0;
  font-size: 0.95rem;
}

.seed-picto-meta {
  font-size: 0.8rem;
  color: #ccc;
  white-space: nowrap;
}

/* ---------- Description & localisation ---------- */

.seed-picto-desc {
  font-size: 0.85rem;
  color: #ddd;
}

.seed-picto-loc {
  font-size: 0.8rem;
  color: #aaa;
  opacity: 0.9;
}

#co-build-root .seed-picto-loc {
  color: #fff;
}

/* ---------- Responsive ---------- */

@media (max-width: 600px) {
  .seed-picto-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .seed-picto-meta {
    white-space: normal;
  }
}/* Titre à gauche */
.seed-title {
  display: flex;
  align-items: center;
  font-weight: bold;
  font-size: 1.1em;
  color: #ff8800; /* même orange que les défis */
}

/* style du sous-texte “Avancée requise” */
.seed-required {
  font-size: 0.7em;
  color: #ffffff;
  opacity: 0.85;
  font-weight: normal;
}

/* Indicateurs alignés à droite */
.seed-indicators {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 1.05em;

  /* pour que les chiffres aient tous la même largeur */
  font-variant-numeric: tabular-nums;
}

/* Nombre de pictos visibles → vert */
.seed-count-green {
  color: #05a748;
  font-weight: bold;
}

/* | bleu */
.seed-separator {
  color: #00ccff;
  font-weight: bold;
}

/* summary déjà stylé comme tes défis */
.seed-zone-summary {
  position: relative;
  display: flex;
  justify-content: flex-start; /* titre à gauche */
  align-items: center;
  padding-right: 200px; /* laisse la place aux indicateurs */
  cursor: pointer;
}



/* ---------- Filtres Seeds ---------- */

.seed-filters {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 12px 14px;
  margin-bottom: 10px;
  background: #151515;
  border: 1px solid #333;
  border-radius: 6px;
}

.seed-filter-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

/* Barre séparatrice entre ligne 1 et ligne 2 */
.seed-filter-row:nth-child(1) {
  padding-bottom: 10px;
  border-bottom: 1px solid #444;
}

.seed-filter-group {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  color: #f0f0f0;
}

.seed-filter-group label {
  font-weight: 600;
  color: #00ccff;
}

.seed-filter-zone {
  background: #1f1f1f;
  color: #f0f0f0;
  border: 1px solid #444;
  border-radius: 4px;
  padding: 4px 8px;
  width: 200px;
}

/* Checkbox pouvoir pigments */
.seed-filter-power {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.9rem;
  font-weight: 600;
  color: #00ccff;
  margin-left: auto;
}

.seed-filter-power input[type="checkbox"] {
  accent-color: #05a748;
}

/* Masquage zones et pictos */
.seed-zone.is-hidden-zone {
  display: none !important;
}

.seed-picto.is-hidden-pigment {
  position: relative;
  overflow: hidden;
  opacity: 0.15;
}

.seed-picto.is-hidden-pigment::after {
  content: "???";
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.7);
  font-weight: 700;
  font-size: 1.1rem;
  color: #f4e3c0;
}

/* Icônes / compteurs dans le summary (déjà en partie faits) */
.seed-indicators {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  gap: 6px;
  align-items: center;
  font-size: 1.05em;
}

.seed-icon {
  font-size: 1em;
  opacity: 0.9;
}

.seed-dash {
  margin-left: 4px;
  color: #ccc;
}

/* nombre de pictos dans la zone (max 2 chiffres) */
.seed-count-green {
  color: #05a748;
  font-weight: bold;
  display: inline-block;
  min-width: 2ch;
  text-align: left;
}

/* séparateur | */
.seed-separator {
  color: #00ccff;
  font-weight: bold;
  margin: 0 10px;   /* <-- augmente l’espace autour du | */
}


/* nombre total de pictos (max 3 chiffres) */
.seed-count-blue {
  color: #00ccff;
  font-weight: bold;
  display: inline-block;
  min-width: 3ch;
  text-align: left;
}


.seed-description {
  margin: 16px 0 20px;
  padding: 12px 16px;
  background: #151515;
  border: 1px solid #333;
  border-radius: 6px;
  color: #e0e0e0;
  font-size: 0.95rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.seed-desc-title {
  font-weight: 600;
  color: #00ccff;
  margin-bottom: 10px;
  text-align: left;
}

/* conteneur des lignes */
.seed-desc-stats {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

/* chaque ligne stat */
.seed-desc-line {
  display: flex;
  justify-content: space-between; /* clé de l’alignement parfait */
  align-items: center;
}

/* libellés (gauche) */
.seed-desc-label {
  color: #f0f0f0;
}

/* valeurs (droite) */
.seed-desc-value {
  color: #00ccff;
  font-weight: bold;
  min-width: 40px;         /* assure un alignement vertical parfait */
  text-align: right;
}

.seed-picto-cost {
  color: #00ccff;
  text-align: right;
}

.seed-picto-empty {
  text-align: center;
  font-style: italic;
  opacity: 0.7;
}

/* Catégories de picto (rectangulaire) */
.seed-picto-category {
  display: inline-block;
  padding: 2px 6px;
  margin-left: 8px;
  font-size: 0.75rem;
  font-weight: 600;
  border: 1px solid #555;
  background: #333;
  color: #ccc;
}

.seed-picto-category.category-offensive {
  background: #4a1a1a;
  border-color: #ff4444;
  color: #ff6b6b;
}

.seed-picto-category.category-defensive {
  background: #1a2a4a;
  border-color: #4488ff;
  color: #6b9fff;
}

.seed-picto-category.category-support {
  background: #1a4a2a;
  border-color: #44ff88;
  color: #6bff9f;
}

/* Tags de picto (arrondis) */
.seed-picto-tags {
  display: inline-flex;
  gap: 4px;
  margin-right: 8px;
}

.seed-picto-tag {
  display: inline-block;
  padding: 2px 8px;
  font-size: 0.7rem;
  font-weight: 500;
  border-radius: 12px;
  background: #2a2a3a;
  border: 1px solid #555;
  color: #d0d0e0;
}

/* Tags offensifs (rouges) */
.seed-picto-tag.tag-auto-attaque { background: #4a1a1a; border-color: #cc3333; color: #ff6666; }
.seed-picto-tag.tag-brulure { background: #4a2a1a; border-color: #cc5500; color: #ff8833; }
.seed-picto-tag.tag-critique { background: #5a1a2a; border-color: #dd2255; color: #ff5588; }
.seed-picto-tag.tag-degats { background: #4a1a2a; border-color: #cc2244; color: #ff4466; }
.seed-picto-tag.tag-fracture { background: #3a1a1a; border-color: #aa3333; color: #dd5555; }
.seed-picto-tag.tag-marque { background: #4a2a2a; border-color: #bb4444; color: #ee7777; }
.seed-picto-tag.tag-visee-libre { background: #5a2a1a; border-color: #dd4422; color: #ff7744; }

/* Tags défensifs (bleus) */
.seed-picto-tag.tag-bouclier { background: #1a2a4a; border-color: #3366cc; color: #6699ff; }
.seed-picto-tag.tag-contre { background: #1a3a5a; border-color: #4477dd; color: #77aaff; }
.seed-picto-tag.tag-defense { background: #1a2a5a; border-color: #3355dd; color: #6688ff; }
.seed-picto-tag.tag-esquive { background: #2a3a5a; border-color: #5577cc; color: #88aaee; }
.seed-picto-tag.tag-immunite { background: #1a3a4a; border-color: #3388bb; color: #66bbdd; }
.seed-picto-tag.tag-parade { background: #2a2a5a; border-color: #5555cc; color: #8888ff; }
.seed-picto-tag.tag-pv-eleves { background: #1a4a5a; border-color: #3399aa; color: #66ccdd; }

/* Tags soutien (verts) */
.seed-picto-tag.tag-buff { background: #1a4a2a; border-color: #33aa55; color: #66dd88; }
.seed-picto-tag.tag-soin { background: #1a5a3a; border-color: #33cc66; color: #66ff99; }
.seed-picto-tag.tag-resurrection { background: #2a5a3a; border-color: #55cc77; color: #88ffaa; }
.seed-picto-tag.tag-mort-d-un-allie { background: #2a4a3a; border-color: #55aa66; color: #88dd99; }
.seed-picto-tag.tag-pv-faibles { background: #3a5a2a; border-color: #77aa55; color: #aadd88; }

/* Tags utilitaires (violets/jaunes/cyans) */
.seed-picto-tag.tag-debuff { background: #3a1a4a; border-color: #8833aa; color: #bb66dd; }
.seed-picto-tag.tag-debut-de-combat { background: #4a3a1a; border-color: #aa8833; color: #ddbb66; }
.seed-picto-tag.tag-debut-de-tour { background: #4a4a1a; border-color: #aaaa33; color: #dddd66; }
.seed-picto-tag.tag-gradient { background: #3a2a4a; border-color: #7744aa; color: #aa77dd; }
.seed-picto-tag.tag-mort-d-un-ennemi { background: #4a1a3a; border-color: #aa3377; color: #dd66aa; }
.seed-picto-tag.tag-points-d-action { background: #3a3a2a; border-color: #888855; color: #bbbb88; }
.seed-picto-tag.tag-solo { background: #2a3a3a; border-color: #558888; color: #88bbbb; }
.seed-picto-tag.tag-teintes { background: #4a2a4a; border-color: #9944aa; color: #cc77dd; }
.seed-picto-tag.tag-tour-supplementaire { background: #1a4a4a; border-color: #33aaaa; color: #66dddd; }

/* Header picto avec right side */
.seed-picto-right {
  display: flex;
  align-items: center;
  gap: 4px;
}

/* Recherche picto */

.seed-filter-search {
  background: #1f1f1f;
  color: #f0f0f0;
  border: 1px solid #444;
  border-radius: 4px;
  padding: 4px 8px;
  width: 200px;
}

/* Filtre tags - chips cliquables */
.seed-filter-tags-label {
  font-weight: 600;
  color: #00ccff;
  margin-left: 10px;
}

.seed-filter-tags-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  flex: 1;
}

.seed-tag-chip {
  display: inline-block;
  padding: 4px 10px;
  font-size: 0.75rem;
  font-weight: 500;
  border-radius: 12px;
  background: #1a1a1a;
  border: 1px solid #444;
  color: #888;
  cursor: pointer;
  transition: all 0.15s ease;
  opacity: 0.6;
}

.seed-tag-chip:hover {
  opacity: 0.85;
  border-color: #666;
}

.seed-tag-chip.active {
  opacity: 1;
  border-color: #888;
  color: #d0d0e0;
  background: #2a2a3a;
}

/* Couleurs des chips actifs - offensifs (rouges) */
.seed-tag-chip.active.tag-auto-attaque { background: #4a1a1a; border-color: #cc3333; color: #ff6666; }
.seed-tag-chip.active.tag-brulure { background: #4a2a1a; border-color: #cc5500; color: #ff8833; }
.seed-tag-chip.active.tag-critique { background: #5a1a2a; border-color: #dd2255; color: #ff5588; }
.seed-tag-chip.active.tag-degats { background: #4a1a2a; border-color: #cc2244; color: #ff4466; }
.seed-tag-chip.active.tag-fracture { background: #3a1a1a; border-color: #aa3333; color: #dd5555; }
.seed-tag-chip.active.tag-marque { background: #4a2a2a; border-color: #bb4444; color: #ee7777; }
.seed-tag-chip.active.tag-visee-libre { background: #5a2a1a; border-color: #dd4422; color: #ff7744; }

/* Couleurs des chips actifs - défensifs (bleus) */
.seed-tag-chip.active.tag-bouclier { background: #1a2a4a; border-color: #3366cc; color: #6699ff; }
.seed-tag-chip.active.tag-contre { background: #1a3a5a; border-color: #4477dd; color: #77aaff; }
.seed-tag-chip.active.tag-defense { background: #1a2a5a; border-color: #3355dd; color: #6688ff; }
.seed-tag-chip.active.tag-esquive { background: #2a3a5a; border-color: #5577cc; color: #88aaee; }
.seed-tag-chip.active.tag-immunite { background: #1a3a4a; border-color: #3388bb; color: #66bbdd; }
.seed-tag-chip.active.tag-parade { background: #2a2a5a; border-color: #5555cc; color: #8888ff; }
.seed-tag-chip.active.tag-pv-eleves { background: #1a4a5a; border-color: #3399aa; color: #66ccdd; }

/* Couleurs des chips actifs - soutien (verts) */
.seed-tag-chip.active.tag-buff { background: #1a4a2a; border-color: #33aa55; color: #66dd88; }
.seed-tag-chip.active.tag-soin { background: #1a5a3a; border-color: #33cc66; color: #66ff99; }
.seed-tag-chip.active.tag-resurrection { background: #2a5a3a; border-color: #55cc77; color: #88ffaa; }
.seed-tag-chip.active.tag-mort-d-un-allie { background: #2a4a3a; border-color: #55aa66; color: #88dd99; }
.seed-tag-chip.active.tag-pv-faibles { background: #3a5a2a; border-color: #77aa55; color: #aadd88; }

/* Couleurs des chips actifs - utilitaires */
.seed-tag-chip.active.tag-debuff { background: #3a1a4a; border-color: #8833aa; color: #bb66dd; }
.seed-tag-chip.active.tag-debut-de-combat { background: #4a3a1a; border-color: #aa8833; color: #ddbb66; }
.seed-tag-chip.active.tag-debut-de-tour { background: #4a4a1a; border-color: #aaaa33; color: #dddd66; }
.seed-tag-chip.active.tag-gradient { background: #3a2a4a; border-color: #7744aa; color: #aa77dd; }
.seed-tag-chip.active.tag-mort-d-un-ennemi { background: #4a1a3a; border-color: #aa3377; color: #dd66aa; }
.seed-tag-chip.active.tag-points-d-action { background: #3a3a2a; border-color: #888855; color: #bbbb88; }
.seed-tag-chip.active.tag-solo { background: #2a3a3a; border-color: #558888; color: #88bbbb; }
.seed-tag-chip.active.tag-teintes { background: #4a2a4a; border-color: #9944aa; color: #cc77dd; }
.seed-tag-chip.active.tag-tour-supplementaire { background: #1a4a4a; border-color: #33aaaa; color: #66dddd; }

.seed-filter-search::placeholder {
  color: #888;
}

/* Labels des filtres (Dernière zone, Picto, Tags) */
.seed-filter-label {
  font-weight: 600;
  color: #00ccff;
  min-width: 160px;
}

/* Filtre catégories - chips rectangulaires */
.seed-filter-category-label {
  font-weight: 600;
  color: #00ccff;
  margin-left: auto;
}

.seed-filter-category-chips {
  display: flex;
  gap: 6px;
}

.seed-category-chip {
  display: inline-block;
  padding: 4px 8px;
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: 0;
  background: #1a1a1a;
  border: 1px solid #444;
  color: #888;
  cursor: pointer;
  transition: all 0.15s ease;
  opacity: 0.6;
}

.seed-category-chip:hover {
  opacity: 0.85;
  border-color: #666;
}

.seed-category-chip.active {
  opacity: 1;
}

.seed-category-chip.active.category-offensive {
  background: #4a1a1a;
  border-color: #ff4444;
  color: #ff6b6b;
}

.seed-category-chip.active.category-defensive {
  background: #1a2a4a;
  border-color: #4488ff;
  color: #6b9fff;
}

.seed-category-chip.active.category-support {
  background: #1a4a2a;
  border-color: #44ff88;
  color: #6bff9f;
}

.seed-picto.is-hidden-search {
  display: none !important;
}

.seed-zone.is-hidden-by-search {
  display: none !important;
}

/* ========== BUILD PICTO ========== */

#co-build-root {
  max-width: 900px;
  margin: 0 auto;
}

.build-title {
  text-align: center;
  font-size: 1.8em;
  color: #00ccff;
  font-family: 'Segoe UI', sans-serif;
  margin-bottom: 20px;
}

.build-pictos {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
  margin-top: 20px;
}

.build-picto {
  background: #202020;
  border-radius: 6px;
  border: 1px solid #333;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.4);
  align-self: start;
}

.build-picto.is-hidden-search {
  display: none !important;
}

/* Header du picto (nom + toggle + coût) */
.build-picto-header {
  display: flex;
  align-items: center;
  gap: 8px;
}

.build-picto-header .seed-picto-name {
  flex: 1;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.build-picto-header .seed-picto-cost {
  min-width: 2ch;
  text-align: right;
}

/* Bouton toggle (+/-) */
.build-picto-toggle {
  background: #333;
  border: 1px solid #555;
  color: #00ccff;
  width: 22px;
  height: 22px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
  font-weight: bold;
  line-height: 1;
  padding: 0;
  transition: all 0.15s ease;
  flex-shrink: 0;
}

.build-picto-toggle:hover {
  background: #444;
  border-color: #00ccff;
}

/* Wrapper dépliable - fermé par défaut */
.build-picto-wrapper {
  display: none;
  flex-direction: column;
  gap: 6px;
  padding-top: 8px;
  border-top: 1px solid #333;
  margin-top: 6px;
}

.build-picto.open .build-picto-wrapper {
  display: flex;
}

.build-picto.open .build-picto-toggle {
  background: #00ccff;
  color: #111;
}

/* Catégorie et tags sur la même ligne */
.build-picto-cat-tags {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}

.build-picto-tags-right {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-left: auto;
}

/* Bouton de sélection du picto (3 états) */
.build-picto-check {
  width: 22px;
  height: 22px;
  cursor: pointer;
  flex-shrink: 0;
  border: 2px solid #555;
  border-radius: 4px;
  background: #1a1a1a;
  color: transparent;
  font-size: 14px;
  font-weight: bold;
  line-height: 18px;
  text-align: center;
  padding: 0;
  transition: all 0.15s ease;
}

.build-picto-check:hover {
  border-color: #888;
}

/* État 1 : sélectionné (bleu) */
.build-picto.selected .build-picto-check {
  background: #00ccff;
  border-color: #00ccff;
  color: #111;
}

.build-picto.selected .build-picto-check::after {
  content: "✓";
}

.build-picto.selected {
  border-color: #00ccff;
  box-shadow: 0 0 8px rgba(0, 204, 255, 0.3);
}

/* État 2 : à chercher (rouge) */
.build-picto.to-fetch .build-picto-check {
  background: #ff4444;
  border-color: #ff4444;
  color: #fff;
}

.build-picto.to-fetch .build-picto-check::after {
  content: "✓✓";
  font-size: 11px;
}

.build-picto.to-fetch {
  border-color: #ff4444;
  box-shadow: 0 0 8px rgba(255, 68, 68, 0.3);
}

/* Encart récapitulatif */
.build-recap {
  background: #151515;
  border: 1px solid #333;
  border-radius: 6px;
  padding: 12px 14px;
  margin-bottom: 15px;
}

.build-recap-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.build-recap-title {
  font-weight: 600;
  color: #00ccff;
  font-size: 1.1rem;
}

.build-recap-reset {
  background: #333;
  border: 1px solid #555;
  color: #ff6666;
  padding: 2px 8px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.75rem;
  font-weight: 600;
  transition: all 0.15s ease;
  vertical-align: middle;
}

.build-recap-reset:hover {
  background: #ff4444;
  border-color: #ff4444;
  color: #fff;
}

.build-recap-stats {
  color: #f4e3c0;
  font-size: 0.9rem;
}

.build-recap-count,
.build-recap-cost {
  font-weight: 600;
  color: #00ccff;
}

.build-recap-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  min-height: 30px;
}

.build-recap-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #202020;
  border: 1px solid #444;
  border-radius: 4px;
  padding: 4px 8px;
  font-size: 0.85rem;
  color: #f4e3c0;
}

.build-recap-item-name {
  cursor: pointer;
  transition: color 0.15s ease;
}

.build-recap-item-name:hover {
  color: #00ccff;
  text-decoration: underline;
}

.build-recap-item-cost {
  color: #00ccff;
  font-weight: 600;
}

.build-recap-item-remove {
  background: none;
  border: none;
  color: #ff6666;
  cursor: pointer;
  font-size: 14px;
  padding: 0;
  line-height: 1;
}

.build-recap-item-remove:hover {
  color: #ff4444;
}

.build-recap-empty {
  color: #666;
  font-style: italic;
  font-size: 0.85rem;
}

.build-recap-item.to-fetch {
  border-color: #ff4444;
  background: #3a1a1a;
}

.build-recap-item.to-fetch .build-recap-item-cost {
  color: #ff6666;
}

/* Second wrapper - Obtention */
.build-obtention-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid #333;
}

.build-obtention-label {
  font-weight: 600;
  color: #f4e3c0;
  font-size: 0.9rem;
}

.build-obtention-toggle {
  background: #333;
  border: 1px solid #555;
  color: #00ccff;
  width: 18px;
  height: 18px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 12px;
  font-weight: bold;
  line-height: 1;
  padding: 0;
  transition: all 0.15s ease;
  flex-shrink: 0;
}

.build-obtention-toggle:hover {
  background: #444;
  border-color: #00ccff;
}

.build-obtention-wrapper {
  display: none;
  flex-direction: column;
  gap: 4px;
  margin-top: 6px;
  padding-left: 26px;
}

.build-picto.open-obtention .build-obtention-wrapper {
  display: flex;
}

.build-picto.open-obtention .build-obtention-toggle {
  background: #00ccff;
  color: #111;
}

.build-obtention-line {
  font-size: 0.85rem;
  color: #aaa;
}

.build-obtention-key {
  color: #888;
}

.build-obtention-value {
  color: #ddd;
}

/* Réutiliser les styles des chips pour le build */
.build-filter-search {
  background: #1f1f1f;
  color: #f0f0f0;
  border: 1px solid #444;
  border-radius: 4px;
  padding: 4px 8px;
  width: 200px;
}

.build-filter-search::placeholder {
  color: #888;
}

.build-category-chip {
  display: inline-block;
  padding: 4px 8px;
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: 0;
  background: #1a1a1a;
  border: 1px solid #444;
  color: #888;
  cursor: pointer;
  transition: all 0.15s ease;
  opacity: 0.6;
}

.build-category-chip:hover {
  opacity: 0.85;
  border-color: #666;
}

.build-category-chip.active {
  opacity: 1;
}

.build-category-chip.active.category-offensive {
  background: #4a1a1a;
  border-color: #ff4444;
  color: #ff6b6b;
}

.build-category-chip.active.category-defensive {
  background: #1a2a4a;
  border-color: #4488ff;
  color: #6b9fff;
}

.build-category-chip.active.category-support {
  background: #1a4a2a;
  border-color: #44ff88;
  color: #6bff9f;
}

.build-tag-chip {
  display: inline-block;
  padding: 4px 10px;
  font-size: 0.75rem;
  font-weight: 500;
  border-radius: 12px;
  background: #1a1a1a;
  border: 1px solid #444;
  color: #888;
  cursor: pointer;
  transition: all 0.15s ease;
  opacity: 0.6;
}

.build-tag-chip:hover {
  opacity: 0.85;
  border-color: #666;
}

.build-tag-chip.active {
  opacity: 1;
  border-color: #888;
  color: #d0d0e0;
  background: #2a2a3a;
}

/* Couleurs des chips actifs - offensifs (rouges) */
.build-tag-chip.active.tag-auto-attaque { background: #4a1a1a; border-color: #cc3333; color: #ff6666; }
.build-tag-chip.active.tag-brulure { background: #4a2a1a; border-color: #cc5500; color: #ff8833; }
.build-tag-chip.active.tag-critique { background: #5a1a2a; border-color: #dd2255; color: #ff5588; }
.build-tag-chip.active.tag-degats { background: #4a1a2a; border-color: #cc2244; color: #ff4466; }
.build-tag-chip.active.tag-fracture { background: #3a1a1a; border-color: #aa3333; color: #dd5555; }
.build-tag-chip.active.tag-marque { background: #4a2a2a; border-color: #bb4444; color: #ee7777; }
.build-tag-chip.active.tag-visee-libre { background: #5a2a1a; border-color: #dd4422; color: #ff7744; }

/* Couleurs des chips actifs - défensifs (bleus) */
.build-tag-chip.active.tag-bouclier { background: #1a2a4a; border-color: #3366cc; color: #6699ff; }
.build-tag-chip.active.tag-contre { background: #1a3a5a; border-color: #4477dd; color: #77aaff; }
.build-tag-chip.active.tag-defense { background: #1a2a5a; border-color: #3355dd; color: #6688ff; }
.build-tag-chip.active.tag-esquive { background: #2a3a5a; border-color: #5577cc; color: #88aaee; }
.build-tag-chip.active.tag-immunite { background: #1a3a4a; border-color: #3388bb; color: #66bbdd; }
.build-tag-chip.active.tag-parade { background: #2a2a5a; border-color: #5555cc; color: #8888ff; }
.build-tag-chip.active.tag-pv-eleves { background: #1a4a5a; border-color: #3399aa; color: #66ccdd; }

/* Couleurs des chips actifs - soutien (verts) */
.build-tag-chip.active.tag-buff { background: #1a4a2a; border-color: #33aa55; color: #66dd88; }
.build-tag-chip.active.tag-soin { background: #1a5a3a; border-color: #33cc66; color: #66ff99; }
.build-tag-chip.active.tag-resurrection { background: #2a5a3a; border-color: #55cc77; color: #88ffaa; }
.build-tag-chip.active.tag-mort-d-un-allie { background: #2a4a3a; border-color: #55aa66; color: #88dd99; }
.build-tag-chip.active.tag-pv-faibles { background: #3a5a2a; border-color: #77aa55; color: #aadd88; }

/* Couleurs des chips actifs - utilitaires */
.build-tag-chip.active.tag-debuff { background: #3a1a4a; border-color: #8833aa; color: #bb66dd; }
.build-tag-chip.active.tag-debut-de-combat { background: #4a3a1a; border-color: #aa8833; color: #ddbb66; }
.build-tag-chip.active.tag-debut-de-tour { background: #4a4a1a; border-color: #aaaa33; color: #dddd66; }
.build-tag-chip.active.tag-gradient { background: #3a2a4a; border-color: #7744aa; color: #aa77dd; }
.build-tag-chip.active.tag-mort-d-un-ennemi { background: #4a1a3a; border-color: #aa3377; color: #dd66aa; }
.build-tag-chip.active.tag-points-d-action { background: #3a3a2a; border-color: #888855; color: #bbbb88; }
.build-tag-chip.active.tag-solo { background: #2a3a3a; border-color: #558888; color: #88bbbb; }
.build-tag-chip.active.tag-teintes { background: #4a2a4a; border-color: #9944aa; color: #cc77dd; }
.build-tag-chip.active.tag-tour-supplementaire { background: #1a4a4a; border-color: #33aaaa; color: #66dddd; }

/* Filtre Affichage */
.build-display-toggle {
  display: inline-block;
  padding: 4px 12px;
  font-size: 0.8rem;
  font-weight: 600;
  border-radius: 4px;
  background: #1a1a1a;
  border: 1px solid #444;
  color: #888;
  cursor: pointer;
  transition: all 0.15s ease;
}

.build-display-toggle:hover {
  border-color: #666;
  color: #aaa;
}

.build-display-toggle.active {
  background: #1a4a2a;
  border-color: #44ff88;
  color: #6bff9f;
}

/* Picto masqué par le filtre affichage */
.build-picto.is-hidden-display {
  display: none !important;
}

/* Ligne 2 du build (Affichage + Langue + DLC) */
#co-build-root .seed-filter-row:nth-child(2) {
  flex-wrap: nowrap;
  justify-content: space-between;
}

/* Astérisque verte pour les pictos non in-game */
.build-picto-notingame {
  color: #44ff88;
  font-size: 0.75em;
  font-weight: bold;
  margin-left: 2px;
  vertical-align: super;
}

/* Légende */
.build-legend {
  font-size: 0.8rem;
  color: #888;
  font-style: italic;
  margin-left: auto;
}

.build-legend-star {
  color: #44ff88;
  font-weight: bold;
  font-style: normal;
}

/* ========== NOM ANGLAIS ========== */

.build-picto-english {
  font-size: 0.8rem;
  color: #aaa;
  padding: 10px 0;
  border-top: 1px solid #333;
  margin-top: 8px;
}

.build-picto-english-label {
  color: #888;
}

.build-picto-english-value {
  color: #00ccff;
  font-weight: 600;
}

/* ========== BOUTON LANGUE ========== */

.build-filter-group {
  display: flex;
  align-items: center;
  gap: 6px;
}

.build-lang-toggle {
  display: inline-block;
  padding: 4px 12px;
  font-size: 0.8rem;
  font-weight: 600;
  border-radius: 4px;
  background: #1a1a1a;
  border: 1px solid #444;
  color: #888;
  cursor: pointer;
  transition: all 0.15s ease;
}

.build-lang-toggle:hover {
  border-color: #666;
  color: #aaa;
}

.build-lang-toggle.active {
  background: #1a2a4a;
  border-color: #4488ff;
  color: #6b9fff;
}

/* ========== ÉTIQUETTE ET FILTRE DLC ========== */

.build-picto-dlc {
  display: inline-block;
  padding: 2px 6px;
  margin-left: 6px;
  font-size: 0.7rem;
  font-weight: 700;
  border-radius: 3px;
  background: #4a1a1a;
  border: 1px solid #ff4444;
  color: #ff6b6b;
  text-transform: uppercase;
  flex-shrink: 0;
}

.build-dlc-toggle {
  display: inline-block;
  padding: 4px 12px;
  font-size: 0.8rem;
  font-weight: 600;
  border-radius: 4px;
  background: #1a1a1a;
  border: 1px solid #444;
  color: #888;
  cursor: pointer;
  transition: all 0.15s ease;
}

.build-dlc-toggle:hover {
  border-color: #666;
  color: #aaa;
}

.build-dlc-toggle.active-dlc {
  background: #4a1a1a;
  border-color: #ff4444;
  color: #ff6b6b;
}

.build-dlc-toggle.active-base {
  background: #1a4a2a;
  border-color: #44ff88;
  color: #6bff9f;
}

/* ========== LIGNE LÉGENDE ========== */

.build-legend-row {
  justify-content: space-between;
  padding-top: 6px;
  padding-bottom: 10px;
  border-bottom: 1px solid #444;
}

/* ========== SELECT SEED ========== */

.build-seed-select {
  background: #1a1a1a;
  border: 1px solid #444;
  border-radius: 4px;
  color: #f0f0f0;
  padding: 4px 8px;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}

.build-seed-select:hover {
  border-color: #666;
}

.build-seed-select:focus {
  outline: none;
  border-color: #00ccff;
}

.build-seed-select option {
  background: #1a1a1a;
  color: #f0f0f0;
}

