/* =============================================================================
   team.css — Page Équipe (EN / FR)
   Extrait du <style> en ligne pour une CSP sans 'unsafe-inline'
   ============================================================================= */

/* === PAGE EQUIPE — DISPOSITION CONCENTRIQUE === */

/* === HERO — même proportion que les pages sections === */
.legal-hero.team-hero--override {
  padding: 0;
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* === SECTION HARNESS — Fond clair === */
.harness {
  position: relative;
  background: var(--c-light, #F4F6FA);
  overflow: visible;
  padding: var(--space-16) 0 var(--space-24);
  min-height: 70vh;
}

/* Grille technique subtile en arriere-plan */
.harness::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(44, 62, 107, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(44, 62, 107, 0.04) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
  z-index: 0;
}

/* === CANVAS — Conteneur concentrique === */
.harness__canvas {
  position: relative;
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  aspect-ratio: 1 / 1;
  z-index: 1;
}

/* === ORBITES DECORATIVES === */
.harness__orbit {
  position: absolute;
  border-radius: 50%;
  border: 1.5px dashed rgba(44, 62, 107, 0.1);
  pointer-events: none;
  z-index: 0;
}

.harness__orbit--inner {
  width: 36%;
  height: 36%;
  top: 32%;
  left: 32%;
}

.harness__orbit--outer {
  width: 76%;
  height: 76%;
  top: 12%;
  left: 12%;
}

/* === SVG CABLES === */
.harness__cables {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
}

/* === NOEUD INDIVIDUEL === */
.harness__node {
  position: absolute;
  z-index: 4;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  transform: translate(-50%, -50%);
  outline: none;
  transition: opacity 0.4s ease, filter 0.4s ease;
}

.harness__node:focus-visible .harness__ring {
  box-shadow:
    0 0 0 3px var(--c-white, #FFFFFF),
    0 0 0 6px var(--c-magenta, #e6007e);
}

/* Noeuds assombris quand un autre est ouvert */
.harness__canvas--dimmed .harness__node {
  opacity: 0.35;
  filter: grayscale(0.4);
}

/* Le noeud ouvert reste lumineux et passe au-dessus */
.harness__canvas--dimmed .harness__node.harness__node--open {
  opacity: 1;
  filter: none;
}

/* === ANNEAU AVEC DEGRADE === */
.harness__ring {
  width: 130px;
  height: 130px;
  border-radius: 50%;
  padding: 4px;
  background: linear-gradient(135deg, var(--c-magenta, #e6007e), var(--c-purple, #662483));
  box-shadow: 0 4px 20px rgba(230, 0, 126, 0.15);
  transition: box-shadow 0.4s ease, transform 0.4s ease;
  flex-shrink: 0;
}

/* Fondateurs — ombre renforcee */
.harness__node--founder .harness__ring {
  box-shadow: 0 6px 25px rgba(230, 0, 126, 0.25);
}

.harness__node:hover .harness__ring,
.harness__node:focus .harness__ring {
  box-shadow: 0 4px 30px rgba(230, 0, 126, 0.35);
  transform: scale(1.05);
}

/* Grossissement au clic */
.harness__node.harness__node--open .harness__ring {
  transform: scale(1.5);
  box-shadow: 0 8px 50px rgba(230, 0, 126, 0.5);
}

/* === PHOTO === */
.harness__photo {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  object-position: center 20%;
  display: block;
  background: var(--c-light-mid, #E8EDF5);
}

/* === DETAIL (tooltip au clic) === */
.harness__detail {
  position: absolute;
  top: calc(100% + 20px);
  left: 50%;
  transform: translateX(-50%) translateY(10px) scale(0.9);
  background: var(--c-white, #FFFFFF);
  border-radius: 14px;
  padding: 12px 24px;
  box-shadow: 0 12px 40px rgba(26, 37, 64, 0.3);
  text-align: center;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s ease, transform 0.35s ease, visibility 0.35s ease;
  pointer-events: none;
  z-index: 30;
  border: 1px solid rgba(44, 62, 107, 0.08);
}

/* Noeud ouvert passe au-dessus de tous les autres */
.harness__node[aria-expanded="true"],
.harness__node.harness__node--open {
  z-index: 20;
}

.harness__node[aria-expanded="true"] .harness__detail,
.harness__node.harness__node--open .harness__detail {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0) scale(1);
  pointer-events: auto;
}

.harness__name {
  display: block;
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--c-navy-dark, #1A2540);
  line-height: 1.3;
}

.harness__role {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  background: linear-gradient(90deg, var(--c-magenta, #e6007e), var(--c-purple, #662483));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-top: 2px;
  line-height: 1.4;
}

/* === LIEN LINKEDIN (fondateurs) === */
.harness__linkedin {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 6px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: transparent;
  color: var(--c-navy-light, #3D5A9E);
  border: 1.5px solid rgba(44, 62, 107, 0.2);
  transition: color 0.25s ease, border-color 0.25s ease;
}

.harness__linkedin:hover {
  color: var(--c-magenta, #e6007e);
  border-color: var(--c-magenta, #e6007e);
}

.harness__linkedin svg {
  width: 13px;
  height: 13px;
  fill: currentColor;
}

/* === SECTION REJOINDRE === */
.team-join {
  padding: var(--space-24) 0;
  text-align: center;
  background: var(--c-white, #FFFFFF);
}

.team-join__title {
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  color: var(--c-navy-dark, #1A2540);
  margin-bottom: var(--space-4);
  font-weight: 700;
}

.team-join__text {
  font-size: 1.1rem;
  color: var(--c-navy, #2C3E6B);
  max-width: 600px;
  margin: 0 auto var(--space-8);
  line-height: 1.7;
}

/* === SECTION CTA === */
.team-cta {
  padding: var(--space-20) 0;
  background: linear-gradient(50deg, var(--c-magenta, #e6007e) 0%, var(--c-purple, #662483) 100%);
  text-align: center;
}

.team-cta__title {
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  color: var(--c-white, #FFFFFF);
  margin-bottom: var(--space-4);
  font-weight: 700;
}

.team-cta__text {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.85);
  max-width: 500px;
  margin: 0 auto var(--space-8);
  line-height: 1.6;
}

.team-cta__btn {
  display: inline-block;
  padding: var(--space-3) var(--space-8);
  background: var(--c-white, #FFFFFF);
  color: var(--c-magenta, #e6007e);
  border-radius: 50px;
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.team-cta__btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

/* === RESPONSIVE — MOBILE < 768px === */
@media (max-width: 767px) {
  .harness {
    padding: var(--space-4) 0 var(--space-8);
    min-height: auto;
  }

  .harness__canvas {
    aspect-ratio: 4 / 5;
  }

  .harness__ring {
    width: 64px;
    height: 64px;
  }

  /* Grossissement au clic — plus fort en mobile */
  .harness__node.harness__node--open .harness__ring {
    transform: scale(1.4);
  }

  .harness__detail {
    top: calc(100% + 16px);
    padding: 8px 16px;
    white-space: nowrap;
    max-width: 90vw;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .harness__node.harness__node--open .harness__detail {
    transform: translateX(-50%) translateY(0) scale(1);
  }

  .harness__name {
    font-size: 0.85rem;
  }

  .harness__role {
    font-size: 0.6rem;
  }

  /* Orbites responsive — ellipses pour ratio 4:5 */
  .harness__orbit--inner {
    width: 40%;
    height: 32%;
    top: 34%;
    left: 30%;
  }

  .harness__orbit--outer {
    width: 80%;
    height: 64%;
    top: 18%;
    left: 10%;
  }
}

/* === RESPONSIVE — PETIT MOBILE < 400px === */
@media (max-width: 399px) {
  .harness__ring {
    width: 54px;
    height: 54px;
  }
}

/* === RESPONSIVE TABLETTE === */
@media (min-width: 768px) and (max-width: 1023px) {
  .harness__ring {
    width: 104px;
    height: 104px;
  }
}

/* === REDUCTION DE MOUVEMENT === */
@media (prefers-reduced-motion: reduce) {
  .harness__ring {
    transition: none;
  }

  .harness__detail {
    transition: none;
  }

  .harness__cables * {
    animation: none !important;
  }

  .harness__cables animateMotion {
    dur: 0s;
  }

  .team-cta__btn {
    transition: none;
  }
}

/* === POSITIONS DES NOEUDS — ex-attributs style en ligne === */
#node-benoit {
  top: 32%;
  left: 50%;
}

#node-denis {
  top: 50%;
  left: 68%;
}

#node-fabien {
  top: 68%;
  left: 50%;
}

#node-guillaume {
  top: 50%;
  left: 32%;
}

#node-clement {
  top: 12%;
  left: 50%;
}

#node-anne {
  top: 19%;
  left: 72%;
}

#node-maxime {
  top: 38%;
  left: 86%;
}

#node-laurie {
  top: 62%;
  left: 86%;
}

#node-nolwenn {
  top: 81%;
  left: 72%;
}

#node-romain {
  top: 88%;
  left: 50%;
}

#node-emma {
  top: 81%;
  left: 28%;
}

#node-clement-cojan {
  top: 62%;
  left: 14%;
}

#node-caroline {
  top: 38%;
  left: 14%;
}

#node-tiffene {
  top: 19%;
  left: 28%;
}
