/* fx-equipe.css : constellation de l'équipe et cartes inclinables (page « Nos gestionnaires »). */

/* ---------- Constellation ---------- */
.fx-constel {
  position: relative;
  height: clamp(300px, 32vw, 400px);
  margin: 0 auto 56px;
  border: 1px solid #25344f;
  border-radius: 3px;
  background:
    radial-gradient(ellipse 70% 80% at 50% 45%, rgba(27, 52, 96, .55), rgba(7, 15, 38, 0) 70%),
    linear-gradient(180deg, #0b1633 0%, #070f26 100%);
  overflow: hidden;
  isolation: isolate;
}
.fx-constel::after {   /* filet doré discret en pied de cadre */
  content: ''; position: absolute; left: 8%; right: 8%; bottom: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(198,203,210, .45), transparent);
  pointer-events: none;
}
.fx-constel-ciel { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }

.fx-etoile {
  position: absolute; left: 0; top: 0;
  width: 44px; height: 44px;
  padding: 0; margin: 0;
  background: transparent; border: 0; border-radius: 50%;
  cursor: pointer;
  will-change: transform;
  z-index: 1;
}
.mgf-design .fx-etoile:focus-visible { outline: 2px solid #c6cbd2 !important; outline-offset: 2px !important; }
.fx-etoile:hover, .fx-etoile:focus-visible { z-index: 2; }

.fx-etoile-txt {
  position: absolute; left: 50%; bottom: calc(100% + 4px);
  transform: translate(-50%, 6px);
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  padding: 9px 14px 10px;
  white-space: nowrap;
  background: rgba(7, 15, 38, .88);
  border: 1px solid rgba(198,203,210, .35);
  border-radius: 3px;
  box-shadow: 0 10px 30px -12px rgba(0, 0, 0, .8);
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s ease, transform .35s cubic-bezier(.2, .7, .2, 1);
}
.fx-etoile.fx-g .fx-etoile-txt { left: 0; transform: translate(0, 6px); align-items: flex-start; }
.fx-etoile.fx-d .fx-etoile-txt { left: auto; right: 0; transform: translate(0, 6px); align-items: flex-end; }
.fx-etoile:hover .fx-etoile-txt,
.fx-etoile:focus-visible .fx-etoile-txt { opacity: 1; transform: translate(-50%, 0); }
.fx-etoile.fx-g:hover .fx-etoile-txt, .fx-etoile.fx-g:focus-visible .fx-etoile-txt,
.fx-etoile.fx-d:hover .fx-etoile-txt, .fx-etoile.fx-d:focus-visible .fx-etoile-txt { transform: translate(0, 0); }

.fx-etoile-nom {
  font-family: 'Cormorant Garamond', serif;
  font-size: 21px; font-weight: 400; line-height: 1.15;
  color: #d5dae1;
}
.fx-etoile-role {
  font-family: 'DM Sans', sans-serif;
  font-size: 13px; line-height: 1.3;
  color: #b8cde0;
}

/* Étoile haute : l'étiquette passe dessous pour rester dans le cadre */
.fx-etoile.fx-bas .fx-etoile-txt { bottom: auto; top: calc(100% + 4px); }

/* Carte liée à l'étoile survolée */
.mgf-design .gest-membre.fx-liee { background: #1b2c48; }
.gest-membre.fx-liee::before { width: 3px !important; background: #c6cbd2 !important; }

/* ---------- Cartes : accès clavier ---------- */
.mgf-design .gest-membre:focus-visible { outline-offset: -3px !important; }

/* ---------- Cartes : inclinaison 3D et reflet ---------- */
/* Le socle (design.css) fige .a avec transform:none !important : la règle ci-dessous est plus précise. */
.mgf-design .gest-membres .gest-membre.fx-tilt {
  transform: perspective(1000px) rotateX(var(--fx-rx, 0deg)) rotateY(var(--fx-ry, 0deg)) !important;
  transition: transform .6s cubic-bezier(.2, .7, .2, 1), background .2s, box-shadow .4s !important;
  transform-style: preserve-3d;
}
.mgf-design .gest-membres .gest-membre.fx-tilt.fx-actif {
  transition: transform .1s linear, background .2s, box-shadow .3s !important;
  z-index: 2;
  box-shadow: 0 22px 44px -22px rgba(0, 0, 0, .85), 0 0 0 1px rgba(198,203,210, .22);
}
.fx-reflet {
  position: absolute; inset: 0;
  pointer-events: none;
  background: radial-gradient(circle at var(--fx-gx, 50%) var(--fx-gy, 50%), rgba(213,218,225, .16), rgba(213,218,225, 0) 42%);
  opacity: 0;
  transition: opacity .4s ease;
}
.fx-actif > .fx-reflet { opacity: 1; }
.fx-actif .gest-membre-initial { border-color: rgba(198,203,210, .55); color: #d5dae1; transition: border-color .3s, color .3s; }

/* ---------- Téléphone et mouvement réduit ---------- */
@media (max-width: 767px) {
  .fx-constel { display: none; }   /* trop dense sur un petit écran : la liste suffit */
}
@media (prefers-reduced-motion: reduce) {
  .fx-etoile-txt { transition: none; }
  .mgf-design .gest-membres .gest-membre.fx-tilt { transform: none !important; }
}
