/* Icônes calculateurs — items Albion Online (render.albiononline.com) */
.calc-tab {
  gap: .45rem;
}
.calc-tab-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.35rem;
  height: 1.35rem;
  flex-shrink: 0;
}
.calc-tab-icon img,
.calc-tab-icon .calc-hub-item-icon {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.calc-card-icon-wrap img,
.calc-card-icon-wrap .calc-hub-item-icon {
  width: 2.75rem;
  height: 2.75rem;
  object-fit: contain;
}
.calc-cards-v3 .calc-card-icon-wrap img,
.calc-cards-v3 .calc-card-icon-wrap .calc-hub-item-icon {
  width: 2.5rem;
  height: 2.5rem;
  object-fit: contain;
}
.calc-card-icon-breeding {
  background: rgba(251, 191, 36, .12);
}

.home-benefit-icon,
.home-tool-icon {
  width: 2.75rem;
  height: 2.75rem;
  align-items: center;
  justify-content: center;
}
.home-benefit-icon img,
.home-tool-icon img,
.home-benefit-icon .calc-hub-item-icon,
.home-tool-icon .calc-hub-item-icon,
.tool-landing-hero .home-tool-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.calc-hub-item-icon {
  display: block;
  image-rendering: auto;
}

/* Sélecteur de langue — menu déroulant drapeaux */
.lang-switcher {
  position: relative;
  display: inline-flex;
  align-items: center;
}
.lang-switcher-toggle {
  display: inline-flex;
  padding: 0;
  margin: 0;
  background: none;
  border: none;
  cursor: pointer;
  line-height: 0;
  border-radius: 3px;
}
.lang-switcher-toggle:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.lang-switcher-menu {
  position: absolute;
  top: calc(100% + .35rem);
  right: 0;
  z-index: 250;
  list-style: none;
  margin: 0;
  padding: .3rem;
  display: flex;
  flex-direction: column;
  gap: .3rem;
  background: var(--card, #1a2332);
  border: 1px solid var(--border);
  border-radius: 6px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, .4);
}
.lang-switcher-menu[hidden] {
  display: none !important;
}
.lang-flag {
  display: inline-flex;
  width: 1.7rem;
  height: 1.15rem;
  border-radius: 3px;
  overflow: hidden;
  border: 1px solid var(--border);
  opacity: .85;
  transition: opacity .15s, border-color .15s, transform .15s, box-shadow .15s;
  flex-shrink: 0;
}
.lang-switcher-menu .lang-flag {
  opacity: .8;
}
.lang-flag:hover {
  opacity: 1;
  border-color: var(--accent);
  transform: translateY(-1px);
}
.lang-flag.is-active {
  opacity: 1;
  border-color: var(--accent);
  box-shadow: 0 0 0 1px rgba(201, 162, 39, .3);
}
.lang-flag svg {
  width: 100%;
  height: 100%;
  display: block;
}
.site-nav .lang-switcher {
  align-self: center;
}
.nav-toolbar .lang-switcher {
  margin-top: 0;
}
