/* Styles du produit « Assistant de repêchage » — partagés par la page de vente
   (assistant.html) et par l'outil lui-même (outil.html). Un seul fichier plutôt
   que deux blocs en ligne : le bandeau et la palette sont communs aux deux, et
   les voir diverger serait la première chose qui trahirait le découpage. */
.o-bandeau { background: var(--nuit); padding: 18px 0; }
.o-bandeau .enveloppe { display: flex; align-items: center; gap: 14px; }
.o-bandeau .logo { height: 30px; }
.o-bandeau .titre { color: #fff; font-weight: 700; font-size: .95rem; }

/* ---- présentation ---- */
.o-hero {
  background:
    radial-gradient(760px 380px at 80% -10%, rgba(212,35,46,.26), transparent 60%),
    var(--nuit);
  color: #fff; padding: 70px 0 66px;
}
.o-hero h1 {
  font-size: clamp(2rem, 5vw, 3.1rem); font-weight: 900; letter-spacing: -.03em;
  line-height: 1.06; margin: 0 0 16px; max-width: 18ch;
}
.o-hero h1 em { font-style: normal; color: #ff6b74; }
.o-hero p { color: #bfd0e2; font-size: 1.08rem; line-height: 1.6; max-width: 54ch; margin: 0 0 28px; }
/* Le prix sur sa ligne, les boutons sur la suivante. Côte à côte, les trois
   font près de 500 px : sur un téléphone de 390 px ils se réarrangeaient en
   escalier, le prix orphelin d'un côté et un bouton de l'autre. */
.o-prix-ligne { display: flex; flex-direction: column; align-items: flex-start; gap: 22px; }
.o-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.o-prix { font-size: 2.2rem; font-weight: 900; letter-spacing: -.02em; }
.o-prix small { font-size: .95rem; font-weight: 500; color: #9fb3c8; display: block; }

.o-grille { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(min(260px,100%), 1fr)); }
.o-carte { background: var(--surface); border: 1px solid var(--bord); border-radius: var(--r); padding: 22px; }
.o-carte h3 { font-size: 1rem; margin: 0 0 7px; }
.o-carte p { margin: 0; color: var(--texte-doux); font-size: .92rem; line-height: 1.56; }
.o-num {
  width: 34px; height: 34px; border-radius: 9px; background: var(--accent-doux); color: var(--accent);
  display: grid; place-items: center; font-weight: 800; margin-bottom: 13px;
}

/* ---- outil ---- */
.o-entete {
  background: var(--surface); border-bottom: 1px solid var(--bord);
  position: sticky; top: 0; z-index: 20; padding: 12px 0;
}
.o-entete .enveloppe { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
.o-budget {
  margin-left: auto; text-align: right; font-variant-numeric: tabular-nums;
}
.o-budget b { display: block; font-size: 1.25rem; font-weight: 800; letter-spacing: -.02em; }
.o-budget.depasse b { color: var(--accent); }

.o-onglets { display: flex; gap: 4px; flex-wrap: wrap; }
.o-onglets button {
  padding: 7px 14px; font-size: .88rem; border-radius: 999px;
  border: 1px solid var(--bord); background: var(--surface-2); color: var(--texte-doux);
}
.o-onglets button.actif { background: var(--nuit); border-color: var(--nuit); color: #fff; }

table.o-liste td { padding: 9px 8px; vertical-align: middle; }
table.o-liste .rang { font-weight: 800; color: var(--texte-doux); width: 30px; font-variant-numeric: tabular-nums; }
table.o-liste tr.hors-budget { opacity: .5; }
table.o-liste td.num { white-space: nowrap; }
.o-proj { font-weight: 800; font-size: 1.02rem; }
.o-mince { font-size: .7rem; color: var(--texte-doux); }

.o-pris { max-height: 340px; overflow-y: auto; }
.o-pris li {
  list-style: none; display: flex; gap: 8px; align-items: center;
  padding: 6px 0; border-bottom: 1px solid var(--bord); font-size: .9rem;
}
.o-pris li:last-child { border-bottom: none; }

/* ---- aperçu de la page de vente ---- */
.o-titre2 { font-size: 1.35rem; font-weight: 800; letter-spacing: -.02em; margin: 52px 0 18px; }
.o-apercu {
  border: 1px solid var(--bord); border-radius: var(--r); overflow: hidden; background: var(--surface);
}
.o-apercu-entete {
  display: flex; align-items: center; gap: 6px; flex-wrap: wrap;
  padding: 12px 16px; border-bottom: 1px solid var(--bord); background: var(--surface-2);
}
.o-puce {
  padding: 5px 12px; font-size: .82rem; border-radius: 999px;
  border: 1px solid var(--bord); background: var(--surface); color: var(--texte-doux);
}
.o-puce.actif { background: var(--nuit); border-color: var(--nuit); color: #fff; }
.o-apercu-budget { margin-left: auto; font-weight: 800; font-variant-numeric: tabular-nums; }
.o-apercu-budget small { display: block; font-weight: 500; font-size: .72rem; color: var(--texte-doux); }
.o-apercu table { width: 100%; border-collapse: collapse; }
.o-apercu td { padding: 11px 16px; border-bottom: 1px solid var(--bord); font-size: .93rem; }
.o-apercu tr:last-child td { border-bottom: none; }
.o-apercu .r { font-weight: 800; color: var(--texte-doux); width: 26px; }
.o-apercu .eq { color: var(--texte-doux); font-size: .8rem; }
.o-apercu .n { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.o-apercu .p { font-weight: 800; font-size: 1.02rem; }
.o-apercu .btn {
  display: inline-block; padding: 5px 12px; font-size: .8rem; border-radius: 8px;
  background: var(--accent); color: #fff; font-weight: 600;
}
.o-apercu-pied { margin: 0; padding: 11px 16px; font-size: .78rem; color: var(--texte-doux); background: var(--surface-2); }

.o-achat { max-width: 430px; }

/* Sous cette largeur, deux boutons ne tiennent plus côte à côte : empilés et
   pleine largeur, ils font aussi de meilleures cibles au doigt. */
@media (max-width: 480px) {
  .o-actions { width: 100%; }
  .o-actions .p-btn { flex: 1 1 100%; justify-content: center; }
}

/* L'aperçu est décoratif : sur un écran étroit, il ne doit ni déborder ni
   rétrécir le texte de vente. */
@media (max-width: 520px) {
  .o-apercu td { padding: 9px 10px; font-size: .86rem; }
  .o-apercu .eq { display: block; }
}

/* ---- fiche d'un joueur dépliée dans la liste de l'outil ---- */
table.o-liste tr.o-rang { cursor: pointer; }
table.o-liste tr.o-rang:hover { background: var(--surface-2); }
/* La ligne de détail ne doit pas réagir au survol comme une ligne de joueur :
   elle n'est pas cliquable, et le laisser croire serait trompeur. */
table.o-liste tr.o-detail:hover { background: none; }
table.o-liste tr.o-detail > td { padding: 0 8px 14px; }

.o-fiche-tete {
  display: flex; align-items: baseline; gap: 18px; flex-wrap: wrap;
  margin-bottom: 12px;
}
.o-fiche-tete > div:first-child { margin-right: auto; }
.o-fiche-proj { text-align: right; }
.o-fiche-proj b {
  display: block; font-size: 1.3rem; font-weight: 800;
  letter-spacing: -.02em; line-height: 1.1;
}

@media (max-width: 520px) {
  .o-fiche-tete { gap: 12px; }
  .o-fiche-proj { text-align: left; }
}

/* ---- bande d'argument, pleine largeur ----
   Une cinquième carte aurait laissé un trou en bout de rangée : la grille est
   en auto-fit, et 5 ne se divise proprement ni par 2, ni par 3, ni par 4. */
.o-bande {
  display: flex; gap: 26px; align-items: flex-start;
  background: var(--surface); border: 1px solid var(--bord);
  border-left: 4px solid var(--accent); border-radius: var(--r);
  padding: 26px 28px; margin-top: 20px;
}
.o-bande h3 { font-size: 1.12rem; margin: 0 0 8px; }
.o-bande p { margin: 0; color: var(--texte-doux); line-height: 1.6; font-size: .94rem; max-width: 74ch; }
.o-bande-note { margin-top: 10px !important; font-size: .85rem !important; opacity: .85; }
.o-bande-chiffre { flex: none; text-align: center; padding-top: 2px; }
.o-bande-chiffre b {
  display: block; font-size: 2.6rem; font-weight: 900;
  letter-spacing: -.03em; line-height: 1; color: var(--accent);
}
.o-bande-chiffre span { font-size: .78rem; color: var(--texte-doux); }

/* Colonne des matchs dans l'aperçu */
.o-apercu .m { color: var(--texte-doux); font-weight: 700; }
.o-apercu .n small { display: block; font-weight: 500; font-size: .68rem; color: var(--texte-doux); }

@media (max-width: 620px) {
  .o-bande { flex-direction: column; gap: 14px; padding: 22px; }
  .o-bande-chiffre { text-align: left; display: flex; align-items: baseline; gap: 8px; }
  .o-bande-chiffre b { font-size: 2.1rem; }
  /* Six colonnes ne tiennent pas : le salaire cède la place, il n'apparaît de
     toute façon que sous plafond. */
  .o-apercu td:nth-child(3) { display: none; }
}
