/* ============================================================
   Page Equipe officielle — organigramme public du staff.
   Prefixe `team-*` : aucune collision avec members.php / profile-*.
   Design decharge complet : hero cinematique, pole = section cartee,
   avatars hexagonaux, style braille vitreux aligne sur le design system.
   ============================================================ */

/* ---------- Contexte page ---------- */
.team-page {
  --t-bg: #0b0e1a;
  --t-panel: #121626;
  --t-panel-2: #151a2e;
  --t-line: rgba(118, 146, 255, .20);
  --t-ink: #eef1ff;
  --t-ink-dim: #9ba4c7;
  --t-green: #6ee85c;
  --t-purple: #7750f8;
  --t-radius: 18px;
  --t-shadow: 0 24px 60px rgba(2, 5, 18, .55);
  background:
    radial-gradient(1100px 520px at 12% -8%, rgba(119, 80, 248, .16), transparent 60%),
    radial-gradient(900px 480px at 88% 4%, rgba(29, 185, 160, .10), transparent 60%),
    var(--t-bg);
}

/* ---------- Shell ---------- */
.team-shell {
  max-width: 1180px;
  margin: 0 auto;
  padding: 34px 22px 64px;
  position: relative;
}

/* ---------- Hero ---------- */
.team-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border: 1px solid var(--t-line);
  border-radius: 26px;
  background:
    radial-gradient(700px 340px at 22% 0%, rgba(119, 80, 248, .22), transparent 62%),
    radial-gradient(620px 320px at 92% 12%, rgba(110, 232, 92, .12), transparent 60%),
    linear-gradient(180deg, #141a30 0%, #0f1426 100%);
  box-shadow: var(--t-shadow);
  padding: 48px 40px;
}

.team-hero__glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(72px);
  pointer-events: none;
  z-index: -1;
}
.team-hero__glow--a {
  width: 340px;
  height: 340px;
  right: -90px;
  top: -120px;
  background: rgba(119, 80, 248, .45);
}
.team-hero__glow--b {
  width: 260px;
  height: 260px;
  left: 30%;
  bottom: -140px;
  background: rgba(110, 232, 92, .25);
}

.team-hero__mesh {
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: .5;
  background-image:
    linear-gradient(rgba(118, 146, 255, .06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(118, 146, 255, .06) 1px, transparent 1px);
  background-size: 34px 34px;
  mask-image: radial-gradient(80% 90% at 60% 20%, #000 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(80% 90% at 60% 20%, #000 30%, transparent 80%);
}

.team-hero__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 44px;
  align-items: center;
}

/* Eyebrow */
.team-hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  margin: 0 0 14px;
  padding: 7px 14px;
  border: 1px solid rgba(110, 232, 92, .35);
  border-radius: 999px;
  background: rgba(110, 232, 92, .10);
  color: var(--t-green);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.team-hero__eyebrow::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 12px currentColor;
}

/* Titre */
.team-hero__title {
  margin: 0;
  font-size: clamp(30px, 4.4vw, 46px);
  line-height: 1.08;
  font-weight: 900;
  letter-spacing: -.015em;
  color: var(--t-ink);
  background: linear-gradient(120deg, #fff 20%, #c9d2ff 55%, var(--t-purple) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.team-hero__lead {
  margin: 18px 0 0;
  max-width: 620px;
  color: var(--t-ink-dim);
  font-size: 15.5px;
  line-height: 1.75;
}

.team-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

/* Stats */
.team-hero__stats {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  min-width: 240px;
  list-style: none;
}
.team-stat {
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-rows: auto auto;
  column-gap: 14px;
  align-items: center;
  padding: 18px 20px;
  border: 1px solid var(--t-line);
  border-radius: 16px;
  background: rgba(13, 17, 33, .72);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 14px 34px rgba(2, 5, 18, .35);
}
.team-stat__icon {
  grid-row: 1 / 3;
  grid-column: 1;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(119, 80, 248, .28), rgba(110, 232, 92, .18));
  color: #c3ccff;
}
.team-stat__icon svg {
  width: 21px;
  height: 21px;
}
.team-stat__value {
  grid-column: 2;
  margin: 0;
  font-size: 26px;
  font-weight: 900;
  letter-spacing: -.01em;
  color: var(--t-ink);
  line-height: 1.1;
}
.team-stat__label {
  grid-column: 2;
  margin: 0;
  font-size: 12px;
  color: var(--t-ink-dim);
  text-transform: uppercase;
  letter-spacing: .1em;
}

/* ---------- Alerte (erreur / vide) ---------- */
.team-alert {
  margin-top: 26px;
  padding: 28px 30px;
  border: 1px solid rgba(255, 92, 122, .30);
  border-radius: var(--t-radius);
  background: rgba(255, 92, 122, .08);
  box-shadow: var(--t-shadow);
}
.team-alert__title {
  margin: 0 0 8px;
  font-size: 19px;
  font-weight: 800;
  color: #ffb3c1;
}
.team-alert__text {
  margin: 0;
  color: var(--t-ink-dim);
  font-size: 14.5px;
  line-height: 1.7;
}

/* ---------- Jump nav ---------- */
.team-jump {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 30px 0 8px;
}
.team-jump__link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  border: 1px solid var(--t-line);
  border-radius: 999px;
  background: rgba(18, 22, 38, .8);
  color: var(--t-ink-dim);
  font-size: 13.5px;
  font-weight: 600;
  text-decoration: none;
  transition: transform .18s ease, border-color .18s ease, color .18s ease, box-shadow .18s ease;
}
.team-jump__link:hover {
  transform: translateY(-2px);
  border-color: color-mix(in srgb, var(--team-accent, #7750f8) 55%, transparent);
  color: var(--t-ink);
  box-shadow: 0 8px 24px rgba(2, 5, 18, .4);
}
.team-jump__index {
  font-size: 11px;
  font-weight: 800;
  color: var(--team-accent, var(--t-purple));
}
.team-jump__count {
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(118, 146, 255, .14);
  font-size: 11px;
  font-weight: 700;
  color: var(--t-ink-dim);
}

/* ---------- Pole ---------- */
.team-pole {
  position: relative;
  margin-top: 30px;
  padding: 30px 30px 34px;
  border: 1px solid var(--t-line);
  border-radius: 24px;
  background:
    radial-gradient(560px 220px at 0% 0%, color-mix(in srgb, var(--team-accent, #7750f8) 16%, transparent), transparent 60%),
    linear-gradient(180deg, var(--t-panel) 0%, #10141f 100%);
  box-shadow: var(--t-shadow);
  overflow: hidden;
}
.team-pole::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: linear-gradient(180deg, var(--team-accent, #7750f8), color-mix(in srgb, var(--team-accent, #7750f8) 25%, transparent));
  box-shadow: 0 0 22px color-mix(in srgb, var(--team-accent, #7750f8) 80%, transparent);
}

.team-pole__header {
  display: flex;
  align-items: flex-start;
  gap: 18px;
}
.team-pole__badge {
  flex: 0 0 auto;
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: color-mix(in srgb, var(--team-accent, #7750f8) 22%, transparent);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--team-accent, #7750f8) 45%, transparent);
}
.team-pole__index {
  font-size: 17px;
  font-weight: 900;
  letter-spacing: .04em;
  color: var(--team-accent, var(--t-purple));
}
.team-pole__intro {
  flex: 1 1 auto;
  min-width: 0;
}
.team-pole__title {
  margin: 0;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -.01em;
  color: var(--t-ink);
}
.team-pole__mission {
  margin: 7px 0 0;
  color: var(--t-ink-dim);
  font-size: 14px;
  line-height: 1.65;
}
.team-pole__count {
  flex: 0 0 auto;
  margin: 0;
  padding: 7px 13px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--team-accent, #7750f8) 16%, transparent);
  border: 1px solid color-mix(in srgb, var(--team-accent, #7750f8) 40%, transparent);
  color: var(--team-accent, var(--t-purple));
  font-size: 12.5px;
  font-weight: 800;
  white-space: nowrap;
}

/* ---------- Grid des membres ---------- */
.team-grid {
  list-style: none;
  margin: 26px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 16px;
}

.team-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 30px 18px 20px;
  border: 1px solid rgba(118, 146, 255, .16);
  border-radius: 18px;
  background: rgba(13, 17, 33, .66);
  transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease;
}
.team-card:hover {
  transform: translateY(-6px);
  border-color: color-mix(in srgb, var(--team-accent, #7750f8) 55%, transparent);
  box-shadow: 0 22px 44px rgba(2, 5, 18, .55), 0 0 26px color-mix(in srgb, var(--team-accent, #7750f8) 22%, transparent);
}

.team-card__top {
  position: relative;
  margin-bottom: 16px;
}

/* Avatar hexagonal */
.team-card__hex {
  display: block;
  position: relative;
  width: 92px;
  height: 92px;
  border-radius: 22px;
  padding: 4px;
  background: linear-gradient(135deg, color-mix(in srgb, var(--team-accent, #7750f8) 70%, transparent), rgba(118, 146, 255, .30));
  clip-path: polygon(50% 0%, 93.3% 25%, 93.3% 75%, 50% 100%, 6.7% 75%, 6.7% 25%);
  transition: transform .22s ease, filter .22s ease;
}
.team-card:hover .team-card__hex {
  transform: scale(1.08) rotate(3deg);
  filter: brightness(1.12);
}
.team-card__hex-shape {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 18px;
  overflow: hidden;
  clip-path: polygon(50% 0%, 93.3% 25%, 93.3% 75%, 50% 100%, 6.7% 75%, 6.7% 25%);
  background: #0b0e1a;
}
.team-card__hex-shape img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Pastille de statut en ligne */
.team-card__status {
  position: absolute;
  right: 6px;
  bottom: 10px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--t-green);
  border: 3px solid #0d1122;
  box-shadow: 0 0 12px rgba(110, 232, 92, .85);
}

.team-card__identity {
  text-align: center;
}
.team-card__name {
  color: var(--t-ink);
  font-size: 16px;
  font-weight: 800;
  letter-spacing: -.01em;
  text-decoration: none;
  line-height: 1.3;
}
.team-card__name:hover {
  color: var(--team-accent, var(--t-purple));
  text-decoration: underline;
}
.team-card__handle {
  display: block;
  margin-top: 3px;
  color: var(--t-ink-dim);
  font-size: 13px;
}

.team-card__rank {
  margin: 14px 0 0;
  padding: 6px 14px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--team-accent, #7750f8) 15%, transparent);
  border: 1px solid color-mix(in srgb, var(--team-accent, #7750f8) 38%, transparent);
  color: var(--team-accent, var(--t-purple));
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .05em;
  text-transform: uppercase;
}

/* ---------- Notice ---------- */
.team-notice {
  margin-top: 30px;
  display: flex;
  gap: 22px;
  align-items: flex-start;
  padding: 30px 32px;
  border: 1px solid rgba(110, 232, 92, .26);
  border-radius: 24px;
  background:
    radial-gradient(420px 200px at 95% 0%, rgba(110, 232, 92, .14), transparent 62%),
    linear-gradient(180deg, #101622 0%, #0e1320 100%);
  box-shadow: var(--t-shadow);
}
.team-notice__icon {
  flex: 0 0 auto;
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: rgba(110, 232, 92, .14);
  border: 1px solid rgba(110, 232, 92, .35);
  color: var(--t-green);
}
.team-notice__icon svg {
  width: 24px;
  height: 24px;
}
.team-notice__body {
  min-width: 0;
}
.team-notice__title {
  margin: 0 0 8px;
  font-size: 20px;
  font-weight: 800;
  color: var(--t-ink);
}
.team-notice__text {
  margin: 4px 0 0;
  color: var(--t-ink-dim);
  font-size: 14.5px;
  line-height: 1.7;
}
.team-notice__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 18px;
}

/* ---------- Boutons police site ---------- */
.team-hero__actions .button,
.team-notice__actions .button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 22px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: .02em;
  text-decoration: none;
  transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
}
.team-hero__actions .button.primary,
.team-notice__actions .button.primary {
  background: linear-gradient(135deg, var(--t-purple) 0%, #6146e6 100%);
  color: #fff;
  box-shadow: 0 12px 30px rgba(119, 80, 248, .40);
}
.team-hero__actions .button.secondary,
.team-notice__actions .button.secondary {
  background: rgba(18, 22, 38, .8);
  border: 1px solid var(--t-line);
  color: var(--t-ink);
}
.team-hero__actions .button:hover,
.team-notice__actions .button:hover {
  transform: translateY(-2px);
  filter: brightness(1.08);
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .team-hero__inner {
    grid-template-columns: 1fr;
    gap: 26px;
  }
  .team-hero__stats {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 767px) {
  .team-shell {
    padding: 18px 12px 44px;
  }
  .team-hero {
    padding: 30px 22px;
    border-radius: 20px;
  }
  .team-hero__title {
    font-size: 28px;
  }
  .team-pole {
    padding: 24px 20px 28px;
    border-radius: 20px;
  }
  .team-pole__header {
    flex-wrap: wrap;
  }
  .team-pole__count {
    width: 100%;
    text-align: center;
  }
  .team-grid {
    grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
    gap: 12px;
  }
  .team-notice {
    flex-direction: column;
    padding: 26px 22px;
    border-radius: 20px;
  }
  .team-jump__link {
    padding: 8px 13px;
    font-size: 12.5px;
  }
}

@media (max-width: 430px) {
  .team-hero__stats {
    grid-template-columns: 1fr;
  }
  .team-card {
    padding: 24px 12px 16px;
  }
}

/* ---------- Accessibilite ---------- */
@media (prefers-reduced-motion: reduce) {
  .team-hero__glow,
  .team-hero__mesh,
  .team-card,
  .team-card__hex,
  .team-jump__link {
    transition: none !important;
    animation: none !important;
  }
}