/**
 * RU Tournoi - Styles partages tous les hubs
 * Fichier : assets/css/rut-hub.css - v2.0.0 (Broadcast clair)
 *
 * Direction "Broadcast clair" : fond clair, energie de diffusion
 * sportive, contours nets, accent voltage (jaune de marque), encre noire.
 * Memes noms de classes qu'en v1 : aucun changement de markup requis.
 *
 * BLINDAGE THEME (Zox News) : polices chargees ici, reset scope sous
 * .rut-hub-wrap pour neutraliser les styles herites du theme.
 */

@import url('https://fonts.googleapis.com/css2?family=Anton&family=Inter:wght@400;500;600;700;800&family=DM+Mono:wght@400;500&display=swap');

/* ============================================================
   VARIABLES (Broadcast clair)
============================================================ */
:root {
  --rut-ink:          #0B0E14;
  --rut-ink-soft:     #1B222C;
  --rut-volt:         #FFD400;
  --rut-volt-soft:    rgba(255,212,0,.16);
  --rut-live:         #E4002B;
  /* alias de compatibilite : les regles v1 qui utilisaient "gold" comme
     couleur de texte deviennent de l'encre (lisible), les teintes deviennent voltage */
  --rut-gold:         #0B0E14;
  --rut-gold-soft:    rgba(255,212,0,.16);
  --rut-gold-bord:    rgba(11,14,20,.16);
  --rut-muted:        #69737F;
  --rut-dim:          #9AA7B4;
  --rut-bg:           #FFFFFF;
  --rut-surface:      #FFFFFF;
  --rut-surface2:     #F2F4F7;
  --rut-border:       #D7DDE4;
  --rut-border-md:    #C3CAD3;
  --rut-radius:       8px;
  --rut-radius-md:    12px;
  --rut-shadow:       4px 4px 0 rgba(11,14,20,.06);
  --rut-ease:         cubic-bezier(.16,1,.3,1);
  --rut-green:        #12A150;
  --rut-red:          #E4002B;
  --rut-blue:         #0057B8;
  --rut-orange:       #B54708;
  /* couleurs d'equipe (liseres) */
  --rut-t1:#E4002B; --rut-t2:#0057B8; --rut-t3:#12A150; --rut-t4:#7A3FF2; --rut-t5:#FF6A00; --rut-t6:#0AA6B8;
}

/* ============================================================
   BLINDAGE THEME (reset scope, contre Zox News)
============================================================ */
.rut-hub-wrap, .rut-hub-wrap * { box-sizing: border-box; }
.rut-hub-wrap {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--rut-ink);
  line-height: 1.5;
  font-size: 14px;
}
.rut-hub-wrap a { text-decoration: none; color: inherit; box-shadow: none; }
.rut-hub-wrap a:hover { text-decoration: none; }
.rut-hub-wrap button { font-family: inherit; line-height: 1.3; }
.rut-hub-wrap h1, .rut-hub-wrap h2, .rut-hub-wrap h3, .rut-hub-wrap h4 { margin: 0; line-height: 1.1; font-weight: 700; }
.rut-hub-wrap p { margin: 0 0 8px; }
.rut-hub-wrap ul, .rut-hub-wrap ol { margin: 0; padding: 0; list-style: none; }
.rut-hub-wrap table { border-collapse: collapse; width: 100%; }
.rut-hub-wrap img { max-width: 100%; height: auto; }
.rut-hub-wrap input, .rut-hub-wrap select, .rut-hub-wrap textarea { font-family: inherit; }

/* ============================================================
   LAYOUT HUB
============================================================ */
.rut-hub-wrap {
  display: flex;
  min-height: 100vh;
  background: var(--rut-bg);
}

/* Sidebar */
.rut-hub-sb {
  width: 260px; flex-shrink: 0;
  background: var(--rut-surface);
  border-right: 1px solid var(--rut-border);
  position: sticky; top: 0; height: 100vh; overflow-y: auto;
  display: flex; flex-direction: column;
  scrollbar-width: thin; scrollbar-color: var(--rut-border-md) transparent;
}
.rut-hub-sb::-webkit-scrollbar { width: 4px; }
.rut-hub-sb::-webkit-scrollbar-thumb { background: var(--rut-border-md); border-radius: 4px; }
.rut-hub-sb-inner { display: flex; flex-direction: column; height: 100%; }
.rut-hub-nav-list { padding: 12px 10px; flex: 1; }

.rut-hub-nav {
  display: flex; align-items: center; gap: 9px; width: 100%;
  padding: 10px 12px; border: none; background: transparent;
  border-radius: 8px; font-size: 13px; font-family: inherit; font-weight: 600;
  color: var(--rut-muted); cursor: pointer; text-align: left;
  transition: all .15s var(--rut-ease); margin-bottom: 2px;
}
.rut-hub-nav:hover { background: var(--rut-surface2); color: var(--rut-ink); }
.rut-hub-nav.is-active { background: var(--rut-ink); color: #fff; font-weight: 700; }
.rut-hub-nav.is-active svg { color: var(--rut-volt); }
.rut-hub-nav svg { flex-shrink: 0; }

.rut-sb-badge {
  margin-left: auto; font-size: 9px; font-weight: 700; padding: 2px 7px;
  border-radius: 100px; background: var(--rut-surface2); color: var(--rut-muted);
  max-width: 80px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.rut-sb-badge-alert { background: #FEF3F2; color: var(--rut-red); }
.rut-sb-badge-gold  { background: var(--rut-volt); color: var(--rut-ink); }

.rut-hub-sb-foot { padding: 12px 14px; border-top: 1px solid var(--rut-border); }
.rut-hub-sb-foot-link { font-size: 12px; color: var(--rut-muted); text-decoration: none; transition: color .15s; }
.rut-hub-sb-foot-link:hover { color: var(--rut-ink); }

/* Main : LA BOITE BLANCHE (tout le contenu de l'onglet dans une boite) */
.rut-hub-main {
  flex: 1; min-width: 0; width: 100%; max-width: 1180px;
  margin: 22px; align-self: flex-start;
  background: var(--rut-surface);
  border: 1px solid var(--rut-border);
  border-radius: 16px;
  box-shadow: 0 1px 2px rgba(11,14,20,.04), 0 18px 44px rgba(11,14,20,.06);
  overflow: hidden;
}

/* Sections : le contenu de l'onglet, respire dans la boite */
.rut-hub-section { display: none; padding: 22px 26px 28px; }
.rut-hub-section.is-active { display: block; }

/* En-tete de marque : LOGO (fond clair) dans la boite blanche, tous formats */
.rut-hub-topbar {
  display: flex; align-items: center; gap: 12px; padding: 15px 22px;
  background: var(--rut-surface); border-bottom: 1px solid var(--rut-border);
  position: sticky; top: 0; z-index: 100;
}
.rut-hub-topbar::before {
  content: ""; flex: 0 0 auto; width: 148px; height: 34px;
  background: url('../img/ru-logo-clair.png') left center / contain no-repeat;
}
.rut-hub-burger { display: none; background: none; border: none; font-size: 22px; cursor: pointer; padding: 0; color: var(--rut-ink); }
.rut-hub-topbar-title { margin-left: auto; font-weight: 700; font-size: 12.5px; letter-spacing: .02em; text-transform: uppercase; color: var(--rut-muted); }
.rut-hub-sb-ov { display: none; position: fixed; inset: 0; background: rgba(11,14,20,.45); z-index: 200; }

/* ============================================================
   COMPOSANTS PARTAGES
============================================================ */

/* Heading section (accent broadcast) */
.rut-section-heading { margin-bottom: 24px; }
.rut-section-heading h2 {
  font-size: 32px; font-family: 'Anton', 'Bebas Neue', Georgia, sans-serif;
  letter-spacing: .01em; text-transform: uppercase; color: var(--rut-ink); margin: 0 0 10px;
  display: flex; align-items: center; gap: 12px;
}
/* Plus de surlignage jaune en bloc (amateur). Le titre reste net, le
   mot accentue passe simplement en jaune voltage sur fond clair. */
.rut-section-heading h2 em { font-style: normal; color: var(--rut-ink); }
.rut-section-heading .sh-line { height: 4px; background: var(--rut-volt); border-radius: 3px; width: 64px; }

/* Card */
.rut-card {
  background: var(--rut-surface); border: 1px solid var(--rut-border);
  border-radius: var(--rut-radius-md); padding: 20px; margin-bottom: 14px;
  box-shadow: var(--rut-shadow);
}
.rut-card-title {
  font-size: 13px; font-weight: 700; color: var(--rut-ink); margin-bottom: 14px;
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
}

/* Boutons */
.rut-btn {
  display: inline-flex; align-items: center; gap: 6px; padding: 9px 16px;
  border-radius: 8px; font-size: 13px; font-weight: 700; cursor: pointer;
  border: 1.5px solid transparent; font-family: inherit; transition: all .13s var(--rut-ease); text-decoration: none;
}
.rut-btn-gold  { background: var(--rut-volt); color: var(--rut-ink); border-color: var(--rut-ink); box-shadow: 3px 3px 0 var(--rut-ink); }
.rut-btn-gold:hover { background: #FFDE33; transform: translate(-1px,-1px); box-shadow: 4px 4px 0 var(--rut-ink); }
.rut-btn-ghost { background: #fff; color: var(--rut-ink); border-color: var(--rut-border-md); }
.rut-btn-ghost:hover { background: var(--rut-surface2); border-color: var(--rut-ink); }
.rut-btn-red   { background: #fff; color: var(--rut-red); border-color: #FDA29B; }
.rut-btn-red:hover { background: #FEF3F2; }
.rut-btn-sm    { padding: 6px 11px; font-size: 11px; box-shadow: none; }

/* Badges */
.rut-badge {
  display: inline-block; padding: 2px 8px; border-radius: 100px; font-size: 10px;
  font-weight: 700; text-transform: uppercase; letter-spacing: .05em;
}
.rut-badge-green  { background: #ECFDF3; color: #067647; }
.rut-badge-red    { background: #FEF3F2; color: #B42318; }
.rut-badge-yellow { background: #FEFAEB; color: var(--rut-orange); }
.rut-badge-blue   { background: #EEF4FF; color: #1570EF; }
.rut-badge-gray   { background: var(--rut-surface2); color: var(--rut-muted); }
.rut-badge-gold   { background: var(--rut-volt); color: var(--rut-ink); }
.rut-badge-me     { background: var(--rut-volt); color: var(--rut-ink); font-size: 9px; }

/* Stats grid */
.rut-stats-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.rut-stat-card {
  background: var(--rut-surface); border: 1px solid var(--rut-border);
  border-radius: var(--rut-radius); padding: 16px; text-align: center;
  box-shadow: var(--rut-shadow);
}
.rut-stat-card.rut-stat-elo { border: 1.5px solid var(--rut-ink); background: linear-gradient(135deg, var(--rut-volt-soft), #fff); }
.rut-stat-icon  { font-size: 20px; margin-bottom: 6px; }
.rut-stat-val   { font-size: 30px; font-weight: 400; font-family: 'Anton','Bebas Neue', serif; color: var(--rut-ink); line-height: 1; }
.rut-stat-label { font-size: 10px; text-transform: uppercase; letter-spacing: .1em; color: var(--rut-muted); margin-top: 5px; font-weight: 600; }
.rut-stat-sub   { font-size: 10px; color: var(--rut-dim); margin-top: 2px; }

/* Joueur row */
.rut-joueur-row {
  display: flex; align-items: center; gap: 10px; padding: 10px; border-radius: 8px;
  margin-bottom: 6px; background: var(--rut-surface); border: 1px solid var(--rut-border); transition: border-color .15s;
}
.rut-joueur-row.is-me { background: var(--rut-volt-soft); border-color: var(--rut-ink); }
.rut-joueur-av  { width: 36px; height: 36px; border-radius: 8px; object-fit: cover; flex-shrink: 0; }
.rut-joueur-info { flex: 1; min-width: 0; }
.rut-joueur-nom { font-size: 13px; font-weight: 700; display: flex; align-items: center; gap: 6px; }
.rut-joueur-role { font-size: 10px; color: var(--rut-muted); text-transform: uppercase; letter-spacing: .08em; margin-top: 1px; }
.rut-joueur-stats { text-align: right; flex-shrink: 0; }
.rut-joueur-elo { font-size: 14px; font-weight: 700; font-family: 'DM Mono', monospace; color: var(--rut-ink); }
.rut-joueur-vd  { font-size: 11px; display: flex; gap: 4px; justify-content: flex-end; font-family: 'DM Mono', monospace; }

/* Classement */
.rut-classement-list { display: flex; flex-direction: column; gap: 3px; }
.rut-cl-row {
  display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 7px;
  background: var(--rut-surface); border: 1px solid var(--rut-border); transition: border-color .15s;
}
.rut-cl-row.is-me { background: var(--rut-volt-soft); border-color: var(--rut-ink); }
.rut-cl-pos   { width: 28px; text-align: center; font-size: 16px; font-weight: 400; font-family: 'Anton', serif; color: var(--rut-ink); flex-shrink: 0; }
.rut-cl-av    { width: 32px; height: 32px; border-radius: 7px; object-fit: cover; flex-shrink: 0; }
.rut-cl-info  { flex: 1; min-width: 0; }
.rut-cl-nom   { font-size: 13px; font-weight: 700; display: flex; align-items: center; gap: 6px; }
.rut-cl-equipe { font-size: 10px; color: var(--rut-muted); }
.rut-cl-elo   { font-size: 14px; font-weight: 500; font-family: 'DM Mono', monospace; color: var(--rut-ink); }
.rut-cl-vd    { font-size: 10px; display: flex; gap: 4px; justify-content: flex-end; font-family: 'DM Mono', monospace; }

/* Match row */
.rut-match-row {
  display: flex; align-items: center; gap: 12px; padding: 10px; border-radius: 8px;
  background: var(--rut-surface); border: 1px solid var(--rut-border); margin-bottom: 6px;
}
.rut-match-date  { font-size: 11px; color: var(--rut-muted); width: 40px; flex-shrink: 0; text-align: center; font-family: 'DM Mono', monospace; }
.rut-match-info  { flex: 1; }
.rut-match-titre { font-size: 13px; font-weight: 700; }
.rut-match-meta  { font-size: 10px; color: var(--rut-muted); text-transform: uppercase; letter-spacing: .06em; margin-top: 2px; }
.rut-match-res   {
  width: 26px; height: 26px; border-radius: 7px; color: #fff; font-size: 11px; font-weight: 700;
  font-family: 'Anton', serif; display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.rut-match-pts { font-size: 14px; font-weight: 700; font-family: 'DM Mono', monospace; color: var(--rut-ink); }

/* Messages inline */
.rut-inline-msg { padding: 10px 14px; border-radius: 8px; font-size: 13px; }
.rut-inline-msg.ok  { background: #ECFDF3; color: #067647; }
.rut-inline-msg.err { background: #FEF3F2; color: #B42318; }

/* ============================================================
   RESPONSIVE
============================================================ */
@media (max-width: 768px) {
  .rut-hub-sb { position: fixed; left: -260px; top: 0; height: 100vh; z-index: 300; transition: left .25s var(--rut-ease); }
  .rut-hub-sb.is-open { left: 0; }
  .rut-hub-sb-ov.is-open { display: block; }
  /* la boite prend tout l'ecran au telephone, sans marges qui creent du scroll */
  .rut-hub-main { margin: 0; border: none; border-radius: 0; box-shadow: none; max-width: 100%; }
  .rut-hub-section { padding: 16px 14px 24px; }
  .rut-hub-topbar { display: flex; padding: 12px 14px; }
  .rut-hub-topbar::before { width: 122px; height: 30px; }
  .rut-hub-burger { display: block; }
  .rut-stats-grid { grid-template-columns: repeat(2, 1fr); }
  .rut-cl-row { flex-wrap: wrap; }

  /* ===== BLINDAGE ANTI-DEBORDEMENT MOBILE (ne rien laisser sortir de l'ecran) ===== */
  .rut-hub-wrap { overflow-x: hidden; max-width: 100%; }
  .rut-hub-main { overflow-x: hidden; }
  .rut-hub-main * { min-width: 0; }
  /* coupe meme un mot geant d'un seul tenant (aucun texte ne sort de la boite) */
  .rut-hub-section, .rut-hub-section * { overflow-wrap: anywhere; }
  /* les noms/titres sont souvent en flex : autoriser le retour a la ligne */
  .rut-joueur-nom, .rut-cl-nom, .rut-match-titre, .rut-card-title { flex-wrap: wrap; }
  /* toute grille en style inline se replie en une seule colonne */
  .rut-hub-main [style*="grid-template-columns"] { grid-template-columns: 1fr !important; }
  /* toute rangee flex en style inline peut passer a la ligne */
  .rut-hub-main [style*="display:flex"], .rut-hub-main [style*="display: flex"] { flex-wrap: wrap; }
  /* champs de saisie toujours dans la boite */
  .rut-hub-main input, .rut-hub-main select, .rut-hub-main textarea { width: 100%; max-width: 100%; }
  /* selecteur de ligue empile */
  .rut-ligue-sw-items { flex-direction: column; }
  .rut-ligue-sw-item { width: 100%; min-width: 0; }
  /* titres de section : jamais de coupe hors ecran */
  .rut-section-heading h2 { font-size: 24px; flex-wrap: wrap; }
}


/* ============================================================
   GARDE-FOU CASES A COCHER
   Sans cette regle, un width:100% herite (theme ou framework de hub)
   etire la case et pousse son libelle hors de la modale.
============================================================ */
.rut-hub-wrap input[type=checkbox],
.rut-hub-wrap input[type=radio],
.ru-hub-section input[type=checkbox],
.ru-hub-section input[type=radio]{
  width: auto !important; flex: 0 0 auto; padding: 0; margin: 0;
  accent-color: var(--rut-ink);
}
.rut-hub-wrap label:has(> input[type=checkbox]),
.ru-hub-section label:has(> input[type=checkbox]){
  display: flex; align-items: center; gap: 8px; text-transform: none; font-weight: 500;
}


/* ============================================================
   FRANCHISE (design premium LNH du hub Proprietaire)
   Prefixe rutf- : n'affecte aucun composant existant.
============================================================ */

/* Banniere */
.rutf-banner{position:relative;background:linear-gradient(120deg,#FFFDF0 0%,#FFF 55%);border:1.5px solid var(--rut-ink);border-radius:14px;padding:24px 26px 0;overflow:hidden;margin-bottom:18px;box-shadow:var(--rut-shadow)}
.rutf-banner::before{content:"";position:absolute;top:-70px;right:-40px;width:320px;height:320px;background:radial-gradient(circle,rgba(255,212,0,.16),transparent 65%);pointer-events:none}
.rutf-eyebrow{font-family:'DM Mono',monospace;font-size:10px;letter-spacing:.16em;text-transform:uppercase;color:var(--rut-muted);margin-bottom:8px}
.rutf-title{font-family:'Anton','Bebas Neue',sans-serif;font-size:clamp(30px,4.6vw,46px);line-height:.95;text-transform:uppercase;margin:0;color:var(--rut-ink)}
.rutf-sub{margin-top:8px;color:var(--rut-muted);font-size:13px}

/* Bandeau de score noir */
.rutf-scorebug{position:relative;margin:18px -1.5px -1.5px;background:var(--rut-ink);color:#fff;border-radius:12px 12px 0 0;display:flex;align-items:stretch;flex-wrap:wrap;overflow:hidden}
.rutf-bug-cell{padding:12px 18px;display:flex;flex-direction:column;gap:2px;border-right:1px solid rgba(255,255,255,.14)}
.rutf-bug-k{font-family:'DM Mono',monospace;font-size:8.5px;letter-spacing:.16em;text-transform:uppercase;color:rgba(255,255,255,.55)}
.rutf-bug-v{font-family:'Anton',sans-serif;font-size:17px;letter-spacing:.02em;color:#fff}
.rutf-bug-v.rutf-volt{color:var(--rut-volt)}
.rutf-bug-live{margin-left:auto;display:flex;align-items:center;gap:8px;padding:0 18px;font-family:'DM Mono',monospace;font-size:10px;letter-spacing:.12em;text-transform:uppercase;color:#fff}
.rutf-dot{width:9px;height:9px;border-radius:50%;background:var(--rut-live);animation:rutfPulse 1.4s infinite}
@keyframes rutfPulse{0%,100%{opacity:1}50%{opacity:.35}}

/* Jumbotron */
.rutf-jumbo{display:grid;grid-template-columns:repeat(4,1fr);border:1.5px solid var(--rut-ink);border-radius:12px;overflow:hidden;background:var(--rut-surface);box-shadow:var(--rut-shadow);margin-bottom:18px}
.rutf-j-cell{padding:16px 18px;border-right:1px solid var(--rut-border)}
.rutf-j-cell:last-child{border-right:none}
.rutf-j-n{font-family:'Anton',sans-serif;font-size:42px;line-height:1;color:var(--rut-ink)}
.rutf-j-k{font-family:'DM Mono',monospace;font-size:9px;letter-spacing:.14em;text-transform:uppercase;color:var(--rut-muted);margin-top:4px}
.rutf-j-cell.is-alert{background:#FFF6F6}
.rutf-j-cell.is-alert .rutf-j-n{color:var(--rut-live)}

/* Carte franchise + rundown */
.rutf-card{background:var(--rut-surface);border:1.5px solid var(--rut-ink);border-radius:12px;box-shadow:var(--rut-shadow);overflow:hidden;margin-bottom:18px}
.rutf-card-h{display:flex;align-items:center;gap:10px;padding:12px 18px;border-bottom:1.5px solid var(--rut-ink);background:#FAFBF7}
.rutf-tag{font-family:'DM Mono',monospace;font-size:9px;letter-spacing:.14em;text-transform:uppercase;background:var(--rut-ink);color:var(--rut-volt);padding:4px 9px;border-radius:4px}
.rutf-card-h h2{font-family:'Anton',sans-serif;font-size:16px;text-transform:uppercase;letter-spacing:.02em;margin:0;color:var(--rut-ink)}
.rutf-run{display:flex;align-items:center;gap:14px;padding:13px 18px;border-bottom:1px solid var(--rut-border)}
.rutf-run:last-child{border-bottom:none}
.rutf-run-pri{width:38px;height:38px;border-radius:9px;display:grid;place-items:center;font-family:'Anton',sans-serif;font-size:15px;flex-shrink:0}
.rutf-run-pri.is-hot{background:var(--rut-live);color:#fff}
.rutf-run-pri.is-warm{background:var(--rut-volt);color:var(--rut-ink)}
.rutf-run-pri.is-cool{background:var(--rut-surface2);color:var(--rut-muted)}
.rutf-run-t{flex:1;min-width:0}
.rutf-run-t b{font-size:13.5px;color:var(--rut-ink)}
.rutf-run-t span{display:block;font-size:12px;color:var(--rut-muted);margin-top:1px}
.rutf-go{font:700 12px 'Inter',sans-serif;background:var(--rut-volt);border:1.5px solid var(--rut-ink);color:var(--rut-ink);padding:8px 14px;border-radius:8px;box-shadow:2.5px 2.5px 0 var(--rut-ink);cursor:pointer;white-space:nowrap;transition:transform .1s,box-shadow .1s}
.rutf-go:hover{transform:translate(-1px,-1px);box-shadow:3.5px 3.5px 0 var(--rut-ink)}

/* Camp d'expansion (etat zero) */
.rutf-exp{border:1.5px solid var(--rut-ink);border-radius:14px;overflow:hidden;background:var(--rut-surface);box-shadow:var(--rut-shadow);margin-bottom:18px}
.rutf-exp-hero{background:var(--rut-ink);color:#fff;padding:28px;position:relative;overflow:hidden}
.rutf-exp-hero::before{content:"RU";position:absolute;right:-14px;top:-46px;font-family:'Anton',sans-serif;font-size:210px;color:rgba(255,212,0,.07);line-height:1;pointer-events:none}
.rutf-exp-eyebrow{font-family:'DM Mono',monospace;font-size:10px;letter-spacing:.16em;text-transform:uppercase;color:var(--rut-volt);margin-bottom:10px}
.rutf-exp-hero h2{font-family:'Anton',sans-serif;font-size:clamp(26px,4vw,38px);line-height:.98;text-transform:uppercase;max-width:520px;margin:0;color:#fff}
.rutf-exp-hero p{margin-top:10px;color:rgba(255,255,255,.65);max-width:460px;font-size:13px}
.rutf-steps{display:grid;grid-template-columns:repeat(4,1fr)}
.rutf-step{padding:20px 18px 22px;border-right:1px solid var(--rut-border);position:relative}
.rutf-step:last-child{border-right:none}
.rutf-step-n{font-family:'Anton',sans-serif;font-size:34px;line-height:1;color:#D9DEE5}
.rutf-step.is-done .rutf-step-n{color:var(--rut-green)}
.rutf-step.is-now .rutf-step-n{color:var(--rut-ink)}
.rutf-step h3{font-family:'Anton',sans-serif;font-size:15px;text-transform:uppercase;margin:8px 0 0;color:var(--rut-ink)}
.rutf-step p{font-size:12px;color:var(--rut-muted);margin-top:5px;line-height:1.5}
.rutf-st{margin-top:11px;display:inline-block;font-family:'DM Mono',monospace;font-size:9px;letter-spacing:.12em;text-transform:uppercase;padding:4px 9px;border-radius:4px;background:var(--rut-surface2);color:var(--rut-muted)}
.rutf-step.is-done .rutf-st{background:#E9F9F0;color:var(--rut-green)}
.rutf-step.is-now .rutf-st{background:var(--rut-volt);color:var(--rut-ink)}
.rutf-step.is-now{background:#FFFDF0}
.rutf-step.is-now::after{content:"";position:absolute;left:0;top:0;right:0;height:3px;background:var(--rut-volt)}
.rutf-step .rutf-go{margin-top:11px}

@media (max-width:768px){
  .rutf-jumbo,.rutf-steps{grid-template-columns:repeat(2,1fr)}
  .rutf-j-cell:nth-child(2n){border-right:none}
  .rutf-scorebug{border-radius:10px 10px 0 0}
  .rutf-bug-live{width:100%;padding:10px 18px;border-top:1px solid rgba(255,255,255,.14);margin-left:0}
}
@media (prefers-reduced-motion:reduce){.rutf-dot{animation:none}.rutf-go:hover{transform:none}}

/* ============================================================
   MODALE DE HUB (etait sans style : elle s'affichait en clair)
   Cachee par defaut, visible seulement avec .open.
============================================================ */
.rut-modal-bg{
  position:fixed; inset:0; z-index:100000;
  background:rgba(11,14,20,.55); backdrop-filter:blur(2px);
  display:none; align-items:center; justify-content:center; padding:20px;
}
.rut-modal-bg.open{ display:flex; animation:rutModalFade .14s ease; }
@keyframes rutModalFade{ from{opacity:0} to{opacity:1} }
.rut-modal{
  background:var(--rut-surface); color:var(--rut-ink);
  border:1.5px solid var(--rut-ink); border-radius:14px;
  box-shadow:0 18px 50px rgba(11,14,20,.32);
  width:100%; max-width:460px; max-height:90vh; overflow:auto;
  animation:rutModalPop .16s cubic-bezier(.2,.9,.3,1.2);
}
@keyframes rutModalPop{ from{transform:translateY(10px) scale(.98);opacity:.6} to{transform:none;opacity:1} }
.rut-modal-head{
  display:flex; align-items:center; gap:10px;
  padding:14px 18px; border-bottom:1.5px solid var(--rut-ink); background:#FAFBF7;
}
.rut-modal-title{ font-family:'Anton',sans-serif; font-size:17px; text-transform:uppercase; letter-spacing:.02em; }
.rut-modal-x{
  margin-left:auto; background:none; border:none; font-size:24px; line-height:1;
  color:var(--rut-muted); cursor:pointer; padding:0 4px;
}
.rut-modal-x:hover{ color:var(--rut-ink); }
.rut-modal-body{ padding:18px; display:flex; flex-direction:column; gap:14px; }
.rut-field{ display:flex; flex-direction:column; gap:5px; }
.rut-field > label{
  font-size:11px; font-weight:700; letter-spacing:.04em;
  text-transform:uppercase; color:var(--rut-muted);
}
.rut-field input[type=text], .rut-field input[type=email], .rut-field input[type=url],
.rut-field input[type=number], .rut-field select, .rut-field textarea{
  font-family:inherit; font-size:14px; color:var(--rut-ink);
  background:#fff; border:1.5px solid var(--rut-border); border-radius:8px;
  padding:10px 12px; outline:none; width:100%;
  transition:border-color .12s, box-shadow .12s;
}
.rut-field input:focus, .rut-field select:focus, .rut-field textarea:focus{
  border-color:var(--rut-ink); box-shadow:0 0 0 3px rgba(255,212,0,.35);
}
.rut-field label.rut-check{
  flex-direction:row; align-items:center; gap:8px; text-transform:none;
  font-size:13px; font-weight:600; color:var(--rut-ink); cursor:pointer;
}
.rut-field label.rut-check input{ width:auto; }

/* ============================================================
   COMPLEMENTS v1.20 : classes referencees sans style dedie
   (audit de coherence). Toutes alignees sur le design Broadcast.
   ============================================================ */

/* Bouton contour (variante manquante de rut-btn) */
.rut-btn-outline{
  background:transparent; color:var(--rut-ink);
  border:1px solid var(--rut-border-md);
}
.rut-btn-outline:hover{
  background:var(--rut-surface2); border-color:var(--rut-ink);
  transform:translate(-1px,-1px);
}

/* Switcher de ligue (hub mentor / commissaire / artiste) */
.rut-ligue-switcher, .rut-ligue-sw{
  background:var(--rut-surface); border:1px solid var(--rut-border);
  border-radius:var(--rut-radius); padding:12px 14px; margin-bottom:16px;
}
.rut-ligue-sw-label{
  font-family:'DM Mono',monospace; font-size:10px; letter-spacing:.12em;
  text-transform:uppercase; color:var(--rut-muted); font-weight:700;
  margin-bottom:8px;
}
.rut-ligue-sw-items{ display:flex; flex-wrap:wrap; gap:8px; }
.rut-ligue-sw-item{
  display:flex; flex-direction:column; gap:2px; text-decoration:none;
  padding:8px 14px; border-radius:8px; border:1px solid var(--rut-border);
  background:var(--rut-surface2); color:var(--rut-ink);
  transition:all .18s var(--rut-ease); min-width:120px;
}
.rut-ligue-sw-item:hover{
  border-color:var(--rut-volt); transform:translateY(-1px);
  box-shadow:0 4px 12px rgba(0,0,0,.08);
}
.rut-ligue-sw-item.active{
  border-color:var(--rut-ink); background:var(--rut-ink); color:#fff;
}
.rut-ligue-sw-item.active .rut-ligue-sw-role,
.rut-ligue-sw-item.active .rut-ligue-sw-type{ color:rgba(255,255,255,.7); }
.rut-ligue-sw-label-item, .rut-ligue-sw-name{ font-weight:700; font-size:13px; }
.rut-ligue-sw-role, .rut-ligue-sw-type{
  font-family:'DM Mono',monospace; font-size:10px; letter-spacing:.06em;
  text-transform:uppercase; color:var(--rut-muted);
}
.rut-ligue-sw-dot{
  width:8px; height:8px; border-radius:50%; background:var(--rut-volt);
  display:inline-block; margin-right:5px;
}

/* Champs de soumission concours sur theme */
.rut-co-titre, .rut-co-lien, .rut-co-desc{
  width:100%; padding:9px 12px; border:1.5px solid var(--rut-border);
  border-radius:8px; font-size:14px; font-family:'Inter',sans-serif;
  color:var(--rut-ink); background:var(--rut-surface); outline:none;
  transition:border-color .15s var(--rut-ease);
}
.rut-co-titre:focus, .rut-co-lien:focus, .rut-co-desc:focus{
  border-color:var(--rut-ink); box-shadow:0 0 0 3px rgba(255,212,0,.3);
}
.rut-co-desc{ resize:vertical; min-height:56px; }

/* Bouton Defier (classement) */
.rut-cl-defier{
  padding:5px 12px; border-radius:6px; border:1px solid var(--rut-ink);
  background:var(--rut-volt); color:var(--rut-ink);
  font-size:11px; font-weight:700; cursor:pointer;
  transition:all .15s var(--rut-ease);
}
.rut-cl-defier:hover{ background:#FFDE33; transform:translateY(-1px); }

/* Ligne d'echange (compat, si non stylee ailleurs) */
.rut-echange-row{
  display:flex; align-items:center; gap:12px; padding:10px 12px;
  border:1px solid var(--rut-border); border-radius:var(--rut-radius);
  background:var(--rut-surface); margin-bottom:8px;
}

/* Pied de modale (compat) */
.rut-modal-foot{
  display:flex; gap:8px; padding:12px 18px;
  border-top:1px solid var(--rut-border);
}
