/* ============================================================
   ADOAH Network Star Diagram — Scoped Styles
   All selectors are namespaced under #reseau-adoah.
   Custom properties are declared on #reseau-adoah so they
   shadow the site-level tokens only within this section.
   ============================================================ */

/* ── Section-scoped tokens ────────────────────────────────── */
#reseau-adoah {
  --adoah-card-bg:    #FFFFFF;
  --adoah-text-light: #6B7A8D;
}

/* ── Diagram Container ────────────────────────────────────── */
#reseau-adoah .adoah-diagram {
  position: relative;
  width: 520px;
  height: 520px;
  margin: 0 auto;
  max-width: 100%;
}

#reseau-adoah .adoah-diagram svg.geo-layer {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

/* ── Center Hub ───────────────────────────────────────────── */
#reseau-adoah .adoah-hub {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--navy), #243656);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 3;
  box-shadow: 0 4px 20px rgba(27, 42, 74, 0.25);
}

#reseau-adoah .adoah-hub::before {
  content: '';
  position: absolute;
  inset: 4px;
  border-radius: 50%;
  border: 1.5px solid rgba(196, 132, 29, 0.3);
}

#reseau-adoah .adoah-hub span {
  color: #fff;
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 800;
  font-size: 16px;
  letter-spacing: 1px;
  position: relative;
  z-index: 1;
}

/* ── Node Cards ───────────────────────────────────────────── */
#reseau-adoah .adoah-node {
  position: absolute;
  width: 100px;
  height: 80px;
  border-radius: 14px;
  background: var(--adoah-card-bg);
  border: 1px solid rgba(27, 75, 107, 0.1);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  cursor: pointer;
  z-index: 2;
  box-shadow: 0 2px 8px rgba(27, 42, 74, 0.06);
  text-decoration: none;
  color: inherit;
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1),
              box-shadow 0.35s cubic-bezier(0.4, 0, 0.2, 1),
              border-color 0.35s ease;
}

#reseau-adoah .adoah-node:hover {
  transform: translate(-50%, -50%) scale(1.08) !important;
  box-shadow: 0 6px 24px rgba(27, 42, 74, 0.12);
  border-color: rgba(27, 75, 107, 0.2);
}

#reseau-adoah .adoah-node:focus-visible {
  transform: translate(-50%, -50%) scale(1.08) !important;
  box-shadow: 0 6px 24px rgba(27, 42, 74, 0.12);
  border-color: rgba(27, 75, 107, 0.2);
  outline: 2px solid var(--teal);
  outline-offset: 3px;
}

#reseau-adoah .adoah-node .icon {
  color: var(--teal);
  opacity: 0.5;
  transition: opacity 0.3s;
  display: flex;
}

#reseau-adoah .adoah-node:hover .icon,
#reseau-adoah .adoah-node:focus-visible .icon {
  opacity: 0.8;
}

#reseau-adoah .adoah-node .label {
  font-size: 10.5px;
  font-weight: 600;
  text-align: center;
  line-height: 1.3;
  color: var(--navy);
  font-family: 'Playfair Display', Georgia, serif;
  white-space: pre-line;
}

/* ── Radial Lines ─────────────────────────────────────────── */
#reseau-adoah .radial-line {
  transition: opacity 0.3s ease, stroke-width 0.3s ease;
}

/* ── Entrance Animation ───────────────────────────────────── */
@keyframes adoah-fadeUp {
  from {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.85) translateY(12px);
  }
  to {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1) translateY(0);
  }
}

#reseau-adoah .adoah-node {
  opacity: 0;
  animation: adoah-fadeUp 0.6s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 560px) {
  #reseau-adoah .adoah-diagram {
    transform: scale(0.7);
    transform-origin: top center;
    height: 364px; /* 520 * 0.7 — prevents collapsed container */
  }
}
