/* =============================================================================
   essaim-verdict.css - L'essaim du Quinte+, verdict 2027 (assets/js/essaim-verdict.js).
   -----------------------------------------------------------------------------
   Charge apres essaim-2027.css, dont il reprend les jetons (--es-*), le panneau
   (.tbz-es-card), les boutons et les numeros (.tbz-es-tile). Classes .tbz-vd-*.
   Memes regles : aucun texte tronque, aucun debordement de 320 a 1920 px,
   cibles de 44 px, mouvement reduit respecte.
   @version 1.0.0 (lot 1e, 17/10/2026)
   ========================================================================== */

.tbz-vd { margin-top: 6px; }
.tbz-vd .tbz-es-card { text-align: left; }
.tbz-vd-h3 { margin: 18px 0 4px; font-size: 1.08rem; font-weight: 800; letter-spacing: -.01em; }
.tbz-vd-help { margin: 0 0 10px; color: var(--es-mut-aa); font-size: .9rem; }

/* En-tete : titre, statut, mise a jour */
.tbz-vd-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 12px; margin-bottom: 4px; }
.tbz-vd-top .tbz-es-h2 { margin: 0; font-size: clamp(1.35rem, 3.6vw, 1.8rem); }
.tbz-vd-st { display: inline-flex; align-items: center; min-height: 30px; padding: 4px 12px; border-radius: var(--es-pill); font-size: .84rem; font-weight: 700; border: 1px solid; }
.tbz-vd-st.is-pro { background: var(--es-warn-bg); border-color: var(--es-warn-bd); color: #92400e; }
.tbz-vd-st.is-def { background: var(--es-acc-l2); border-color: var(--es-acc-l); color: var(--es-acc-d); }
.tbz-vd-st.is-arr { background: var(--es-ok-bg); border-color: var(--es-ok-bd); color: #065f46; }
.tbz-vd-hero .tbz-es-lede { margin-bottom: 6px; }
.tbz-vd-maj { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; margin: 0 0 6px; font-size: .88rem; color: var(--es-mut-aa); }
.tbz-vd-maj .tbz-es-btn { min-height: 44px; padding: 0 10px; }

/* Le ticket de l'essaim : la bande de numeros */
.tbz-vd-strip { list-style: none; margin: 4px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px 8px; }
.tbz-vd-strip li { display: flex; flex-direction: column; align-items: center; gap: 3px; min-width: 48px; padding: 6px 4px 7px; border-radius: var(--es-r-md); background: var(--es-soft); border: 2px solid transparent; }
.tbz-vd-strip .tbz-es-tile { width: 44px; height: 44px; font-size: 1.15rem; }
.tbz-vd-strip li.is-comp { background: transparent; border: 2px dashed var(--es-bd); }
.tbz-vd-strip li.is-mine { border-color: var(--es-acc); background: var(--es-acc-l2); }
.tbz-vd-strip li.is-hit .tbz-es-tile { background: var(--es-ok); }
.tbz-vd-i { font-size: .72rem; font-weight: 700; color: var(--es-mut-aa); line-height: 1.2; }
.tbz-vd-v { font-size: .8rem; font-weight: 700; font-variant-numeric: tabular-nums; color: var(--es-ink2); }
.tbz-vd-pl { font-size: .74rem; font-weight: 800; color: var(--es-ok); }
.tbz-es-tile.comp { background: var(--es-card); color: var(--es-ink2); border: 2px solid var(--es-ink2); }
.tbz-vd-bref { margin: 14px 0 0; font-size: .98rem; line-height: 1.55; }

/* Chances du ticket */
.tbz-vd-ch { margin: 14px 0 0; }
.tbz-vd-ch table { width: 100%; border-collapse: separate; border-spacing: 0; table-layout: fixed; font-variant-numeric: tabular-nums; }
.tbz-vd-ch caption { text-align: left; caption-side: top; padding: 0 0 6px; font-size: .86rem; font-weight: 700; color: var(--es-ink2); }
.tbz-vd-ch th, .tbz-vd-ch td { padding: 8px 4px; text-align: center; border-bottom: 1px solid var(--es-bd-soft); }
.tbz-vd-ch thead th { font-size: .72rem; font-weight: 700; color: var(--es-mut-aa); line-height: 1.25; vertical-align: bottom; overflow-wrap: anywhere; hyphens: auto; }
.tbz-vd-ch thead th:first-child, .tbz-vd-ch tbody th { width: 64px; text-align: left; }
.tbz-vd-ch tbody th { font-size: .86rem; font-weight: 700; }
.tbz-vd-ch td { font-size: 1.05rem; font-weight: 800; }
.tbz-vd-ch tr.is-ess td, .tbz-vd-ch tr.is-ess th { background: var(--es-acc-l2); color: var(--es-acc-d); }
.tbz-vd-ch tr.is-ess td:first-of-type { font-size: 1.2rem; }
.tbz-vd-cmp { margin: 8px 0 0; font-size: .92rem; }

/* Resultat */
.tbz-vd-res { margin: 12px 0 4px; padding: 12px; border-radius: var(--es-r-md); background: var(--es-ok-bg); border: 1px solid var(--es-ok-bd); }
.tbz-vd-res .tbz-vd-h3 { margin-top: 0; }
.tbz-vd-arr { list-style: none; margin: 6px 0 8px; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.tbz-vd-arr li { display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: .78rem; font-weight: 700; }
.tbz-vd-arr .tbz-es-tile.is-in { background: var(--es-ok); }
.tbz-vd-arr .tbz-es-tile.is-out { background: var(--es-card); color: var(--es-ink2); border: 2px solid var(--es-mut2); }
.tbz-vd-scores { display: grid; gap: 8px; }
.tbz-vd-sc { display: flex; flex-direction: column; gap: 2px; padding: 10px 12px; border-radius: var(--es-r-sm); background: var(--es-card); border: 1px solid var(--es-bd-soft); }
.tbz-vd-sc b { font-size: 1.3rem; font-weight: 800; line-height: 1.15; font-variant-numeric: tabular-nums; }
.tbz-vd-sc span { font-size: .88rem; color: var(--es-ink2); }
.tbz-vd-sc.is-ess b { color: var(--es-acc-d); }
.tbz-vd-sc.is-moi { border-color: var(--es-acc); }
.tbz-vd-links { display: flex; flex-wrap: wrap; gap: 4px 16px; margin: 10px 0 0; }
.tbz-vd-links a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 700; }

/* Rangees de partants */
.tbz-vd-gh { display: none; }
.tbz-vd-rows { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.tbz-vd-row {
  display: grid; grid-template-columns: 22px 38px minmax(0, 1fr); gap: 6px 10px; align-items: start;
  padding: 10px; border: 1px solid var(--es-bd); border-radius: var(--es-r-md); background: var(--es-card);
}
.tbz-vd-row.is-hit { border-color: var(--es-ok-bd); background: var(--es-ok-bg); }
.tbz-vd-row.is-hit .tbz-es-tile { background: var(--es-ok); }
.tbz-vd-rk { align-self: center; font-size: .86rem; font-weight: 800; color: var(--es-mut-aa); text-align: right; font-variant-numeric: tabular-nums; }
.tbz-vd-nm { min-width: 0; }
.tbz-vd-nm b { display: block; font-size: 1rem; font-weight: 700; line-height: 1.25; overflow-wrap: anywhere; }
.tbz-vd-nm small { display: block; margin-top: 1px; color: var(--es-mut-aa); font-size: .82rem; overflow-wrap: anywhere; }
.tbz-vd-tags { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 4px; }
.tbz-vd-tag { display: inline-block; padding: 1px 8px; border-radius: var(--es-pill); font-size: .72rem; font-weight: 700; background: var(--es-soft); color: var(--es-ink2); border: 1px solid var(--es-bd); }
.tbz-vd-tag.is-mine { background: var(--es-acc-l2); color: var(--es-acc-d); border-color: var(--es-acc-l); }
.tbz-vd-bar { display: block; height: 6px; margin-top: 6px; border-radius: 3px; background: var(--es-bd-soft); overflow: hidden; }
.tbz-vd-bar i { display: block; height: 100%; background: var(--es-acc); border-radius: 3px; }
.tbz-vd-cs { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(auto-fill, minmax(64px, 1fr)); gap: 6px 8px; }
.tbz-vd-c { display: flex; flex-direction: column; gap: 1px; min-width: 0; font-size: .92rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.tbz-vd-c::before { content: attr(data-l); font-size: .7rem; font-weight: 700; color: var(--es-mut-aa); }

/* Gagnant designe */
.tbz-vd-wh { display: flex; align-items: center; gap: 12px; margin: 6px 0 10px; }
.tbz-vd-wh .tbz-es-tile.big { width: 58px; height: 58px; font-size: 1.6rem; border-radius: var(--es-r-md); background: var(--es-acc-d); flex: 0 0 auto; }
.tbz-vd-wh b { display: block; font-size: 1.2rem; font-weight: 800; line-height: 1.2; overflow-wrap: anywhere; }
.tbz-vd-wh small { display: block; color: var(--es-mut-aa); font-size: .86rem; overflow-wrap: anywhere; }
.tbz-vd-gres { margin: 0 0 10px; font-weight: 700; color: var(--es-ink2); }
.tbz-vd-gres.is-ok { color: var(--es-ok); }
.tbz-vd-dl { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin: 0 0 10px; }
.tbz-vd-dl div { padding: 8px 10px; border-radius: var(--es-r-sm); background: var(--es-soft); min-width: 0; }
.tbz-vd-dl dt { font-size: .76rem; color: var(--es-mut-aa); font-weight: 600; line-height: 1.3; }
.tbz-vd-dl dd { margin: 2px 0 0; font-size: 1.12rem; font-weight: 800; font-variant-numeric: tabular-nums; }

/* Lecture de la course */
.tbz-vd-lcs { display: grid; gap: 8px; }
.tbz-vd-lc { padding: 10px 12px; border-radius: var(--es-r-sm); border: 1px solid var(--es-bd-soft); background: var(--es-card2); }
.tbz-vd-lc span { display: block; font-size: .78rem; font-weight: 700; color: var(--es-mut-aa); }
.tbz-vd-lc b { display: block; font-size: 1.12rem; font-weight: 800; margin: 1px 0 2px; }
.tbz-vd-lc p { margin: 0; font-size: .9rem; color: var(--es-ink2); }

/* Qui pense quoi */
.tbz-vd-srcs { display: grid; gap: 10px; }
.tbz-vd-src { padding: 12px; border-radius: var(--es-r-md); border: 1px solid var(--es-bd); background: var(--es-card2); min-width: 0; }
.tbz-vd-src h3 { margin: 0 0 8px; font-size: 1rem; font-weight: 800; }
.tbz-vd-src h3 small { font-weight: 600; color: var(--es-mut-aa); font-size: .82rem; }
.tbz-vd-src ol, .tbz-vd-ec ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.tbz-vd-src li, .tbz-vd-ec li { display: grid; grid-template-columns: 38px minmax(0, 1fr); gap: 10px; align-items: center; }
.tbz-vd-src li b, .tbz-vd-ec li b { display: block; font-size: .94rem; font-weight: 700; line-height: 1.25; overflow-wrap: anywhere; }
.tbz-vd-src li small, .tbz-vd-ec li small { display: block; font-size: .8rem; color: var(--es-mut-aa); font-variant-numeric: tabular-nums; }
.tbz-vd-src .tbz-es-tile.is-out { background: var(--es-card); color: var(--es-mut2); border: 2px solid var(--es-bd); }
.tbz-vd-src p { margin: 8px 0 0; font-size: .86rem; color: var(--es-ink2); }

/* Ecarts avec la cote */
.tbz-vd-ecs { display: grid; gap: 10px; }
.tbz-vd-ec { padding: 12px; border-radius: var(--es-r-md); border: 1px solid var(--es-bd); min-width: 0; }
.tbz-vd-ec h3 { margin: 0 0 8px; font-size: 1rem; font-weight: 800; }
.tbz-vd-ec.is-plus { background: var(--es-acc-l2); border-color: var(--es-acc-l); }
.tbz-vd-ec.is-moins { background: var(--es-card2); }

/* Tous les partants */
.tbz-vd-all > summary { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 12px; min-height: 44px; cursor: pointer; list-style: none; padding-right: 34px; position: relative; }
.tbz-vd-all > summary::-webkit-details-marker { display: none; }
.tbz-vd-all > summary::after {
  content: ''; position: absolute; right: 8px; top: 12px; width: 10px; height: 10px;
  border-right: 2px solid var(--es-acc-d); border-bottom: 2px solid var(--es-acc-d); transform: rotate(45deg); transition: transform .15s var(--es-ease);
}
.tbz-vd-all[open] > summary::after { transform: rotate(-135deg); top: 17px; }
.tbz-vd-all > summary .tbz-es-h2 { margin: 0; }
.tbz-vd-sum { font-size: .9rem; color: var(--es-mut-aa); }
.tbz-vd-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 12px 0; font-size: .9rem; font-weight: 700; }
.tbz-vd-sel {
  min-height: 44px; padding: 0 10px; border: 1px solid var(--es-bd); border-radius: var(--es-r-sm);
  background: var(--es-card); color: var(--es-ink); font-size: 1rem; font-weight: 600; font-family: inherit; max-width: 100%;
}

/* Suite et methode */
.tbz-vd-suite { text-align: center; }
.tbz-vd-suite .tbz-es-lede { margin-left: auto; margin-right: auto; }
.tbz-vd .tbz-vd-suite { text-align: center; }
.tbz-vd-msg { margin: 8px 0 0; min-height: 1.2em; font-size: .9rem; color: var(--es-ok); font-weight: 600; }
.tbz-vd-meth { margin: 0 0 16px; padding: 4px 14px; border-radius: var(--es-r-md); background: var(--es-card2); border: 1px solid var(--es-bd); }
.tbz-vd-meth > summary { min-height: 44px; display: flex; align-items: center; font-weight: 700; cursor: pointer; color: var(--es-acc-d); }
.tbz-vd-meth p { margin: 0 0 10px; font-size: .9rem; }

/* ── 640 px et plus ───────────────────────────────────────────────────────── */
@media (min-width: 640px) {
  .tbz-vd-strip { gap: 10px; }
  .tbz-vd-strip li { min-width: 58px; }
  .tbz-vd-strip .tbz-es-tile { width: 48px; height: 48px; font-size: 1.25rem; }
  .tbz-vd-ch thead th { font-size: .8rem; }
  .tbz-vd-ch td { font-size: 1.15rem; }
  .tbz-vd-ch thead th:first-child, .tbz-vd-ch tbody th { width: 90px; }
  .tbz-vd-scores { grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }
  .tbz-vd-dl { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .tbz-vd-ecs { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
}

/* ── 900 px et plus ───────────────────────────────────────────────────────── */
@media (min-width: 900px) {
  .tbz-vd-srcs { grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
  .tbz-vd-lcs { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
}

/* ── 1080 px et plus : les rangees deviennent un tableau aligne ───────────── */
@media (min-width: 1080px) {
  .tbz-vd-gh { display: grid; gap: 0 10px; padding: 0 12px 6px; align-items: end; font-size: .74rem; font-weight: 700; color: var(--es-mut-aa); }
  .tbz-vd-gh .r { text-align: right; }
  .tbz-vd-row { grid-template-columns: var(--vd-cols); align-items: center; padding: 8px 12px; gap: 0 10px; }
  .tbz-vd-cs { display: contents; }
  .tbz-vd-c { text-align: right; align-items: flex-end; }
  .tbz-vd-c::before { display: none; }
  .tbz-vd-duo { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; align-items: start; }
  .tbz-vd-duo > .tbz-es-card { margin-bottom: 16px; }
  .tbz-vd-duo .tbz-vd-lcs { grid-template-columns: minmax(0, 1fr); }
  .tbz-vd-duo .tbz-vd-dl { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (prefers-reduced-motion: reduce) {
  .tbz-vd-all > summary::after { transition: none; }
}
@media (forced-colors: active) {
  .tbz-vd-strip li, .tbz-vd-row, .tbz-vd-src, .tbz-vd-ec, .tbz-vd-lc, .tbz-vd-sc, .tbz-vd-dl div { border: 1px solid CanvasText; }
  .tbz-vd-strip li.is-mine { border: 3px solid Highlight; }
  .tbz-vd-bar i { background: Highlight; }
}

/* Liens en forme de bouton : la couleur des liens de .tbz-es ne doit pas l'emporter */
.tbz-vd a.tbz-es-btn { text-decoration: none; }
.tbz-vd a.tbz-es-btn--pri, .tbz-vd a.tbz-es-btn--pri:hover { color: #fff; }
.tbz-vd-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin: 14px 0 0; padding: 12px 14px; border-radius: var(--es-r-md); background: var(--es-acc-l2); border: 1px solid var(--es-acc-l); }
.tbz-vd-cta p { margin: 0; flex: 1 1 260px; font-size: .94rem; color: var(--es-ink2); }
