/* =====================================================================================
 *  L'OR, LES BOOSTS ET LES JOUEURS EN VEDETTE (14/10/2026) — voir public/boutique-or.js
 * ===================================================================================== */
/* ---------- les compteurs (en haut de la partie et dans la boutique) ---------- */
.po-barre { display: flex; align-items: center; gap: 8px; flex: none; }
/* le bloc de l'accueil, au-dessus du « coup d'oeil » */
.card.po-accueil { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 12px; }
.card.po-accueil:empty { display: none; }
.po-accueil .po-puce { flex: 1; justify-content: space-between; min-width: 0; height: 44px; }
.po-accueil .po-puce b { flex: 1; text-align: left; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ts-h2 .po-barre { display: inline-flex; margin-left: 14px; vertical-align: middle; }
.po-puce { display: inline-flex; align-items: center; gap: 6px; height: 38px; padding: 0 4px 0 6px; border-radius: 10px;
    background: #0b1230; border: 1px solid #2c3d7a; box-shadow: inset 0 1px 0 #ffffff10; font-family: inherit; }
.po-puce img { width: 30px; height: 30px; object-fit: contain; filter: drop-shadow(0 2px 4px #0007); }
.po-puce b { font-weight: 900; font-size: 15px; color: #fff; min-width: 26px; padding-right: 6px; }
.po-plus { width: 26px; height: 26px; border-radius: 50%; border: 2px solid #c9d3f5; background: transparent; color: #fff; font-weight: 900; font-size: 16px; line-height: 1; cursor: pointer; padding: 0; }
.po-plus:hover { background: #ffffff1a; }
@media (max-width: 900px) {
    .po-puce { height: 32px; gap: 4px; }
    .po-puce img { width: 24px; height: 24px; }
    .po-puce b { font-size: 13px; min-width: 0; padding-right: 2px; }
    .po-plus { width: 22px; height: 22px; font-size: 14px; }
}
@media (max-width: 600px) { .ts-h2 .po-barre { display: flex; margin: 8px 0 0; } }

/* ---------- les cartes Or et Boosts ---------- */
.po-grille { display: grid; gap: 14px; margin-top: 12px; }
.po-g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.po-g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.po-carte { position: relative; display: flex; flex-direction: column; border-radius: 16px; padding: 12px 12px 10px;
    background: radial-gradient(circle at 50% 35%, #2a1f63, #140f33); border: 2px solid #5b3fd0; min-width: 0; }
.po-haut { display: flex; align-items: center; justify-content: flex-end; gap: 6px; }
.po-haut b { font-size: clamp(22px, 3vw, 32px); font-weight: 900; color: #fff; }
.po-haut img { width: 30px; height: 30px; object-fit: contain; }
.po-bonus { text-align: right; color: #34e7b9; font-weight: 800; font-size: 15px; min-height: 1.3em; }
.po-visuel { flex: 1; display: flex; align-items: center; justify-content: center; min-height: 130px; padding: 4px 0 8px; }
.po-visuel img { width: min(170px, 80%); aspect-ratio: 1; object-fit: contain; filter: drop-shadow(0 10px 16px #0009); }
.po-ruban { position: absolute; right: 10px; bottom: 64px; background: #a3134a; color: #fff; font-weight: 900; font-size: 11px; text-align: center;
    padding: 6px 8px; border-radius: 8px; max-width: 110px; line-height: 1.15; box-shadow: 0 4px 10px #0007; }
.po-btn { width: 100%; display: inline-flex; align-items: center; justify-content: center; gap: 6px; border: 0; border-radius: 12px; cursor: pointer;
    padding: 12px 8px; font-weight: 900; font-size: 18px; color: #05261f; background: linear-gradient(180deg, #34e7b9, #14b88f); box-shadow: 0 4px 0 #0b7a5f; }
.po-btn img { width: 36px; height: 36px; margin: -8px 0; object-fit: contain; }   /* 14/10 (Ju) : le lingot du prix bien visible */
.po-btn small { font-size: 11px; font-weight: 700; opacity: .7; }
.po-btn:disabled { filter: grayscale(.5) brightness(.7); cursor: not-allowed; box-shadow: none; }
.po-btn:not(:disabled):active { transform: translateY(2px); box-shadow: 0 2px 0 #0b7a5f; }
@media (max-width: 760px) { .po-g3, .po-g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .po-btn { font-size: 15px; } .po-visuel { min-height: 100px; } }

/* ---------- les joueurs en vedette ---------- */
.pv-entete { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin: 12px 0 10px; }
.pv-entete h3 { margin: 0; font-size: 20px; font-weight: 800; color: #fff; flex: 1; }
.pv-cd { color: #34e7b9; font-weight: 800; }
.pv-rafraichir { width: auto; padding: 8px 12px; font-size: 15px; }
.pv-rafraichir b { background: #0b1230; color: #fff; border-radius: 8px; padding: 3px 8px; }
.pv-grille { display: grid; grid-template-columns: minmax(220px, 300px) 1fr; gap: 14px; align-items: start; }
.pv-petites { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.pv-star, .pv-carte { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.pv-star-carte { border: 3px solid #e8c46a; border-radius: 16px; padding: 12px; background: linear-gradient(160deg, #2a2208, #0d0a03); box-shadow: 0 0 24px #e8c46a44; text-align: center; }
.pv-star-nom { font-weight: 900; font-size: 22px; color: #fff; border-bottom: 1px solid #e8c46a66; padding-bottom: 6px; }
.pv-star-club { color: #e9d9a8; font-weight: 700; font-size: 13px; margin-top: 6px; }
.pv-star-visage { height: 190px; display: flex; align-items: flex-end; justify-content: center; margin: 6px 0; }
.pv-star-visage .pv-photo { height: 100%; width: auto; max-width: 100%; object-fit: contain; }
.pv-carte { border: 2px solid #5b3fd0; border-radius: 14px; padding: 10px; background: radial-gradient(circle at 50% 30%, #2a1f63, #140f33); }
.pv-ligne { display: flex; gap: 8px; align-items: center; }
.pv-visage { width: 72px; height: 72px; flex: none; border-radius: 10px; overflow: hidden; background: #0b1230; display: flex; align-items: flex-end; justify-content: center; }
.pv-visage .pv-photo { width: 100%; height: 100%; object-fit: cover; object-position: 50% 15%; }
.pv-infos { min-width: 0; flex: 1; }
.pv-nom { font-weight: 900; font-size: 15px; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; cursor: pointer; }
.pv-club { color: #5eead4; font-weight: 700; font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-bottom: 4px; }
.pv-trio { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 4px; text-align: center; }
.pv-trio span { display: block; font-size: 10px; font-weight: 800; color: #9fb3ff; }
.pv-trio b { font-size: 16px; font-weight: 900; color: #fff; }
.pv-pos { color: #ff8c5a !important; }
.pv-note { width: 40px; height: 40px; border-radius: 50%; border: 4px solid #2f9e5a; display: flex; align-items: center; justify-content: center; font-weight: 900; color: #fff; background: #0b1230; }
.pv-note.or { width: 52px; height: 52px; border-color: #e8c46a; font-size: 20px; color: #e8c46a; }
.pv-prix { font-size: 16px; gap: 8px; }
.pv-prix img { width: 30px; height: 30px; margin: -6px 0; }   /* 14/10 (Ju) : lingot plus gros */
/* 14/10 (Ju : « nom des postes trop decale ») : age, note et poste sur leur propre ligne, sous la photo */
.pv-trio-bas { padding: 2px 6px 0; }
.pv-trio-bas > div:first-child { text-align: left; }
.pv-trio-bas > div:last-child { text-align: right; }
.pv-prix s { opacity: .65; text-decoration-color: #c4122f; text-decoration-thickness: 3px; }
@media (max-width: 860px) { .pv-grille { grid-template-columns: 1fr; } .pv-petites { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px) { .pv-petites { grid-template-columns: 1fr; } }

/* le bloc « joueurs en vedette » de l'accueil (14/10/2026) */
.card.bloc-vedette { background: radial-gradient(circle at 20% 30%, #3a2a08, #140e03) !important; border: 2px solid #e8c46a !important; box-shadow: 0 0 22px #e8c46a33; padding: 14px; }
.card.bloc-vedette:empty { display: none; }
.bv-tete { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; flex-wrap: wrap; margin-bottom: 8px; }
.bv-sur { font-size: 12px; font-weight: 900; letter-spacing: .14em; text-transform: uppercase; color: #ffd76a; }
.bv-cd { font-size: 12px; font-weight: 800; color: #34e7b9; }
.bv-corps { display: flex; gap: 12px; cursor: pointer; flex-wrap: wrap; }
.bv-star { display: flex; gap: 10px; flex: 1 1 230px; min-width: 0; }
.bv-visage { width: 84px; height: 84px; flex: none; border-radius: 12px; overflow: hidden; background: #0b0802; border: 2px solid #e8c46a; display: flex; align-items: flex-end; justify-content: center; }
.bv-visage img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 15%; }
.bv-visage.p { width: 46px; height: 46px; border-width: 1px; }
.bv-id { min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.bv-id b { font-size: 16px; font-weight: 900; color: #fff3cf; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bv-id > span { font-size: 12px; color: #e9d9a8; }
.bv-trio { display: flex; align-items: center; gap: 8px; }
.bv-trio .pv-note.or { width: 38px; height: 38px; font-size: 15px; border-width: 3px; }
.bv-pos { color: #ff8c5a; font-weight: 900; }
.bv-prix { display: inline-flex; align-items: center; gap: 4px; font-weight: 900; color: #fff; }
.bv-prix s { opacity: .55; text-decoration-color: #c4122f; text-decoration-thickness: 2px; }
.bv-prix img { width: 20px; height: 20px; object-fit: contain; }
.bv-prix.p { font-size: 13px; }
.bv-autres { display: flex; flex-direction: column; gap: 6px; flex: 1 1 170px; min-width: 0; }
.bv-mini { display: flex; gap: 8px; align-items: center; min-width: 0; }
.bv-mini b { display: block; font-size: 13px; color: #fff3cf; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bv-mini span { font-size: 11px; color: #e9d9a8; }
.bv-btn { margin-top: 10px; font-size: 15px; padding: 10px; }

/* 14/10/2026 (tour mobile) : sur un petit telephone, les trois compteurs de l'accueil imposaient leur
   largeur minimale a toute la grille (la page debordait de ~20 px). Ils se tassent, et la grille de
   l'accueil peut toujours retrecir. */
@media (max-width: 1099px) { .home { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 440px) {
    .card.po-accueil { gap: 5px; padding: 10px 8px; }
    .po-accueil .po-puce { gap: 3px; padding: 0 2px 0 4px; height: 38px; }
    .po-accueil .po-puce img { width: 22px; height: 22px; }
    .po-accueil .po-puce b { font-size: 12.5px; min-width: 0; padding-right: 0; }
    .po-accueil .po-plus { width: 20px; height: 20px; flex: none; }
}

/* 14/10/2026 (Ju) : meme chose pour le « + » des compteurs : il reste rond sur un ecran tactile. */
.po-plus { min-height: 0; min-width: 0; flex: none; aspect-ratio: 1; }

/* 14/10/2026 (Ju : « j'aime pas l'ecriture, reste a l'ecriture normale du jeu ») : l'ecran « Achats du jeu »
   (titre et compteurs) quitte la police d'apparat de l'ecran-titre pour celle du jeu. */
#titlescreen .ts-h2:has(~ .bp-onglets), #titlescreen .ts-h2:has(.po-barre), .po-barre, .po-puce {
    font-family: 'Segoe UI', system-ui, sans-serif; }
#titlescreen .ts-h2:has(~ .bp-onglets), #titlescreen .ts-h2:has(.po-barre) { font-weight: 800; font-size: 26px; }
@media (max-width: 600px) { #titlescreen .ts-h2:has(~ .bp-onglets), #titlescreen .ts-h2:has(.po-barre) { font-size: 22px; } }

/* 14/10/2026 : la section Prestige de l'onglet Packs (clubs de plus d'1 Md€) */
.pg-bloc { margin: 10px 0 18px; padding: 14px; border-radius: 16px; border: 1px solid #e8c46a66; background: linear-gradient(160deg, #2a2108, #0f0c04); }
.pg-sur { font-size: 12px; font-weight: 800; letter-spacing: .22em; text-transform: uppercase; color: #e8c46a; text-align: center; }
.pg-titre { font-size: 20px; font-weight: 800; color: #fff6dc; text-align: center; margin: 2px 0 12px; }
#titlescreen .bq-pack.pg-carte { border-color: #e8c46a55; }
.pg-montant { font-size: 26px; font-weight: 900; color: #ffd76a; text-align: center; margin: 4px 0; }
.pg-visages { display: flex; justify-content: center; margin: 8px 0; }
.pg-visages img { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; border: 2px solid #e8c46a; margin: 0 -8px; background: #1a1406; box-shadow: 0 4px 12px #0008; }
#titlescreen .bq-pack.pg-rose { border-color: #ff7eb6; background: linear-gradient(160deg, #3a0f26, #170610); }
.pg-rose .pg-visages img { border-color: #ff7eb6; }
#titlescreen .bq-pack.pg-rose .bq-prix { color: #ff9ad6; }
