/* Header partagé façon ACLClouds — CryptoServer (vars → theme.css) */
.ac-topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  padding: 10px 0 0;
}
.ac-topbar-inner {
  width: min(1240px, calc(100% - 24px));
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 58px;
  padding: 8px 12px;
  border-radius: 16px;
  border: 1px solid var(--nav-line);
  background: var(--nav-bg);
  backdrop-filter: blur(14px);
  box-shadow: var(--nav-shadow);
}
.ac-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  line-height: 1;
  flex-shrink: 0;
  text-decoration: none;
  color: inherit;
}
.ac-brand-mark {
  display: block;
  line-height: 0;
  flex-shrink: 0;
}
.ac-brand-coin {
  width: 40px;
  height: 40px;
  display: block;
  border-radius: 10px;
  object-fit: contain;
}
.ac-brand-name {
  font-family: var(--font-display, "Syne", sans-serif);
  font-weight: 700;
  font-size: 1.02rem;
  letter-spacing: -0.02em;
  text-transform: none;
  color: var(--text-strong);
  white-space: nowrap;
}

.ac-nav {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 0;
  margin-left: 2px;
  margin-right: 4px;
  min-width: 0;
  flex: 1 1 auto;
  /* visible: overflow:hidden clipait les .ac-dd (Web/Domaines, Ressources) */
  overflow: visible;
}
.ac-nav-item { position: relative; flex-shrink: 0; }
.ac-nav-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 36px;
  padding: 0 7px;
  border: none;
  border-radius: 10px;
  background: transparent;
  color: var(--nav-silver);
  font: inherit;
  font-weight: 650;
  font-size: 0.86rem;
  cursor: pointer;
  white-space: nowrap;
}
.ac-nav-link {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  min-height: 36px;
  padding: 0 7px;
  margin: 0;
  border-radius: 10px;
  color: var(--nav-silver);
  font-weight: 650;
  font-size: 0.86rem;
  text-decoration: none;
  white-space: nowrap;
}
.ac-nav-link:hover,
.ac-nav-link[aria-current="page"] {
  color: var(--text-strong);
  background: rgba(255, 255, 255, 0.06);
}
.ac-nav-btn:hover,
.ac-nav-item.is-open > .ac-nav-btn,
.ac-nav-btn[aria-current="page"] {
  color: var(--text-strong);
  background: rgba(255, 255, 255, 0.06);
}
.ac-nav-btn .chev {
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid currentColor;
  opacity: 0.7;
}

.ac-dd {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 320px;
  padding: 8px;
  border-radius: 14px;
  border: 1px solid var(--nav-line);
  background: var(--nav-panel);
  box-shadow: var(--dd-shadow);
}
.ac-nav-item.is-open > .ac-dd { display: grid; gap: 2px; }
.ac-dd a {
  display: grid;
  gap: 2px;
  padding: 12px 12px;
  border-radius: 10px;
  color: var(--text-strong);
  text-decoration: none;
}
.ac-dd a:hover { background: rgba(255, 140, 0, 0.12); }
.ac-dd a .t { font-weight: 750; font-size: 0.95rem; }
.ac-dd a .d { color: var(--nav-silver); font-size: 0.82rem; line-height: 1.35; }

.ac-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
.ac-prefs {
  display: inline-flex;
  align-items: center;
  gap: 1px;
  flex-shrink: 0;
}
.ac-lang,
.ac-theme { position: relative; flex-shrink: 0; }
.ac-lang-btn,
.ac-theme-btn {
  min-width: auto;
  min-height: 34px;
  padding: 0 6px;
  font-size: 0.82rem;
  gap: 4px;
}
.ac-lang-btn span,
.ac-theme-btn > span:not(.ac-theme-ico):not(.chev) {
  font-weight: 700;
  letter-spacing: 0.02em;
}
.ac-lang-dd,
.ac-theme-dd {
  min-width: 148px;
  right: 0;
  left: auto;
  padding: 4px;
}
.ac-lang-opt {
  display: flex;
  width: 100%;
  align-items: center;
  gap: 6px;
  padding: 8px 10px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--text-strong);
  font: inherit;
  font-size: 0.88rem;
  text-align: left;
  cursor: pointer;
  white-space: nowrap;
}
.ac-lang-opt:hover,
.ac-lang-opt.is-on { background: rgba(255, 140, 0, 0.14); }
.ac-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 14px;
  border-radius: 12px;
  font-weight: 750;
  font-size: 0.92rem;
  text-decoration: none;
  border: 1px solid transparent;
}
.ac-btn-line {
  border-color: var(--nav-line);
  color: var(--text-strong);
  background: transparent;
}
.ac-btn-line:hover { border-color: var(--nav-silver); color: var(--text-strong); }
.ac-btn-orange {
  background: var(--nav-orange);
  color: #1a1200;
}
.ac-btn-orange:hover { background: var(--nav-orange-2); color: #1a1200; }

.ac-burger {
  display: none;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  border: 1px solid var(--nav-line);
  background: transparent;
  color: var(--text-strong);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  margin-left: auto;
}
.ac-burger span {
  display: block;
  width: 18px;
  height: 2px;
  background: currentColor;
  box-shadow: 0 -6px 0 currentColor, 0 6px 0 currentColor;
}

.ac-mobile {
  display: none;
  width: min(1120px, calc(100% - 24px));
  margin: 8px auto 0;
  padding: 10px;
  border-radius: 14px;
  border: 1px solid var(--nav-line);
  background: var(--nav-panel);
}
.ac-topbar.is-mobile-open .ac-mobile { display: grid; gap: 6px; }
.ac-mobile a, .ac-mobile .ac-mob-label {
  display: block;
  padding: 10px 12px;
  border-radius: 10px;
  color: var(--nav-silver);
  text-decoration: none;
  font-weight: 650;
}
.ac-mobile a:hover { color: var(--text-strong); background: rgba(255,255,255,.05); }
.ac-mobile .ac-mob-label {
  color: var(--text-strong);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  opacity: 0.7;
  padding-bottom: 2px;
}
.ac-mobile .ac-btn { width: 100%; margin-top: 4px; }

@media (max-width: 1080px) {
  .ac-nav, .ac-actions { display: none; }
  .ac-burger { display: inline-flex; }
}
