:root {
  --bg: #0b0f14;
  --surface: #131a22;
  --muted: #1f2937;
  --text: #e5e7eb;
  --subtle: #94a3b8;
  --cyan: #0ea5e9;
  --violet: #8b5cf6;
  --radius: 16px;
  --nav-h: 40px;
  /* variables déjà utilisées par la home, on les réemploie */
  --hero-cyan: var(--home-hero-cyan, #00eaff);
  --hero-violet: var(--home-hero-violet, #b500ff);
  /* versions RGB pour des dégradés propres */
  --hero-cyan-rgb: 0, 234, 255;
  --hero-violet-rgb: 181, 0, 255;
  --footer-bg: #0b0f14;
  --footer-border: rgba(255, 255, 255, 0.06);
  --footer-text: rgba(255, 255, 255, 0.82);
  --footer-dim: rgba(255, 255, 255, 0.6);
}
* {
  box-sizing: border-box;
}
html,
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: system-ui, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
}
a {
  color: inherit;
  text-decoration: none;
}

.d-flex {
  display: flex;
}
.is-liked {
  color: crimson;
}
header.top {
  position: sticky;
  top: 0;
  background: rgba(11, 15, 20, 0.7);
  backdrop-filter: saturate(160%) blur(8px);
  border-bottom: 1px solid var(--muted);
  z-index: 50;
}
nav.bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
}
.brand img {
  width: 40px;
}
.menu {
  display: flex;
  gap: 16px;
  color: var(--subtle);
}
.menu a:hover {
  color: var(--text);
}
/* ===== Navbar alignment & spacing ===== */

header.top .bar {
  display: flex;
  align-items: center; /* centre verticalement */
  justify-content: space-between;
}

/* regroupe et centre tous les éléments du bloc menu */
.menu {
  display: flex;
  align-items: center; /* centre verticalement */
  gap: 18px;
}

/* liens texte (Accueil, Articles, …) */
.menu > a:not(.btn) {
  display: inline-flex;
  align-items: center; /* centre le texte verticalement */
  height: var(--nav-h);
  padding: 0 12px;
  border-radius: 10px;
  line-height: 1; /* évite les décalages de baseline */
  color: var(--subtle);
}
.menu > a:not(.btn):hover {
  color: var(--text);
}

/* boutons (Connexion / Créer un compte / Déconnexion) */
.btn {
  display: inline-flex;
  align-items: center;
  padding: 0 14px;
  line-height: 1;
}

.btn-large {
  display: inline-flex;
  align-items: center;
  padding: 8px 14px;
  line-height: 1;
}
/* le formulaire de déconnexion doit aussi s'aligner */
.menu form {
  display: inline-flex;
  align-items: center; /* centre le bouton du form */
  height: var(--nav-h);
  margin: 0;
}
.menu form .btn {
  height: var(--nav-h);
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--surface);
  border: 1px solid var(--muted);
  padding: 10px 14px;
  border-radius: 12px;
  font-weight: 600;
}
.btn.primary {
  background: linear-gradient(
    135deg,
    rgba(14, 165, 233, 0.25),
    rgba(139, 92, 246, 0.25)
  );
  border-color: rgba(14, 165, 233, 0.35);
}
.grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 16px;
}
.col-4 {
  grid-column: span 4;
}
.col-6 {
  grid-column: span 6;
}
.col-12 {
  grid-column: span 12;
}
@media (max-width: 900px) {
  .col-4,
  .col-6 {
    grid-column: span 6;
  }
}
@media (max-width: 640px) {
  .grid {
    grid-template-columns: repeat(6, 1fr);
  }
  .col-4,
  .col-6,
  .col-12 {
    grid-column: span 6;
  }
}
.card {
  background: var(--surface);
  border: 1px solid var(--muted);
  border-radius: 16px;
  overflow: hidden;
}
.cover {
  height: 170px;
  object-fit: cover;
  width: 100%;
}
.article-show img.cover {
  height: 400px;
  border-radius: 20px;
}
.p-4 {
  padding: 16px;
}
.mt-2 {
  margin-top: 8px;
}
.mt-3 {
  margin-top: 30px;
}
.mt-4 {
  margin-top: 16px;
}
.mb-4 {
  margin-bottom: 16px;
}
footer {
  border-top: 1px solid var(--muted);
  padding: 24px 0;
  color: var(--subtle);
  margin-top: 32px;
}
form .row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
input,
textarea {
  width: 100%;
  padding: 10px;
  border-radius: 10px;
  border: 1px solid var(--muted);
  background: #0f1620;
  color: var(--text);
}
label {
  display: block;
  margin: 8px 0 6px;
  color: var(--subtle);
}
.flash {
  background: #0f2a38;
  border: 1px solid rgba(14, 165, 233, 0.35);
  padding: 10px 12px;
  border-radius: 12px;
  margin: 10px 0;
}

.flash-success {
  color: #a7f3d0;
  border-color: rgba(16, 185, 129, 0.35);
  background: rgba(16, 185, 129, 0.1);
}

.flash-danger {
  color: #fecaca;
  border-color: rgba(239, 68, 68, 0.35);
  background: rgba(239, 68, 68, 0.08);
}

.flash-info {
  background: #0f2a38;
  border: 1px solid rgba(14, 165, 233, 0.35);
}

table {
  width: 100%;
  border-collapse: collapse;
}
th,
td {
  padding: 10px;
  border-bottom: 1px solid var(--muted);
}
.two {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 16px;
}
@media (max-width: 900px) {
  .two {
    grid-template-columns: 1fr;
  }
}
.burger {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--muted);
  border-radius: 12px;
  background: var(--surface);
  color: var(--text);
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.burger svg {
  width: 22px;
  height: 22px;
}
@media (max-width: 900px) {
  .menu {
    display: none;
  }
  .burger {
    display: inline-flex;
  }
}

/* Overlay plein écran, scrollable si besoin */
.mobile-menu {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100dvh; /* couvre vraiment l’écran mobile */
  min-height: 100vh;
  overflow-y: auto; /* permet de scroller si la liste dépasse */
  overscroll-behavior: contain;
  padding: max(24px, env(safe-area-inset-top)) 16px
    max(24px, env(safe-area-inset-bottom));
  z-index: 2147483647;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 22px;
  background: radial-gradient(
      1200px 600px at 80% -10%,
      rgba(14, 165, 233, 0.15),
      transparent
    ),
    radial-gradient(
      800px 400px at 10% -10%,
      rgba(139, 92, 246, 0.5),
      transparent
    ),
    rgba(11, 15, 20, 0.99);
  opacity: 0;
  transform: scale(1.02);
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
}
.mobile-menu.open {
  opacity: 1;
  transform: scale(1);
  pointer-events: auto;
}

.mobile-close {
  position: absolute;
  top: max(14px, env(safe-area-inset-top));
  right: 14px;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid var(--muted);
  background: var(--surface);
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.mobile-list {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  text-align: center;
}
.mobile-list a:not(.btn) {
  font-size: clamp(18px, 3.5vw, 26px);
  color: var(--text);
  padding: 10px 14px;
  border-radius: 12px;
}

.mobile-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 6px;
  width: min(340px, 84vw);
}
.mobile-actions .btn {
  width: 100%;
  justify-content: center;
  height: var(--nav-h);
}

/* Bloque le scroll derrière quand le menu est ouvert */
body.menu-open {
  overflow: hidden;
  height: 100vh;
}
/* ===== Brand dans l’overlay mobile ===== */
.mobile-brand {
  position: absolute;
  top: calc(max(6px, env(safe-area-inset-top)) + 2px);
  left: 22%;
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 10px;
  text-decoration: none;
}

.mobile-logo {
  width: 40px;
}

.mobile-title {
  font-weight: 700;
  letter-spacing: 0.3px;
  color: var(--text);
}

/* petit ajustement pour ne pas gêner le bouton X en haut à droite */
.mobile-close {
  z-index: 1;
}
/* ===== HERO (full-bleed, gradient, subtle grid) ===== */
.full-bleed {
  width: 100vw;
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
}
.hero {
  position: relative;
  padding: 96px 0 64px;
  border-bottom: 1px solid var(--muted);
  background: radial-gradient(
      1200px 600px at 80% -10%,
      rgba(14, 165, 233, 0.22),
      transparent
    ),
    radial-gradient(
      800px 400px at 10% -10%,
      rgba(139, 92, 246, 0.18),
      transparent
    ),
    linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0));
  overflow: hidden;
}
.hero .stars {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(
    rgba(255, 255, 255, 0.14) 1px,
    transparent 1px
  );
  background-size: 3px 3px;
  opacity: 0.12;
  pointer-events: none;
}
.hero h1 {
  font-size: clamp(28px, 5vw, 56px);
  line-height: 1.08;
  margin: 0 0 14px;
  letter-spacing: 0.2px;
}
.hero .lead {
  color: var(--subtle);
  max-width: 62ch;
  margin: 0 0 22px;
}
.cta-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.badge {
  font-size: 12px;
  color: var(--subtle);
  border: 1px solid var(--muted);
  padding: 6px 10px;
  border-radius: 999px;
}
.badges {
  display: flex;
  gap: 12px;
  margin-top: 18px;
  flex-wrap: wrap;
}
.btn svg {
  flex: 0 0 auto;
}
/* ===== HERO brand (logo + title) ===== */
.hero-brand {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 8px;
}
.hero-logo {
  width: 150px;
}
@media (max-width: 640px) {
  .hero-logo {
    width: 56px;
    height: 56px;
  }
}

/* ===== HERO watermark glow (right, non-centered) ===== */
.hero {
  position: relative;
  z-index: 0;
}
.hero .container {
  position: relative;
  z-index: 2;
}

/* Ambient glow behind the watermark */
.hero::before {
  content: "";
  position: absolute;
  right: clamp(24px, 8vw, 160px);
  top: -67px;
  width: min(60vw, 720px);
  height: min(60vw, 720px);
  background: radial-gradient(
      closest-side at 70% 30%,
      rgba(14, 165, 233, 0.18),
      transparent 60%
    ),
    radial-gradient(
      closest-side at 35% 75%,
      rgba(139, 92, 246, 0.16),
      transparent 65%
    );
  filter: blur(28px);
  opacity: 0.45;
  pointer-events: none;
  z-index: 0;
  animation: neonPulseGlow 7s ease-in-out infinite;
  will-change: opacity, filter;
}

/* Logo watermark with drop-shadow glow */
.hero::after {
  content: "";
  position: absolute;
  right: clamp(0px, 6vw, 120px);
  top: -52px;
  width: min(48vw, 620px);
  aspect-ratio: 1 / 1;
  background-image: url("/assets/img/logo-mindplex.png");
  background-repeat: no-repeat;
  background-size: contain;
  background-position: center;
  opacity: 0.06;
  filter: blur(1.6px) saturate(140%)
    drop-shadow(0 0 28px rgba(14, 165, 233, 0.35))
    drop-shadow(0 0 52px rgba(139, 92, 246, 0.25));
  transform: rotate(-8deg);
  pointer-events: none;
  z-index: 1;
  animation: neonPulseLogo 6.5s ease-in-out infinite;
  will-change: opacity, filter;
}

/* ===== HERO Neon Pulse (glow + watermark) ===== */
@keyframes neonPulseGlow {
  0% {
    opacity: 0.32;
    filter: blur(26px) saturate(110%);
  }
  50% {
    opacity: 0.55;
    filter: blur(34px) saturate(140%);
  }
  100% {
    opacity: 0.4;
    filter: blur(28px) saturate(125%);
  }
}
@keyframes neonPulseLogo {
  0% {
    opacity: 0.05;
    filter: blur(1.6px) saturate(130%)
      drop-shadow(0 0 22px rgba(14, 165, 233, 0.28))
      drop-shadow(0 0 38px rgba(139, 92, 246, 0.2));
  }
  50% {
    opacity: 0.09;
    filter: blur(1.2px) saturate(165%)
      drop-shadow(0 0 34px rgba(14, 165, 233, 0.48))
      drop-shadow(0 0 70px rgba(139, 92, 246, 0.36));
  }
  100% {
    opacity: 0.06;
    filter: blur(1.5px) saturate(140%)
      drop-shadow(0 0 28px rgba(14, 165, 233, 0.35))
      drop-shadow(0 0 52px rgba(139, 92, 246, 0.25));
  }
}

/* ===== HERO particles (glowing dots) ===== */
.hero {
  position: relative;
  z-index: 0;
}
.hero .container {
  position: relative;
  z-index: 3;
}
.hero::before {
  z-index: 0;
}
.hero::after {
  z-index: 1;
}
.hero .particles {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 2; /* above glow/watermark, below content */
  pointer-events: none; /* clicks go through */
  display: block;
}
/* ===== HERO moving smoke (canvas) ===== */
.hero {
  position: relative;
  z-index: 0;
}
.hero .container {
  position: relative;
  z-index: 4;
}
.hero .smoke {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 2; /* below particles, above glow/watermark */
  pointer-events: none;
  display: block;
  mix-blend-mode: screen; /* gentle brightening for neon effect */
}

/* Profile avatar util */
img.avatar {
  width: 72px;
  height: 72px;
  object-fit: cover;
  border-radius: 16px;
  border: 1px solid var(--muted);
  background: #0b0f14;
}

@media (max-width: 1024px) {
  .hero::before {
    width: 520px;
    height: 520px;
    opacity: 0.35;
    right: 64px;
    top: -20px;
  }
  .hero::after {
    width: 644px;
    opacity: 0.05;
    transform: rotate(-6deg) translateY(10px);
    right: 0;
  }
}
@media (max-width: 720px) {
  .hero::before,
  .hero::after,
  .hero .particles,
  .hero .smoke {
    display: none;
  } /* keep mobile clean */
}
@media (prefers-reduced-motion: reduce) {
  .hero::before,
  .hero::after {
    animation: none;
  }
  .hero .smoke,
  .hero .particles {
    display: none;
  }
}

/* ===== User menu (desktop) ===== */
.usernav {
  position: relative;
  margin-left: 12px;
}
.userbtn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: var(--nav-h);
  padding: 0 10px;
  border-radius: 12px;
  background: var(--surface);
  border: 1px solid var(--muted);
  cursor: pointer;
}
.userbtn .avatar {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  object-fit: cover;
  background: #0b0f14;
  border: 1px solid var(--muted);
}
.userbtn .pseudo {
  display: none;
  opacity: 0.85;
}
@media (min-width: 1100px) {
  .userbtn .pseudo {
    display: inline;
  }
}
.userbtn .caret {
  width: 12px;
  height: 12px;
  transition: transform 0.2s ease;
  opacity: 0.8;
}
.usernav.open .userbtn .caret {
  transform: rotate(180deg);
}

.userdropdown {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  min-width: 220px;
  background: rgba(11, 15, 20, 0.98);
  border: 1px solid var(--muted);
  border-radius: 14px;
  padding: 8px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
  display: none;
  z-index: 1000;
}
.usernav.open .userdropdown {
  display: block;
}
.userdropdown a,
.userdropdown button {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 10px 12px;
  border-radius: 10px;
  text-align: left;
  color: var(--text);
  background: none;
  border: 0;
  cursor: pointer;
}
.userdropdown a:hover,
.userdropdown button:hover {
  background: rgba(148, 163, 184, 0.08);
}
.userdropdown hr {
  border: 0;
  border-top: 1px solid rgba(148, 163, 184, 0.15);
  margin: 6px 0;
}

/* Mobile overlay: user block */
.mobile-user {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 14px;
  width: min(360px, 90vw);
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid var(--muted);
}
.mobile-avatar {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  object-fit: cover;
  border: 1px solid var(--muted);
  background: #0b0f14;
}
.mobile-user .muted {
  color: #94a3b8;
  font-size: 0.9rem;
}
@media (max-width: 900px) {
  .usernav {
    display: none;
  }
} /* le desktop usermenu est masqué en mobile */

/* ----------------- ADMIN --------------------- */
/* ===== Admin dashboard cards ===== */
.admin-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}
.admin-card {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 16px;
  border-radius: 16px;
  background: linear-gradient(
    180deg,
    rgba(148, 163, 184, 0.06),
    rgba(148, 163, 184, 0.02)
  );
  border: 1px solid rgba(148, 163, 184, 0.18);
  text-decoration: none;
  color: var(--text);
  transition: transform 0.15s ease, box-shadow 0.15s ease,
    border-color 0.15s ease;
}
.admin-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  border-color: rgba(148, 163, 184, 0.28);
}
.admin-card .icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(148, 163, 184, 0.18);
}
.admin-card .content strong {
  display: block;
  font-size: 1.05rem;
}
.admin-card .kpi {
  display: block;
  margin-top: 4px;
  color: #94a3b8;
  font-size: 0.95rem;
}
.quick .btn {
  margin-right: 8px;
}

/* Drag & drop cover */
.drop {
  border: 1px dashed rgba(148, 163, 184, 0.35);
  border-radius: 14px;
  padding: 24px;
  text-align: center;
  background: rgba(148, 163, 184, 0.06);
  cursor: pointer;
}
.drop.over {
  background: rgba(148, 163, 184, 0.12);
}
.drop input[type="file"] {
  display: none;
}

/* Tag chips & article body */
.chip {
  display: inline-block;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.25);
  color: #cbd5e1;
  margin-right: 0.35rem;
  text-decoration: none;
}
.article-content p {
  line-height: 1.7;
}

/* ========= Admin Articles layout ========= */
.page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 32px 0 32px;
}

.page-header h1 {
  margin: 0;
}
.btn.ghost {
  background: transparent;
  border: 1px solid rgba(148, 163, 184, 0.25);
}
.btn.pill {
  border-radius: 999px;
  padding: 0.55rem 0.9rem;
}

.card.filters {
  display: grid;
  gap: 16px;
  align-items: end;
  grid-template-columns: 1fr 220px auto;
  padding: 16px;
  border-radius: 16px;
  background: rgba(148, 163, 184, 0.06);
  border: 1px solid rgba(148, 163, 184, 0.15);
}
.card.filters .field label {
  display: block;
  color: #94a3b8;
  font-size: 0.9rem;
  margin-bottom: 6px;
}
.card.filters .actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
}

.muted {
  color: #94a3b8;
}
.row {
  display: flex;
  align-items: center;
}
.row.gap-8 {
  gap: 8px;
}
.truncate {
  max-width: 520px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.link {
  color: #cbd5e1;
  text-decoration: none;
}
.link:hover {
  text-decoration: underline;
}

/* Table */
.table-list {
  width: 100%;
  border-collapse: collapse;
}
.table-list th,
.table-list td {
  padding: 12px 14px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.12);
}
.table-list tbody tr:hover {
  background: rgba(148, 163, 184, 0.04);
}

/* Badges statut */
.badge {
  display: inline-block;
  padding: 0.18rem 0.55rem;
  border-radius: 999px;
  font-size: 0.78rem;
  border: 1px solid rgba(148, 163, 184, 0.25);
}
.badge.published {
  color: #a7f3d0;
  border-color: rgba(16, 185, 129, 0.35);
  background: rgba(16, 185, 129, 0.09);
}
.badge.draft {
  color: #fecaca;
  border-color: rgba(239, 68, 68, 0.35);
  background: rgba(239, 68, 68, 0.08);
}

/* Buttons variants */
.btn.danger {
  border: 1px solid rgba(239, 68, 68, 0.35);
  background: rgba(239, 68, 68, 0.08);
}
.btn.success {
  border-color: rgba(16, 185, 129, 0.35);
  background: rgba(16, 185, 129, 0.08);
}
.btn.success:hover {
  background: rgba(16, 185, 129, 0.15);
}
.btn.warning {
  border-color: rgba(234, 179, 8, 0.35);
  background: rgba(234, 179, 8, 0.08);
}
.btn.warning:hover {
  background: rgba(234, 179, 8, 0.15);
}
.btn.danger:hover {
  background: rgba(239, 68, 68, 0.15);
}

@media (max-width: 900px) {
  .card.filters {
    grid-template-columns: 1fr;
  }
  .truncate {
    max-width: unset;
    white-space: normal;
  }
}
/* ======= Team detail ======= */
.page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 10px 0 18px;
}
.btn.ghost {
  background: transparent;
  border: 1px solid rgba(148, 163, 184, 0.25);
}
.btn.pill {
  border-radius: 999px;
  padding: 0.55rem 0.9rem;
}

.team-hero {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  height: 280px;
  margin-bottom: 18px;
  background: #0b1220;
}
.team-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--cover, none);
  background-size: cover;
  background-position: center;
  filter: saturate(1.1) contrast(1.05) brightness(0.9);
  transform: scale(1.02);
}
.team-hero__overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(
      1200px 300px at 10% 0%,
      rgba(59, 130, 246, 0.18),
      transparent 60%
    ),
    radial-gradient(
      1000px 260px at 90% 10%,
      rgba(14, 165, 233, 0.14),
      transparent 60%
    ),
    linear-gradient(
      180deg,
      rgba(2, 6, 23, 0) 0%,
      rgba(2, 6, 23, 0.75) 65%,
      rgba(2, 6, 23, 0.95) 100%
    );
}
.team-hero__content {
  position: absolute;
  left: 22px;
  bottom: 22px;
  right: 22px;
}
.team-hero__title {
  margin: 8px 0 0;
  font-size: 2.1rem;
  letter-spacing: 0.2px;
}
.team-hero__subtitle {
  margin-top: 6px;
  color: #94a3b8;
  max-width: 780px;
}
.pill {
  display: inline-block;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  font-size: 0.82rem;
  border: 1px solid rgba(148, 163, 184, 0.28);
  background: rgba(148, 163, 184, 0.07);
  color: #cbd5e1;
}
.game-pill {
  backdrop-filter: blur(4px);
}

.team-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 18px;
}

.cover_icon {
  max-width: 32px;
  height: auto;
  margin-top: 16px;
}

.card {
  background: rgba(148, 163, 184, 0.06);
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: 16px;
}
.p-4 {
  padding: 16px;
}
.mt-3 {
  margin-top: 30px;
}

.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}
.section-head h3 {
  margin: 0;
}

/* Roster */
.roster {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.player-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px;
  border-radius: 12px;
  transition: background 0.2s ease;
}
.player-card:hover {
  background: rgba(148, 163, 184, 0.06);
}
.avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.25);
  display: grid;
  place-items: center;
}
.avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.avatar-initial span {
  color: #cbd5e1;
  font-weight: 600;
}
.player-infos .player-name {
  font-weight: 600;
}
.player-infos .player-role {
  color: #94a3b8;
  font-size: 0.84rem;
}

/* Timeline */
.timeline {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.timeline-item {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}
.timeline-dot {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(250, 204, 21, 0.12);
  border: 1px solid rgba(250, 204, 21, 0.35);
}
.timeline-body {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.timeline-title {
  font-weight: 600;
}
.timeline-meta {
  color: #94a3b8;
  font-size: 0.85rem;
}

/* Matches table */
.matches-table {
  width: 100%;
  border-collapse: collapse;
}
.matches-table th,
.matches-table td {
  padding: 12px 10px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.12);
}
.matches-table tbody tr:hover {
  background: rgba(148, 163, 184, 0.04);
}
.badge {
  display: inline-block;
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  font-size: 0.78rem;
  border: 1px solid rgba(148, 163, 184, 0.25);
}
.badge.success {
  color: #a7f3d0;
  border-color: rgba(16, 185, 129, 0.35);
  background: rgba(16, 185, 129, 0.1);
}
.badge.danger {
  color: #fecaca;
  border-color: rgba(239, 68, 68, 0.35);
  background: rgba(239, 68, 68, 0.08);
}

.badge.warn {
  color: #fde68a;
  border-color: rgba(234, 179, 8, 0.35);
  background: rgba(234, 179, 8, 0.1);
}
.muted {
  color: #94a3b8;
}

/* Responsive */
@media (max-width: 1024px) {
  .team-grid {
    grid-template-columns: 1fr;
  }
  .team-hero {
    height: 240px;
  }
}
@media (max-width: 560px) {
  .team-hero {
    height: 210px;
  }
  .team-hero__title {
    font-size: 1.7rem;
  }
  .pr-l {
    padding: 0 8px;
  }
}
/* ======= Player profile ======= */
.player-hero {
  display: flex;
  gap: 18px;
  align-items: center;
  padding: 16px;
  border-radius: 16px;
  background: rgba(148, 163, 184, 0.06);
  border: 1px solid rgba(148, 163, 184, 0.14);
}
.player-hero__avatar {
  width: 86px;
  height: 86px;
  border-radius: 50%;
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.25);
  display: grid;
  place-items: center;
  background: #0b1220;
}
.player-hero__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.player-hero__initial {
  color: #cbd5e1;
  font-weight: 700;
  font-size: 2rem;
}
.player-hero__meta h2 {
  margin: 0 0 6px;
}
.player-hero .links {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 8px;
}
.grid-ids {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
@media (max-width: 720px) {
  .player-hero {
    flex-direction: column;
    align-items: flex-start;
  }
  .grid-ids {
    grid-template-columns: 1fr;
  }
  .pr-l {
    padding: 0 8px;
  }
  .mr-l {
    margin: 0 16px;
  }
}
.link-card {
  text-decoration: none;
  color: inherit;
}
.link-card:hover {
  background: rgba(148, 163, 184, 0.1);
}
/* ======= Player teams cards ======= */
.teams-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
@media (max-width: 980px) {
  .teams-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 560px) {
  .teams-grid {
    grid-template-columns: 1fr;
  }
}

.team-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 14px;
  background: rgba(148, 163, 184, 0.06);
  border: 1px solid rgba(148, 163, 184, 0.14);
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}
.team-card:hover {
  transform: translateY(-2px);
  border-color: rgba(148, 163, 184, 0.25);
  background: rgba(148, 163, 184, 0.08);
}

.team-card__cover {
  width: 100%;
  height: 120px;
  background-size: cover;
  background-position: center;
  filter: saturate(1.05) contrast(1.02);
}
.team-card__body {
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.team-card__title {
  margin: 0;
  font-size: 1.05rem;
}

.row-sb {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.badge.role {
  font-size: 0.72rem;
  border: 1px solid rgba(148, 163, 184, 0.28);
  padding: 0.14rem 0.45rem;
  border-radius: 999px;
}
/* ====== HERO – PAGES (pas la home) ====== */
.hero--page {
  --hero-page-height: clamp(140px, 22vw, 260px);
  --hero-grid-gap: 3px;
  --hero-grid-color: rgba(148, 163, 184, 0.12); /* grille douce */
  --hero-glow-1: rgba(59, 130, 246, 0.16); /* bleu */
  --hero-glow-2: rgba(14, 165, 233, 0.12); /* cyan */
  /* halos du contour */
  --neon-a: rgba(167, 139, 250, 0.3); /* violet #a78bfa */
  --neon-b: rgba(34, 211, 238, 0.26); /* cyan   #22d3ee */

  /* lueur du titre */
  --neon-text-a: rgba(167, 139, 250, 0.75); /* violet */
  --neon-text-b: rgba(34, 211, 238, 0.6); /* cyan   */
  --wm: url("/assets/img/logo-mindplex.png"); /* fallback si non passé inline */

  position: relative;
  min-height: var(--hero-page-height);
  border-radius: var(--hero-page-radius);
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.14);
  background: #0b1220; /* base plus nette que la home */
}

.hero--page .hero__bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  /* dégradés + léger assombrissement bas */
  background: radial-gradient(
      900px 260px at 12% 5%,
      var(--hero-glow-1),
      transparent 55%
    ),
    radial-gradient(900px 240px at 88% 10%, var(--hero-glow-2), transparent 55%),
    linear-gradient(
      180deg,
      rgba(2, 6, 23, 0) 0%,
      rgba(2, 6, 23, 0.78) 70%,
      rgba(2, 6, 23, 0.95) 100%
    );
}

/* grille (indépendante de la home) */
.hero--page .hero__bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(
      to right,
      var(--hero-grid-color) 1px,
      transparent 1px
    ),
    linear-gradient(to bottom, var(--hero-grid-color) 1px, transparent 1px);
  background-size: var(--hero-grid-gap) var(--hero-grid-gap);
  opacity: 0.18;
}

/* filigrane repositionné plus haut à droite */
.hero--page .hero__bg::after {
  content: "";
  position: absolute;
  right: 180px;
  top: -1px;
  width: 1600px;
  height: 224%;
  background: var(--wm) no-repeat right top / contain;
  opacity: 0.16;
  transform: rotate(-20deg);
  filter: saturate(1.1) contrast(1.05);
}

.hero--page .hero__wrap {
  position: relative;
  width: 1100px;
  margin: 0 auto;
  padding: 0 18px;
  min-height: var(--hero-page-height);
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.hero--page .hero__title {
  margin: 8px 0 0;
  font-size: clamp(1.7rem, 3vw, 2.2rem);
  letter-spacing: 0.2px;
}
.hero--page .hero__subtitle {
  margin-top: 6px;
  color: #94a3b8;
  max-width: 900px;
}
/* ====== HERO – PAGES (fumée) ====== */
/* z-index: bg (0) < smoke (1) < content (2) */
.hero--page .hero__bg {
  z-index: 0;
}
.hero--page .hero__smoke {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
}

/* Deux nappes de "brouillard" en radial-gradients, floutées.
   Mix-blend screen pour un rendu vaporeux, très léger. */
.hero--page .fog {
  position: absolute;
  left: -20%;
  right: -20%;
  top: -30%;
  bottom: -10%;
  background: radial-gradient(
      60% 55% at 18% 45%,
      rgba(255, 255, 255, 0.06),
      transparent 60%
    ),
    radial-gradient(
      50% 55% at 72% 30%,
      rgba(186, 219, 255, 0.05),
      transparent 60%
    ),
    radial-gradient(
      50% 50% at 60% 80%,
      rgba(255, 255, 255, 0.04),
      transparent 58%
    );
  background-repeat: no-repeat;
  background-size: 140% 140%, 130% 130%, 160% 160%;
  filter: blur(22px) saturate(1.05);
  mix-blend-mode: screen;
  opacity: 0.35;
  animation: fogShift 85s linear infinite;
  transform: translate3d(0, 0, 0);
}
.hero--page .fog-b {
  opacity: 0.28;
  filter: blur(28px) saturate(1.02);
  transform: scale(1.18);
  animation-duration: 120s;
  animation-direction: reverse;
}

/* mouvement lent (position des couches + légère dérive) */
@keyframes fogShift {
  0% {
    background-position: 0% 20%, 60% 30%, 100% 80%;
    transform: translateX(-2%) translateY(0);
  }
  50% {
    background-position: 50% 15%, 40% 40%, 30% 70%;
    transform: translateX(1%) translateY(-1%);
  }
  100% {
    background-position: 100% 10%, 20% 30%, 0% 65%;
    transform: translateX(2%) translateY(-2%);
  }
}
/* ====== HERO – PAGES : Neon + Particles ====== */
.hero--page {
  /* couleurs néon personnalisables */
  --neon-a: rgba(59, 130, 246, 0.28); /* bleu */
  --neon-b: rgba(14, 165, 233, 0.24); /* cyan */
  --part: rgba(186, 219, 255, 0.95); /* particules */
}

/* Liseré / halo néon sur le pourtour (indépendant de la home) */
.hero--page::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  pointer-events: none;
  box-shadow: 0 0 22px var(--neon-a), 0 0 60px var(--neon-b) inset;
  opacity: 0.75;
}

/* Effet néon qui pulse légèrement sur le titre */
.hero--page .hero__title {
  text-shadow: 0 0 0.45rem var(--neon-text-a), 0 0 1.1rem var(--neon-text-b),
    0 0 2.1rem var(--neon-text-b);
}
@keyframes neonPulse {
  0%,
  100% {
    text-shadow: 0 0 0.25rem var(--neon-text-a), 0 0 0.85rem var(--neon-text-b),
      0 0 1.6rem var(--neon-text-b);
  }
  50% {
    text-shadow: 0 0 0.55rem var(--neon-text-a), 0 0 1.4rem var(--neon-text-b),
      0 0 2.6rem var(--neon-text-b);
  }
}

/* Accessibilité : réductions d’animations */
@media (prefers-reduced-motion: reduce) {
  .hero--page .hero__title {
    animation: none;
  }
}

/* Respect de l’accessibilité / perf */
@media (prefers-reduced-motion: reduce) {
  .hero--page .fog {
    animation: none;
  }
}
@media (max-width: 720px) {
  .hero--page {
    --hero-page-height: 150px;
  }
  .hero--page .hero__bg::after {
    right: -30px;
    top: -60px;
    width: 75vw;
  }
}
@media (max-width: 950px) {
  .hero--page {
    --hero-page-height: 150px;
  }
  .hero--page .hero__bg::after {
    right: -30px;
    top: -60px;
    width: 75vw;
  }
}
/* ======= Partners ======= */
.partners-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.partner-card {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 18px;
  align-items: center;
  padding: 16px;
  border-radius: 16px;
  background: rgba(148, 163, 184, 0.06);
  border: 1px solid rgba(148, 163, 184, 0.14);
}

.partner-logo {
  width: 100%;
  height: 140px;
  border-radius: 12px;
  overflow: hidden;
  background: rgba(148, 163, 184, 0.06);
  border: 1px solid rgba(148, 163, 184, 0.14);
  display: grid;
  place-items: center;
}
.partner-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.partner-initial {
  font-size: 2rem;
  font-weight: 700;
  color: #cbd5e1;
}

.partner-body {
  min-width: 0;
}
.partner-title {
  margin: 0 0 6px;
  font-size: 1.25rem;
}
.partner-desc {
  color: #cbd5e1;
  line-height: 1.65;
}
.partner-actions {
  margin-top: 10px;
}

@media (max-width: 820px) {
  .partner-card {
    grid-template-columns: 1fr;
  }
  .partner-logo {
    height: 120px;
  }
}
/* Admin Partners */
.partner-thumb {
  width: 110px;
  height: 70px;
  border-radius: 10px;
  overflow: hidden;
  background: rgba(148, 163, 184, 0.06);
  border: 1px solid rgba(148, 163, 184, 0.14);
  display: grid;
  place-items: center;
  padding: 0 8px;
}
.partner-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.partner-thumb__placeholder {
  color: #94a3b8;
  font-size: 1.2rem;
}
/* Meilleur alignement vertical dans la table */
.table-list td {
  vertical-align: middle;
}

/* Groupe d'actions : centré verticalement et propre */
.actions-cell {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* (optionnel) neutraliser de vieux styles inline */
.actions-cell form {
  margin: 0;
}
/* Head & toolbar */
.page-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin: 0 0 1rem 0;
}
.toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: flex-end;
  margin-bottom: 1rem;
  padding: 1rem;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.03);
}
.toolbar__left {
  flex: 1 1 260px;
  min-width: 220px;
}
.toolbar__right {
  display: flex;
  gap: 0.6rem;
  align-items: flex-end;
  flex-wrap: wrap;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  width: 100%;
}
.field--inline {
  min-width: 160px;
  width: auto;
}
.field__label {
  font-size: 0.8rem;
  opacity: 0.7;
}

/* Table-grid responsive */
.table-grid {
  display: block;
}
.tg-header {
  display: none;
}

.tg-row {
  display: grid;
  gap: 0.7rem 1rem;
  grid-template-columns: 1fr auto;
  padding: 1rem;
  margin-bottom: 0.8rem;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.03);
}
.tg-cell[data-th]::before {
  content: attr(data-th);
  display: block;
  font-size: 0.75rem;
  opacity: 0.6;
  margin-bottom: 0.2rem;
}
.tg-cell {
  text-align: center;
}
.tg-actions {
  display: flex;
  gap: 0.5rem;
  justify-content: flex-end;
  grid-column: 1 / -1;
}
.tg-num {
  font-variant-numeric: tabular-nums;
}

/* Desktop layout */
@media (min-width: 980px) {
  .tg-header {
    display: grid;
    align-items: center;
    grid-template-columns: 3fr 120px 160px 240px 80px 80px 140px 170px;
    gap: 1rem;
    padding: 0.75rem 1rem;
    margin-bottom: 0.5rem;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.04);
    font-weight: 600;
    opacity: 0.85;
  }
  .tg-row {
    grid-template-columns: 3fr 120px 160px 240px 80px 80px 140px 170px;
    align-items: center;
    padding: 0.9rem 1rem;
  }
  .tg-cell[data-th]::before {
    content: none;
  }
  .tg-actions {
    grid-column: auto;
    justify-content: flex-start;
  }
}

/* Chips / status / buttons */
.chips {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
}
.chip {
  padding: 0.25rem 0.55rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  font-size: 0.8rem;
}
.chip--muted {
  opacity: 0.5;
}

.status-pill {
  padding: 0.25rem 0.55rem;
  border-radius: 999px;
  font-size: 0.8rem;
  background: rgba(255, 255, 255, 0.06);
}
.status-pill--ok {
  background: rgba(0, 200, 140, 0.12);
  color: #a9f5df;
}
.status-pill--muted {
  background: rgba(255, 255, 255, 0.06);
  opacity: 0.8;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  border-radius: 10px;
  padding: 0.55rem 0.9rem;
  background: rgba(255, 255, 255, 0.08);
}

.btn--primary {
  background: linear-gradient(135deg, #2754ff66, #06c2e466);
}
.btn--ghost {
  background: transparent;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.14);
}
.btn--danger {
  background: rgba(255, 55, 75, 0.18);
}
.btn--sm {
  padding: 0.35rem 0.65rem;
  font-size: 0.92rem;
}

.title-link {
  text-decoration: none;
}
.inline {
  display: inline;
}
.empty {
  padding: 2rem;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.03);
  text-align: center;
  opacity: 0.85;
}
/* Aligner les en-têtes sur le contenu (desktop) */
@media (min-width: 980px) {
  /* On passe les cellules header/rows en “flex” pour pouvoir centrer proprement */
  .tg-header .tg-cell,
  .tg-row .tg-cell {
    display: flex;
    align-items: center;
  }

  /* Colonnes alignées à gauche (Titre, Auteur, Tags) */
  .tg-header .tg-cell:nth-child(1),
  .tg-row   .tg-cell:nth-child(1),   /* Titre */
  .tg-header .tg-cell:nth-child(3),
  .tg-row   .tg-cell:nth-child(3),   /* Auteur */
  .tg-header .tg-cell:nth-child(4),
  .tg-row   .tg-cell:nth-child(4) {
    /* Tags  */
    justify-content: flex-start;
    text-align: left;
  }

  /* Colonnes centrées (Statut, Likes, Coms, Créé, Actions) */
  .tg-header .tg-cell:nth-child(2),
  .tg-row   .tg-cell:nth-child(2),   /* Statut */
  .tg-header .tg-cell:nth-child(5),
  .tg-row   .tg-cell:nth-child(5),   /* Likes  */
  .tg-header .tg-cell:nth-child(6),
  .tg-row   .tg-cell:nth-child(6),   /* Coms   */
  .tg-header .tg-cell:nth-child(7),
  .tg-row   .tg-cell:nth-child(7),   /* Créé   */
  .tg-header .tg-cell:nth-child(8),
  .tg-row   .tg-cell:nth-child(8) {
    /* Actions */
    justify-content: center;
    text-align: center;
  }
}
/* ===== Admin Table (commun) ===== */
.admin-table {
  margin-top: 12px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.02);
  overflow: hidden;
}

/* Header */
.admin-table__head {
  display: grid;
  grid-template-columns: 3fr 140px 180px 160px 170px; /* Titre | Statut | Auteur | Créé | Actions */
  gap: 1rem;
  padding: 0.85rem 1rem;
  background: rgba(255, 255, 255, 0.03);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  font-weight: 600;
  color: rgba(255, 255, 255, 0.85);
}

/* Rows */
.admin-table__row {
  display: grid;
  grid-template-columns: 3fr 140px 180px 160px 170px;
  gap: 1rem;
  padding: 0.95rem 1rem;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.admin-table__row:last-child {
  border-bottom: 0;
}

.admin-table__cell {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  min-width: 0;
}
.admin-table__cell--center {
  justify-content: center;
}
.admin-table__cell--right {
  justify-content: flex-end;
}

/* Titre cliquable */
.admin-title-link {
  color: #fff;
  text-decoration: none;
}
.admin-title-link:hover {
  text-decoration: underline;
}

/* Pills / chips */
.status-pill {
  padding: 0.22rem 0.55rem;
  border-radius: 999px;
  font-size: 0.78rem;
  background: rgba(255, 255, 255, 0.06);
}
.status-pill--ok {
  background: rgba(0, 200, 140, 0.14);
  color: #a9f5df;
}
.status-pill--muted {
  opacity: 0.85;
}
.status-pill--no-ok {
  background: rgba(239, 68, 68, 0.08);
  color: rgb(253, 65, 65);
  color: var(--text);
}
.chips {
  display: flex;
  gap: 0.35rem;
  flex-wrap: wrap;
}
.chip {
  padding: 0.22rem 0.55rem;
  border-radius: 999px;
  font-size: 0.78rem;
  background: rgba(255, 255, 255, 0.06);
}
.chip--muted {
  opacity: 0.55;
}

/* Actions */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.42rem 0.85rem;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.08);
}

.btn--ghost {
  background: transparent;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18);
}
.btn--danger {
  background: rgba(255, 55, 75, 0.18);
}
.btn--sm {
  padding: 0.35rem 0.7rem;
}

/* Petit “badge jeu” à gauche du nom si besoin */
.badge-game {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.18rem 0.45rem;
  border-radius: 8px;
  font-size: 0.78rem;
  background: rgba(255, 255, 255, 0.04);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}
.badge-game img {
  width: 14px;
  height: 14px;
  border-radius: 3px;
}

/* Responsive : passe en 2 colonnes + actions à la ligne */
@media (max-width: 900px) {
  .admin-table__head {
    display: none;
  }
  .admin-table__row {
    grid-template-columns: 1fr auto;
    row-gap: 0.6rem;
  }
  .admin-table__cell[data-th]::before {
    content: attr(data-th);
    display: block;
    font-size: 0.74rem;
    opacity: 0.6;
    margin-right: 0.4rem;
    margin-bottom: 0.18rem;
  }
  .admin-table__cell--right {
    grid-column: 1 / -1;
    justify-content: flex-start;
  }
}
:root {
  --neon-cyan: #00eaff;
  --neon-violet: #b500ff;
}

/* ---------- Hero base ---------- */
.hero {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.hero__media {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.hero__content {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  height: 100%;
  padding: clamp(24px, 3vw, 48px);
  text-align: center;
  max-width: 1100px;
  margin: 0 auto;
}

.hero__title {
  font-size: clamp(28px, 5vw, 56px);
  line-height: 1.05;
  letter-spacing: 0.3px;
  text-shadow: 0 0 18px rgba(255, 255, 255, 0.06);
}

/* ---------- Variante page (moins haute que home) ---------- */
.hero--page {
  /* un peu plus compact que la home */
  min-height: clamp(30vh, 38vh, 44vh);

  /* même recette que la home : violet en haut-gauche, cyan en haut-droit,
     léger voile vertical et fond très sombre */
  background: radial-gradient(
      1200px 600px at 80% -10%,
      rgba(14, 165, 233, 0.22),
      transparent
    ),
    radial-gradient(
      800px 400px at 10% -10%,
      rgba(139, 92, 246, 0.18),
      transparent
    ),
    linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0));

  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

/* petit accent glow sur le titre (exactement comme la home) */
.hero--page .hero__title {
  text-shadow: 0 0 14px rgba(var(--hero-violet-rgb), 0.22),
    0 0 28px rgba(var(--hero-cyan-rgb), 0.2);
}

/* watermark (logo filigrane) */
.hero__watermark {
  position: absolute;
  right: 4%;
  bottom: 6%;
  width: clamp(120px, 18vw, 220px);
  opacity: 0.06;
  filter: drop-shadow(0 0 24px rgba(255, 255, 255, 0.08));
}

/* glows néon */
.hero__glow {
  position: absolute;
  width: 44vw;
  height: 44vw;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.25;
  mix-blend-mode: screen;
  animation: neonPulse 4s ease-in-out infinite;
}
.hero__glow--violet {
  top: -14vh;
  left: -8vw;
  background: radial-gradient(
    circle at 40% 40%,
    var(--neon-violet),
    transparent 60%
  );
}
.hero__glow--cyan {
  top: -18vh;
  right: -10vw;
  animation-delay: 0.9s;
  background: radial-gradient(
    circle at 60% 40%,
    var(--neon-cyan),
    transparent 60%
  );
}

/* fumée douce */
.hero__smoke {
  position: absolute;
  inset: -10% -10% -15% -10%;
  background: radial-gradient(
      1200px 600px at 50% 110%,
      rgba(20, 20, 40, 0.35),
      transparent 70%
    ),
    repeating-conic-gradient(
      from 0deg,
      rgba(255, 255, 255, 0.03) 0 8deg,
      transparent 8deg 16deg
    );
  filter: blur(22px) saturate(110%);
  opacity: 0.45;
  animation: smokeDrift 18s ease-in-out infinite alternate;
}

/* particules (canvas) */
.hero__particles {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

/* effets */
@keyframes neonPulse {
  0%,
  100% {
    transform: scale(1);
    opacity: 0.23;
  }
  50% {
    transform: scale(1.06);
    opacity: 0.32;
  }
}
@keyframes smokeDrift {
  0% {
    transform: translate3d(-2%, 2%, 0) scale(1.02);
  }
  100% {
    transform: translate3d(2%, -2%, 0) scale(1.05);
  }
}

/* responsive réglages fins */
@media (max-width: 760px) {
  .hero--page {
    min-height: 34vh;
  }
  .hero__watermark {
    right: 4%;
    bottom: 8%;
    width: 32vw;
  }
  .hero__glow {
    width: 60vw;
    height: 60vw;
    filter: blur(60px);
  }
}
/* optionnel : accentuer très légèrement sur grands écrans */
@media (min-width: 1200px) {
  .hero__particles {
    filter: blur(0.9px);
  }
}
/* --- Grille de fond, sous particules/fumée --- */
.hero__grid {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.18; /* intensité globale */
  mix-blend-mode: screen; /* réagit bien sur fond sombre */
  /* 2 niveaux : grosses cases (96px) + fines (24px) */
  background-image: linear-gradient(
      to right,
      rgba(255, 255, 255, 0.08) 1px,
      transparent 1px
    ),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.08) 1px, transparent 1px),
    linear-gradient(to right, rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 3px 3px, 3px 3px, 3px 3px, 3px 3px;
  background-position: 0 0, 0 0, 0 0, 0 0;

  /* léger fondu en haut/bas pour éviter les bords brutaux */
  -webkit-mask-image: linear-gradient(
    to bottom,
    transparent 0%,
    #000 12%,
    #000 88%,
    transparent 100%
  );
  mask-image: linear-gradient(
    to bottom,
    transparent 0%,
    #000 12%,
    #000 88%,
    transparent 100%
  );

  animation: heroGridDrift 28s linear infinite alternate;
}

@keyframes heroGridDrift {
  0% {
    background-position: 0px 0px, 0px 0px, 0px 0px, 0px 0px;
  }
  100% {
    background-position: 24px 12px, 24px 12px, 12px 6px, 12px 6px;
  }
}

/* un poil plus discret en mobile */
@media (max-width: 760px) {
  .hero__grid {
    opacity: 0.14;
  }
}

.site-footer {
  position: relative;
  color: var(--footer-text);
  border-top: 1px solid var(--footer-border);

  overflow: hidden;
  isolation: isolate;
}

/* décor */
.footer__bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}
.footer__grid {
  position: absolute;
  inset: 0;
  opacity: 0.12;
  mix-blend-mode: screen;
  background-image: linear-gradient(
      to right,
      rgba(255, 255, 255, 0.06) 1px,
      transparent 1px
    ),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.06) 1px, transparent 1px),
    linear-gradient(to right, rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 3px 3px, 3px 3px, 3px 3px, 3px 3px;
  animation: footerGrid 32s linear infinite alternate;
  -webkit-mask-image: linear-gradient(
    to bottom,
    transparent 0%,
    #000 12%,
    #000 88%,
    transparent 100%
  );
  mask-image: linear-gradient(
    to bottom,
    transparent 0%,
    #000 12%,
    #000 88%,
    transparent 100%
  );
}
@keyframes footerGrid {
  0% {
    background-position: 0 0, 0 0, 0 0, 0 0;
  }
  100% {
    background-position: 20px 12px, 20px 12px, 10px 6px, 10px 6px;
  }
}

.footer__glow {
  position: absolute;
  width: 40vw;
  height: 40vw;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.25;
  mix-blend-mode: screen;
  top: -14vh;
}
.footer__glow--violet {
  left: -10vw;
  background: radial-gradient(
    circle at 40% 40%,
    var(--hero-violet),
    transparent 60%
  );
}
.footer__glow--cyan {
  right: -10vw;
  background: radial-gradient(
    circle at 60% 40%,
    var(--hero-cyan),
    transparent 60%
  );
}

/* contenu */
.footer__inner {
  position: relative;
  z-index: 1;
  max-width: 1160px;
  margin: 0 auto;
  padding: clamp(28px, 4vw, 48px) 20px;
  display: grid;
  grid-template-columns: 1.1fr 2fr;
  gap: clamp(16px, 3vw, 32px);
}

.footer__brand {
  display: flex;
  align-items: center;
  gap: 14px;
  border-radius: 16px;
  padding: 12px 14px;
}
.footer__logo {
  width: 60px;
  height: auto;
  opacity: 0.9;
  filter: drop-shadow(0 0 14px rgba(255, 255, 255, 0.05));
}
.footer__title {
  margin: 0;
  font-size: 18px;
  letter-spacing: 0.4px;
}
.footer__tagline {
  margin: 0.2rem 0 0;
  color: var(--footer-dim);
  font-size: 14px;
}

.footer__nav {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(12px, 2.2vw, 28px);
}
.footer__col h4 {
  margin: 0 0 10px;
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  letter-spacing: 0.3px;
}
.footer__col ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.footer__col li {
  margin: 8px 0;
}
.footer__col a {
  color: var(--footer-text);
  text-decoration: none;
  transition: 0.2s ease;
  border-bottom: 1px dashed transparent;
}
.footer__col a:hover {
  color: #fff;
  border-bottom-color: rgba(255, 255, 255, 0.15);
}

.footer__socials {
  display: flex;
  gap: 10px;
  margin-top: 6px;
}
.footer__socials .ico {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--footer-border);
  transition: 0.2s ease;
  backdrop-filter: blur(4px);
}
.footer__socials .ico:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 24px rgba(var(--hero-cyan-rgb), 0.18),
    0 0 24px rgba(var(--hero-violet-rgb), 0.18);
}

/* barre du bas */
.footer__bar {
  position: relative;
  z-index: 1;
  max-width: 1160px;
  margin: 0 auto;
  padding: 14px 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-top: 1px solid var(--footer-border);
}
.footer__bar p {
  margin: 0;
  color: var(--footer-dim);
  font-size: 14px;
}
.footer__bar a {
  color: var(--footer-text);
  text-decoration: none;
}
.footer__bar a:hover {
  color: #fff;
}

.to-top {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 12px;
  color: #fff;
  text-decoration: none;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--footer-border);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.02);
  transition: 0.2s ease;
}
.to-top:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 28px rgba(var(--hero-cyan-rgb), 0.2),
    0 0 28px rgba(var(--hero-violet-rgb), 0.2);
}

/* responsive */
@media (max-width: 900px) {
  .footer__inner {
    grid-template-columns: 1fr;
  }
  .footer__nav {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 560px) {
  .footer__nav {
    grid-template-columns: 1fr;
  }
  .footer__bar {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ========= Streams (st-) ========= */
:root {
  --st-cyan: #22d3ee;
  --st-violet: #8b5cf6;
  --st-grad: linear-gradient(90deg, var(--st-cyan), var(--st-violet));
  --st-border: rgba(255, 255, 255, 0.08);
  --st-surface: rgba(18, 24, 38, 0.55);
  --st-text: #e6ebf0;
  --st-dim: #a4b3c4;
}
.hero--page--short {
  padding-block: 42px;
}
.st-wrap {
  padding-block: clamp(26px, 4vw, 42px);
}
.st-grid {
  display: grid;
  grid-template-columns: 1.35fr 0.9fr;
  gap: clamp(16px, 3vw, 26px);
}
@media (max-width: 1080px) {
  .st-grid {
    grid-template-columns: 1fr;
  }
}

.st-card {
  border: 1px solid var(--st-border);
  border-radius: 16px;
  background: linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.05),
      rgba(255, 255, 255, 0.02)
    ),
    var(--st-surface);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
  overflow: hidden;
}
.st-card__body {
  padding: clamp(14px, 2.2vw, 20px);
}

.st-title {
  font-weight: 800;
  font-size: clamp(18px, 2.3vw, 22px);
  margin: 0 0 8px;
}
.st-sub {
  color: var(--st-dim);
  margin: 0 0 14px;
}

.st-player {
  aspect-ratio: 16/9;
  width: 100%;
  border: 0;
  display: block;
  background: #0c1118;
}
.st-hint {
  color: var(--st-dim);
  font-size: 0.92rem;
  margin-top: 8px;
}

.st-panel {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.st-weekbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  border-bottom: 1px solid var(--st-border);
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.03),
    rgba(255, 255, 255, 0.01)
  );
}
.st-weekbar .lbl {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: baseline;
}
.st-weekbar .wk {
  font-weight: 800;
  letter-spacing: 0.3px;
}
.st-weekbar .range {
  color: var(--st-dim);
}

.st-nav {
  display: flex;
  gap: 8px;
}
.st-btn {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  border: 1px solid var(--st-border);
  background: rgba(255, 255, 255, 0.04);
  color: var(--st-text);
}
.st-btn:hover {
  filter: brightness(1.06);
  border-color: rgba(255, 255, 255, 0.16);
}
.st-btn:active {
  transform: translateY(1px);
}

.st-day {
  padding: 14px 16px;
  border-top: 1px solid var(--st-border);
}
.st-day__head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}
.st-day__name {
  font-weight: 700;
}
.st-day__date {
  color: var(--st-dim);
  font-size: 0.92rem;
}

.st-slot {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 10px 12px;
  border: 1px solid var(--st-border);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  position: relative;
  overflow: hidden;
}
.st-slot + .st-slot {
  margin-top: 8px;
}

.st-time {
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  white-space: nowrap;
}
.st-txt {
  color: var(--st-text);
}
.st-with {
  color: var(--st-dim);
  font-size: 0.92rem;
}

.st-empty {
  color: var(--st-dim);
  font-style: italic;
}

.st-slot::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 2px;
  background: var(--st-grad);
  opacity: 0.9;
  transform: translateY(0);
  transition: opacity 0.2s ease;
}
.st-slot:hover::after {
  opacity: 1;
}

/* grille en arrière-plan pour la cohérence visuelle */
.st-card.grid-bg {
  background-image: radial-gradient(
      rgba(255, 255, 255, 0.06) 1px,
      transparent 1px
    ),
    linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.05),
      rgba(255, 255, 255, 0.02)
    ),
    var(--st-surface);
  background-size: 22px 22px, auto, auto;
  background-position: 0 0, 0 0, 0 0;
}

/* ===========================
   MINDPLEX — Home (hp-*)
   =========================== */
:root {
  --hp-cyan: #22d3ee;
  --hp-violet: #8b5cf6;
  --hp-grad: linear-gradient(90deg, var(--hp-cyan), var(--hp-violet));
  --hp-surface: rgba(15, 23, 42, 0.55);
  --hp-border: rgba(255, 255, 255, 0.08);
  --hp-dim: #93a4b6;
  --hp-text: #e5e7eb;
  --hp-grid-size: 18px; /* espacement de la grille */
  --hp-grid-dot: rgba(255, 255, 255, 0.055); /* couleur des points/lignes */
  --hp-grid-fade-top: 10%; /* marge de fondu haut */
  --hp-grid-fade-bottom: 10%; /* marge de fondu bas */
}
.container {
  max-width: 1200px;
  margin: 0 auto; /*padding:0 clamp(16px,3vw,24px)*/
}

/* Sections + alternance */
.hp-section {
  padding-block: clamp(28px, 5vw, 64px);
  position: relative;
}
.hp-section--alt {
  background: radial-gradient(
      800px 320px at 10% 0%,
      rgba(34, 211, 238, 0.08),
      transparent 60%
    ),
    radial-gradient(
      800px 320px at 90% 100%,
      rgba(139, 92, 246, 0.08),
      transparent 60%
    ),
    rgba(255, 255, 255, 0.02);
  padding: 64px 16px;
}

/* Grilles */
.hp-grid-2 {
  display: grid;
  gap: clamp(14px, 2.6vw, 24px);
  grid-template-columns: 1.1fr 0.9fr;
}
@media (max-width: 980px) {
  .hp-grid-2 {
    grid-template-columns: 1fr;
  }
}

/* Cartes glassmorph */
.hp-card {
  border: 1px solid var(--hp-border);
  border-radius: 16px;
  padding: clamp(14px, 1.8vw, 18px);
  background: rgba(255, 255, 255, 0.02);
}
.hp-glass {
  background: linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.05),
      rgba(255, 255, 255, 0.02)
    ),
    var(--hp-surface);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

/* Headings & texts */
.hp-head {
  margin-bottom: 10px;
}
.hp-head--row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.hp-head--row .hp-title {
  margin-right: auto;
}
.hp-title {
  font-size: clamp(22px, 2.6vw, 30px);
  font-weight: 900;
  letter-spacing: 0.3px;
}
.hp-title-sm {
  font-size: clamp(18px, 2vw, 22px);
  font-weight: 800;
}
.hp-sub {
  color: var(--hp-dim);
}
.hp-text {
  color: var(--hp-text);
}

/* CTA / Buttons */
.hp-actions,
.hp-cta__actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.hp-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.72rem 1rem;
  border-radius: 12px;
  border: 1px solid var(--hp-border);
  text-decoration: none;
  transition: 0.2s ease;
}
.hp-btn--primary {
  color: #0b1220;
  background: var(--hp-grad);
  border-color: transparent;
  box-shadow: 0 10px 28px rgba(34, 211, 238, 0.22),
    0 10px 28px rgba(139, 92, 246, 0.22);
}
.hp-btn--primary:hover {
  transform: translateY(-1px);
  filter: brightness(1.03) saturate(1.05);
}
.hp-btn--ghost {
  color: var(--hp-text);
  background: rgba(255, 255, 255, 0.03);
}
.hp-btn--ghost:hover {
  border-color: rgba(255, 255, 255, 0.14);
}

/* Cartes cliquables + underline dégradé au hover */
.hp-cardlink {
  position: relative;
  transition: transform 0.22s ease, box-shadow 0.22s ease,
    border-color 0.22s ease;
}
.hp-cardlink::after {
  content: "";
  position: absolute;
  left: 3px;
  right: 3px;
  bottom: 0;
  height: 0;
  background: var(--hp-grad);
  border-radius: 0 0 12px 12px;
  box-shadow: 0 0 18px rgba(139, 92, 246, 0.35),
    0 0 14px rgba(34, 211, 238, 0.28);
  opacity: 0;
  transform: translateY(2px);
  transition: height 0.24s ease, opacity 0.24s ease, transform 0.24s ease;
}
.hp-cardlink:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.4);
  border-color: rgba(255, 255, 255, 0.14);
}
.hp-cardlink:hover::after {
  height: 3px;
  opacity: 0.95;
  transform: translateY(0);
}

/* Team rail */
.hp-team-rail {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(240px, 1fr);
  gap: 12px;
  overflow: auto;
  padding-bottom: 2px;
}
.hp-team {
  display: flex;
  flex-direction: column;
  gap: 8px;
  text-decoration: none;
  border: 1px solid var(--hp-border);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.02);
}
.hp-team__cover {
  width: 100%;
  aspect-ratio: 16/9;
  border-radius: 12px 12px 0 0;
  background: #0a0a0a;
  background-image: var(--img);
  background-size: cover;
  background-position: center;
}
.hp-team__meta {
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.hp-pill {
  display: inline-block;
  font-size: 0.75rem;
  color: #dbeafe;
  padding: 0.22rem 0.5rem;
  border-radius: 999px;
  border: 1px solid var(--hp-border);
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.08),
    rgba(255, 255, 255, 0.04)
  );
  width: max-content;
}
.hp-team__name {
  font-size: 1rem;
}

/* Posts grid */
.hp-posts {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(4, 1fr);
}
@media (max-width: 1100px) {
  .hp-posts {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media (max-width: 760px) {
  .hp-posts {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 520px) {
  .hp-posts {
    grid-template-columns: 1fr;
  }
}
.hp-post {
  overflow: hidden;
}
.hp-post__media {
  display: block;
  width: 100%;
  aspect-ratio: 16/9;
  border-radius: 12px;
  background: #0a0a0a;
  background-image: var(--img);
  background-size: cover;
  background-position: center;
}
.hp-post__body {
  padding: 10px 4px 0;
}
.hp-post__title {
  margin: 0 0 4px;
  font-size: 1rem;
}
.hp-post__meta {
  color: var(--hp-dim);
  font-size: 0.9rem;
}

/* Streams */
.hp-twitch {
  width: 100%;
  aspect-ratio: 16/9;
  border: 0;
  border-radius: 12px;
  background: #000;
}
.hp-plan {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(2, 1fr);
}
@media (max-width: 760px) {
  .hp-plan {
    grid-template-columns: 1fr;
  }
}
.hp-day {
  border: 1px solid var(--hp-border);
  border-radius: 12px;
  padding: 10px;
  background: rgba(255, 255, 255, 0.02);
}
.hp-day__head {
  font-weight: 800;
  margin-bottom: 6px;
}
.hp-day__list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.hp-day__list li {
  display: flex;
  gap: 10px;
  align-items: baseline;
  padding: 4px 0;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.08);
}
.hp-day__list li:last-child {
  border-bottom: 0;
}
.hp-day__list .t {
  color: #c7d2fe;
  min-width: 48px;
  font-variant-numeric: tabular-nums;
}
.hp-day__list .w {
  color: var(--hp-text);
}
.hp-day__list .by {
  color: var(--hp-dim);
}

/* Partenaires */
.hp-logos {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}
.hp-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 180px;
  min-height: 96px;
  padding: 12px 16px;
  border: 1px solid var(--hp-border);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.02);
}
.hp-logo img {
  max-height: 56px;
  width: auto;
  filter: saturate(0.95) contrast(1.02);
}

/* CTA */
.hp-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border: 1px solid var(--hp-border);
  border-radius: 16px;
  padding: clamp(16px, 2.4vw, 22px);
  background: radial-gradient(
      700px 300px at 10% 10%,
      rgba(34, 211, 238, 0.1),
      transparent 60%
    ),
    radial-gradient(
      700px 300px at 90% 90%,
      rgba(139, 92, 246, 0.1),
      transparent 60%
    ),
    var(--hp-surface);
}
.hp-cta__txt .hp-title {
  margin: 0 0 6px;
}
.hp-grad {
  background: var(--hp-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hp-empty {
  color: var(--hp-dim);
}
.hp-dim {
  color: var(--hp-dim);
}
/* Full-bleed pour les sections alternées (fond dégradé) */
.hp-section--alt {
  position: relative;
  background: none; /* on neutralise le fond local */
  isolation: isolate; /* pour gérer le z-index du ::before */
}

/* Le fond prend 100vw même si la section est dans un container limité */
.hp-section--alt::before {
  content: "";
  position: absolute;
  inset: 0; /* top/right/bottom:0 ; left:0 (on va recaler juste après) */
  left: 50%;
  transform: translateX(-50%); /* recentrage par rapport au viewport */
  width: 100vw; /* largeur de la fenêtre */
  z-index: -1; /* passe derrière le contenu */
  pointer-events: none;

  /* même décor que précédemment, mais appliqué en full-bleed */
  background: radial-gradient(
      800px 320px at 10% 0%,
      rgba(34, 211, 238, 0.08),
      transparent 60%
    ),
    radial-gradient(
      800px 320px at 90% 100%,
      rgba(139, 92, 246, 0.08),
      transparent 60%
    ),
    rgba(255, 255, 255, 0.02);
}
@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(16px);
    transition: 0.5s ease;
  }
  .reveal.is-in {
    opacity: 1;
    transform: translateY(0);
  }
}

.badge {
  display: inline-block;
  padding: 0.25rem 0.5rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #eaf6ff;
  font-size: 0.85rem;
}
.badge--success {
  background: rgba(16, 185, 129, 0.12);
  border-color: rgba(16, 185, 129, 0.28);
  color: #b8f6df;
}

.switch {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.switch input[type="checkbox"] {
  appearance: none;
  width: 42px;
  height: 24px;
  border-radius: 999px;
  background: #222;
  border: 1px solid rgba(255, 255, 255, 0.14);
  position: relative;
  cursor: pointer;
  outline: none;
  transition: 0.2s;
}
.switch input[type="checkbox"]::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #fff;
  transition: 0.2s;
}
.switch input[type="checkbox"]:checked {
  background: linear-gradient(90deg, #8b5cf6, #06b6d4);
}
.switch input[type="checkbox"]:checked::after {
  transform: translateX(18px);
}

/* ====== Home: Streams (hp-stream-) ====== */
:root {
  --hp-cyan: #22d3ee;
  --hp-violet: #8b5cf6;
  --hp-grad: linear-gradient(90deg, var(--hp-cyan), var(--hp-violet));
  --hp-surface: rgba(15, 23, 42, 0.55);
  --hp-border: rgba(255, 255, 255, 0.08);
  --hp-text: #e5e7eb;
  --hp-dim: #9fb0c0;
}

.hp-section--full {
  width: 100%;
}
.hp-section--full .container {
  max-width: 1200px;
  margin: 0 auto;
  padding-inline: 16px;
}

.hp-stream {
  display: grid;
  gap: clamp(16px, 3vw, 28px);
  grid-template-columns: 1.35fr 0.9fr;
}
@media (max-width: 1080px) {
  .hp-stream {
    grid-template-columns: 1fr;
  }
}

.hp-card {
  border: 1px solid var(--hp-border);
  border-radius: 16px;
  overflow: hidden;
  background: radial-gradient(
      1200px 1200px at -20% -20%,
      rgba(139, 92, 246, 0.08),
      transparent 40%
    ),
    radial-gradient(
      1200px 1200px at 120% 120%,
      rgba(34, 211, 238, 0.08),
      transparent 40%
    ),
    linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.05),
      rgba(255, 255, 255, 0.02)
    ),
    var(--hp-surface);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
}
.hp-card__body {
  padding: clamp(16px, 2vw, 22px);
}

.hp-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}
.hp-title {
  font-weight: 800;
  font-size: clamp(18px, 2.2vw, 20px);
  margin: 0;
}
.hp-sub {
  color: var(--hp-dim);
  margin: 0;
}

.hp-player {
  border: 1px solid var(--hp-border);
  border-radius: 14px;
  overflow: hidden;
  background: #000;
}
.hp-player iframe {
  width: 100%;
  aspect-ratio: 16/9;
  border: 0;
  display: block;
}
.hp-hint {
  color: var(--hp-dim);
  font-size: 0.92rem;
  margin-top: 8px;
}

.hp-week {
  font-weight: 800;
}
.hp-range {
  color: var(--hp-dim);
  margin-left: 6px;
}

.hp-day {
  padding: 12px;
  border: 1px solid var(--hp-border);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
}
.hp-day + .hp-day {
  margin-top: 10px;
}
.hp-day__hd {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 6px;
}
.hp-day__name {
  font-weight: 800;
}
.hp-day__date {
  color: var(--hp-dim);
  font-weight: 600;
}

.hp-slot {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 10px;
  align-items: start;
  padding: 10px;
  border-radius: 10px;
  border: 1px dashed var(--hp-border);
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.035),
    rgba(255, 255, 255, 0.02)
  );
  position: relative;
  overflow: hidden;
}
.hp-slot + .hp-slot {
  margin-top: 8px;
}
.hp-time {
  font-weight: 700;
  letter-spacing: 0.2px;
  text-align: center;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--hp-border);
  padding: 0.4rem 0.6rem;
  border-radius: 8px;
}
.hp-what {
  line-height: 1.3;
}
.hp-who {
  color: var(--hp-dim);
  margin-top: 2px;
}
.hp-empty {
  color: var(--hp-dim);
  border: 1px dashed var(--hp-border);
  background: rgba(255, 255, 255, 0.02);
  border-radius: 10px;
  padding: 10px;
}

.hp-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 10px;
}
.hp-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.75rem 1rem;
  border-radius: 12px;
  border: 1px solid var(--hp-border);
  text-decoration: none;
}
.hp-btn--grad {
  color: #0a0f14;
  background: var(--hp-grad);
  border: 0;
  box-shadow: 0 10px 28px rgba(34, 211, 238, 0.18),
    0 10px 28px rgba(139, 92, 246, 0.18);
}
.hp-btn--ghost {
  color: var(--hp-text);
  background: rgba(255, 255, 255, 0.04);
}

/* ----- planning scroll ----- */
.hp-planning__scroll {
  overflow: auto;
  max-height: var(--hp-planning-h, 520px); /* sera ajusté par JS */
  padding-right: 8px;
  scroll-behavior: smooth;

  /* petit fondu en haut/bas du contenu (mask) */
  -webkit-mask-image: linear-gradient(
    to bottom,
    transparent 0,
    #000 16px,
    #000 calc(100% - 16px),
    transparent 100%
  );
  mask-image: linear-gradient(
    to bottom,
    transparent 0,
    #000 16px,
    #000 calc(100% - 16px),
    transparent 100%
  );
}

/* WebKit scrollbars (Chrome/Edge/Brave/Opera, Safari) */
.hp-planning__scroll::-webkit-scrollbar {
  width: 10px;
}
.hp-planning__scroll::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.06);
  border-radius: 8px;
}
.hp-planning__scroll::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--hp-cyan), var(--hp-violet));
  border-radius: 8px;
  box-shadow: inset 0 0 0 2px rgba(0, 0, 0, 0.35);
}

/* Firefox (pas de gradient possible, on met une couleur pivot) */
.hp-planning__scroll {
  scrollbar-width: thin;
  scrollbar-color: #7dd3fc rgba(255, 255, 255, 0.06); /* thumb / track */
}

/* ===== VODs ===== */
.hp-vods {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
}

.hp-vod {
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  overflow: hidden;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.04),
    rgba(255, 255, 255, 0.02)
  );
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  position: relative;
}
.hp-vod:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.45);
}
.hp-vod::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--hp-cyan), var(--hp-violet));
  opacity: 0;
  transition: opacity 0.2s ease;
}
.hp-vod:hover::after {
  opacity: 1;
}

.hp-vod__media {
  aspect-ratio: 16/9;
  display: grid;
  place-items: center;
  background: radial-gradient(
      80% 80% at 20% 10%,
      rgba(255, 255, 255, 0.08),
      transparent
    ),
    linear-gradient(135deg, rgba(34, 211, 238, 0.1), rgba(139, 92, 246, 0.08));
  background-image: var(
      --bg,
      radial-gradient(
        80% 80% at 20% 10%,
        rgba(255, 255, 255, 0.08),
        transparent
      )
    ),
    linear-gradient(135deg, rgba(34, 211, 238, 0.1), rgba(139, 92, 246, 0.08));
  background-size: cover;
  background-position: center;
  position: relative;
}
.hp-vod__media iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
  border-radius: 8px;
}

.hp-vod__play {
  appearance: none;
  border: 0;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  padding: 12px;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
  transition: transform 0.15s ease;
}
.hp-vod__play:hover {
  transform: scale(1.06);
}

.hp-vod__meta {
  padding: 12px 14px 14px;
}
.hp-vod__badge {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  padding: 0.22rem 0.5rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
}
.hp-vod__title {
  margin: 0.4rem 0 0;
  font-weight: 800;
  line-height: 1.3;
}
.hp-vod__cat {
  color: #a9b9ca;
  font-size: 0.9rem;
}
/* Guard du modal */
.vod-modal__guard {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgba(8, 11, 17, 0.8);
  backdrop-filter: blur(6px);
}
.vod-guard__inner {
  text-align: center;
  color: #e5e7eb;
  padding: 18px 20px;
  max-width: 560px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  background: linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.05),
      rgba(255, 255, 255, 0.02)
    ),
    rgba(15, 23, 42, 0.6);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}
.vod-guard__inner h3 {
  margin: 0 0 6px;
  font-weight: 800;
}
.vod-guard__actions {
  margin-top: 10px;
}
.vod-btn {
  border-radius: 12px;
  padding: 0.8rem 1.1rem;
  cursor: pointer;
  color: #0a0f14;
  border: 0;
  background: linear-gradient(90deg, #22d3ee, #8b5cf6);
  box-shadow: 0 10px 28px rgba(34, 211, 238, 0.18),
    0 10px 28px rgba(139, 92, 246, 0.18);
}

/* ====== VODs page ====== */
.vod-wrap {
  padding-block: clamp(28px, 5vw, 56px);
}

.vod-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
}

.vod-title {
  font-size: clamp(22px, 2.6vw, 32px);
  font-weight: 800;
  margin: 0;
}

.vod-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(12, minmax(0, 1fr));
}

.vod-grid > * {
  grid-column: span 12;
}

@media (min-width: 640px) {
  .vod-grid > * {
    grid-column: span 6;
  }
}

@media (min-width: 1024px) {
  .vod-grid > * {
    grid-column: span 4;
  }
}

.vod-card {
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  overflow: hidden;
  background: linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.05),
      rgba(255, 255, 255, 0.02)
    ),
    rgba(15, 23, 42, 0.5);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  position: relative;
}

.vod-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  border-color: transparent;
}

.vod-card::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  background: linear-gradient(90deg, #22d3ee, #8b5cf6);
  opacity: 0;
  transform: translateY(2px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.vod-card:hover::after {
  opacity: 1;
  transform: translateY(0);
}

.vod-thumb {
  position: relative;
  width: 100%;
  height: 0;
  padding-bottom: 56.25%;
  background: radial-gradient(
      1200px 1200px at -10% -10%,
      rgba(34, 211, 238, 0.12),
      transparent 40%
    ),
    radial-gradient(
      1200px 1200px at 110% 110%,
      rgba(139, 92, 246, 0.12),
      transparent 40%
    ),
    #0b1320;
}

.vod-thumb img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.vod-play {
  position: absolute;
  inset: auto auto 12px 12px;
  display: inline-grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #fff;
}

.vod-play svg {
  width: 20px;
  height: 20px;
  transform: translateX(1px);
}

.vod-body {
  padding: 14px;
}

.vod-badges {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-bottom: 8px;
  flex-wrap: wrap;
}

.vod-badge {
  font-size: 0.78rem;
  padding: 0.28rem 0.55rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.05);
  color: #cbd5e1;
}

.vod-title-sm {
  font-weight: 800;
  font-size: 1.05rem;
  margin: 0 0 6px;
}

.vod-meta {
  color: #94a3b8;
  font-size: 0.92rem;
}

.vod-more {
  display: flex;
  justify-content: center;
  margin-top: 18px;
}

.vod-btn {
  border-radius: 12px;
  padding: 0.8rem 1.1rem;
  cursor: pointer;
  color: #0a0f14;
  border: 0;
  background: linear-gradient(90deg, #22d3ee, #8b5cf6);
  box-shadow: 0 10px 28px rgba(34, 211, 238, 0.18),
    0 10px 28px rgba(139, 92, 246, 0.18);
}

.vod-btn[disabled] {
  opacity: 0.6;
  cursor: not-allowed;
}

/* ===== Modal (full-bleed 16:9) ===== */
.vod-modal {
  position: fixed;
  inset: 0;
  display: none;
  z-index: 1300;
}

.vod-modal.is-open {
  display: block;
}

.vod-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(8, 11, 17, 0.75);
  backdrop-filter: blur(8px);
}

.vod-modal__panel {
  position: relative;
  margin: min(7vh, 60px) auto;
  width: min(96vw, 1200px);
  border-radius: 16px;
  background: rgba(11, 18, 32, 0.9);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.5),
    0 0 0 1px rgba(255, 255, 255, 0.06) inset;
  overflow: hidden;
}

.vod-modal__media {
  position: relative;
  width: 100%;
  height: 0;
  padding-bottom: 56.25%;
}

@supports (aspect-ratio: 16/9) {
  .vod-modal__media {
    height: auto;
    padding-bottom: 0;
    aspect-ratio: 16/9;
    max-height: 86vh;
  }
}

.vod-frame {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

.vod-modal__close {
  position: absolute;
  top: 10px;
  right: 12px;
  z-index: 99999;
  color: #cbd5e1;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  padding: 0.35rem 0.55rem;
  cursor: pointer;
}

.vod-modal__close:hover {
  filter: brightness(1.1);
}
/* ===== Cookie UI (ck- prefix) ===== */
:root {
  --ck-cyan: #22d3ee;
  --ck-violet: #8b5cf6;
  --ck-grad: linear-gradient(90deg, var(--ck-cyan), var(--ck-violet));
  --ck-surface: rgba(15, 23, 42, 0.6);
  --ck-border: rgba(255, 255, 255, 0.1);
  --ck-text: #e5e7eb;
  --ck-dim: #9fb0c0;
}

.ck-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1200;
  backdrop-filter: blur(8px);
  background: linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.05),
      rgba(255, 255, 255, 0.02)
    ),
    var(--ck-surface);
  border-top: 1px solid var(--ck-border);
  box-shadow: 0 -12px 32px rgba(0, 0, 0, 0.35);
  color: var(--ck-text);
}
.ck-banner__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 14px 16px;
  display: flex;
  gap: 14px;
  align-items: center;
}
.ck-text {
  flex: 1;
  font-size: 0.98rem;
}
.ck-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.ck-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.6rem 0.9rem;
  border-radius: 12px;
  cursor: pointer;
  border: 1px solid var(--ck-border);
  color: var(--ck-text);
  background: rgba(255, 255, 255, 0.04);
}
.ck-btn--primary {
  color: #0b1220;
  border: 0;
  background: var(--ck-grad);
  box-shadow: 0 10px 28px rgba(34, 211, 238, 0.18),
    0 10px 28px rgba(139, 92, 246, 0.18);
}
.ck-btn--ghost:hover {
  filter: brightness(1.06);
}
.ck-btn--primary:hover {
  filter: brightness(1.03) saturate(1.05);
}

@media (max-width: 760px) {
  .ck-banner__inner {
    flex-direction: column;
    align-items: stretch;
  }
  .ck-actions {
    justify-content: space-between;
  }
}

/* Modal */
.ck-modal {
  position: fixed;
  inset: 0;
  z-index: 1300;
  display: none;
}
.ck-modal[hidden] {
  display: none !important;
}
.ck-modal.is-open {
  display: block;
}
.ck-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(8, 11, 17, 0.75);
  backdrop-filter: blur(8px);
}
.ck-modal__panel {
  position: relative;
  margin: min(12vh, 100px) auto;
  width: min(96vw, 560px);
  background: linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.05),
      rgba(255, 255, 255, 0.02)
    ),
    var(--ck-surface);
  border: 1px solid var(--ck-border);
  border-radius: 16px;
  color: var(--ck-text);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  padding: 18px;
}
.ck-title {
  margin: 0 0 6px;
  font-weight: 800;
  font-size: 1.25rem;
}
.ck-sub {
  margin: 0 0 12px;
  color: var(--ck-dim);
}
.ck-close {
  position: absolute;
  top: 8px;
  right: 10px;
  border: 1px solid var(--ck-border);
  background: rgba(255, 255, 255, 0.06);
  color: var(--ck-text);
  border-radius: 10px;
  padding: 0.35rem 0.55rem;
  cursor: pointer;
}

.ck-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.ck-switch {
  display: flex;
  flex-direction: column;
  gap: 4px;
  border: 1px solid var(--ck-border);
  border-radius: 12px;
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.04);
}
.ck-switch > span {
  font-weight: 700;
}
.ck-switch > small {
  color: var(--ck-dim);
}

.ck-modal__actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  margin-top: 8px;
}

/* Guard (optionnel) pour iframes bloqués */
.ck-guard {
  position: relative;
  border: 1px dashed var(--ck-border);
  border-radius: 12px;
  overflow: hidden;
  background: radial-gradient(
      600px 600px at -10% -10%,
      rgba(34, 211, 238, 0.06),
      transparent 40%
    ),
    radial-gradient(
      600px 600px at 110% 110%,
      rgba(139, 92, 246, 0.06),
      transparent 40%
    ),
    #0b1320;
  color: var(--ck-dim);
  display: grid;
  place-items: center;
  text-align: center;
  padding: 24px;
}
.ck-guard .ck-btn {
  margin-top: 10px;
}

/* ===== Admin > Users : grille commune ===== */
.adm-users-grid {
  display: grid;
  grid-template-columns: 2.2fr 1.1fr 1.2fr 1.6fr 0.6fr 0.6fr; /* Utilisateur | Actions | Équipe | Rôle | Libre | Statut */
  gap: 16px;
  align-items: center;
}

/* En-tête */
.adm-users-head {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border, rgba(255, 255, 255, 0.08));
  font-weight: 700;
}
.adm-users-head > div {
  text-align: left;
}
.adm-users-head .ta-center {
  text-align: center;
}

/* Lignes */
.adm-user-row {
  padding: 16px;
  border-bottom: 1px solid var(--border, rgba(255, 255, 255, 0.08));
}

/* Colonne 1 : avatar + infos */
.adm-user-ident {
  display: flex;
  gap: 14px;
  align-items: center;
}
.adm-user-ident .avatar {
  width: 58px;
  height: 58px;
  border-radius: 14px;
  overflow: hidden;
  flex: 0 0 auto;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
}
.adm-user-ident .meta {
  line-height: 1.15;
}
.adm-user-ident .name {
  font-weight: 700;
}

/* Colonne 2 : actions */
.adm-user-actions {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}
.adm-user-actions .btn {
  min-width: 108px;
}

/* Colonnes 3-4 : sélect + input */
.adm-user-team select,
.adm-user-role input {
  width: 100%;
}

/* Colonne 5 : libre (checkbox centrée) */
.adm-user-free {
  display: flex;
  justify-content: center;
}

/* Colonne 6 : statut (badge) */
.badge-ok {
  display: inline-block;
  padding: 0.28rem 0.6rem;
  border-radius: 999px;
  background: rgba(16, 185, 129, 0.12);
  color: #8ee6c2;
  border: 1px solid rgba(16, 185, 129, 0.35);
}

/* Responsive */
@media (max-width: 1024px) {
  .adm-users-grid {
    grid-template-columns: 1fr; /* on empile */
  }
  .adm-users-head {
    display: none;
  } /* on masque l’en-tête en mobile */
  .adm-user-row {
    display: grid;
    gap: 12px;
  }
  .adm-user-actions {
    justify-content: flex-start;
  }
}
