/* 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 .titre {
  color: #C9CED1; padding-left: 14px; border-left: 1px solid rgba(255,255,255,.18);
  font-family: var(--police-etiquette); font-weight: 600; font-size: 1.1rem; letter-spacing: .04em;
}
@media (max-width: 480px) { .o-bandeau .marque-mot { font-size: 1.2rem; } .o-bandeau .titre { font-size: .95rem; } }

/* ---- présentation ---- */
.o-hero {
  background: var(--nuit); border-bottom: 6px solid var(--accent);
  color: #fff; padding: 72px 0 68px;
}
.o-hero h1 {
  font-size: clamp(3rem, 9vw, 5.6rem); font-weight: 900;
  line-height: .9; margin: 0 0 20px; max-width: 14ch;
}
.o-hero h1 em { font-style: normal; color: var(--vif); }
.o-hero p { color: #C3D3EE; 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-family: var(--police-titre); font-size: 3.4rem; font-weight: 900; line-height: .9; }
.o-prix small {
  display: block; margin-top: 6px; color: #93A6C4;
  font-family: var(--police-etiquette); font-size: 1rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase;
}

.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 {
  font-family: var(--police-titre); font-size: 2.6rem; font-weight: 900; line-height: 1;
  color: var(--vif-texte); margin-bottom: 10px;
}

/* ---- 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-family: var(--police-titre); font-size: 1.7rem; font-weight: 900; line-height: 1; }
.o-budget.depasse b { color: var(--accent-lien); }

.o-onglets { display: flex; gap: 4px; flex-wrap: wrap; }
.o-onglets button {
  padding: 7px 14px; font-size: .92rem; border-radius: 0;
  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-family: var(--police-titre); font-size: 1.4rem; font-weight: 900; color: var(--texte-doux); width: 34px; font-variant-numeric: tabular-nums; }
table.o-liste tr.hors-budget { opacity: .5; }
table.o-liste td.num { white-space: nowrap; }
.o-proj { font-family: var(--police-titre); font-weight: 900; font-size: 1.45rem; line-height: 1; }
.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: 2.6rem; font-weight: 900; margin: 60px 0 20px; }
.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; border-radius: 0;
  font-family: var(--police-etiquette); font-size: .9rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase;
  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-family: var(--police-titre); font-size: 1.35rem; font-weight: 900; line-height: 1; font-variant-numeric: tabular-nums; }
.o-apercu-budget small { display: block; font-family: var(--police); 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-family: var(--police-titre); font-size: 1.4rem; font-weight: 900; color: var(--texte-doux); width: 30px; }
.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-family: var(--police-titre); font-weight: 900; font-size: 1.5rem; line-height: 1; }
.o-apercu .btn {
  display: inline-block; padding: 5px 12px; border-radius: 0;
  background: var(--accent); color: #fff;
  font-family: var(--police-etiquette); font-size: .88rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
}
.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-family: var(--police-titre); font-size: 1.8rem; font-weight: 900; line-height: 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.25rem; 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-family: var(--police-titre); font-size: 4.4rem; font-weight: 900;
  line-height: .9; color: var(--vif-texte);
}
.o-bande-chiffre span { font-family: var(--police-etiquette); font-size: .9rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--texte-doux); }

/* Colonne des matchs dans l'aperçu */
.o-apercu .m { color: var(--texte-doux); font-family: var(--police-titre); font-size: 1.25rem; font-weight: 800; }
.o-apercu .n small { display: block; font-family: var(--police); 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: 3.2rem; }
  /* 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; }
}
