:root {
  --bg: #f4f6fb;
  --card: #ffffff;
  --text: #111827;
  --muted: #6b7280;
  --border: #e5e7eb;
  --primary: #1d4ed8;
  --primary-dark: #1e40af;
  --success: #059669;
  --warning: #d97706;
  --danger: #dc2626;
  --dark: #111827;
  --shadow: 0 10px 25px rgba(17, 24, 39, 0.08);
}

* {
  box-sizing: border-box;
}

body {
  font-family: Arial, sans-serif;
  background:
    radial-gradient(circle at top left, rgba(29, 78, 216, 0.16), transparent 32%),
    linear-gradient(180deg, #eef2ff 0%, var(--bg) 42%, #ffffff 100%);
  color: var(--text);
  max-width: 1040px;
  margin: auto;
  padding: 16px;
}

.hero {
  background: linear-gradient(135deg, #111827 0%, #1d4ed8 58%, #0f766e 100%);
  color: white;
  border-radius: 22px;
  padding: 22px;
  margin: 8px 0 18px;
  box-shadow: var(--shadow);
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.eyebrow {
  margin: 0 0 4px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 12px;
  opacity: 0.78;
  font-weight: 700;
}

h1 {
  font-size: 32px;
  margin: 0 0 6px;
  line-height: 1.05;
}

h2 {
  font-size: 23px;
  margin: 24px 0 12px;
}

h3 {
  margin: 22px 0 10px;
  font-size: 18px;
}

label {
  font-size: 14px;
  color: #374151;
  display: block;
  margin-top: 10px;
  font-weight: 700;
}

.small {
  color: rgba(255,255,255,0.82);
  font-size: 14px;
  margin: 0;
}

.section .small,
.card .small,
#admin .small {
  color: var(--muted);
}

.live-pill {
  background: rgba(255,255,255,0.16);
  border: 1px solid rgba(255,255,255,0.28);
  color: white;
  font-weight: 800;
  font-size: 12px;
  letter-spacing: 0.1em;
  border-radius: 999px;
  padding: 8px 12px;
}

.hidden {
  display: none;
}

.grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin: 14px 0;
}

.nav-grid {
  position: sticky;
  top: 0;
  z-index: 5;
  padding: 8px 0;
  backdrop-filter: blur(8px);
}

button, select, input {
  width: 100%;
  font-size: 17px;
  padding: 13px 14px;
  margin: 6px 0;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: white;
  outline: none;
}

input:focus, select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(29, 78, 216, 0.12);
}

button {
  background: var(--primary);
  color: white;
  border: none;
  font-weight: 800;
  box-shadow: 0 6px 14px rgba(29, 78, 216, 0.18);
  cursor: pointer;
}

button:hover {
  background: var(--primary-dark);
}

button.secondary {
  background: #4b5563;
  box-shadow: none;
}

button.win {
  background: var(--success);
}

button.danger {
  background: var(--danger);
  box-shadow: 0 6px 14px rgba(220, 38, 38, 0.18);
}

.section {
  background: rgba(255,255,255,0.72);
  border: 1px solid rgba(229,231,235,0.8);
  border-radius: 22px;
  padding: 14px;
  box-shadow: var(--shadow);
}

.card {
  background: var(--card);
  border: 1px solid var(--border);
  padding: 15px;
  border-radius: 18px;
  margin: 10px 0;
  box-shadow: 0 4px 14px rgba(17,24,39,0.05);
}

.score {
  font-size: 48px;
  font-weight: 900;
  text-align: center;
  margin: 10px 0;
  padding: 12px;
  background: #f8fafc;
  border-radius: 18px;
  border: 1px solid var(--border);
}

.ok {
  color: var(--success);
  font-weight: 900;
  background: rgba(5,150,105,0.1);
  padding: 4px 8px;
  border-radius: 999px;
  display: inline-block;
}

.warn {
  color: var(--warning);
  font-weight: 900;
  background: rgba(217,119,6,0.1);
  padding: 4px 8px;
  border-radius: 999px;
  display: inline-block;
}

table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  background: white;
  margin-bottom: 20px;
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 14px rgba(17,24,39,0.04);
}

th, td {
  border-bottom: 1px solid var(--border);
  padding: 10px 9px;
  text-align: left;
  font-size: 14px;
}

tr:last-child td {
  border-bottom: none;
}

th {
  background: #f8fafc;
  color: #374151;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .04em;
}

.team-edit {
  display: grid;
  grid-template-columns: 78px 1fr;
  gap: 8px;
  align-items: center;
}

.team-edit span {
  color: var(--muted);
  font-weight: 800;
}

#courtView .card h2 {
  text-align: center;
  margin: 14px 0 4px;
}

#courtView button {
  min-height: 52px;
}

#courtView button:nth-of-type(1),
#courtView button:nth-of-type(2) {
  background: var(--success);
  font-size: 18px;
}

@media (min-width: 720px) {
  .grid {
    grid-template-columns: repeat(5, 1fr);
  }

  body {
    padding: 22px;
  }

  .section {
    padding: 20px;
  }
}

@media (max-width: 520px) {
  body {
    padding: 10px;
  }

  .hero {
    border-radius: 18px;
    padding: 18px;
  }

  h1 {
    font-size: 28px;
  }

  .grid {
    gap: 6px;
  }

  button, select, input {
    font-size: 16px;
    padding: 12px;
  }

  th, td {
    font-size: 12px;
    padding: 8px 6px;
  }

  .score {
    font-size: 42px;
  }
}

.bracket-title {
  display: inline-block;
  margin-top: 18px;
  padding: 6px 10px;
  border-radius: 999px;
  background: #e0e7ff;
  color: #1e40af;
  font-weight: 900;
}
.seed {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

/* V6 mobile scoreboard */
.scoreboard {
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 14px;
  box-shadow: var(--shadow);
  min-height: calc(100vh - 170px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 10px;
}

.scoreboard-top {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: flex-start;
  font-size: 14px;
  color: var(--muted);
}

.scoreboard-top b {
  color: var(--text);
  font-size: 16px;
}

.score-status {
  white-space: nowrap;
}

.score-row {
  display: grid;
  grid-template-columns: 72px 1fr 72px;
  gap: 10px;
  align-items: stretch;
}

.score-btn {
  min-height: 118px;
  border-radius: 22px;
  font-size: 44px;
  line-height: 1;
  box-shadow: none;
}

.score-btn.plus {
  background: var(--success);
}

.score-btn.minus {
  background: #475569;
}

.team-score-box {
  background: white;
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 10px;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  box-shadow: 0 6px 18px rgba(17,24,39,0.06);
  min-height: 118px;
}

.team-name {
  font-size: 17px;
  font-weight: 900;
  line-height: 1.15;
  margin-bottom: 4px;
}

.big-score {
  font-size: 72px;
  font-weight: 950;
  line-height: .95;
  color: var(--dark);
}

.vs-mini {
  text-align: center;
  font-weight: 950;
  color: var(--muted);
  letter-spacing: .18em;
  font-size: 13px;
  margin: -2px 0;
}

.finish-btn {
  min-height: 54px;
  border-radius: 18px;
  font-size: 18px;
}

@media (max-width: 520px) {
  .scoreboard {
    min-height: calc(100vh - 140px);
    padding: 10px;
    border-radius: 20px;
    gap: 8px;
  }

  .score-row {
    grid-template-columns: 58px 1fr 58px;
    gap: 7px;
  }

  .score-btn {
    min-height: 104px;
    font-size: 38px;
    border-radius: 18px;
    padding: 0;
  }

  .team-score-box {
    min-height: 104px;
    border-radius: 20px;
    padding: 8px;
  }

  .team-name {
    font-size: 15px;
  }

  .big-score {
    font-size: 64px;
  }

  .finish-btn {
    min-height: 50px;
  }
}

@media (max-height: 740px) {
  .hero {
    padding: 12px;
    margin-bottom: 8px;
  }

  h1 {
    font-size: 24px;
  }

  .grid {
    margin: 8px 0;
  }

  .scoreboard {
    min-height: auto;
  }

  .score-btn,
  .team-score-box {
    min-height: 88px;
  }

  .big-score {
    font-size: 54px;
  }
}

.locked-box {
  margin-top: 12px;
  padding: 12px;
  border-radius: 16px;
  background: #fff7ed;
  border: 1px solid #fed7aa;
  color: #9a3412;
  text-align: center;
  font-weight: 800;
}
.locked-box span {
  font-weight: 500;
  font-size: 13px;
}
.score-btn:disabled {
  opacity: .35;
  cursor: not-allowed;
}


.score-screen {
  padding: 0;
}
.score-access {
  display:flex;
  gap:8px;
  margin-bottom:12px;
}
.score-access input, .score-access button { flex:1; }
.scoreboard-full {
  position: relative;
  display:flex;
  min-height: 78vh;
  border-radius: 24px;
  overflow:hidden;
  box-shadow: var(--shadow);
}
.score-half {
  flex:1;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:space-between;
  padding: 18px 12px;
  color:white;
}
.team-a { background:#0d7ae8; }
.team-b { background:#ff174f; }
.team-title {
  font-size: clamp(24px,4vw,56px);
  font-weight: 800;
  text-align:center;
  margin-top: 10px;
}
.mega-score {
  font-size: clamp(140px,22vw,340px);
  font-weight: 900;
  line-height: 1;
}
.score-action {
  width: 90px;
  height: 90px;
  border-radius: 20px;
  font-size: 56px;
  font-weight: 900;
  border:none;
}
.center-controls {
  position:absolute;
  left:50%;
  top:50%;
  transform:translate(-50%,-50%);
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:12px;
}
.reset-btn {
  width:84px;height:84px;border-radius:50%;font-size:40px;
}
.mini-meta {
  background: rgba(255,255,255,0.9);
  padding:8px 14px;
  border-radius:999px;
  font-weight:700;
}
.finish-btn { width:auto; min-width:140px; }

@media (max-width: 768px) {
  body { max-width:100%; padding:8px; }
  .hero { display:none; }
  .nav-grid {
    display:flex;
    overflow-x:auto;
    gap:8px;
    margin:0 -8px 10px;
    padding:8px;
    background:rgba(245,248,255,.96);
    border-bottom:1px solid #d7e6fb;
    -webkit-overflow-scrolling:touch;
  }
  .nav-grid button {
    flex:0 0 auto;
    width:auto;
    min-width:116px;
    padding:10px 12px;
    margin:0;
    font-size:13px;
    border-radius:999px;
    white-space:nowrap;
  }
  .scoreboard-full { min-height: 82vh; border-radius: 0; }
  .score-action { width:72px; height:72px; font-size:44px; }
  .mega-score { font-size: 30vw; }
  .team-title { font-size: 10vw; }
  .score-access { position: sticky; top:52px; z-index:10; background:white; padding:6px; }
}

/* V14 — Branding CSM Volleyball 91 */
:root {
  --bg: #f5f8ff;
  --card: #ffffff;
  --text: #0a1f44;
  --muted: #5f6f89;
  --border: #dce7f8;
  --primary: #045fd3;
  --primary-dark: #0047a6;
  --club-blue: #075fc7;
  --club-blue-dark: #003b88;
  --club-yellow: #ffc400;
  --club-yellow-dark: #e2a900;
  --success: #07985f;
  --warning: #e2a900;
  --danger: #e32929;
  --dark: #07162f;
  --shadow: 0 16px 35px rgba(0, 61, 136, 0.12);
}

body {
  font-family: Inter, Arial, sans-serif;
  background:
    radial-gradient(circle at 8% 0%, rgba(255,196,0,.28), transparent 22%),
    radial-gradient(circle at 92% 8%, rgba(7,95,199,.22), transparent 30%),
    linear-gradient(180deg, #eef5ff 0%, #f7faff 48%, #ffffff 100%);
}

.club-hero {
  background:
    linear-gradient(135deg, rgba(0,59,136,.96) 0%, rgba(7,95,199,.95) 58%, rgba(255,196,0,.92) 100%);
  border: 1px solid rgba(255,255,255,.32);
  position: relative;
  overflow: hidden;
}

.club-hero::after {
  content: "";
  position: absolute;
  right: -70px;
  bottom: -90px;
  width: 230px;
  height: 230px;
  border-radius: 50%;
  border: 30px solid rgba(255,255,255,.13);
}

.brand-row {
  display: flex;
  gap: 16px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.club-logo {
  width: min(245px, 38vw);
  max-height: 96px;
  object-fit: contain;
  filter: drop-shadow(0 10px 16px rgba(0,0,0,.18));
}

.club-hero h1 { text-transform: uppercase; letter-spacing: .02em; }
.club-hero .eyebrow { color: rgba(255,255,255,.86); }
.live-pill {
  background: rgba(255,196,0,.96);
  border: 1px solid rgba(255,255,255,.55);
  color: #063a82;
  box-shadow: 0 10px 20px rgba(0,0,0,.12);
  z-index: 1;
}

.nav-grid button {
  background: linear-gradient(135deg, var(--club-blue), var(--club-blue-dark));
  border-bottom: 4px solid var(--club-yellow);
}

button {
  background: linear-gradient(135deg, var(--club-blue), var(--primary-dark));
}
button:hover { background: linear-gradient(135deg, var(--primary-dark), #002e70); }
button.secondary { background: #607089; }
button.win { background: linear-gradient(135deg, var(--success), #057246); }
button.danger { background: linear-gradient(135deg, #f03b3b, #bd1111); }

.section {
  border-top: 5px solid var(--club-yellow);
}

.card, table {
  border-color: #d7e6fb;
}
th {
  background: linear-gradient(180deg, #f5f9ff, #eaf2ff);
  color: #06489d;
}

.bracket-title {
  background: #fff4bd;
  color: #06489d;
  border: 1px solid rgba(255,196,0,.6);
}

.score-access {
  border-radius: 18px;
  background: rgba(255,255,255,.9);
  border: 1px solid var(--border);
  padding: 8px;
}

.scoreboard-full {
  border: 4px solid white;
  box-shadow: 0 20px 55px rgba(0, 61, 136, .2);
}
.score-half.team-a {
  background:
    radial-gradient(circle at 30% 25%, rgba(255,255,255,.18), transparent 22%),
    linear-gradient(160deg, #0076e6 0%, #064fb3 100%);
}
.score-half.team-b {
  background:
    radial-gradient(circle at 70% 25%, rgba(255,255,255,.14), transparent 23%),
    linear-gradient(160deg, #ffc400 0%, #f39c12 100%);
  color: #07336f;
}
.team-title {
  text-transform: uppercase;
  text-shadow: 0 5px 16px rgba(0,0,0,.18);
}
.team-b .team-title, .team-b .mega-score { text-shadow: none; }
.mega-score {
  letter-spacing: -.06em;
  text-shadow: 0 10px 24px rgba(0,0,0,.16);
}
.score-action {
  background: rgba(255,255,255,.92);
  color: #06489d;
  box-shadow: 0 12px 24px rgba(0,0,0,.16);
}
.score-action:hover { background: white; color: #003b88; }
.reset-btn {
  background: white;
  color: #06489d;
  border: 5px solid var(--club-yellow);
  box-shadow: 0 12px 28px rgba(0,0,0,.18);
}
.mini-meta {
  color: #06489d;
  border: 2px solid rgba(255,196,0,.8);
}
.finish-btn {
  border: 2px solid white;
}

@media (max-width: 768px) {
  .scoreboard-full { border: 0; }
  .score-access {
    border-radius: 0;
    border-left: 0;
    border-right: 0;
  }
}

@media (max-width: 520px) {
  .brand-row { gap: 10px; }
  .club-logo { width: 160px; max-height: 70px; }
}

.service-indicator{color:white;font-weight:700;margin:10px 0;font-size:14px}.public-grid{display:grid;gap:12px}
/* v15.2 — service volley lisible dans le nom d'équipe */
.team-title {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}
.service-ball {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 999px;
  background: rgba(255,255,255,.96);
  box-shadow: 0 10px 26px rgba(0,0,0,.22);
  font-size: 34px;
  line-height: 1;
  transform: translateY(-2px);
}
@media (max-width: 520px) {
  .service-ball {
    width: 44px;
    height: 44px;
    font-size: 29px;
  }
}

.app-error {
  position: fixed;
  top: 12px;
  left: 12px;
  right: 12px;
  z-index: 9999;
  padding: 14px 16px;
  border-radius: 14px;
  background: #ffebe9;
  color: #7a0000;
  border: 1px solid rgba(122,0,0,.2);
  font-weight: 700;
  box-shadow: 0 10px 25px rgba(0,0,0,.18);
}


/* v15.5 — Safari/no blank screen + fond propre */
html, body {
  min-height: 100%;
  background: #f5f8ff !important;
}
body {
  background: #f5f8ff !important;
}
.section:not(.hidden) {
  display: block;
}
.app-loading {
  background: #ffffff;
  border: 1px solid #d7e6fb;
  border-top: 5px solid var(--club-yellow);
  border-radius: 18px;
  padding: 18px;
  box-shadow: var(--shadow);
  font-weight: 800;
  color: var(--club-blue-dark);
}

/* v15.5 — écran public TV plus propre */
.public-tv {
  background: linear-gradient(135deg, #003b88 0%, #075fc7 62%, #0a1f44 100%);
  color: #fff;
  border-radius: 28px;
  padding: 22px;
  box-shadow: 0 24px 70px rgba(0, 61, 136, .28);
  overflow: hidden;
}
.public-tv-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 18px;
}
.public-tv-title {
  font-size: clamp(24px, 3vw, 48px);
  font-weight: 950;
  text-transform: uppercase;
  letter-spacing: .03em;
}
.public-clock {
  background: rgba(255,255,255,.14);
  border: 1px solid rgba(255,255,255,.22);
  padding: 10px 14px;
  border-radius: 999px;
  font-weight: 900;
  font-size: 18px;
}
.public-courts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
}
.public-court-card {
  background: rgba(255,255,255,.96);
  color: #0a1f44;
  border-radius: 24px;
  padding: 18px;
  border: 2px solid rgba(255,196,0,.75);
  box-shadow: 0 18px 35px rgba(0,0,0,.16);
}
.public-court-top {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 12px;
  margin-bottom: 14px;
}
.public-court-title {
  font-size: 28px;
  font-weight: 950;
  color: #003b88;
}
.status-pill {
  border-radius: 999px;
  padding: 7px 10px;
  font-size: 12px;
  font-weight: 950;
  letter-spacing: .08em;
  background: #dcfce7;
  color: #166534;
}
.status-next { background: #fff4bd; color: #7c5200; }
.public-match-label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: #5f6f89;
  font-weight: 950;
  margin-top: 10px;
}
.public-current-match {
  font-size: clamp(24px, 2.4vw, 40px);
  font-weight: 950;
  line-height: 1.08;
  margin: 8px 0 6px;
}
.public-scoreline {
  display:flex;
  justify-content:center;
  align-items:center;
  gap: 12px;
  margin: 10px 0 12px;
  font-size: clamp(42px, 5vw, 82px);
  font-weight: 950;
  color: #003b88;
}
.public-scoreline span {
  background: #f5f8ff;
  border-radius: 18px;
  min-width: 90px;
  text-align: center;
  padding: 4px 12px;
}
.public-ref {
  display:inline-block;
  background: #eef5ff;
  color: #003b88;
  border-radius: 999px;
  padding: 8px 12px;
  font-weight: 900;
  margin-top: 6px;
}
.public-next {
  border-top: 1px solid #d7e6fb;
  margin-top: 16px;
  padding-top: 14px;
  font-size: 18px;
  font-weight: 850;
}
.public-empty {
  background: rgba(255,255,255,.92);
  color: #003b88;
  border-radius: 20px;
  padding: 24px;
  font-weight: 900;
  text-align: center;
}
@media (min-width: 1100px) {
  #publicView.section { max-width: none; }
  .public-courts { grid-template-columns: repeat(2, minmax(320px, 1fr)); }
}
@media (max-width: 768px) {
  .public-tv { border-radius: 18px; padding: 14px; }
  .public-tv-header { flex-direction: column; align-items:flex-start; }
  .public-court-title { font-size: 22px; }
}

.match-launch-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 14px;
  margin-top: 12px;
}
.match-launch-card {
  background: #ffffff;
  border: 1px solid rgba(11,59,130,.14);
  border-radius: 22px;
  padding: 16px;
  box-shadow: 0 14px 34px rgba(11,59,130,.10);
}
.launch-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: #0b3b82;
  font-size: 18px;
}
.launch-top span {
  background: #eef5ff;
  border-radius: 999px;
  padding: 5px 10px;
  font-weight: 900;
}
.launch-phase,
.launch-ref {
  color: #586276;
  font-weight: 750;
  margin-top: 8px;
}
.launch-teams {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 10px;
  margin: 14px 0;
  font-size: 18px;
  font-weight: 950;
}
.launch-teams span {
  color: #f0b400;
  font-size: 13px;
  letter-spacing: .08em;
}
.match-launch-card button,
.small-btn {
  width: 100%;
  margin-top: 10px;
}
.small-btn {
  display: block;
  margin: 8px 0;
  text-align: left;
}

/* v15.9 — sélection match façon écran public, cliquable */
.match-launch-grid {
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 18px;
}
.match-select-card {
  width: 100%;
  text-align: left;
  cursor: pointer;
  border: 2px solid rgba(255,196,0,.75);
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
  font-family: inherit;
  min-height: 0;
}
.match-select-card:hover,
.match-select-card:focus {
  transform: translateY(-2px);
  border-color: var(--club-yellow);
  box-shadow: 0 22px 42px rgba(0, 61, 136, .18);
  outline: none;
}
.match-select-card .public-court-title {
  font-size: 24px;
}
.match-select-card .public-match-label {
  margin-top: 4px;
}
.match-select-teams {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 10px;
  text-align: center;
  font-size: clamp(20px, 2.4vw, 30px);
  margin: 14px 0 8px;
}
.match-select-teams span {
  line-height: 1.08;
}
.match-select-teams em {
  font-style: normal;
  color: var(--club-yellow);
  font-size: 13px;
  font-weight: 950;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.mini-scoreline {
  font-size: 34px;
  margin: 8px 0 10px;
}
.mini-scoreline span {
  min-width: 58px;
  border-radius: 14px;
}
.launch-cta {
  margin-top: 12px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--club-blue), var(--club-blue-dark));
  color: #fff;
  text-align: center;
  padding: 11px 14px;
  font-weight: 950;
  box-shadow: 0 10px 22px rgba(0, 61, 136, .20);
}
@media (max-width: 520px) {
  .match-launch-grid { grid-template-columns: 1fr; }
  .match-select-teams { font-size: 22px; }
}

/* v17.1c - Dashboard visuel home */
.dashboard-section {
  display: block;
  margin-top: 18px;
}
.dashboard-grid {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 14px;
  max-width: 1120px;
  margin: 0 auto 14px;
}
.dash-card {
  background: linear-gradient(180deg, #ffffff 0%, #f7fbff 100%);
  border: 1px solid rgba(11, 59, 130, .14);
  border-radius: 22px;
  padding: 18px;
  box-shadow: 0 14px 34px rgba(11, 59, 130, .10);
}
.dash-main h2 {
  margin: 0 0 10px;
  color: #0b3b82;
  font-size: clamp(1.5rem, 3vw, 2.4rem);
}
.eyebrow.dark {
  color: #0b3b82;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
  margin: 0 0 8px;
}
.dash-meta {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.dash-meta span {
  background: rgba(11, 59, 130, .08);
  color: #173b71;
  border-radius: 999px;
  padding: 9px 12px;
  font-weight: 750;
}
.timeline {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.timeline-step {
  border-radius: 999px;
  padding: 10px 13px;
  background: #edf3fb;
  color: #45627f;
  font-weight: 900;
  border: 1px solid rgba(11, 59, 130, .10);
}
.timeline-step.active {
  background: #0b3b82;
  color: #fff;
  box-shadow: 0 8px 20px rgba(11, 59, 130, .24);
}
.court-status-grid {
  max-width: 1120px;
  margin: 0 auto 14px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.court-status-card {
  background: #fff;
  border: 1px solid rgba(11, 59, 130, .12);
  border-radius: 18px;
  padding: 14px;
  box-shadow: 0 10px 24px rgba(11, 59, 130, .08);
}
.court-status-card.is-live {
  border-color: rgba(23, 163, 74, .35);
}
.court-status-card.is-free {
  background: linear-gradient(180deg, #ffffff, #f7fff9);
}
.court-status-title {
  font-weight: 950;
  color: #0b3b82;
  font-size: 1.05rem;
}
.court-status-badge {
  display: inline-block;
  margin: 8px 0;
  border-radius: 999px;
  padding: 5px 9px;
  font-weight: 950;
  font-size: .75rem;
  background: #e8f7ee;
  color: #14743a;
}
.is-live .court-status-badge {
  background: #fff0d5;
  color: #9a5a00;
}
.court-status-match {
  color: #243b55;
  font-weight: 800;
  min-height: 40px;
}
.callout-banner {
  max-width: 1120px;
  margin: 0 auto 18px;
  padding: 14px 16px;
  border-radius: 18px;
  background: #fff7d6;
  border: 1px solid rgba(245, 183, 0, .45);
  color: #5d4300;
  font-weight: 850;
  box-shadow: 0 10px 24px rgba(245, 183, 0, .14);
}
@media (max-width: 760px) {
  .dashboard-grid { grid-template-columns: 1fr; }
  .court-status-grid { grid-template-columns: 1fr; }
  .dashboard-section { margin-top: 10px; }
}

/* v17.1d - Saisie matchs premium */
.premium-launch-card {
  position: relative;
  overflow: hidden;
  padding: 0;
  background: linear-gradient(180deg, #ffffff 0%, #f6f9ff 100%);
}
.premium-launch-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 7px;
  background: linear-gradient(90deg, var(--club-blue), var(--club-yellow));
}
.launch-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 14px;
  padding: 22px 20px 8px;
}
.launch-court {
  font-size: 28px;
  line-height: 1;
  color: var(--club-blue);
  font-weight: 950;
  letter-spacing: -.03em;
}
.launch-meta {
  margin-top: 7px;
  color: #68768e;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.launch-time-box {
  min-width: 72px;
  border-radius: 18px;
  padding: 10px 10px 8px;
  text-align: center;
  background: #eef5ff;
  border: 1px solid rgba(11,59,130,.12);
}
.launch-time-box span {
  display: block;
  color: var(--club-blue-dark);
  font-size: 20px;
  line-height: 1;
  font-weight: 950;
}
.launch-time-box small {
  display: block;
  margin-top: 4px;
  color: #6b7890;
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}
.launch-card-status {
  width: fit-content;
  margin: 6px 20px 2px;
  border-radius: 999px;
  padding: 7px 12px;
  font-size: 12px;
  font-weight: 950;
  letter-spacing: .08em;
}
.launch-card-status.status-next { background: #fff4bd; color: #7c5200; }
.launch-card-status.status-late { background: #fee2e2; color: #991b1b; }
.premium-teams {
  margin: 12px 18px 12px;
  padding: 18px 12px;
  border-radius: 20px;
  background: #ffffff;
  border: 1px solid rgba(11,59,130,.10);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.6);
}
.premium-teams span {
  color: #0a1f44;
  font-weight: 950;
}
.launch-referee {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0 20px 16px;
  padding: 11px 13px;
  border-radius: 16px;
  background: rgba(11,59,130,.06);
  color: #46546b;
  font-weight: 850;
}
.launch-referee span {
  color: var(--club-blue);
  font-weight: 950;
  text-align: right;
}
.premium-launch-card .launch-cta {
  margin: 0;
  border-radius: 0;
  padding: 14px 16px;
}
@media (max-width: 520px) {
  .launch-card-header { padding: 20px 16px 8px; }
  .launch-court { font-size: 24px; }
  .launch-referee { margin-left: 16px; margin-right: 16px; }
}

/* v17.2a.1 - Admin premium cleanup (visuel uniquement) */
.admin-premium-panel {
  max-width: 1180px;
  margin: 0 auto;
}
.admin-hero-card,
.admin-card {
  background: linear-gradient(180deg, #ffffff 0%, #f7faff 100%);
  border: 1px solid rgba(11, 59, 130, .10);
  border-radius: 24px;
  padding: 20px;
  box-shadow: 0 14px 34px rgba(11, 59, 130, .10);
}
.admin-hero-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
  overflow: hidden;
  position: relative;
}
.admin-hero-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 8px;
  background: linear-gradient(180deg, var(--club-blue), var(--club-yellow));
}
.admin-hero-card h3,
.admin-card h3 {
  margin: 2px 0 4px;
  color: var(--club-blue-dark);
}
.admin-lock-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  border-radius: 999px;
  padding: 9px 13px;
  font-weight: 950;
  color: var(--club-blue-dark);
  background: #fff3bc;
  border: 1px solid rgba(245, 183, 0, .35);
}
.admin-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}
.admin-card-wide {
  margin-bottom: 16px;
}
.admin-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 14px;
}
.admin-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 14px;
}
.admin-form-grid label {
  display: block;
  margin: 0;
  color: #4b5b73;
  font-weight: 900;
}
.admin-form-grid label span {
  display: block;
  margin-bottom: 6px;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .05em;
}
.admin-form-grid input,
.admin-list-panel input {
  width: 100%;
  border-radius: 14px;
  border: 1px solid rgba(11, 59, 130, .14);
  background: #fff;
  padding: 11px 12px;
  font-weight: 850;
  box-sizing: border-box;
}
.admin-actions-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}
.admin-actions-grid button,
.admin-primary,
.admin-card-head button {
  border-radius: 15px;
  box-shadow: none;
}
.admin-primary {
  width: 100%;
  background: linear-gradient(135deg, var(--club-blue), #0e55b3);
}
.admin-list-panel {
  margin-top: 12px;
  padding: 12px;
  border-radius: 18px;
  background: rgba(11, 59, 130, .045);
  border: 1px solid rgba(11, 59, 130, .08);
}
.admin-list-panel > div,
.admin-list-panel .card {
  border-radius: 16px;
  background: #fff;
  border: 1px solid rgba(11, 59, 130, .08);
}
@media (max-width: 980px) {
  .admin-grid { grid-template-columns: 1fr; }
  .admin-form-grid { grid-template-columns: 1fr; }
  .admin-hero-card { align-items: flex-start; flex-direction: column; }
}

/* v17.2a.2 - Forfait admin */
.admin-list-panel select {
  width: 100%;
  border-radius: 14px;
  border: 1px solid rgba(11, 59, 130, .14);
  background: #fff;
  padding: 11px 12px;
  font-weight: 850;
  box-sizing: border-box;
}
.forfeit-admin-grid {
  display: grid;
  grid-template-columns: 2fr 1.2fr .7fr .7fr auto;
  gap: 10px;
  align-items: end;
}
.forfeit-admin-grid label {
  margin: 0;
  font-weight: 900;
  color: #4b5b73;
}
.forfeit-admin-grid label span {
  display: block;
  margin-bottom: 6px;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .05em;
}
@media (max-width: 760px) {
  .forfeit-admin-grid { grid-template-columns: 1fr; }
}

/* v17.2a.4 - Admin match tools made clearly visible */
.admin-priority-tools {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin: 18px 0 22px;
}
.admin-priority-tools .admin-card {
  border: 2px solid rgba(15, 23, 42, 0.10);
  box-shadow: 0 14px 36px rgba(15, 23, 42, 0.10);
}
.admin-tool-forfeit {
  background: linear-gradient(135deg, rgba(255,255,255,0.98), rgba(254,242,242,0.98));
}
.admin-tool-reset {
  background: linear-gradient(135deg, rgba(255,255,255,0.98), rgba(239,246,255,0.98));
}
.admin-action-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 7px 11px;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.danger-badge { background: #fee2e2; color: #991b1b; }
.reset-badge { background: #dbeafe; color: #1d4ed8; }
.forfeit-admin-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  align-items: end;
}
.forfeit-admin-grid label {
  display: grid;
  gap: 6px;
  font-size: 13px;
  font-weight: 800;
}
.forfeit-admin-grid select,
.forfeit-admin-grid input {
  min-height: 42px;
  border-radius: 12px;
  border: 1px solid rgba(15,23,42,.14);
  padding: 9px 11px;
  font-size: 14px;
  background: #fff;
}
.forfeit-admin-grid button {
  min-height: 42px;
}
@media (max-width: 760px) {
  .admin-priority-tools { grid-template-columns: 1fr; }
  .forfeit-admin-grid { grid-template-columns: 1fr; }
}


/* v17.2a.6 - Admin actions toujours visibles */
.admin-tools-always-visible {
  margin: 14px 0 20px;
  padding: 18px;
  border-radius: 22px;
  background: linear-gradient(135deg, #ffffff 0%, #f7faff 100%);
  border: 2px solid rgba(11, 59, 130, .16);
  box-shadow: 0 16px 36px rgba(11, 59, 130, .12);
}
.admin-tools-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 14px;
}
.admin-tools-title h3 { margin: 2px 0 0; color: var(--club-blue-dark); }
.admin-tools-buttons {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.admin-big-action {
  min-height: 58px;
  font-size: 16px;
  font-weight: 900;
  border-radius: 18px;
}
@media (max-width: 760px) {
  .admin-tools-title { align-items: flex-start; flex-direction: column; }
  .admin-tools-buttons { grid-template-columns: 1fr; }
}


/* v17.2a8 admin tools */
.admin-prompt-tools{
  display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;margin:16px 0 18px;
}
.admin-big-action{
  min-height:72px;border-radius:18px;font-size:18px;font-weight:900;
  box-shadow:0 10px 26px rgba(0,0,0,.14);border:2px solid rgba(11,59,130,.18);
}
.admin-big-action.danger{
  background:#b42318;color:white;border-color:#b42318;
}
@media(max-width:720px){.admin-prompt-tools{grid-template-columns:1fr}.admin-big-action{min-height:64px;font-size:16px}}


.admin-big-action.pause {
  background: linear-gradient(135deg, #f59e0b, #f97316);
  color: #fff;
}
.pause-pill {
  background: #fff7ed !important;
  color: #9a3412 !important;
  border-color: #fed7aa !important;
}

/* v17.3a — écran public TV premium */
.premium-tv-screen {
  min-height: min(86vh, 980px);
  background:
    radial-gradient(circle at top left, rgba(255, 214, 0, .30), transparent 32%),
    linear-gradient(135deg, #06296b 0%, #0b55bd 55%, #061a3d 100%);
  border-radius: 32px;
  padding: clamp(18px, 2.2vw, 34px);
}
.premium-tv-header {
  align-items: center;
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(255,255,255,.18);
}
.public-brand-block {
  display: flex;
  align-items: center;
  gap: 16px;
}
.public-logo {
  width: clamp(52px, 5vw, 86px);
  height: clamp(52px, 5vw, 86px);
  object-fit: contain;
  filter: drop-shadow(0 8px 14px rgba(0,0,0,.22));
}
.public-tv-subtitle {
  margin-top: 4px;
  font-weight: 850;
  opacity: .88;
}
.premium-clock {
  font-size: clamp(22px, 2.4vw, 40px);
  padding: 12px 18px;
  background: rgba(255,255,255,.18);
}
.public-callout {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 14px;
  margin: 18px 0;
  padding: 14px 18px;
  border-radius: 22px;
  background: rgba(255, 214, 0, .94);
  color: #08225a;
  box-shadow: 0 18px 42px rgba(0,0,0,.16);
}
.public-callout span { font-weight: 950; text-transform: uppercase; letter-spacing: .08em; font-size: 12px; }
.public-callout b { font-size: clamp(18px, 2vw, 30px); }
.public-callout em { font-style: normal; font-weight: 900; }
.public-callout.is-calm { background: rgba(255,255,255,.90); }
.premium-public-courts {
  grid-template-columns: repeat(3, minmax(240px, 1fr));
  gap: clamp(12px, 1.3vw, 22px);
}
.premium-tv-card {
  min-height: 310px;
  display: flex;
  flex-direction: column;
  border: 0;
  background: rgba(255,255,255,.97);
  box-shadow: 0 22px 50px rgba(0,0,0,.22);
  position: relative;
  overflow: hidden;
}
.premium-tv-card:before {
  content: '';
  position: absolute;
  inset: 0 0 auto 0;
  height: 7px;
  background: #16a34a;
}
.premium-tv-card.is-live:before { background: #16a34a; }
.premium-tv-card.is-next:before { background: #f59e0b; }
.premium-tv-card.is-free:before { background: #cbd5e1; }
.premium-court-top { margin-bottom: 16px; }
.public-court-subtitle { color: #64748b; font-weight: 850; margin-top: 2px; }
.status-pill.is-live { background: #dcfce7; color: #166534; }
.status-pill.is-next { background: #ffedd5; color: #9a3412; }
.status-pill.is-free { background: #f1f5f9; color: #475569; }
.public-main-match {
  flex: 1;
  display: grid;
  align-content: center;
  gap: 5px;
  text-align: center;
}
.public-team {
  font-size: clamp(22px, 2.5vw, 38px);
  font-weight: 1000;
  line-height: 1.02;
  color: #071f53;
}
.public-vs {
  font-size: 12px;
  font-weight: 1000;
  letter-spacing: .20em;
  color: #8ba0bf;
  text-transform: uppercase;
}
.public-scoreline.premium {
  margin: 12px auto;
  color: #06296b;
}
.premium-ref {
  align-self: center;
  margin-bottom: 8px;
}
.public-waiting {
  margin: 14px auto;
  width: fit-content;
  border-radius: 999px;
  background: #eef5ff;
  color: #0b55bd;
  padding: 10px 14px;
  font-weight: 950;
}
.public-free-panel {
  flex: 1;
  display: grid;
  place-items: center;
  text-align: center;
  border-radius: 22px;
  background: linear-gradient(135deg, #eef5ff, #fff8cf);
  color: #06296b;
  padding: 24px;
}
.public-free-panel b { display:block; font-size: clamp(26px, 3vw, 44px); font-weight: 1000; }
.public-free-panel span { font-weight: 850; color: #64748b; }
.premium-next {
  border-top: 1px solid #dbe7f8;
  margin-top: auto;
  padding-top: 14px;
  display: grid;
  gap: 4px;
}
.premium-next span {
  color: #64748b;
  font-size: 11px;
  font-weight: 1000;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.premium-next b { color: #071f53; font-size: 18px; }
.premium-next em { font-style: normal; color: #0b55bd; font-weight: 850; }
.premium-next.is-empty b, .premium-next.is-empty em { color: #94a3b8; }
@media (max-width: 1180px) {
  .premium-public-courts { grid-template-columns: repeat(2, minmax(260px, 1fr)); }
}
@media (max-width: 760px) {
  .premium-public-courts { grid-template-columns: 1fr; }
  .public-callout { grid-template-columns: 1fr; }
  .public-brand-block { align-items: flex-start; }
}

/* v17.2b2 - Classements premium */
.ranking-phase {
  margin: 18px 0 26px;
}
.ranking-phase-title {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
  margin: 14px 0 14px;
}
.ranking-phase-title span {
  font-size: 1.45rem;
  font-weight: 900;
  letter-spacing: -0.03em;
  color: var(--ink, #102033);
}
.ranking-phase-title small {
  color: var(--muted, #64748b);
  font-weight: 700;
}
.ranking-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 16px;
}
.ranking-card,
.global-ranking-card {
  background: rgba(255,255,255,.96);
  border: 1px solid rgba(15, 23, 42, .08);
  border-radius: 24px;
  box-shadow: 0 20px 50px rgba(15, 23, 42, .10);
  padding: 16px;
  overflow: hidden;
}
.ranking-card-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}
.ranking-card-head h3 {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 900;
}
.ranking-card-head span {
  background: rgba(0, 78, 152, .10);
  color: #004e98;
  border-radius: 999px;
  padding: 6px 10px;
  font-size: .78rem;
  font-weight: 900;
}
.ranking-podium,
.global-top3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin: 10px 0 14px;
}
.ranking-podium-item,
.global-top-card {
  min-height: 84px;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(0, 78, 152, .11), rgba(255, 210, 0, .10));
  border: 1px solid rgba(0, 78, 152, .10);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 10px 8px;
}
.global-top-card.rank-1,
.ranking-podium-item.rank-1 {
  background: linear-gradient(180deg, rgba(255, 210, 0, .26), rgba(255,255,255,.72));
  transform: translateY(-3px);
}
.ranking-medal {
  font-size: 1.35rem;
  line-height: 1;
  margin-bottom: 5px;
}
.ranking-podium-item strong,
.global-top-card strong {
  font-size: .88rem;
  line-height: 1.05;
}
.ranking-podium-item small,
.global-top-card small {
  margin-top: 4px;
  color: var(--muted, #64748b);
  font-weight: 800;
}
.table-scroll {
  width: 100%;
  overflow-x: auto;
  border-radius: 16px;
  border: 1px solid rgba(15, 23, 42, .07);
}
.ranking-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  overflow: hidden;
  background: #fff;
}
.ranking-table th {
  background: #0f2744;
  color: #fff;
  font-size: .78rem;
  letter-spacing: .02em;
  text-transform: uppercase;
  padding: 11px 9px;
  text-align: left;
  white-space: nowrap;
}
.ranking-table td {
  padding: 11px 9px;
  border-bottom: 1px solid rgba(15, 23, 42, .07);
  white-space: nowrap;
}
.ranking-table tr:last-child td {
  border-bottom: 0;
}
.rank-row.rank-highlight td {
  background: rgba(255, 210, 0, .07);
}
.rank-badge {
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 10px;
  background: rgba(0, 78, 152, .12);
  color: #004e98;
  font-weight: 950;
}
.team-cell {
  min-width: 130px;
}
.score-cell {
  font-weight: 950;
  color: #004e98;
}
.diff-cell.positive {
  color: #12805c;
  font-weight: 900;
}
.diff-cell.negative {
  color: #b42318;
  font-weight: 900;
}
.global-ranking-card {
  margin-bottom: 20px;
}
.global-ranking-table .score-cell {
  font-size: 1.02rem;
}
@media (max-width: 720px) {
  .ranking-phase-title {
    align-items: flex-start;
    flex-direction: column;
  }
  .ranking-grid {
    grid-template-columns: 1fr;
  }
  .ranking-podium,
  .global-top3 {
    grid-template-columns: 1fr;
  }
  .ranking-podium-item,
  .global-top-card {
    min-height: 64px;
    flex-direction: row;
    justify-content: flex-start;
    gap: 10px;
    text-align: left;
  }
}

/* v17.3d - Appels équipes intelligents */
.public-callout.is-urgent {
  background: linear-gradient(135deg, #fff7ed, #ffffff);
  border: 2px solid rgba(249, 115, 22, .28);
  box-shadow: 0 18px 45px rgba(249, 115, 22, .16);
}
.public-callout.is-urgent span {
  color: #9a3412;
}
.public-callout.is-urgent b {
  color: #111827;
}
.public-callout.is-urgent em {
  color: #1e3a8a;
}
.public-callout.is-calm {
  border: 1px solid rgba(37, 99, 235, .15);
}


/* v17.2a10 - Correction score admin premium */
.admin-correction-list {
  display: grid;
  gap: 12px;
}
.admin-correction-card {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(320px, 1fr);
  gap: 14px;
  align-items: center;
  padding: 14px;
  border-radius: 20px;
  background: #fff;
  border: 1px solid rgba(11, 59, 130, .10);
  box-shadow: 0 12px 28px rgba(11, 59, 130, .07);
}
.admin-correction-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  color: #60708a;
  font-weight: 850;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.admin-correction-title {
  margin-top: 8px;
  font-size: clamp(17px, 2vw, 22px);
  font-weight: 950;
  color: #10203d;
}
.admin-correction-title strong {
  display: inline-block;
  margin: 0 10px;
  padding: 5px 12px;
  border-radius: 14px;
  background: rgba(251, 192, 45, .20);
  color: #0b3b82;
}
.admin-correction-sub {
  margin-top: 6px;
  color: #60708a;
  font-weight: 800;
}
.admin-correction-edit {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 10px;
  align-items: end;
}
.admin-correction-edit label {
  margin: 0;
  color: #4b5b73;
  font-weight: 950;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.admin-correction-edit input {
  margin-top: 6px;
  width: 100%;
  border-radius: 14px;
  border: 1px solid rgba(11, 59, 130, .14);
  background: #fff;
  padding: 11px 12px;
  font-weight: 950;
  font-size: 16px;
  box-sizing: border-box;
}
.admin-empty-state {
  padding: 16px;
  border-radius: 18px;
  background: #fff;
  border: 1px dashed rgba(11,59,130,.18);
  color: #60708a;
  font-weight: 850;
}
.match-status-badge.neutral {
  background: rgba(11, 59, 130, .10);
  color: #0b3b82;
}
@media (max-width: 980px) {
  .admin-correction-card { grid-template-columns: 1fr; }
  .admin-correction-edit { grid-template-columns: 1fr; }
}

/* v17.2a11 - Pause premium */
.pause-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255, 193, 7, 0.16);
  color: #7a4b00;
  border: 1px solid rgba(255, 193, 7, 0.35);
  font-weight: 700;
}
.admin-big-action.pause {
  background: linear-gradient(135deg, #facc15, #f59e0b);
  color: #1f2937;
}

/* v17.3f - Home polish + public live status fix */
.dashboard-section {
  background: linear-gradient(135deg, rgba(255,255,255,.98), rgba(245,248,255,.94));
  border: 1px solid rgba(11,59,130,.12);
  border-radius: 24px;
  padding: 18px;
  box-shadow: 0 18px 45px rgba(11,59,130,.10);
}
.dashboard-grid {
  gap: 14px;
}
.dash-card {
  border-radius: 20px;
  border: 1px solid rgba(11,59,130,.12);
  background: #fff;
  box-shadow: 0 10px 26px rgba(11,59,130,.08);
}
.dash-card strong,
.dash-main h2 {
  letter-spacing: -0.02em;
}
.dash-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.dash-meta span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(11,59,130,.07);
  color: #0b3b82;
  font-weight: 800;
}
.timeline {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.timeline-step {
  border-radius: 999px;
  padding: 9px 12px;
  border: 1px solid rgba(11,59,130,.12);
  background: #f6f8fc;
  font-weight: 900;
}
.timeline-step.active {
  background: #0b3b82;
  color: #fff;
  box-shadow: 0 10px 22px rgba(11,59,130,.22);
}
.court-status-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
.court-status-card {
  border-radius: 18px;
  padding: 13px;
  background: #fff;
  border: 1px solid rgba(11,59,130,.12);
}
.court-status-card.is-live {
  border-color: rgba(22,163,74,.35);
  background: linear-gradient(135deg, rgba(22,163,74,.10), #fff);
}
.court-status-card.is-free {
  background: linear-gradient(135deg, rgba(148,163,184,.12), #fff);
}
.court-status-title {
  font-weight: 1000;
  color: #0b3b82;
}
.court-status-badge {
  margin: 8px 0;
  width: fit-content;
  padding: 5px 9px;
  border-radius: 999px;
  background: #eef2f7;
  font-size: 11px;
  font-weight: 1000;
}
.is-live .court-status-badge {
  background: #16a34a;
  color: #fff;
}
.court-status-match {
  font-weight: 800;
  color: #111827;
}
.callout,
.dashboard-callout {
  border-radius: 18px;
  border: 1px solid rgba(245,158,11,.28);
  background: linear-gradient(135deg, rgba(245,158,11,.16), rgba(255,255,255,.95));
  padding: 13px 15px;
  font-weight: 850;
}
@media (max-width: 780px) {
  .court-status-grid { grid-template-columns: 1fr 1fr; }
  .dashboard-section { padding: 14px; border-radius: 18px; }
}
@media (max-width: 520px) {
  .court-status-grid { grid-template-columns: 1fr; }
}

/* v17.3g scoreboard polish */
.score-btn, .score-button { min-width:64px; min-height:64px; font-size:1.6rem; }
.score-display { font-size:3rem; font-weight:800; }
.finish-match-btn { padding:16px 24px; font-size:1.2rem; font-weight:700; }
.service-indicator { transform: scale(1.4); margin-left:10px; }


/* v17.3h - timeline premium + anti double lancement UX */
.timeline {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.timeline-premium-step {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 12px;
  border-radius: 999px;
  background: #eef4fb;
  color: #28496f;
  border: 1px solid rgba(11,59,130,.12);
  box-shadow: 0 4px 14px rgba(11,59,130,.06);
}
.timeline-premium-step .timeline-index {
  width: 24px;
  height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: #fff;
  color: #0b3b82;
  font-size: 12px;
  font-weight: 950;
}
.timeline-premium-step.done {
  background: rgba(15, 122, 68, .10);
  color: #0f6b40;
}
.timeline-premium-step.done .timeline-index {
  background: #0f7a44;
  color: #fff;
}
.timeline-premium-step.active {
  background: linear-gradient(135deg, #0b3b82, #1167c4);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 12px 26px rgba(11,59,130,.25);
}
.timeline-premium-step.active .timeline-index {
  background: #f7c948;
  color: #0b3b82;
}
.timeline-connector {
  width: 28px;
  height: 2px;
  border-radius: 999px;
  background: rgba(11,59,130,.22);
}
@media (max-width: 720px) {
  .timeline { gap: 6px; }
  .timeline-connector { display: none; }
  .timeline-premium-step { width: 100%; justify-content: flex-start; }
}

/* v17.3k chrono + prochain match */
.center-controls-k { gap: 14px; }
.match-chrono {
  min-width: 130px;
  padding: 12px 14px;
  border-radius: 18px;
  background: rgba(255,255,255,.14);
  border: 1px solid rgba(255,255,255,.24);
  color: #fff;
  text-align: center;
  box-shadow: 0 12px 30px rgba(0,0,0,.16);
}
.chrono-label {
  display: block;
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .12em;
  opacity: .82;
  margin-bottom: 4px;
}
.chrono-value {
  display: block;
  font-size: 1.45rem;
  line-height: 1;
  font-weight: 900;
}
.match-chrono-ended {
  background: rgba(245, 158, 11, .25);
  border-color: rgba(245, 158, 11, .7);
}
.match-chrono-ended .chrono-value {
  font-size: 1.02rem;
  color: #fff7ed;
}
.finish-btn-k {
  font-size: 1rem;
  padding: 14px 18px;
  border-radius: 999px;
  font-weight: 900;
}
@media (max-width: 720px) {
  .match-chrono { min-width: 110px; padding: 9px 11px; }
  .chrono-value { font-size: 1.18rem; }
  .match-chrono-ended .chrono-value { font-size: .9rem; }
}

/* v17.3o - reprise forcée des matchs en cours */
.force-resume-card {
  border: 2px solid rgba(13, 92, 167, 0.18);
  box-shadow: 0 14px 32px rgba(2, 28, 58, 0.10);
}
.section-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}
.section-title-row span {
  min-width: 28px;
  height: 28px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #ffd447;
  color: #09233f;
  font-weight: 900;
}
.resume-match-list {
  display: grid;
  gap: 10px;
}
.resume-match-btn {
  width: 100%;
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  gap: 10px;
  align-items: center;
  text-align: left;
  padding: 14px 16px;
  border-radius: 16px;
}
.resume-court {
  font-weight: 900;
  color: #0d5ca7;
}
.resume-teams {
  font-weight: 800;
}
.resume-score {
  font-size: 1.15rem;
  font-weight: 950;
  color: #09233f;
}
.resume-action {
  padding: 7px 10px;
  border-radius: 999px;
  background: #0d5ca7;
  color: white;
  font-weight: 900;
}
@media (max-width: 720px) {
  .resume-match-btn {
    grid-template-columns: 1fr auto;
  }
  .resume-court, .resume-teams {
    grid-column: 1 / -1;
  }
}


/* v17.3p - chrono/buzzer polish */
.match-chrono { position: relative; }
.match-chrono-ended {
  animation: chronoPulse 1s ease-in-out infinite;
}
@keyframes chronoPulse {
  0%,100% { transform: scale(1); }
  50% { transform: scale(1.04); }
}
.center-controls-k .match-chrono-ended::after {
  content: "🔔";
  position: absolute;
  right: -10px;
  top: -10px;
  font-size: 1.25rem;
}


/* v17.3q chrono visible */
.match-chrono {
  margin: 10px auto 8px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,.92);
  color: #0f172a;
  font-weight: 800;
  text-align: center;
  box-shadow: 0 8px 22px rgba(15,23,42,.14);
}
.match-chrono .chrono-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .08em;
  opacity: .7;
  margin-right: 8px;
}
.match-chrono .chrono-value {
  font-size: 20px;
}
.match-chrono-ended {
  background: #fee2e2;
  color: #991b1b;
}
