/* ==========================================================
   Repêchage (EntryDraftProjection.php)
   ========================================================== */

.repechage-page { display: grid; gap: 2rem; max-width: 64rem; min-width: 0; }
.repechage-page__entete { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; }
.repechage-page__entete .titre-section { margin-bottom: 0; }

.repechage-section { display: grid; gap: 1rem; min-width: 0; scroll-margin-top: 1rem; }
.repechage-section__entete { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: .75rem 1rem; }
.repechage-section__titre { font-size: 1.6rem; }
.repechage-section__entete p { margin: .25rem 0 0; font-size: .9rem; max-width: 42rem; }
.repechage__equipe select {
    font: inherit;
    font-weight: 600;
    color: var(--texte);
    background: var(--surface);
    border: 1px solid var(--trait);
    border-radius: var(--rayon);
    padding: .45rem .6rem;
}

/* Onglets (rondes, saisons) */
.rondes, .repechage-section__entete .filtres__groupe { flex-wrap: wrap; justify-self: start; }
.filtres__groupe a {
    padding: .35rem .85rem;
    border-radius: 999px;
    color: var(--texte-2);
    font-weight: 700;
    font-size: .9rem;
}
.filtres__groupe a:hover { color: var(--texte); text-decoration: none; }
.filtres__groupe a[aria-current] { background: var(--accent-fond); color: var(--accent-texte); }

/* ---------- Choix d'une ronde ---------- */
.choix-ronde, .choix-liste { list-style: none; margin: 0; padding: .25rem 0; }
.choix-ronde[hidden] { display: none; }
.choix {
    display: grid;
    grid-template-columns: 2.5rem minmax(0, 1fr) minmax(6rem, auto) 7.5rem;
    align-items: center;
    gap: .75rem;
    padding: .5rem 1rem;
    border-bottom: 1px solid var(--trait);
}
.choix:last-child { border-bottom: 0; }
.choix:hover { background: var(--surface-2); }
.choix__total { font-family: var(--police-titre); font-size: 1.5rem; font-weight: 800; text-align: right; font-variant-numeric: tabular-nums; }
.choix__equipe { display: flex; align-items: center; gap: .6rem; color: var(--texte); min-width: 0; }
.choix__equipe:hover { color: var(--bleu); text-decoration: none; }
.choix__equipe img { width: 32px; height: 32px; flex: none; }
.choix__equipe span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.choix__via { display: inline-flex; align-items: center; gap: .4rem; color: var(--texte-2); font-size: 1rem; font-weight: 700; white-space: nowrap; }
.choix__via img { width: 30px; height: 30px; }
.choix__fiche { text-align: right; font-variant-numeric: tabular-nums; font-size: .9rem; font-weight: 700; white-space: nowrap; }
.choix--echange .choix__total { color: var(--bleu); }

/* Choix d'une équipe */
.mes-choix { display: grid; gap: .75rem; }
.mes-choix__titre { display: flex; align-items: center; gap: .6rem; font-size: 1.3rem; }
.mes-choix__titre img { width: 36px; height: 36px; }
.mes-choix .choix { grid-template-columns: 2.5rem minmax(0, 1fr) auto; padding-left: 0; padding-right: 0; }
.choix__ronde { font-weight: 700; }
.mes-choix__cedes { margin: 0; color: var(--texte-2); font-size: .9rem; }
.mes-choix p { margin: 0; }

/* ---------- Repêchages précédents ---------- */
.premiere-ronde {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 19rem), 1fr));
    gap: .6rem;
}
.premier-choix { display: flex; align-items: center; gap: .7rem; padding: .6rem .8rem; min-width: 0; }
.premier-choix__rang {
    display: grid;
    place-items: center;
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    background: var(--surface-2);
    font-family: var(--police-titre);
    font-weight: 800;
    flex: none;
}
.premier-choix:nth-child(-n+3) .premier-choix__rang { background: var(--or); color: var(--fond); }
.premier-choix__logo img { width: 34px; height: 34px; display: block; }
.premier-choix__texte { display: grid; min-width: 0; line-height: 1.3; }
.premier-choix__texte a { color: var(--texte); font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.premier-choix__texte a:hover { color: var(--bleu); }
.premier-choix__texte span { font-size: .8rem; }
.premier-choix--inconnu { opacity: .7; }

@media (max-width: 640px) {
    .choix { grid-template-columns: 2rem minmax(0, 1fr) auto; }
    .choix__fiche { display: none; }
    .repechage__equipe, .repechage__equipe select { width: 100%; }
}

/* Loterie (1re ronde) : chances avant le tirage, effet après */
.choix__loterie { padding: .05rem .45rem; border: 1px solid var(--trait); border-radius: 999px; font-size: .78rem; font-weight: 700; color: var(--texte-2); }
.choix__loterie--monte { color: var(--monte); border-color: var(--monte); }
.choix__loterie--baisse { color: var(--baisse); border-color: var(--baisse); }
