/* Styles propres aux pages « draft » (refonte 2026-09). Tout dans @layer pages ; composants partagés : assets/css/site.css. */
@layer pages {
  /* ---------- Salle ---------- */
  .draft-room { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
  @media (min-width: 64rem) { .draft-room { gap: 24px; } }
  .draft-room > * { min-width: 0; }

  .draft-state-head { gap: 10px; }
  .draft-state-head svg { color: var(--muted); }
  .draft-done-icon {
    width: 44px; height: 44px; flex-shrink: 0; border-radius: 12px;
    display: inline-flex; align-items: center; justify-content: center;
    background: color-mix(in srgb, var(--gold) 18%, transparent);
  }
  .draft-state-head .draft-done-icon svg { color: var(--gold); }
  .draft-card-head { gap: 8px; color: var(--muted); }
  .draft-waiting { gap: 12px; }
  .draft-waiting > * + * { margin-top: 0; }
  .draft-waiting svg { color: var(--blue); flex-shrink: 0; }

  /* ---------- Bandeau « à ton tour » ---------- */
  .draft-clock {
    display: flex; flex-direction: column; gap: 10px;
    padding: 14px 16px; border-radius: var(--r-lg);
    background: var(--surface); border: 1px solid var(--border);
  }
  .draft-clock.mine { border: 2px solid var(--red); }
  .draft-clock-top { display: flex; align-items: center; gap: 12px; }
  .draft-clock-main { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; }
  .draft-clock-kicker {
    font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .1em; color: var(--muted);
    overflow-wrap: anywhere;
  }
  .draft-clock.mine .draft-clock-kicker { color: var(--red-text); }
  .draft-clock-pick {
    font-family: var(--font-cond); font-weight: 800; font-size: 24px; line-height: 1.05;
    text-transform: uppercase; font-variant-numeric: tabular-nums; text-wrap: balance;
  }
  .draft-clock-phase { font-size: 13px; color: var(--muted); }
  .draft-clock .draft-timer { flex-shrink: 0; }
  .draft-cap-box { display: flex; flex-direction: column; gap: 6px; }
  .draft-cap-box .capbar { height: 6px; }
  @media (min-width: 64rem) {
    .draft-clock { flex-direction: row; align-items: center; gap: 24px; padding: 18px 22px; }
    .draft-clock-top { flex: 1 1 auto; gap: 24px; }
    .draft-clock-pick { font-size: 30px; }
    .draft-cap-box { flex: 0 0 360px; padding-left: 24px; border-left: 1px solid var(--border); }
  }

  /* ---------- Liste des joueurs disponibles / candidats au trophée ---------- */
  .draft-fa .draft-col-star { width: 36px; padding-right: 0; }
  .draft-fa .draft-col-act { width: 1%; }
  .draft-fa .p-name a { color: var(--text); }
  .draft-fa .p-name a:hover { color: var(--blue); }
  .draft-pts { font-family: var(--font-cond); font-weight: 800; font-size: 1.15rem; }
  .draft-pts-label { display: none; }
  .draft-pos-inline { display: none; }
  .draft-sm-meta { display: none; }

  .watch-star {
    width: 32px; height: 44px; padding: 0; flex-shrink: 0;
    display: inline-flex; align-items: center; justify-content: center;
    background: none; border: 0; color: var(--muted);
  }
  .watch-star:hover { color: var(--gold); }
  .watch-star.on { color: var(--gold); }
  .watch-star.on svg { fill: currentColor; }

  @media (max-width: 47.99rem) {
    /* Ligne de liste : étoile · (pos + nom / cap + stats) · points · bouton */
    .draft-fa .draft-mug { display: none; }
    .draft-fa .draft-pos-inline { display: inline-flex; vertical-align: 1px; margin-right: 2px; }
    .draft-fa .draft-sm-meta { display: block; }
    .draft-fa .p-name { font-size: 15px; }
    table.data.draft-fa tr { gap: 8px; padding: 8px 12px 8px 6px; }
    table.data#trophy-list tr { padding-left: 12px; }
    table.data.draft-fa td.draft-pts {
      display: flex; flex-direction: column; align-items: flex-end; flex-shrink: 0; font-size: 22px;
    }
    .draft-pts-label {
      display: block; margin-top: 2px;
      font-family: var(--font); font-size: 10px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted);
    }
    table.data.draft-fa td.draft-col-act { flex-shrink: 0; width: auto; }
    table.data.draft-fa td.draft-col-star { width: auto; }
  }

  /* Listes internes aux cartes (Top 3, surveillance) */
  .draft-inner-list { background: var(--surface-2); border-color: transparent; }
  .draft-inner-list .list-row { padding: 10px 12px; }
  .draft-icon-btn { width: 44px; padding: 0; }

  .draft-wl-add { display: flex; flex-wrap: wrap; gap: 8px; align-items: flex-end; }
  .draft-wl-add .field { flex: 1 1 220px; }

  .draft-chip-n { font-family: var(--font-cond); font-weight: 800; font-size: 16px; line-height: 1; }

  /* ---------- Phase équipe : grille de logos ---------- */
  .draft-team-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  @media (min-width: 48rem) { .draft-team-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
  @media (min-width: 64rem) { .draft-team-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; } }
  .draft-team-btn {
    min-height: 64px; padding: 10px 12px; min-width: 0;
    display: flex; align-items: center; gap: 10px; text-align: left;
    border-radius: var(--r-md); border: 1px solid var(--border);
    background: var(--surface-2); color: var(--text);
    font-weight: 700; font-size: 14px; line-height: 1.2;
    transition: border-color .15s ease, background-color .15s ease;
  }
  .draft-team-btn:not(:disabled):hover { border-color: var(--red); background: color-mix(in srgb, var(--red) 8%, var(--surface-2)); }
  .draft-team-btn img.team-logo { width: 36px; height: 36px; flex-shrink: 0; }
  .draft-team-name { min-width: 0; display: flex; flex-direction: column; overflow-wrap: anywhere; }
  .draft-team-taken { font-size: 12px; font-weight: 600; color: var(--muted); }
  .draft-team-btn:disabled { opacity: .45; }

  /* ---------- Historique ---------- */
  .draft-hist-num {
    min-width: 32px; flex-shrink: 0; text-align: center;
    font-family: var(--font-cond); font-weight: 800; font-size: 20px; line-height: 1; color: var(--muted);
    font-variant-numeric: tabular-nums;
  }

  /* ---------- Progression ---------- */
  .draft-progress .list-main { gap: 6px; }
  .draft-progress .capbar { height: 6px; }
  .draft-progress .list-num strong { font-size: 20px; }
}
