/* Panel FLL v2 — CSS du domaine « live » : chrono, annonces, stands, écrans publics, régie / page équipe. */

/* ===== chrono ===== */
/* ---- Chrono : couleurs de phase (identiques v1) -------------------------------- */
:root {
  --ch-idle: #6f8050; --ch-pre: #ffd23f; --ch-lego: #a8e24e; --ch-run: #46e0d0; --ch-end: #ff6b6b;
}
.chrono-screen { --ph: var(--ch-idle); }
.chrono-screen.ph-precount, .cm-clock.ph-precount { --ph: var(--ch-pre); }
.chrono-screen.ph-lego, .cm-clock.ph-lego { --ph: var(--ch-lego); }
.chrono-screen.ph-run, .cm-clock.ph-run { --ph: var(--ch-run); }
.chrono-screen.ph-finished, .cm-clock.ph-finished { --ph: var(--ch-end); }
@keyframes chronoBlink { 50% { opacity: .15; } }
.is-blink .cs-display, .cm-clock.is-blink .cm-display { animation: chronoBlink .5s steps(1) infinite; }

/* ---- Écran public plein écran --------------------------------------------------- */
.chrono-public .screen-main { padding: 0; }
.chrono-public .chrono-screen { min-height: 100vh; display: flex; flex-direction: column; background: var(--screen-bg); color: var(--screen-ink); }
.chrono-public.transparent, .chrono-public.transparent .chrono-screen { background: transparent; }
.cs-head { display: flex; align-items: center; gap: 1rem; padding: 2vh 3vw 0; }
.cs-logo { height: 6vh; min-height: 36px; border-radius: 10px; background: #fff; padding: 2px; }
.cs-comp { font-weight: 900; font-size: clamp(1rem, 2.4vw, 2.2rem); color: var(--brand-bright); line-height: 1.1; }
.cs-sub { font-weight: 700; color: var(--screen-muted); font-size: clamp(.8rem, 1.4vw, 1.3rem); }
.cs-sound { margin-left: auto; background: transparent; color: var(--screen-ink); border: 2px solid var(--screen-muted); border-radius: 12px; padding: .5rem 1rem; font-weight: 800; min-height: 44px; cursor: pointer; }
.cs-sound.is-on { border-color: var(--brand-bright); color: var(--brand-bright); }
.cs-body { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1.5vh; padding: 0 3vw 4vh; }
.cs-phase { color: var(--ph); font-weight: 800; letter-spacing: .3em; text-transform: uppercase; font-size: clamp(1rem, 2.6vw, 2.4rem); }
.chrono-public .cs-display { color: var(--ph); font-weight: 700; line-height: 1; font-size: min(34vw, 60vh); text-shadow: 0 0 60px color-mix(in srgb, var(--ph) 45%, transparent); font-variant-numeric: tabular-nums; }
.chrono-public .ph-precount .cs-display { font-size: min(46vw, 78vh); }
.chrono-public .ph-lego .cs-display { font-size: min(24vw, 50vh); }
.cs-bar { width: min(80vw, 1200px); height: 1.6vh; min-height: 8px; border-radius: 999px; background: rgba(255,255,255,.08); overflow: hidden; }
.cs-bar span { display: block; height: 100%; width: 100%; background: var(--ph); border-radius: inherit; transition: width .1s linear; }

/* ---- Page de contrôle ----------------------------------------------------------- */
.chrono-control { max-width: 820px; margin: 0 auto; }
.cc-timer { background: var(--ink); border-radius: 24px; padding: 1.6rem 1rem 1.3rem; text-align: center; box-shadow: 7px 7px 0 var(--brand-bright); display: flex; flex-direction: column; align-items: center; gap: .4rem; }
.cc-timer .cs-display { color: var(--ph); font-weight: 700; line-height: 1; font-size: clamp(4.5rem, 16vw, 8.5rem); font-variant-numeric: tabular-nums; }
.cc-timer .cs-phase { font-size: .85rem; }
.cc-timer .cs-bar { width: 90%; height: 10px; }
.cc-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 18px; }
.cc-start-form { flex: 1 1 260px; }
.cc-start { width: 100%; min-height: 84px; font-size: 1.6rem; font-weight: 900; letter-spacing: 1px; }
.cc-stop, .cc-sound { min-height: 84px; padding: 0 1.4rem; }
.cc-hint { text-align: center; font-size: .85rem; font-weight: 600; margin: .8rem 0 0; }
.cc-postes { margin-top: 1.8rem; }
.cc-postes-title { display: flex; align-items: center; gap: .6rem; font-size: .9rem; font-weight: 900; letter-spacing: 1.2px; text-transform: uppercase; }
.cc-postes-title .sq { width: .75rem; height: .75rem; border-radius: 3px; background: var(--brand); border: 2px solid var(--ink); }
.cc-count { font-size: .85rem; letter-spacing: 0; text-transform: none; color: var(--ink-muted); font-weight: 800; }
.ready-group { margin-bottom: 1rem; }
.ready-group-title { font-size: .78rem; font-weight: 900; text-transform: uppercase; letter-spacing: .8px; color: var(--ink-muted); margin: .6rem 0 .5rem; }
.ready-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.ready-card { display: flex; align-items: center; gap: .75rem; padding: .75rem .9rem; background: var(--surface); border: 2.5px solid var(--ink); border-radius: 14px; box-shadow: 3px 3px 0 var(--shadow-mint); }
.ready-dot { width: 16px; height: 16px; border-radius: 50%; border: 2px solid var(--ink); flex: none; background: var(--danger); }
.ready-card.st-ready { box-shadow: 3px 3px 0 var(--brand); }
.ready-card.st-ready .ready-dot { background: var(--brand-bright); box-shadow: 0 0 8px var(--brand-bright); }
.ready-card.st-inactive { opacity: .5; }
.ready-card.st-inactive .ready-dot { background: #9aa58a; }
.ready-name { font-weight: 800; }
.ready-sub { font-size: .8rem; font-weight: 600; color: var(--ink-muted); }

/* ---- Mini-chrono (régie, animateur, feuille de score) ----------------------------- */
.chrono-mini { display: inline-flex; flex-wrap: wrap; align-items: center; gap: .6rem; padding: .4rem .55rem; background: var(--ink); color: #eaf5d8; border-radius: 14px; box-shadow: 3px 3px 0 var(--brand); max-width: 100%; }
.chrono-mini.is-offline { box-shadow: 3px 3px 0 var(--warning); }
.cm-clock { --ph: var(--ch-idle); display: inline-flex; align-items: baseline; gap: .5rem; padding: 0 .3rem; }
.cm-display { font-size: 1.9rem; font-weight: 700; color: var(--ph); min-width: 4.2ch; text-align: right; line-height: 1; }
.cm-phase { font-size: .72rem; font-weight: 800; text-transform: uppercase; letter-spacing: .8px; color: var(--ph); }
.cm-poste { display: inline-flex; align-items: center; gap: .35rem; font-size: .78rem; font-weight: 800; }
.cm-poste .form-control { width: 9rem; min-height: 38px; padding: .2rem .5rem; }
.cm-ready { min-height: 44px; font-size: .9rem; padding: .3rem .8rem; box-shadow: 2px 2px 0 #000; }
.cm-ready.is-wait { background: var(--danger); color: #fff; }
.cm-ready.is-ready { background: linear-gradient(180deg, var(--brand-bright), var(--brand)); color: var(--on-brand); }
.cm-ready.is-running, .cm-ready:disabled { background: #6b7461; color: #e6eadf; opacity: 1; cursor: not-allowed; transform: none; }

@media print { .chrono-mini, .cc-actions, .cs-sound { display: none !important; } }
@media (prefers-reduced-motion: reduce) { .is-blink .cs-display, .cm-clock.is-blink .cm-display { animation: chronoBlink 1s steps(1) infinite !important; } }

/* ===== stands ===== */
/* ---- Annonces (staff) ------------------------------------------------------ */
.seg-wrap { flex-wrap: wrap; }
.seg-wrap label { border-bottom: 2px solid var(--ink); }
.announce-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.announce-item { background: var(--surface); border: 2.5px solid var(--ink); border-left-width: 8px; border-left-color: var(--brand);
  border-radius: 14px; padding: .6rem .8rem; box-shadow: 3px 3px 0 var(--shadow-mint); }
.announce-item.important { border-left-color: var(--danger); background: #fff6f4; }
.announce-item.important .ann-msg { font-weight: 800; }
.announce-item.inactive { opacity: .6; box-shadow: none; }
.announce-item .ann-head { display: flex; flex-wrap: wrap; align-items: center; gap: .35rem; margin-bottom: .25rem; }
.announce-item .ann-time { font-weight: 700; color: var(--ink-muted); }
.announce-item .ann-remove { margin-left: auto; min-height: 36px; min-width: 44px; }
.announce-item .ann-msg { font-size: 1.02rem; overflow-wrap: anywhere; }
.announce-empty { text-align: center; padding: 1.4rem 1rem; border: 2.5px dashed var(--border-strong); border-radius: 16px; background: var(--surface); }
.announce-feed.compact .announce-item { padding: .45rem .65rem; box-shadow: none; }
.announce-feed.compact .ann-msg { font-size: .95rem; }
.announce-preview .announce-item { box-shadow: none; }
/* Cibles visibles du public (public / all) : à part, encadrées, avec pastille. */
.announce-public-targets { border: 2.5px dashed var(--warning); border-radius: 14px; padding: .5rem .6rem; background: #fff8ec; }
.announce-item.is-public { border-left-color: var(--warning); }
.announce-item.is-public.important { border-left-color: var(--danger); }
.announce-preview .ann-public { margin-right: .4rem; }

/* ---- Appels des stands : fil staff ---------------------------------------- */
.stands-filters { display: flex; flex-wrap: wrap; gap: .45rem; }
.stands-filters .btn { min-height: var(--tap); }
.stands-filters .btn.active { background: var(--brand); }
.stands-feed { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 360px), 1fr)); gap: 14px; align-items: start; }
.stand-card { background: var(--surface); border: 2.5px solid var(--ink); border-left-width: 10px; border-left-color: var(--warning);
  border-radius: 18px; padding: .8rem .9rem; box-shadow: var(--sticker-soft); }
.stand-card.claimed { border-left-color: var(--info); }
.stand-card.urgent { border-left-color: var(--danger); background: #fff3f1; }
.stand-card.late { border-color: var(--danger); box-shadow: 6px 6px 0 var(--danger); animation: standLate 1.1s ease-in-out infinite; }
@keyframes standLate { 50% { box-shadow: 6px 6px 0 rgba(207,71,61,.25); background: #fde2de; } }
.stand-head { display: flex; align-items: flex-start; gap: .5rem; }
.stand-team { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; flex: 1; min-width: 0; }
.stand-icon { font-size: 1.4rem; line-height: 1; }
.stand-name { font-weight: 900; font-size: 1.1rem; overflow-wrap: anywhere; }
.stand-timer { font-weight: 700; font-size: 1.15rem; white-space: nowrap; }
.stand-card.late .stand-timer { color: var(--danger); }
.stand-meta { display: flex; flex-wrap: wrap; gap: .35rem; margin: .45rem 0; }
.stand-late { display: none; }
.stand-card.late .stand-late { display: inline-flex; }
.stand-msg { margin: .2rem 0 .4rem; font-weight: 600; overflow-wrap: anywhere; }
.stand-reply { margin: 0 0 .4rem; color: var(--info); font-weight: 700; }
.stand-actions { display: flex; flex-wrap: wrap; gap: .45rem; align-items: center; }
.stand-panel { margin-top: .7rem; padding-top: .7rem; border-top: 2px dashed var(--border-strong); }
.stand-macros { display: flex; flex-wrap: wrap; gap: .35rem; margin-bottom: .5rem; }
.stand-macros .btn { text-align: left; font-weight: 700; font-size: .85rem; }
.stand-panel .form-label { display: block; width: 100%; }

/* ---- Wallboard (gabarit screen, sombre) ----------------------------------- */
.stands-wall-page .wall-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1.2vw; }
.wall-tile { border: 3px solid var(--brand); border-radius: 18px; padding: 1.4vh 1.2vw; background: rgba(255,255,255,.04); text-align: center; }
.wall-tile .wall-value { font-family: var(--mono); font-weight: 700; font-size: clamp(2.2rem, 6vw, 6rem); line-height: 1; color: var(--brand-bright); }
.wall-tile .wall-label { color: var(--screen-muted); font-weight: 800; text-transform: uppercase; letter-spacing: 1px; font-size: clamp(.8rem, 1.3vw, 1.3rem); margin-top: .4em; }
.wall-tile.warn { border-color: var(--warning); } .wall-tile.warn .wall-value { color: #ffd23f; }
.wall-tile.bad { border-color: #ff6b6b; } .wall-tile.bad .wall-value { color: #ff6b6b; }
.wall-tile.blink { animation: blink 1.2s infinite; }
.wall-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 1vh; }
.wall-item { display: flex; align-items: center; gap: 1.2vw; padding: .8vh 1vw; border-radius: 14px; background: rgba(255,255,255,.04);
  border-left: 10px solid var(--warning); font-size: clamp(1.1rem, 2.2vw, 2.4rem); }
.wall-item.claimed { border-left-color: var(--cyan); }
.wall-item.urgent { border-left-color: #ff6b6b; background: rgba(255,107,107,.12); }
.wall-item.late { animation: wallLate 1s steps(2, start) infinite; }
@keyframes wallLate { 50% { background: rgba(255,107,107,.35); } }
.wall-icon { font-size: 1.3em; }
.wall-main { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.wall-team { font-weight: 900; overflow-wrap: anywhere; }
.wall-sub { color: var(--screen-muted); font-size: .6em; font-weight: 700; }
.wall-late { display: none; color: #ff6b6b; font-weight: 900; font-size: .7em; }
.wall-item.late .wall-late { display: inline; }
.wall-age { color: var(--cyan); font-weight: 700; white-space: nowrap; }
.wall-empty { color: var(--brand-bright); font-size: clamp(1.4rem, 3vw, 3rem); font-weight: 900; text-align: center; padding: 4vh 0; }

/* ---- Rapport ---------------------------------------------------------------- */
.report-hours { display: grid; gap: .3rem; }
.report-hour { display: grid; grid-template-columns: 3.2rem 1fr 2.5rem; align-items: center; gap: .6rem; }
.report-hour .bar { height: 14px; background: var(--surface-tint); border: 1.5px solid var(--ink); border-radius: 8px; overflow: hidden; }
.report-hour .bar span { display: block; height: 100%; background: var(--brand); }
.report-calls tr.is-urgent > td { background: #fff3f1 !important; }
.report-outcome { min-width: 220px; }
.print-only { display: none; }
@media print {
  .print-only { display: inline; }
  .report-outcome { min-width: 0; }
  .stand-card, .announce-item { box-shadow: none !important; animation: none !important; }
}
@media (prefers-reduced-motion: reduce) {
  .stand-card.late, .wall-item.late, .wall-tile.blink { animation: none !important; }
}

/* ===== screens ===== */
/* =============================================================================
 *  Écrans publics : scores (affichage.php), stands (pit.php), bandeau d'annonces,
 *  accueil visiteur (index.php). Sombre en dur pour les écrans de salle / stream.
 * ========================================================================== */

/* ---- Écrans de salle : jamais de bandeau « connexion perdue » sur le stream ---- */
.scr-aff .net-banner, .scr-pit .net-banner { display: none !important; }

/* ---- Écran des scores — cadrage OBS identique à la v1 ------------------------ */
.scr-aff {
  --gl-lime: #a8e24e; --gl-cyan: #46e0d0; --gl-bg: #0c1407; --gl-ink: #15210c;
  margin: 0; padding-top: 70px;                 /* hauteur du ticker partenaires */
  color: #eef4e1; overflow-x: hidden;
  font-family: "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  background:
    radial-gradient(1200px 600px at 100% -10%, rgba(127,181,57,0.16), transparent 60%),
    radial-gradient(1000px 600px at 0% 110%, rgba(70,224,208,0.10), transparent 60%),
    var(--gl-bg);
  background-attachment: fixed;
}
.scr-aff .screen-main { padding: 0; display: block; min-height: 0; gap: 0; }
.scr-aff.transparent { background: transparent; }
.aff-particles { position: fixed; inset: 0; width: 100vw; height: 100vh; z-index: 0; pointer-events: none; }

.aff-ticker { position: fixed; top: 0; left: 0; width: 100%; height: 64px; z-index: 2500; overflow: hidden; display: flex; align-items: center;
  background: rgba(11,18,7,.96); border-bottom: 3px solid var(--gl-lime); }
.aff-ticker-label { flex: none; background: var(--gl-lime); color: var(--gl-ink); font-weight: 900; padding: 0 30px 0 18px; height: 100%;
  display: flex; align-items: center; z-index: 2; font-size: .9rem; letter-spacing: 1px; text-transform: uppercase;
  clip-path: polygon(0 0, 100% 0, 85% 100%, 0% 100%); }
.aff-ticker-wrap { width: 100%; overflow: hidden; }
.aff-ticker-move { display: flex; width: max-content; animation: affTicker var(--ticker-s, 40s) linear infinite; }
.aff-ticker-item { display: flex; align-items: center; padding: 0 38px; flex-shrink: 0; }
.aff-ticker-item img { height: 44px; max-width: 220px; width: auto; object-fit: contain; filter: brightness(0) invert(1) opacity(.85); }
@keyframes affTicker { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* Bandeau d'annonces : overlay FIXE dans la zone libre entre le ticker et le titre
   (66 → 106 px) : son apparition ne décale ni le titre ni les tableaux (bug v1 §7.7). */
.aff-banner { position: fixed; top: 68px; left: 50%; transform: translateX(-50%); z-index: 2400; height: 38px;
  max-width: min(94vw, 1100px); display: flex; align-items: center; gap: .6em; padding: 0 18px; border-radius: 10px;
  background: rgba(0,0,0,.72); border: 2px solid #ffe08a; color: #ffe08a; font-weight: 800; letter-spacing: .5px;
  font-size: 1.15rem; white-space: nowrap; overflow: hidden; }
.aff-banner[hidden] { display: none; }
.aff-banner .pb-text { overflow: hidden; text-overflow: ellipsis; }
.aff-banner.important, .pit-banner.important { color: #ff6b6b; border-color: #ff6b6b; }
.pb-in { animation: pbIn .35s ease-out; }
@keyframes pbIn { from { opacity: 0; } to { opacity: 1; } }

.aff-content { position: relative; z-index: 1; padding: 14px 26px 130px; }
.aff-title { font-weight: 900; color: var(--gl-lime); text-transform: uppercase; letter-spacing: 3px; text-shadow: 0 0 24px rgba(168,226,78,.4);
  margin: 38px 0 26px; text-align: center; font-size: 30px; line-height: 1.2; }
.aff-comp { margin: -20px 0 22px; text-align: center; font-size: 17px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; color: #a9c081; }
.aff-tables { display: flex; justify-content: center; gap: 26px; flex-wrap: wrap; margin: 0 auto; }
.aff-table { border-collapse: separate; border-spacing: 0; width: min(46vw, 560px); min-width: 320px; background: #14210c;
  border: 2.5px solid var(--gl-lime); border-radius: 16px; overflow: hidden; box-shadow: 0 0 40px rgba(127,181,57,.12); color: #cfe0b0; align-self: flex-start; }
.aff-table th, .aff-table td { padding: 13px 14px; text-align: center; }
.aff-table th { background: var(--gl-lime); color: var(--gl-ink); text-transform: uppercase; font-size: 13px; letter-spacing: 1px; font-weight: 800; }
.aff-table th:first-child, .aff-table td:first-child { text-align: left; }
.aff-table td { font-family: "Space Mono", ui-monospace, monospace; font-weight: 700; font-size: 18px; border-bottom: 1px solid #243218; font-variant-numeric: tabular-nums; }
.aff-table td:first-child { font-family: "Hanken Grotesk", system-ui, sans-serif; }
.aff-table tbody tr:nth-child(even) { background: rgba(127,181,57,.06); }
.aff-table td.is-best { color: var(--gl-lime); text-shadow: 0 0 14px rgba(168,226,78,.6); background: transparent !important; }
.aff-muted { color: #7e9159 !important; font-family: "Hanken Grotesk", system-ui, sans-serif !important; font-weight: 600 !important; }

.aff-clock { position: fixed; bottom: 22px; left: 24px; z-index: 40; font-family: "Space Mono", ui-monospace, monospace; font-size: 26px; font-weight: 700;
  color: var(--gl-cyan); background: rgba(11,18,7,.92); border: 2px solid var(--gl-cyan); border-left-width: 6px; border-radius: 10px; padding: 9px 18px; min-width: 8ch; }
.aff-clock:empty { display: none; }
.aff-best { position: fixed; bottom: 22px; left: 50%; transform: translateX(-50%); z-index: 40; background: rgba(11,18,7,.95);
  border: 2.5px solid var(--gl-lime); border-radius: 12px; padding: 10px 34px; text-align: center; box-shadow: 0 0 26px rgba(168,226,78,.4); }
.aff-best-label { font-size: 11px; font-weight: 800; letter-spacing: 2px; text-transform: uppercase; color: #9bb96f; }
.aff-best-value { font-family: "Space Mono", ui-monospace, monospace; font-size: 32px; font-weight: 700; color: var(--gl-lime); line-height: 1; display: block; }
.aff-live { position: fixed; bottom: 22px; right: 24px; z-index: 40; display: flex; align-items: center; gap: 10px; background: rgba(11,18,7,.92);
  border: 2px solid #3c5226; border-radius: 10px; padding: 9px 16px; font-weight: 700; font-size: 13px; color: #9bb96f; letter-spacing: .5px; }
.aff-live .dot, .pit-live .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--gl-cyan, #46e0d0); box-shadow: 0 0 10px #46e0d0; animation: blink 1.6s infinite; }
@media (max-width: 900px) {
  .aff-clock { bottom: 168px; font-size: 20px; }
  .aff-best { bottom: 96px; }
  .aff-live { bottom: 22px; }
  .aff-banner { font-size: .95rem; }
}

/* ---- Écran des stands (pit) --------------------------------------------------- */
.scr-pit { color: #eef4e1; background: radial-gradient(1200px 600px at 100% -10%, rgba(127,181,57,0.14), transparent 60%), #0c1407; background-attachment: fixed; }
.scr-pit.transparent { background: transparent; }
.scr-pit .screen-main { padding: 22px; gap: 14px; }
.pit-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.pit-brand { display: flex; align-items: center; gap: 12px; min-width: 0; }
.pit-brand img { border-radius: 9px; border: 2px solid #a8e24e; background: #fff; padding: 2px; }
.pit-title { font-size: clamp(1.1rem, 2.2vw, 1.6rem); font-weight: 900; letter-spacing: 1px; text-transform: uppercase; color: #a8e24e; line-height: 1.1; }
.pit-comp { color: #9bb96f; font-weight: 700; font-size: .9rem; text-transform: uppercase; letter-spacing: 1px; }
.pit-live { display: flex; align-items: center; gap: 9px; color: #9bb96f; font-weight: 700; font-size: 14px; flex: none; }
.pit-banner { min-height: 42px; display: flex; align-items: center; gap: .6em; padding: 0 16px; border-radius: 10px; background: rgba(0,0,0,.55);
  border: 2px solid #ffe08a; color: #ffe08a; font-weight: 800; font-size: 1.05rem; }
.pit-banner[hidden] { display: flex; visibility: hidden; }       /* hauteur réservée : la grille ne saute pas */
.pit-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(clamp(140px, 30vw, 230px), 1fr)); gap: 12px; }
.pit-card { background: #14210c; border: 2.5px solid #243218; border-radius: 14px; padding: 12px 14px; min-width: 0; }
.pit-card.top { border-color: #a8e24e; box-shadow: 0 0 26px rgba(168,226,78,.25); }
.pit-team { display: flex; align-items: center; gap: 8px; min-width: 0; }
.pit-num { font-family: "Space Mono", ui-monospace, monospace; font-weight: 700; font-size: 13px; color: #15210c; background: #a8e24e; border-radius: 6px; padding: 2px 7px; flex: none; }
.pit-name { font-weight: 800; font-size: 1.02rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pit-best { font-family: "Space Mono", ui-monospace, monospace; font-weight: 700; font-size: 2rem; line-height: 1.1; margin-top: 6px; color: #cfe0b0; }
.pit-card.top .pit-best { color: #a8e24e; text-shadow: 0 0 14px rgba(168,226,78,.5); }
.pit-best small { font-size: .7rem; letter-spacing: 1px; color: #9bb96f; font-family: "Hanken Grotesk", system-ui, sans-serif; font-weight: 800; }
.pit-best.none { color: #54663c; }
.pit-scores { font-family: "Space Mono", ui-monospace, monospace; color: #9bb96f; font-size: .9rem; }
.pit-empty { opacity: .6; font-style: italic; }
.pit-note { color: #7e9159; font-size: .85rem; margin-top: auto; text-align: center; }

/* ---- Accueil visiteur (layout public, clair) ---------------------------------- */
.home-hero { margin-top: .5rem; }
.home-kicker { font-size: .75rem; font-weight: 800; letter-spacing: 2px; text-transform: uppercase; color: var(--brand-bright); }
.home-name { color: #eef4e1; font-weight: 900; margin: .2rem 0 .3rem; font-size: 1.7rem; }
.home-meta { display: flex; flex-wrap: wrap; gap: .8rem; color: #9bb96f; font-weight: 700; font-size: .9rem; }
.home-h { font-size: .9rem; font-weight: 900; letter-spacing: 1px; text-transform: uppercase; margin: 1.2rem 0 .6rem; }
.home-sub { font-size: 1rem; font-weight: 800; margin: .8rem 0 .4rem; display: flex; align-items: center; gap: .4rem; }
.home-list, .home-news { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.home-item, .home-news li { background: var(--surface); border: 2px solid var(--ink); border-radius: 12px; padding: .55rem .75rem; display: flex; gap: .7rem; align-items: baseline; }
.home-time { font-weight: 700; flex: none; }
.home-news li.important { border-color: var(--danger); background: #fdecea; font-weight: 700; }
.live-dot { width: .6rem; height: .6rem; border-radius: 50%; background: #c21f1f; display: inline-block; animation: blink 1.2s infinite; }
@media (prefers-reduced-motion: reduce) {
  .aff-ticker-move { animation-duration: 160s; }
  .aff-live .dot, .pit-live .dot, .live-dot { animation: none; }
}

/* ===== desk ===== */
/* ---- Postes Régie / Animateur ------------------------------------------------ */
.desk-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 20px; align-items: start; }
@media (max-width: 991px) { .desk-grid { grid-template-columns: 1fr; } }
.desk-side { display: flex; flex-direction: column; gap: 16px; }
.desk-h { display: flex; align-items: center; gap: .5rem; font-size: .85rem; font-weight: 900; letter-spacing: 1.1px; text-transform: uppercase; margin: 0 0 .7rem; }
.desk-h .sq { width: .75rem; height: .75rem; border: 2px solid var(--ink); border-radius: 3px; background: var(--brand); flex: none; }
.desk-links { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.desk-link-title { font-weight: 800; font-size: 1.05rem; color: var(--ink); text-decoration: none; }
.desk-ico { flex: none; width: 40px; height: 40px; display: grid; place-items: center; border: 2.5px solid var(--ink); border-radius: 11px; background: var(--surface-tint); font-size: 1.1rem; }
.desk-url { font-size: .75rem; min-height: 38px; }
.desk-slots { display: grid; gap: 12px; }
.desk-teams li { padding: .35rem 0; border-top: 1px solid var(--border); }
.desk-teams li:first-child { border-top: 0; }
.desk-teams .btn-sm { min-height: 36px; padding: .2rem .55rem; }
.desk-stale td { opacity: .55; }
.desk-chrono-fallback .big { font-size: 2.6rem; }

/* ---- Page équipe (QR, mobile) ------------------------------------------------ */
.team-page .public-main { padding-bottom: 2.5rem; }
.team-hero { background: var(--ink); color: #eef4e1; border-radius: 22px; padding: 1.3rem 1.4rem; box-shadow: 6px 6px 0 var(--brand-bright); margin-bottom: 1.1rem; }
.team-hero-kicker { font-size: .75rem; font-weight: 800; letter-spacing: 2px; text-transform: uppercase; color: var(--brand-bright); }
.team-hero-name { font-size: clamp(1.5rem, 7vw, 2rem); font-weight: 900; line-height: 1.05; margin-top: .25rem; word-break: break-word; }
.team-hero-meta { font-size: .9rem; font-weight: 600; color: #9bb96f; margin-top: .4rem; }
.team-hero-comp { font-size: .82rem; color: #cfe0b0; margin-top: .3rem; }
.team-section { margin-bottom: 1.5rem; }
.team-h { font-size: .85rem; font-weight: 900; letter-spacing: 1px; text-transform: uppercase; color: #2c3d1c; margin: 0 0 .7rem; }
.team-matches { display: grid; grid-template-columns: repeat(var(--n, 3), minmax(0, 1fr)); gap: 10px; margin-bottom: 12px; }
.team-match { background: #fff; border: 2.5px solid var(--ink); border-radius: 14px; padding: .7rem .8rem; box-shadow: 3px 3px 0 var(--shadow-mint); }
.team-match.best { box-shadow: 3px 3px 0 #9ed44a; }
.team-match-lbl { font-size: .7rem; font-weight: 800; letter-spacing: .4px; text-transform: uppercase; color: var(--ink-muted); }
.team-match-val { font-size: 1.8rem; font-weight: 700; line-height: 1; margin-top: .25rem; }
.team-match.best .team-match-val { color: #4d7d18; }
.team-match-star { font-size: .7rem; font-weight: 800; color: #4d7d18; margin-top: .2rem; }
.team-best { background: linear-gradient(180deg, var(--brand-bright), var(--brand)); border: 2.5px solid var(--ink); border-radius: 18px; padding: 1rem 1.2rem; box-shadow: 5px 5px 0 var(--ink); text-align: center; }
.team-best-lbl { font-size: .75rem; font-weight: 800; letter-spacing: 1px; text-transform: uppercase; color: #33481f; }
.team-best-val { font-size: 2.8rem; font-weight: 700; line-height: 1; }
.team-best-val span { font-size: 1.1rem; }
.team-best-none { font-weight: 800; padding: .3rem 0; }
.team-plan { border: 2.5px solid var(--ink); border-radius: 16px; background: #fff; overflow: hidden; box-shadow: var(--sticker-soft); margin-bottom: .4rem; }
.team-plan-item { display: flex; gap: .8rem; padding: .65rem .9rem; border-top: 1px solid var(--border); align-items: baseline; }
.team-plan-item:first-child { border-top: 0; }
.team-plan-item.kind-break, .team-plan-item.kind-ceremony { background: var(--surface-tint); }
.team-plan-time { flex: none; min-width: 6.6rem; font-weight: 700; font-size: .9rem; }
.team-announces { display: grid; gap: 8px; }
.team-announce { background: #fff; border: 2px solid var(--ink); border-left-width: 6px; border-left-color: var(--brand); border-radius: 12px; padding: .6rem .8rem; font-weight: 600; }
.team-announce.important { border-left-color: var(--danger); background: #fdecea; }
.team-types { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 8px; }
.team-type { position: relative; display: flex; align-items: center; gap: .5rem; min-height: 48px; padding: .5rem .7rem; border: 2.5px solid var(--ink); border-radius: 12px; background: #fff; font-weight: 800; cursor: pointer; }
.team-type input { position: absolute; opacity: 0; pointer-events: none; }
.team-type:has(input:checked) { background: var(--brand); box-shadow: 3px 3px 0 var(--ink); }
.team-type.urgent:has(input:checked) { background: var(--danger); color: #fff; }
.team-type:has(input:focus-visible) { outline: 3px solid var(--brand-dark); outline-offset: 2px; }
.team-type-ico { font-size: 1.2rem; }
.team-faq details.help { margin-bottom: .5rem; }
.team-call { margin-top: .8rem; }
.team-calls { display: grid; gap: 10px; }
.team-callrow.status-resolved { opacity: .95; }
.team-reply { background: var(--surface-tint); border: 2px solid var(--border-strong); border-radius: 12px; padding: .5rem .7rem; font-weight: 600; }
.team-reply-who { display: block; font-size: .72rem; font-weight: 800; text-transform: uppercase; letter-spacing: .5px; color: var(--ink-muted); }
.team-news { position: sticky; top: 0; z-index: 40; margin-bottom: .8rem; }
.team-foot { text-align: center; color: var(--ink-muted); font-size: .8rem; font-weight: 600; margin-top: 1.5rem; }
@media print { .team-call, .team-news, .team-csat { display: none !important; } }
