/* Carte de l'équipe */
.tm [hidden] { display: none !important; }
.tm-stats {
  position: relative; display: grid; grid-template-columns: repeat(3, 1fr); margin-bottom: 1.5rem; border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, .06); background: linear-gradient(180deg, rgba(10, 30, 33, .8), rgba(5, 16, 18, .9));
  box-shadow: 0 0 60px -35px rgba(45, 212, 191, .9);
}
.tm-stats::before {
  content: ""; position: absolute; left: 8%; right: 8%; top: -1px; height: 2px; border-radius: 2px;
  background: linear-gradient(90deg, transparent, #4be08a, #2dd4bf, #1e90c8, transparent); box-shadow: 0 0 14px rgba(45, 212, 191, .9);
}
.tm-stats > div { position: relative; display: flex; flex-direction: column; align-items: center; gap: .25rem; padding: 1.1rem .5rem; text-align: center; }
.tm-stats > div + div::before { content: ""; position: absolute; left: 0; top: 25%; bottom: 25%; width: 1px; background: linear-gradient(transparent, rgba(45, 212, 191, .6), transparent); }
.tm-stats strong {
  font: 850 clamp(1.5rem, 3vw, 2.1rem)/1 var(--font);
  background: linear-gradient(180deg, #f2fffd 0%, #9ff0d6 35%, #4be08a 70%, #1fb7b0 100%); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.tm-stats span { font: 600 .68rem/1.3 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }

/* la carte */
.tm-map {
  position: relative; margin: 0 0 2.5rem; padding: clamp(.5rem, 2vw, 1.25rem); border-radius: 20px; overflow: hidden;
  border: 1px solid rgba(38, 198, 218, .3);
  background:
    radial-gradient(60% 80% at 50% 120%, rgba(45, 212, 191, .22), transparent 70%),
    repeating-linear-gradient(0deg, rgba(38, 198, 218, .07) 0 1px, transparent 1px 28px),
    repeating-linear-gradient(90deg, rgba(38, 198, 218, .07) 0 1px, transparent 1px 28px),
    #0b0818;
  box-shadow: inset 0 0 80px rgba(0, 0, 0, .6), 0 30px 60px -40px rgba(45, 212, 191, .8);
}
.tm-svg { display: block; width: 100%; height: auto; overflow: hidden; }
.tm-night { fill: rgba(5, 3, 15, .58); stroke: rgba(38, 198, 218, .35); stroke-width: .4; pointer-events: none; }

.tm-dot { cursor: pointer; outline: none; }
.tm-dot circle { transition: transform .25s ease; }
.tm-halo { fill: url(#tmGlow); opacity: .55; animation: tm-pulse 2.6s ease-in-out infinite; }
.tm-ring { fill: none; stroke: #fbb03b; stroke-width: .5; opacity: .8; }
.tm-core { fill: #fff6d6; }
/* dans la zone de nuit : couleurs de lune */
.tm-dot.is-night .tm-halo { opacity: .25; animation: none; }
.tm-dot.is-night .tm-ring { stroke: #1e90c8; }
.tm-dot.is-night .tm-core { fill: #c4b5fd; }
.tm-dot:hover circle, .tm-dot:focus-visible circle, .tm-dot.is-on circle { transform: scale(1.6); }
.tm-dot.is-on .tm-ring, .tm-dot:focus-visible .tm-ring { stroke: #fff; stroke-width: .6; }
/* le zoom divise le viewBox par 4 : les points gardent leur taille */
.tm-svg.is-zoomed .tm-dot circle { transform: scale(.32); }
.tm-svg.is-zoomed .tm-dot:hover circle, .tm-svg.is-zoomed .tm-dot.is-on circle { transform: scale(.5); }
@keyframes tm-pulse { 0%, 100% { transform: scale(.7); opacity: .25; } 50% { transform: scale(1.15); opacity: .6; } }
.tm-svg.is-zoomed .tm-halo { animation: none; }
@media (prefers-reduced-motion: reduce) { .tm-halo { animation: none; } }

.tm-tip {
  position: absolute; z-index: 5; display: flex; flex-direction: column; gap: .15rem; min-width: 150px; max-width: 240px; padding: .65rem .8rem;
  border-radius: 12px; background: rgba(6, 20, 23, .95); border: 1px solid rgba(45, 212, 191, .5);
  box-shadow: 0 14px 30px -12px rgba(0, 0, 0, .9), 0 0 24px -10px rgba(45, 212, 191, .9); font-size: .82rem; color: var(--muted); pointer-events: none;
}
.tm-tip strong { color: #fff; font-size: .95rem; }
.tm-tip-head { display: flex; align-items: center; gap: .5rem; margin-bottom: .2rem; }
.tm-tip-head img { width: 32px; height: 32px; border-radius: 9px; }
.tm-reset {
  position: absolute; top: 1rem; right: 1rem; display: inline-flex; align-items: center; gap: .35rem; padding: .45rem .8rem; border-radius: 999px; cursor: pointer;
  border: 1px solid var(--border-strong); background: rgba(5, 16, 18, .85); color: var(--text); font: 600 .8rem/1 var(--font);
}
.tm-reset .icon { width: 13px; height: 13px; }
.tm-reset:hover { border-color: var(--teal); }
.tm-map figcaption { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; margin-top: .6rem; font-size: .8rem; color: var(--faint); }
.tm-key-dot, .tm-key-night { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-left: .4rem; }
.tm-key-dot { background: #fbb03b; box-shadow: 0 0 8px #fbb03b; margin-left: 0; }
.tm-key-night { border-radius: 3px; background: rgba(5, 3, 15, .8); border: 1px solid var(--border-strong); }

.tm-join { display: flex; align-items: center; gap: .5rem; color: var(--muted); }
.tm-join .icon { width: 18px; height: 18px; color: var(--teal); flex: none; }

@media (max-width: 700px) {
  .tm-map { margin-inline: -8px; border-radius: 14px; }
  .tm-hint { display: none; }
  .tm-reset { top: .5rem; right: .5rem; }
}
