* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  background: #111827;
  color: #f9fafb;
}
.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 22px;
  background: #020617;
  border-bottom: 1px solid #334155;
}
.topbar h1 { margin: 0; font-size: 24px; }
.topbar nav a {
  color: #e5e7eb;
  margin-left: 16px;
  text-decoration: none;
  font-weight: bold;
}
.layout {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 18px;
  padding: 18px;
}
.card {
  background: #1f2937;
  border: 1px solid #374151;
  border-radius: 16px;
  padding: 18px;
  box-shadow: 0 10px 25px rgba(0,0,0,.25);
}
.wide { grid-column: 1 / -1; }
.chrono-card { text-align: center; }
.chrono {
  font-size: clamp(56px, 11vw, 150px);
  font-weight: 900;
  letter-spacing: 3px;
  font-variant-numeric: tabular-nums;
  margin: 15px 0;
}
.current-info { font-size: 24px; margin-bottom: 16px; }
.button-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin: 10px 0;
}
button {
  border: 0;
  border-radius: 12px;
  padding: 14px 16px;
  font-size: 18px;
  font-weight: 800;
  cursor: pointer;
  background: #e5e7eb;
  color: #111827;
}
button:hover { filter: brightness(1.08); }
.success { background: #22c55e; color: white; }
.danger { background: #ef4444; color: white; }
.warning { background: #f59e0b; color: #111827; }
.hint { color: #cbd5e1; }
.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(180px, 1fr));
  gap: 10px;
  margin-bottom: 12px;
}
.form-grid.five { grid-template-columns: repeat(5, minmax(120px, 1fr)); }
label { display: grid; gap: 6px; color: #d1d5db; }
input, select {
  width: 100%;
  padding: 12px;
  border-radius: 10px;
  border: 1px solid #475569;
  background: #0f172a;
  color: white;
  font-size: 16px;
}
.section-header { display: flex; justify-content: space-between; align-items: center; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th, td {
  padding: 10px;
  border-bottom: 1px solid #374151;
  text-align: left;
}
th { color: #93c5fd; }
tr.selected { background: #1e40af; }
.small-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.small-actions button { padding: 8px 10px; font-size: 14px; }
.status-ok { color: #22c55e; font-weight: bold; }
.status-bad { color: #ef4444; font-weight: bold; }
.status-warn { color: #f59e0b; font-weight: bold; }

.tv-body {
  background: radial-gradient(circle at top, #1e293b, #020617);
  overflow: hidden;
}
.tv-container {
  height: 100vh;
  display: grid;
  place-items: center;
  padding: 40px;
}
.tv-card {
  width: min(1400px, 95vw);
  text-align: center;
}
.tv-title { font-size: 54px; margin: 0 0 20px; }
.tv-rider { font-size: 44px; margin: 12px 0; }
.tv-horse { font-size: 38px; color: #cbd5e1; }
.tv-chrono {
  font-size: clamp(90px, 18vw, 260px);
  font-weight: 950;
  font-variant-numeric: tabular-nums;
  letter-spacing: 5px;
  margin: 25px 0;
}
.tv-score {
  display: flex;
  justify-content: center;
  gap: 50px;
  font-size: 42px;
  font-weight: 800;
}
.music-list { display: grid; gap: 10px; }
.music-row {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 10px;
  align-items: center;
  background: #111827;
  padding: 10px;
  border-radius: 12px;
}
@media (max-width: 900px) {
  .layout { grid-template-columns: 1fr; }
  .button-grid, .form-grid, .form-grid.five { grid-template-columns: 1fr; }
  .topbar { display: block; }
  .topbar nav a { display: inline-block; margin: 8px 10px 0 0; }
}

.score-live{display:flex;justify-content:space-between;align-items:center;background:#111827;border:1px solid #334155;border-radius:14px;padding:12px 16px;margin:10px 0;font-size:1.1rem}.score-live strong{font-size:2rem;color:#facc15}
.button { display: inline-block; text-align: center; text-decoration: none; border-radius: 12px; padding: 14px 16px; font-size: 18px; font-weight: 800; background: #e5e7eb; color: #111827; }
.button.big { padding: 18px 22px; }
.home-layout { display: grid; gap: 18px; padding: 18px; }
.hero-card { min-height: 260px; display:flex; justify-content:space-between; align-items:center; gap:20px; padding:32px; border-radius:22px; background: linear-gradient(135deg,#1e3a8a,#0f172a 65%); border:1px solid #334155; box-shadow:0 15px 35px rgba(0,0,0,.35); }
.hero-card h2 { font-size: clamp(34px, 5vw, 68px); margin: 8px 0; }
.eyebrow { color:#93c5fd; text-transform:uppercase; font-weight:900; letter-spacing:.12em; }
.hero-actions { display:grid; gap:12px; min-width:240px; }
.cards-grid { display:grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap:14px; }
.contest-card { background:#0f172a; border:1px solid #334155; border-radius:16px; padding:16px; }
.contest-card h3 { margin-top:0; color:#bfdbfe; }
.form-grid.four { grid-template-columns: repeat(4, minmax(150px, 1fr)); }
@media (max-width: 900px) { .layout { grid-template-columns: 1fr; } .form-grid, .form-grid.five, .form-grid.four { grid-template-columns: 1fr; } .button-grid { grid-template-columns: 1fr 1fr; } .hero-card { flex-direction:column; align-items:stretch; } }


/* LOGICHRONO - Login et identité */
.topbar-logo{height:52px;max-width:260px;object-fit:contain;background:white;border-radius:12px;padding:4px 10px;box-shadow:0 4px 16px rgba(0,0,0,.12)}
.logout-btn{border:1px solid rgba(255,255,255,.25);background:rgba(255,255,255,.1);color:#fff;border-radius:10px;padding:10px 14px;cursor:pointer;font-weight:700}.logout-btn:hover{background:rgba(255,255,255,.2)}
.login-body{margin:0;min-height:100vh;display:grid;grid-template-columns:45% 55%;font-family:Arial,Helvetica,sans-serif;color:#0d223b;background:#f7f9fc}.login-left{position:relative;min-height:100vh;background:linear-gradient(135deg,rgba(8,24,43,.96),rgba(13,34,59,.82)),radial-gradient(circle at 40% 30%,rgba(184,125,53,.38),transparent 35%);color:#fff;overflow:hidden}.login-left:before{content:"";position:absolute;inset:0;background:linear-gradient(120deg,transparent 15%,rgba(255,255,255,.06) 50%,transparent 75%)}.login-brand-small{position:absolute;top:28px;left:42px;z-index:2}.login-brand-small img{height:72px;max-width:280px;object-fit:contain;filter:drop-shadow(0 8px 20px rgba(0,0,0,.25))}.login-presentation{position:relative;z-index:2;max-width:520px;margin:32vh 7vw 0}.login-presentation h1{font-size:58px;margin:0 0 18px;font-style:italic}.login-presentation h1 span{color:#fff}.login-presentation h1 strong{color:#b77d35}.login-presentation p{font-size:25px;line-height:1.35;margin-bottom:34px}.feature{display:flex;gap:16px;align-items:center;margin:18px 0;padding:14px;background:rgba(255,255,255,.08);border:1px solid rgba(255,255,255,.15);border-radius:16px;backdrop-filter:blur(4px)}.feature b{display:grid;place-items:center;width:52px;height:52px;border-radius:14px;border:1px solid rgba(255,255,255,.22);color:#d49a48;font-size:25px}.feature div{font-size:16px;line-height:1.45}.login-copy{position:absolute;bottom:28px;left:42px;color:rgba(255,255,255,.75);z-index:2}.login-right{display:flex;align-items:center;justify-content:center;flex-direction:column;padding:40px}.login-card{width:min(620px,86vw);background:#fff;border-radius:18px;padding:48px 56px;box-shadow:0 22px 70px rgba(13,34,59,.15);border:1px solid #edf1f7;text-align:center}.login-logo{height:110px;max-width:440px;object-fit:contain;margin-bottom:18px}.login-card h2{font-size:34px;margin:8px 0;color:#0d223b}.login-card>p{color:#59677a;font-size:18px;margin-bottom:28px}.login-card label{text-align:left;display:block;font-weight:800;color:#0d223b;margin:18px 0 8px}.login-card input{width:100%;box-sizing:border-box;border:1px solid #d9e0ea;border-radius:10px;padding:16px 18px;font-size:16px;outline:none}.login-card input:focus{border-color:#b77d35;box-shadow:0 0 0 4px rgba(183,125,53,.12)}.login-options{display:flex;justify-content:space-between;align-items:center;margin:14px 0}.check{display:flex!important;align-items:center;gap:8px;font-weight:500!important;color:#59677a!important;margin:0!important}.check input{width:auto}.login-button{width:100%;border:0;border-radius:10px;background:#092746;color:#fff;padding:17px;font-size:18px;font-weight:800;cursor:pointer;box-shadow:0 10px 22px rgba(9,39,70,.22)}.login-button:hover{background:#0d355f}.outline-button{width:100%;border:1px solid #d9e0ea;border-radius:10px;background:white;color:#0d223b;padding:15px;font-size:17px;font-weight:800;cursor:pointer}.outline-button:hover{border-color:#b77d35;color:#9a682c}.separator{display:flex;align-items:center;margin:22px 0;color:#8b98aa}.separator:before,.separator:after{content:"";flex:1;height:1px;background:#e6ebf2}.separator span{padding:0 16px}.hidden{display:none}.login-message{min-height:22px;margin-bottom:8px;font-weight:700}.login-message.bad{color:#b00020}.login-message.ok{color:#16803a}.register-box{padding:14px;border:1px dashed #d9e0ea;border-radius:14px;margin-bottom:14px}.default-login{font-size:13px!important;color:#728096!important;margin:16px 0 0!important}.login-footer{margin-top:24px;color:#59677a}.home-body .hero-card{background:linear-gradient(135deg,#0d223b,#193d63);color:white}.home-body .eyebrow{color:#d49a48;font-weight:900}
@media(max-width:900px){.login-body{grid-template-columns:1fr}.login-left{min-height:auto;padding:30px}.login-brand-small{position:static}.login-presentation{margin:40px 0 20px}.login-copy{position:static}.login-right{padding:24px}.login-card{padding:30px 22px}.login-logo{height:78px}.login-presentation h1{font-size:42px}}
.soft-sep{border:0;border-top:1px solid rgba(148,163,184,.35);margin:18px 0}
.check-line{display:flex;align-items:center;gap:8px;font-weight:700;color:#0f1f33}
.check-line input{width:18px;height:18px;accent-color:#b8843b}
.refus-line{color:#8a2d2d}
#obstaclesSettingsBody select{min-width:140px;padding:8px 10px;border-radius:10px;border:1px solid #d5dde8;background:#fff;color:#0f1f33;font-weight:700}


/* V13 - tableau de fautes plus visible */
.obstacle-panel{border:2px solid #b8843b; box-shadow:0 0 0 4px rgba(184,132,59,.10), 0 12px 35px rgba(15,31,51,.12)}
.obstacle-score-table{min-width:900px;border-collapse:separate;border-spacing:0}
.obstacle-score-table th{background:#0f1f33;color:white;position:sticky;left:0;z-index:2}
.obstacle-score-table td,.obstacle-score-table th{text-align:center;padding:14px 10px;border-bottom:1px solid #e6eaf0;border-right:1px solid #e6eaf0}
.obstacle-score-table small{display:block;color:#d9b276;font-weight:700;margin-top:4px}
.score-row th{font-size:16px;text-align:left;min-width:130px}
.score-row td{background:#fff}
.refus-row td{background:#fff8ee}
.big-check{width:30px;height:30px;accent-color:#b8843b;cursor:pointer}
.empty-line{padding:22px!important;color:#7b8794;font-weight:700;text-align:left!important}

/* V14 - tableau de fautes rapproché du chrono */
.obstacle-panel{border:2px solid rgba(184,132,59,.25);box-shadow:0 16px 36px rgba(15,31,51,.10)}
.plans-cell{min-width:150px}
.plan-check{display:flex;align-items:center;justify-content:center;gap:8px;margin:4px 0;font-size:12px;font-weight:700;color:#0f1f33;white-space:nowrap}
.fall-box{display:flex;align-items:center;gap:18px;flex-wrap:wrap;justify-content:flex-start;padding:12px;background:#fff8ee;border-radius:14px;border:1px solid #efd7b0;color:#0f1f33;font-weight:700}
.fall-box select{min-width:210px}

/* V15 - identité visuelle LogiChrono renforcée */
:root{--lc-navy:#0d223b;--lc-blue:#163b62;--lc-gold:#b8843b;--lc-gold2:#d7a35a;--lc-soft:#f6f2ea;--lc-card:#10263f;--lc-border:rgba(216,163,90,.32)}
body{background:radial-gradient(circle at top left,rgba(216,163,90,.16),transparent 34%),linear-gradient(135deg,#071526,#0d223b 48%,#06111f);color:#f8fafc}
.topbar{background:rgba(7,21,38,.92);backdrop-filter:blur(12px);border-bottom:1px solid var(--lc-border);box-shadow:0 10px 30px rgba(0,0,0,.25);position:sticky;top:0;z-index:20}
.topbar nav a{padding:10px 12px;border-radius:999px;color:#f8fafc}.topbar nav a:hover{background:rgba(216,163,90,.16);color:#ffd99b}
.logic-main{grid-template-columns:minmax(460px,1fr) minmax(360px,.75fr);gap:20px;padding:22px;background:linear-gradient(180deg,rgba(255,255,255,.03),transparent)}
.card{background:linear-gradient(180deg,rgba(16,38,63,.95),rgba(10,25,43,.96));border:1px solid var(--lc-border);box-shadow:0 18px 44px rgba(0,0,0,.28);border-radius:22px}
.card h2,.card h3{color:#ffe2ad;letter-spacing:.01em}.hint{color:#d7deea}
.chrono-card{border:1px solid rgba(216,163,90,.55);background:radial-gradient(circle at top,rgba(184,132,59,.18),transparent 42%),linear-gradient(180deg,#102b48,#071526)}
.chrono{color:#fff;text-shadow:0 0 24px rgba(216,163,90,.42);background:rgba(0,0,0,.18);border:1px solid rgba(255,255,255,.08);border-radius:24px;padding:12px 6px}
.current-info{color:#ffe7bf}.score-live{background:rgba(0,0,0,.25);border-color:rgba(216,163,90,.45)}.score-live strong{color:#ffd36f}
button,.button{background:linear-gradient(180deg,#fff7e6,#d7a35a);color:#071526;border:1px solid rgba(255,255,255,.18);box-shadow:0 10px 20px rgba(0,0,0,.16)}
button:hover,.button:hover{transform:translateY(-1px);filter:brightness(1.04)}.success{background:linear-gradient(180deg,#34d399,#128755);color:white}.danger{background:linear-gradient(180deg,#fb7185,#b91c1c);color:white}.warning{background:linear-gradient(180deg,#fbbf24,#c57912);color:#071526}
input,select{background:rgba(6,17,31,.88);border:1px solid rgba(216,163,90,.35);color:#fff}input:focus,select:focus{outline:2px solid rgba(216,163,90,.28);border-color:var(--lc-gold2)}
.table-wrap{border-radius:16px;border:1px solid rgba(216,163,90,.18);background:rgba(2,6,23,.22)}
th{color:#ffd99b;background:rgba(5,15,28,.55)}td{border-bottom-color:rgba(255,255,255,.08)}
.obstacle-panel{grid-column:1 / -1;order:-1;border:2px solid rgba(216,163,90,.55);background:radial-gradient(circle at top right,rgba(216,163,90,.16),transparent 32%),linear-gradient(180deg,#112d4c,#0a1a2e)}
.obstacle-score-table th{background:#071526;color:#ffd99b}.obstacle-score-table td,.obstacle-score-table th{border-color:rgba(216,163,90,.18)}.score-row td{background:rgba(255,255,255,.94);color:#071526}.refus-row td{background:#fff5e6}.big-check{accent-color:var(--lc-gold)}
.ranking-panel{border:2px solid rgba(59,130,246,.24)}.ranking-badge{padding:8px 12px;border-radius:999px;background:rgba(216,163,90,.14);color:#ffd99b;font-weight:900;border:1px solid rgba(216,163,90,.35)}
.ranking-panel tbody tr:first-child td{background:rgba(216,163,90,.11);font-weight:800}.ranking-panel tbody tr:nth-child(2) td{background:rgba(148,163,184,.08)}.ranking-panel tbody tr:nth-child(3) td{background:rgba(184,132,59,.07)}
.modal-backdrop{position:fixed;inset:0;background:rgba(0,0,0,.62);display:grid;place-items:center;z-index:100;padding:20px}.modal-backdrop.hidden{display:none}.modal-card{width:min(520px,94vw);background:linear-gradient(180deg,#fff,#f7f0e6);color:#0d223b;border-radius:24px;padding:28px;box-shadow:0 30px 90px rgba(0,0,0,.45);border:2px solid rgba(184,132,59,.35)}.modal-card h2{margin-top:0;color:#0d223b}.modal-subtitle{color:#526070}.fall-time-box{background:#0d223b;color:white;border-radius:16px;padding:16px;margin:16px 0;font-size:20px;text-align:center}.fall-time-box strong{color:#ffd36f}.modal-actions{display:flex;gap:12px;justify-content:flex-end;margin-top:18px}.fall-modal label{color:#0d223b;font-weight:900}.fall-modal select{background:white;color:#0d223b;border-color:#d8a35a}
.fall-box{background:linear-gradient(180deg,#fff7e6,#ffefd3);border-color:#d8a35a}.fall-box button{padding:8px 12px;font-size:14px}
@media(max-width:900px){.logic-main{grid-template-columns:1fr}.obstacle-panel{order:0}.modal-actions{flex-direction:column}}


/* ===== LogiChrono V16 : panneaux redimensionnables / déplaçables / réductibles ===== */
.logic-main {
  align-items: start;
}
.panel-card {
  position: relative;
  resize: both;
  overflow: auto;
  min-width: 320px;
  min-height: 96px;
  max-width: 100%;
  transition: box-shadow .15s ease, transform .15s ease, opacity .15s ease;
}
.panel-card.dragging {
  opacity: .55;
  transform: scale(.99);
  box-shadow: 0 22px 50px rgba(0,0,0,.28);
}
.panel-card.drag-over {
  outline: 3px dashed rgba(212, 175, 55, .75);
  outline-offset: 6px;
}
.panel-toolbar {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 8px;
  margin: -4px 0 10px 0;
  user-select: none;
}
.panel-toolbar button {
  border: 1px solid rgba(255,255,255,.16);
  background: rgba(10,22,43,.78);
  color: #fff;
  border-radius: 12px;
  padding: 7px 10px;
  font-size: 13px;
  cursor: pointer;
}
.panel-toolbar button:hover {
  background: rgba(212,175,55,.24);
}
.panel-drag-handle {
  cursor: grab;
}
.panel-drag-handle:active {
  cursor: grabbing;
}
.panel-content {
  transition: max-height .2s ease, opacity .15s ease;
}
.panel-card.collapsed {
  min-height: 70px !important;
  height: 78px !important;
  resize: horizontal;
}
.panel-card.collapsed .panel-content {
  display: none;
}
.panel-card.collapsed h2,
.panel-card.collapsed .section-header {
  margin-bottom: 0;
}
.panel-help {
  margin: 8px 0 0 0;
  color: rgba(255,255,255,.68);
  font-size: 13px;
}

/* V17 - tableau des fautes placé directement sous le chrono */
.chrono-with-faults {
  grid-column: 1 / -1;
}
.chrono-with-faults .chrono {
  margin-bottom: 10px;
}
.faults-direct-zone {
  margin: 8px auto 18px;
  padding: 14px;
  border: 1px solid rgba(216,163,90,.45);
  border-radius: 18px;
  background: rgba(7,21,38,.72);
  text-align: left;
}
.faults-direct-zone h2 {
  margin-top: 0;
  text-align: center;
  color: #f8d49b;
}
.faults-direct-zone .table-wrap {
  max-height: 360px;
  overflow: auto;
}
.chrono-with-faults .form-grid {
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}


/* ===== LogiChrono V18 : tableaux redimensionnables ===== */
.table-wrap.resizable-table {
  resize: both;
  overflow: auto;
  min-width: 280px;
  min-height: 130px;
  max-width: 100%;
  position: relative;
}
.table-wrap.resizable-table::after {
  content: "↘";
  position: sticky;
  right: 8px;
  bottom: 6px;
  float: right;
  color: #ffd99b;
  background: rgba(7,21,38,.82);
  border: 1px solid rgba(216,163,90,.35);
  border-radius: 10px;
  padding: 2px 7px;
  font-size: 14px;
  pointer-events: none;
}
.table-size-toolbar {
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: flex-end;
  margin: 8px 0 8px 0;
  flex-wrap: wrap;
}
.table-size-toolbar button {
  padding: 7px 10px;
  font-size: 13px;
  border-radius: 10px;
  background: rgba(10,22,43,.78);
  color: #fff;
  border: 1px solid rgba(255,255,255,.16);
}
.table-size-toolbar .table-size-hint {
  color: rgba(255,255,255,.68);
  font-size: 12px;
  margin-right: auto;
}
th.resizable-col {
  position: relative;
  user-select: none;
}
.col-resizer {
  position: absolute;
  top: 0;
  right: -4px;
  width: 9px;
  height: 100%;
  cursor: col-resize;
  z-index: 5;
}
.col-resizer:hover {
  background: rgba(216,163,90,.35);
}
body.col-resizing {
  cursor: col-resize !important;
  user-select: none !important;
}

/* ===== LogiChrono V20 : interface simplifiée + thème clair/sombre ===== */
:root{
  --lc-bg:#08111f;
  --lc-bg2:#0f1b2e;
  --lc-card:#132238;
  --lc-card2:#172a45;
  --lc-border:#2f496a;
  --lc-text:#f8fafc;
  --lc-muted:#c7d2e0;
  --lc-blue:#2563eb;
  --lc-gold:#f5b942;
  --lc-red:#ef4444;
  --lc-green:#22c55e;
}
body{
  background:
    radial-gradient(circle at 15% 0%, rgba(245,185,66,.18), transparent 28%),
    radial-gradient(circle at 90% 12%, rgba(37,99,235,.22), transparent 34%),
    linear-gradient(135deg,var(--lc-bg),var(--lc-bg2));
  color:var(--lc-text);
}
body.light-theme{
  --lc-bg:#eef4fb;
  --lc-bg2:#f8fbff;
  --lc-card:#ffffff;
  --lc-card2:#f3f7fb;
  --lc-border:#c8d6e5;
  --lc-text:#0f172a;
  --lc-muted:#475569;
  background:linear-gradient(135deg,#edf4fc,#ffffff);
  color:var(--lc-text);
}
.topbar{
  background:linear-gradient(90deg,#07111f,#0e2a4f 55%,#07111f);
  border-bottom:2px solid var(--lc-gold);
  position:sticky; top:0; z-index:20;
}
body.light-theme .topbar{background:linear-gradient(90deg,#ffffff,#e7f0fb);}
.card{
  background:linear-gradient(180deg,var(--lc-card),var(--lc-card2));
  border:1px solid var(--lc-border);
  box-shadow:0 18px 45px rgba(0,0,0,.28);
}
body.light-theme .card{box-shadow:0 12px 28px rgba(15,23,42,.12);}
.card h2,.card h3{letter-spacing:.2px;}
.card h2::before{content:'';display:inline-block;width:8px;height:24px;margin-right:10px;border-radius:999px;background:var(--lc-gold);vertical-align:-5px;}
.chrono-card{
  border:2px solid rgba(245,185,66,.55);
  background:radial-gradient(circle at 50% 0%,rgba(245,185,66,.13),transparent 28%),linear-gradient(180deg,var(--lc-card),var(--lc-card2));
}
.chrono{
  color:var(--lc-gold);
  text-shadow:0 0 22px rgba(245,185,66,.28);
  background:rgba(2,6,23,.35);
  border:1px solid rgba(245,185,66,.25);
  border-radius:26px;
  padding:10px 16px;
}
body.light-theme .chrono{background:#f8fafc;color:#1e3a8a;text-shadow:none;}
button,.button{
  border-radius:14px;
  transition:transform .12s ease, filter .12s ease, box-shadow .12s ease;
}
button:hover,.button:hover{transform:translateY(-1px);box-shadow:0 10px 18px rgba(0,0,0,.18);}
.theme-toggle{
  padding:10px 12px;
  font-size:14px;
  background:var(--lc-gold);
  color:#111827;
  margin-right:10px;
}
input,select{
  background:#07111f;
  border-color:var(--lc-border);
  color:#fff;
}
body.light-theme input,body.light-theme select{background:#fff;color:#0f172a;}
th{color:#93c5fd;text-transform:uppercase;font-size:12px;letter-spacing:.05em;}
body.light-theme th{color:#1d4ed8;}
.table-wrap{border:1px solid var(--lc-border);border-radius:16px;background:rgba(2,6,23,.16);}
.obstacle-score-table td,.obstacle-score-table th{text-align:center;vertical-align:middle;}
.plan-check{
  display:flex;align-items:center;justify-content:space-between;gap:8px;
  padding:8px;border-radius:12px;background:rgba(255,255,255,.04);margin:4px 0;
}
body.light-theme .plan-check{background:#eef4fb;}
.refus-counter{
  min-width:76px;min-height:62px;border:2px solid var(--lc-border);
  background:rgba(255,255,255,.07);color:var(--lc-text);display:grid;place-items:center;gap:0;
}
.refus-counter span{font-size:28px;font-weight:950;line-height:1;color:var(--lc-gold);}
.refus-counter small{font-size:11px;color:var(--lc-muted);}
.refus-counter.active{border-color:var(--lc-gold);box-shadow:0 0 0 3px rgba(245,185,66,.14);}
.faults-direct-zone{margin-top:12px;text-align:left;}
.score-live{background:linear-gradient(90deg,rgba(37,99,235,.25),rgba(245,185,66,.18));border:1px solid var(--lc-border);}
.ranking-panel{border-color:rgba(34,197,94,.45);}
.panel-toolbar{background:rgba(255,255,255,.04);border-radius:14px;padding:8px;}
body.light-theme .panel-toolbar{background:#edf4fb;}
@media (max-width: 900px){
  .layout{grid-template-columns:1fr;padding:10px;}
  .form-grid,.form-grid.four,.form-grid.five{grid-template-columns:1fr!important;}
  .button-grid{grid-template-columns:1fr 1fr;}
  .topbar{display:block}.topbar nav{display:flex;gap:8px;flex-wrap:wrap;margin-top:10px}.topbar nav a{margin-left:0}
}


/* ===== LogiChrono V21 : correction cases faute/refus + couleurs plus visibles ===== */
.obstacle-score-table{
  border:2px solid var(--lc-gold)!important;
  box-shadow:0 0 0 3px rgba(245,185,66,.18);
}
.obstacle-score-table th{
  background:#020617!important;
  color:#ffd166!important;
  border-color:#f5b942!important;
  font-size:14px!important;
}
.obstacle-score-table td{
  border:1px solid rgba(245,185,66,.35)!important;
}
.score-row td{
  background:#f8fafc!important;
  color:#0f172a!important;
}
.refus-row td{
  background:#fff1d6!important;
}
.plan-check{
  background:#eaf2ff!important;
  color:#0f172a!important;
  border:2px solid #93c5fd!important;
  min-width:132px;
}
.plan-check:hover{
  border-color:#2563eb!important;
  box-shadow:0 0 0 3px rgba(37,99,235,.18);
}
.big-check{
  width:34px!important;
  height:34px!important;
  accent-color:#16a34a!important;
}
.refus-counter{
  min-width:88px!important;
  min-height:72px!important;
  border:3px solid #f59e0b!important;
  background:#fff7ed!important;
  color:#111827!important;
  border-radius:16px!important;
  cursor:pointer!important;
}
.refus-counter span{
  color:#dc2626!important;
  font-size:34px!important;
}
.refus-counter small{
  color:#7c2d12!important;
  font-weight:900!important;
}
.refus-counter.active{
  background:#fee2e2!important;
  border-color:#dc2626!important;
  box-shadow:0 0 0 4px rgba(220,38,38,.18)!important;
}
body.light-theme .score-row td,
body.light-theme .plan-check,
body.light-theme .refus-counter{
  color:#0f172a!important;
}
.chrono-card .button-grid button#btnFault,
.chrono-card .button-grid button#btnRefus{
  font-size:18px;
  font-weight:950;
  border:2px solid #ffd166;
}
#btnFault{background:linear-gradient(180deg,#fde68a,#f59e0b)!important;color:#111827!important;}
#btnRefus{background:linear-gradient(180deg,#fecaca,#dc2626)!important;color:white!important;}


/* LogiChrono V25 - QR code public + secondes chrono */
.chrono-seconds-box{margin:8px auto 14px;display:inline-flex;gap:10px;align-items:center;justify-content:center;padding:10px 18px;border-radius:16px;background:linear-gradient(135deg,#f5c451,#fff2b3);color:#071b3a;font-weight:800;box-shadow:0 10px 30px rgba(0,0,0,.22)}
.chrono-seconds-box strong{font-size:1.35rem}.qr-home-layout{display:grid;grid-template-columns:1fr 280px;gap:22px;align-items:center}.qr-box{background:#fff;border-radius:24px;padding:18px;text-align:center;box-shadow:0 16px 40px rgba(0,0,0,.25)}.qr-box img{width:240px;max-width:100%;height:auto}.public-url-line{word-break:break-all;font-weight:700}.public-url-line span{color:#f5c451}.public-body{min-height:100vh;background:linear-gradient(135deg,#071b3a,#0b1020);color:#fff}.public-results-page{max-width:1200px;margin:0 auto;padding:28px}.public-header{display:flex;gap:20px;align-items:center;margin-bottom:24px}.public-header img{width:130px;background:#fff;border-radius:18px;padding:10px}.public-header h1{font-size:2.4rem;margin:0}.public-results-content .card{margin-bottom:18px}.public-table{width:100%;border-collapse:collapse}.public-table th,.public-table td{padding:12px;border-bottom:1px solid rgba(255,255,255,.12);text-align:left}.public-table th{background:rgba(245,196,81,.18);color:#f5c451}.center{text-align:center}.poster-body{background:#f3f5f8;color:#071b3a}.qr-poster{min-height:100vh;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;padding:40px}.poster-logo{width:220px;margin-bottom:18px}.poster-qr{width:430px;max-width:80vw;background:#fff;border-radius:30px;padding:24px;box-shadow:0 18px 50px rgba(0,0,0,.22)}.poster-url{font-size:1.1rem;font-weight:800;word-break:break-all}.no-print{margin-top:24px}@media(max-width:800px){.qr-home-layout{grid-template-columns:1fr}.qr-box img{width:210px}.public-results-page{padding:14px}.public-header{flex-direction:column;text-align:center}.public-table{font-size:.85rem}.poster-qr{width:300px}}@media print{.no-print{display:none}.qr-poster{padding:20px}.poster-body{background:#fff}}

/* V26 - page publique QR code live */
.public-live-panel{display:grid;grid-template-columns:1fr 310px;gap:18px;align-items:center;margin:18px 0 24px;padding:22px;border:1px solid rgba(245,196,81,.35);border-radius:28px;background:linear-gradient(135deg,rgba(245,196,81,.20),rgba(42,84,160,.28));box-shadow:0 24px 70px rgba(0,0,0,.25)}
.public-live-panel h2{font-size:2rem;margin:6px 0;color:#fff}.public-live-panel p{margin:0;color:#dce8ff}.public-label{display:inline-block;text-transform:uppercase;letter-spacing:.12em;font-size:.78rem;color:#f5c451;font-weight:900}.public-live-time{background:rgba(255,255,255,.96);color:#071b3a;border-radius:24px;padding:18px;text-align:center;box-shadow:0 18px 45px rgba(0,0,0,.22)}.public-live-time span{display:block;font-weight:900;color:#2a54a0;text-transform:uppercase;letter-spacing:.09em;font-size:.78rem}.public-live-time strong{display:block;font-size:3rem;line-height:1;color:#071b3a;margin:8px 0}.public-live-time small{font-size:1.15rem;font-weight:900;color:#f0a400}.public-live-tag{font-size:.85rem;background:#f5c451;color:#071b3a;border-radius:999px;padding:5px 10px;margin-left:8px}.active-public-epreuve{border:1px solid rgba(245,196,81,.5)!important;box-shadow:0 12px 45px rgba(245,196,81,.14)}.public-table .not-passed{opacity:.62}.public-table .passed{background:rgba(255,255,255,.035)}.public-table .eliminated{background:rgba(239,68,68,.12)}.public-badge{display:inline-block;padding:6px 10px;border-radius:999px;font-size:.78rem;font-weight:900;white-space:nowrap}.public-badge.ok{background:rgba(34,197,94,.20);color:#86efac}.public-badge.wait{background:rgba(148,163,184,.20);color:#cbd5e1}.public-badge.danger{background:rgba(239,68,68,.22);color:#fecaca}.public-badge.muted{background:rgba(245,196,81,.18);color:#fde68a}@media(max-width:800px){.public-live-panel{grid-template-columns:1fr;padding:16px}.public-live-panel h2{font-size:1.45rem}.public-live-time strong{font-size:2.35rem}.public-table th,.public-table td{padding:9px 8px}.public-table{font-size:.78rem}}

/* LogiChrono V27 */
.compact-actions{display:flex;gap:.55rem;flex-wrap:wrap;margin-top:.8rem}.contest-card .danger{background:#b91c1c;color:white}.edit-result-modal{max-width:760px}.check-grid label{display:flex;align-items:center;gap:.55rem;background:rgba(255,255,255,.07);border:1px solid rgba(148,163,184,.25);border-radius:14px;padding:.8rem}.modal-card input[type="checkbox"]{width:22px;height:22px}.table-wrap td[contenteditable]{outline:1px dashed rgba(37,99,235,.25);background:rgba(255,255,255,.035)}.table-wrap td[contenteditable]:focus{outline:2px solid var(--accent,#f4c542);background:rgba(244,197,66,.15)}

/* ===== LogiChrono V28 - refonte visuelle propre ===== */
:root{
  --lc-bg:#07111f;
  --lc-bg2:#0b1b31;
  --lc-card:rgba(15, 31, 53, .92);
  --lc-card2:rgba(10, 23, 39, .96);
  --lc-line:rgba(255,255,255,.12);
  --lc-text:#f8fafc;
  --lc-muted:#a9b7ca;
  --lc-blue:#1e5eff;
  --lc-cyan:#20d6ff;
  --lc-gold:#f2b84b;
  --lc-green:#22c55e;
  --lc-red:#ef4444;
  --lc-orange:#fb923c;
  --lc-shadow:0 22px 60px rgba(0,0,0,.35);
}
html{scroll-behavior:smooth;}
body{
  background:
    radial-gradient(circle at 15% 5%, rgba(32,214,255,.20), transparent 28%),
    radial-gradient(circle at 85% 0%, rgba(242,184,75,.14), transparent 26%),
    linear-gradient(135deg,var(--lc-bg),#020617 60%,#091527);
  color:var(--lc-text);
  min-height:100vh;
}
body:before{
  content:"";
  position:fixed;
  inset:0;
  pointer-events:none;
  background-image:linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px),linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size:42px 42px;
  mask-image:linear-gradient(to bottom, rgba(0,0,0,.75), transparent 80%);
  z-index:-1;
}
.topbar{
  position:sticky;
  top:0;
  z-index:20;
  background:rgba(3,10,22,.82)!important;
  backdrop-filter:blur(16px);
  border-bottom:1px solid rgba(32,214,255,.20)!important;
  box-shadow:0 12px 34px rgba(0,0,0,.28);
}
.topbar-logo{background:rgba(255,255,255,.96);border:1px solid rgba(242,184,75,.45);}
.topbar nav{display:flex;align-items:center;gap:10px;flex-wrap:wrap;}
.topbar nav a,.logout-btn,.theme-toggle{
  margin-left:0!important;
  border:1px solid rgba(255,255,255,.12)!important;
  background:rgba(255,255,255,.07)!important;
  color:#eaf6ff!important;
  border-radius:999px!important;
  padding:10px 14px!important;
  font-size:14px!important;
  line-height:1!important;
  transition:.18s ease;
}
.topbar nav a:hover,.logout-btn:hover,.theme-toggle:hover{transform:translateY(-1px);border-color:rgba(32,214,255,.55)!important;background:rgba(32,214,255,.14)!important;}
.layout,.home-layout{padding:22px;gap:22px;}
.card,.contest-card,.modal-card{
  background:linear-gradient(180deg, rgba(15,31,53,.94), rgba(9,21,37,.94))!important;
  border:1px solid rgba(255,255,255,.12)!important;
  border-radius:24px!important;
  box-shadow:var(--lc-shadow)!important;
  color:var(--lc-text)!important;
}
.card h2,.card h3{color:#f8fbff;margin-top:0;letter-spacing:-.02em;}
.card h2:after{
  content:"";
  display:block;
  width:74px;
  height:3px;
  margin-top:10px;
  border-radius:999px;
  background:linear-gradient(90deg,var(--lc-cyan),var(--lc-gold));
}
.hero-card{
  background:
    linear-gradient(135deg,rgba(5,22,42,.85),rgba(13,47,82,.82)),
    radial-gradient(circle at 90% 15%, rgba(242,184,75,.25), transparent 30%)!important;
  border:1px solid rgba(32,214,255,.22)!important;
  min-height:320px;
}
.hero-card h2{font-weight:950;letter-spacing:-.05em;text-shadow:0 12px 38px rgba(0,0,0,.35);}
.eyebrow{color:var(--lc-gold)!important;}
button,.button{
  border-radius:14px!important;
  border:1px solid rgba(255,255,255,.12)!important;
  box-shadow:0 12px 24px rgba(0,0,0,.18);
  transition:transform .15s ease, box-shadow .15s ease, filter .15s ease;
}
button:hover,.button:hover{transform:translateY(-1px);box-shadow:0 16px 30px rgba(0,0,0,.24);filter:brightness(1.05);}
button:active,.button:active{transform:translateY(0) scale(.99);}
.success{background:linear-gradient(135deg,#16a34a,#22c55e)!important;color:white!important;}
.danger{background:linear-gradient(135deg,#dc2626,#fb3b3b)!important;color:white!important;}
.warning{background:linear-gradient(135deg,#f59e0b,#ffd166)!important;color:#111827!important;}
.button:not(.success):not(.danger),button:not(.success):not(.danger):not(.warning){background:linear-gradient(135deg,#f8fafc,#dbeafe)!important;color:#07111f!important;}
input,select,textarea{
  background:rgba(3,10,22,.78)!important;
  color:#f8fafc!important;
  border:1px solid rgba(148,163,184,.35)!important;
  border-radius:14px!important;
  outline:none!important;
}
input:focus,select:focus,textarea:focus{border-color:var(--lc-cyan)!important;box-shadow:0 0 0 4px rgba(32,214,255,.12)!important;}
label{color:#d7e3f4!important;font-weight:800;}
.hint{color:var(--lc-muted)!important;}
.chrono-card{
  background:
    radial-gradient(circle at 50% 0%, rgba(32,214,255,.20), transparent 35%),
    linear-gradient(180deg,rgba(12,27,48,.98),rgba(4,12,24,.98))!important;
  border-color:rgba(32,214,255,.25)!important;
}
.chrono{
  display:inline-block;
  min-width:min(100%, 760px);
  padding:22px 30px;
  color:#dff8ff!important;
  background:linear-gradient(180deg,#03111f,#071a31)!important;
  border:1px solid rgba(32,214,255,.35);
  border-radius:28px;
  text-shadow:0 0 16px rgba(32,214,255,.62), 0 0 44px rgba(30,94,255,.25);
  box-shadow:inset 0 0 40px rgba(32,214,255,.07),0 24px 60px rgba(0,0,0,.35);
}
.chrono-seconds-box,.score-live{
  width:min(760px,100%);
  margin:12px auto!important;
  background:linear-gradient(135deg,rgba(242,184,75,.18),rgba(32,214,255,.10))!important;
  border:1px solid rgba(242,184,75,.35)!important;
  border-radius:18px!important;
  color:#fff!important;
}
.chrono-seconds-box strong,.score-live strong{color:var(--lc-gold)!important;text-shadow:0 0 18px rgba(242,184,75,.25);}
.faults-direct-zone{
  margin-top:18px!important;
  background:rgba(2,8,18,.45)!important;
  border:1px solid rgba(32,214,255,.18)!important;
  border-radius:22px!important;
  padding:18px!important;
}
table{border-collapse:separate!important;border-spacing:0 8px!important;}
th{color:#8fdcff!important;background:rgba(32,214,255,.08);font-weight:950!important;text-transform:uppercase;font-size:12px;letter-spacing:.06em;border-bottom:0!important;}
td{background:rgba(255,255,255,.045);border-bottom:0!important;color:#edf6ff;}
tbody tr td:first-child,thead tr th:first-child{border-top-left-radius:12px;border-bottom-left-radius:12px;}
tbody tr td:last-child,thead tr th:last-child{border-top-right-radius:12px;border-bottom-right-radius:12px;}
tr.selected td{background:rgba(32,214,255,.20)!important;box-shadow:inset 3px 0 0 var(--lc-cyan);}
.status-ok{color:#5dff9b!important}.status-bad{color:#ff7777!important}.status-warn{color:#ffd166!important}
.ranking-panel{border-color:rgba(242,184,75,.28)!important;}
.ranking-badge{background:rgba(34,197,94,.16);border:1px solid rgba(34,197,94,.36);color:#8fffb6;border-radius:999px;padding:8px 12px;font-weight:900;}
.modal-backdrop{backdrop-filter:blur(10px);}
.modal-card{background:linear-gradient(180deg,#0f2744,#071527)!important;}
.login-body{background:linear-gradient(135deg,#06101e,#eef5ff)!important;}
.login-left{background:linear-gradient(135deg,rgba(3,10,22,.98),rgba(12,45,80,.90)),radial-gradient(circle at 70% 20%,rgba(242,184,75,.30),transparent 30%)!important;}
.login-card{border-radius:28px!important;box-shadow:0 30px 90px rgba(7,17,31,.18)!important;}
.login-button{background:linear-gradient(135deg,#092746,#1e5eff)!important;}
.public-body,.tv-body{background:radial-gradient(circle at top,rgba(32,214,255,.18),transparent 32%),linear-gradient(135deg,#020617,#0a1d35)!important;}
body.light-theme{
  --lc-text:#0b1728;
  --lc-muted:#4b5b70;
  background:radial-gradient(circle at 10% 0%, rgba(30,94,255,.12), transparent 28%),radial-gradient(circle at 90% 0%, rgba(242,184,75,.18), transparent 26%),linear-gradient(135deg,#eef6ff,#ffffff 58%,#f4efe6)!important;
  color:#0b1728!important;
}
body.light-theme .card,body.light-theme .contest-card,body.light-theme .modal-card{background:rgba(255,255,255,.92)!important;color:#0b1728!important;border-color:rgba(15,23,42,.10)!important;}
body.light-theme .card h2,body.light-theme .card h3{color:#0b1728!important;}
body.light-theme label{color:#13243b!important;}
body.light-theme input,body.light-theme select,body.light-theme textarea{background:#fff!important;color:#0b1728!important;border-color:#cbd5e1!important;}
body.light-theme td{background:rgba(15,23,42,.045)!important;color:#0b1728!important;}
body.light-theme th{background:rgba(30,94,255,.08)!important;color:#174ea6!important;}
body.light-theme .chrono{background:linear-gradient(180deg,#ffffff,#eaf4ff)!important;color:#0b57c7!important;text-shadow:none;border-color:rgba(30,94,255,.18);}
body.light-theme .chrono-seconds-box,body.light-theme .score-live{background:linear-gradient(135deg,rgba(242,184,75,.22),rgba(30,94,255,.08))!important;color:#0b1728!important;}
body.light-theme .faults-direct-zone{background:rgba(248,250,252,.85)!important;}
body.light-theme .hint{color:#526173!important;}
@media(max-width:900px){.topbar nav{margin-top:10px}.layout,.home-layout{padding:12px}.card{border-radius:18px!important}.chrono{padding:16px 12px}.button-grid{grid-template-columns:1fr 1fr!important}}

/* ===== LogiChrono V29 - thème sombre plus clair basé sur la V28 complète ===== */
:root {
  --lc-bg: #27313d;
  --lc-bg-soft: #303b49;
  --lc-card: rgba(52, 64, 78, 0.96);
  --lc-card-2: rgba(60, 73, 90, 0.98);
  --lc-border: rgba(255, 255, 255, 0.16);
  --lc-text: #f5f8fc;
  --lc-muted: #c9d3df;
  --lc-gold: #f2c15f;
  --lc-blue: #7fb8ff;
  --lc-green: #7df0b4;
  --lc-red: #ff7b7b;
  --lc-shadow: 0 18px 45px rgba(0,0,0,.28);
}

body,
body.dark,
.dark-theme {
  background:
    radial-gradient(circle at top left, rgba(127,184,255,.22), transparent 34%),
    radial-gradient(circle at top right, rgba(242,193,95,.14), transparent 32%),
    linear-gradient(135deg, #26303b 0%, #303b49 45%, #222b35 100%) !important;
  color: var(--lc-text) !important;
}

header,
.topbar,
.navbar,
.main-header,
.app-header {
  background: rgba(43, 54, 67, .94) !important;
  border-bottom: 1px solid var(--lc-border) !important;
  box-shadow: 0 10px 28px rgba(0,0,0,.22) !important;
  backdrop-filter: blur(14px);
}

.card,
.panel,
.box,
.section,
.widget,
.module,
.block,
.login-card,
.home-card,
.table-card,
.draggable-card,
.resizable-card,
.controls,
.chrono-panel,
.fault-panel,
.ranking-panel {
  background: linear-gradient(180deg, var(--lc-card), rgba(46,57,70,.96)) !important;
  color: var(--lc-text) !important;
  border: 1px solid var(--lc-border) !important;
  border-radius: 18px !important;
  box-shadow: var(--lc-shadow) !important;
}

h1, h2, h3, h4, label, .title, .subtitle, .section-title {
  color: var(--lc-text) !important;
}

small, .muted, .hint, .secondary, .subtext, p {
  color: var(--lc-muted) !important;
}

button,
.btn,
input[type="button"],
input[type="submit"] {
  border-radius: 12px !important;
  border: 1px solid rgba(255,255,255,.18) !important;
  background: linear-gradient(180deg, #45627f, #33485e) !important;
  color: #fff !important;
  box-shadow: 0 8px 18px rgba(0,0,0,.18) !important;
}

button:hover,
.btn:hover {
  filter: brightness(1.12);
  transform: translateY(-1px);
}

button.primary,
.btn-primary,
.start,
.btn-start {
  background: linear-gradient(180deg, #23b981, #178a61) !important;
}

button.danger,
.btn-danger,
.stop,
.delete {
  background: linear-gradient(180deg, #ef6b6b, #b83d3d) !important;
}

button.warning,
.btn-warning,
.reset {
  background: linear-gradient(180deg, #f2c15f, #bb842d) !important;
  color: #21170a !important;
}

input,
select,
textarea {
  background: #3b4858 !important;
  color: var(--lc-text) !important;
  border: 1px solid rgba(255,255,255,.22) !important;
  border-radius: 12px !important;
  outline: none !important;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--lc-blue) !important;
  box-shadow: 0 0 0 3px rgba(127,184,255,.18) !important;
}

.chrono,
#chrono,
.timer,
.timer-display,
.chrono-display {
  color: #ffffff !important;
  text-shadow: 0 0 18px rgba(127,184,255,.38), 0 4px 18px rgba(0,0,0,.32) !important;
  background: linear-gradient(180deg, rgba(29,38,49,.96), rgba(44,56,70,.96)) !important;
  border: 1px solid rgba(127,184,255,.28) !important;
  border-radius: 18px !important;
}

.seconds,
#chronoSeconds,
.seconds-display {
  color: var(--lc-gold) !important;
  font-weight: 800 !important;
}

table {
  background: rgba(48,59,73,.98) !important;
  color: var(--lc-text) !important;
  border-collapse: separate !important;
  border-spacing: 0 !important;
  overflow: hidden !important;
  border-radius: 14px !important;
}

thead,
th {
  background: linear-gradient(180deg, #435166, #354254) !important;
  color: #ffffff !important;
  border-bottom: 1px solid rgba(255,255,255,.18) !important;
}

td {
  color: var(--lc-text) !important;
  border-bottom: 1px solid rgba(255,255,255,.09) !important;
}

tr:nth-child(even) td {
  background: rgba(255,255,255,.035) !important;
}

tr:hover td {
  background: rgba(127,184,255,.12) !important;
}

.fault-table,
#faultTable,
.obstacle-table {
  border: 1px solid rgba(242,193,95,.22) !important;
  box-shadow: 0 12px 30px rgba(0,0,0,.20) !important;
}

.fault-cell,
.refus-cell,
.obstacle-cell,
.checkbox-cell {
  background: #445266 !important;
  border: 1px solid rgba(255,255,255,.18) !important;
  color: #fff !important;
}

.fault-cell.active,
.refus-cell.active,
.checked,
.is-active {
  background: linear-gradient(180deg, #f2c15f, #d7962f) !important;
  color: #1e1608 !important;
  font-weight: 900 !important;
}

.badge,
.status,
.pill {
  border-radius: 999px !important;
  background: rgba(127,184,255,.18) !important;
  color: #e9f4ff !important;
  border: 1px solid rgba(127,184,255,.32) !important;
}

/* Theme clair conservé mais plus propre si l'utilisateur l'active */
body.light,
.light-theme {
  background: linear-gradient(135deg, #eef3f8, #ffffff) !important;
  color: #17212b !important;
}

body.light .card,
.light-theme .card,
body.light .panel,
.light-theme .panel,
body.light .section,
.light-theme .section {
  background: rgba(255,255,255,.96) !important;
  color: #17212b !important;
  border: 1px solid rgba(23,33,43,.12) !important;
}

/* === LogiChrono V34 - accueil premium exact maquette === */
body.lc-pro{--bg:#16222c;--bg2:#0b1822;--panel:#1d2b36;--panel2:#16232e;--line:rgba(255,255,255,.09);--text:#f4f8fc;--muted:#b7c4cf;--gold:#dca334;--gold2:#ffca5d;--blue:#163047;--dark:#07131d;margin:0;background:radial-gradient(circle at 35% 0,#263746 0,#14222c 38%,#111b23 100%);color:var(--text);font-family:Inter,Segoe UI,Arial,sans-serif;min-height:100vh}.lc-pro *{box-sizing:border-box}.lc-nav{height:86px;background:linear-gradient(180deg,#07131d,#0c1a25);display:flex;align-items:center;gap:22px;padding:0 28px;border-bottom:1px solid rgba(255,255,255,.08);box-shadow:0 10px 30px rgba(0,0,0,.22);position:sticky;top:0;z-index:20}.lc-menu{width:42px;height:42px;border:0;background:transparent;color:#fff;font-size:28px;cursor:pointer}.lc-brand{display:flex;align-items:center;min-width:310px}.lc-brand img{height:70px;max-width:300px;object-fit:contain;object-position:left center;filter:drop-shadow(0 6px 12px rgba(0,0,0,.35))}.lc-links{flex:1;display:flex;align-items:center;justify-content:center;gap:18px}.lc-links a{color:#d7dde3;text-decoration:none;font-weight:800;font-size:16px;padding:17px 18px;border-radius:0;position:relative;opacity:.9}.lc-links a.active{color:#fff}.lc-links a.active:after{content:"";position:absolute;left:12px;right:12px;bottom:-23px;height:4px;border-radius:999px;background:linear-gradient(90deg,var(--gold),var(--gold2));box-shadow:0 0 18px rgba(255,198,82,.45)}.lc-theme{width:54px;height:54px;border-radius:16px;border:1px solid var(--line);background:#eaf2ff;color:#111e29;font-size:25px}.lc-logout{height:54px;border-radius:13px;border:1px solid var(--line);background:#263541;color:#fff;font-weight:900;padding:0 24px;font-size:15px}.lc-dashboard{padding:22px 28px 44px;max-width:1920px;margin:0 auto}.lc-hero{position:relative;min-height:438px;border-radius:13px;overflow:hidden;border:1px solid rgba(255,255,255,.08);background:linear-gradient(90deg,rgba(5,17,27,.97) 0%,rgba(6,19,30,.94) 34%,rgba(9,25,37,.79) 56%,rgba(10,25,37,.95) 100%),url('hero-horse-bg.jpg') right center/auto 100% no-repeat;box-shadow:0 18px 45px rgba(0,0,0,.28);padding:42px 44px;display:flex;justify-content:space-between;align-items:flex-end}.lc-hero:before{content:"";position:absolute;inset:0;background:repeating-linear-gradient(112deg,rgba(255,255,255,.025) 0 1px,transparent 1px 34px),radial-gradient(circle at 82% 0,rgba(221,163,52,.18),transparent 30%);pointer-events:none}.lc-hero:after{content:"";position:absolute;right:-120px;top:-150px;width:520px;height:520px;border-radius:50%;background:repeating-radial-gradient(circle,transparent 0 18px,rgba(220,163,52,.27) 19px 20px);opacity:.55;pointer-events:none}.lc-hero-left{position:relative;z-index:2;max-width:860px}.lc-hero-logo{width:720px;max-width:50vw;height:190px;object-fit:contain;object-position:left center;display:block;margin-bottom:2px;filter:drop-shadow(0 10px 26px rgba(0,0,0,.55))}.lc-slogan{font-size:17px;font-weight:900;color:var(--gold2);letter-spacing:.12em;margin:0 0 17px 285px;text-transform:uppercase}.lc-separator{height:1px;width:760px;max-width:60vw;background:linear-gradient(90deg,rgba(220,163,52,.8),rgba(255,255,255,.04));margin:0 0 38px}.lc-eyebrow{color:var(--gold2);text-transform:uppercase;letter-spacing:.2em;font-size:16px;font-weight:950;margin:0 0 20px}.lc-hero h1{font-size:48px;line-height:1.05;margin:0 0 12px;color:#fff;font-weight:950;text-shadow:0 6px 22px rgba(0,0,0,.6)}.lc-subtitle{font-size:16px;margin:0;color:#d3dbe3}.lc-hero-actions{position:relative;z-index:3;width:310px;display:grid;gap:14px;margin-bottom:18px}.lc-btn{height:62px;border-radius:10px;display:flex;align-items:center;justify-content:center;gap:14px;text-decoration:none;color:#fff;font-size:18px;font-weight:950;border:1px solid rgba(255,255,255,.08);box-shadow:0 12px 24px rgba(0,0,0,.22)}.lc-gold{background:linear-gradient(180deg,#f3bd4c,#bf801d);color:white}.lc-blue{background:linear-gradient(180deg,#1e3a52,#132b40)}.lc-card-grid{display:grid;grid-template-columns:1.05fr .85fr 1.05fr;gap:22px;margin-top:22px}.lc-card{position:relative;background:linear-gradient(145deg,rgba(35,52,65,.92),rgba(24,38,50,.92));border:1px solid rgba(255,255,255,.09);border-radius:13px;padding:27px 28px;box-shadow:0 14px 40px rgba(0,0,0,.18);overflow:hidden}.lc-card:before{content:"";position:absolute;left:18px;top:26px;width:6px;height:24px;border-radius:999px;background:linear-gradient(180deg,var(--gold2),var(--gold))}.lc-card h2{margin:0 0 24px;padding-left:18px;color:#fff;font-size:21px;font-weight:950}.lc-qr-content{display:flex;gap:22px;align-items:center}.lc-qr-box{width:138px;height:138px;border-radius:10px;background:#fff;padding:12px;display:flex;align-items:center;justify-content:center;flex:0 0 auto}.lc-qr-box img{width:100%;height:100%;object-fit:contain}.lc-qr-content h3{margin:0 0 10px;font-size:16px;color:#fff}.lc-qr-content p{margin:0 0 17px;color:#c7d1da}.lc-small-btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;background:#233342;color:#fff;border:1px solid rgba(255,255,255,.1);border-radius:9px;min-height:42px;padding:0 20px;text-decoration:none;font-weight:900;cursor:pointer}.lc-small-btn.gold{background:linear-gradient(180deg,#e4ad40,#b97a1d);border:0}.lc-live-time{text-align:center;font-size:64px;letter-spacing:-.05em;font-weight:950;color:white;margin:36px 0 12px;text-shadow:0 8px 24px rgba(0,0,0,.45);font-variant-numeric:tabular-nums}.lc-live-time span{color:var(--gold2);font-size:.62em}.lc-status{margin:0 auto;background:#142330;border-radius:10px;max-width:280px;text-align:center;color:#ffd36d;font-weight:900;padding:9px 14px}.lc-seconds{text-align:center;margin-top:10px;color:#bfc9d2;font-size:14px}.lc-current-box{background:linear-gradient(145deg,#101d28,#0d1822);border-radius:9px;min-height:130px;display:flex;align-items:center;gap:24px;padding:28px;border:1px solid rgba(255,255,255,.04)}.lc-rider-icon{width:92px;height:92px;border-radius:999px;border:1px solid rgba(255,255,255,.11);display:flex;align-items:center;justify-content:center;font-size:46px;color:rgba(255,255,255,.45)}.lc-current-box h3{margin:0 0 8px;font-size:20px}.lc-current-box p{margin:0;color:#c5cdd5}.lc-lower-grid{display:grid;grid-template-columns:1fr 1fr;gap:22px;margin-top:22px}.lc-create-row{display:grid;grid-template-columns:1fr 180px 110px;gap:12px;margin-bottom:16px}.lc-create-row input,.lc-import-zone input{height:42px;background:#13212d;border:1px solid rgba(255,255,255,.1);border-radius:9px;color:#fff;padding:0 12px}.lc-table-wrap{overflow:auto;border-radius:10px;background:#14212c}.lc-table{width:100%;border-collapse:collapse}.lc-table th{color:#9eacb8;text-transform:uppercase;font-size:12px;text-align:left;padding:15px;background:rgba(255,255,255,.03)}.lc-table td{padding:18px 15px;border-top:1px solid rgba(255,255,255,.05);color:#f0f4f8}.lc-table td[colspan]{text-align:center;color:#c1cad3}.lc-stat-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:16px}.lc-stat{height:120px;background:linear-gradient(145deg,#213240,#172631);border:1px solid rgba(255,255,255,.08);border-radius:10px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:10px}.lc-stat strong{font-size:28px;color:#fff}.lc-stat span{color:#d6dee6;font-weight:800}.lc-stat:before{width:44px;height:44px;border-radius:999px;display:flex;align-items:center;justify-content:center;border:2px solid currentColor}.lc-stat.purple{color:#a46cff}.lc-stat.green{color:#16c9a5}.lc-stat.gold{color:#e2a82f}.lc-stat.blue{color:#4aa3ff}.lc-import-zone{margin-top:18px;display:flex;gap:14px;align-items:center;flex-wrap:wrap;color:#cbd5dd}.info-dot{display:inline-flex;width:18px;height:18px;border-radius:50%;background:#8795a1;color:#17222d;align-items:center;justify-content:center;font-size:12px}.hidden-link,.sr-only{position:absolute;left:-9999px}.hint{color:#adb9c3}.danger{background:#7d2932!important;color:white!important;border:0!important;border-radius:8px;padding:8px 10px}.lc-action-open{background:#244054!important;color:#fff!important;border:1px solid rgba(255,255,255,.1)!important;border-radius:8px;padding:8px 12px;margin-right:6px;font-weight:800}
@media(max-width:1200px){.lc-links{gap:6px}.lc-brand{min-width:220px}.lc-brand img{max-width:210px}.lc-card-grid,.lc-lower-grid{grid-template-columns:1fr}.lc-hero{display:block}.lc-hero-actions{margin-top:28px}.lc-hero-logo{max-width:90vw}.lc-slogan{margin-left:0}.lc-separator{max-width:85vw}.lc-live-time{text-align:left;font-size:54px}.lc-status{margin-left:0}}@media(max-width:760px){.lc-nav{height:auto;flex-wrap:wrap;padding:12px}.lc-links{order:4;width:100%;overflow:auto;justify-content:flex-start}.lc-links a{white-space:nowrap}.lc-dashboard{padding:12px}.lc-hero{padding:28px 20px}.lc-hero h1{font-size:36px}.lc-hero-logo{height:130px}.lc-hero-actions{width:100%}.lc-qr-content{display:block}.lc-qr-box{margin-bottom:18px}.lc-create-row,.lc-stat-grid{grid-template-columns:1fr}}


/* ===== LogiChrono V35 - Login identique à la maquette demandée ===== */
.login-v35{min-height:100vh!important;display:grid!important;grid-template-columns:45.6% 54.4%!important;background:#f8fafc!important;color:#0a2340!important;font-family:Inter,Arial,Helvetica,sans-serif!important;overflow:hidden!important;}
.login-v35 .login-left{min-height:100vh!important;position:relative!important;background-image:linear-gradient(90deg,rgba(5,20,38,.84),rgba(5,20,38,.61)),url('login-horse-bg.jpg')!important;background-size:cover!important;background-position:center center!important;color:#fff!important;overflow:hidden!important;}
.login-v35 .login-left:before{content:""!important;position:absolute!important;inset:0!important;background:linear-gradient(180deg,rgba(6,18,32,.18),rgba(6,18,32,.76))!important;pointer-events:none!important;}
.login-v35 .login-brand-small{position:absolute!important;top:24px!important;left:33px!important;z-index:3!important;}
.login-v35 .login-brand-small img{height:58px!important;max-width:245px!important;object-fit:contain!important;filter:brightness(1.18) drop-shadow(0 10px 18px rgba(0,0,0,.35))!important;}
.login-v35 .login-presentation{position:absolute!important;z-index:3!important;left:52px!important;bottom:116px!important;margin:0!important;max-width:520px!important;}
.login-v35 .login-presentation h1{font-size:50px!important;line-height:1!important;font-weight:900!important;font-style:italic!important;letter-spacing:-2.2px!important;margin:0 0 22px!important;text-shadow:0 8px 24px rgba(0,0,0,.28)!important;}
.login-v35 .login-presentation h1 span{color:#fff!important;}
.login-v35 .login-presentation h1 strong{color:#c98b2e!important;font-weight:900!important;}
.login-v35 .login-presentation p{font-size:26px!important;line-height:1.45!important;margin:0 0 26px!important;color:#fff!important;font-weight:500!important;text-shadow:0 3px 14px rgba(0,0,0,.35)!important;}
.login-v35 .feature{display:grid!important;grid-template-columns:70px 1fr!important;gap:16px!important;align-items:center!important;margin:14px 0!important;padding:0!important;background:transparent!important;border:0!important;backdrop-filter:none!important;}
.login-v35 .feature b{width:62px!important;height:62px!important;border-radius:12px!important;display:grid!important;place-items:center!important;border:1px solid rgba(255,255,255,.28)!important;background:rgba(8,21,37,.34)!important;color:#e5a83a!important;font-size:28px!important;box-shadow:inset 0 0 0 1px rgba(255,255,255,.06)!important;}
.login-v35 .feature div{font-size:17px!important;line-height:1.38!important;color:#fff!important;}
.login-v35 .feature strong{font-size:18px!important;color:#fff!important;font-weight:900!important;}
.login-v35 .login-copy{position:absolute!important;z-index:3!important;left:52px!important;bottom:36px!important;margin:0!important;color:rgba(255,255,255,.88)!important;font-size:15px!important;}
.login-v35 .login-right{position:relative!important;min-height:100vh!important;background:linear-gradient(135deg,#ffffff,#f7f9fd 56%,#f4f7fb)!important;display:flex!important;align-items:center!important;justify-content:center!important;flex-direction:column!important;padding:40px!important;}
.login-v35 .language-pill{position:absolute!important;top:22px!important;right:35px!important;display:flex!important;gap:12px!important;align-items:center!important;border:1px solid #dce3ee!important;background:#fff!important;border-radius:8px!important;padding:14px 18px!important;color:#34445c!important;font-size:16px!important;box-shadow:0 3px 14px rgba(12,28,48,.04)!important;}
.login-v35 .login-card{width:min(540px,82vw)!important;background:#fff!important;border:1px solid #eef2f7!important;border-radius:9px!important;padding:46px 38px 28px!important;text-align:center!important;box-shadow:0 18px 48px rgba(18,37,58,.10)!important;}
.login-v35 .login-logo{height:108px!important;width:100%!important;max-width:380px!important;object-fit:contain!important;margin:0 auto 20px!important;display:block!important;}
.login-v35 .login-card h2{font-size:33px!important;line-height:1!important;color:#082748!important;margin:0 0 12px!important;font-weight:900!important;}
.login-v35 .login-card>p{font-size:17px!important;color:#556179!important;margin:0 0 30px!important;}
.login-v35 .login-card label{display:block!important;text-align:left!important;margin:0 0 18px!important;color:#082748!important;font-size:14px!important;font-weight:900!important;}
.login-v35 .input-icon{height:55px!important;margin-top:10px!important;border:1px solid #d9e1ec!important;border-radius:6px!important;display:flex!important;align-items:center!important;background:#fff!important;transition:.18s!important;}
.login-v35 .input-icon:focus-within{border-color:#0e3159!important;box-shadow:0 0 0 3px rgba(14,49,89,.08)!important;}
.login-v35 .input-icon span{width:58px!important;text-align:center!important;color:#253a56!important;font-size:20px!important;}
.login-v35 .input-icon em{width:48px!important;text-align:center!important;color:#253a56!important;font-style:normal!important;font-size:16px!important;opacity:.8!important;}
.login-v35 .login-card input{border:0!important;outline:0!important;box-shadow:none!important;height:100%!important;padding:0!important;font-size:16px!important;color:#0d223b!important;background:transparent!important;}
.login-v35 .login-card input::placeholder{color:#8793a6!important;}
.login-v35 .login-options{display:flex!important;align-items:center!important;justify-content:space-between!important;margin:2px 0 20px!important;}
.login-v35 .check{display:flex!important;gap:9px!important;align-items:center!important;margin:0!important;font-size:14px!important;color:#42516a!important;font-weight:500!important;}
.login-v35 .check input{width:18px!important;height:18px!important;accent-color:#0a2d52!important;}
.login-v35 .forgot{color:#006eff!important;text-decoration:none!important;font-weight:600!important;font-size:14px!important;}
.login-v35 .login-button{height:60px!important;width:100%!important;border:0!important;border-radius:5px!important;background:#052849!important;color:#fff!important;font-size:17px!important;font-weight:900!important;box-shadow:0 8px 18px rgba(5,40,73,.18)!important;cursor:pointer!important;}
.login-v35 .login-button:hover{background:#06325c!important;}
.login-v35 .separator{display:flex!important;align-items:center!important;margin:22px 0!important;color:#8a98aa!important;font-size:14px!important;}
.login-v35 .separator:before,.login-v35 .separator:after{content:""!important;height:1px!important;background:#e5eaf1!important;flex:1!important;}
.login-v35 .separator span{padding:0 22px!important;}
.login-v35 .outline-button{height:54px!important;width:100%!important;border:1px solid #d9e1ec!important;background:#fff!important;border-radius:5px!important;color:#092746!important;font-size:17px!important;font-weight:900!important;cursor:pointer!important;}
.login-v35 .outline-button:hover{border-color:#c98b2e!important;color:#a16922!important;}
.login-v35 .register-box{padding:14px!important;border:1px dashed #d9e1ec!important;border-radius:8px!important;margin-bottom:14px!important;}
.login-v35 .default-login{display:none!important;}
.login-v35 .login-message{min-height:22px!important;margin:-12px 0 6px!important;font-size:14px!important;font-weight:700!important;}
.login-v35 .login-message.bad{color:#b00020!important}.login-v35 .login-message.ok{color:#16803a!important}
.login-v35 .login-footer{margin-top:28px!important;color:#526075!important;font-size:15px!important;}
.login-v35 .login-year{margin-top:22px!important;color:#69778b!important;font-size:14px!important;}
@media(max-width:980px){.login-v35{grid-template-columns:1fr!important;overflow:auto!important}.login-v35 .login-left{display:none!important}.login-v35 .login-right{min-height:100vh!important;padding:76px 20px 30px!important}.login-v35 .login-card{width:min(540px,96vw)!important;padding:34px 24px!important}.login-v35 .language-pill{top:16px!important;right:16px!important}.login-v35 .login-logo{height:84px!important}.login-v35 .login-card h2{font-size:29px!important}}



/* ==========================
   LogiChrono V36 - Jury Premium TV
   ========================== */
body.jury-premium-body{background:radial-gradient(circle at 40% 0,#1f313e 0,#101b24 42%,#08131b 100%);color:#f7fbff;}
.jury-premium-body .jury-nav{height:82px;box-shadow:0 10px 35px rgba(0,0,0,.35);}
.jury-premium-body .lc-brand img{height:68px;max-width:300px;}
.jury-premium-shell{max-width:1920px;margin:0 auto;padding:20px 24px 48px;}
.jury-premium-hero{display:grid;grid-template-columns:300px 1.1fr .95fr .9fr 260px;gap:14px;align-items:stretch;background:linear-gradient(90deg,rgba(7,19,29,.98),rgba(12,28,40,.9)),url('hero-horse-bg.jpg') right center/auto 115% no-repeat;border:1px solid rgba(255,255,255,.08);border-radius:18px;padding:18px;box-shadow:0 22px 60px rgba(0,0,0,.35);position:relative;overflow:hidden;}
.jury-premium-hero:before{content:"";position:absolute;inset:0;background:repeating-linear-gradient(112deg,rgba(255,255,255,.025) 0 1px,transparent 1px 32px),radial-gradient(circle at 86% 10%,rgba(223,170,61,.18),transparent 31%);pointer-events:none;}
.jury-premium-hero:after{content:"";position:absolute;right:-110px;top:-160px;width:470px;height:470px;border-radius:50%;background:repeating-radial-gradient(circle,transparent 0 18px,rgba(223,170,61,.24) 19px 20px);opacity:.65;pointer-events:none;}
.jury-premium-hero>*{position:relative;z-index:2;}
.jury-rider-card{border-radius:12px;overflow:hidden;min-height:300px;background:#111;box-shadow:inset 0 0 0 1px rgba(255,255,255,.06);}
.jury-rider-card img{width:100%;height:100%;object-fit:cover;filter:saturate(.75) contrast(1.05) brightness(.72);}
.jury-current-card,.jury-chrono-card,.jury-parcours-card,.jury-qr-card{background:linear-gradient(145deg,rgba(28,44,57,.84),rgba(13,25,35,.88));border:1px solid rgba(255,255,255,.09);border-radius:12px;padding:20px;box-shadow:0 18px 38px rgba(0,0,0,.25);}
.jury-current-card h1{margin:12px 0 22px;font-size:36px;line-height:1.08;font-weight:950;color:#fff;text-shadow:0 8px 24px rgba(0,0,0,.55);}
.jury-kicker{margin:0;color:#f4bd45;text-transform:uppercase;letter-spacing:.12em;font-weight:950;font-size:13px}.jury-kicker.center{text-align:center;color:#e9f2fb;}
.jury-meta-grid,.jury-time-stats{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;}
.jury-meta-grid div,.jury-time-stats div{background:rgba(5,13,20,.38);border:1px solid rgba(255,255,255,.07);border-radius:10px;padding:14px;text-align:center;}
.jury-meta-grid span,.jury-time-stats span{display:block;font-size:11px;color:#99aab7;text-transform:uppercase;margin-bottom:8px}.jury-meta-grid strong{font-size:26px;color:#f7be43}.jury-time-stats strong{font-size:22px;color:#fff}.danger-text{color:#ff5a56!important}.success-text{color:#44d65b!important}
.jury-led-chrono{font-size:76px!important;letter-spacing:-.06em;text-align:center;margin:36px 0 20px;font-weight:950;color:#fff;text-shadow:0 6px 28px rgba(0,0,0,.55);font-variant-numeric:tabular-nums;}
.jury-led-chrono::first-letter{color:#fff}.jury-seconds{text-align:center;color:#bac8d3;margin-top:12px}.jury-seconds strong{color:#f4bd45}
.jury-parcours-card .section-header{margin-bottom:12px}.jury-parcours-card h2,.jury-qr-card h2{margin:0;color:#fff}.parcours-wrap{max-height:278px;overflow:auto;background:rgba(5,12,18,.42);border-radius:10px}.jury-parcours-card .obstacle-score-table th,.jury-parcours-card .obstacle-score-table td{padding:8px;font-size:12px}.jury-parcours-card .plans-cell{min-width:130px}.jury-parcours-card .plan-check{display:flex;align-items:center;justify-content:space-between;gap:6px;margin-bottom:5px}.jury-parcours-card .refus-counter{min-width:58px;min-height:46px;border-radius:10px;background:#162737;color:#dce7ef;border:1px solid rgba(255,255,255,.12);font-weight:900}.jury-parcours-card .refus-counter.active{background:linear-gradient(180deg,#e2a934,#a66316);color:#fff}.jury-parcours-card .fall-box{display:flex;gap:10px;align-items:center;flex-wrap:wrap;background:rgba(255,255,255,.04);border-radius:10px;padding:10px}
.jury-qr-card{display:flex;flex-direction:column;align-items:center;text-align:center;gap:12px}.jury-qr-card img{width:165px;max-width:100%;background:#fff;border-radius:12px;padding:10px}.jury-qr-card p{color:#c2cfda;margin:0}.jury-qr-card .lc-small-btn{width:100%;}
.jury-actions-strip{display:grid;grid-template-columns:repeat(8,1fr);gap:14px;margin:18px 0}.jury-actions-strip button{min-height:64px;border-radius:12px;font-size:16px;font-weight:950;border:1px solid rgba(255,255,255,.1);box-shadow:0 14px 28px rgba(0,0,0,.18)}.jury-actions-strip .success{background:linear-gradient(180deg,#1ca64d,#10662e)!important}.jury-actions-strip .danger{background:linear-gradient(180deg,#d4443e,#84201e)!important}.jury-actions-strip .warning{background:linear-gradient(180deg,#226c93,#124156)!important;color:#fff!important}
.jury-control-grid{display:grid;grid-template-columns:.85fr 1.15fr;gap:18px;margin-bottom:18px}.jury-select-card,.jury-premium-body .ranking-panel,.jury-admin-card{background:linear-gradient(145deg,rgba(35,52,65,.92),rgba(22,36,48,.92));border:1px solid rgba(255,255,255,.09);border-radius:13px;box-shadow:0 14px 40px rgba(0,0,0,.18);}
.jury-premium-body .card{background:linear-gradient(145deg,rgba(35,52,65,.92),rgba(22,36,48,.92));border:1px solid rgba(255,255,255,.09);border-radius:13px;color:#f3f8fc}.jury-premium-body .card h2{color:#fff}.jury-premium-body input,.jury-premium-body select{background:#13212d;color:#fff;border:1px solid rgba(255,255,255,.13);border-radius:10px}.jury-premium-body table{background:#111f2a;color:#eef5fb}.jury-premium-body th{background:#1a2b39;color:#aebdca}.jury-premium-body td{border-color:rgba(255,255,255,.07)}
@media(max-width:1500px){.jury-premium-hero{grid-template-columns:260px 1fr 1fr}.jury-parcours-card,.jury-qr-card{grid-column:auto}.jury-led-chrono{font-size:62px!important}.jury-actions-strip{grid-template-columns:repeat(4,1fr)}}
@media(max-width:980px){.jury-premium-hero,.jury-control-grid{grid-template-columns:1fr}.jury-rider-card{min-height:220px}.jury-actions-strip{grid-template-columns:repeat(2,1fr)}.jury-led-chrono{font-size:54px!important}.jury-current-card h1{font-size:28px}.jury-meta-grid,.jury-time-stats{grid-template-columns:1fr}}


/* ==========================
   LogiChrono V37 - Jury solution A : sélection fixe + obstacles complets
   ========================== */
.jury-top-selectbar{
  max-width:1920px;
  margin:18px auto 0;
  padding:16px 24px;
  display:grid;
  grid-template-columns: 1.15fr .85fr .85fr 1.4fr auto;
  gap:14px;
  align-items:end;
  background:linear-gradient(145deg,rgba(28,44,57,.96),rgba(12,24,35,.96));
  border:1px solid rgba(255,255,255,.10);
  border-radius:18px;
  box-shadow:0 16px 38px rgba(0,0,0,.28);
  position:sticky;
  top:88px;
  z-index:15;
}
.jury-top-selectbar .jury-select-title{min-width:0}
.jury-top-selectbar .jury-select-title h1{
  margin:4px 0 0;
  font-size:25px;
  color:#fff;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
.jury-top-selectbar label{
  display:flex;
  flex-direction:column;
  gap:7px;
  color:#d7e2ec;
  font-size:13px;
  font-weight:900;
  text-transform:uppercase;
  letter-spacing:.05em;
}
.jury-top-selectbar select{
  min-height:50px;
  width:100%;
  background:#101f2b!important;
  color:#fff!important;
  border:1px solid rgba(244,189,69,.28)!important;
  border-radius:12px!important;
  font-size:15px;
  font-weight:850;
  padding:0 14px;
}
.jury-nav-buttons{display:grid;grid-template-columns:1fr 1fr;gap:10px;min-width:250px}
.jury-nav-buttons button{
  height:50px;
  border:1px solid rgba(255,255,255,.14);
  border-radius:12px;
  background:linear-gradient(180deg,#243645,#152736);
  color:#fff;
  font-weight:950;
  cursor:pointer;
}
.jury-nav-buttons button:hover{background:linear-gradient(180deg,#dca334,#a96a16);}
.jury-control-grid.single{grid-template-columns:1fr}
.jury-premium-hero{margin-top:18px;}
.jury-current-card h1 small{display:block;color:#f4bd45;font-size:.62em;margin-top:6px}
.jury-parcours-card{min-width:0}
.jury-parcours-card .obstacle-score-table th:first-child{min-width:110px}
.jury-parcours-card .obstacle-score-table td{vertical-align:top}
.jury-parcours-card input.big-check{width:20px;height:20px;accent-color:#e4ad40}
.jury-parcours-card .plan-check span{font-size:11px;color:#d5e1ea}
.jury-parcours-card .refus-counter span{display:block;font-size:20px;color:inherit}
.jury-parcours-card .refus-counter small{display:block;font-size:10px;opacity:.9}
@media(max-width:1300px){
  .jury-top-selectbar{grid-template-columns:1fr 1fr;top:86px}
  .jury-nav-buttons{min-width:0}
}
@media(max-width:760px){
  .jury-top-selectbar{grid-template-columns:1fr;position:relative;top:auto;margin:10px 12px}
  .jury-premium-shell{padding:12px}
}

/* ==========================
   LogiChrono V38 - zone Jury adaptable et tailles plus logiques
   ========================== */
body.jury-premium-body{overflow-x:hidden!important;background:radial-gradient(circle at 34% -8%,#263947 0,#1a2a35 36%,#101b23 72%,#0b141c 100%)!important;}
.jury-premium-shell{max-width:100%!important;width:100%!important;box-sizing:border-box!important;padding:16px 20px 44px!important;}
.jury-top-selectbar{max-width:calc(100vw - 40px)!important;box-sizing:border-box!important;grid-template-columns:minmax(260px,1fr) minmax(190px,.65fr) minmax(210px,.75fr) minmax(290px,1fr) auto!important;overflow:visible!important;}
.jury-top-selectbar select{max-width:100%!important;}
.jury-adapt-toolbar{max-width:calc(100vw - 40px);margin:14px auto 0;padding:10px 12px;display:flex;gap:10px;align-items:center;justify-content:space-between;flex-wrap:wrap;background:linear-gradient(145deg,rgba(31,48,61,.92),rgba(15,28,39,.92));border:1px solid rgba(255,255,255,.10);border-radius:14px;box-shadow:0 10px 30px rgba(0,0,0,.24);}
.jury-adapt-toolbar .toolbar-title{font-weight:950;color:#fff;letter-spacing:.02em;display:flex;align-items:center;gap:8px;}
.jury-adapt-toolbar .toolbar-title:before{content:"";width:5px;height:24px;border-radius:8px;background:linear-gradient(180deg,#ffd46b,#c8861e);display:inline-block;}
.jury-adapt-toolbar .toolbar-actions{display:flex;gap:8px;flex-wrap:wrap;align-items:center;}
.jury-adapt-toolbar button{height:36px;border-radius:10px;border:1px solid rgba(255,255,255,.13);background:#203241;color:#f4f8fb;font-weight:900;cursor:pointer;padding:0 12px;}
.jury-adapt-toolbar button:hover,.jury-adapt-toolbar button.active{background:linear-gradient(180deg,#e7b247,#a66b1b);color:#fff;}
.jury-adapt-toolbar .toolbar-help{color:#aebdca;font-size:12px;}
.jury-premium-hero{
  grid-template-areas:
    "rider current chrono qr"
    "parcours parcours parcours parcours";
  grid-template-columns:var(--jury-rider-col,260px) var(--jury-current-col,minmax(420px,1.25fr)) var(--jury-chrono-col,minmax(360px,1fr)) var(--jury-qr-col,300px)!important;
  gap:16px!important;align-items:stretch!important;max-width:100%!important;box-sizing:border-box!important;overflow:visible!important;
  padding:16px!important;border-radius:20px!important;
}
.jury-rider-card{grid-area:rider;min-height:320px!important;max-height:430px;}
.jury-current-card{grid-area:current;min-height:320px!important;}
.jury-chrono-card{grid-area:chrono;min-height:320px!important;display:flex;flex-direction:column;justify-content:center;}
.jury-qr-card{grid-area:qr;min-height:320px!important;}
.jury-parcours-card{grid-area:parcours;min-height:unset!important;}
.jury-current-card,.jury-chrono-card,.jury-parcours-card,.jury-qr-card,.jury-rider-card{position:relative!important;box-sizing:border-box!important;min-width:0!important;}
.jury-current-card h1{font-size:clamp(28px,2.3vw,42px)!important;word-break:normal;overflow-wrap:anywhere;}
.jury-led-chrono{font-size:clamp(56px,5.1vw,90px)!important;margin:18px 0 16px!important;line-height:1!important;}
.jury-time-stats,.jury-meta-grid{gap:10px!important;}
.jury-meta-grid div,.jury-time-stats div{padding:12px 8px!important;}
.jury-meta-grid strong{font-size:clamp(22px,2vw,34px)!important;}
.jury-qr-card img{width:145px!important;padding:8px!important;}
.jury-qr-card h2{font-size:24px!important;margin-bottom:2px!important;}
.jury-qr-card p{font-size:14px!important;}
.parcours-wrap{max-height:none!important;height:var(--jury-parcours-height,260px)!important;resize:vertical!important;overflow:auto!important;}
.jury-parcours-card .obstacle-score-table{min-width:max-content;width:100%;}
.jury-actions-strip{grid-template-columns:repeat(auto-fit,minmax(150px,1fr))!important;gap:10px!important;margin:14px 0 18px!important;}
.jury-actions-strip button{min-height:52px!important;border-radius:12px!important;font-size:15px!important;}
.jury-resize-handle{position:absolute;right:2px;top:42px;bottom:42px;width:12px;cursor:ew-resize;border-radius:8px;background:linear-gradient(180deg,transparent,rgba(244,189,69,.28),transparent);opacity:.35;z-index:5;transition:.15s;}
.jury-resize-handle:hover{opacity:1;background:linear-gradient(180deg,transparent,rgba(244,189,69,.74),transparent);}
.jury-height-handle{position:absolute;right:16px;bottom:8px;width:26px;height:16px;cursor:ns-resize;border-radius:8px;background:repeating-linear-gradient(0deg,rgba(244,189,69,.55) 0 2px,transparent 2px 5px);opacity:.38;z-index:5;}
.jury-height-handle:hover{opacity:1;}
body.jury-layout-resizing,body.jury-layout-resizing *{user-select:none!important;}
.jury-size-chip{position:absolute;right:14px;top:10px;font-size:10px;color:#f4bd45;background:rgba(4,12,18,.58);border:1px solid rgba(244,189,69,.25);border-radius:999px;padding:4px 7px;opacity:.0;transition:.15s;pointer-events:none;}
.jury-current-card:hover .jury-size-chip,.jury-chrono-card:hover .jury-size-chip,.jury-qr-card:hover .jury-size-chip,.jury-rider-card:hover .jury-size-chip{opacity:1;}
@media(max-width:1400px){
  .jury-top-selectbar{grid-template-columns:1fr 1fr!important;position:relative!important;top:auto!important;}
  .jury-premium-hero{grid-template-areas:"current chrono" "rider qr" "parcours parcours";grid-template-columns:1fr 1fr!important;}
  .jury-resize-handle{display:none;}
}
@media(max-width:850px){
  .jury-premium-shell{padding:12px!important;}
  .jury-premium-hero{grid-template-areas:"current" "chrono" "qr" "rider" "parcours";grid-template-columns:1fr!important;}
  .jury-top-selectbar,.jury-adapt-toolbar{max-width:calc(100vw - 24px)!important;margin-left:12px!important;margin-right:12px!important;}
  .jury-rider-card{min-height:220px!important;}
}

/* ==========================
   LogiChrono V40 - Jury exactement style maquette + sélection classement
   ========================== */
body.jury-premium-body{
  background:#07131c!important;
  color:#f7fbff!important;
}
.jury-v40-shell{padding:18px 26px 50px!important;max-width:1920px!important;margin:0 auto!important;}
.jury-v40-shell .jury-adapt-toolbar{display:flex!important;}
.jury-v40-grid{
  display:grid!important;
  grid-template-columns:var(--jury-rider-col,minmax(285px,0.9fr)) var(--jury-current-col,minmax(520px,1.55fr)) var(--jury-chrono-col,minmax(380px,1.1fr))!important;
  grid-template-areas:
    "info band obstacles"
    "info chrono obstacles"
    "ranking ranking route"
    "ranking ranking qr"!important;
  gap:18px!important;
  padding:18px!important;
  background:
    radial-gradient(circle at 72% 10%,rgba(227,170,50,.10),transparent 28%),
    repeating-linear-gradient(112deg,rgba(255,255,255,.025) 0 1px,transparent 1px 34px),
    linear-gradient(145deg,#081722,#102331 52%,#0a1822)!important;
  border:1px solid rgba(255,255,255,.08)!important;
  border-radius:20px!important;
  box-shadow:0 24px 80px rgba(0,0,0,.42)!important;
  overflow:visible!important;
}
.jury-v40-grid>*{position:relative;z-index:2;min-width:0;}
.jury-info-panel{grid-area:info!important;min-height:0!important;max-height:none!important;padding:22px!important;background:linear-gradient(145deg,rgba(12,30,42,.94),rgba(6,18,28,.96))!important;border:1px solid rgba(255,255,255,.10)!important;border-radius:16px!important;}
.jury-band-panel{grid-area:band!important;min-height:92px!important;padding:18px 22px!important;background:linear-gradient(145deg,rgba(17,38,53,.92),rgba(8,20,31,.96))!important;border:1px solid rgba(255,255,255,.10)!important;border-radius:16px!important;}
.jury-v40-chrono{grid-area:chrono!important;min-height:330px!important;padding:24px!important;background:linear-gradient(145deg,rgba(10,25,36,.96),rgba(4,13,22,.98))!important;border:1px solid rgba(255,255,255,.10)!important;border-radius:16px!important;}
.jury-obstacles-panel{grid-area:obstacles!important;min-height:440px!important;padding:22px!important;background:linear-gradient(145deg,rgba(12,29,42,.96),rgba(6,17,26,.98))!important;border:1px solid rgba(255,255,255,.10)!important;border-radius:16px!important;}
.jury-ranking-live{grid-area:ranking!important;background:linear-gradient(145deg,rgba(13,30,43,.96),rgba(7,19,29,.98))!important;border:1px solid rgba(255,255,255,.10)!important;border-radius:16px!important;}
.jury-route-card{grid-area:route!important;background:linear-gradient(145deg,rgba(13,30,43,.96),rgba(7,19,29,.98))!important;border:1px solid rgba(255,255,255,.10)!important;border-radius:16px!important;padding:20px;box-shadow:0 14px 38px rgba(0,0,0,.26);}
.jury-v40-qr{grid-area:qr!important;background:linear-gradient(145deg,rgba(13,30,43,.96),rgba(7,19,29,.98))!important;border:1px solid rgba(255,255,255,.10)!important;border-radius:16px!important;min-height:0!important;}
.panel-title-row{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:18px;}
.panel-title-row h2,.jury-v40-grid .section-header h2{margin:0;color:#dfeaf3;font-size:16px;letter-spacing:.06em;text-transform:uppercase;font-weight:950;}
.panel-edit-dot{width:32px;height:32px;display:grid;place-items:center;border:1px solid rgba(244,189,69,.42);border-radius:8px;color:#f4bd45;background:rgba(244,189,69,.08);}
.rider-identity{display:grid;grid-template-columns:98px 1fr;gap:20px;align-items:center;margin-bottom:22px;}
.rider-avatar{height:98px;border-radius:14px;background:linear-gradient(145deg,rgba(255,255,255,.08),rgba(255,255,255,.02));border:1px solid rgba(255,255,255,.12);display:grid;place-items:center;font-size:58px;color:#d8e2ea;}
.rider-identity h1{font-size:28px;line-height:1.1;margin:0 0 6px;color:#fff;font-weight:950;}
.rider-identity p{margin:4px 0;color:#f4bd45;font-weight:850;}
.rider-identity p+p{color:#c7d4df;font-weight:650;}
.rider-info-list{display:grid;gap:10px;margin-top:14px;}
.rider-info-list div{display:flex;align-items:center;justify-content:space-between;gap:18px;background:rgba(4,14,22,.46);border:1px solid rgba(255,255,255,.08);border-radius:10px;padding:12px 14px;}
.rider-info-list span{color:#dce6ef;font-size:14px;}
.rider-info-list strong{color:#fff;font-size:15px;text-align:right;}
.status-pill,.status-chip{display:inline-flex;align-items:center;justify-content:center;border-radius:999px;padding:5px 10px;font-weight:900;font-size:12px;border:1px solid rgba(255,255,255,.12);}
.status-pill.green,.status-chip.green{background:rgba(34,197,94,.16);color:#70f09b;border-color:rgba(34,197,94,.36)}
.status-pill.blue,.status-chip.blue{background:rgba(59,130,246,.16);color:#91c5ff;border-color:rgba(59,130,246,.36)}
.status-pill.red,.status-chip.red{background:rgba(239,68,68,.16);color:#ff918d;border-color:rgba(239,68,68,.36)}
.status-pill.neutral,.status-chip.neutral{background:rgba(148,163,184,.12);color:#cbd5e1;border-color:rgba(148,163,184,.24)}
.current-band-content{display:grid;grid-template-columns:1.05fr 1fr 1fr 1fr;gap:14px;align-items:center;background:rgba(3,12,20,.36);border:1px solid rgba(255,255,255,.07);border-radius:12px;padding:16px 18px;}
.current-band-content span{font-weight:950;color:#fff;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
.current-band-content span:first-child{font-size:18px;color:#fff;}
.current-band-content span:nth-child(2){color:#f4bd45;}
.hidden-current-info{display:none!important;}
.jury-v40-chrono .jury-led-chrono{font-size:clamp(76px,8vw,140px)!important;line-height:.95!important;margin:20px 0 30px!important;text-shadow:0 12px 40px rgba(255,255,255,.16),0 8px 30px rgba(0,0,0,.6)!important;}
.jury-v40-chrono .jury-time-stats{grid-template-columns:repeat(3,1fr);}
.jury-v40-chrono .jury-time-stats div{padding:20px 10px!important;background:rgba(3,12,20,.48)!important;border-radius:12px!important;}
.jury-v40-chrono .jury-seconds{display:flex!important;justify-content:center;align-items:center;width:100%;margin:20px 0 0!important;border-radius:12px!important;background:linear-gradient(90deg,rgba(255,255,255,.06),rgba(244,189,69,.08))!important;border:1px solid rgba(244,189,69,.24)!important;}
.obstacle-v40-table{width:100%;border-collapse:collapse;min-width:0!important;background:transparent!important;}
.obstacle-v40-table th{font-size:12px;color:#98aaba;text-transform:uppercase;background:rgba(255,255,255,.03)!important;padding:10px!important;}
.obstacle-v40-table td{padding:9px 10px!important;border-bottom:1px solid rgba(255,255,255,.07)!important;text-align:center!important;}
.obstacle-v40-table td:first-child{text-align:left!important;color:#fff;font-weight:900;}
.barre-toggle{width:26px;height:26px;border-radius:50%;border:1px solid rgba(255,255,255,.25);background:rgba(255,255,255,.07);cursor:pointer;box-shadow:inset 0 0 0 2px rgba(0,0,0,.12);}
.barre-toggle.active{background:radial-gradient(circle at 50% 50%,#ff5959 0 35%,#8a1515 38% 100%);border-color:#ff5959;box-shadow:0 0 18px rgba(255,70,70,.35);}
.refus-buttons{display:flex;justify-content:center;gap:6px;}
.refus-buttons button{width:32px;height:26px;padding:0;border-radius:6px;border:1px solid rgba(255,255,255,.12);background:#102230;color:#dce7ef;font-weight:900;cursor:pointer;}
.refus-buttons button.active{background:linear-gradient(180deg,#f5bd45,#ae6e17);color:#fff;border-color:#f5bd45;}
.obstacle-state{display:inline-flex;min-width:92px;justify-content:center;border-radius:999px;padding:5px 8px;font-size:12px;font-weight:900;}
.obstacle-state.ok{color:#67e88c;background:rgba(34,197,94,.12);}
.obstacle-state.refus{color:#ffbd4a;background:rgba(245,158,11,.13);}
.obstacle-state.barre{color:#ff6b66;background:rgba(239,68,68,.14);}
.obstacle-v40-row.ok td:first-child{color:#e7f3ff}.obstacle-v40-row.refus td:first-child{color:#ffbd4a}.obstacle-v40-row.barre td:first-child{color:#ff6b66}
.fall-toggle{display:flex;align-items:center;gap:10px;justify-content:center;color:#fff;font-weight:850;}.fall-toggle input{width:20px;height:20px;accent-color:#9333ea;}
.jury-ranking-live .table-wrap{max-height:380px;overflow:auto;}
.ranking-click-row{cursor:pointer;transition:.12s;}
.ranking-click-row:hover{background:rgba(244,189,69,.16)!important;}
.ranking-click-row.selected-row{background:linear-gradient(90deg,rgba(244,189,69,.36),rgba(244,189,69,.08))!important;box-shadow:inset 4px 0 0 #f4bd45;}
.ranking-help{color:#a8b8c7;margin:12px 4px 0;text-align:center;font-size:13px;}
.course-map{min-height:170px;background:rgba(3,12,20,.42);border:1px solid rgba(255,255,255,.08);border-radius:12px;padding:26px;display:flex;flex-wrap:wrap;align-items:center;gap:10px 8px;}
.course-node{width:42px;height:42px;border-radius:50%;display:grid;place-items:center;border:2px solid #37d46a;color:#fff;background:#071722;font-weight:950;}
.course-node.ok{border-color:#35d46a;box-shadow:0 0 16px rgba(53,212,106,.18)}
.course-node.refus{border-color:#f5a623;background:rgba(245,166,35,.14)}
.course-node.barre{border-color:#ef4444;background:rgba(239,68,68,.14)}
.course-node.neutral{border-color:#64748b;color:#cbd5e1}.course-arrow{color:#718499;font-weight:950;}
.course-legend{display:flex;align-items:center;gap:10px;margin-top:14px;color:#d7e3ed;font-size:14px;flex-wrap:wrap}.course-legend span{width:14px;height:14px;border-radius:50%;display:inline-block}.course-legend .ok{background:#35d46a}.course-legend .refus{background:#f5a623}.course-legend .barre{background:#ef4444}
.jury-v40-actions{display:grid!important;grid-template-columns:repeat(auto-fit,minmax(135px,1fr))!important;margin:18px 0!important;padding:18px!important;background:linear-gradient(145deg,rgba(13,30,43,.96),rgba(7,19,29,.98));border:1px solid rgba(255,255,255,.10);border-radius:16px;}
.jury-v40-actions .purple{background:linear-gradient(180deg,#7c3aed,#4c1d95)!important;color:#fff!important;}
.jury-v40-qr img{width:190px!important;}
.jury-v40-grid .jury-resize-handle{display:block!important;}
@media(max-width:1500px){.jury-v40-grid{grid-template-columns:1fr 1fr!important;grid-template-areas:"info band" "chrono obstacles" "ranking ranking" "route qr"!important}.jury-v40-chrono .jury-led-chrono{font-size:84px!important}}
@media(max-width:900px){.jury-v40-grid{grid-template-columns:1fr!important;grid-template-areas:"band" "chrono" "info" "obstacles" "ranking" "route" "qr"!important}.current-band-content{grid-template-columns:1fr}.jury-v40-actions{grid-template-columns:1fr 1fr!important}.jury-v40-chrono .jury-led-chrono{font-size:64px!important}.rider-identity{grid-template-columns:1fr;text-align:center}.rider-avatar{margin:0 auto}}

/* ==========================
   LogiChrono V41 - V40 corrigée : couleurs au clic + total pénalités dans la zone obstacles
   ========================== */
.jury-obstacles-panel{
  display:flex!important;
  flex-direction:column!important;
  gap:12px!important;
}
.jury-obstacles-panel .parcours-wrap{
  max-height:310px!important;
  min-height:190px;
  flex:1 1 auto;
  border:1px solid rgba(244,189,69,.28)!important;
}
.obstacle-v40-row{
  transition:background .16s ease, box-shadow .16s ease, transform .12s ease, border-color .16s ease;
  cursor:pointer;
}
.obstacle-v40-row:hover{
  background:rgba(244,189,69,.10)!important;
}
.obstacle-v40-row.clicked{
  background:linear-gradient(90deg,rgba(244,189,69,.24),rgba(21,43,57,.72))!important;
  box-shadow:inset 4px 0 0 #f4bd45, 0 0 0 1px rgba(244,189,69,.45);
}
.obstacle-v40-row.clicked td:first-child b{
  color:#ffd46b!important;
}
.barre-toggle{
  width:30px!important;
  height:30px!important;
  border-radius:10px!important;
  border:1px solid rgba(255,255,255,.22)!important;
  background:#e8f2ff!important;
  box-shadow:inset 0 -4px 0 rgba(0,0,0,.10);
}
.barre-toggle.active{
  background:linear-gradient(180deg,#ff5c55,#a41d1d)!important;
  border-color:#ff8a84!important;
  box-shadow:0 0 0 3px rgba(255,82,74,.18), inset 0 -4px 0 rgba(0,0,0,.18)!important;
}
.refus-buttons button{
  min-width:30px!important;
  height:28px!important;
  border-radius:999px!important;
  border:1px solid rgba(255,255,255,.16)!important;
  background:#e7f0fb!important;
  color:#0b1822!important;
  font-weight:950!important;
  transition:transform .12s ease, background .15s ease, color .15s ease;
}
.refus-buttons button:hover{transform:translateY(-1px)}
.refus-buttons button.active{
  background:linear-gradient(180deg,#ffca5b,#c47b17)!important;
  color:#10161d!important;
  border-color:#ffd46b!important;
  box-shadow:0 0 0 3px rgba(244,189,69,.18)!important;
}
.obstacle-state.ok{background:rgba(41,195,88,.16)!important;color:#38ee72!important;border:1px solid rgba(56,238,114,.25)}
.obstacle-state.refus{background:rgba(255,178,43,.18)!important;color:#ffbf4d!important;border:1px solid rgba(255,191,77,.25)}
.obstacle-state.barre{background:rgba(255,72,72,.18)!important;color:#ff6969!important;border:1px solid rgba(255,105,105,.25)}
.penalty-live-summary{
  margin-top:4px;
  padding:14px;
  border-radius:16px;
  background:linear-gradient(145deg,rgba(9,20,28,.92),rgba(23,39,50,.86));
  border:1px solid rgba(244,189,69,.36);
  box-shadow:0 16px 32px rgba(0,0,0,.24), inset 0 1px 0 rgba(255,255,255,.04);
}
.penalty-total-box{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:14px;
  padding:12px 14px;
  border-radius:13px;
  background:linear-gradient(90deg,rgba(244,189,69,.18),rgba(16,32,43,.78));
  border:1px solid rgba(244,189,69,.28);
}
.penalty-total-box span{
  color:#dce8f1;
  font-weight:950;
  text-transform:uppercase;
  letter-spacing:.06em;
  font-size:12px;
}
.penalty-total-box strong{
  color:#ffd46b;
  font-size:30px;
  line-height:1;
  text-shadow:0 0 24px rgba(244,189,69,.2);
}
.penalty-total-box.empty strong{color:#9fb0bd}
.penalty-detail-grid{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:8px;
  margin:10px 0;
}
.penalty-detail-grid span{
  display:block;
  text-align:center;
  padding:9px 8px;
  border-radius:11px;
  background:rgba(255,255,255,.045);
  border:1px solid rgba(255,255,255,.07);
  color:#d6e4ee;
  font-weight:850;
}
.penalty-detail-grid b{color:#fff}
.penalty-mini-actions{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:10px;
}
.penalty-mini-actions button{
  min-height:42px;
  border-radius:12px;
  border:1px solid rgba(255,255,255,.12);
  color:#fff;
  font-weight:950;
  cursor:pointer;
}
.penalty-mini-actions button:nth-child(1){background:linear-gradient(180deg,#e7b247,#a66b1b)}
.penalty-mini-actions button:nth-child(2){background:linear-gradient(180deg,#ee625e,#a92426)}
.penalty-mini-actions button:nth-child(3){background:linear-gradient(180deg,#7f55cc,#4d2c87)}
@media(max-width:900px){.penalty-detail-grid{grid-template-columns:repeat(2,1fr)}.penalty-mini-actions{grid-template-columns:1fr}}


/* LogiChrono V42 - actions rapides sous total pénalités */
.jury-actions-inside-penalties{
  margin:14px 0 0!important;
  padding:14px!important;
  border-radius:16px!important;
  grid-template-columns:repeat(5,minmax(110px,1fr))!important;
  background:linear-gradient(145deg,rgba(8,18,27,.96),rgba(18,34,46,.92))!important;
  border:1px solid rgba(244,189,69,.24)!important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.05),0 14px 26px rgba(0,0,0,.20)!important;
}
.jury-actions-inside-penalties button{
  min-height:48px!important;
  border-radius:14px!important;
  font-weight:950!important;
  letter-spacing:.01em;
}
.jury-actions-inside-penalties .abandon{
  background:linear-gradient(180deg,#9d65ff,#5b2bbf)!important;
  color:#fff!important;
  border-color:rgba(190,160,255,.45)!important;
}
.status-chip.purple,.status-pill.purple{
  background:rgba(157,101,255,.18)!important;
  color:#d8c7ff!important;
  border:1px solid rgba(190,160,255,.35)!important;
}
@media(max-width:1200px){.jury-actions-inside-penalties{grid-template-columns:repeat(3,minmax(110px,1fr))!important}}
@media(max-width:760px){.jury-actions-inside-penalties{grid-template-columns:1fr 1fr!important}}

/* ===== LogiChrono V43 : fenêtre édition résultat complet ===== */
.complete-result-modal{width:min(1120px,96vw)!important;max-height:92vh;overflow:auto;padding:24px!important}
.edit-result-layout{display:grid;grid-template-columns:1fr 1fr;gap:16px;margin-top:14px}
.edit-result-section{border:1px solid rgba(244,197,66,.22);border-radius:18px;background:rgba(255,255,255,.045);padding:16px;margin-bottom:14px}
.edit-result-section h3{margin:0 0 12px;color:#f6d27a;font-size:1rem;text-transform:uppercase;letter-spacing:.08em}
.computed-info{background:rgba(244,197,66,.10);border:1px solid rgba(244,197,66,.30);border-radius:14px;padding:10px 12px;color:#fff;margin:0 0 12px;font-weight:800}
.inline-check{display:flex;align-items:center;gap:10px;border:1px dashed rgba(244,197,66,.35);border-radius:14px;padding:10px!important;background:rgba(244,197,66,.08)}
.edit-obstacle-wrap{max-height:310px;resize:vertical;overflow:auto}
.edit-obstacle-wrap table{min-width:780px}
.mini-toggle{border-radius:999px;border:1px solid rgba(255,255,255,.20);padding:7px 10px;margin:3px;background:rgba(255,255,255,.08);color:#e5eefb;font-weight:900;cursor:pointer}
.mini-toggle:hover{transform:translateY(-1px);border-color:#f6d27a}
.mini-toggle.active-barre{background:#b91c1c;color:white;border-color:#ff9b9b;box-shadow:0 0 0 2px rgba(185,28,28,.22)}
.mini-toggle.refus-1{background:#f59e0b;color:#111827;border-color:#ffd66b}
.mini-toggle.refus-2{background:#ea580c;color:white;border-color:#ffc49a}
.mini-toggle.refus-3{background:#dc2626;color:white;border-color:#ff9b9b}
@media(max-width:900px){.edit-result-layout{grid-template-columns:1fr}.complete-result-modal{width:96vw!important}}
body.light-theme .edit-result-section{background:rgba(15,23,42,.04);border-color:rgba(15,23,42,.12)}
body.light-theme .edit-result-section h3{color:#8a5a13}body.light-theme .computed-info{color:#0f172a;background:#fff7db}

/* V45 - Résultats publics mobile : toutes les épreuves visibles */
.public-epreuve-tabs{position:sticky;top:0;z-index:20;display:flex;gap:10px;overflow-x:auto;padding:10px 0 14px;margin-bottom:14px;background:linear-gradient(180deg,rgba(2,6,23,.98),rgba(2,6,23,.78));backdrop-filter:blur(14px)}
.public-tab{border:1px solid rgba(255,255,255,.12);background:rgba(255,255,255,.06);color:#fff;border-radius:18px;padding:12px 14px;min-width:150px;text-align:left;cursor:pointer;box-shadow:0 10px 26px rgba(0,0,0,.18)}
.public-tab strong{display:block;font-size:.95rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.public-tab em{display:block;font-style:normal;color:#cbd5e1;font-size:.78rem;margin-top:3px}.public-tab span{display:inline-block;margin-top:7px;color:#f5c451;font-weight:900}.public-tab.active{border-color:#f5c451;background:linear-gradient(135deg,rgba(245,196,81,.28),rgba(42,84,160,.22));box-shadow:0 0 0 2px rgba(245,196,81,.14),0 14px 34px rgba(0,0,0,.28)}
.public-tab.live em,.public-status.live{color:#86efac}.public-tab.done em,.public-status.done{color:#93c5fd}.public-tab.started em,.public-status.started{color:#f5c451}.public-tab.waiting em,.public-status.waiting{color:#cbd5e1}.public-epreuve-title{display:flex;align-items:flex-end;justify-content:space-between;gap:14px;margin-bottom:14px}.public-epreuve-title h2{margin:4px 0 0;font-size:1.55rem}.public-epreuve-title>strong{color:#f5c451}.public-status{display:inline-flex;text-transform:uppercase;letter-spacing:.11em;font-size:.72rem;font-weight:900}.public-mobile-cards{display:none}.public-badge.abandon{background:rgba(168,85,247,.24);color:#e9d5ff}
@media(max-width:800px){
  .public-header{align-items:flex-start;text-align:left;flex-direction:row}.public-header img{width:86px;border-radius:14px}.public-header h1{font-size:1.7rem}.public-results-page{padding:12px}.public-live-panel{border-radius:22px;margin-top:10px}.public-live-time{border-radius:20px}.public-live-time strong{font-size:2.8rem}.public-epreuve-tabs{margin-left:-12px;margin-right:-12px;padding-left:12px;padding-right:12px}.public-tab{min-width:132px;border-radius:16px;padding:10px 12px}.public-epreuve-title{align-items:flex-start}.public-epreuve-title h2{font-size:1.25rem}.public-desktop-table{display:none!important}.public-mobile-cards{display:grid;gap:10px}.public-rider-card{display:grid;grid-template-columns:48px 1fr auto;gap:10px;align-items:center;padding:13px;border-radius:20px;background:linear-gradient(135deg,rgba(255,255,255,.09),rgba(255,255,255,.035));border:1px solid rgba(255,255,255,.10);box-shadow:0 14px 32px rgba(0,0,0,.22)}.public-rider-card.not-passed{opacity:.78}.public-rider-card.eliminated{border-color:rgba(239,68,68,.35);background:linear-gradient(135deg,rgba(239,68,68,.18),rgba(255,255,255,.035))}.public-rank{width:44px;height:44px;border-radius:14px;display:grid;place-items:center;background:rgba(245,196,81,.16);color:#f5c451;font-weight:1000}.public-rider-main h3{font-size:1.05rem;margin:0 0 3px;color:#fff}.public-rider-main p{margin:0;color:#dbeafe;font-weight:800}.public-rider-main small{display:block;color:#94a3b8;margin-top:2px}.public-score{text-align:right;display:grid;gap:4px;justify-items:end}.public-score strong{font-size:1.1rem;color:#f5c451}.public-score span{color:#e2e8f0;font-weight:800}.public-badge{font-size:.68rem;padding:5px 8px}.public-epreuve{border-radius:24px!important;margin-bottom:16px!important}
}

/* V46 - Écran TV premium LogiChrono */
.tv-pro-body{
  margin:0;
  overflow:hidden;
  background:
    radial-gradient(circle at 15% 0%, rgba(245,196,81,.12), transparent 28%),
    radial-gradient(circle at 85% 20%, rgba(42,84,160,.22), transparent 32%),
    linear-gradient(135deg,#030b14,#071827 45%,#020617)!important;
  color:#fff;
  font-family: Inter, system-ui, -apple-system, Segoe UI, sans-serif;
}
.tv-pro-screen{height:100vh;padding:28px;box-sizing:border-box;display:grid;grid-template-rows:auto auto 1fr;gap:18px;background-image:linear-gradient(120deg,rgba(255,255,255,.035) 1px,transparent 1px);background-size:34px 34px}
.tv-pro-header{display:grid;grid-template-columns:360px 1fr 260px;align-items:center;gap:20px;background:linear-gradient(90deg,rgba(255,255,255,.05),rgba(255,255,255,.015));border:1px solid rgba(255,255,255,.12);border-radius:30px;padding:18px 24px;box-shadow:0 22px 70px rgba(0,0,0,.34)}
.tv-pro-brand img{width:310px;max-height:92px;object-fit:contain;filter:drop-shadow(0 12px 22px rgba(0,0,0,.45))}.tv-pro-event{text-align:center}.tv-pro-event h1{margin:0;color:#fff;font-size:clamp(34px,3vw,58px);line-height:1;text-transform:uppercase;letter-spacing:.04em}.tv-pro-event p{margin:12px 0 0;color:#e5e7eb;font-size:clamp(22px,1.5vw,34px);font-weight:800}.tv-pro-live{text-align:right}.tv-pro-live span{display:flex;justify-content:flex-end;align-items:center;gap:12px;color:#4ade80;font-weight:1000;font-size:34px;letter-spacing:.04em}.tv-pro-live i{width:22px;height:22px;background:#22c55e;border-radius:999px;box-shadow:0 0 22px rgba(34,197,94,.8)}.tv-pro-live strong{display:block;font-size:34px;margin-top:12px}
.tv-pro-current{display:grid;grid-template-columns:1fr 520px;gap:18px;align-items:stretch;background:linear-gradient(135deg,rgba(255,255,255,.055),rgba(255,255,255,.018));border:1px solid rgba(245,196,81,.48);border-radius:28px;padding:0;overflow:hidden;box-shadow:0 24px 80px rgba(0,0,0,.35)}.tv-pro-current-left{position:relative;display:grid;grid-template-columns:170px 1fr;gap:26px;align-items:center;padding:58px 34px 34px}.tv-pro-ribbon{position:absolute;top:0;left:28px;background:linear-gradient(135deg,#f9d46a,#d99b22);color:#06111d;font-size:28px;font-weight:1000;padding:12px 28px;border-radius:0 0 16px 16px;text-transform:uppercase}.tv-pro-rider-icon{width:150px;height:150px;border:3px solid #f5c451;border-radius:50%;display:grid;place-items:center;color:#f5c451;font-size:96px;background:rgba(245,196,81,.08)}.tv-pro-current h2{font-size:clamp(48px,4.2vw,82px);line-height:1;margin:0;text-transform:uppercase;text-shadow:0 8px 28px rgba(0,0,0,.5)}.tv-pro-current h3{font-size:clamp(30px,2.5vw,50px);line-height:1.05;margin:18px 0 10px;color:#f5c451}.tv-pro-current p{font-size:clamp(22px,1.55vw,34px);margin:0;color:#e5e7eb}.tv-pro-current-time{display:grid;place-items:center;text-align:center;padding:34px;border-left:1px solid rgba(255,255,255,.12);background:linear-gradient(135deg,rgba(0,0,0,.18),rgba(245,196,81,.04))}.tv-pro-current-time #tvChrono{font-size:clamp(88px,7.2vw,150px);font-weight:1000;letter-spacing:.02em;font-variant-numeric:tabular-nums;text-shadow:0 8px 36px rgba(255,255,255,.22)}.tv-pro-current-time span{font-size:26px;font-weight:1000;color:#e5e7eb;margin-top:10px;letter-spacing:.04em}
.tv-pro-ranking-card{min-height:0;display:grid;grid-template-rows:auto 1fr auto;border:1px solid rgba(255,255,255,.18);border-radius:28px;overflow:hidden;background:linear-gradient(135deg,rgba(255,255,255,.06),rgba(255,255,255,.018));box-shadow:0 24px 80px rgba(0,0,0,.35)}.tv-pro-ranking-title{display:flex;justify-content:space-between;align-items:center;padding:18px 28px;border-bottom:1px solid rgba(255,255,255,.14);background:rgba(0,0,0,.18)}.tv-pro-ranking-title h2{margin:0;font-size:clamp(34px,2.4vw,50px);letter-spacing:.02em}.tv-pro-ranking-title div{display:flex;gap:34px;align-items:center}.tv-pro-ranking-title strong{font-size:clamp(26px,2vw,42px);color:#f5c451;text-transform:uppercase}.tv-pro-ranking-title span{font-size:26px;font-weight:900;color:#f8fafc}.tv-pro-table{width:100%;height:100%;border-collapse:collapse;table-layout:fixed}.tv-pro-table th{background:linear-gradient(90deg,rgba(42,84,160,.55),rgba(42,84,160,.2));color:#fff;font-size:22px;text-align:left;padding:13px 22px}.tv-pro-table th:first-child{width:160px}.tv-pro-table th:nth-child(4){width:190px}.tv-pro-table th:nth-child(5){width:190px}.tv-pro-table th:nth-child(6){width:220px}.tv-pro-table td{border-top:1px solid rgba(255,255,255,.12);padding:12px 22px;font-size:30px;vertical-align:middle}.tv-rank span{width:74px;height:64px;display:grid;place-items:center;border-radius:10px;background:rgba(255,255,255,.05);font-size:42px;font-weight:1000}.tv-rank .gold{background:linear-gradient(135deg,#ffe17a,#d99b22);color:#06111d}.tv-rank .silver{background:linear-gradient(135deg,#e5e7eb,#94a3b8);color:#06111d}.tv-rank .bronze{background:linear-gradient(135deg,#d99b22,#8b4f12);color:#fff}.tv-rider-cell{display:flex;align-items:center;gap:18px}.tv-rider-cell em{width:54px;height:54px;border:2px solid rgba(255,255,255,.65);border-radius:50%;display:grid;place-items:center;font-style:normal;font-size:34px}.tv-rider-cell strong{font-size:34px;text-transform:uppercase}.tv-horse-name{display:block;color:#f5c451;font-size:34px}.tv-pro-table small{display:block;font-size:22px;color:#e5e7eb;font-weight:700}.tv-points{font-size:54px!important;font-weight:1000;line-height:1}.tv-points small{display:inline;font-size:24px;margin-left:4px}.tv-points.green{color:#4ade80}.tv-points.orange{color:#f59e0b}.tv-points.red{color:#ff4b4b}.tv-points.purple{color:#c084fc}.tv-points.blue{color:#60a5fa}.tv-time-cell{font-size:38px!important;font-weight:1000}.tv-status{display:inline-flex;justify-content:center;min-width:160px;border-radius:8px;padding:12px 18px;font-size:24px;font-weight:1000}.tv-status.green{background:rgba(34,197,94,.30);color:#86efac}.tv-status.orange{background:rgba(245,158,11,.30);color:#fcd34d}.tv-status.red{background:rgba(239,68,68,.32);color:#fecaca}.tv-status.purple{background:rgba(168,85,247,.30);color:#e9d5ff}.tv-status.blue{background:rgba(59,130,246,.30);color:#bfdbfe}.tv-pro-empty{text-align:center!important;color:#cbd5e1!important;font-size:34px!important;padding:80px!important}.tv-pro-legend{display:flex;align-items:center;justify-content:center;gap:54px;padding:19px 24px;border-top:1px solid rgba(255,255,255,.14);font-size:24px;background:rgba(0,0,0,.18)}.tv-pro-legend span{display:flex;align-items:center;gap:12px;white-space:nowrap}.tv-pro-legend b{width:24px;height:24px;border-radius:50%;display:inline-block}.tv-pro-legend .green{background:#4ade80}.tv-pro-legend .orange{background:#f59e0b}.tv-pro-legend .red{background:#ff4b4b}.tv-pro-legend .purple{background:#c084fc}.tv-pro-legend .blue{background:#60a5fa}
@media(max-width:1200px){.tv-pro-screen{padding:14px}.tv-pro-header{grid-template-columns:260px 1fr 190px}.tv-pro-brand img{width:230px}.tv-pro-current{grid-template-columns:1fr}.tv-pro-current-time{border-left:0;border-top:1px solid rgba(255,255,255,.12)}.tv-pro-legend{gap:18px;font-size:18px}.tv-pro-table td{font-size:20px}.tv-rider-cell strong,.tv-horse-name{font-size:22px}.tv-points{font-size:34px!important}}

/* === V47 - Écran TV redimensionné 16:9 === */
html, body.tv-pro-body, body.tv-body{
  width:100%;
  height:100%;
  margin:0;
  overflow:hidden;
}
.tv-pro-body{
  background:#07111f;
}
.tv-pro-screen{
  width:100vw;
  height:100vh;
  max-width:none;
  max-height:none;
  overflow:hidden;
  padding:18px 22px;
  grid-template-rows:112px 250px minmax(0,1fr);
  gap:14px;
  box-sizing:border-box;
}
.tv-pro-header{
  grid-template-columns:300px minmax(0,1fr) 220px;
  gap:16px;
  padding:12px 18px;
  border-radius:24px;
  min-height:0;
}
.tv-pro-brand img{
  width:260px;
  max-height:82px;
}
.tv-pro-event h1{
  font-size:clamp(30px,2.5vw,46px);
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
.tv-pro-event p{
  font-size:clamp(20px,1.35vw,28px);
  margin-top:8px;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
.tv-pro-live span{
  font-size:24px;
}
.tv-pro-live i{
  width:16px;
  height:16px;
}
.tv-pro-live strong{
  font-size:28px;
  margin-top:8px;
}
.tv-pro-current{
  grid-template-columns:minmax(0,1fr) 430px;
  gap:0;
  border-radius:24px;
  min-height:0;
}
.tv-pro-current-left{
  grid-template-columns:118px minmax(0,1fr);
  gap:20px;
  padding:48px 28px 24px;
  min-width:0;
}
.tv-pro-ribbon{
  left:22px;
  font-size:20px;
  padding:10px 22px;
  border-radius:0 0 14px 14px;
}
.tv-pro-rider-icon{
  width:112px;
  height:112px;
  font-size:68px;
}
.tv-pro-current h2{
  font-size:clamp(40px,3.6vw,66px);
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
.tv-pro-current h3{
  font-size:clamp(26px,2vw,40px);
  margin:12px 0 8px;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
.tv-pro-current p{
  font-size:clamp(18px,1.25vw,28px);
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
.tv-pro-current-time{
  padding:24px;
}
.tv-pro-current-time #tvChrono{
  font-size:clamp(72px,6.2vw,118px);
}
.tv-pro-current-time span{
  font-size:20px;
}
.tv-pro-ranking-card{
  min-height:0;
  border-radius:24px;
}
.tv-pro-ranking-title{
  padding:12px 20px;
}
.tv-pro-ranking-title h2{
  font-size:clamp(26px,2vw,38px);
}
.tv-pro-ranking-title div{
  gap:22px;
}
.tv-pro-ranking-title strong{
  font-size:clamp(20px,1.45vw,30px);
  max-width:520px;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
.tv-pro-ranking-title span{
  font-size:20px;
}
.tv-pro-table th{
  font-size:17px;
  padding:8px 16px;
}
.tv-pro-table th:first-child{width:110px;}
.tv-pro-table th:nth-child(4){width:150px;}
.tv-pro-table th:nth-child(5){width:150px;}
.tv-pro-table th:nth-child(6){width:180px;}
.tv-pro-table td{
  padding:8px 16px;
  font-size:23px;
}
.tv-rank span{
  width:54px;
  height:46px;
  font-size:30px;
}
.tv-rider-cell{
  gap:12px;
}
.tv-rider-cell em{
  width:38px;
  height:38px;
  font-size:24px;
}
.tv-rider-cell strong,
.tv-horse-name{
  font-size:26px;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
.tv-horse-name + small,
.tv-pro-table small{
  font-size:16px;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
.tv-points{
  font-size:38px!important;
}
.tv-points small{
  font-size:18px;
}
.tv-time-cell{
  font-size:30px!important;
}
.tv-status{
  min-width:120px;
  padding:8px 12px;
  font-size:17px;
}
.tv-pro-empty{
  font-size:26px!important;
  padding:40px!important;
}
.tv-pro-legend{
  padding:10px 18px;
  gap:28px;
  font-size:17px;
  flex-wrap:nowrap;
}
.tv-pro-legend b{
  width:16px;
  height:16px;
}

@media (min-aspect-ratio: 16/9){
  .tv-pro-screen{padding-left:calc((100vw - 177.777vh)/2 + 22px);padding-right:calc((100vw - 177.777vh)/2 + 22px);}
}

@media (max-aspect-ratio: 16/9){
  .tv-pro-screen{padding-top:calc((100vh - 56.25vw)/2 + 18px);padding-bottom:calc((100vh - 56.25vw)/2 + 18px);}
}

/* === V48 - Ajustements Jury + TV basés sur V47 === */
/* Jury : format plus compact type tableau de bord, tous les paramètres visibles */
.jury-v40-shell{max-width:1920px!important;padding:10px 20px 30px!important;}
.jury-v40-grid{
  grid-template-columns:minmax(320px,.82fr) minmax(560px,1.55fr) minmax(520px,1.22fr)!important;
  grid-template-areas:
    "info chrono obstacles"
    "band chrono obstacles"
    "actions actions actions"
    "ranking ranking route"
    "admin admin qr"!important;
  gap:12px!important;
}
.jury-info-panel{grid-area:info!important;min-height:245px!important;padding:16px!important;border-color:rgba(245,196,81,.40)!important;}
.jury-band-panel{grid-area:band!important;min-height:165px!important;padding:16px!important;border-color:rgba(245,196,81,.40)!important;}
.jury-v40-chrono{grid-area:chrono!important;min-height:530px!important;padding:18px!important;border-color:rgba(245,196,81,.40)!important;}
.jury-obstacles-panel{grid-area:obstacles!important;min-height:530px!important;padding:18px!important;border-color:rgba(245,196,81,.40)!important;}
.jury-actions-inside-penalties{grid-area:actions!important;margin:0!important;grid-template-columns:repeat(10,minmax(110px,1fr))!important;border-color:rgba(245,196,81,.38)!important;}
.jury-ranking-live{grid-area:ranking!important;}
.jury-route-card{grid-area:route!important;}
.jury-v40-qr{grid-area:qr!important;}
.jury-admin-card{grid-area:admin!important;}
.jury-v40-chrono .jury-led-chrono{font-size:clamp(104px,9vw,172px)!important;line-height:.9!important;margin:26px 0 38px!important;}
.jury-v40-chrono .jury-time-stats div{padding:22px 12px!important;}
.jury-v40-chrono .jury-seconds{font-size:19px!important;min-height:48px!important;}
.jury-info-panel .rider-identity{grid-template-columns:84px 1fr!important;gap:14px!important;}
.jury-info-panel .rider-avatar{width:78px!important;height:78px!important;font-size:52px!important;}
.jury-info-panel #currentNameBig{font-size:30px!important;line-height:1!important;}
.jury-info-panel #currentHorseBig{font-size:20px!important;color:#f5c451!important;}
.jury-info-panel #currentClubBig{font-size:17px!important;}
.current-band-content{display:grid!important;grid-template-columns:1fr!important;gap:8px!important;align-items:center!important;}
.current-band-content span{padding:9px 12px!important;border-radius:9px!important;background:rgba(4,12,18,.42)!important;font-weight:900!important;}
.jury-obstacles-panel .parcours-wrap{height:250px!important;max-height:250px!important;}
.penalty-live-summary{margin-top:12px!important;border-color:rgba(245,196,81,.45)!important;}
.penalty-total-box strong{font-size:34px!important;color:#ffd45c!important;}
.jury-actions-inside-penalties button{min-height:64px!important;font-size:17px!important;border-radius:12px!important;}
@media(max-width:1500px){
  .jury-v40-grid{grid-template-columns:1fr 1fr!important;grid-template-areas:"info chrono" "band chrono" "obstacles obstacles" "actions actions" "ranking ranking" "route qr" "admin admin"!important;}
  .jury-v40-chrono{min-height:430px!important;}
  .jury-v40-chrono .jury-led-chrono{font-size:94px!important;}
  .jury-actions-inside-penalties{grid-template-columns:repeat(5,minmax(110px,1fr))!important;}
}

/* TV : vrai 16:9 sans scroll, chrono très visible et jamais coupé */
.tv-pro-screen{grid-template-rows:100px 270px minmax(0,1fr)!important;padding:14px 18px!important;gap:12px!important;}
.tv-pro-header{grid-template-columns:285px minmax(0,1fr) 210px!important;padding:10px 16px!important;border-radius:22px!important;}
.tv-pro-brand img{width:250px!important;max-height:76px!important;}
.tv-pro-event h1{font-size:clamp(34px,2.7vw,54px)!important;}
.tv-pro-event p{font-size:clamp(20px,1.45vw,31px)!important;}
.tv-pro-current{grid-template-columns:minmax(0,1fr) minmax(560px,36vw)!important;}
.tv-pro-current-left{grid-template-columns:118px minmax(0,1fr)!important;padding:52px 28px 26px!important;}
.tv-pro-current-time{padding:18px!important;overflow:hidden!important;}
.tv-pro-current-time #tvChrono{font-size:clamp(96px,7.3vw,152px)!important;line-height:.9!important;width:100%!important;white-space:nowrap!important;transform:scale(.96);transform-origin:center;}
.tv-pro-current-time span{font-size:22px!important;margin-top:14px!important;}
.tv-pro-ranking-title{padding:10px 18px!important;}
.tv-pro-table th{font-size:16px!important;padding:7px 14px!important;}
.tv-pro-table td{font-size:22px!important;padding:7px 14px!important;}
.tv-rider-cell strong,.tv-horse-name{font-size:25px!important;}
.tv-points{font-size:40px!important;}
.tv-time-cell{font-size:29px!important;}
.tv-status{font-size:16px!important;min-width:118px!important;padding:8px 10px!important;}
.tv-pro-legend{font-size:16px!important;padding:9px 14px!important;gap:24px!important;}
@media (min-aspect-ratio:16/9){.tv-pro-screen{padding-left:calc((100vw - 177.777vh)/2 + 18px)!important;padding-right:calc((100vw - 177.777vh)/2 + 18px)!important;}}
@media (max-aspect-ratio:16/9){.tv-pro-screen{padding-top:calc((100vh - 56.25vw)/2 + 14px)!important;padding-bottom:calc((100vh - 56.25vw)/2 + 14px)!important;}}

/* === V49 - Jury propre : un seul chrono, panneaux équilibrés, aucun dépassement === */
body.jury-premium-body{
  background:#06111a!important;
  color:#fff!important;
  overflow-x:hidden!important;
}
.jury-v40-shell{
  max-width:1920px!important;
  width:100%!important;
  padding:10px 14px 28px!important;
  box-sizing:border-box!important;
}
.jury-v40-grid{
  display:grid!important;
  grid-template-columns:minmax(300px,.82fr) minmax(540px,1.38fr) minmax(520px,1.22fr)!important;
  grid-template-areas:
    "info current ranking"
    "info chrono obstacles"
    "band chrono obstacles"
    "actions actions actions"
    "route route qr"
    "admin admin admin"!important;
  gap:12px!important;
  align-items:stretch!important;
  padding:14px!important;
  background:
    radial-gradient(circle at 82% 0%,rgba(245,196,81,.10),transparent 30%),
    repeating-linear-gradient(112deg,rgba(255,255,255,.022) 0 1px,transparent 1px 34px),
    linear-gradient(145deg,#07141e,#0b1d2a 58%,#06111a)!important;
  overflow:hidden!important;
}
.jury-v40-grid>*{min-width:0!important;box-sizing:border-box!important;}
.jury-info-panel{grid-area:info!important;min-height:0!important;padding:16px!important;border-color:rgba(245,196,81,.42)!important;}
.jury-current-card{grid-area:current!important;min-height:108px!important;padding:15px!important;border-color:rgba(245,196,81,.42)!important;}
.jury-v40-chrono{grid-area:chrono!important;min-height:460px!important;padding:18px!important;border-color:rgba(245,196,81,.42)!important;display:flex!important;flex-direction:column!important;justify-content:center!important;}
.jury-obstacles-panel{grid-area:obstacles!important;min-height:460px!important;padding:16px!important;border-color:rgba(245,196,81,.42)!important;}
.jury-band-panel{grid-area:band!important;min-height:190px!important;padding:16px!important;border-color:rgba(245,196,81,.42)!important;}
.jury-ranking-live{grid-area:ranking!important;min-height:220px!important;padding:16px!important;border-color:rgba(245,196,81,.28)!important;}
.jury-route-card{grid-area:route!important;min-height:245px!important;border-color:rgba(245,196,81,.26)!important;}
.jury-v40-qr{grid-area:qr!important;min-height:245px!important;border-color:rgba(245,196,81,.26)!important;}
.jury-admin-card{grid-area:admin!important;}
.jury-actions-inside-penalties{
  grid-area:actions!important;
  display:grid!important;
  grid-template-columns:repeat(10,minmax(0,1fr))!important;
  gap:10px!important;
  margin:0!important;
  padding:13px!important;
  background:linear-gradient(145deg,rgba(9,22,33,.98),rgba(5,14,22,.98))!important;
  border:1px solid rgba(245,196,81,.36)!important;
  border-radius:14px!important;
  overflow:hidden!important;
}
.jury-actions-inside-penalties button{
  min-width:0!important;
  min-height:58px!important;
  font-size:15px!important;
  line-height:1.08!important;
  white-space:normal!important;
  padding:8px 6px!important;
  border-radius:10px!important;
}
.jury-v40-chrono .jury-led-chrono{
  font-size:clamp(92px,7.6vw,150px)!important;
  line-height:.88!important;
  margin:12px 0 26px!important;
  letter-spacing:-.06em!important;
  white-space:nowrap!important;
  overflow:visible!important;
}
.jury-v40-chrono .jury-time-stats{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:12px!important;}
.jury-v40-chrono .jury-time-stats div{padding:18px 10px!important;min-height:76px!important;}
.jury-v40-chrono .jury-seconds{min-height:46px!important;margin-top:14px!important;font-size:18px!important;}
.current-band-content{
  display:grid!important;
  grid-template-columns:1.1fr 1fr 1fr 1fr!important;
  gap:10px!important;
  padding:12px!important;
}
.current-band-content span{font-size:14px!important;min-width:0!important;padding:8px 10px!important;border-radius:8px!important;background:rgba(3,12,20,.34)!important;}
.current-band-content span:first-child{font-size:15px!important;}
.jury-info-panel .rider-identity{grid-template-columns:78px 1fr!important;gap:14px!important;margin-bottom:16px!important;}
.jury-info-panel .rider-avatar{width:72px!important;height:72px!important;font-size:46px!important;}
.jury-info-panel #currentNameBig{font-size:28px!important;line-height:1.05!important;}
.jury-info-panel #currentHorseBig{font-size:18px!important;}
.jury-info-panel #currentClubBig{font-size:15px!important;}
.rider-info-list div{padding:10px 12px!important;}
.jury-band-panel .current-band-content{grid-template-columns:1fr!important;}
.jury-band-panel .current-band-content span{font-size:15px!important;}
.jury-obstacles-panel .parcours-wrap{height:250px!important;max-height:250px!important;overflow:auto!important;}
.obstacle-v40-table td{padding:8px 8px!important;}
.refus-buttons{gap:5px!important;}
.refus-buttons button{width:28px!important;height:25px!important;}
.barre-toggle{width:24px!important;height:24px!important;}
.penalty-live-summary{margin-top:11px!important;padding:12px!important;border:1px solid rgba(245,196,81,.42)!important;border-radius:14px!important;}
.penalty-total-box strong{font-size:32px!important;color:#ffd45c!important;}
.penalty-detail-grid{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:8px!important;}
.jury-ranking-live .table-wrap{max-height:165px!important;overflow:auto!important;}
.jury-ranking-live table th,.jury-ranking-live table td{padding:7px 9px!important;font-size:13px!important;}
.course-map{min-height:155px!important;padding:18px!important;}
.jury-v40-qr img{width:150px!important;max-width:100%!important;}
.jury-v40-qr{text-align:center!important;}
.jury-v40-qr .lc-small-btn{display:block!important;margin:8px auto!important;}
/* Masque les poignées visuelles quand elles polluent l'utilisation, elles restent réactivables par les presets */
.jury-size-chip{display:none!important;}

@media(max-width:1550px){
  .jury-v40-grid{grid-template-columns:minmax(260px,.75fr) minmax(440px,1.25fr) minmax(430px,1fr)!important;}
  .jury-v40-chrono .jury-led-chrono{font-size:clamp(74px,7vw,116px)!important;}
  .jury-actions-inside-penalties{grid-template-columns:repeat(5,minmax(120px,1fr))!important;}
  .jury-ranking-live .table-wrap{max-height:150px!important;}
}
@media(max-width:1100px){
  .jury-v40-grid{grid-template-columns:1fr!important;grid-template-areas:"current" "chrono" "info" "obstacles" "actions" "ranking" "route" "qr" "band" "admin"!important;}
  .jury-v40-chrono{min-height:330px!important;}
  .jury-actions-inside-penalties{grid-template-columns:repeat(2,minmax(130px,1fr))!important;}
  .current-band-content{grid-template-columns:1fr!important;}
}

/* V49 TV : chrono plus visible, jamais rogné */
.tv-pro-current{grid-template-columns:minmax(0,1fr) minmax(620px,40vw)!important;}
.tv-pro-current-time #tvChrono{font-size:clamp(110px,8.1vw,170px)!important;line-height:.86!important;transform:none!important;letter-spacing:-.045em!important;}
.tv-pro-current-time{padding:18px 28px!important;overflow:visible!important;}
@media(max-width:1200px){.tv-pro-current{grid-template-columns:1fr!important}.tv-pro-current-time #tvChrono{font-size:clamp(76px,13vw,130px)!important}}

/* === V50 - Jury compact propre : chrono remonté, scroll restauré, actions visibles === */
html, body.jury-premium-body{
  min-height:100% !important;
  height:auto !important;
  overflow-y:auto !important;
  overflow-x:hidden !important;
}
body.jury-premium-body{
  background:#06111a!important;
}
.jury-premium-body .lc-nav{
  height:72px!important;
  padding:0 18px!important;
}
.jury-premium-body .lc-brand{min-width:260px!important;}
.jury-premium-body .lc-brand img{height:56px!important;max-width:250px!important;}
.jury-premium-body .lc-links a{padding:13px 14px!important;font-size:14px!important;}
.jury-premium-body .lc-links a.active:after{bottom:-16px!important;}
.jury-top-selectbar{
  position:relative!important;
  top:auto!important;
  margin:12px 14px 8px!important;
  padding:12px 16px!important;
  min-height:72px!important;
  grid-template-columns:330px minmax(230px,.9fr) minmax(260px,1fr) minmax(380px,1.3fr) auto!important;
  gap:12px!important;
}
.jury-select-title h1{font-size:20px!important;line-height:1.1!important;}
.jury-select-title .jury-kicker{font-size:11px!important;color:#f5c451!important;}
.jury-top-selectbar label{font-size:11px!important;}
.jury-top-selectbar select{height:38px!important;padding:0 12px!important;font-size:14px!important;}
.jury-nav-buttons button{height:42px!important;min-width:112px!important;font-size:15px!important;}
.jury-v40-shell{
  padding:8px 14px 40px!important;
  max-width:1920px!important;
  overflow:visible!important;
}
.jury-v40-shell .jury-adapt-toolbar{
  display:flex!important;
  max-width:calc(100vw - 28px)!important;
  margin:8px auto 10px!important;
  padding:10px 14px!important;
  min-height:48px!important;
}
.jury-adapt-toolbar .toolbar-help{font-size:11px!important;}
.jury-adapt-toolbar button{height:34px!important;padding:0 12px!important;}
.jury-v40-grid{
  display:grid!important;
  width:100%!important;
  max-width:1680px!important;
  margin:0 auto!important;
  grid-template-columns:minmax(330px,.86fr) minmax(560px,1.48fr) minmax(520px,1.25fr)!important;
  grid-template-areas:
    "info current ranking"
    "info chrono obstacles"
    "band chrono obstacles"
    "actions actions actions"
    "route route qr"
    "admin admin admin"!important;
  gap:10px!important;
  padding:12px!important;
  align-items:stretch!important;
  overflow:visible!important;
  border-radius:18px!important;
  background:
    radial-gradient(circle at 82% 4%,rgba(245,196,81,.12),transparent 28%),
    repeating-linear-gradient(112deg,rgba(255,255,255,.022) 0 1px,transparent 1px 34px),
    linear-gradient(145deg,#07141e,#0b1d2a 58%,#06111a)!important;
}
.jury-v40-grid>*{min-width:0!important;box-sizing:border-box!important;}
.jury-info-panel,
.jury-band-panel,
.jury-v40-chrono,
.jury-obstacles-panel,
.jury-ranking-live,
.jury-route-card,
.jury-v40-qr{
  border-color:rgba(245,196,81,.48)!important;
  box-shadow:0 14px 36px rgba(0,0,0,.24)!important;
  overflow:hidden!important;
}
.jury-info-panel{grid-area:info!important;padding:14px!important;min-height:350px!important;}
.jury-info-panel .panel-title-row{margin-bottom:12px!important;}
.jury-info-panel .rider-identity{grid-template-columns:74px 1fr!important;gap:12px!important;margin-bottom:12px!important;}
.jury-info-panel .rider-avatar{width:70px!important;height:70px!important;font-size:45px!important;}
.jury-info-panel #currentNameBig{font-size:27px!important;line-height:1.05!important;}
.jury-info-panel #currentHorseBig{font-size:18px!important;color:#f5c451!important;}
.jury-info-panel #currentClubBig{font-size:15px!important;}
.rider-info-list{gap:8px!important;margin-top:10px!important;}
.rider-info-list div{padding:9px 11px!important;}
.rider-info-list span{font-size:13px!important;}
.rider-info-list strong{font-size:14px!important;}
.jury-info-panel .lc-small-btn{height:42px!important;margin-top:8px!important;font-size:15px!important;}
.jury-current-card{grid-area:current!important;min-height:122px!important;padding:14px 16px!important;}
.jury-current-card .panel-title-row{display:none!important;}
.current-band-content{
  display:grid!important;
  grid-template-columns:1.1fr 1fr 1fr 1fr!important;
  gap:10px!important;
  padding:12px 14px!important;
  height:100%!important;
  align-items:center!important;
}
.current-band-content span{font-size:14px!important;padding:8px 10px!important;border-radius:8px!important;background:rgba(3,12,20,.38)!important;}
.current-band-content span:first-child{font-size:16px!important;color:#fff!important;}
.current-band-content span:nth-child(2){color:#f5c451!important;}
.jury-v40-chrono{
  grid-area:chrono!important;
  min-height:375px!important;
  padding:14px!important;
  display:flex!important;
  flex-direction:column!important;
  justify-content:flex-start!important;
}
.jury-v40-chrono .jury-kicker{margin:2px 0 10px!important;font-size:14px!important;}
.jury-v40-chrono .jury-led-chrono{
  font-size:clamp(94px,7.4vw,142px)!important;
  line-height:.88!important;
  margin:8px 0 18px!important;
  letter-spacing:-.055em!important;
  white-space:nowrap!important;
}
.jury-v40-chrono .jury-time-stats{grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:10px!important;}
.jury-v40-chrono .jury-time-stats div{min-height:72px!important;padding:14px 8px!important;}
.jury-v40-chrono .jury-time-stats span{font-size:11px!important;}
.jury-v40-chrono .jury-time-stats strong{font-size:22px!important;}
.jury-v40-chrono .jury-seconds{min-height:42px!important;margin-top:12px!important;font-size:16px!important;}
.jury-ranking-live{
  grid-area:ranking!important;
  min-height:190px!important;
  padding:12px!important;
}
.jury-ranking-live .section-header{margin-bottom:8px!important;}
.jury-ranking-live .table-wrap{max-height:130px!important;overflow:auto!important;}
.jury-ranking-live table th,.jury-ranking-live table td{padding:6px 8px!important;font-size:12px!important;}
.jury-ranking-live .ranking-help{font-size:11px!important;margin:6px 0 0!important;}
.jury-obstacles-panel{
  grid-area:obstacles!important;
  min-height:360px!important;
  padding:12px!important;
}
.jury-obstacles-panel .section-header{margin-bottom:8px!important;}
.jury-obstacles-panel #obstacleScoreInfo{font-size:13px!important;margin-bottom:8px!important;}
.jury-obstacles-panel .parcours-wrap{height:170px!important;max-height:170px!important;overflow:auto!important;resize:vertical!important;}
.obstacle-v40-table th{padding:7px 8px!important;font-size:11px!important;}
.obstacle-v40-table td{padding:6px 8px!important;font-size:12px!important;}
.barre-toggle{width:24px!important;height:24px!important;}
.refus-buttons button{width:27px!important;height:24px!important;font-size:13px!important;}
.obstacle-state{min-width:86px!important;padding:4px 7px!important;font-size:11px!important;}
.penalty-live-summary{margin-top:10px!important;padding:11px!important;border-color:rgba(245,196,81,.48)!important;border-radius:12px!important;}
.penalty-total-box{min-height:44px!important;}
.penalty-total-box strong{font-size:30px!important;color:#ffd45c!important;}
.penalty-detail-grid{grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:8px!important;}
.penalty-detail-grid span{font-size:13px!important;padding:10px 6px!important;}
.jury-band-panel{grid-area:band!important;min-height:168px!important;padding:14px!important;}
.jury-band-panel .panel-title-row{margin-bottom:10px!important;}
.jury-band-panel .current-band-content{grid-template-columns:1fr!important;gap:8px!important;padding:0!important;background:transparent!important;border:0!important;}
.jury-band-panel .current-band-content span{font-size:15px!important;padding:9px 11px!important;}
.jury-actions-inside-penalties{
  grid-area:actions!important;
  display:grid!important;
  grid-template-columns:repeat(10,minmax(0,1fr))!important;
  gap:10px!important;
  margin:0!important;
  padding:12px!important;
  overflow:hidden!important;
  border-color:rgba(245,196,81,.45)!important;
}
.jury-actions-inside-penalties button{min-width:0!important;min-height:54px!important;font-size:15px!important;line-height:1.05!important;padding:7px 6px!important;border-radius:10px!important;white-space:normal!important;}
.jury-route-card{grid-area:route!important;min-height:220px!important;padding:14px!important;}
.course-map{min-height:130px!important;padding:16px!important;}
.course-node{width:36px!important;height:36px!important;font-size:14px!important;}
.jury-v40-qr{grid-area:qr!important;min-height:220px!important;padding:14px!important;text-align:center!important;}
.jury-v40-qr img{width:132px!important;max-width:100%!important;padding:6px!important;}
.jury-v40-qr h2{font-size:20px!important;margin:0 0 6px!important;}
.jury-v40-qr p{font-size:13px!important;margin:0 0 7px!important;}
.jury-v40-qr .lc-small-btn{height:34px!important;display:block!important;margin:7px auto!important;font-size:13px!important;}
.jury-admin-card{grid-area:admin!important;display:block!important;margin-top:10px!important;}
#settingsBlock,.jury-premium-body section.card.wide:not(.jury-admin-card){display:block!important;max-width:1680px!important;margin:14px auto!important;}
.jury-size-chip,.jury-resize-handle,.jury-height-handle{display:none!important;}
@media(max-width:1500px){
  .jury-v40-grid{max-width:1400px!important;grid-template-columns:minmax(280px,.8fr) minmax(430px,1.18fr) minmax(430px,1fr)!important;}
  .jury-v40-chrono .jury-led-chrono{font-size:clamp(74px,7vw,108px)!important;}
  .jury-actions-inside-penalties{grid-template-columns:repeat(5,minmax(110px,1fr))!important;}
}
@media(max-width:1100px){
  .jury-top-selectbar{grid-template-columns:1fr!important;}
  .jury-v40-grid{grid-template-columns:1fr!important;grid-template-areas:"current" "chrono" "info" "obstacles" "actions" "ranking" "route" "qr" "band" "admin"!important;}
  .jury-v40-chrono{min-height:310px!important;}
  .jury-v40-chrono .jury-led-chrono{font-size:64px!important;}
  .jury-actions-inside-penalties{grid-template-columns:repeat(2,minmax(120px,1fr))!important;}
  .current-band-content{grid-template-columns:1fr!important;}
}


/* =========================
   V51 - Classement complet
   ========================= */
.lc-ranking-body{
  min-height:100vh;
  background:
    radial-gradient(circle at top left, rgba(245,196,81,.12), transparent 28%),
    linear-gradient(135deg,#07111c 0%,#102033 45%,#07111c 100%);
  color:#f4f7fb;
}
.lc-ranking-topbar{
  position:sticky;top:0;z-index:50;
  display:flex;align-items:center;justify-content:space-between;gap:18px;
  padding:14px 26px;
  background:rgba(7,17,28,.92);
  border-bottom:1px solid rgba(255,255,255,.12);
  backdrop-filter:blur(12px);
}
.lc-ranking-brand{display:flex;align-items:center;gap:14px}
.lc-ranking-brand img{width:150px;max-height:54px;object-fit:contain}
.lc-ranking-brand strong{display:block;font-size:1.25rem}
.lc-ranking-brand span{display:block;color:#9fb2c7;font-size:.85rem;text-transform:uppercase;letter-spacing:.12em}
.lc-ranking-topbar nav{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.lc-ranking-topbar nav a,.lc-ranking-topbar .logout-btn{
  color:#f4f7fb;text-decoration:none;background:rgba(255,255,255,.08);
  border:1px solid rgba(255,255,255,.12);border-radius:999px;padding:10px 15px;font-weight:800;
}
.lc-ranking-page{max-width:1500px;margin:0 auto;padding:22px}
.lc-ranking-hero{
  display:flex;align-items:center;justify-content:space-between;gap:20px;
  padding:28px;border-radius:22px;
  background:linear-gradient(120deg,rgba(12,31,49,.96),rgba(20,43,66,.9));
  border:1px solid rgba(245,196,81,.28);
  box-shadow:0 18px 60px rgba(0,0,0,.32);
}
.lc-kicker{color:#f5c451;font-weight:900;text-transform:uppercase;letter-spacing:.16em}
.lc-ranking-hero h1{font-size:clamp(2rem,4vw,4.2rem);margin:.25rem 0}
.lc-ranking-hero p{color:#c7d3df;font-size:1.1rem;margin:0}
.lc-ranking-live{
  min-width:190px;text-align:center;background:rgba(0,0,0,.22);border:1px solid rgba(255,255,255,.12);
  border-radius:18px;padding:18px;
}
.live-dot{display:inline-block;width:14px;height:14px;background:#34d16d;border-radius:50%;box-shadow:0 0 18px #34d16d;margin-right:8px}
.lc-ranking-live strong{color:#34d16d;text-transform:uppercase;font-size:1.2rem}
.lc-ranking-live small{display:block;margin-top:8px;font-size:1.8rem;font-weight:900}
.lc-ranking-tools{
  margin:18px 0;display:grid;grid-template-columns:2fr 1fr auto;gap:14px;
  padding:16px;border-radius:18px;background:rgba(255,255,255,.055);border:1px solid rgba(255,255,255,.1);
}
.lc-search-box label,.lc-filter-box label{display:block;color:#f5c451;font-size:.78rem;text-transform:uppercase;font-weight:900;margin-bottom:6px}
.lc-search-box input,.lc-filter-box select{
  width:100%;box-sizing:border-box;padding:14px 16px;border-radius:12px;border:1px solid rgba(245,196,81,.28);
  background:#07131f;color:#fff;font-weight:800;
}
.lc-refresh-btn{
  align-self:end;padding:14px 18px;border-radius:12px;border:0;background:#f5c451;color:#07111c;font-weight:900;
}
.lc-ranking-tabs{
  display:flex;gap:10px;overflow:auto;padding:6px 0 12px;margin-bottom:8px;
}
.lc-rank-tab{
  flex:0 0 auto;min-width:190px;text-align:left;border-radius:16px;padding:13px 15px;
  background:rgba(255,255,255,.07);color:#fff;border:1px solid rgba(255,255,255,.12);
}
.lc-rank-tab.active{border-color:#f5c451;box-shadow:0 0 0 2px rgba(245,196,81,.16) inset}
.lc-rank-tab strong{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:240px}
.lc-rank-tab em{display:inline-block;margin-top:6px;font-style:normal;color:#c7d3df}
.lc-rank-tab span{float:right;background:rgba(255,255,255,.12);border-radius:99px;padding:2px 8px}
.lc-rank-tab.live em{color:#34d16d}.lc-rank-tab.done em{color:#58a6ff}.lc-rank-tab.upcoming em{color:#aab6c2}
.lc-epreuve-ranking-card{
  margin:18px 0;border-radius:22px;overflow:hidden;background:rgba(12,29,45,.94);
  border:1px solid rgba(255,255,255,.12);box-shadow:0 18px 55px rgba(0,0,0,.28);
}
.lc-epreuve-ranking-card>header{
  display:flex;align-items:center;justify-content:space-between;gap:18px;
  padding:20px 22px;border-bottom:1px solid rgba(255,255,255,.1);
  background:linear-gradient(90deg,rgba(245,196,81,.10),rgba(255,255,255,.03));
}
.lc-epreuve-ranking-card h2{margin:8px 0 4px;font-size:clamp(1.4rem,2.4vw,2.2rem)}
.lc-epreuve-ranking-card p{margin:0;color:#c7d3df}
.lc-status{
  display:inline-flex;align-items:center;justify-content:center;border-radius:999px;padding:5px 10px;
  font-weight:900;font-size:.82rem;text-transform:uppercase;
}
.lc-status.live,.lc-status.ok{background:rgba(52,209,109,.18);color:#34d16d;border:1px solid rgba(52,209,109,.35)}
.lc-status.done{background:rgba(88,166,255,.16);color:#58a6ff}
.lc-status.started,.lc-status.wait,.lc-status.upcoming{background:rgba(255,255,255,.12);color:#dbe7f3}
.lc-status.danger{background:rgba(255,71,87,.18);color:#ff5a66;border:1px solid rgba(255,71,87,.35)}
.lc-status.abandon{background:rgba(178,112,255,.18);color:#c391ff}
.lc-status.np{background:rgba(0,136,255,.18);color:#70c3ff}
.lc-epreuve-count{text-align:center;background:rgba(0,0,0,.22);border-radius:16px;padding:12px 18px}
.lc-epreuve-count strong{display:block;font-size:1.8rem;color:#f5c451}
.lc-epreuve-count span{color:#c7d3df;text-transform:uppercase;font-size:.76rem}
.lc-ranking-table-wrap{margin:0;padding:0;overflow:auto}
.lc-ranking-table{width:100%;border-collapse:collapse;font-size:.98rem}
.lc-ranking-table th{
  background:rgba(255,255,255,.10);color:#dce8f5;text-transform:uppercase;font-size:.78rem;letter-spacing:.05em;
  padding:13px 12px;text-align:left;white-space:nowrap;
}
.lc-ranking-table td{padding:15px 12px;border-top:1px solid rgba(255,255,255,.08);vertical-align:middle}
.lc-ranking-table tr:hover{background:rgba(245,196,81,.08)}
.lc-ranking-table small{display:block;color:#9fb2c7;margin-top:4px}
.rank-cell{font-size:1.25rem;font-weight:900;color:#f5c451}
.gold{color:#f5c451}
.lc-mobile-results{display:none}
.lc-ranking-empty{padding:40px;border-radius:18px;text-align:center;background:rgba(255,255,255,.06);color:#dce8f5}

@media(max-width:800px){
  .lc-ranking-topbar{position:relative;align-items:flex-start;flex-direction:column;padding:14px}
  .lc-ranking-topbar nav{width:100%;overflow:auto;flex-wrap:nowrap}
  .lc-ranking-page{padding:12px}
  .lc-ranking-hero{flex-direction:column;align-items:flex-start;padding:20px}
  .lc-ranking-tools{grid-template-columns:1fr}
  .lc-ranking-tabs{padding-bottom:10px}
  .lc-rank-tab{min-width:230px}
  .lc-ranking-table-wrap{display:none}
  .lc-mobile-results{display:grid;gap:10px;padding:12px}
  .lc-mobile-result-card{
    display:grid;grid-template-columns:54px 1fr auto;gap:12px;align-items:center;
    padding:14px;border-radius:16px;background:rgba(255,255,255,.06);border:1px solid rgba(255,255,255,.12);
  }
  .lc-mobile-result-card.ok,.lc-mobile-result-card.passed{border-left:5px solid #34d16d}
  .lc-mobile-result-card.danger{border-left:5px solid #ff4757}
  .lc-mobile-result-card.abandon{border-left:5px solid #a855f7}
  .lc-mobile-result-card.np{border-left:5px solid #1e90ff}
  .lc-mobile-rank{font-size:1.6rem;font-weight:1000;text-align:center;color:#f5c451}
  .lc-mobile-main h3{margin:0;font-size:1.05rem}
  .lc-mobile-main p{margin:4px 0;color:#f5c451;font-weight:900}
  .lc-mobile-main small{color:#c7d3df}
  .lc-mobile-score{text-align:right}
  .lc-mobile-score strong{display:block;color:#34d16d;font-size:1.1rem}
  .lc-mobile-score span,.lc-mobile-score em{display:block;color:#dce8f5;font-style:normal;font-size:.85rem;margin-top:3px}
}


/* =========================
   V58 - Classement live plus grand pour sélection rapide
   ========================= */
.jury-ranking-live{
  min-height: 520px !important;
  height: auto !important;
  display: flex !important;
  flex-direction: column !important;
}

.jury-ranking-live .section-header{
  flex-shrink: 0 !important;
}

.jury-ranking-live .table-wrap{
  flex: 1 1 auto !important;
  max-height: 460px !important;
  min-height: 380px !important;
  overflow-y: auto !important;
  overflow-x: auto !important;
  border: 1px solid rgba(245,177,36,.35) !important;
  border-radius: 14px !important;
  background: rgba(0,0,0,.18) !important;
}

.jury-ranking-live table{
  width: 100% !important;
  font-size: 17px !important;
  border-collapse: separate !important;
  border-spacing: 0 8px !important;
}

.jury-ranking-live thead th{
  position: sticky !important;
  top: 0 !important;
  z-index: 2 !important;
  background: #102236 !important;
  color: #f5c451 !important;
  font-size: 13px !important;
  text-transform: uppercase !important;
  letter-spacing: .06em !important;
  padding: 12px 10px !important;
}

.jury-ranking-live tbody tr{
  cursor: pointer !important;
  background: rgba(255,255,255,.055) !important;
  transition: transform .12s ease, background .12s ease, box-shadow .12s ease !important;
}

.jury-ranking-live tbody tr:hover{
  background: rgba(245,196,81,.16) !important;
  transform: scale(1.01) !important;
  box-shadow: 0 0 0 2px rgba(245,196,81,.28) !important;
}

.jury-ranking-live tbody tr.selected-row,
.jury-ranking-live tbody tr.selected{
  background: rgba(52,209,109,.22) !important;
  box-shadow: 0 0 0 2px rgba(52,209,109,.5) !important;
}

.jury-ranking-live td{
  padding: 16px 12px !important;
  font-size: 17px !important;
  vertical-align: middle !important;
  border-bottom: 0 !important;
}

.jury-ranking-live td:nth-child(1){
  font-size: 22px !important;
  font-weight: 1000 !important;
  color: #f5c451 !important;
  min-width: 64px !important;
}

.jury-ranking-live td:nth-child(2){
  font-size: 21px !important;
  font-weight: 1000 !important;
  color: #ffffff !important;
  min-width: 72px !important;
}

.jury-ranking-live td:nth-child(3){
  font-size: 19px !important;
  font-weight: 1000 !important;
  color: #ffffff !important;
  min-width: 190px !important;
}

.jury-ranking-live td:nth-child(4){
  color: #f5c451 !important;
  font-weight: 900 !important;
  min-width: 170px !important;
}

.jury-ranking-live .status-chip{
  font-size: 13px !important;
  padding: 7px 10px !important;
  border-radius: 999px !important;
  white-space: nowrap !important;
}

.jury-ranking-live .ranking-help{
  margin-top: 12px !important;
  padding: 10px 12px !important;
  border-radius: 12px !important;
  background: rgba(245,196,81,.10) !important;
  color: #f7d98a !important;
  font-weight: 800 !important;
}

/* Si l'écran est large, on donne plus de place au classement live */
@media (min-width: 1200px){
  .jury-v40-grid,
  .jury-premium-hero{
    grid-template-columns: minmax(360px,.9fr) minmax(520px,1.15fr) minmax(560px,1.35fr) !important;
  }

  .jury-ranking-live{
    grid-column: span 1 !important;
  }
}

/* Sur tablette ou petit PC, le classement reste prioritaire et lisible */
@media (max-width: 1100px){
  .jury-ranking-live{
    min-height: 480px !important;
  }
  .jury-ranking-live .table-wrap{
    min-height: 360px !important;
    max-height: 420px !important;
  }
}


/* =========================
   V59 - Interface Jury tableau de bord : classement grand + chrono visible + vides comblés
   Base V58 stable, CSS uniquement.
   ========================= */

.jury-premium-body,
.jury-premium-body.lc-pro{
  overflow-y:auto !important;
  overflow-x:hidden !important;
}

.jury-premium-shell{
  max-width:1880px !important;
  margin:0 auto !important;
  padding:14px 16px 70px !important;
}

/* Barre sélection plus compacte */
.jury-top-selectbar{
  max-width:1880px !important;
  margin:10px auto 10px !important;
  grid-template-columns: 350px 1fr 1.05fr 1.4fr 245px !important;
  gap:12px !important;
}
.jury-top-selectbar select{
  height:42px !important;
}

/* Grille principale propre */
.jury-v40-grid,
.jury-premium-hero{
  display:grid !important;
  grid-template-columns: 390px minmax(680px,1fr) 520px !important;
  grid-template-rows: auto auto auto !important;
  grid-template-areas:
    "info ranking obstacles"
    "band chrono penalties"
    "actions actions actions" !important;
  gap:14px !important;
  align-items:stretch !important;
}

.jury-info-panel{ grid-area:info !important; }
.jury-band-panel{ grid-area:band !important; }
.jury-ranking-live{ grid-area:ranking !important; }
.jury-v40-chrono{ grid-area:chrono !important; }
.jury-obstacles-panel{ grid-area:obstacles !important; }
.jury-actions-inside-penalties,
.jury-v40-actions{ grid-area:actions !important; }

/* Masquer les blocs qui créent du vide dans cette organisation */
.jury-route-card,
.jury-v40-qr,
.jury-qr-card{
  display:none !important;
}

/* Style commun des panneaux */
.jury-info-panel,
.jury-band-panel,
.jury-ranking-live,
.jury-v40-chrono,
.jury-obstacles-panel{
  border:1px solid rgba(245,177,36,.6) !important;
  border-radius:15px !important;
  background:
    radial-gradient(circle at 90% 0%, rgba(245,177,36,.08), transparent 30%),
    linear-gradient(180deg, rgba(8,25,38,.98), rgba(4,18,29,.98)) !important;
  box-shadow:0 12px 35px rgba(0,0,0,.22) !important;
}

/* Infos concurrent */
.jury-info-panel{
  min-height:450px !important;
}
.jury-info-panel .rider-identity{
  grid-template-columns:100px 1fr !important;
}
.jury-info-panel .rider-avatar{
  width:96px !important;
  height:96px !important;
  font-size:54px !important;
  border:2px solid rgba(255,255,255,.18) !important;
}
.jury-info-panel h1{
  font-size:28px !important;
  line-height:1.05 !important;
}
.jury-info-panel p{
  font-size:17px !important;
}
.jury-info-panel .rider-info-list div{
  min-height:44px !important;
  padding:11px 12px !important;
}
.jury-info-panel .lc-small-btn{
  width:100% !important;
  min-height:52px !important;
  font-size:16px !important;
}

/* Bande infos en bas gauche */
.jury-band-panel{
  min-height:240px !important;
}
.jury-band-panel .current-band-content{
  display:grid !important;
  grid-template-columns:1fr !important;
  gap:10px !important;
}
.jury-band-panel .current-band-content span{
  background:rgba(0,0,0,.22) !important;
  border-radius:10px !important;
  padding:13px 14px !important;
  font-size:16px !important;
  font-weight:900 !important;
}
.jury-band-panel .current-band-content span:nth-child(2){
  color:#f5c451 !important;
}

/* Classement live : très grand, sélection rapide */
.jury-ranking-live{
  min-height:600px !important;
  padding:16px !important;
  display:flex !important;
  flex-direction:column !important;
}
.jury-ranking-live .section-header{
  align-items:flex-start !important;
  gap:12px !important;
}
.jury-ranking-live .section-header h2{
  font-size:24px !important;
}
.jury-ranking-live .ranking-badge{
  font-size:15px !important;
  padding:12px 18px !important;
  background:rgba(0,154,78,.22) !important;
  color:#65f08e !important;
  border:1px solid rgba(101,240,142,.35) !important;
}
.jury-ranking-live .table-wrap{
  flex:1 1 auto !important;
  max-height:510px !important;
  min-height:460px !important;
  overflow-y:auto !important;
  overflow-x:hidden !important;
  border:1px solid rgba(245,177,36,.45) !important;
  border-radius:14px !important;
  background:rgba(0,0,0,.18) !important;
}
.jury-ranking-live table{
  width:100% !important;
  border-collapse:collapse !important;
  table-layout:fixed !important;
  font-size:18px !important;
}
.jury-ranking-live thead th{
  position:sticky !important;
  top:0 !important;
  z-index:4 !important;
  background:#102236 !important;
  color:#f5c451 !important;
  font-size:12px !important;
  text-transform:uppercase !important;
  letter-spacing:.06em !important;
  padding:12px 8px !important;
}
.jury-ranking-live th:nth-child(4),
.jury-ranking-live td:nth-child(4),
.jury-ranking-live th:nth-child(5),
.jury-ranking-live td:nth-child(5){
  display:none !important;
}
.jury-ranking-live th:nth-child(1),
.jury-ranking-live td:nth-child(1){ width:70px !important; }
.jury-ranking-live th:nth-child(2),
.jury-ranking-live td:nth-child(2){ width:70px !important; }
.jury-ranking-live th:nth-child(6),
.jury-ranking-live td:nth-child(6){ width:90px !important; text-align:center !important; }
.jury-ranking-live th:nth-child(7),
.jury-ranking-live td:nth-child(7){ width:110px !important; text-align:center !important; }
.jury-ranking-live th:nth-child(8),
.jury-ranking-live td:nth-child(8){ width:120px !important; text-align:center !important; }

.jury-ranking-live tbody tr{
  cursor:pointer !important;
  min-height:76px !important;
  background:linear-gradient(90deg,rgba(255,255,255,.075),rgba(255,255,255,.035)) !important;
  border-bottom:1px solid rgba(245,177,36,.28) !important;
  transition:background .12s ease, transform .12s ease, box-shadow .12s ease !important;
}
.jury-ranking-live tbody tr:hover{
  background:linear-gradient(90deg,rgba(245,177,36,.22),rgba(245,177,36,.08)) !important;
  box-shadow:inset 0 0 0 2px rgba(245,177,36,.42) !important;
}
.jury-ranking-live tbody tr.selected-row,
.jury-ranking-live tbody tr.selected{
  background:linear-gradient(90deg,rgba(0,166,88,.45),rgba(0,166,88,.16)) !important;
  box-shadow:inset 0 0 0 2px rgba(52,209,109,.65) !important;
}
.jury-ranking-live td{
  padding:18px 10px !important;
  vertical-align:middle !important;
  border-bottom:1px solid rgba(245,177,36,.22) !important;
}
.jury-ranking-live td:nth-child(1){
  color:#f5b622 !important;
  font-size:34px !important;
  font-weight:1000 !important;
  text-align:center !important;
}
.jury-ranking-live td:nth-child(2){
  color:#fff !important;
  font-size:22px !important;
  font-weight:1000 !important;
  text-align:center !important;
}
.jury-ranking-live td:nth-child(3){
  color:#fff !important;
  font-size:21px !important;
  font-weight:1000 !important;
  line-height:1.1 !important;
}
.jury-ranking-live td:nth-child(6){
  font-size:24px !important;
  font-weight:1000 !important;
  color:#fff !important;
}
.jury-ranking-live td:nth-child(7){
  font-size:22px !important;
  font-weight:1000 !important;
  color:#fff !important;
}
.jury-ranking-live .status-chip{
  font-size:13px !important;
  padding:8px 10px !important;
}
.jury-ranking-live .ranking-help{
  margin-top:12px !important;
  padding:12px !important;
  color:#f5c451 !important;
  font-size:15px !important;
  text-align:center !important;
  text-transform:uppercase !important;
  background:rgba(245,177,36,.09) !important;
  border-radius:12px !important;
}

/* Chrono : plus grand, plus haut, pas coupé */
.jury-v40-chrono{
  min-height:385px !important;
  padding:18px 22px 20px !important;
  display:grid !important;
  align-content:center !important;
  overflow:hidden !important;
}
.jury-v40-chrono .jury-kicker{
  font-size:18px !important;
  margin:0 0 4px !important;
}
.jury-v40-chrono .jury-led-chrono,
.jury-v40-chrono #chrono{
  font-size:clamp(125px,8.4vw,185px) !important;
  line-height:.92 !important;
  margin:4px 0 18px !important;
  padding:0 !important;
  min-height:150px !important;
  border:0 !important;
  background:transparent !important;
  box-shadow:none !important;
  color:#fff !important;
  text-shadow:0 0 25px rgba(255,255,255,.30) !important;
  text-align:center !important;
}
.jury-v40-chrono .jury-time-stats{
  grid-template-columns:repeat(3,1fr) !important;
  gap:12px !important;
}
.jury-v40-chrono .jury-time-stats div{
  min-height:78px !important;
  border-color:rgba(245,177,36,.45) !important;
}
.jury-v40-chrono .jury-time-stats strong{
  font-size:28px !important;
}
.jury-v40-chrono .jury-seconds{
  margin-top:10px !important;
  min-height:52px !important;
  font-size:20px !important;
  border:1px solid rgba(245,177,36,.5) !important;
}

/* Obstacles + pénalités à droite */
.jury-obstacles-panel{
  min-height:600px !important;
  padding:16px !important;
  display:flex !important;
  flex-direction:column !important;
}
.jury-obstacles-panel .section-header h2{
  font-size:22px !important;
}
.jury-obstacles-panel .hint{
  font-size:14px !important;
}
.jury-obstacles-panel .parcours-wrap{
  max-height:420px !important;
  min-height:320px !important;
  overflow:auto !important;
  border:1px solid rgba(245,177,36,.45) !important;
  border-radius:12px !important;
}
.jury-obstacles-panel .obstacle-score-table{
  min-width:100% !important;
  font-size:15px !important;
}
.jury-obstacles-panel .obstacle-score-table th,
.jury-obstacles-panel .obstacle-score-table td{
  padding:10px 8px !important;
}
.jury-obstacles-panel .penalty-live-summary{
  margin-top:14px !important;
  border:1px solid rgba(245,177,36,.5) !important;
  border-radius:14px !important;
  padding:16px !important;
}
.jury-obstacles-panel .penalty-total-box strong{
  font-size:38px !important;
  color:#f5c451 !important;
}
.jury-obstacles-panel .penalty-detail-grid{
  grid-template-columns:repeat(4,1fr) !important;
  gap:10px !important;
}
.jury-obstacles-panel .penalty-detail-grid span{
  min-height:70px !important;
  display:grid !important;
  place-items:center !important;
  font-size:18px !important;
}

/* Actions en bas */
.jury-v40-actions,
.jury-actions-inside-penalties{
  margin-top:0 !important;
  display:grid !important;
  grid-template-columns:repeat(10,1fr) !important;
  gap:12px !important;
  padding:14px 24px !important;
  border:1px solid rgba(245,177,36,.5) !important;
  border-radius:15px !important;
  background:rgba(4,17,28,.98) !important;
  position:sticky !important;
  bottom:0 !important;
  z-index:50 !important;
}
.jury-v40-actions button,
.jury-actions-inside-penalties button{
  min-height:62px !important;
  font-size:17px !important;
  border-radius:11px !important;
}

/* Zone admin plus bas */
.jury-admin-card{
  margin-top:22px !important;
}

/* Adaptation écran plus petit */
@media(max-width:1500px){
  .jury-v40-grid,
  .jury-premium-hero{
    grid-template-columns:350px minmax(560px,1fr) 470px !important;
  }
  .jury-v40-actions,
  .jury-actions-inside-penalties{
    grid-template-columns:repeat(5,1fr) !important;
  }
}

@media(max-width:1100px){
  .jury-top-selectbar{
    grid-template-columns:1fr !important;
  }
  .jury-v40-grid,
  .jury-premium-hero{
    grid-template-columns:1fr !important;
    grid-template-areas:
      "ranking"
      "chrono"
      "obstacles"
      "info"
      "band"
      "actions" !important;
  }
  .jury-v40-actions,
  .jury-actions-inside-penalties{
    position:relative !important;
    grid-template-columns:repeat(2,1fr) !important;
  }
}

/* V60 - chrono étendu sur l'espace libre */
.jury-v40-chrono{
  grid-column: span 2 !important;
  min-height: 420px !important;
}
.jury-obstacles-panel{
  grid-column: 3 !important;
}

/* V61 - Affiche QR premium */
.poster-page-body{min-height:100vh;margin:0;background:radial-gradient(circle at 80% 12%,rgba(245,177,36,.12),transparent 28%),linear-gradient(135deg,#06111b,#0b1c2b 50%,#06111b);color:#fff}
.poster-stage{max-width:1120px;margin:0 auto;padding:28px 18px 42px}
.qr-premium-poster{position:relative;width:min(900px,100%);min-height:1260px;margin:0 auto;padding:42px;overflow:hidden;border-radius:26px;border:3px solid #d99d21;background:radial-gradient(circle at 85% 19%,rgba(245,196,81,.16),transparent 22%),radial-gradient(circle at 20% 58%,rgba(255,255,255,.07),transparent 28%),linear-gradient(160deg,#07111d 0%,#0c2235 58%,#06111b 100%);box-shadow:0 30px 80px rgba(0,0,0,.45)}
.qr-premium-poster:before{content:"";position:absolute;inset:18px;border:1px solid rgba(245,196,81,.55);border-radius:20px;pointer-events:none}
.qr-premium-poster:after{content:"";position:absolute;right:-80px;top:20px;width:540px;height:540px;border-radius:50%;border:1px solid rgba(245,177,36,.22);box-shadow:0 0 0 35px rgba(245,177,36,.04),0 0 0 75px rgba(245,177,36,.035),0 0 0 120px rgba(245,177,36,.025)}
.poster-header{position:relative;z-index:2;display:flex;align-items:center;justify-content:center;gap:20px;margin-bottom:48px}
.poster-logo{width:220px;max-height:110px;object-fit:contain}.poster-header h1{margin:0;font-size:54px;line-height:1;text-transform:uppercase;color:#f5c451;letter-spacing:.03em}.poster-header p{margin:6px 0 0;text-transform:uppercase;letter-spacing:.22em;font-weight:900;color:#e8eef7}
.poster-hero{position:relative;z-index:2;display:grid;grid-template-columns:1fr 220px;gap:20px;align-items:center}.poster-title span,.poster-title strong{display:block;font-size:82px;line-height:.96;font-weight:1000;text-transform:uppercase;letter-spacing:.02em}.poster-title span{color:#fff;text-shadow:0 5px 0 rgba(0,0,0,.28)}.poster-title strong{color:#f5c451;text-shadow:0 5px 0 rgba(0,0,0,.25)}.poster-title em{display:inline-block;margin-top:22px;padding:10px 28px;background:linear-gradient(180deg,#ffd25a,#e7a51c);color:#081522;font-style:normal;font-size:30px;text-transform:uppercase;font-weight:1000;transform:skew(-8deg)}.poster-horse{height:220px;display:grid;place-items:center;font-size:142px;filter:drop-shadow(0 20px 22px rgba(0,0,0,.45))}
.poster-subtitle{position:relative;z-index:2;max-width:700px;margin:40px 0 28px;font-size:30px;line-height:1.35;color:#f2f6fb;font-weight:800}.poster-subtitle b{color:#f5c451}
.poster-qr-zone{position:relative;z-index:2;display:flex;align-items:center;justify-content:center;gap:28px;margin:20px 0 34px}.poster-arrow{color:#f5c451;font-size:80px;font-weight:1000}.poster-qr-card{width:430px;padding:22px 22px 0;border-radius:26px;background:#fff;border:8px solid #f5c451;box-shadow:0 24px 55px rgba(0,0,0,.5);overflow:hidden}.poster-qr-card img{display:block;width:100%;aspect-ratio:1/1;object-fit:contain}.poster-scan{margin:18px -22px 0;padding:18px;background:linear-gradient(180deg,#ffd25a,#e7a51c);color:#081522;display:flex;align-items:center;justify-content:center;gap:12px;text-transform:uppercase;font-size:32px;font-weight:1000}
.poster-features{position:relative;z-index:2;display:grid;grid-template-columns:repeat(4,1fr);margin:24px 0 36px;border:1px solid rgba(245,196,81,.6);border-radius:20px;overflow:hidden;background:rgba(0,0,0,.18)}.poster-features div{min-height:130px;padding:18px 12px;display:grid;place-items:center;text-align:center;border-right:1px solid rgba(245,196,81,.28)}.poster-features div:last-child{border-right:0}.poster-features span{font-size:42px}.poster-features strong{display:block;font-size:18px;text-transform:uppercase}.poster-features em{display:block;color:#f5c451;font-style:normal;font-weight:1000;text-transform:uppercase}
.poster-link-block{position:relative;z-index:2;text-align:center;margin-top:20px}.poster-link-block span{display:block;color:#f2f6fb;font-size:24px;margin-bottom:12px}.poster-link-block strong{display:inline-block;max-width:100%;padding:16px 24px;border:2px solid #d99d21;border-radius:14px;color:#fff;background:rgba(0,0,0,.18);font-size:34px;line-height:1.2;word-break:break-all}.poster-footer{position:relative;z-index:2;margin-top:34px;text-align:center;color:#f5c451;font-size:32px;font-style:italic}
.poster-actions{width:min(900px,100%);margin:18px auto 0;display:flex;gap:12px;justify-content:center;flex-wrap:wrap}.poster-actions button,.poster-actions a{text-decoration:none;border:1px solid rgba(245,196,81,.45);border-radius:12px;background:linear-gradient(180deg,#ffd25a,#e7a51c);color:#081522;font-weight:1000;padding:14px 18px;cursor:pointer}
@media(max-width:760px){.qr-premium-poster{min-height:auto;padding:26px 18px}.poster-header{flex-direction:column;text-align:center;margin-bottom:28px}.poster-logo{width:180px}.poster-header h1{font-size:40px}.poster-hero{grid-template-columns:1fr}.poster-title span,.poster-title strong{font-size:52px}.poster-title em{font-size:22px}.poster-horse{height:120px;font-size:88px}.poster-subtitle{font-size:22px}.poster-arrow{display:none}.poster-qr-card{width:min(390px,100%)}.poster-features{grid-template-columns:1fr 1fr}.poster-link-block strong{font-size:20px}}
@media print{body.poster-page-body{background:#fff!important}.poster-stage{padding:0!important;max-width:none}.qr-premium-poster{width:210mm;min-height:297mm;border-radius:0;box-shadow:none;margin:0;page-break-inside:avoid}.poster-actions{display:none!important}}

/* =========================
   V62 - Module Équifun séparé
   ========================= */
.equifun-body{
  min-height:100vh;
  background:radial-gradient(circle at 80% 10%,rgba(245,177,36,.13),transparent 26%),linear-gradient(135deg,#06111b,#0b1c2b 55%,#06111b);
  color:#fff;
}
.equifun-page{max-width:1780px;margin:0 auto;padding:22px 18px 60px}
.equifun-hero{
  display:flex;justify-content:space-between;align-items:center;gap:20px;
  padding:28px;border:1px solid rgba(245,177,36,.55);border-radius:22px;
  background:linear-gradient(120deg,rgba(8,25,38,.98),rgba(13,36,55,.92));
  box-shadow:0 18px 55px rgba(0,0,0,.3);
}
.equifun-kicker{color:#f5c451;text-transform:uppercase;letter-spacing:.14em;font-weight:1000}
.equifun-hero h1{margin:8px 0;font-size:clamp(42px,5vw,76px)}
.equifun-hero p{margin:0;color:#cbd7e6;font-size:18px}
.equifun-live-badge{
  font-size:34px;font-weight:1000;color:#07111b;
  background:linear-gradient(180deg,#ffd25a,#e7a51c);
  padding:20px 28px;border-radius:18px;
}
.equifun-layout{display:grid;grid-template-columns:1fr 1.35fr .85fr;gap:16px;margin-top:16px}
.equifun-layout.lower{grid-template-columns:.9fr 1.6fr}
.equifun-card{
  padding:18px;border:1px solid rgba(245,177,36,.5);border-radius:18px;
  background:linear-gradient(180deg,rgba(8,25,38,.98),rgba(4,18,29,.98));
  box-shadow:0 12px 35px rgba(0,0,0,.22);
}
.equifun-card h2{margin:0 0 16px;font-size:24px}
.equifun-form{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.equifun-form label{font-weight:900;color:#dbe6f2}
.equifun-form input{height:46px}
.eq-chrono-display{
  font-size:clamp(90px,8vw,170px);font-weight:1000;line-height:.95;text-align:center;
  color:#fff;text-shadow:0 0 25px rgba(255,255,255,.3);margin:10px 0 16px;
  font-variant-numeric:tabular-nums;
}
.eq-seconds{
  text-align:center;border:1px solid rgba(245,177,36,.5);border-radius:12px;
  padding:14px;font-size:20px;font-weight:900;
}
.eq-seconds strong{color:#f5c451}
.eq-actions{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin:16px 0}
.eq-actions button,.eq-btn{min-height:52px;font-size:17px;border-radius:12px}
.eq-btn.gold{background:linear-gradient(180deg,#ffd25a,#e7a51c);color:#07111b}
.eq-score-box{display:grid;grid-template-columns:repeat(3,1fr);gap:12px}
.eq-score-box div{
  border:1px solid rgba(255,255,255,.12);border-radius:12px;padding:14px;text-align:center;background:rgba(0,0,0,.18)
}
.eq-score-box span{display:block;color:#aebdca;text-transform:uppercase;font-size:12px}
.eq-score-box strong{font-size:24px}
.eq-big-total{text-align:center;padding:20px;border:1px solid rgba(245,177,36,.45);border-radius:16px;background:rgba(0,0,0,.18)}
.eq-big-total strong{display:block;font-size:90px;color:#f5c451;line-height:1}
.eq-big-total span{text-transform:uppercase;font-weight:1000;color:#eaf1f8}
.eq-status{text-align:center;border-radius:999px;padding:10px;margin:16px 0;font-weight:1000;text-transform:uppercase}
.eq-status.ok,.eq-mini-status.ok{background:rgba(40,209,109,.18);color:#3cff82}
.eq-status.bad,.eq-mini-status.bad{background:rgba(255,70,70,.18);color:#ff5b5b}
.equifun-penalty-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(310px,1fr));gap:12px}
.eq-penalty-btn{
  min-height:94px;text-align:left;border:1px solid rgba(245,177,36,.35);border-radius:14px;
  background:linear-gradient(180deg,rgba(255,255,255,.08),rgba(255,255,255,.035));
  color:#fff;display:grid;grid-template-columns:46px 1fr auto;gap:12px;align-items:center;
}
.eq-penalty-btn:hover{box-shadow:inset 0 0 0 2px rgba(245,177,36,.35)}
.eq-penalty-btn span{
  width:38px;height:38px;display:grid;place-items:center;border-radius:50%;
  background:#f5c451;color:#07111b;font-weight:1000;
}
.eq-penalty-btn strong{font-size:15px;line-height:1.2}
.eq-penalty-btn em{font-style:normal;color:#f5c451;font-weight:1000}
.eq-penalty-btn.elim em{color:#ff5b5b}
.eq-penalty-row{
  display:flex;justify-content:space-between;align-items:center;gap:12px;
  padding:12px;border-radius:12px;background:rgba(255,255,255,.06);margin-bottom:8px;
}
.eq-penalty-row span{display:block;color:#f5c451;font-weight:1000;margin-top:4px}
.equifun-ranking-table th{color:#f5c451}
.equifun-ranking-table tr.bad{opacity:.72}
.eq-mini-status{display:inline-flex;padding:6px 10px;border-radius:999px;font-weight:1000}
@media(max-width:1100px){
  .equifun-layout,.equifun-layout.lower{grid-template-columns:1fr}
  .equifun-form{grid-template-columns:1fr}
  .eq-score-box,.eq-actions{grid-template-columns:1fr}
}

/* V63 - QR et résultats publics Équifun */
.equifun-public-tools{display:grid;grid-template-columns:1fr 150px 260px;gap:18px;align-items:center;margin-top:16px}
.equifun-public-tools img{width:150px;background:#fff;border-radius:14px;padding:8px}
.equifun-public-tools strong{display:block;color:#f5c451;word-break:break-all;margin-top:8px}
.eq-public-actions{display:grid;gap:10px}
.equifun-selector{margin-top:16px}
.equifun-selector-row{display:grid;grid-template-columns:1fr auto;gap:12px}
.equifun-selector select{height:52px;font-size:18px}
.eq-public-body{min-height:100vh;background:radial-gradient(circle at 80% 10%,rgba(245,177,36,.13),transparent 26%),linear-gradient(135deg,#06111b,#0b1c2b 55%,#06111b);color:#fff}
.eq-public-page{max-width:1300px;margin:0 auto;padding:24px 14px 50px}
.eq-public-header{display:flex;align-items:center;gap:18px;padding:22px;border:1px solid rgba(245,177,36,.5);border-radius:22px;background:linear-gradient(120deg,rgba(8,25,38,.98),rgba(13,36,55,.92))}
.eq-public-header img{width:210px;max-height:90px;object-fit:contain}.eq-public-header h1{font-size:clamp(34px,5vw,64px);margin:0;color:#f5c451}.eq-public-header p{margin:8px 0 0;color:#dbe6f2}
.eq-public-tabs{display:flex;gap:10px;overflow:auto;padding:16px 0}.eq-public-tabs button{flex:0 0 auto;border:1px solid rgba(245,177,36,.35);background:rgba(255,255,255,.08);color:#fff;border-radius:14px;padding:13px 18px;font-weight:1000}.eq-public-tabs button.active{background:#f5c451;color:#07111b}
.eq-public-card{margin:12px 0;padding:18px;border:1px solid rgba(245,177,36,.5);border-radius:18px;background:linear-gradient(180deg,rgba(8,25,38,.98),rgba(4,18,29,.98))}
.eq-public-title{display:flex;justify-content:space-between;align-items:center;gap:12px}.eq-public-title h2{margin:0 0 12px;font-size:28px}.eq-public-title strong{color:#f5c451}
.eq-public-table th{color:#f5c451}.eq-public-table tr.bad{opacity:.7}.eq-public-table td,.eq-public-table th{padding:12px}
@media(max-width:800px){.equifun-public-tools{grid-template-columns:1fr;text-align:center}.equifun-public-tools img{margin:auto}.equifun-selector-row{grid-template-columns:1fr}.eq-public-header{flex-direction:column;text-align:center}.eq-public-header img{width:170px}}

/* V64 - Import XML Équifun */
.equifun-import-xml{margin-top:16px}
.equifun-import-row{display:grid;grid-template-columns:1fr auto;gap:12px;align-items:center}
.equifun-import-row input{height:52px;padding:12px;border:1px solid rgba(245,177,36,.4);border-radius:12px;background:#07131f;color:#fff}
.equifun-ranking-table tr.waiting td{opacity:.78}
.eq-mini-status.wait{background:rgba(255,255,255,.14);color:#dce8f5}
.equifun-ranking-table tbody tr{cursor:pointer}
.equifun-ranking-table tbody tr:hover{background:rgba(245,196,81,.10)}
.eq-public-table tr.waiting td{opacity:.72}
@media(max-width:800px){.equifun-import-row{grid-template-columns:1fr}}

/* V65 - Page statistiques */
.stats-body{min-height:100vh;background:radial-gradient(circle at 80% 10%,rgba(245,177,36,.13),transparent 26%),linear-gradient(135deg,#06111b,#0b1c2b 55%,#06111b);color:#fff}
.stats-page{max-width:1680px;margin:0 auto;padding:24px 18px 60px}
.stats-hero{display:flex;justify-content:space-between;align-items:center;gap:20px;padding:28px;border:1px solid rgba(245,177,36,.55);border-radius:22px;background:linear-gradient(120deg,rgba(8,25,38,.98),rgba(13,36,55,.92));box-shadow:0 18px 55px rgba(0,0,0,.3)}
.stats-kicker{color:#f5c451;text-transform:uppercase;letter-spacing:.14em;font-weight:1000}.stats-hero h1{margin:8px 0;font-size:clamp(42px,5vw,76px)}.stats-hero p{margin:0;color:#cbd7e6;font-size:18px}.stats-live{min-width:180px;text-align:center;border:1px solid rgba(52,209,109,.35);border-radius:18px;padding:18px;background:rgba(52,209,109,.12)}.stats-live strong{display:block;font-size:32px;color:#3cff82}.stats-live span{text-transform:uppercase;font-weight:900;color:#dce8f5}
.stats-tabs{display:flex;gap:10px;margin:18px 0}.stats-tabs button{border:1px solid rgba(245,177,36,.4);background:rgba(255,255,255,.08);color:#fff;border-radius:14px;padding:14px 22px;font-weight:1000}.stats-tabs button.active{background:#f5c451;color:#07111b}
.stats-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:14px}.stat-card{padding:20px;border:1px solid rgba(255,255,255,.12);border-radius:18px;background:linear-gradient(180deg,rgba(8,25,38,.98),rgba(4,18,29,.98))}.stat-card span{display:block;color:#b9c8d8;text-transform:uppercase;font-weight:900;font-size:13px}.stat-card strong{display:block;font-size:42px;margin-top:8px}.stat-card.gold strong{color:#f5c451}.stat-card.green strong{color:#3cff82}.stat-card.blue strong{color:#61aaff}.stat-card.purple strong{color:#c391ff}.stat-card.red strong{color:#ff5b5b}
.stats-layout{display:grid;grid-template-columns:.85fr 1.4fr;gap:16px;margin-top:16px}.stats-panel{padding:18px;border:1px solid rgba(245,177,36,.5);border-radius:18px;background:linear-gradient(180deg,rgba(8,25,38,.98),rgba(4,18,29,.98));box-shadow:0 12px 35px rgba(0,0,0,.22);margin-top:16px}.stats-panel h2{margin:0 0 14px}
.stats-bar-row{display:grid;grid-template-columns:160px 1fr 54px;gap:12px;align-items:center;margin:16px 0}.stats-bar-row strong{display:block}.stats-bar-row span{display:block;color:#b9c8d8;font-size:13px}.stats-bar{height:22px;border-radius:999px;background:rgba(255,255,255,.08);overflow:hidden}.stats-bar i{display:block;height:100%;border-radius:999px}.stats-bar i.green{background:#32d46f}.stats-bar i.gold{background:#f5c451}.stats-bar i.red{background:#ff5b5b}
.stats-table th{color:#f5c451}.stats-table td,.stats-table th{padding:12px}.stats-table small{display:block;color:#9fb2c7;margin-top:4px}.stats-actions{display:flex;justify-content:center;gap:12px;margin-top:18px;flex-wrap:wrap}.stats-actions button,.stats-actions a{border:1px solid rgba(245,177,36,.45);border-radius:12px;background:linear-gradient(180deg,#ffd25a,#e7a51c);color:#081522;font-weight:1000;padding:14px 18px;text-decoration:none;cursor:pointer}
@media(max-width:1000px){.stats-grid{grid-template-columns:repeat(2,1fr)}.stats-layout{grid-template-columns:1fr}.stats-hero{flex-direction:column;align-items:flex-start}}@media(max-width:650px){.stats-grid{grid-template-columns:1fr}.stats-bar-row{grid-template-columns:1fr}.stats-tabs{overflow:auto}}
@media print{.lc-nav,.stats-tabs,.stats-actions{display:none!important}.stats-body{background:#fff;color:#000}.stats-panel,.stat-card,.stats-hero{box-shadow:none;background:#fff;color:#000}}

/* V66 - Mode Speaker */
.speaker-body{min-height:100vh;background:radial-gradient(circle at 80% 10%,rgba(245,177,36,.13),transparent 26%),linear-gradient(135deg,#06111b,#0b1c2b 55%,#06111b);color:#fff}
.speaker-page{max-width:1780px;margin:0 auto;padding:24px 18px 60px}
.speaker-hero{display:flex;justify-content:space-between;align-items:center;gap:20px;padding:28px;border:1px solid rgba(245,177,36,.55);border-radius:22px;background:linear-gradient(120deg,rgba(8,25,38,.98),rgba(13,36,55,.92));box-shadow:0 18px 55px rgba(0,0,0,.3)}
.speaker-kicker{color:#f5c451;text-transform:uppercase;letter-spacing:.14em;font-weight:1000}.speaker-hero h1{margin:8px 0;font-size:clamp(42px,5vw,76px)}.speaker-hero p{margin:0;color:#cbd7e6;font-size:18px}.speaker-live{min-width:180px;text-align:center;border:1px solid rgba(52,209,109,.35);border-radius:18px;padding:18px;background:rgba(52,209,109,.12)}.speaker-live strong{display:block;font-size:28px;color:#3cff82}.speaker-live small{display:block;font-size:24px;margin-top:6px}
.speaker-main-grid{display:grid;grid-template-columns:1.25fr 1.15fr .75fr;gap:16px;margin-top:16px}.speaker-lower-grid{display:grid;grid-template-columns:1.15fr .85fr;gap:16px;margin-top:16px}
.speaker-card{padding:18px;border:1px solid rgba(245,177,36,.5);border-radius:18px;background:linear-gradient(180deg,rgba(8,25,38,.98),rgba(4,18,29,.98));box-shadow:0 12px 35px rgba(0,0,0,.22)}.speaker-card h2{margin:0 0 16px;font-size:24px}.speaker-card-head{display:flex;justify-content:space-between;gap:12px;align-items:center}.speaker-card-head span,#speakerEpreuveBadge{border-radius:999px;padding:8px 12px;background:rgba(245,196,81,.14);color:#f5c451;font-weight:1000}
.speaker-rider{display:grid;grid-template-columns:130px 1fr;gap:24px;align-items:center}.speaker-rider-icon{width:120px;height:120px;border-radius:50%;display:grid;place-items:center;border:4px solid #f5c451;color:#f5c451;font-size:64px}.speaker-label{color:#f5c451;text-transform:uppercase;font-weight:1000}.speaker-rider h3{font-size:clamp(38px,4vw,66px);line-height:1;margin:8px 0;text-transform:uppercase}.speaker-rider p{font-size:32px;font-weight:1000;color:#f5c451;margin:0 0 8px}.speaker-rider em{font-style:normal;color:#dbe6f2;font-size:22px}
.speaker-script{margin-top:22px;padding:18px;border-radius:14px;border:1px solid rgba(255,255,255,.12);background:rgba(0,0,0,.20)}.speaker-script h4{margin:0 0 8px;color:#f5c451;text-transform:uppercase}.speaker-script p{font-size:24px;line-height:1.35;margin:0 0 14px}.speaker-script button{background:#f5c451;color:#07111b}
.speaker-chrono{font-size:clamp(90px,8vw,170px);font-weight:1000;line-height:.95;text-align:center;color:#fff;text-shadow:0 0 25px rgba(255,255,255,.3);font-variant-numeric:tabular-nums}.speaker-seconds{text-align:center;border:1px solid rgba(245,177,36,.5);border-radius:12px;padding:14px;font-size:20px;font-weight:900;color:#f5c451}
.speaker-stats-row{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin-top:16px}.speaker-stats-row div,.speaker-info-grid div{border:1px solid rgba(255,255,255,.12);border-radius:12px;background:rgba(0,0,0,.18);padding:14px;text-align:center}.speaker-stats-row span,.speaker-info-grid span{display:block;color:#aebdca;text-transform:uppercase;font-size:12px}.speaker-stats-row strong,.speaker-info-grid strong{display:block;font-size:24px;margin-top:6px}
.speaker-queue{display:grid;gap:12px}.speaker-queue div{padding:16px;border-radius:14px;background:rgba(0,0,0,.20);border:1px solid rgba(245,177,36,.24)}.speaker-queue span{display:block;color:#f5c451;text-transform:uppercase;font-weight:1000}.speaker-queue strong{display:block;font-size:24px;margin:8px 0}.speaker-queue small{color:#dbe6f2;font-size:16px}
.speaker-table th{color:#f5c451}.speaker-table td,.speaker-table th{padding:12px}.speaker-info-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:12px}
@media(max-width:1100px){.speaker-main-grid,.speaker-lower-grid{grid-template-columns:1fr}.speaker-hero{flex-direction:column;align-items:flex-start}.speaker-rider{grid-template-columns:1fr;text-align:center}.speaker-rider-icon{margin:auto}.speaker-stats-row,.speaker-info-grid{grid-template-columns:1fr}}

/* V67 - Paddock / Planning / Podium */
.paddock-body,.planning-body,.podium-body{min-height:100vh;background:radial-gradient(circle at 80% 10%,rgba(245,177,36,.13),transparent 26%),linear-gradient(135deg,#06111b,#0b1c2b 55%,#06111b);color:#fff}
.paddock-page,.planning-page,.podium-page{max-width:1780px;margin:0 auto;padding:24px 18px 60px}.paddock-hero,.planning-hero,.podium-hero{display:flex;justify-content:space-between;align-items:center;gap:20px;padding:28px;border:1px solid rgba(245,177,36,.55);border-radius:22px;background:linear-gradient(120deg,rgba(8,25,38,.98),rgba(13,36,55,.92));box-shadow:0 18px 55px rgba(0,0,0,.3)}.paddock-hero h1,.planning-hero h1,.podium-hero h1{font-size:clamp(42px,5vw,76px);margin:8px 0}.paddock-kicker,.planning-hero span,.podium-hero span{color:#f5c451;text-transform:uppercase;letter-spacing:.14em;font-weight:1000}.paddock-qr-btn,.planning-hero button{background:#f5c451;color:#07111b;text-decoration:none;border-radius:14px;padding:16px 20px;font-weight:1000;border:0}
.paddock-grid{display:grid;grid-template-columns:1.4fr 1fr 1fr 1fr;gap:16px;margin-top:16px}.paddock-card,.planning-card{padding:18px;border:1px solid rgba(245,177,36,.5);border-radius:18px;background:linear-gradient(180deg,rgba(8,25,38,.98),rgba(4,18,29,.98));box-shadow:0 12px 35px rgba(0,0,0,.22)}.paddock-card.wide{margin-top:16px}.paddock-card span{display:block;color:#f5c451;text-transform:uppercase;font-weight:1000}.paddock-card h2{font-size:clamp(28px,3vw,54px);margin:12px 0 8px}.paddock-card p{font-size:24px;color:#f5c451;font-weight:1000;margin:0}.paddock-card em{font-style:normal;color:#dbe6f2;font-size:18px}.paddock-card.current{border-color:#3cff82}.paddock-card.next{border-color:#f5c451}.paddock-table th,.planning-table th{color:#f5c451}.paddock-table td,.paddock-table th,.planning-table td,.planning-table th{padding:12px}.planning-table tr.active{background:rgba(52,209,109,.14)}
.public-paddock-body .lc-nav{display:none}.paddock-hero.public img{width:220px;max-height:100px;object-fit:contain}
.podium-page{text-align:center}.podium-hero{display:block}.podium-grid{display:grid;grid-template-columns:1fr 1.18fr 1fr;gap:18px;align-items:end;margin-top:30px}.podium-place{min-height:420px;padding:28px;border:1px solid rgba(245,177,36,.55);border-radius:24px;background:linear-gradient(180deg,rgba(8,25,38,.98),rgba(4,18,29,.98));display:grid;align-content:center}.podium-place.first{min-height:520px;border-color:#ffd25a;box-shadow:0 0 50px rgba(245,196,81,.18)}.podium-place span{font-size:90px}.podium-place h2{font-size:clamp(34px,4vw,64px);margin:12px 0}.podium-place p{font-size:28px;color:#f5c451;font-weight:1000}.podium-place strong{font-size:24px}.podium-actions{margin-top:20px;display:flex;justify-content:center;gap:12px}.podium-actions button{background:#f5c451;color:#07111b}
@media(max-width:1000px){.paddock-grid,.podium-grid{grid-template-columns:1fr}.paddock-hero,.planning-hero{flex-direction:column;align-items:flex-start}}

/* V68 - Secrétariat / Commissaire / Historique / QR Paddock */
.sec-body{min-height:100vh;background:radial-gradient(circle at 80% 10%,rgba(245,177,36,.13),transparent 26%),linear-gradient(135deg,#06111b,#0b1c2b 55%,#06111b);color:#fff}.sec-page{max-width:1780px;margin:0 auto;padding:24px 18px 60px}.sec-hero{display:flex;justify-content:space-between;align-items:center;gap:20px;padding:28px;border:1px solid rgba(245,177,36,.55);border-radius:22px;background:linear-gradient(120deg,rgba(8,25,38,.98),rgba(13,36,55,.92));box-shadow:0 18px 55px rgba(0,0,0,.3)}.sec-hero span{color:#f5c451;text-transform:uppercase;letter-spacing:.14em;font-weight:1000}.sec-hero h1{font-size:clamp(42px,5vw,76px);margin:8px 0}.sec-hero button,.sec-tools button,.sec-form button{background:#f5c451;color:#07111b}.sec-tools,.sec-card{padding:18px;border:1px solid rgba(245,177,36,.5);border-radius:18px;background:linear-gradient(180deg,rgba(8,25,38,.98),rgba(4,18,29,.98));margin-top:16px}.sec-tools{display:grid;grid-template-columns:1fr 2fr auto;gap:12px;align-items:end}.sec-form{display:grid;grid-template-columns:repeat(5,1fr) auto auto;gap:10px}.sec-table th{color:#f5c451}.sec-table td,.sec-table th{padding:12px}.sec-actions{display:flex;gap:6px;flex-wrap:wrap}.paddock-qr-box{display:grid;grid-template-columns:120px auto;gap:10px;align-items:center}.paddock-qr-box img{grid-row:span 2;width:120px;background:#fff;padding:6px;border-radius:12px}.paddock-qr-box .paddock-qr-btn{display:block;text-align:center}
@media(max-width:1000px){.sec-tools,.sec-form{grid-template-columns:1fr}.sec-hero{flex-direction:column;align-items:flex-start}.paddock-qr-box{grid-template-columns:1fr}.paddock-qr-box img{margin:auto}}

/* V69 - Commissaire actif + statuts paddock précis */
.sec-table button.active{
  box-shadow:0 0 0 3px rgba(255,255,255,.18) inset, 0 0 18px rgba(0,0,0,.18);
  transform:scale(1.02);
}
.sec-table button.present{background:#1fbf6a!important;color:#fff!important}
.sec-table button.ready{background:#35e27d!important;color:#06200f!important}
.sec-table button.called{background:#f5c451!important;color:#07111b!important}
.sec-table button.absent{background:#ef4444!important;color:#fff!important}
.sec-table button.nonpartant{background:#2563eb!important;color:#fff!important}
.sec-table tr.present-row{background:rgba(31,191,106,.10)}
.sec-table tr.ready-row{background:rgba(53,226,125,.16)}
.sec-table tr.absent-row{background:rgba(239,68,68,.14)}
.sec-table tr.np-row{background:rgba(37,99,235,.14)}
.paddock-status{display:inline-flex;align-items:center;justify-content:center;border-radius:999px;padding:7px 12px;font-weight:1000;text-transform:uppercase;font-size:12px;white-space:nowrap}
.paddock-status.status-en-piste{background:rgba(52,209,109,.2);color:#3cff82;border:1px solid rgba(52,209,109,.45)}
.paddock-status.status-paddock{background:rgba(245,196,81,.18);color:#f5c451;border:1px solid rgba(245,196,81,.45)}
.paddock-status.status-np{background:rgba(37,99,235,.2);color:#78b5ff;border:1px solid rgba(37,99,235,.45)}
.paddock-status.status-absent{background:rgba(239,68,68,.2);color:#ff6b6b;border:1px solid rgba(239,68,68,.45)}
.paddock-status.status-attente{background:rgba(255,255,255,.12);color:#dbe6f2;border:1px solid rgba(255,255,255,.18)}
.paddock-status.status-passe{background:rgba(148,163,184,.16);color:#cbd5e1;border:1px solid rgba(148,163,184,.25)}
.paddock-table tr.status-en-piste{background:rgba(52,209,109,.10)}
.paddock-table tr.status-paddock{background:rgba(245,196,81,.08)}
.paddock-table tr.status-absent{background:rgba(239,68,68,.10)}
.paddock-table tr.status-np{background:rgba(37,99,235,.10)}

/* V70 - Correction commissaire/paddock : couleurs persistantes */
.sec-table button.active.present{background:#1fbf6a!important;color:#fff!important}
.sec-table button.active.ready{background:#35e27d!important;color:#06200f!important}
.sec-table button.active.called{background:#f5c451!important;color:#07111b!important}
.sec-table button.active.absent{background:#ef4444!important;color:#fff!important}
.sec-table button.active.nonpartant{background:#2563eb!important;color:#fff!important}
.sec-table tr.called-row{background:rgba(245,196,81,.14)!important}
.sec-table tr.present-row{background:rgba(31,191,106,.12)!important}
.sec-table tr.ready-row{background:rgba(53,226,125,.18)!important}
.sec-table tr.absent-row{background:rgba(239,68,68,.16)!important}
.sec-table tr.np-row{background:rgba(37,99,235,.16)!important}

/* V71 - Speaker indépendant + historique + voix */
.speaker-control-bar{
  margin-top:16px;
  padding:16px;
  border:1px solid rgba(245,177,36,.5);
  border-radius:18px;
  background:linear-gradient(180deg,rgba(8,25,38,.98),rgba(4,18,29,.98));
  display:grid;
  grid-template-columns:1fr 1.4fr 1fr auto auto;
  gap:12px;
  align-items:end;
}
.speaker-control-bar label{font-weight:1000;color:#f5c451;text-transform:uppercase;font-size:12px}
.speaker-control-bar select,.speaker-control-bar input{height:46px}
.speaker-control-bar .gold,#speakerSpeakNow{background:#f5c451!important;color:#07111b!important}
.speaker-v71-grid{
  display:grid;
  grid-template-columns:420px minmax(520px,1fr) 520px;
  gap:16px;
  margin-top:16px;
}
.speaker-list-panel{max-height:720px;display:flex;flex-direction:column}
.speaker-rider-list{overflow-y:auto;display:grid;gap:10px;padding-right:6px}
.speaker-rider-list button{
  text-align:left;
  border:1px solid rgba(255,255,255,.12);
  border-radius:14px;
  background:rgba(255,255,255,.06);
  color:#fff;
  padding:12px;
  display:grid;
  gap:4px;
}
.speaker-rider-list button:hover,.speaker-rider-list button.selected,
.speaker-queue-full button:hover,.speaker-queue-full button.selected{
  background:rgba(245,196,81,.16)!important;
  border-color:#f5c451!important;
}
.speaker-rider-list strong{font-size:17px}
.speaker-rider-list span{color:#f5c451;font-weight:900}
.speaker-rider-list em{font-style:normal;color:#dbe6f2}
.speaker-selected-card .speaker-rider h3{font-size:clamp(32px,3vw,56px)}
.speaker-v71-lower{grid-template-columns:1.15fr .85fr}
.speaker-history .table-wrap{max-height:360px;overflow:auto}
.speaker-queue-full{display:grid;gap:10px;max-height:360px;overflow:auto;padding-right:6px}
.speaker-queue-full button{
  display:grid;
  grid-template-columns:44px 1fr 160px;
  gap:10px;
  align-items:center;
  text-align:left;
  border:1px solid rgba(255,255,255,.12);
  border-radius:14px;
  background:rgba(255,255,255,.06);
  color:#fff;
  padding:12px;
}
.speaker-queue-full span{
  width:36px;height:36px;border-radius:50%;display:grid;place-items:center;
  background:#f5c451;color:#07111b;font-weight:1000
}
.speaker-queue-full strong{font-size:18px}
.speaker-queue-full em{font-style:normal;color:#f5c451;font-weight:900}
@media(max-width:1250px){
  .speaker-v71-grid,.speaker-control-bar{grid-template-columns:1fr}
  .speaker-list-panel{max-height:520px}
}

/* V72 - Speaker : chrono contenu + phrases sélectionnables + voix plus naturelle */
.speaker-timer{overflow:hidden!important}
.speaker-chrono{
  width:100%!important;
  max-width:100%!important;
  overflow:hidden!important;
  white-space:nowrap!important;
  font-size:clamp(70px,6.2vw,132px)!important;
  line-height:1!important;
  letter-spacing:-.06em!important;
  text-align:center!important;
  box-sizing:border-box!important;
}
.speaker-v71-grid{grid-template-columns:420px minmax(520px,1fr) minmax(430px,520px)!important}
.speaker-phrase-tools{
  display:grid;
  grid-template-columns:1fr auto;
  gap:10px;
  margin-bottom:12px;
}
.speaker-phrase-tools select{
  height:46px;
  border-radius:12px;
  border:1px solid rgba(245,177,36,.35);
  background:#07131f;
  color:#fff;
  font-weight:900;
  padding:0 12px;
}
.speaker-phrase-tools .gold,
#speakerPlayPhrase{
  background:#f5c451!important;
  color:#07111b!important;
}
.speaker-script-actions{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
}
.speaker-script-actions button{
  min-height:42px;
}
@media(max-width:1250px){
  .speaker-v71-grid{grid-template-columns:1fr!important}
  .speaker-chrono{font-size:clamp(76px,14vw,130px)!important}
}
@media(max-width:650px){
  .speaker-phrase-tools{grid-template-columns:1fr}
  .speaker-chrono{font-size:clamp(58px,16vw,96px)!important}
}

/* V73 - Planning intelligent enchaîné */
.planning-settings{
  margin-top:16px;
  padding:18px;
  border:1px solid rgba(245,177,36,.5);
  border-radius:18px;
  background:linear-gradient(180deg,rgba(8,25,38,.98),rgba(4,18,29,.98));
  display:grid;
  grid-template-columns:1fr 1fr 1fr auto;
  gap:14px;
  align-items:end;
}
.planning-settings label{font-weight:1000;color:#f5c451;text-transform:uppercase;font-size:12px}
.planning-settings input{
  height:46px;
  border-radius:12px;
  border:1px solid rgba(245,177,36,.35);
  background:#07131f;
  color:#fff;
  padding:0 12px;
  font-size:16px;
}
.planning-settings span{color:#dbe6f2;margin-left:6px;text-transform:none}
.planning-settings .gold,#planningSaveSettings{background:#f5c451!important;color:#07111b!important}
.planning-summary{
  margin-top:16px;
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:14px;
}
.planning-summary article{
  padding:18px;
  border:1px solid rgba(245,177,36,.42);
  border-radius:16px;
  background:linear-gradient(180deg,rgba(8,25,38,.98),rgba(4,18,29,.98));
}
.planning-summary span{display:block;color:#b9c8d8;text-transform:uppercase;font-weight:900;font-size:12px}
.planning-summary strong{display:block;font-size:30px;margin-top:6px;color:#f5c451}
#planningDelay.delay-bad{color:#ff5b5b!important}
#planningDelay.delay-good{color:#3cff82!important}
.planning-table tr.done{opacity:.62}
.planning-table tr.active{background:rgba(52,209,109,.16)!important;box-shadow:inset 4px 0 0 #3cff82}
@media(max-width:1000px){
  .planning-settings,.planning-summary{grid-template-columns:1fr}
}

/* V74 - QR planning + heures de passage estimées */
.planning-hero-actions{display:grid;gap:10px}
.planning-hero-actions a,.planning-hero-actions button{
  background:#f5c451!important;
  color:#07111b!important;
  text-decoration:none;
  border-radius:14px;
  padding:14px 18px;
  font-weight:1000;
  border:0;
  text-align:center;
}
.planning-search{
  height:42px;
  min-width:360px;
  border-radius:12px;
  border:1px solid rgba(245,177,36,.35);
  background:#07131f;
  color:#fff;
  padding:0 12px;
}
.planning-status{
  display:inline-flex;
  padding:7px 10px;
  border-radius:999px;
  background:rgba(245,196,81,.15);
  color:#f5c451;
  font-weight:1000;
  text-transform:uppercase;
  font-size:12px;
}
.planning-public-body .lc-nav{display:none!important}
.public-planning-hero img{
  width:220px;
  max-height:100px;
  object-fit:contain;
}
.public-planning-hero{justify-content:flex-start!important}
@media(max-width:800px){
  .planning-search{min-width:0;width:100%}
  .planning-hero-actions{width:100%}
}

/* V75 - Gestion musique avancée */
.music-body{min-height:100vh;background:radial-gradient(circle at 80% 10%,rgba(245,177,36,.13),transparent 26%),linear-gradient(135deg,#06111b,#0b1c2b 55%,#06111b);color:#fff}
.music-page{max-width:1780px;margin:0 auto;padding:24px 18px 60px}
.music-hero{display:flex;justify-content:space-between;align-items:center;gap:20px;padding:28px;border:1px solid rgba(245,177,36,.55);border-radius:22px;background:linear-gradient(120deg,rgba(8,25,38,.98),rgba(13,36,55,.92));box-shadow:0 18px 55px rgba(0,0,0,.3)}
.music-kicker{color:#f5c451;text-transform:uppercase;letter-spacing:.14em;font-weight:1000}.music-hero h1{font-size:clamp(42px,5vw,76px);margin:8px 0}.music-hero p{margin:0;color:#cbd7e6;font-size:18px}.music-live{min-width:260px;text-align:center;border:1px solid rgba(245,177,36,.4);border-radius:18px;padding:18px;background:rgba(0,0,0,.18)}.music-live strong{display:block;color:#f5c451;font-size:22px}.music-live span{color:#dbe6f2}
.music-layout{display:grid;grid-template-columns:1.2fr .9fr;gap:16px;margin-top:16px}.music-card{padding:18px;border:1px solid rgba(245,177,36,.5);border-radius:18px;background:linear-gradient(180deg,rgba(8,25,38,.98),rgba(4,18,29,.98));box-shadow:0 12px 35px rgba(0,0,0,.22);margin-top:16px}.music-layout .music-card{margin-top:0}
.music-file-zone{display:grid;place-items:center;text-align:center;min-height:130px;border:2px dashed rgba(245,177,36,.45);border-radius:18px;background:rgba(0,0,0,.18);cursor:pointer;margin-bottom:14px}.music-file-zone strong{font-size:24px;color:#f5c451}.music-file-zone span{color:#dbe6f2}.music-file-zone input{margin-top:12px}
.music-controls{display:flex;gap:10px;flex-wrap:wrap;margin:14px 0}.music-controls button,.jingle-box button{min-height:46px;border-radius:12px}.music-controls .success{background:#27c66d;color:#fff}.music-controls .danger,.jingle-box .danger{background:#ef4444;color:#fff}.music-controls .gold,.jingle-box .gold{background:#f5c451;color:#07111b}
.music-options{display:flex;gap:12px;flex-wrap:wrap;margin:12px 0}.music-options label{background:rgba(255,255,255,.06);padding:10px 12px;border-radius:999px;font-weight:900}
.music-volume{display:grid;grid-template-columns:160px 1fr 70px;gap:12px;align-items:center;margin:14px 0;color:#f5c451;font-weight:1000}.music-volume input{width:100%}
#player{width:100%;margin-top:10px}
.music-list{display:grid;gap:8px;margin-top:14px;max-height:420px;overflow:auto}.music-row{display:grid;grid-template-columns:46px 1fr auto auto auto auto;gap:8px;align-items:center;padding:10px;border:1px solid rgba(255,255,255,.12);border-radius:12px;background:rgba(255,255,255,.05)}.music-row.active{border-color:#f5c451;background:rgba(245,196,81,.12)}.music-row span{width:34px;height:34px;display:grid;place-items:center;border-radius:50%;background:#f5c451;color:#07111b;font-weight:1000}
.jingle-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}.jingle-box{padding:14px;border:1px solid rgba(255,255,255,.12);border-radius:14px;background:rgba(255,255,255,.05)}.jingle-box.loaded{border-color:#3cff82}.jingle-box h3{margin:0 0 10px;color:#f5c451}.jingle-box input{width:100%;margin-bottom:10px}.jingle-box button{width:100%}
.music-ideas{display:grid;grid-template-columns:repeat(4,1fr);gap:12px}.music-ideas div{padding:14px;border-radius:14px;background:rgba(255,255,255,.06);border:1px solid rgba(255,255,255,.12)}.music-ideas strong{display:block;color:#f5c451;margin-bottom:6px}
@media(max-width:1100px){.music-layout,.music-ideas{grid-template-columns:1fr}.music-row{grid-template-columns:40px 1fr}.music-row button{width:100%}.jingle-grid{grid-template-columns:1fr}.music-volume{grid-template-columns:1fr}.music-hero{flex-direction:column;align-items:flex-start}}

/* V76 - PAD tactile 12 cases */
.music-pad-page{max-width:1880px}
.music-master-panel{
  margin-top:16px;
  padding:18px;
  border:1px solid rgba(245,177,36,.5);
  border-radius:18px;
  background:linear-gradient(180deg,rgba(8,25,38,.98),rgba(4,18,29,.98));
  display:grid;
  grid-template-columns:1fr 1.2fr auto;
  gap:18px;
  align-items:center;
}
.music-master-panel h2{margin:0 0 10px}
.music-file-mini{display:inline-grid;gap:8px;color:#f5c451;font-weight:1000}
.music-mini-controls{display:flex;gap:8px;flex-wrap:wrap;margin-top:10px}
.music-mini-controls button,.music-global-actions button{min-height:42px;border-radius:12px}
.music-master-sliders{display:grid;gap:10px}
.music-master-sliders label{display:grid;grid-template-columns:150px 1fr 55px;gap:10px;align-items:center;color:#f5c451;font-weight:900}
.music-master-sliders .music-check{display:block;color:#dbe6f2}
.music-global-actions{display:grid;gap:10px}
.music-pad-shell{
  margin-top:16px;
  padding:18px;
  border:1px solid rgba(245,177,36,.5);
  border-radius:18px;
  background:linear-gradient(180deg,rgba(8,25,38,.98),rgba(4,18,29,.98));
}
.jingle-pad-grid{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:16px;
  margin-top:16px;
}
.pad-tile{
  position:relative;
  min-height:160px;
  border-radius:22px;
  border:2px solid rgba(255,255,255,.13);
  color:#fff;
  display:grid;
  align-content:center;
  justify-items:center;
  gap:4px;
  cursor:pointer;
  overflow:hidden;
  box-shadow:0 12px 30px rgba(0,0,0,.24);
  transition:transform .12s ease, box-shadow .12s ease, border-color .12s ease;
}
.pad-tile:hover{transform:translateY(-2px);border-color:#f5c451}
.pad-tile.playing{animation:padPulse 1s infinite;border-color:#fff;box-shadow:0 0 0 4px rgba(255,255,255,.14),0 0 34px rgba(245,196,81,.5)}
.pad-tile.selected{border-color:#f5c451}
.pad-tile .pad-icon{font-size:42px}
.pad-tile strong{font-size:26px;text-transform:uppercase;line-height:1}
.pad-tile em{font-style:normal;font-size:19px;font-weight:900;line-height:1;color:#fff}
.pad-tile small{margin-top:8px;padding:5px 10px;border-radius:999px;background:rgba(0,0,0,.22);font-weight:900}
.pad-gear{
  position:absolute;
  top:10px;
  right:10px;
  width:34px;
  height:34px;
  display:grid;
  place-items:center;
  border-radius:50%;
  background:rgba(0,0,0,.28);
  font-style:normal;
}
.pad-tile.blue{background:linear-gradient(145deg,#0f4c81,#092338)}
.pad-tile.green{background:linear-gradient(145deg,#16a34a,#06351d)}
.pad-tile.yellow{background:linear-gradient(145deg,#f5c451,#7a4f00);color:#07111b}
.pad-tile.yellow em,.pad-tile.yellow strong{color:#07111b}
.pad-tile.orange{background:linear-gradient(145deg,#f97316,#6b2600)}
.pad-tile.gold{background:linear-gradient(145deg,#ffd25a,#8a6200);color:#07111b}
.pad-tile.gold em,.pad-tile.gold strong{color:#07111b}
.pad-tile.purple{background:linear-gradient(145deg,#8b5cf6,#30116e)}
.pad-tile.red{background:linear-gradient(145deg,#ef4444,#6b1010)}
.pad-tile.dark{background:linear-gradient(145deg,#334155,#0f172a)}
.pad-tile.cyan{background:linear-gradient(145deg,#06b6d4,#083344)}
@keyframes padPulse{0%,100%{transform:scale(1)}50%{transform:scale(1.025)}}
.pad-config-head{display:flex;justify-content:space-between;gap:12px;align-items:center;margin-bottom:12px}
.pad-config-head div{display:flex;gap:10px;align-items:center}
.pad-config-head span{font-size:38px}
.pad-config-head strong{font-size:24px;color:#f5c451}
.music-file-zone.small{min-height:86px}
.pad-mode{display:flex;gap:10px;flex-wrap:wrap;margin:12px 0}
.pad-mode label{padding:10px 12px;border-radius:999px;background:rgba(255,255,255,.06);font-weight:900}
.pad-file-list{display:grid;gap:8px;max-height:270px;overflow:auto}
.pad-file-list div{display:grid;grid-template-columns:42px 1fr auto;gap:8px;align-items:center;padding:10px;border:1px solid rgba(255,255,255,.12);border-radius:12px;background:rgba(255,255,255,.05)}
.pad-file-list span{width:32px;height:32px;display:grid;place-items:center;border-radius:50%;background:#f5c451;color:#07111b;font-weight:1000}
@media(max-width:1200px){
  .jingle-pad-grid{grid-template-columns:repeat(3,1fr)}
  .music-master-panel{grid-template-columns:1fr}
}
@media(max-width:760px){
  .jingle-pad-grid{grid-template-columns:repeat(2,1fr)}
  .pad-tile{min-height:130px}
  .music-master-sliders label{grid-template-columns:1fr}
}

/* V80 - Bibliothèque musique stockée serveur */
.music-library-card{margin-top:16px}
.server-music-library{
  display:grid;
  gap:10px;
  max-height:360px;
  overflow:auto;
}
.server-music-row{
  display:grid;
  grid-template-columns:34px 1fr 320px auto;
  gap:10px;
  align-items:center;
  padding:10px;
  border:1px solid rgba(255,255,255,.12);
  border-radius:12px;
  background:rgba(255,255,255,.05);
}
.server-music-row audio{width:100%}
.pad-library-picker{
  display:grid;
  gap:8px;
  max-height:180px;
  overflow:auto;
  margin:10px 0;
  padding:10px;
  border:1px solid rgba(255,255,255,.12);
  border-radius:12px;
  background:rgba(0,0,0,.16);
}
.library-pick{
  display:grid;
  grid-template-columns:28px 1fr;
  gap:8px;
  align-items:center;
  padding:8px;
  border-radius:10px;
  background:rgba(255,255,255,.05);
}
#addLibraryToPad{margin:8px 0 14px}
@media(max-width:900px){
  .server-music-row{grid-template-columns:1fr}
}

/* V81 - Dossiers musique par catégorie */
.server-category-select{
  height:46px;
  width:100%;
  border-radius:12px;
  border:1px solid rgba(245,177,36,.35);
  background:#07131f;
  color:#fff;
  padding:0 12px;
  font-weight:900;
  margin:8px 0 12px;
}
.server-library-title{
  padding:10px 12px;
  border-radius:12px;
  background:rgba(245,196,81,.12);
  border:1px solid rgba(245,196,81,.35);
  color:#dbe6f2;
  font-weight:900;
}
.server-library-title strong{color:#f5c451}

/* V82 - Sélecteur complet bibliothèque musique */
.music-library-tools{
  display:grid;
  grid-template-columns:1fr 1.4fr;
  gap:12px;
  margin:14px 0;
}
.music-library-tools label{
  display:grid;
  gap:7px;
  color:#f5c451;
  font-weight:1000;
  text-transform:uppercase;
  font-size:12px;
}
.music-library-tools input,
.music-library-tools select{
  height:46px;
  border-radius:12px;
  border:1px solid rgba(245,177,36,.35);
  background:#07131f;
  color:#fff;
  padding:0 12px;
  font-weight:900;
}
.selected-music-details{
  margin:14px 0;
  padding:16px;
  border-radius:16px;
  border:1px solid rgba(245,196,81,.45);
  background:rgba(0,0,0,.20);
}
.selected-music-title{
  display:flex;
  justify-content:space-between;
  gap:12px;
  align-items:center;
  margin-bottom:12px;
}
.selected-music-title strong{
  color:#f5c451;
  font-size:20px;
  word-break:break-all;
}
.selected-music-title span{
  padding:6px 10px;
  border-radius:999px;
  background:rgba(245,196,81,.12);
  color:#f5c451;
  font-weight:1000;
}
.selected-music-info{
  display:grid;
  grid-template-columns:160px 180px 1fr;
  gap:10px;
  margin-bottom:12px;
}
.selected-music-info div{
  padding:10px;
  border-radius:12px;
  background:rgba(255,255,255,.06);
}
.selected-music-info span{
  display:block;
  color:#b9c8d8;
  text-transform:uppercase;
  font-size:11px;
  font-weight:900;
}
.selected-music-info strong{
  display:block;
  color:#fff;
  word-break:break-all;
  margin-top:4px;
}
#selectedMusicPreview{
  width:100%;
  margin:8px 0 12px;
}
.selected-music-actions{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
}
.selected-music-actions button{
  min-height:42px;
  border-radius:12px;
}
.server-music-row{
  grid-template-columns:34px minmax(260px,1fr) 320px auto auto !important;
}
@media(max-width:1000px){
  .music-library-tools,
  .selected-music-info{
    grid-template-columns:1fr;
  }
  .server-music-row{
    grid-template-columns:1fr !important;
  }
}

/* V83 - Secrétariat : correction résultats et pénalités */
.sec-result-editor{border-color:rgba(52,209,109,.55)!important}
.sec-result-grid{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:12px;
  margin:12px 0;
}
.sec-result-grid label{
  display:grid;
  gap:7px;
  color:#f5c451;
  font-weight:1000;
  text-transform:uppercase;
  font-size:12px;
}
.sec-result-grid input{
  height:46px;
  border-radius:12px;
  border:1px solid rgba(245,177,36,.35);
  background:#07131f;
  color:#fff;
  padding:0 12px;
  font-weight:900;
}
.sec-status-grid{
  display:grid;
  grid-template-columns:repeat(6,1fr);
  gap:10px;
  margin:14px 0;
}
.sec-status-grid label{
  padding:12px;
  border-radius:999px;
  background:rgba(255,255,255,.06);
  border:1px solid rgba(255,255,255,.10);
  font-weight:900;
}
.sec-result-summary{
  margin:14px 0;
  padding:14px;
  border-radius:14px;
  background:rgba(52,209,109,.10);
  border:1px solid rgba(52,209,109,.35);
  color:#dfffee;
}
.sec-actions-row{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  margin:12px 0;
}
.sec-history{
  margin-top:16px;
  padding:14px;
  border-radius:14px;
  background:rgba(0,0,0,.18);
  border:1px solid rgba(255,255,255,.10);
}
.sec-history h3{margin:0 0 10px;color:#f5c451}
.sec-history-row{
  display:grid;
  grid-template-columns:190px 1fr;
  gap:12px;
  padding:10px;
  border-radius:10px;
  background:rgba(255,255,255,.05);
  margin-bottom:8px;
}
.sec-history-row strong{color:#f5c451}
.sec-table tr.selected-row{
  background:rgba(245,196,81,.14)!important;
  box-shadow:inset 4px 0 0 #f5c451;
}
@media(max-width:1200px){
  .sec-result-grid{grid-template-columns:repeat(2,1fr)}
  .sec-status-grid{grid-template-columns:repeat(3,1fr)}
}
@media(max-width:700px){
  .sec-result-grid,.sec-status-grid,.sec-history-row{grid-template-columns:1fr}
}

/* V85 - Réorganisation accueil + page espaces jury avec QR */
.home-main-access{
  margin-bottom:18px;
  grid-template-columns:repeat(4,1fr)!important;
}
.home-access-card{
  min-height:150px;
  text-decoration:none;
  color:#fff;
  padding:22px;
  border:1px solid rgba(245,177,36,.45);
  border-radius:22px;
  background:linear-gradient(180deg,rgba(8,25,38,.98),rgba(4,18,29,.98));
  box-shadow:0 12px 35px rgba(0,0,0,.22);
  display:grid;
  place-items:center;
  text-align:center;
  gap:6px;
}
.home-access-card:hover{border-color:#f5c451;transform:translateY(-2px)}
.home-access-card span{font-size:42px}
.home-access-card strong{font-size:24px;color:#f5c451;text-transform:uppercase}
.home-access-card em{font-style:normal;color:#dbe6f2}
.home-access-card.jury{background:linear-gradient(145deg,rgba(245,196,81,.18),rgba(8,25,38,.98))}
.access-page{max-width:1600px;margin:0 auto;padding:24px 18px 60px}
.access-hero{
  padding:30px;
  border:1px solid rgba(245,177,36,.55);
  border-radius:24px;
  background:linear-gradient(120deg,rgba(8,25,38,.98),rgba(13,36,55,.92));
  box-shadow:0 18px 55px rgba(0,0,0,.3);
}
.access-hero span{color:#f5c451;text-transform:uppercase;letter-spacing:.14em;font-weight:1000}
.access-hero h1{font-size:clamp(42px,5vw,76px);margin:8px 0}
.access-hero p{margin:0;color:#cbd7e6;font-size:18px}
.access-grid{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:16px;
  margin-top:18px;
}
.access-card{
  padding:20px;
  border-radius:22px;
  border:1px solid rgba(245,177,36,.5);
  background:linear-gradient(180deg,rgba(8,25,38,.98),rgba(4,18,29,.98));
  box-shadow:0 14px 38px rgba(0,0,0,.25);
  display:grid;
  gap:12px;
  text-align:center;
}
.access-icon{font-size:54px}
.access-card h2{margin:0;color:#f5c451;font-size:25px}
.access-card p{margin:0;color:#dbe6f2;line-height:1.35}
.access-card img{
  width:150px;
  height:150px;
  margin:4px auto;
  padding:8px;
  border-radius:16px;
  background:#fff;
}
.access-card strong{
  display:block;
  min-height:38px;
  word-break:break-all;
  color:#fff;
  font-size:12px;
  padding:8px;
  border-radius:10px;
  background:rgba(0,0,0,.18);
}
.access-btn{
  display:block;
  text-decoration:none;
  color:#07111b;
  background:#f5c451;
  border-radius:14px;
  padding:14px 16px;
  font-weight:1000;
}
.access-card.chrono{border-color:rgba(52,209,109,.55)}
.access-card.speaker{border-color:rgba(97,170,255,.55)}
.access-card.paddock{border-color:rgba(245,196,81,.55)}
.access-card.jury{border-color:rgba(195,145,255,.55)}
@media(max-width:1200px){
  .home-main-access,.access-grid{grid-template-columns:repeat(2,1fr)!important}
}
@media(max-width:700px){
  .home-main-access,.access-grid{grid-template-columns:1fr!important}
}

/* V87 - Correction première case Espaces Jury */
.access-grid-v87{
  grid-template-columns:repeat(4,minmax(240px,1fr))!important;
}
.access-grid-v87 .access-card.chrono{
  order:0;
  min-height:520px;
  border-color:rgba(52,209,109,.8)!important;
  box-shadow:0 0 0 2px rgba(52,209,109,.18),0 14px 38px rgba(0,0,0,.25)!important;
}
.access-grid-v87 .access-card.chrono .access-icon{
  filter:drop-shadow(0 0 12px rgba(52,209,109,.55));
}
@media(max-width:1200px){
  .access-grid-v87{grid-template-columns:repeat(2,minmax(240px,1fr))!important}
}
@media(max-width:700px){
  .access-grid-v87{grid-template-columns:1fr!important}
}

/* V88 - Page Espaces privés propre et lisible */
.private-spaces-body{
  min-height:100vh;
  background:
    radial-gradient(circle at 85% 10%, rgba(245,196,81,.11), transparent 24%),
    linear-gradient(135deg,#07111c,#0b1d31 55%,#06101b);
  color:#fff;
}
.private-spaces-page{
  max-width:1760px;
  margin:0 auto;
  padding:26px 28px 56px;
}
.private-hero{
  border:1px solid rgba(245,196,81,.65);
  border-radius:22px;
  padding:28px 34px;
  background:linear-gradient(120deg,rgba(8,25,38,.98),rgba(13,36,55,.92));
  box-shadow:0 18px 55px rgba(0,0,0,.30);
}
.private-hero span{
  display:block;
  color:#f5c451;
  font-weight:1000;
  letter-spacing:.14em;
  text-transform:uppercase;
  margin-bottom:12px;
}
.private-hero h1{
  font-size:clamp(42px,5vw,72px);
  margin:0 0 8px;
  line-height:1;
}
.private-hero p{
  margin:0;
  color:#e5edf7;
  font-size:20px;
}
.private-grid{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:18px;
  margin-top:24px;
  align-items:stretch;
}
.private-card{
  min-width:0;
  min-height:660px;
  padding:26px;
  border-radius:22px;
  background:linear-gradient(180deg,rgba(8,25,38,.98),rgba(4,18,29,.98));
  box-shadow:0 18px 42px rgba(0,0,0,.28);
  display:flex;
  flex-direction:column;
  gap:18px;
  overflow:hidden;
}
.private-green{border:2px solid rgba(52,209,109,.82)}
.private-blue{border:2px solid rgba(47,139,255,.82)}
.private-purple{border:2px solid rgba(164,92,246,.82)}
.private-gold{border:2px solid rgba(245,196,81,.88)}
.private-card-top{
  display:grid;
  grid-template-columns:86px 1fr;
  gap:18px;
  align-items:center;
  min-height:120px;
}
.private-icon{
  width:86px;
  height:86px;
  display:grid;
  place-items:center;
  border-radius:50%;
  font-size:42px;
  background:rgba(255,255,255,.08);
}
.private-green .private-icon{background:linear-gradient(145deg,#34d16d,#117a3c)}
.private-blue .private-icon{background:linear-gradient(145deg,#4aa3ff,#1154b7)}
.private-purple .private-icon{background:linear-gradient(145deg,#a45cf6,#5420aa)}
.private-gold .private-icon{background:linear-gradient(145deg,#ffd45c,#b97804)}
.private-card h2{
  margin:0;
  font-size:clamp(24px,1.55vw,34px);
  line-height:1.12;
  text-transform:uppercase;
}
.private-green h2{color:#3cff82}
.private-blue h2{color:#4aa3ff}
.private-purple h2{color:#b980ff}
.private-gold h2{color:#ffd45c}
.private-card p{
  margin:10px 0 0;
  color:#e5edf7;
  font-size:16px;
  line-height:1.35;
}
.private-list{
  list-style:none;
  padding:0;
  margin:0;
  display:grid;
  gap:14px;
  min-height:172px;
}
.private-list li{
  position:relative;
  padding-left:34px;
  color:#f4f8fd;
  font-size:17px;
  line-height:1.25;
}
.private-list li::before{
  content:"✓";
  position:absolute;
  left:0;
  top:-1px;
  width:22px;
  height:22px;
  border-radius:50%;
  display:grid;
  place-items:center;
  font-size:14px;
  font-weight:1000;
  color:#07111b;
}
.private-green li::before{background:#3cff82}
.private-blue li::before{background:#4aa3ff}
.private-purple li::before{background:#b980ff}
.private-gold li::before{background:#ffd45c}
.private-qr{
  margin-top:auto;
  display:grid;
  justify-items:center;
  gap:12px;
}
.private-qr img{
  width:180px;
  height:180px;
  padding:10px;
  border-radius:16px;
  background:#fff;
  box-shadow:0 12px 30px rgba(0,0,0,.28);
}
.private-qr strong{
  width:100%;
  max-width:260px;
  min-height:44px;
  padding:10px 12px;
  border-radius:12px;
  background:rgba(0,0,0,.24);
  color:#fff;
  font-size:12px;
  text-align:center;
  word-break:break-all;
  display:grid;
  place-items:center;
}
.private-btn{
  display:block;
  width:100%;
  padding:17px 14px;
  border-radius:14px;
  text-align:center;
  text-decoration:none;
  font-weight:1000;
  font-size:17px;
  color:#07111b;
}
.private-btn-green{background:#34d16d}
.private-btn-blue{background:#2f8bff;color:#fff}
.private-btn-purple{background:#9b56e9;color:#fff}
.private-btn-gold{background:#ffd45c}
.private-card small{
  display:block;
  color:#d6e0eb;
  text-align:center;
  font-size:14px;
}
.private-note{
  margin-top:24px;
  padding:22px 26px;
  border-radius:18px;
  border:1px solid rgba(255,255,255,.12);
  background:linear-gradient(120deg,rgba(18,46,71,.96),rgba(8,25,38,.96));
  display:flex;
  align-items:center;
  gap:18px;
}
.private-note div{
  width:48px;
  height:48px;
  border-radius:50%;
  background:#2f8bff;
  display:grid;
  place-items:center;
  font-size:28px;
}
.private-note p{
  margin:0;
  color:#eaf2fb;
  font-size:18px;
  line-height:1.4;
}
@media(max-width:1400px){
  .private-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .private-card{min-height:620px}
}
@media(max-width:760px){
  .private-spaces-page{padding:18px 14px 40px}
  .private-grid{grid-template-columns:1fr}
  .private-card{min-height:auto}
  .private-card-top{grid-template-columns:70px 1fr}
  .private-icon{width:70px;height:70px;font-size:34px}
}

/* V89 - Import résultats concours accueil */
.lc-results-import{
  border-color:rgba(52,209,109,.45)!important;
}
.results-import-form{
  display:grid;
  grid-template-columns:1fr 180px 1fr auto;
  gap:10px;
  align-items:end;
  margin-top:12px;
}
.results-file-label{
  display:grid;
  gap:6px;
  color:#f5c451;
  font-weight:900;
}
.results-import-status{
  margin-top:12px;
  padding:10px 12px;
  border-radius:12px;
  background:rgba(52,209,109,.10);
  border:1px solid rgba(52,209,109,.25);
  color:#dfffee;
  font-weight:900;
}
@media(max-width:1000px){
  .results-import-form{grid-template-columns:1fr}
}

/* V90 - QR public unique + accueil concours publics */
.public-hub-body{
  margin:0;
  background:radial-gradient(circle at 80% 10%,rgba(245,196,81,.14),transparent 25%),linear-gradient(135deg,#07111c,#0b1d31 55%,#06101b);
  color:#fff;
  font-family:Arial,Helvetica,sans-serif;
}
.public-hub-page{max-width:1500px;margin:0 auto;padding:24px 18px 60px}
.public-hub-hero{
  display:flex;
  align-items:center;
  gap:24px;
  padding:28px;
  border:1px solid rgba(245,196,81,.65);
  border-radius:24px;
  background:linear-gradient(120deg,rgba(8,25,38,.98),rgba(13,36,55,.92));
}
.public-hub-hero img{width:210px;max-height:100px;object-fit:contain}
.public-hub-hero span{color:#f5c451;text-transform:uppercase;letter-spacing:.12em;font-weight:1000}
.public-hub-hero h1{font-size:clamp(38px,5vw,72px);margin:8px 0}
.public-hub-hero p{margin:0;color:#dbe6f2;font-size:20px}
.public-hub-grid{display:grid;grid-template-columns:1fr;gap:18px;margin-top:18px}
.public-hub-section{
  padding:20px;
  border-radius:20px;
  background:linear-gradient(180deg,rgba(8,25,38,.98),rgba(4,18,29,.98));
  border:1px solid rgba(245,196,81,.38);
}
.public-hub-section.live{border-color:rgba(52,209,109,.7)}
.public-hub-section.upcoming{border-color:rgba(97,170,255,.55)}
.public-hub-section.past{border-color:rgba(245,196,81,.55)}
.public-hub-section h2{margin:0 0 14px;font-size:30px}
.public-contest-list{display:grid;grid-template-columns:repeat(3,1fr);gap:12px}
.public-contest-card{
  text-decoration:none;
  color:#fff;
  padding:16px;
  border-radius:16px;
  background:rgba(255,255,255,.06);
  border:1px solid rgba(255,255,255,.10);
  display:grid;
  gap:10px;
}
.public-contest-card:hover{border-color:#f5c451;background:rgba(245,196,81,.10)}
.public-contest-card strong{font-size:22px;color:#f5c451}
.public-contest-card span,.public-contest-card em{color:#dbe6f2;font-style:normal}
.public-contest-card b{color:#3cff82}
.public-empty{color:#cbd5e1;font-weight:900}
.home-date-input{min-width:150px}
.home-contest-actions{display:flex;gap:8px;flex-wrap:wrap}
.home-contest-actions button{font-size:13px;padding:9px 10px}
@media(max-width:1000px){.public-contest-list{grid-template-columns:1fr}.public-hub-hero{flex-direction:column;align-items:flex-start}}

/* V91 - Statut concours accueil */
.lc-table small{
  display:inline-block;
  margin-top:6px;
  padding:4px 8px;
  border-radius:999px;
  background:rgba(245,196,81,.14);
  color:#f5c451;
  font-weight:1000;
}

/* V94 - Badges concours colorés */
.contest-badge{
  display:inline-flex!important;
  align-items:center;
  gap:6px;
  margin-top:7px!important;
  padding:7px 10px!important;
  border-radius:999px!important;
  font-weight:1000!important;
  text-transform:uppercase;
  font-size:11px!important;
  border:1px solid transparent;
}
.contest-badge.live{background:rgba(239,68,68,.18)!important;color:#ffb4b4!important;border-color:rgba(239,68,68,.45)}
.contest-badge.upcoming{background:rgba(59,130,246,.18)!important;color:#93c5fd!important;border-color:rgba(59,130,246,.45)}
.contest-badge.past{background:rgba(245,196,81,.18)!important;color:#f5c451!important;border-color:rgba(245,196,81,.45)}
.contest-badge.finished{background:rgba(52,209,109,.18)!important;color:#3cff82!important;border-color:rgba(52,209,109,.48)}
.public-status-badge{
  display:inline-flex;
  width:max-content;
  padding:7px 10px;
  border-radius:999px;
  font-weight:1000;
  text-transform:uppercase;
  font-size:12px;
}
.public-status-badge.live{background:rgba(239,68,68,.20);color:#ffb4b4}
.public-status-badge.upcoming{background:rgba(59,130,246,.20);color:#93c5fd}
.public-status-badge.past{background:rgba(245,196,81,.20);color:#f5c451}
.public-status-badge.finished{background:rgba(52,209,109,.20);color:#3cff82}

/* V97 - Accueil public 3 catégories */
.public-home-body{
  margin:0;
  min-height:100vh;
  background:
    radial-gradient(circle at 82% 8%,rgba(245,196,81,.15),transparent 26%),
    linear-gradient(135deg,#06111b,#0b1d31 55%,#06101b);
  color:#fff;
  font-family:Arial,Helvetica,sans-serif;
}
.public-home-page{
  max-width:1500px;
  margin:0 auto;
  padding:24px 18px 60px;
}
.public-home-hero{
  display:flex;
  align-items:center;
  gap:24px;
  padding:30px;
  border:1px solid rgba(245,196,81,.65);
  border-radius:24px;
  background:linear-gradient(120deg,rgba(8,25,38,.98),rgba(13,36,55,.92));
  box-shadow:0 18px 55px rgba(0,0,0,.32);
}
.public-home-hero img{
  width:220px;
  max-height:110px;
  object-fit:contain;
}
.public-home-hero span{
  color:#f5c451;
  text-transform:uppercase;
  letter-spacing:.14em;
  font-weight:1000;
}
.public-home-hero h1{
  font-size:clamp(42px,5vw,76px);
  margin:8px 0;
  line-height:1;
}
.public-home-hero p{
  margin:0;
  color:#dbe6f2;
  font-size:20px;
}
.public-home-categories{
  display:grid;
  gap:18px;
  margin-top:20px;
}
.public-category{
  padding:20px;
  border-radius:22px;
  background:linear-gradient(180deg,rgba(8,25,38,.98),rgba(4,18,29,.98));
  box-shadow:0 14px 40px rgba(0,0,0,.25);
}
.public-category.live{border:2px solid rgba(239,68,68,.65)}
.public-category.upcoming{border:2px solid rgba(59,130,246,.65)}
.public-category.past{border:2px solid rgba(52,209,109,.65)}
.public-category-title{
  display:flex;
  gap:16px;
  align-items:center;
  margin-bottom:16px;
}
.public-category-title > span{
  width:58px;
  height:58px;
  border-radius:50%;
  display:grid;
  place-items:center;
  background:rgba(255,255,255,.08);
  font-size:30px;
}
.public-category-title h2{
  margin:0;
  font-size:34px;
}
.public-category-title p{
  margin:5px 0 0;
  color:#dbe6f2;
}
.public-contest-list{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:12px;
}
.public-contest-card{
  text-decoration:none;
  color:#fff;
  padding:18px;
  border-radius:18px;
  background:rgba(255,255,255,.06);
  border:1px solid rgba(255,255,255,.12);
  display:grid;
  gap:12px;
}
.public-contest-card:hover{
  border-color:#f5c451;
  background:rgba(245,196,81,.10);
}
.public-contest-main{
  display:flex;
  justify-content:space-between;
  gap:10px;
  align-items:flex-start;
}
.public-contest-main strong{
  color:#fff;
  font-size:23px;
  line-height:1.15;
}
.public-contest-meta{
  display:grid;
  gap:6px;
  color:#dbe6f2;
}
.public-contest-card b{
  color:#f5c451;
}
.public-badge-live,
.public-badge-upcoming,
.public-badge-past,
.public-badge-finished{
  white-space:nowrap;
  padding:7px 10px;
  border-radius:999px;
  font-weight:1000;
  text-transform:uppercase;
  font-size:11px;
}
.public-badge-live{background:rgba(239,68,68,.22);color:#ffb4b4}
.public-badge-upcoming{background:rgba(59,130,246,.22);color:#93c5fd}
.public-badge-past{background:rgba(245,196,81,.22);color:#f5c451}
.public-badge-finished{background:rgba(52,209,109,.22);color:#3cff82}
.public-empty{
  padding:18px;
  border-radius:16px;
  background:rgba(255,255,255,.05);
  color:#cbd5e1;
  font-weight:900;
}
@media(max-width:1000px){
  .public-home-hero{flex-direction:column;align-items:flex-start}
  .public-contest-list{grid-template-columns:1fr}
  .public-contest-main{display:grid}
}

/* V98 - Accueil simplifié : Accueil / Espace Public / Espace Jury */
.home-three-access-v98{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:18px;
  margin:20px 0;
}
.home-big-card{
  min-height:520px;
  padding:26px;
  border-radius:24px;
  background:linear-gradient(180deg,rgba(8,25,38,.98),rgba(4,18,29,.98));
  border:1px solid rgba(245,196,81,.42);
  box-shadow:0 18px 45px rgba(0,0,0,.28);
  display:flex;
  flex-direction:column;
  gap:16px;
  overflow:hidden;
}
.home-card-accueil{border-color:rgba(52,209,109,.65)}
.home-card-public{border-color:rgba(59,130,246,.75)}
.home-card-jury{border-color:rgba(245,196,81,.75)}
.home-big-icon{
  width:88px;
  height:88px;
  display:grid;
  place-items:center;
  border-radius:50%;
  font-size:44px;
  background:rgba(255,255,255,.08);
}
.home-card-accueil .home-big-icon{background:linear-gradient(145deg,#34d16d,#117a3c)}
.home-card-public .home-big-icon{background:linear-gradient(145deg,#4aa3ff,#1154b7)}
.home-card-jury .home-big-icon{background:linear-gradient(145deg,#ffd45c,#b97804)}
.home-big-card h2{
  margin:0;
  font-size:clamp(32px,3vw,48px);
  text-transform:uppercase;
  line-height:1;
}
.home-card-accueil h2{color:#3cff82}
.home-card-public h2{color:#4aa3ff}
.home-card-jury h2{color:#ffd45c}
.home-big-card p{
  margin:0;
  color:#dbe6f2;
  font-size:18px;
  line-height:1.4;
}
.home-big-card ul{
  list-style:none;
  padding:0;
  margin:0;
  display:grid;
  gap:12px;
}
.home-big-card li{
  position:relative;
  padding-left:32px;
  font-size:17px;
  color:#fff;
}
.home-big-card li::before{
  content:"✓";
  position:absolute;
  left:0;
  top:0;
  width:22px;
  height:22px;
  border-radius:50%;
  display:grid;
  place-items:center;
  font-weight:1000;
  color:#07111b;
  background:#f5c451;
}
.home-card-qr{
  margin-top:auto;
  display:flex;
  align-items:center;
  gap:14px;
  padding:12px;
  border-radius:16px;
  background:rgba(0,0,0,.18);
}
.home-card-qr img{
  width:115px;
  height:115px;
  background:#fff;
  padding:7px;
  border-radius:12px;
}
.home-card-qr span{
  color:#dbe6f2;
  font-weight:1000;
}
.home-big-btn{
  display:block;
  margin-top:auto;
  text-align:center;
  text-decoration:none;
  padding:17px 18px;
  border-radius:16px;
  font-weight:1000;
  font-size:18px;
  color:#07111b;
}
.home-big-btn.green{background:#34d16d}
.home-big-btn.blue{background:#2f8bff;color:#fff}
.home-big-btn.gold{background:#ffd45c}
.public-shortcuts-v98{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:16px;
  margin:20px 0;
}
.public-shortcut{
  text-decoration:none;
  color:#fff;
  padding:22px;
  border-radius:20px;
  background:linear-gradient(180deg,rgba(8,25,38,.98),rgba(4,18,29,.98));
  border:1px solid rgba(255,255,255,.12);
  display:grid;
  grid-template-columns:70px 1fr;
  gap:16px;
  align-items:center;
}
.public-shortcut span{
  width:70px;height:70px;border-radius:50%;display:grid;place-items:center;font-size:36px;
}
.public-shortcut.ranking{border-color:rgba(245,196,81,.65)}
.public-shortcut.ranking span{background:linear-gradient(145deg,#ffd45c,#b97804)}
.public-shortcut.planning{border-color:rgba(164,92,246,.65)}
.public-shortcut.planning span{background:linear-gradient(145deg,#a45cf6,#5420aa)}
.public-shortcut strong{font-size:28px;color:#f5c451}
.public-shortcut em{font-style:normal;color:#dbe6f2}
@media(max-width:1200px){
  .home-three-access-v98{grid-template-columns:1fr}
  .home-big-card{min-height:auto}
}
@media(max-width:760px){
  .public-shortcuts-v98{grid-template-columns:1fr}
  .public-shortcut{grid-template-columns:1fr;text-align:center;justify-items:center}
}

/* V99 - Classement/Planning public uniquement liés au concours en direct */
.public-live-only-shortcuts .public-shortcut.disabled{
  opacity:.55;
  filter:grayscale(.65);
  cursor:not-allowed;
}
.public-live-only-shortcuts .public-shortcut.disabled:hover{
  border-color:rgba(255,255,255,.12);
  background:linear-gradient(180deg,rgba(8,25,38,.98),rgba(4,18,29,.98));
}

/* =========================================================
   V102 - Responsive complet téléphone / tablette / ordinateur
   Espaces privés : chronométreur, speaker, commissaire, secrétariat
   ========================================================= */

/* Base anti-débordement */
html, body{
  max-width:100%;
  overflow-x:hidden!important;
}
img, video, canvas, svg{
  max-width:100%;
}
table{
  min-width:0;
}
input, select, textarea, button{
  max-width:100%;
}

/* Navigation adaptée tactile */
.lc-nav{
  gap:10px;
  flex-wrap:wrap;
}
.lc-links{
  min-width:0;
  overflow-x:auto;
  scrollbar-width:thin;
}
.lc-links a{
  white-space:nowrap;
}

/* Tableaux lisibles avec scroll fluide */
.table-wrap,
.lc-table-wrap{
  width:100%;
  overflow-x:auto!important;
  -webkit-overflow-scrolling:touch;
}
.table-wrap table,
.lc-table-wrap table{
  min-width:760px;
}

/* Boutons tactiles */
button,
.lc-small-btn,
.lc-btn,
.access-btn,
.private-btn,
.home-big-btn{
  touch-action:manipulation;
}

/* Chronométreur / jury : éviter les colonnes qui explosent */
.jury-body,
body[class*="jury"],
body[class*="chrono"]{
  overflow-x:hidden;
}
.jury-layout,
.main-grid,
.dashboard-grid,
.lc-dashboard,
.sec-page,
.music-page,
.planning-page,
.speaker-page,
.commissaire-page,
.access-page,
.private-spaces-page{
  width:100%;
  max-width:100%;
}

/* Speaker */
.speaker-page{
  padding-left:14px!important;
  padding-right:14px!important;
}
.speaker-grid,
.speaker-layout,
.speaker-main,
.speaker-panel-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(320px,1fr));
  gap:14px;
}
.speaker-card,
.speaker-panel{
  min-width:0;
}
.speaker-list,
.speaker-queue,
.speaker-history{
  max-height:70vh;
  overflow:auto;
  -webkit-overflow-scrolling:touch;
}

/* Commissaire paddock */
.commissaire-page,
.commissaire-body main,
.com-page{
  padding-left:14px!important;
  padding-right:14px!important;
}
.com-grid,
.commissaire-grid,
.com-layout{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(300px,1fr));
  gap:14px;
}
.com-card,
.commissaire-card{
  min-width:0;
}
.com-actions,
.commissaire-actions,
.paddock-actions{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
}
.com-actions button,
.commissaire-actions button,
.paddock-actions button{
  min-height:52px;
  flex:1 1 150px;
}

/* Secrétariat */
.sec-page{
  padding-left:14px!important;
  padding-right:14px!important;
}
.sec-tools,
.sec-form,
.sec-result-grid,
.sec-status-grid{
  min-width:0;
}
.sec-tools{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(220px,1fr));
  gap:10px;
}
.sec-form{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(180px,1fr));
  gap:10px;
}
.sec-result-grid{
  grid-template-columns:repeat(auto-fit,minmax(190px,1fr))!important;
}
.sec-status-grid{
  grid-template-columns:repeat(auto-fit,minmax(150px,1fr))!important;
}
.sec-actions,
.sec-actions-row{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
}
.sec-actions button,
.sec-actions-row button{
  min-height:46px;
}

/* Planning / musique / espaces privés déjà en grille, on force la sécurité */
.private-grid,
.home-three-access-v98,
.public-contest-list,
.jingle-pad-grid,
.music-layout,
.planning-summary,
.planning-settings{
  min-width:0;
}
.private-card,
.home-big-card,
.public-contest-card,
.music-card,
.planning-card{
  min-width:0;
}

/* Mode tablette */
@media (max-width:1200px){
  .lc-nav{
    padding:10px 12px!important;
  }
  .lc-brand img{
    max-width:180px;
    height:auto;
  }
  .lc-links{
    order:3;
    width:100%;
    display:flex;
    gap:8px;
    padding:8px 0 2px;
  }
  .lc-links a{
    flex:0 0 auto;
    padding:10px 12px!important;
    border-radius:999px;
    background:rgba(255,255,255,.06);
  }
  .lc-logout,
  .logout-btn{
    margin-left:auto;
  }

  .private-grid{
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
  }
  .home-three-access-v98{
    grid-template-columns:1fr!important;
  }
  .music-layout{
    grid-template-columns:1fr!important;
  }
  .jingle-pad-grid{
    grid-template-columns:repeat(3,minmax(0,1fr))!important;
  }
}

/* Mode téléphone */
@media (max-width:760px){
  body{
    font-size:15px;
  }
  .lc-nav{
    position:sticky;
    top:0;
    z-index:50;
    background:rgba(6,17,27,.98)!important;
    backdrop-filter:blur(8px);
  }
  .lc-brand img{
    max-width:145px;
  }
  .lc-theme{
    display:none;
  }
  .lc-logout,
  .logout-btn{
    padding:9px 10px!important;
    font-size:13px!important;
  }

  .lc-dashboard,
  .access-page,
  .private-spaces-page,
  .public-home-page,
  .planning-page,
  .music-page,
  .speaker-page,
  .sec-page{
    padding:14px 10px 38px!important;
  }

  .lc-hero,
  .private-hero,
  .public-home-hero,
  .planning-hero,
  .music-hero,
  .sec-hero,
  .access-hero{
    padding:18px!important;
    border-radius:18px!important;
  }
  .lc-hero h1,
  .private-hero h1,
  .public-home-hero h1,
  .planning-hero h1,
  .music-hero h1,
  .sec-hero h1,
  .access-hero h1{
    font-size:34px!important;
    line-height:1.05!important;
  }

  /* cartes principales */
  .private-grid,
  .access-grid,
  .home-three-access-v98,
  .public-contest-list,
  .planning-summary,
  .planning-settings,
  .music-master-panel,
  .sec-tools,
  .sec-form,
  .sec-result-grid,
  .sec-status-grid{
    grid-template-columns:1fr!important;
  }

  .private-card,
  .home-big-card,
  .access-card,
  .lc-card,
  .sec-card,
  .music-card,
  .planning-card{
    padding:16px!important;
    border-radius:16px!important;
    min-height:auto!important;
  }

  .private-card-top,
  .public-category-title{
    grid-template-columns:1fr!important;
    display:grid!important;
    text-align:center;
    justify-items:center;
  }
  .private-icon,
  .home-big-icon{
    width:70px!important;
    height:70px!important;
    font-size:34px!important;
  }

  /* QR */
  .private-qr img,
  .access-card img,
  .home-card-qr img{
    width:130px!important;
    height:130px!important;
  }
  .home-card-qr{
    display:grid!important;
    justify-items:center!important;
    text-align:center;
  }

  /* pad musique */
  .jingle-pad-grid{
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
    gap:10px!important;
  }
  .pad-tile{
    min-height:118px!important;
    border-radius:16px!important;
  }
  .pad-tile .pad-icon{
    font-size:30px!important;
  }
  .pad-tile strong{
    font-size:17px!important;
  }
  .pad-tile em{
    font-size:14px!important;
  }

  /* boutons */
  button,
  .lc-small-btn,
  .lc-btn,
  .private-btn,
  .home-big-btn,
  .access-btn{
    min-height:48px!important;
    font-size:15px!important;
    padding:12px 14px!important;
  }

  /* tableaux en cartes visuelles plus lisibles quand possible */
  table{
    font-size:14px;
  }
  th, td{
    padding:8px!important;
  }

  /* formulaire */
  input, select, textarea{
    min-height:46px!important;
    font-size:16px!important; /* évite le zoom iPhone */
  }

  /* chrono */
  .chrono,
  .lc-live-time,
  #timerDisplay,
  #chronoDisplay,
  #homeLiveTimer{
    font-size:clamp(42px,15vw,82px)!important;
    line-height:1!important;
    word-break:keep-all;
  }

  /* speaker / commissaire listes */
  .speaker-list,
  .speaker-queue,
  .speaker-history,
  .music-list,
  .server-music-library,
  .pad-file-list{
    max-height:55vh!important;
  }
}

/* Très petit téléphone */
@media (max-width:430px){
  .jingle-pad-grid{
    grid-template-columns:1fr!important;
  }
  .lc-links a span{
    display:inline;
  }
  .private-card h2,
  .home-big-card h2,
  .public-category-title h2{
    font-size:25px!important;
  }
}

/* =========================================================
   V103 - Version responsive FONCTIONNELLE espaces jury
   Conserve toutes les fonctionnalités et tous les ID existants.
   ========================================================= */

/* ---------- Fondations communes ---------- */
html, body { width:100%; max-width:100%; overflow-x:hidden !important; }
.lc-pro * { box-sizing:border-box; }
button, a.button, .lc-small-btn { touch-action:manipulation; }
.table-wrap { max-width:100%; overflow:auto !important; -webkit-overflow-scrolling:touch; }
.table-wrap table { min-width:760px; }
.lc-nav { flex-wrap:wrap; gap:10px; }
.lc-links { overflow-x:auto; -webkit-overflow-scrolling:touch; scrollbar-width:thin; }
.lc-links a { white-space:nowrap; }

/* ---------- Chronométreur desktop/tablette ---------- */
.jury-premium-shell { max-width:1900px; margin:0 auto; padding:18px; }
.jury-v40-grid{
  display:grid;
  grid-template-columns:minmax(270px,.78fr) minmax(460px,1.45fr) minmax(430px,1.15fr);
  gap:14px;
  align-items:start;
}
.jury-info-panel{grid-column:1; grid-row:1 / span 2;}
.jury-band-panel{grid-column:2; grid-row:1;}
.jury-v40-chrono{grid-column:2; grid-row:2;}
.jury-obstacles-panel{grid-column:3; grid-row:1 / span 2;}
.jury-v40-actions{grid-column:1 / 4; grid-row:3;}
.jury-ranking-live{grid-column:1 / 3; grid-row:4;}
.jury-route-card{grid-column:3; grid-row:4;}
.jury-v40-qr{grid-column:1 / 4; grid-row:5;}

.jury-v40-chrono, .jury-obstacles-panel, .jury-ranking-live, .jury-info-panel, .jury-band-panel{
  min-width:0;
}
.jury-led-chrono{
  font-size:clamp(64px,8vw,150px) !important;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:clip;
}
.jury-actions-strip{
  display:grid !important;
  grid-template-columns:repeat(10,minmax(110px,1fr));
  gap:10px;
}
.jury-actions-strip button{
  min-height:58px;
  font-size:16px;
}
.jury-ranking-live tbody tr{cursor:pointer;}
.parcours-wrap{max-height:460px;}

/* ---------- Speaker ---------- */
.speaker-page{max-width:1600px;margin:0 auto;padding:18px;}
.speaker-page .speaker-grid,
.speaker-page .speaker-layout,
.speaker-page .speaker-main,
.speaker-page .speaker-columns,
.speaker-v71{
  min-width:0;
}
.speaker-page section,
.speaker-page article{min-width:0;}
.speaker-page .table-wrap table{min-width:650px;}

/* ---------- Commissaire : desktop table + mobile cards ---------- */
#comCards{display:none;}
.com-mobile-card{
  border:1px solid rgba(245,196,81,.35);
  background:linear-gradient(180deg,rgba(8,25,38,.98),rgba(4,18,29,.98));
  border-radius:16px;
  padding:14px;
  margin-bottom:12px;
}
.com-mobile-head{
  display:flex;
  justify-content:space-between;
  gap:10px;
  align-items:flex-start;
  margin-bottom:12px;
}
.com-mobile-head strong{font-size:18px;color:#fff;}
.com-mobile-head span{
  background:rgba(245,196,81,.16);
  color:#f5c451;
  border:1px solid rgba(245,196,81,.35);
  border-radius:999px;
  padding:6px 10px;
  font-weight:1000;
}
.com-mobile-horse{color:#dbe6f2;margin-top:4px;}
.com-mobile-actions{
  display:grid;
  grid-template-columns:repeat(2,1fr);
  gap:9px;
}
.com-mobile-actions button{
  min-height:52px;
  font-size:15px;
  border-radius:12px;
}
.com-mobile-actions button.active.present{background:#16a34a;color:#fff;}
.com-mobile-actions button.active.ready{background:#f59e0b;color:#111827;}
.com-mobile-actions button.active.called{background:#2563eb;color:#fff;}
.com-mobile-actions button.active.absent{background:#ef4444;color:#fff;}
.com-mobile-actions button.active.nonpartant{background:#7f1d1d;color:#fff;}

/* ---------- Secrétariat ---------- */
.sec-page{max-width:1700px;margin:0 auto;padding:18px;}
.sec-tools{
  display:grid;
  grid-template-columns:minmax(220px,320px) minmax(260px,1fr) repeat(3,max-content);
  gap:10px;
  align-items:end;
}
.sec-form{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(170px,1fr));
  gap:10px;
}
.sec-result-grid{grid-template-columns:repeat(4,minmax(170px,1fr)) !important;}
.sec-status-grid{grid-template-columns:repeat(auto-fit,minmax(160px,1fr)) !important;}
.sec-actions-row{display:flex;flex-wrap:wrap;gap:10px;}

/* ---------- Tablette paysage / portrait ---------- */
@media (max-width:1280px){
  .lc-nav{padding:10px 12px !important;}
  .lc-links{order:3;width:100%;display:flex;gap:8px;padding-bottom:4px;}
  .lc-links a{
    flex:0 0 auto;
    padding:10px 12px !important;
    border-radius:999px;
    background:rgba(255,255,255,.06);
  }

  .jury-v40-grid{
    grid-template-columns:minmax(300px,.9fr) minmax(430px,1.15fr);
  }
  .jury-info-panel{grid-column:1;grid-row:1;}
  .jury-v40-chrono{grid-column:2;grid-row:1;}
  .jury-band-panel{grid-column:1 / 3;grid-row:2;}
  .jury-v40-actions{grid-column:1 / 3;grid-row:3;}
  .jury-ranking-live{grid-column:1 / 3;grid-row:4;}
  .jury-obstacles-panel{grid-column:1 / 3;grid-row:5;}
  .jury-route-card{grid-column:1 / 3;grid-row:6;}
  .jury-v40-qr{grid-column:1 / 3;grid-row:7;}
  .jury-actions-strip{grid-template-columns:repeat(5,1fr);}
  .jury-led-chrono{font-size:clamp(62px,10vw,120px) !important;}

  .sec-tools{grid-template-columns:1fr 1fr;}
  .sec-tools button{width:100%;}
  .sec-result-grid{grid-template-columns:repeat(2,minmax(170px,1fr)) !important;}
}

/* ---------- Téléphone ---------- */
@media (max-width:760px){
  body{font-size:15px;}
  .lc-nav{
    position:sticky;
    top:0;
    z-index:60;
    background:rgba(6,17,27,.98) !important;
    backdrop-filter:blur(10px);
  }
  .lc-brand img{max-width:140px;height:auto;}
  .lc-menu{display:none !important;}
  .lc-logout,.logout-btn{font-size:12px !important;padding:8px 10px !important;}

  /* Chronométreur : vrai ordre mobile */
  .jury-premium-shell{padding:10px;}
  .jury-v40-grid{
    display:flex !important;
    flex-direction:column;
    gap:12px;
  }
  .jury-v40-chrono{order:1;}
  .jury-actions-strip{order:2;}
  .jury-info-panel{order:3;}
  .jury-ranking-live{order:4;}
  .jury-obstacles-panel{order:5;}
  .jury-band-panel{order:6;}
  .jury-route-card{order:7;}
  .jury-v40-qr{order:8;}

  .jury-v40-chrono,
  .jury-info-panel,
  .jury-ranking-live,
  .jury-obstacles-panel,
  .jury-band-panel,
  .jury-route-card,
  .jury-v40-qr,
  .jury-admin-card,
  #settingsBlock,
  .card.wide{
    width:100% !important;
    padding:14px !important;
    border-radius:16px !important;
  }

  .jury-led-chrono{
    font-size:clamp(54px,18vw,84px) !important;
    text-align:center;
    line-height:1;
  }
  .jury-time-stats{
    grid-template-columns:1fr !important;
    gap:8px !important;
  }
  .chrono-seconds-box{font-size:16px !important;}

  .jury-actions-strip{
    position:sticky;
    bottom:0;
    z-index:55;
    display:grid !important;
    grid-template-columns:repeat(2,1fr) !important;
    gap:8px !important;
    padding:10px !important;
    margin:0 -10px !important;
    border-radius:18px 18px 0 0 !important;
    background:rgba(6,17,27,.98) !important;
    border-top:1px solid rgba(245,196,81,.35);
    box-shadow:0 -12px 30px rgba(0,0,0,.35);
  }
  .jury-actions-strip button{
    min-height:52px !important;
    font-size:14px !important;
    padding:10px !important;
    border-radius:12px !important;
  }

  .rider-identity{grid-template-columns:62px 1fr !important;}
  .rider-avatar{width:62px!important;height:62px!important;font-size:32px!important;}
  .rider-identity h1{font-size:24px!important;}
  .rider-info-list{grid-template-columns:1fr !important;}
  .current-band-content{display:grid !important;gap:8px;}

  .jury-ranking-live .table-wrap,
  .parcours-wrap{
    max-height:60vh;
  }

  /* Speaker mobile */
  .speaker-page{padding:10px!important;}
  .speaker-hero{padding:16px!important;border-radius:16px!important;}
  .speaker-hero h1{font-size:34px!important;}
  .speaker-page .speaker-grid,
  .speaker-page .speaker-layout,
  .speaker-page .speaker-main,
  .speaker-page .speaker-columns{
    display:flex !important;
    flex-direction:column !important;
    gap:12px !important;
  }
  .speaker-page article,
  .speaker-page section,
  .speaker-card,
  .speaker-panel{
    width:100%!important;
    padding:14px!important;
    border-radius:16px!important;
  }
  .speaker-page button{min-height:50px!important;font-size:15px!important;}
  .speaker-page select,
  .speaker-page input,
  .speaker-page textarea{font-size:16px!important;min-height:46px!important;}

  /* Commissaire mobile : on masque la table et on affiche des cartes */
  body:has(#comRows) .table-wrap{display:none;}
  #comCards{display:block;}
  .sec-page{padding:10px!important;}
  .sec-hero{padding:16px!important;border-radius:16px!important;}
  .sec-hero h1{font-size:34px!important;}

  /* Secrétariat mobile */
  .sec-tools,
  .sec-form,
  .sec-result-grid,
  .sec-status-grid{
    grid-template-columns:1fr!important;
  }
  .sec-card{padding:14px!important;border-radius:16px!important;}
  .sec-actions,
  .sec-actions-row{display:grid!important;grid-template-columns:1fr!important;}
  .sec-actions button,
  .sec-actions-row button,
  .sec-tools button{width:100%;min-height:50px!important;}
  .sec-table{font-size:14px;}

  input, select, textarea{
    font-size:16px !important;
    min-height:46px !important;
  }
  button,.lc-small-btn,.button{
    min-height:48px;
  }
}

/* Fallback si :has non supporté */
@media (max-width:760px){
  .commissaire-mobile .table-wrap{display:none!important;}
  .commissaire-mobile #comCards{display:block!important;}
}

/* V104 - Sélection concours en direct pour commissaire et secrétariat */
.commissaire-live-tools{
  margin:14px 0;
  align-items:end;
}
.live-info-pill{
  display:inline-flex;
  align-items:center;
  min-height:46px;
  padding:10px 14px;
  border-radius:999px;
  background:rgba(52,209,109,.12);
  color:#3cff82;
  border:1px solid rgba(52,209,109,.35);
  font-weight:1000;
}
@media(max-width:760px){
  .commissaire-live-tools{
    grid-template-columns:1fr!important;
  }
  .live-info-pill{
    border-radius:14px;
    justify-content:center;
    text-align:center;
  }
}

/* =========================================================
   V105 - Speaker téléphone/tablette dans le thème LogiChrono
   ========================================================= */

.speaker-mobile-premium .speaker-card{
  border:1px solid rgba(245,196,81,.28);
  background:linear-gradient(180deg,rgba(8,25,38,.98),rgba(4,18,29,.98));
  box-shadow:0 14px 36px rgba(0,0,0,.25);
}
.speaker-mobile-quick{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:10px;
  margin:10px 0 12px;
}
.speaker-mobile-quick button{
  min-height:56px;
  border-radius:14px;
  background:rgba(245,196,81,.10);
  border:1px solid rgba(245,196,81,.28);
  color:#fff;
  font-weight:1000;
  font-size:15px;
}
.speaker-mobile-quick button:hover{
  background:rgba(245,196,81,.20);
}

/* Tablette : 2 colonnes bien lisibles */
@media(max-width:1180px){
  .speaker-mobile-premium .speaker-v71-grid,
  .speaker-mobile-premium .speaker-lower-grid,
  .speaker-mobile-premium .speaker-v71-lower{
    display:grid!important;
    grid-template-columns:1fr 1fr!important;
    gap:14px!important;
  }
  .speaker-mobile-premium .speaker-list-panel{
    grid-column:1 / 3;
  }
  .speaker-mobile-premium .speaker-timer{
    grid-column:1 / 3;
  }
}

/* Téléphone : interface orientée speaker terrain */
@media(max-width:760px){
  .speaker-mobile-premium{
    background:
      radial-gradient(circle at 85% 0%, rgba(245,196,81,.12), transparent 28%),
      linear-gradient(135deg,#07111c,#0b1d31 55%,#06101b);
  }
  .speaker-mobile-premium .lc-nav{
    position:sticky;
    top:0;
    z-index:70;
    padding:8px 10px!important;
    background:rgba(6,17,27,.98)!important;
  }
  .speaker-mobile-premium .lc-brand img{
    max-width:135px!important;
  }
  .speaker-mobile-premium .lc-links{
    display:none!important;
  }
  .speaker-mobile-premium .logout-btn{
    font-size:12px!important;
    padding:8px 10px!important;
  }

  .speaker-mobile-premium .speaker-page{
    padding:10px 10px 92px!important;
    max-width:100%!important;
  }

  .speaker-mobile-premium .speaker-hero{
    padding:16px!important;
    border-radius:18px!important;
    border:1px solid rgba(245,196,81,.42);
    background:linear-gradient(120deg,rgba(8,25,38,.98),rgba(13,36,55,.92));
    display:grid!important;
    grid-template-columns:1fr!important;
    gap:12px!important;
  }
  .speaker-mobile-premium .speaker-hero h1{
    font-size:34px!important;
    line-height:1!important;
    margin:5px 0!important;
  }
  .speaker-mobile-premium .speaker-kicker{
    color:#f5c451!important;
    font-weight:1000;
  }
  .speaker-mobile-premium .speaker-live{
    justify-self:start;
    border-radius:999px;
    padding:8px 12px;
    background:rgba(52,209,109,.12);
    border:1px solid rgba(52,209,109,.35);
  }

  .speaker-mobile-premium .speaker-control-bar{
    position:sticky;
    top:58px;
    z-index:60;
    display:grid!important;
    grid-template-columns:1fr!important;
    gap:9px!important;
    padding:12px!important;
    margin:10px 0!important;
    border-radius:18px!important;
    background:rgba(6,17,27,.97)!important;
    border:1px solid rgba(245,196,81,.30);
    box-shadow:0 12px 28px rgba(0,0,0,.25);
  }
  .speaker-mobile-premium .speaker-control-bar label{
    font-size:12px;
    color:#f5c451;
    font-weight:1000;
    text-transform:uppercase;
  }
  .speaker-mobile-premium .speaker-control-bar select,
  .speaker-mobile-premium .speaker-control-bar input{
    min-height:46px!important;
    font-size:16px!important;
    border-radius:12px!important;
  }
  .speaker-mobile-premium .speaker-control-bar button{
    min-height:48px!important;
    border-radius:12px!important;
  }

  .speaker-mobile-premium .speaker-v71-grid,
  .speaker-mobile-premium .speaker-lower-grid,
  .speaker-mobile-premium .speaker-v71-lower{
    display:flex!important;
    flex-direction:column!important;
    gap:12px!important;
  }

  /* Ordre mobile */
  .speaker-mobile-premium .speaker-selected-card{order:1;}
  .speaker-mobile-premium .speaker-timer{order:2;}
  .speaker-mobile-premium .speaker-next{order:3;}
  .speaker-mobile-premium .speaker-list-panel{order:4;}
  .speaker-mobile-premium .speaker-history{order:5;}

  .speaker-mobile-premium .speaker-card{
    width:100%!important;
    padding:14px!important;
    border-radius:18px!important;
    overflow:hidden;
  }
  .speaker-mobile-premium .speaker-card-head{
    display:flex;
    justify-content:space-between;
    gap:10px;
    align-items:center;
  }
  .speaker-mobile-premium .speaker-card-head h2,
  .speaker-mobile-premium .speaker-card h2{
    font-size:21px!important;
    margin:0;
  }

  /* Carte cavalier */
  .speaker-mobile-premium .speaker-rider{
    display:grid!important;
    grid-template-columns:78px 1fr!important;
    gap:12px!important;
    align-items:center;
    padding:14px!important;
    border-radius:16px;
    background:rgba(255,255,255,.05);
    border:1px solid rgba(255,255,255,.08);
  }
  .speaker-mobile-premium .speaker-rider-icon{
    width:78px!important;
    height:78px!important;
    border-radius:18px!important;
    display:grid;
    place-items:center;
    font-size:38px!important;
    background:linear-gradient(145deg,#f5c451,#b97804)!important;
    color:#07111b!important;
  }
  .speaker-mobile-premium #speakerCurrentName{
    font-size:26px!important;
    line-height:1.05!important;
    margin:2px 0!important;
  }
  .speaker-mobile-premium #speakerCurrentHorse{
    font-size:20px!important;
    color:#fff!important;
    margin:4px 0!important;
  }
  .speaker-mobile-premium #speakerCurrentClub{
    font-size:15px!important;
    color:#dbe6f2!important;
  }

  /* Actions rapides */
  .speaker-mobile-premium .speaker-mobile-quick{
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
    gap:9px!important;
  }
  .speaker-mobile-premium .speaker-mobile-quick button{
    min-height:64px!important;
    font-size:16px!important;
    border-radius:16px!important;
  }
  .speaker-mobile-premium .speaker-phrase-tools{
    grid-template-columns:1fr!important;
    gap:8px!important;
  }
  .speaker-mobile-premium .speaker-script-actions{
    display:grid!important;
    grid-template-columns:1fr 1fr!important;
    gap:8px!important;
  }
  .speaker-mobile-premium #copySpeakerPhrase{
    grid-column:1 / 3;
  }
  .speaker-mobile-premium #speakerPhrase{
    font-size:16px!important;
    line-height:1.45!important;
    padding:12px!important;
    border-radius:14px;
    background:rgba(0,0,0,.18);
  }

  /* Chrono live */
  .speaker-mobile-premium .speaker-chrono{
    font-size:clamp(54px,18vw,82px)!important;
    text-align:center!important;
    line-height:1!important;
    white-space:nowrap;
  }
  .speaker-mobile-premium .speaker-seconds{
    text-align:center;
    color:#f5c451!important;
    font-weight:1000;
  }
  .speaker-mobile-premium .speaker-stats-row{
    display:grid!important;
    grid-template-columns:1fr!important;
    gap:8px!important;
  }

  /* File attente */
  .speaker-mobile-premium .speaker-queue-full{
    max-height:58vh!important;
    overflow:auto!important;
    -webkit-overflow-scrolling:touch;
  }
  .speaker-mobile-premium .speaker-queue-full button,
  .speaker-mobile-premium .speaker-rider-list button{
    min-height:62px!important;
    border-radius:14px!important;
    padding:12px!important;
    text-align:left!important;
    background:rgba(255,255,255,.055);
    border:1px solid rgba(255,255,255,.09);
  }
  .speaker-mobile-premium .speaker-queue-full button.selected,
  .speaker-mobile-premium .speaker-rider-list button.selected{
    border-color:#f5c451!important;
    background:rgba(245,196,81,.12)!important;
  }

  /* Tableaux compact */
  .speaker-mobile-premium .table-wrap{
    max-height:52vh!important;
    overflow:auto!important;
  }
  .speaker-mobile-premium .speaker-table{
    min-width:620px!important;
    font-size:14px!important;
  }

  /* Barre bas mobile */
  .speaker-mobile-bottom{
    position:fixed;
    left:0;
    right:0;
    bottom:0;
    z-index:80;
    display:grid!important;
    grid-template-columns:repeat(4,1fr);
    gap:0;
    padding:8px 8px calc(8px + env(safe-area-inset-bottom));
    background:rgba(6,17,27,.98);
    border-top:1px solid rgba(245,196,81,.30);
    box-shadow:0 -14px 32px rgba(0,0,0,.35);
  }
  .speaker-mobile-bottom a{
    color:#fff;
    text-decoration:none;
    display:grid;
    place-items:center;
    gap:3px;
    font-size:20px;
    min-height:54px;
    border-radius:14px;
  }
  .speaker-mobile-bottom a:hover,
  .speaker-mobile-bottom a:focus{
    background:rgba(245,196,81,.12);
  }
  .speaker-mobile-bottom span{
    font-size:11px;
    font-weight:1000;
    text-transform:uppercase;
  }
}

@media(min-width:761px){
  .speaker-mobile-bottom{display:none!important;}
}

/* V106 - Espace Chef de piste */
.private-cyan{border:2px solid rgba(34,211,238,.82)!important}
.private-cyan h2{color:#67e8f9!important}
.private-cyan .private-icon{background:linear-gradient(145deg,#67e8f9,#0e7490)!important}
.private-cyan li::before{background:#67e8f9!important}
.private-btn-cyan{background:#22d3ee;color:#07111b!important}

.course-body{
  background:radial-gradient(circle at 85% 10%,rgba(34,211,238,.12),transparent 26%),linear-gradient(135deg,#07111c,#0b1d31 55%,#06101b);
}
.course-page{max-width:1800px;margin:0 auto;padding:18px;}
.course-hero{
  display:flex;justify-content:space-between;gap:16px;align-items:center;
  padding:24px;border:1px solid rgba(34,211,238,.45);border-radius:22px;
  background:linear-gradient(120deg,rgba(8,25,38,.98),rgba(13,36,55,.92));
}
.course-hero span{color:#67e8f9;text-transform:uppercase;font-weight:1000;letter-spacing:.12em}
.course-hero h1{font-size:clamp(40px,5vw,74px);margin:8px 0}
.course-hero p{margin:0;color:#dbe6f2}
.course-actions-top{display:flex;gap:10px;flex-wrap:wrap}
.course-actions-top button{min-height:48px;border-radius:12px;font-weight:1000}
.course-layout{display:grid;grid-template-columns:330px 1fr;gap:16px;margin-top:16px}
.course-panel,.course-canvas-card,.course-notes{
  padding:18px;border-radius:20px;background:linear-gradient(180deg,rgba(8,25,38,.98),rgba(4,18,29,.98));
  border:1px solid rgba(34,211,238,.38);
}
.course-panel{display:grid;gap:12px;align-content:start}
.course-panel h2{margin:8px 0 0;color:#67e8f9}
.course-panel label{display:grid;gap:6px;color:#f5c451;font-weight:1000}
.course-panel input,.course-panel select,.course-notes textarea{
  min-height:44px;border-radius:12px;border:1px solid rgba(255,255,255,.14);
  background:#07131f;color:#fff;padding:9px 12px;
}
.course-tool-grid{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.course-tool-grid button,.course-selected button{min-height:46px;border-radius:12px;font-weight:1000}
.course-selected{display:grid;gap:10px}
.course-canvas-head{display:flex;justify-content:space-between;gap:10px;align-items:center}
.course-canvas-head h2{margin:0;color:#fff}
.course-canvas-head span{color:#67e8f9;font-weight:1000}
.course-arena{
  position:relative;height:720px;min-height:520px;margin-top:14px;border-radius:20px;overflow:hidden;
  background:
    linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px),
    radial-gradient(circle at 50% 50%,rgba(52,209,109,.14),transparent 60%),
    #12321d;
  background-size:42px 42px,42px 42px,100% 100%,100% 100%;
  border:4px solid #7a4b20;
}
.course-obstacle{
  position:absolute;transform:translate(-50%,-50%);width:88px;min-height:58px;
  display:grid;place-items:center;text-align:center;gap:2px;cursor:grab;user-select:none;
  border-radius:14px;border:2px solid rgba(255,255,255,.75);
  background:rgba(8,25,38,.92);box-shadow:0 10px 22px rgba(0,0,0,.35);
}
.course-obstacle strong{font-size:24px;color:#f5c451}
.course-obstacle span{font-size:11px;color:#fff;font-weight:1000}
.course-obstacle.oxer{border-color:#f59e0b}
.course-obstacle.double{border-color:#a78bfa}
.course-obstacle.triple{border-color:#f472b6}
.course-obstacle.start{border-color:#22c55e;background:rgba(20,83,45,.92)}
.course-obstacle.finish{border-color:#ef4444;background:rgba(127,29,29,.92)}
.course-obstacle.selected{outline:4px solid #67e8f9}
.course-notes textarea{width:100%;min-height:120px}
@media(max-width:1100px){
  .course-layout{grid-template-columns:1fr}
  .course-hero{display:grid}
}
@media(max-width:760px){
  .course-page{padding:10px}
  .course-hero{padding:16px;border-radius:18px}
  .course-actions-top{display:grid;grid-template-columns:1fr;width:100%}
  .course-tool-grid{grid-template-columns:1fr 1fr}
  .course-arena{height:540px;min-height:540px}
  .course-obstacle{width:76px;min-height:52px}
}
@media print{
  body *{visibility:hidden!important}
  .course-canvas-card,.course-canvas-card *,.course-notes,.course-notes *{visibility:visible!important}
  .course-canvas-card{position:absolute;left:0;top:0;width:100%;border:none!important}
  .course-arena{height:700px!important}
}

/* V107 - Chef de piste : QR, fond blanc, carrière en mètres, distances & foulées */
.course-qr-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:48px;
  padding:12px 16px;
  border-radius:12px;
  background:#22d3ee;
  color:#07111b!important;
  text-decoration:none;
  font-weight:1000;
}
.course-dimensions{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:8px;
}
.course-arena{
  background:
    linear-gradient(rgba(0,0,0,.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,0,0,.08) 1px, transparent 1px),
    #ffffff!important;
  background-size:42px 42px,42px 42px,100% 100%!important;
  border:4px solid #111827!important;
}
.course-meter-label{
  position:absolute;
  z-index:2;
  color:#111827;
  background:rgba(255,255,255,.88);
  border:1px solid rgba(0,0,0,.18);
  border-radius:999px;
  padding:6px 10px;
  font-weight:1000;
  pointer-events:none;
}
.course-meter-label.width{left:50%;top:8px;transform:translateX(-50%);}
.course-meter-label.length{right:8px;top:50%;transform:translateY(-50%) rotate(90deg);}
.course-obstacle{
  background:#ffffff!important;
  color:#111827!important;
  border:3px solid #111827!important;
}
.course-obstacle strong{color:#111827!important}
.course-obstacle span{color:#111827!important}
.course-obstacle.oxer{border-color:#f59e0b!important}
.course-obstacle.double{border-color:#7c3aed!important}
.course-obstacle.triple{border-color:#db2777!important}
.course-obstacle.start{border-color:#16a34a!important;background:#dcfce7!important}
.course-obstacle.finish{border-color:#dc2626!important;background:#fee2e2!important}
.course-obstacle-delete{
  position:absolute;
  right:-10px;
  top:-10px;
  width:26px;
  height:26px;
  min-height:26px!important;
  padding:0!important;
  border-radius:50%;
  border:2px solid #fff;
  background:#dc2626;
  color:#fff;
  font-weight:1000;
  line-height:1;
}
.course-calc{
  margin-top:16px;
  padding:18px;
  border-radius:20px;
  background:linear-gradient(180deg,rgba(8,25,38,.98),rgba(4,18,29,.98));
  border:1px solid rgba(34,211,238,.38);
}
.course-calc h2{margin-top:0;color:#67e8f9}
.course-calc-grid{
  display:grid;
  grid-template-columns:repeat(6,minmax(130px,1fr));
  gap:10px;
  align-items:end;
}
.course-calc-grid label{
  display:grid;
  gap:6px;
  color:#f5c451;
  font-weight:1000;
}
.course-calc-grid input,
.course-calc-grid select{
  min-height:44px;
  border-radius:12px;
  border:1px solid rgba(255,255,255,.14);
  background:#07131f;
  color:#fff;
  padding:9px 12px;
}
.line-calc-result{
  margin-top:12px;
  padding:14px;
  border-radius:14px;
  background:rgba(34,211,238,.10);
  border:1px solid rgba(34,211,238,.30);
  color:#e8fbff;
  line-height:1.5;
}
.line-calc-result b{color:#f5c451}
@media(max-width:1200px){
  .course-calc-grid{grid-template-columns:repeat(2,1fr);}
}
@media(max-width:760px){
  .course-dimensions{grid-template-columns:1fr;}
  .course-calc-grid{grid-template-columns:1fr;}
  .course-obstacle-delete{
    width:32px;
    height:32px;
    right:-12px;
    top:-12px;
  }
}
@media print{
  .course-arena{
    background:#fff!important;
    border:3px solid #111!important;
  }
  .course-obstacle,.course-obstacle *{color:#111!important}
}


/* V108 CLEAN - Chef de piste : lignes départ / intermédiaire / arrivée posables */
.course-arena {
  position: relative;
  min-height: 620px;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(10,30,50,.06) 1px, transparent 1px),
    linear-gradient(0deg, rgba(10,30,50,.06) 1px, transparent 1px),
    #fafafa !important;
  background-size: 32px 32px, 32px 32px, 100% 100% !important;
}
.course-tool-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.course-tool-grid button[data-add="middle"] {
  grid-column: 1 / -1;
  border-color: rgba(124,58,237,.55);
}
.course-obstacle.course-line-item {
  width: 170px !important;
  height: 22px !important;
  min-width: 170px;
  padding: 0 !important;
  border: none !important;
  border-radius: 999px !important;
  background: transparent !important;
  box-shadow: none !important;
  cursor: grab;
  transform-origin: center center;
}
.course-obstacle.course-line-item:active {
  cursor: grabbing;
}
.course-obstacle.course-line-item strong {
  position: absolute;
  left: 50%;
  top: -34px;
  transform: translateX(-50%);
  white-space: nowrap;
  font-size: 13px;
  line-height: 1;
  background: rgba(7,19,34,.94);
  color: #fff;
  padding: 6px 11px;
  border-radius: 999px;
  z-index: 3;
  box-shadow: 0 5px 16px rgba(0,0,0,.28);
}
.course-obstacle.course-line-item::before {
  content: "";
  position: absolute;
  left: 8px;
  right: 8px;
  top: 9px;
  height: 4px;
  border-radius: 999px;
}
.course-obstacle.course-line-item::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 11px;
  width: 210px;
  height: 1px;
  transform: translateX(-50%);
  opacity: .35;
}
.course-obstacle.course-line-item.start::before {
  background: #ff3434;
  box-shadow: -22px 0 0 #ff3434, 22px 0 0 #ff3434;
}
.course-obstacle.course-line-item.start::after {
  border-top: 2px dashed #ff3434;
}
.course-obstacle.course-line-item.middle::before {
  left: -40px;
  right: -40px;
  height: 3px;
  background: repeating-linear-gradient(90deg, #7c3cff 0 18px, transparent 18px 32px);
}
.course-obstacle.course-line-item.middle::after {
  width: 340px;
  border-top: 2px dashed rgba(124,58,237,.72);
}
.course-obstacle.course-line-item.finish::before {
  height: 10px;
  top: 6px;
  background: repeating-linear-gradient(90deg, #111 0 10px, #fff 10px 20px);
  border: 1px solid #111;
  box-shadow: -18px 0 0 rgba(17,17,17,.9), 18px 0 0 rgba(17,17,17,.9);
}
.course-obstacle.course-line-item.finish::after {
  border-top: 2px dashed #111;
}
.course-obstacle.course-line-item.selected {
  outline: 4px solid rgba(245,196,81,.65) !important;
  outline-offset: 10px;
}
#courseRotateSelected {
  background: linear-gradient(180deg,#eef5ff,#d9e7f8);
  color: #061320;
  font-weight: 900;
}
@media(max-width: 1200px){
  .course-arena { min-height: 430px; }
}


/* V109 - Chef de piste pro clair façon plan de parcours */
.course-builder-body{
  margin:0;
  min-height:100vh;
  display:grid;
  grid-template-columns:132px 1fr;
  background:#f5f7fb;
  color:#111827;
  font-family:Inter,Arial,Helvetica,sans-serif;
}
.course-sidebar{
  position:sticky;top:0;height:100vh;
  background:linear-gradient(180deg,#061b2a,#020b14);
  color:#fff;
  display:flex;flex-direction:column;align-items:center;
  padding:18px 0;
  box-shadow:12px 0 30px rgba(2,11,20,.18);
}
.course-side-logo img{width:88px;margin-bottom:20px}
.course-sidebar nav{display:flex;flex-direction:column;width:100%;gap:4px}
.course-sidebar nav a,.course-side-logout{
  width:100%;min-height:74px;padding:9px 10px;
  display:flex;flex-direction:column;align-items:center;justify-content:center;gap:7px;
  color:#fff;text-decoration:none;font-weight:900;font-size:13px;text-align:center;
  border:0;background:transparent;cursor:pointer;
}
.course-sidebar nav a:first-letter,.course-side-logout:first-letter{font-size:24px}
.course-sidebar nav a.active{
  background:linear-gradient(180deg,#23a344,#138432);
  box-shadow:inset 4px 0 0 #55e07a;
}
.course-side-logout{margin-top:auto;color:#ff5555}
.course-builder{padding:20px 24px 26px;overflow-x:hidden}
.course-builder-top{
  display:grid;grid-template-columns:1fr 360px auto;gap:18px;align-items:center;
  margin-bottom:16px;
}
.course-builder-top h1{margin:0;font-size:26px;color:#111827}
.course-plan-select{
  position:relative;display:flex;flex-direction:column;font-size:12px;color:#6b7280;font-weight:800
}
.course-plan-select select,.hidden-select{
  margin-top:5px;padding:12px 16px;border:1px solid #d7dee9;border-radius:9px;background:#fff;
  color:#111827;font-weight:900;min-height:46px;
}
.hidden-select{display:none}
.course-top-actions{display:flex;align-items:center;gap:12px}
.course-top-actions button,.course-dark-btn{
  min-height:46px;padding:0 18px;border-radius:9px;border:1px solid #d7dee9;background:#fff;
  color:#111827;font-weight:900;text-decoration:none;display:inline-flex;align-items:center;justify-content:center;cursor:pointer;
}
.course-dark-btn{background:#071322;color:#fff;border-color:#071322}
.course-saved{color:#0f9f4b;font-weight:900}
.course-control-grid{
  display:grid;grid-template-columns:340px 1fr 260px 300px;gap:14px;margin-bottom:16px;
}
.course-white-card{
  background:#fff;border:1px solid #dce3ee;border-radius:8px;padding:18px;
  box-shadow:0 2px 8px rgba(15,23,42,.04);
}
.course-white-card h2{text-transform:uppercase;font-size:14px;margin:0 0 14px;color:#111827;letter-spacing:.02em}
.dimensions-row{display:flex;align-items:center;gap:10px}
.dimensions-row input{width:70px;text-align:center;padding:13px;border:1px solid #d7dee9;border-radius:7px;font-weight:900}
.dimensions-row button,.course-tool-row button,.actions-card button,.line-card button,.params-card button,.selected-editor button{
  padding:12px 16px;border-radius:7px;border:1px solid #d7dee9;background:#fff;font-weight:900;cursor:pointer;
}
.dimensions-row button,.course-tool-row .green,.actions-card .green{background:#1f973e;color:#fff;border-color:#1f973e}
.course-tool-row{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
.course-tool-row .danger{color:#ef1f1f;border-color:#fecaca}
.display-card label{display:block;margin:9px 0;font-size:14px}
.info-card div,.line-card div{display:flex;justify-content:space-between;gap:12px;margin:12px 0;font-size:14px}
.info-card strong,.line-card strong{font-weight:900}
.info-card select{padding:8px 10px;border:1px solid #d7dee9;border-radius:7px}
.course-main-grid{display:grid;grid-template-columns:1fr 300px;gap:16px;align-items:start}
.course-plan-area{position:relative;background:#fff;padding:34px 26px 20px;border-radius:8px;border:1px solid #dce3ee}
.arena-size.top{position:absolute;top:8px;left:50%;transform:translateX(-50%);background:#fff;padding:3px 11px;border-radius:999px;font-weight:900;box-shadow:0 2px 8px rgba(0,0,0,.08)}
.arena-size.left{position:absolute;left:2px;top:50%;transform:translate(-20%,-50%);background:#fff;padding:5px 10px;border-radius:999px;font-weight:900;box-shadow:0 2px 8px rgba(0,0,0,.08)}
.course-arena-pro{
  position:relative;width:100%;aspect-ratio:16/9;min-height:590px;
  border:2px solid #222;background:#fff;overflow:hidden;
  background-image:linear-gradient(90deg,rgba(17,24,39,.035) 1px,transparent 1px),linear-gradient(0deg,rgba(17,24,39,.035) 1px,transparent 1px);
  background-size:32px 32px;
}
.course-route-svg{position:absolute;inset:0;width:100%;height:100%;pointer-events:none;z-index:1}
.course-route-line{stroke:#2563eb;stroke-width:.18;stroke-dasharray:1.2 1;opacity:.65}
.distance-label{fill:#0b4acb;font-size:2.4px;font-weight:800}
.course-obstacle-pro{
  position:absolute;z-index:3;transform-origin:center;cursor:grab;user-select:none;
  min-width:42px;min-height:42px;display:flex;align-items:center;justify-content:center;flex-direction:column;
}
.course-obstacle-pro strong{
  display:flex;align-items:center;justify-content:center;min-width:42px;min-height:42px;
  border-radius:50%;background:#fff;color:#111;border:2px solid #111;font-weight:900;font-size:18px;
}
.course-obstacle-pro.vertical strong::before,.course-obstacle-pro.oxer strong::before,.course-obstacle-pro.double strong::before,.course-obstacle-pro.triple strong::before{
  content:"";position:absolute;width:48px;height:8px;background:#111;border-left:10px solid #148d25;border-right:10px solid #148d25;transform:rotate(90deg);z-index:-1;
}
.course-obstacle-pro.oxer strong::after,.course-obstacle-pro.double strong::after,.course-obstacle-pro.triple strong::after{
  content:"";position:absolute;width:48px;height:8px;background:#111;border-left:10px solid #148d25;border-right:10px solid #148d25;transform:translateY(12px) rotate(90deg);z-index:-1;
}
.course-obstacle-pro.decor strong{border:0;background:transparent;font-size:34px}
.course-obstacle-pro small{margin-top:4px;color:#0b4acb;font-weight:800;font-size:12px}
.course-obstacle-delete{
  position:absolute;top:-18px;right:-18px;border:0;background:#ef4444;color:#fff;border-radius:50%;width:22px;height:22px;font-weight:900;display:none;
}
.course-obstacle-pro.selected .course-obstacle-delete{display:block}
.course-obstacle-pro.selected strong{outline:3px solid #ef4444;outline-offset:4px}
.course-obstacle-pro.line-item{width:170px;height:22px;min-width:170px;box-shadow:none}
.course-obstacle-pro.line-item span{
  position:absolute;left:50%;top:-28px;transform:translateX(-50%);white-space:nowrap;font-size:13px;font-weight:900;color:#111;background:#fff;padding:4px 9px;border-radius:999px;
}
.course-obstacle-pro.line-item::before{content:"";position:absolute;left:0;right:0;top:9px;height:3px;border-radius:999px}
.course-obstacle-pro.line-item.start::before{background:#ff2d2d;box-shadow:-18px 0 0 #ff2d2d,18px 0 0 #ff2d2d}
.course-obstacle-pro.line-item.middle{width:100%;min-width:100%;pointer-events:auto}
.course-obstacle-pro.line-item.middle::before{left:0;right:0;background:repeating-linear-gradient(90deg,#7c3cff 0 20px,transparent 20px 34px)}
.course-obstacle-pro.line-item.middle span{color:#5b21b6}
.course-obstacle-pro.line-item.finish::before{height:8px;top:6px;background:repeating-linear-gradient(90deg,#111 0 9px,#fff 9px 18px);border:1px solid #111}
.course-right-column{display:grid;gap:16px}
.distance-list{display:grid;gap:9px;max-height:440px;overflow:auto}
.distance-list div{display:grid;grid-template-columns:1fr 70px 80px;gap:8px;font-size:14px}
.distance-list span,.distance-list em{text-align:right;font-style:normal;font-weight:900}
.course-bottom-grid{display:grid;grid-template-columns:1.2fr 1fr 1fr 1fr;gap:14px;margin-top:16px}
.legend-card{display:grid;grid-template-columns:1fr 1fr;gap:6px 20px}
.legend-card p{margin:5px 0;font-size:14px;display:flex;align-items:center;gap:10px}
.legend-card i{width:34px;height:8px;display:inline-block;border-radius:999px}
.leg-obstacle{background:#111;border-left:8px solid #148d25;border-right:8px solid #148d25}
.leg-double{background:#111;box-shadow:0 9px 0 #111;border-left:8px solid #148d25;border-right:8px solid #148d25}
.leg-decor::before{content:"🌳";font-style:normal}
.leg-arrow{background:#ef4444}
.leg-route{background:repeating-linear-gradient(90deg,#2563eb 0 8px,transparent 8px 14px)}
.leg-start{background:#ff2d2d}
.leg-middle{background:repeating-linear-gradient(90deg,#7c3cff 0 9px,transparent 9px 16px)}
.params-card label{display:grid;grid-template-columns:1fr 110px 34px;align-items:center;gap:8px;margin:8px 0}
.params-card input,.params-card select,.selected-editor input,.selected-editor select{padding:10px;border:1px solid #d7dee9;border-radius:7px}
.actions-card{display:grid;gap:10px}
.actions-card button{width:100%}
.share-card img{display:block;width:120px;margin:10px auto 0}
.selected-editor{display:flex;gap:12px;align-items:end;margin-top:16px}
.selected-editor h2{margin-right:auto}
.selected-editor label{display:grid;gap:5px;font-weight:800;font-size:13px}
.hidden-notes{display:none}
@media(max-width:1300px){
  .course-builder-body{grid-template-columns:1fr}
  .course-sidebar{position:relative;width:100%;height:auto;flex-direction:row;overflow:auto}
  .course-sidebar nav{flex-direction:row}
  .course-sidebar nav a,.course-side-logout{min-width:120px}
  .course-builder-top,.course-control-grid,.course-main-grid,.course-bottom-grid{grid-template-columns:1fr}
}


/* V110 - Ligne intermédiaire identique départ/arrivée + rotation libre */
.course-obstacle-pro.line-item.middle {
  width: 170px !important;
  min-width: 170px !important;
  pointer-events: auto !important;
}
.course-obstacle-pro.line-item.middle::before {
  left: 0 !important;
  right: 0 !important;
  height: 4px !important;
  background: #7c3cff !important;
  box-shadow: -22px 0 0 #7c3cff, 22px 0 0 #7c3cff;
}
.course-obstacle-pro.line-item.middle::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 11px;
  width: 210px;
  height: 1px;
  transform: translateX(-50%);
  border-top: 2px dashed rgba(124,58,237,.72);
  opacity: .45;
}
.course-obstacle-pro.line-item.middle span {
  color: #5b21b6;
}
.course-obstacle-pro.line-item.selected {
  outline: 4px solid rgba(245,196,81,.75) !important;
  outline-offset: 10px;
}


/* V111 - Obstacles propres + rotation avec poignée */
.course-tool-row {
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
}
.course-obstacle-pro.jump-item {
  width: 76px;
  height: 76px;
  min-width: 76px;
}
.course-obstacle-pro.jump-item .jump-visual {
  position: relative;
  width: 70px;
  height: 54px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.jump-rails {
  position: relative;
  display: grid;
  gap: 7px;
  align-items: center;
  justify-items: center;
}
.jump-rails i {
  display: block;
  width: 54px;
  height: 8px;
  background:
    linear-gradient(90deg,#10872a 0 12%,#111 12% 30%,#fff 30% 42%,#d71920 42% 50%,#fff 50% 62%,#111 62% 88%,#10872a 88%);
  border-radius: 999px;
  box-shadow: 0 1px 2px rgba(0,0,0,.35);
}
.jump-rails.rails-1 { gap: 0; }
.jump-rails.rails-2 { gap: 9px; }
.jump-rails.rails-3 { gap: 7px; }
.course-obstacle-pro.oxer .jump-rails i:nth-child(2) {
  width: 62px;
  transform: translateY(2px);
}
.course-obstacle-pro.double .jump-rails i,
.course-obstacle-pro.triple .jump-rails i {
  width: 58px;
}
.course-obstacle-pro .jump-number {
  position: absolute;
  right: -13px;
  top: -12px;
  min-width: 28px;
  height: 28px;
  padding: 0 6px;
  border-radius: 50%;
  background: #fff;
  color: #111;
  border: 2px solid #111;
  font-size: 15px;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
}
.course-obstacle-pro.decor .jump-visual {
  font-size: 38px;
}
.course-obstacle-pro.decor .jump-number {
  display: none;
}
.course-obstacle-pro small {
  position: absolute;
  top: 62px;
  color: #0b4acb;
  font-weight: 800;
  font-size: 12px;
  white-space: nowrap;
}
.rotate-handle {
  position: absolute;
  left: 50%;
  top: -36px;
  transform: translateX(-50%);
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 3px solid #fff;
  background: #f59e0b;
  color: transparent;
  cursor: grab;
  z-index: 12;
  box-shadow: 0 3px 10px rgba(0,0,0,.35);
  opacity: 0;
}
.course-obstacle-pro.selected .rotate-handle,
.course-obstacle-pro:hover .rotate-handle {
  opacity: 1;
}
.rotate-handle::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 18px;
  width: 2px;
  height: 18px;
  background: #f59e0b;
  transform: translateX(-50%);
}
.course-obstacle-pro.selected .jump-visual,
.course-obstacle-pro.selected .line-bar,
.course-obstacle-pro:hover .jump-visual {
  filter: drop-shadow(0 0 0.35rem rgba(245,158,11,.55));
}
.course-obstacle-pro.line-item {
  width: 150px !important;
  min-width: 150px !important;
  height: 50px !important;
}
.course-obstacle-pro.line-item .line-bar {
  position: absolute;
  left: 0;
  right: 0;
  top: 24px;
  height: 5px;
  border-radius: 999px;
}
.course-obstacle-pro.line-item.start .line-bar {
  background: #ff3434;
  box-shadow: -20px 0 0 #ff3434, 20px 0 0 #ff3434;
}
.course-obstacle-pro.line-item.middle .line-bar {
  background: #7c3cff;
  box-shadow: -20px 0 0 #7c3cff, 20px 0 0 #7c3cff;
}
.course-obstacle-pro.line-item.finish .line-bar {
  height: 10px;
  top: 21px;
  background: repeating-linear-gradient(90deg, #111 0 9px, #fff 9px 18px);
  border: 1px solid #111;
}
.course-obstacle-pro.line-item .line-label {
  position: absolute;
  left: 50%;
  top: -16px;
  transform: translateX(-50%);
  white-space: nowrap;
  background: rgba(255,255,255,.96);
  color: #111;
  border: 1px solid #d7dee9;
  padding: 4px 9px;
  border-radius: 999px;
  font-weight: 900;
  font-size: 12px;
}


/* V112 - Chef de piste LogiChrono clair, logo/couleurs site */
.logichrono-course-theme{
  --lc-blue:#061d33;
  --lc-blue-2:#082b4a;
  --lc-green:#00a651;
  --lc-green-2:#0bc266;
  --lc-gold:#d9a03a;
  --lc-red:#ef2d22;
  --lc-border:#dbe5ef;
  --lc-text:#0c1930;
  --lc-muted:#5b6b82;
  grid-template-columns: 190px 1fr;
  background:linear-gradient(90deg,#f8fbff,#ffffff);
}
.logichrono-course-theme .course-sidebar{
  background:
    linear-gradient(180deg, rgba(6,29,51,.98), rgba(2,12,24,.98)),
    radial-gradient(circle at 50% 80%, rgba(0,166,81,.25), transparent 35%);
  width:190px;
}
.logichrono-course-theme .course-side-logo img{width:150px;max-height:70px;object-fit:contain}
.sidebar-horse-mark{margin-top:auto;margin-bottom:14px;opacity:.75}
.sidebar-horse-mark img{width:145px;filter:drop-shadow(0 15px 25px rgba(0,0,0,.25))}
.logichrono-course-theme .course-sidebar nav a.active{
  background:linear-gradient(90deg,#0b7d3a,#08a84d);
  box-shadow:inset 4px 0 0 #58e28b;
  border-radius:8px;
  margin:0 10px;
  width:calc(100% - 20px);
}
.logichrono-course-theme .course-builder{padding:14px 20px 22px}
.logichrono-course-theme .course-builder-top{
  grid-template-columns: 1fr 360px 180px auto;
  background:#fff;
  border:1px solid var(--lc-border);
  border-radius:10px;
  padding:10px 16px;
  box-shadow:0 6px 24px rgba(6,29,51,.06);
}
.logichrono-course-theme .course-builder-top h1{
  color:var(--lc-text);
  font-size:29px;
  position:relative;
}
.logichrono-course-theme .course-builder-top h1::after{
  content:"";
  position:absolute;
  left:0;bottom:-10px;
  width:34px;height:4px;border-radius:99px;background:var(--lc-green);
}
.logichrono-course-theme .course-dark-btn{
  background:linear-gradient(180deg,#061d33,#020b14);
}
.logichrono-course-theme .course-saved{color:var(--lc-green);font-weight:900}
.logichrono-course-theme .course-control-grid{
  grid-template-columns: 285px 1fr 350px;
  gap:14px;
  margin-top:14px;
}
.logichrono-course-theme .course-white-card{
  background:#fff;
  border:1px solid var(--lc-border);
  border-radius:10px;
  box-shadow:0 6px 22px rgba(6,29,51,.05);
}
.course-tip{color:var(--lc-muted);font-size:13px;margin:12px 0 0}
.course-tip.center{text-align:center}
.logichrono-course-theme .course-tool-row{grid-template-columns:repeat(5,minmax(0,1fr)) !important}
.logichrono-course-theme .course-tool-row button.green,
.logichrono-course-theme .dimensions-row button,
.logichrono-course-theme .actions-card .green{
  background:linear-gradient(180deg,#0db457,#07873f);
  border-color:#0b8e43;
}
.logichrono-course-theme .course-tool-row button{
  border-radius:8px;
}
.logichrono-course-theme .course-main-grid{
  grid-template-columns:minmax(820px,1fr) 300px;
  gap:14px;
}
.logichrono-course-theme .course-plan-area{
  background:#fff;
  border:1px solid var(--lc-border);
  padding:34px 16px 16px;
}
.logichrono-course-theme .course-arena-pro{
  min-height:650px;
  border:2px solid #08763d;
  border-radius:6px;
  background:
    linear-gradient(90deg,rgba(6,29,51,.055) 1px,transparent 1px),
    linear-gradient(0deg,rgba(6,29,51,.055) 1px,transparent 1px),
    radial-gradient(circle at 50% 35%,#ffffff,#fbfaf6) !important;
  background-size:22px 22px,22px 22px,100% 100% !important;
}
.logichrono-course-theme .arena-size.top,
.logichrono-course-theme .arena-size.left{
  color:var(--lc-text);
  border:1px solid var(--lc-border);
}
.logichrono-course-theme .course-route-line{
  stroke:#8da0b5;
  stroke-width:.22;
  stroke-dasharray:1.4 1.1;
}
.logichrono-course-theme .distance-label{fill:#005eea;font-size:2.5px}
.logichrono-course-theme .selected-card label{
  display:grid;
  gap:7px;
  margin:10px 0;
  color:var(--lc-text);
  font-weight:800;
  font-size:13px;
}
.logichrono-course-theme .selected-card select,
.logichrono-course-theme .selected-card input{
  padding:11px;
  border-radius:8px;
  border:1px solid var(--lc-border);
}
.selected-preview{
  min-height:95px;
  display:flex;
  align-items:center;
  justify-content:center;
  flex-direction:column;
  gap:10px;
  border-bottom:1px solid var(--lc-border);
  margin-bottom:12px;
  color:var(--lc-text);
}
.preview-mini{transform:scale(.9)}
.small-danger{
  float:right;
  border:1px solid #fecaca;
  color:#ef2d22;
  background:#fff;
  border-radius:8px;
  padding:7px 9px;
}
.rotation-quick{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:8px;
  margin:10px 0;
}
.rotation-quick button{
  padding:10px;
  border:1px solid var(--lc-border);
  border-radius:8px;
  background:#f8fafc;
  font-weight:900;
}
.line-dot{
  display:inline-block;
  width:13px;height:13px;border-radius:3px;
  margin-right:8px;vertical-align:middle;
}
.line-dot.start,.line-dot.finish{background:#0aa34f}
.line-dot.middle{background:#1267d8}
.line-card div button{
  float:right;border:0;background:transparent;cursor:pointer
}
.obstacle-library{
  margin-top:14px;
  background:linear-gradient(180deg,#061d33,#082b4a) !important;
  color:#fff;
}
.obstacle-library h2{color:#fff}
.obstacle-types{
  display:grid;
  grid-template-columns:repeat(10,minmax(110px,1fr));
  gap:10px;
}
.obstacle-types button{
  background:rgba(255,255,255,.07);
  border:1px solid rgba(255,255,255,.13);
  color:#fff;
  border-radius:8px;
  padding:10px 8px;
  min-height:132px;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:8px;
  cursor:pointer;
}
.obstacle-types b{font-size:13px}
.obstacle-types small{font-size:11px;color:#cbd5e1}
.mini-jump{
  width:62px;height:48px;position:relative;display:block;
}
.mini-jump::before,.mini-jump::after{
  content:"";position:absolute;left:8px;right:8px;height:6px;background:#fff;border-left:8px solid #0eb15d;border-right:8px solid #0eb15d;border-radius:99px
}
.mini-jump::before{top:18px}
.mini-jump.oxer::after,.mini-jump.double::after,.mini-jump.triple::after{top:29px}
.mini-jump.triple{box-shadow:0 22px 0 -16px rgba(255,255,255,.9)}
.mini-jump.vertical_up::before{transform:rotate(6deg)}
.mini-jump.vertical_down::before{transform:rotate(-6deg)}
.mini-spa{
  width:64px;height:36px;border-radius:50%;background:linear-gradient(180deg,#40bdf4,#0d74b8);border:4px solid #64748b;display:block;
}
.mini-wall{
  width:64px;height:38px;display:block;background:repeating-linear-gradient(0deg,#a5462c 0 8px,#c96542 8px 16px);border:2px solid #7a2717
}
.mini-house,.mini-tree{font-size:40px}
.course-obstacle-pro.jump-item .jump-visual{transform:scale(1.05)}
.course-obstacle-pro.vertical_up .jump-rails{transform:rotate(8deg)}
.course-obstacle-pro.vertical_down .jump-rails{transform:rotate(-8deg)}
.course-obstacle-pro.spa .jump-visual::before{
  content:"";width:64px;height:32px;border-radius:50%;background:linear-gradient(180deg,#49c6ff,#0d73b7);border:4px solid #64748b;display:block;
}
.course-obstacle-pro.wall .jump-visual::before{
  content:"";width:64px;height:38px;background:repeating-linear-gradient(0deg,#9f3f28 0 8px,#c96643 8px 16px);border:2px solid #74301d;display:block;
}
.course-obstacle-pro.house .jump-visual{font-size:38px}
.course-obstacle-pro.house .jump-visual::before{content:"🏠"}
.course-obstacle-pro.line-item.start .line-bar,
.course-obstacle-pro.line-item.finish .line-bar{background:#0aa34f}
.course-obstacle-pro.line-item.middle .line-bar{background:#1267d8;box-shadow:-20px 0 0 #1267d8,20px 0 0 #1267d8}
.course-obstacle-pro.line-item.finish .line-bar{
  background:repeating-linear-gradient(90deg,#111 0 9px,#fff 9px 18px);
}
.hidden-field{display:none !important}
@media(max-width:1450px){
  .obstacle-types{grid-template-columns:repeat(5,1fr)}
  .logichrono-course-theme .course-main-grid{grid-template-columns:1fr}
}
@media(max-width:1000px){
  .logichrono-course-theme{grid-template-columns:1fr}
  .course-sidebar{position:relative;width:100%;height:auto}
  .logichrono-course-theme .course-builder-top,
  .logichrono-course-theme .course-control-grid{grid-template-columns:1fr}
}


/* V113 - Chef de piste LogiChrono CSO + combinaisons automatiques */
.logichrono-course-theme{
  --lc-blue:#061d33;--lc-blue-2:#082b4a;--lc-green:#00a651;--lc-green-2:#0bc266;--lc-gold:#d9a03a;--lc-red:#ef2d22;--lc-border:#dbe5ef;--lc-text:#0c1930;--lc-muted:#5b6b82;
  grid-template-columns:190px 1fr;background:linear-gradient(90deg,#f8fbff,#fff);
}
.logichrono-course-theme .course-sidebar{background:linear-gradient(180deg,rgba(6,29,51,.98),rgba(2,12,24,.98));width:190px}
.logichrono-course-theme .course-side-logo img{width:150px;max-height:70px;object-fit:contain}.sidebar-horse-mark{margin-top:auto;margin-bottom:14px;opacity:.75}.sidebar-horse-mark img{width:145px}
.logichrono-course-theme .course-sidebar nav a.active{background:linear-gradient(90deg,#0b7d3a,#08a84d);box-shadow:inset 4px 0 0 #58e28b;border-radius:8px;margin:0 10px;width:calc(100% - 20px)}
.logichrono-course-theme .course-builder{padding:14px 20px 22px}
.logichrono-course-theme .course-builder-top{grid-template-columns:1fr 360px 180px auto;background:#fff;border:1px solid var(--lc-border);border-radius:10px;padding:10px 16px;box-shadow:0 6px 24px rgba(6,29,51,.06)}
.logichrono-course-theme .course-builder-top h1{color:var(--lc-text);font-size:29px;position:relative}.logichrono-course-theme .course-builder-top h1::after{content:"";position:absolute;left:0;bottom:-10px;width:34px;height:4px;border-radius:99px;background:var(--lc-green)}
.logichrono-course-theme .course-dark-btn{background:linear-gradient(180deg,#061d33,#020b14)}.logichrono-course-theme .course-saved{color:var(--lc-green);font-weight:900}
.logichrono-course-theme .course-control-grid{grid-template-columns:285px 1fr 350px;gap:14px;margin-top:14px}.logichrono-course-theme .course-white-card{background:#fff;border:1px solid var(--lc-border);border-radius:10px;box-shadow:0 6px 22px rgba(6,29,51,.05)}
.course-tip{color:var(--lc-muted);font-size:13px;margin:12px 0 0}.course-tip.center{text-align:center}.logichrono-course-theme .course-tool-row{grid-template-columns:repeat(5,minmax(0,1fr))!important}
.logichrono-course-theme .course-tool-row button.green,.logichrono-course-theme .dimensions-row button,.logichrono-course-theme .combo-card .green,.logichrono-course-theme .actions-card .green{background:linear-gradient(180deg,#0db457,#07873f);border-color:#0b8e43;color:#fff}
.logichrono-course-theme .course-main-grid{grid-template-columns:minmax(820px,1fr) 310px;gap:14px}.logichrono-course-theme .course-plan-area{background:#fff;border:1px solid var(--lc-border);padding:34px 16px 16px}
.logichrono-course-theme .course-arena-pro{min-height:650px;border:2px solid #08763d;border-radius:6px;background:linear-gradient(90deg,rgba(6,29,51,.055) 1px,transparent 1px),linear-gradient(0deg,rgba(6,29,51,.055) 1px,transparent 1px),radial-gradient(circle at 50% 35%,#fff,#fbfaf6)!important;background-size:22px 22px,22px 22px,100% 100%!important}
.logichrono-course-theme .arena-size.top,.logichrono-course-theme .arena-size.left{color:var(--lc-text);border:1px solid var(--lc-border)}.logichrono-course-theme .course-route-line{stroke:#8da0b5;stroke-width:.22;stroke-dasharray:1.4 1.1}.logichrono-course-theme .distance-label{fill:#005eea;font-size:2.5px}
.logichrono-course-theme .selected-card label,.logichrono-course-theme .combo-card label{display:grid;gap:7px;margin:10px 0;color:var(--lc-text);font-weight:800;font-size:13px}
.logichrono-course-theme .selected-card select,.logichrono-course-theme .selected-card input,.logichrono-course-theme .combo-card select,.logichrono-course-theme .combo-card input{padding:11px;border-radius:8px;border:1px solid var(--lc-border)}
.selected-preview{min-height:95px;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:10px;border-bottom:1px solid var(--lc-border);margin-bottom:12px;color:var(--lc-text)}.preview-mini{transform:scale(.9)}
.small-danger{float:right;border:1px solid #fecaca;color:#ef2d22;background:#fff;border-radius:8px;padding:7px 9px}.combo-card p{font-size:12px;color:var(--lc-muted);margin-top:-4px}.combo-preview{display:flex;align-items:center;justify-content:space-between;background:#061d33;color:#fff;border-radius:10px;padding:14px;margin:10px 0}.combo-preview span{background:#fff;color:#061d33;border-radius:50%;width:34px;height:34px;display:grid;place-items:center;font-weight:900}.combo-preview b{color:#34d399}
.obstacle-library{margin-top:14px;background:linear-gradient(180deg,#061d33,#082b4a)!important;color:#fff}.obstacle-library h2{color:#fff}.obstacle-types{display:grid;grid-template-columns:repeat(14,minmax(96px,1fr));gap:10px}
.obstacle-types button{background:rgba(255,255,255,.07);border:1px solid rgba(255,255,255,.13);color:#fff;border-radius:8px;padding:10px 8px;min-height:132px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;cursor:pointer}.obstacle-types b{font-size:13px}.obstacle-types small{font-size:11px;color:#cbd5e1}
.course-obstacle-pro.jump-item{width:78px;height:78px;min-width:78px}.course-obstacle-pro.jump-item .jump-visual{position:relative;width:72px;height:56px;display:flex;align-items:center;justify-content:center}
.jump-rails{position:relative;display:grid;gap:7px}.jump-rails i{display:block;width:58px;height:8px;background:linear-gradient(90deg,#111 0 16%,#fff 16% 30%,#111 30% 70%,#fff 70% 84%,#111 84%);border-radius:99px;box-shadow:0 1px 2px rgba(0,0,0,.35)}
.jump-rails.red i{background:linear-gradient(90deg,#ef2d22 0 20%,#fff 20% 35%,#ef2d22 35% 65%,#fff 65% 80%,#ef2d22 80%)}.jump-rails.blue i{background:linear-gradient(90deg,#1267d8 0 20%,#fff 20% 35%,#1267d8 35% 65%,#fff 65% 80%,#1267d8 80%)}.jump-rails.green i{background:linear-gradient(90deg,#0aa34f 0 20%,#fff 20% 35%,#0aa34f 35% 65%,#fff 65% 80%,#0aa34f 80%)}.jump-rails.gold i{background:linear-gradient(90deg,#d9a03a 0 20%,#111 20% 35%,#d9a03a 35% 65%,#111 65% 80%,#d9a03a 80%)}
.jump-rails.rails-2{gap:10px}.jump-rails.rails-3{gap:6px}.course-obstacle-pro.oxer_ascending .jump-rails{transform:rotate(5deg)}.course-obstacle-pro.oxer_descending .jump-rails{transform:rotate(-5deg)}.course-obstacle-pro.oxer_fan .jump-rails{transform:skewY(-10deg)}
.course-obstacle-pro .jump-number{position:absolute;right:-13px;top:-12px;min-width:30px;height:30px;padding:0 7px;border-radius:999px;background:#fff;color:#111;border:1px solid #cbd5e1;font-size:15px;font-weight:900;display:flex;align-items:center;justify-content:center;box-shadow:0 4px 12px rgba(0,0,0,.12)}
.spa-visual,.water-visual{width:66px;height:34px;border-radius:50%;background:linear-gradient(180deg,#46c7ff,#0d73b7);border:4px solid #64748b;display:block}.wall-visual{width:66px;height:38px;background:repeating-linear-gradient(0deg,#9f3f28 0 8px,#c96643 8px 16px);border:2px solid #74301d;display:block}.hedge-visual{width:66px;height:28px;background:#1e7c2d;border-radius:14px;box-shadow:inset 0 -6px 0 #135c20;display:block}.bidet-visual{width:54px;height:24px;background:#111;border-left:12px solid #999;border-right:12px solid #999;display:block}.decor-tree{font-size:38px}
.rotate-handle{position:absolute;left:50%;top:-36px;transform:translateX(-50%);width:20px;height:20px;border-radius:50%;border:3px solid #fff;background:#f59e0b;color:transparent;cursor:grab;z-index:12;box-shadow:0 3px 10px rgba(0,0,0,.35);opacity:0}.course-obstacle-pro.selected .rotate-handle,.course-obstacle-pro:hover .rotate-handle{opacity:1}.rotate-handle::after{content:"";position:absolute;left:50%;top:18px;width:2px;height:18px;background:#f59e0b;transform:translateX(-50%)}
.course-obstacle-delete{position:absolute;top:-18px;right:-18px;border:0;background:#ef4444;color:#fff;border-radius:50%;width:22px;height:22px;font-weight:900;display:none;z-index:13}.course-obstacle-pro.selected .course-obstacle-delete{display:block}
.course-obstacle-pro.line-item{width:150px!important;min-width:150px!important;height:50px!important}.course-obstacle-pro.line-item .line-bar{position:absolute;left:0;right:0;top:24px;height:5px;border-radius:999px}.course-obstacle-pro.line-item.start .line-bar,.course-obstacle-pro.line-item.finish .line-bar{background:#0aa34f;box-shadow:-20px 0 0 #0aa34f,20px 0 0 #0aa34f}.course-obstacle-pro.line-item.middle .line-bar{background:#1267d8;box-shadow:-20px 0 0 #1267d8,20px 0 0 #1267d8}.course-obstacle-pro.line-item.finish .line-bar{background:repeating-linear-gradient(90deg,#111 0 9px,#fff 9px 18px)}
.course-obstacle-pro.line-item .line-label{position:absolute;left:50%;top:-16px;transform:translateX(-50%);white-space:nowrap;background:rgba(255,255,255,.96);color:#111;border:1px solid #d7dee9;padding:4px 9px;border-radius:999px;font-weight:900;font-size:12px}
.mini-jump{width:62px;height:48px;position:relative;display:block}.mini-jump::before,.mini-jump::after{content:"";position:absolute;left:8px;right:8px;height:6px;background:#fff;border-left:8px solid #0eb15d;border-right:8px solid #0eb15d;border-radius:99px}.mini-jump::before{top:18px}.mini-jump.oxer_square::after,.mini-jump.oxer_ascending::after,.mini-jump.oxer_descending::after,.mini-jump.oxer_fan::after,.mini-jump.double::after,.mini-jump.triple::after{top:29px}.mini-jump.oxer_ascending{transform:rotate(4deg)}.mini-jump.oxer_descending{transform:rotate(-4deg)}.mini-jump.oxer_fan{transform:skewY(-8deg)}
.mini-spa,.mini-water{width:64px;height:36px;border-radius:50%;background:linear-gradient(180deg,#40bdf4,#0d74b8);border:4px solid #64748b;display:block}.mini-wall{width:64px;height:38px;display:block;background:repeating-linear-gradient(0deg,#a5462c 0 8px,#c96542 8px 16px);border:2px solid #7a2717}.mini-hedge{width:64px;height:30px;background:#176c25;border-radius:14px;display:block}.mini-bidet{width:54px;height:24px;background:#111;border-left:12px solid #999;border-right:12px solid #999;display:block}.mini-tree{font-size:40px}
.hidden-field{display:none!important}
@media(max-width:1600px){.obstacle-types{grid-template-columns:repeat(7,1fr)}.logichrono-course-theme .course-main-grid{grid-template-columns:1fr 310px}}
@media(max-width:1100px){.logichrono-course-theme{grid-template-columns:1fr}.course-sidebar{position:relative;width:100%;height:auto}.logichrono-course-theme .course-builder-top,.logichrono-course-theme .course-control-grid,.logichrono-course-theme .course-main-grid{grid-template-columns:1fr}.obstacle-types{grid-template-columns:repeat(3,1fr)}}


/* V114 - Obstacles CSO propres + interface proche maquette */
.logichrono-course-theme .course-main-grid{grid-template-columns:minmax(830px,1fr) 315px}
.logichrono-course-theme .course-arena-pro{
  min-height:610px;
  border:2px solid #0b1b2e;
  background:
    linear-gradient(90deg,rgba(6,29,51,.045) 1px,transparent 1px),
    linear-gradient(0deg,rgba(6,29,51,.045) 1px,transparent 1px),
    radial-gradient(circle at 50% 35%,#fffaf0,#f7efe2)!important;
  background-size:22px 22px,22px 22px,100% 100%!important;
}
.course-bottom-workspace{
  display:grid;
  grid-template-columns:1.3fr .9fr .65fr;
  gap:14px;
  margin-top:14px;
}
.combo-wide .combo-grid{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:10px;
}
.combo-wide .combo-grid label{display:grid;gap:6px;font-size:12px;font-weight:900;color:#0c1930}
.combo-wide select,.combo-wide input{padding:10px;border:1px solid #dbe5ef;border-radius:8px}
.course-obstacle-list{
  max-height:165px;
  overflow:auto;
  display:grid;
  gap:6px;
  font-size:12px;
}
.course-obstacle-list-row{
  display:grid;
  grid-template-columns:40px 1fr 58px 58px 70px;
  gap:6px;
  align-items:center;
  padding:7px 8px;
  border:1px solid #e5edf5;
  border-radius:8px;
  cursor:pointer;
}
.course-obstacle-list-row:hover{background:#eef8f2}
.course-obstacle-list-row b{background:#fff;border:1px solid #dbe5ef;border-radius:6px;text-align:center;padding:3px}
.bottom-display label{display:block;margin:9px 0}
.obstacle-library-v114{
  background:#fff!important;
  color:#0c1930!important;
}
.obstacle-library-v114 h2{
  color:#0c1930!important;
  margin-top:16px;
  border-bottom:1px solid #e5edf5;
  padding-bottom:8px;
}
.obstacle-library-v114 .obstacle-types{
  grid-template-columns:repeat(auto-fit,minmax(92px,1fr));
}
.obstacle-library-v114 .obstacle-types button{
  min-height:104px;
  background:#fff;
  color:#0c1930;
  border:1px solid #dbe5ef;
}
.obstacle-library-v114 .obstacle-types button:hover{
  border-color:#00a651;
  box-shadow:0 6px 20px rgba(0,166,81,.12);
  transform:translateY(-1px);
}
.course-obstacle-pro.jump-item{width:82px;height:70px;min-width:82px}
.course-obstacle-pro.jump-item .jump-visual{width:82px;height:58px}
.jump-v114{
  position:relative;
  display:grid;
  gap:7px;
  width:72px;
  justify-items:center;
}
.jump-v114 i{
  display:block;
  width:62px;
  height:7px;
  border-radius:999px;
  background:linear-gradient(90deg,#151515 0 18%,#fff 18% 32%,#151515 32% 68%,#fff 68% 82%,#151515 82%);
  box-shadow:
    -24px 0 0 -1px #111,
    24px 0 0 -1px #111,
    0 2px 3px rgba(0,0,0,.22);
  position:relative;
}
.jump-v114 i::before,.jump-v114 i::after{
  content:"";
  position:absolute;
  top:-9px;
  width:7px;
  height:25px;
  border-radius:4px;
  background:#111;
}
.jump-v114 i::before{left:-7px}
.jump-v114 i::after{right:-7px}
.jump-v114.red i{background:linear-gradient(90deg,#ef2d22 0 22%,#fff 22% 36%,#ef2d22 36% 64%,#fff 64% 78%,#ef2d22 78%)}
.jump-v114.blue i{background:linear-gradient(90deg,#1267d8 0 22%,#fff 22% 36%,#1267d8 36% 64%,#fff 64% 78%,#1267d8 78%)}
.jump-v114.green i{background:linear-gradient(90deg,#0aa34f 0 22%,#fff 22% 36%,#0aa34f 36% 64%,#fff 64% 78%,#0aa34f 78%)}
.jump-v114.gold i{background:linear-gradient(90deg,#d9a03a 0 22%,#111 22% 36%,#d9a03a 36% 64%,#111 64% 78%,#d9a03a 78%)}
.jump-v114.rails-1{margin-top:20px}
.jump-v114.rails-2{gap:13px;margin-top:10px}
.jump-v114.rails-3{gap:8px;margin-top:4px}
.jump-v114.oxer_ascending{transform:rotate(7deg)}
.jump-v114.oxer_descending{transform:rotate(-7deg)}
.jump-v114.oxer_fan{transform:skewY(-10deg)}
.plank-visual-v114{
  width:68px;height:20px;background:#b67b35;border:2px solid #5d3418;display:block;box-shadow:-24px 0 0 -4px #111,24px 0 0 -4px #111;
}
.wall-visual-v114{
  width:72px;height:42px;background:repeating-linear-gradient(0deg,#973a24 0 7px,#c4603e 7px 14px);border:2px solid #74301d;display:block;
}
.spa-visual-v114,.water-visual-v114{
  width:72px;height:38px;border-radius:50%;background:linear-gradient(180deg,#56d0ff,#0878bf);border:5px solid #64748b;display:block;box-shadow:inset 0 4px 10px rgba(255,255,255,.45);
}
.hedge-visual-v114{
  width:74px;height:34px;border-radius:17px;background:radial-gradient(circle at 20% 50%,#29833b 0 20%,transparent 22%),radial-gradient(circle at 50% 45%,#32a34a 0 24%,transparent 26%),radial-gradient(circle at 75% 55%,#1e6e31 0 22%,transparent 24%),#1f7a33;display:block;
}
.bidet-visual-v114{
  width:56px;height:26px;background:#111;border-left:13px solid #aaa;border-right:13px solid #aaa;display:block;border-radius:6px;
}
.decor-tree-v114,.decor-bush-v114,.decor-flowers-v114{font-size:38px}
.sponsor-visual-v114{
  display:grid;place-items:center;width:78px;height:26px;background:#1267d8;color:white;border:2px solid #fff;font-size:10px;font-weight:900;
}
.tribune-visual-v114{font-size:40px;color:#64748b}
.course-obstacle-pro .jump-number{
  right:-12px;top:-14px;
  background:#fff;
  min-width:32px;height:32px;
  border:1px solid #cbd5e1;
  box-shadow:0 4px 14px rgba(0,0,0,.18);
}
.mini-jump-v114{width:62px;height:48px;display:grid;gap:7px;align-items:center;justify-items:center}
.mini-jump-v114::before,.mini-jump-v114::after{
  content:"";
  display:block;
  width:48px;height:6px;border-radius:999px;
  background:linear-gradient(90deg,#111 0 20%,#fff 20% 35%,#111 35% 65%,#fff 65% 80%,#111 80%);
  box-shadow:-18px 0 0 -4px #111,18px 0 0 -4px #111;
}
.mini-jump-v114.vertical::after,.mini-jump-v114.vertical_fill::after{display:none}
.mini-jump-v114.oxer_ascending{transform:rotate(5deg)}
.mini-jump-v114.oxer_descending{transform:rotate(-5deg)}
.mini-jump-v114.oxer_fan{transform:skewY(-8deg)}
.mini-plank-v114{width:54px;height:16px;background:#b67b35;border:2px solid #5d3418;display:block}
.mini-wall-v114{width:58px;height:34px;display:block;background:repeating-linear-gradient(0deg,#a5462c 0 7px,#c96542 7px 14px);border:2px solid #7a2717}
.mini-hedge-v114{width:58px;height:28px;border-radius:15px;background:#1e7c2d;display:block}
.mini-bidet-v114{width:48px;height:22px;background:#111;border-left:11px solid #999;border-right:11px solid #999;display:block}
.mini-spa-v114,.mini-water-v114{width:58px;height:30px;border-radius:50%;background:linear-gradient(180deg,#40bdf4,#0d74b8);border:4px solid #64748b;display:block}
.mini-line-curve-v114,.mini-line-broken-v114{width:60px;height:35px;border-top:3px dashed #64748b;display:block;border-radius:50%}
.mini-line-broken-v114{border-radius:0;transform:skewX(-20deg)}
@media(max-width:1300px){.course-bottom-workspace{grid-template-columns:1fr}.obstacle-library-v114 .obstacle-types{grid-template-columns:repeat(4,1fr)}}


/* V115 - Interface combinaisons exactement comme maquette */
.combo-v115-layout{
  display:grid;
  grid-template-columns:1fr 1fr .75fr;
  gap:14px;
  margin-top:14px;
}
.combo-v115-card,.combo-help-v115,.combo-list-v115{
  background:#fff!important;
  color:#0c1930!important;
}
.combo-v115-tabs{
  display:flex;
  border-bottom:1px solid #dbe5ef;
  gap:18px;
  margin:-4px 0 14px;
}
.combo-v115-tabs button{
  border:0;
  background:transparent;
  color:#5b6b82;
  font-weight:900;
  padding:0 0 10px;
  cursor:pointer;
}
.combo-v115-tabs button.active{
  color:#061d33;
  border-bottom:3px solid #1267d8;
}
.combo-v115-form{
  display:grid;
  grid-template-columns:1fr 1fr 1fr 1fr;
  gap:12px;
  align-items:end;
}
.combo-v115-form label{
  display:grid;
  gap:8px;
  text-transform:uppercase;
  font-size:11px;
  font-weight:900;
  color:#0c1930;
}
.combo-v115-form select,.combo-v115-form input{
  height:42px;
  border:1px solid #dbe5ef;
  border-radius:8px;
  padding:0 10px;
  font-weight:900;
  color:#061d33;
  background:#fff;
}
.combo-type-switch{
  display:grid;
  grid-template-columns:1fr 1fr;
  border:1px solid #dbe5ef;
  border-radius:8px;
  overflow:hidden;
}
.combo-type-switch button{
  border:0;
  height:42px;
  background:#fff;
  font-weight:900;
  color:#061d33;
  cursor:pointer;
}
.combo-type-switch button.active{
  background:#061d33;
  color:#fff;
}
.combo-create-btn{
  margin-top:14px;
  width:210px;
  height:44px;
  border-radius:8px;
  font-weight:900;
}
.combo-help-v115 h2,.combo-list-v115 h2{
  font-size:13px;
  text-transform:uppercase;
  margin-bottom:14px;
}
.combo-help-steps{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:8px;
  font-size:11px;
  color:#0c1930;
  font-weight:800;
}
.combo-diagram{
  margin-top:15px;
  display:grid;
  grid-template-columns:60px 1fr 60px 75px;
  align-items:center;
  gap:10px;
}
.combo-mini-obstacle{
  width:42px;
  height:64px;
  border-left:8px solid #111;
  border-right:8px solid #111;
  position:relative;
  display:grid;
  place-items:start center;
  font-weight:900;
  color:#061d33;
}
.combo-mini-obstacle::after{
  content:"";
  position:absolute;
  left:-8px;
  right:-8px;
  top:31px;
  height:7px;
  background:#111;
  border-radius:99px;
}
.combo-distance-line{
  height:70px;
  display:grid;
  place-items:center;
  position:relative;
}
.combo-distance-line::before{
  content:"";
  position:absolute;
  left:0;
  right:0;
  top:36px;
  border-top:2px dashed #1267d8;
}
.combo-distance-line::after{
  content:"";
  position:absolute;
  right:-1px;
  top:31px;
  border-left:8px solid #1267d8;
  border-top:5px solid transparent;
  border-bottom:5px solid transparent;
}
.combo-distance-line b{
  color:#1267d8;
  background:#fff;
  z-index:2;
  padding:2px 8px;
}
.combo-distance-line em{
  margin-top:38px;
  z-index:2;
  font-style:normal;
  color:#061d33;
  font-weight:800;
}
.combo-ghost-obstacle{
  width:54px;
  height:70px;
  border:2px dashed #21a559;
  border-radius:12px;
}
.combo-list-v115 #comboList{
  display:grid;
  gap:8px;
  max-height:156px;
  overflow:auto;
}
.combo-list-row-v115{
  display:grid;
  grid-template-columns:58px 40px 40px 70px 40px 28px 28px;
  align-items:center;
  gap:6px;
  font-size:12px;
  padding:8px;
  border:1px solid #e5edf5;
  border-radius:8px;
}
.combo-list-row-v115 b{
  font-weight:900;
}
.combo-list-row-v115 span{
  text-align:center;
  background:#f8fafc;
  border-radius:6px;
  padding:3px;
  font-weight:900;
}
.combo-list-row-v115 button{
  border:0;
  background:#fff;
  cursor:pointer;
}
#clearCombinations{
  margin-top:12px;
  width:100%;
  height:40px;
  border:1px solid #dbe5ef;
  background:#fff;
  border-radius:8px;
  font-weight:900;
}
@media(max-width:1400px){
  .combo-v115-layout{grid-template-columns:1fr}
}
