/* ===============================
   FEDERATION ORBIT – CLEAN CSS
   =============================== */

:root {
  --fo-bg: #101a42;
  --fo-text: rgba(255, 255, 255, 0.92);
  --fo-line: rgba(255, 255, 255, 0.1);
  --fo-line2: rgba(255, 255, 255, 0.18);

  --fo-coreSize: clamp(260px, 42vmin, 520px);

  /* Solennel / Ministère */
  --fo-gold: rgba(212, 175, 55, 0.85);
  --fo-gold-soft: rgba(212, 175, 55, 0.45);
  --fo-white-soft: rgba(255, 255, 255, 0.92);

  /* Logos plus grands */
  --fo-logoSize: clamp(78px, 8.8vmin, 128px);
  --fo-coreGap: 22px;
  --fo-logoGap: 18px;

  /* Vitesses */
  --fo-speedInner: 0.33;
  --fo-speedOuter: -0.23;
  --fo-speed: 0.28;
}

/* ===== Stage ===== */
.fo-stage {
  position: relative;
  width: 100%;
  max-width: 100%;
  margin: 0;
  display: grid;
  place-items: center;
  overflow: hidden;

  border-radius: 0; /* remove rounded corners */

  background: var(--fo-bg);
  box-shadow: 0 40px 120px rgba(0, 0, 0, 0.45);
}

/* ===== Core (cercle central) ===== */
.fo-core {
  position: relative;
  width: var(--fo-coreSize);
  height: var(--fo-coreSize);
  border-radius: 999px;
  overflow: hidden; /* IMPORTANT: cercle => clip */
  box-shadow:
    0 30px 80px rgba(0, 0, 0, 0.55),
    inset 0 0 0 1px rgba(255, 255, 255, 0.12);
  transform: translateZ(0);
}

.fo-core-title {
  position: absolute;
  left: 50%;
  top: 14px;
  transform: translateX(-50%);
  font-weight: 800;
  letter-spacing: 0.3px;
  font-size: clamp(13px, 1.8vmin, 16px);
  padding: 0.45rem 0.75rem;
  border-radius: 999px;
  color: var(--fo-text);
  background: rgba(0, 0, 0, 0.28);
  border: 1px solid rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(10px);
  z-index: 6;
}

.fo-core-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

/* ===== Hover logo layer (centre) ===== */
.fo-core-logoWrap {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  opacity: 0;
  transform: scale(0.98);
  transition:
    opacity 0.18s ease,
    transform 0.18s ease;
  z-index: 4;
}

.fo-core.is-hover .fo-core-logoWrap {
  opacity: 1;
  transform: scale(1);
}

.fo-core-premiumBg {
  position: absolute;
  width: 68%;
  height: 68%;
  border-radius: 999px;
  background: radial-gradient(
    circle at 40% 30%,
    rgba(255, 255, 255, 0.22),
    rgba(255, 255, 255, 0.06) 45%,
    rgba(0, 0, 0, 0.22) 72%,
    rgba(0, 0, 0, 0.45)
  );
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow:
    0 30px 90px rgba(0, 0, 0, 0.45),
    inset 0 0 0 1px rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px);
}

/* Logo central circulaire (sceau) */
.fo-core-logo {
  position: relative;
  width: 46%;
  height: 46%;
  border-radius: 999px;
  object-fit: cover; /* si tu veux pas crop => contain */
  background: rgba(255, 255, 255, 0.08);
  border: 2px solid rgba(255, 255, 255, 0.18);
  padding: 10px;
  box-shadow:
    0 18px 40px rgba(0, 0, 0, 0.55),
    inset 0 0 0 1px rgba(0, 0, 0, 0.25);
  z-index: 2;
}

.fo-core-gloss {
  position: absolute;
  width: 72%;
  height: 72%;
  border-radius: 999px;
  background: radial-gradient(
    circle at 30% 25%,
    rgba(255, 255, 255, 0.22),
    transparent 45%
  );
  opacity: 0.55;
  pointer-events: none;
}

.fo-core-overlay {
  position: absolute;
  inset: -8px;
  border-radius: 999px;
  background: radial-gradient(
    circle at 50% 45%,
    rgba(255, 255, 255, 0.08),
    transparent 60%
  );
  pointer-events: none;
  filter: blur(2px);
  z-index: 8;
}

/* ===== Orbits layer (logos) ===== */
.fo-orbits {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.fo-fed {
  position: absolute;
  width: var(--fo-logoSize);
  height: var(--fo-logoSize);
  border-radius: 999px;
  overflow: hidden;
  display: grid;
  place-items: center;

  background: radial-gradient(
    circle at 50% 45%,
    rgba(255, 255, 255, 0.14),
    rgba(255, 255, 255, 0.06) 38%,
    rgba(0, 0, 0, 0.55) 72%,
    rgba(0, 0, 0, 0.78)
  );

  border: 2px solid var(--fo-gold-soft);
  box-shadow:
    0 18px 50px rgba(0, 0, 0, 0.65),
    inset 0 0 0 1px rgba(255, 255, 255, 0.18);

  backdrop-filter: blur(8px);
  transform: translate(-50%, -50%);
  pointer-events: auto;
  cursor: pointer;
  user-select: none;
  text-decoration: none;

  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease,
    border-color 0.25s ease;
}

.fo-fed::before {
  content: "";
  position: absolute;
  inset: 6px;
  border-radius: 999px;
  border: 1px dashed rgba(255, 255, 255, 0.22);
  pointer-events: none;
}

.fo-fed::after {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  pointer-events: none;
}

.fo-fed img {
  width: 72%;
  height: 72%;
  object-fit: contain;
  border-radius: 999px;
  filter: drop-shadow(0 10px 22px rgba(0, 0, 0, 0.65));
}

.fo-fed:hover {
  transform: translate(-50%, -50%) scale(1.05);
  border-color: var(--fo-gold);
  box-shadow:
    0 26px 70px rgba(0, 0, 0, 0.75),
    inset 0 0 0 1px rgba(255, 255, 255, 0.3);
}

.fo-tooltip {
  position: absolute;
  top: calc(100% + 14px);
  left: 50%;
  transform: translateX(-50%);
  white-space: nowrap;

  padding: 0.5rem 1rem;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.6px;
  text-transform: uppercase;

  color: var(--fo-white-soft);
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0.78));
  border: 1px solid var(--fo-gold-soft);
  border-radius: 999px;
  backdrop-filter: blur(12px);

  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s ease;
}

.fo-fed:hover .fo-tooltip {
  opacity: 1;
}

/* ===== Rings ===== */
.fo-ring {
  position: absolute;
  border-radius: 999px;
  border: 1px solid var(--fo-line);
  pointer-events: none;
  opacity: 0.18;
}

.fo-ring--inner {
  border-color: var(--fo-line2);
  opacity: 0.2;
}
.fo-ring--mid {
  border-color: var(--fo-line2);
  opacity: 0.14;
} /* NEW */
.fo-ring--outer {
  opacity: 0.1;
}

/* ===== Focus card (SOUS le cercle, sur fond bleu) ===== */
/* IMPORTANT: elle est sibling de .fo-core, donc plus de clipping */
.fo-focusCard {
  position: absolute;
  top: calc(58% + (var(--fo-coreSize) / 2) + 18px);
  left: 50%;
  transform: translateX(-50%) translateY(6px);

  width: min(460px, 92%);
  padding: 14px 18px;
  border-radius: 14px;
  text-align: center;

  background: linear-gradient(
    180deg,
    rgba(16, 26, 66, 0.96),
    rgba(16, 26, 66, 0.86)
  );
  border: 1px solid rgba(255, 255, 255, 0.25);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);

  opacity: 0;
  pointer-events: none;
  z-index: 60;

  transition:
    opacity 0.18s ease,
    transform 0.18s ease;
}

/* affichage AU HOVER (classe ajoutée sur .fo-stage par JS) */
.fo-stage.fo-hovering .fo-focusCard {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.fo-focusTag {
  display: inline-block;
  margin-bottom: 6px;
  padding: 0.25rem 0.75rem;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.6px;
  text-transform: uppercase;

  color: rgba(255, 255, 255, 0.95);
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
}

.fo-focusName {
  font-size: 15px;
  font-weight: 900;
  letter-spacing: 0.5px;
  line-height: 1.2;
  color: #fff;
}

/* bouton non utilisé */
.fo-focusBtn {
  display: none !important;
}

/* Désactiver le titre central sans casser le JS */
.fo-core-title {
  display: none !important;
}
.fo-stage.fo-hovering .fo-focusCard {
  opacity: 1;
}

/* =========================================
   FORCE CERCLES (Elementor-proof)
   ========================================= */

/* Badge sur l'orbite */
.fo-fed {
  border-radius: 9999px !important;
  overflow: hidden !important; /* IMPORTANT: masque le carré */
}

/* Image dans le badge */
.fo-fed img {
  width: 72% !important;
  height: 72% !important;
  border-radius: 9999px !important; /* même si l’image est carrée */
  object-fit: cover !important; /* remplit bien le cercle */
  display: block !important;
}

/* Centre : wrapper + fond = cercle */
.fo-core-logoWrap,
.fo-core-premiumBg,
.fo-core-gloss {
  border-radius: 9999px !important;
}

/* Centre : logo affiché au hover = cercle */
.fo-core-logo {
  border-radius: 9999px !important;
  overflow: hidden !important;
  object-fit: cover !important;
  display: block !important;
}

/* Si jamais Elementor met des styles sur img */
.fo-stage img {
  max-width: none !important;
}
