/* TeamKit — page Communautés v3 (7 sept. 2026). Préfixe cm-. Même famille visuelle que /servers (sv-). */
.cm-main { padding-top: 80px; }
.cm-num { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
.cm-eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: .74rem; font-weight: 700; letter-spacing: 1.6px; text-transform: uppercase; color: var(--accent-primary); }
.cm-eyebrow::before { content: ''; width: 18px; height: 2px; background: currentColor; }
.cm-eyebrow.cm-gold { color: #ffd166; }
.cm-sec { padding: 44px 0; }
.cm-alt { background: var(--bg-secondary); border-block: 1px solid var(--border-color); }
.cm-sec h2 { font-family: var(--font-display); font-size: clamp(1.3rem, 3vw, 1.9rem); font-weight: 800; text-transform: uppercase; letter-spacing: .5px; margin: 6px 0 0; color: var(--text-primary); text-wrap: balance; }
.cm-sec-h { display: flex; justify-content: space-between; align-items: end; gap: 20px; margin-bottom: 18px; flex-wrap: wrap; }
.cm-sec-h p { color: var(--text-muted); max-width: 60ch; margin: 6px 0 0; }
.cm-note { margin: 14px 0 0; font-size: .88rem; color: var(--text-muted); }
.cm-loading, .cm-empty { grid-column: 1 / -1; color: var(--text-muted); text-align: center; padding: 30px 0; }

/* ---- Héros ---- */
.cm-hero { position: relative; overflow: hidden; padding: 48px 0 40px; border-bottom: 1px solid var(--border-color); }
.cm-hero::before { content: ''; position: absolute; inset: -40% -20% auto; height: 120%; background: radial-gradient(ellipse at 20% 30%, rgba(0,240,255,.13), transparent 55%), radial-gradient(ellipse at 85% 10%, rgba(123,44,191,.28), transparent 55%); pointer-events: none; }
.cm-hero .container { position: relative; }
.cm-hero-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 40px; align-items: center; }
.cm-hero h1 { font-family: var(--font-display); font-size: clamp(1.8rem, 4.6vw, 3rem); font-weight: 800; line-height: 1.08; text-transform: uppercase; margin: 14px 0; color: var(--text-primary); text-wrap: balance; }
.cm-lead { color: var(--text-secondary); font-size: 1.1rem; max-width: 46ch; margin: 0; line-height: 1.5; }
.cm-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }
.cm-live { background: var(--bg-card); border: 1px solid var(--border-color); border-radius: 16px; padding: 18px 20px; box-shadow: 0 30px 80px rgba(0,0,0,.45); }
.cm-live-h { display: flex; align-items: center; gap: 8px; font-size: .78rem; text-transform: uppercase; letter-spacing: 1.2px; color: var(--text-muted); margin-bottom: 12px; }
.cm-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--accent-success); animation: cmPulse 1.8s infinite; }
@keyframes cmPulse { 0% { box-shadow: 0 0 0 0 rgba(0,255,136,.55); } 70% { box-shadow: 0 0 0 9px rgba(0,255,136,0); } 100% { box-shadow: 0 0 0 0 rgba(0,255,136,0); } }
.cm-live-hero { display: flex; flex-direction: column; margin-bottom: 14px; padding-bottom: 12px; border-bottom: 1px solid var(--border-color); }
.cm-live-hero b { font-size: 2.6rem; line-height: 1; background: linear-gradient(90deg, var(--accent-primary), #7ad8ff 55%, var(--accent-secondary)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.cm-live-hero > span { font-size: .78rem; text-transform: uppercase; letter-spacing: 1px; color: var(--text-secondary); margin-top: 4px; }
.cm-live-hero small { font-size: .74rem; color: var(--text-muted); margin-top: 4px; }
.cm-live-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.cm-live-grid div { display: flex; flex-direction: column; }
.cm-live-grid b { font-size: 1.7rem; color: var(--text-primary); line-height: 1.05; }
.cm-live-grid span { font-size: .74rem; text-transform: uppercase; letter-spacing: 1px; color: var(--text-muted); }

/* ---- Podium ---- */
.cm-podium { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; align-items: end; }
.cm-pod { position: relative; display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; padding: 22px 16px 18px; background: var(--bg-card); border: 1px solid var(--border-color); border-radius: 18px; text-decoration: none; color: inherit; transition: transform .15s, border-color .15s; }
.cm-pod:hover { transform: translateY(-3px); border-color: var(--accent-primary); }
.cm-pod.is-1 { order: 2; border-color: rgba(255,209,102,.55); background: linear-gradient(180deg, rgba(255,209,102,.08), var(--bg-card)); padding-top: 30px; }
.cm-pod.is-2 { order: 1; border-color: rgba(192,192,210,.4); }
.cm-pod.is-3 { order: 3; border-color: rgba(205,127,50,.4); }
.cm-pod-rank { position: absolute; top: -14px; left: 50%; transform: translateX(-50%); font-size: 1.5rem; filter: drop-shadow(0 4px 8px rgba(0,0,0,.5)); }
.cm-pod img, .cm-pod i { width: 68px; height: 68px; border-radius: 18px; object-fit: cover; background: var(--bg-tertiary); display: grid; place-items: center; font-style: normal; font-size: 1.8rem; font-weight: 800; color: var(--accent-primary); }
.cm-pod.is-1 img, .cm-pod.is-1 i { width: 84px; height: 84px; }
.cm-pod b { font-family: var(--font-display); font-size: 1.02rem; color: var(--text-primary); }
.cm-pod .cm-pts { font-family: var(--font-mono); font-size: 1.5rem; font-weight: 800; color: #ffd166; line-height: 1; }
.cm-pod .cm-pts small { display: block; font-size: .66rem; letter-spacing: 1px; text-transform: uppercase; color: var(--text-muted); font-weight: 500; margin-top: 3px; }
.cm-pod .cm-sub { font-size: .82rem; color: var(--text-muted); }
.cm-pod .cm-badges { justify-content: center; }

/* ---- Outils ---- */
.cm-tools { display: grid; grid-template-columns: 260px 1fr auto; gap: 10px; align-items: start; margin-bottom: 18px; }
.cm-search { padding: 9px 12px; max-width: none; }
.cm-sort { padding: 9px 12px; max-width: 250px; }
.cm-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.cm-chip { background: var(--bg-secondary); border: 1px solid var(--border-color); color: var(--text-secondary); border-radius: 99px; padding: 6px 11px; font-size: .8rem; cursor: pointer; font-family: inherit; transition: all .15s; }
.cm-chip:hover { border-color: var(--accent-primary); color: var(--text-primary); }
.cm-chip.is-active { background: rgba(0,240,255,.12); border-color: var(--accent-primary); color: var(--text-primary); }
.cm-chip small { color: var(--text-muted); margin-left: 3px; }

/* ---- Cartes ---- */
.cm-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.cm-card { position: relative; display: flex; flex-direction: column; gap: 10px; padding: 18px; background: var(--bg-card); border: 1px solid var(--border-color); border-radius: 16px; transition: transform .15s, border-color .15s, box-shadow .15s; cursor: pointer; }
.cm-card:hover { transform: translateY(-3px); border-color: var(--accent-primary); box-shadow: 0 16px 40px rgba(0,0,0,.35); }
.cm-card.is-hidden { display: none; }
.cm-rank { position: absolute; top: 12px; right: 14px; font-family: var(--font-mono); font-size: .72rem; color: var(--text-muted); }
.cm-rank.is-top { font-size: 1.1rem; }
.cm-h { display: flex; align-items: center; gap: 12px; padding-right: 36px; }
.cm-h img, .cm-h i { width: 52px; height: 52px; border-radius: 14px; object-fit: cover; background: var(--bg-tertiary); display: grid; place-items: center; font-style: normal; font-size: 1.4rem; font-weight: 800; color: var(--accent-primary); flex-shrink: 0; }
.cm-h b { display: block; font-family: var(--font-display); font-size: 1.02rem; color: var(--text-primary); line-height: 1.2; }
.cm-h b a { color: inherit; text-decoration: none; }
.cm-h small { display: flex; flex-wrap: wrap; gap: 4px 10px; color: var(--text-muted); font-size: .78rem; margin-top: 3px; }
.cm-ok { color: var(--accent-success); font-weight: 700; }
.cm-rec { color: #ffd166; font-weight: 700; }
.cm-meta { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: .84rem; color: var(--text-muted); }
.cm-meta b { color: var(--text-primary); font-family: var(--font-mono); font-weight: 600; }
.cm-desc { margin: 0; font-size: .88rem; color: var(--text-secondary); line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.cm-srvs { display: flex; flex-wrap: wrap; gap: 6px; }
.cm-srv { display: inline-flex; align-items: center; gap: 6px; padding: 3px 9px; border-radius: 99px; font-size: .76rem; background: var(--bg-secondary); color: var(--text-secondary); border: 1px solid var(--border-color); }
.cm-srv::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--text-muted); }
.cm-srv.is-on::before { background: var(--accent-success); box-shadow: 0 0 6px var(--accent-success); }
.cm-badges { display: flex; flex-wrap: wrap; gap: 5px; }
.cm-badge { display: inline-block; padding: 2px 8px; border-radius: 99px; font-size: .72rem; font-weight: 700; }
.cm-tags { display: flex; flex-wrap: wrap; gap: 5px; }
.cm-tag { font-family: var(--font-mono); font-size: .66rem; letter-spacing: .5px; text-transform: uppercase; color: var(--text-muted); border: 1px dashed var(--border-color); padding: 2px 7px; border-radius: 6px; }
.cm-act { display: flex; gap: 6px; margin-top: auto; padding-top: 4px; }
.cm-btn { flex: 1; text-align: center; padding: 8px 10px; border-radius: 8px; border: 1px solid var(--border-color); background: var(--bg-secondary); color: var(--text-primary); font-family: inherit; font-weight: 600; font-size: .84rem; cursor: pointer; text-decoration: none; white-space: nowrap; }
.cm-btn:hover { border-color: var(--accent-primary); }
.cm-btn.is-primary { background: var(--accent-primary); color: #06151a; border-color: transparent; }
.cm-btn.is-discord { background: #5865F2; color: #fff; border-color: transparent; flex: 0 0 auto; }

/* ---- Comment ça marche / appel ---- */
.cm-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.cm-step { background: var(--bg-card); border: 1px solid var(--border-color); border-radius: 16px; padding: 20px; }
.cm-step .cm-n { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: rgba(0,240,255,.12); color: var(--accent-primary); font-weight: 800; margin-bottom: 10px; }
.cm-step b { display: block; color: var(--text-primary); font-size: 1rem; margin-bottom: 4px; }
.cm-step p { margin: 0; color: var(--text-muted); font-size: .88rem; line-height: 1.45; }
.cm-cta-box { display: grid; grid-template-columns: 1.2fr .8fr; gap: 18px; align-items: center; background: linear-gradient(135deg, rgba(123,44,191,.16), rgba(0,240,255,.08)); border: 1px solid rgba(0,240,255,.25); border-radius: 18px; padding: 26px; }
.cm-cta-box p { margin: 6px 0 0; color: var(--text-secondary); max-width: 52ch; }
.cm-cta-box .cm-cta { margin-top: 0; justify-content: flex-end; }

@media (max-width: 980px) { .cm-grid { grid-template-columns: repeat(2, 1fr); } .cm-hero-grid { grid-template-columns: 1fr; gap: 22px; } .cm-tools { grid-template-columns: 1fr; } .cm-sort { max-width: none; } .cm-steps { grid-template-columns: 1fr; } .cm-cta-box { grid-template-columns: 1fr; } .cm-cta-box .cm-cta { justify-content: flex-start; } }
@media (max-width: 640px) { .cm-grid { grid-template-columns: 1fr; } .cm-podium { grid-template-columns: 1fr; } .cm-pod.is-1, .cm-pod.is-2, .cm-pod.is-3 { order: initial; } .cm-live-grid b { font-size: 1.4rem; } .cm-sec { padding: 32px 0; } }
@media (prefers-reduced-motion: reduce) { .cm-dot { animation: none; } .cm-card, .cm-pod { transition: none; } }

/* ---- Place réservée avant le chargement (CLS, 14 sept. 2026) : les blocs remplis par JS ont déjà leur hauteur ---- */
.cm-skel { min-height: 232px; background: linear-gradient(90deg, var(--bg-card) 25%, var(--bg-tertiary) 50%, var(--bg-card) 75%); background-size: 400% 100%; animation: cmSkel 1.4s ease infinite; border-color: var(--border-color); }
.cm-pod.cm-skel { min-height: 236px; } .cm-pod.cm-skel.is-1 { min-height: 260px; }
@keyframes cmSkel { 0% { background-position: 100% 0; } 100% { background-position: 0 0; } }
@media (prefers-reduced-motion: reduce) { .cm-skel { animation: none; } }
.cm-chips { min-height: 34px; }
.cm-live-hero b { min-height: 2.6rem; display: block; }
