/* Prono — feuille de style. Thème clair façon Apple, thématique football. */
:root {
  --fond: #f5f5f7;
  --carte: #ffffff;
  --texte: #1d1d1f;
  --muet: #6e6e73;
  --ligne: rgba(0, 0, 0, .08);
  --vert: #0bb04b;
  --vert-fonce: #087a35;
  --vert-clair: #e6f8ec;
  --bleu: #0071e3;
  --rouge: #ff3b30;
  --rouge-clair: #ffe9e7;
  --or: #ffb800;
  --argent: #b9bcc6;
  --bronze: #d2863a;
  --rayon: 24px;
  --rayon-s: 14px;
  --ombre: 0 2px 6px rgba(0, 0, 0, .04), 0 12px 32px rgba(0, 0, 0, .06);
  --ombre-forte: 0 20px 60px rgba(0, 0, 0, .18);
  --police: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Helvetica Neue", "Segoe UI", Roboto, system-ui, sans-serif;
  --nav-bas: 0px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--fond); color: var(--texte); font-family: var(--police);
  font-size: 16px; line-height: 1.45; -webkit-font-smoothing: antialiased;
  min-height: 100vh; padding-bottom: calc(var(--nav-bas) + env(safe-area-inset-bottom));
}
a { color: var(--bleu); text-decoration: none; }
h1, h2, h3 { margin: 0; letter-spacing: -.02em; line-height: 1.15; }
p { margin: 0; }
img { display: block; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }
.aide { color: var(--muet); font-size: .9rem; }
.centre { display: block; text-align: center; }
.lien-discret { color: var(--muet); font-size: .9rem; }
.lien-discret:hover { color: var(--texte); }
small { font-weight: 500; }

/* ----- Entête ----- */
.entete {
  position: sticky; top: 0; z-index: 20; backdrop-filter: saturate(180%) blur(20px); -webkit-backdrop-filter: saturate(180%) blur(20px);
  background: rgba(245, 245, 247, .78); border-bottom: 1px solid var(--ligne);
  padding-top: env(safe-area-inset-top);
}
.entete-int { max-width: 1080px; margin: 0 auto; padding: 10px 20px; display: flex; align-items: center; gap: 24px; }
.logo { display: flex; align-items: center; gap: 10px; color: var(--texte); font-weight: 800; font-size: 1.25rem; letter-spacing: -.03em; }
.logo-ballon { width: 30px; height: 30px; background: url("/static/img/icone.svg") center/contain no-repeat; }
.nav-haut { display: none; gap: 4px; margin-left: 8px; }
.nav-haut a { color: var(--muet); font-weight: 600; font-size: .95rem; padding: 8px 14px; border-radius: 999px; transition: background .2s, color .2s; }
.nav-haut a:hover { color: var(--texte); background: rgba(0, 0, 0, .05); }
.nav-haut a.actif { color: var(--texte); background: rgba(0, 0, 0, .07); }
.nav-haut a.admin-lien { color: var(--vert-fonce); }
.moi { margin-left: auto; display: flex; align-items: center; gap: 10px; color: var(--texte); }
.moi-points { font-weight: 700; font-variant-numeric: tabular-nums; background: var(--vert-clair); color: var(--vert-fonce); padding: 6px 12px; border-radius: 999px; font-size: .9rem; }
.moi-skin { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; background: #fff; box-shadow: 0 0 0 2px #fff, 0 2px 8px rgba(0, 0, 0, .15); }
@media (min-width: 820px) { .nav-haut { display: flex; } }

/* ----- Navigation basse (mobile) ----- */
.nav-bas {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; display: flex; justify-content: space-around;
  background: rgba(255, 255, 255, .86); backdrop-filter: saturate(180%) blur(20px); -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-top: 1px solid var(--ligne); padding: 6px 4px calc(6px + env(safe-area-inset-bottom));
}
.nav-bas a { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px; color: var(--muet); font-size: .68rem; font-weight: 600; padding: 4px 0; }
.nav-bas a.actif { color: var(--vert-fonce); }
.ic { width: 24px; height: 24px; background: currentColor; -webkit-mask: var(--m) center/contain no-repeat; mask: var(--m) center/contain no-repeat; }
.ic-matchs { --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 3v4l-3.5 2.5 1.3 4h4.4l1.3-4L12 7M5 9.5l3.5 0M19 9.5l-3.5 0M7.5 19l1.3-4M16.5 19l-1.3-4'/%3E%3C/svg%3E"); }
.ic-pronos { --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='4' y='3' width='16' height='18' rx='3'/%3E%3Cpath d='M8 8h8M8 12h8M8 16h5'/%3E%3C/svg%3E"); }
.ic-classement { --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M8 21h8M12 17v4M7 4h10v5a5 5 0 0 1-10 0zM7 6H4a3 3 0 0 0 3 4M17 6h3a3 3 0 0 1-3 4'/%3E%3C/svg%3E"); }
.ic-admin { --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3l8 3v6c0 4.5-3.5 7.5-8 9-4.5-1.5-8-4.5-8-9V6z'/%3E%3Cpath d='M9 12l2 2 4-4'/%3E%3C/svg%3E"); }
.ic-profil { --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='8' r='4'/%3E%3Cpath d='M4 21a8 8 0 0 1 16 0'/%3E%3C/svg%3E"); }
body:has(.nav-bas) { --nav-bas: 64px; }
@media (min-width: 820px) { .nav-bas { display: none; } body:has(.nav-bas) { --nav-bas: 0px; } }

/* ----- Mise en page ----- */
.principal { max-width: 1080px; margin: 0 auto; padding: 20px 16px 40px; }
@media (min-width: 600px) { .principal { padding: 28px 24px 48px; } }
.titre-page { font-size: 2rem; font-weight: 800; margin-bottom: 18px; }
.titre-bloc { font-size: 1.3rem; font-weight: 700; margin: 28px 0 12px; display: flex; align-items: center; gap: 10px; }
.titre-section { font-size: 1.15rem; font-weight: 700; margin: 22px 0 6px; }
.compteur { font-size: .8rem; font-weight: 700; background: var(--texte); color: #fff; border-radius: 999px; padding: 2px 9px; }
.carte { background: var(--carte); border-radius: var(--rayon); box-shadow: var(--ombre); padding: 20px; margin-bottom: 14px; }
.carte-vide { text-align: center; color: var(--muet); padding: 36px 20px; }
.carte-vide .btn { margin-top: 14px; }
.carte-centre { text-align: center; max-width: 480px; margin: 60px auto; }
.carte-centre h1 { font-size: 3rem; }
.carte-centre p { margin: 10px 0 20px; color: var(--muet); }
.flashs { margin-bottom: 14px; }
.flash { border-radius: var(--rayon-s); padding: 12px 16px; font-weight: 500; margin-bottom: 8px; }
.flash-ok { background: var(--vert-clair); color: var(--vert-fonce); }
.flash-erreur { background: var(--rouge-clair); color: #b3261e; }
.flash-info { background: #e8f1ff; color: #0b4a9e; }
.pied-info { color: var(--muet); font-size: .8rem; text-align: center; margin-top: 30px; }

/* ----- Boutons et formulaires ----- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; border-radius: 999px;
  padding: 12px 22px; font-weight: 700; font-size: 1rem; transition: transform .15s, box-shadow .2s, background .2s, opacity .2s;
  -webkit-tap-highlight-color: transparent; user-select: none;
}
.btn:active { transform: scale(.96); }
.btn:disabled { opacity: .5; cursor: default; }
.btn-principal { background: linear-gradient(135deg, #12c457, #0a9a42); color: #fff; box-shadow: 0 6px 18px rgba(11, 176, 75, .35); }
.btn-principal:hover { box-shadow: 0 8px 24px rgba(11, 176, 75, .45); }
.btn-secondaire { background: #e8e8ed; color: var(--texte); }
.btn-secondaire:hover { background: #dedee4; }
.btn-danger { background: var(--rouge-clair); color: #b3261e; }
.btn-large { width: 100%; padding: 15px 22px; font-size: 1.05rem; }
.btn.petit { padding: 8px 14px; font-size: .85rem; }
.formulaire label { display: flex; flex-direction: column; gap: 6px; font-weight: 600; font-size: .9rem; color: var(--muet); margin-bottom: 14px; }
.formulaire input, .formulaire select, .admin-score input {
  width: 100%; border: 1.5px solid transparent; background: #f0f0f3; border-radius: var(--rayon-s); padding: 13px 14px; font-size: 1.05rem; color: var(--texte);
  transition: border-color .2s, background .2s; outline: none; -webkit-appearance: none; appearance: none;
}
.formulaire select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236e6e73' stroke-width='2.5' stroke-linecap='round'%3E%3Cpath d='M7 10l5 5 5-5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; background-size: 18px; padding-right: 40px; }
.formulaire input:focus, .formulaire select:focus, .admin-score input:focus { border-color: var(--vert); background: #fff; }
.formulaire .btn { margin-top: 6px; }
.grille-2 { display: grid; grid-template-columns: 1fr; gap: 0 16px; }
.grille-3 { display: grid; grid-template-columns: 1fr; gap: 0 16px; }
@media (min-width: 600px) { .grille-2 { grid-template-columns: 1fr 1fr; } .grille-3 { grid-template-columns: 1fr 1fr 1fr; } }
.boutons { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
.boutons.compacts { margin: 0; gap: 6px; }
.badge-admin { display: inline-block; vertical-align: middle; font-size: .72rem; font-weight: 700; letter-spacing: .02em; background: var(--vert-clair); color: var(--vert-fonce); border-radius: 999px; padding: 3px 9px; }
.badge-admin.petit { font-size: .65rem; padding: 2px 7px; }

/* ----- Pages d'entrée (connexion, inscription, oubli) ----- */
.page-entree { background: #062f16; min-height: 100vh; }
.page-entree .principal { display: flex; align-items: center; justify-content: center; min-height: 100vh; padding: 24px 16px; position: relative; z-index: 1; }
.stade { position: fixed; inset: 0; overflow: hidden; background: radial-gradient(120% 90% at 50% 0%, #15a24c 0%, #0b6b30 45%, #04240f 100%); }
.stade-lignes {
  position: absolute; inset: -10% -10% -10% -10%;
  background:
    repeating-linear-gradient(90deg, rgba(255, 255, 255, .035) 0 80px, rgba(255, 255, 255, 0) 80px 160px),
    radial-gradient(circle at 50% 50%, transparent 118px, rgba(255, 255, 255, .22) 119px, rgba(255, 255, 255, .22) 121px, transparent 122px),
    linear-gradient(rgba(255, 255, 255, .2), rgba(255, 255, 255, .2)) 50% 50% / 2px 100% no-repeat;
  transform: perspective(900px) rotateX(55deg) translateY(-12%); transform-origin: 50% 20%;
}
.stade-halo { position: absolute; top: -30%; left: 50%; width: 120vw; height: 60vh; transform: translateX(-50%); background: radial-gradient(ellipse at center, rgba(255, 255, 255, .22), transparent 60%); animation: halo 6s ease-in-out infinite alternate; }
@keyframes halo { from { opacity: .6; } to { opacity: 1; } }
.carte-entree {
  width: 100%; max-width: 440px; background: rgba(255, 255, 255, .96); border-radius: 32px; padding: 32px 26px 26px; box-shadow: var(--ombre-forte);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
}
.carte-entree.carte-large { max-width: 760px; }
.carte-entree h1 { font-size: 2rem; font-weight: 800; }
.carte-entree .sous-titre { color: var(--muet); margin: 6px 0 20px; }
.entree-logo { text-align: center; margin-bottom: 22px; }
.entree-logo h1 { font-size: 2.6rem; margin-top: 10px; }
.entree-liens { display: flex; flex-direction: column; align-items: center; gap: 14px; margin-top: 14px; }
.retour { display: inline-block; color: var(--muet); font-weight: 600; margin-bottom: 10px; }
.question-secrete { background: var(--vert-clair); color: var(--vert-fonce); font-weight: 700; padding: 14px 16px; border-radius: var(--rayon-s); margin-bottom: 14px; }
.ballon-3d {
  display: inline-block; width: 72px; height: 72px; border-radius: 50%;
  background:
    radial-gradient(circle at 30% 30%, rgba(255, 255, 255, .9) 0 8%, transparent 30%),
    url("/static/img/icone.svg") center/100% no-repeat;
  box-shadow: 0 18px 30px rgba(0, 0, 0, .25), inset -8px -10px 20px rgba(0, 0, 0, .25);
  animation: rebond 1.6s cubic-bezier(.3, 0, .2, 1) infinite;
}
.ballon-3d.grand { width: 90px; height: 90px; }
@keyframes rebond { 0%, 100% { transform: translateY(0) rotate(0deg); } 50% { transform: translateY(-16px) rotate(25deg); } }

/* Skins */
.grille-skins { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 10px; margin: 12px 0 16px; max-height: 420px; overflow: auto; padding: 4px; border-radius: var(--rayon-s); -webkit-overflow-scrolling: touch; }
.skin { background: #f0f0f3; border: 2.5px solid transparent; border-radius: 18px; padding: 8px 6px 10px; display: flex; flex-direction: column; align-items: center; gap: 4px; transition: transform .15s, border-color .2s, background .2s; }
.skin img { width: 76px; height: 76px; border-radius: 50%; object-fit: cover; background: #fff; }
.skin-nom { font-weight: 700; font-size: .78rem; text-align: center; line-height: 1.15; }
.skin-equipe { font-size: .68rem; color: var(--muet); text-align: center; }
.skin:hover { transform: translateY(-2px); background: #e9e9ee; }
.skin.choisi { border-color: var(--vert); background: var(--vert-clair); transform: scale(1.04); }

/* ----- Héros (carte du joueur) ----- */
.hero { position: relative; border-radius: var(--rayon); overflow: hidden; color: #fff; box-shadow: 0 16px 40px rgba(8, 122, 53, .35); margin-bottom: 8px; }
.hero-fond {
  position: absolute; inset: 0; background: linear-gradient(135deg, #16b457 0%, #0a8a3c 55%, #06602a 100%);
}
.hero-fond::before { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(90deg, rgba(255, 255, 255, .05) 0 48px, transparent 48px 96px); }
.hero-fond::after { content: ""; position: absolute; width: 340px; height: 340px; right: -120px; top: -140px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .25); box-shadow: inset 0 0 0 60px rgba(255, 255, 255, .04); }
.hero-int { position: relative; display: grid; grid-template-columns: auto 1fr; gap: 14px 16px; align-items: center; padding: 20px; }
.hero-skin { width: 84px; height: 84px; border-radius: 50%; object-fit: cover; background: #fff; box-shadow: 0 0 0 4px rgba(255, 255, 255, .9), 0 10px 24px rgba(0, 0, 0, .25); }
.hero-salut { font-weight: 600; opacity: .85; font-size: .95rem; }
.hero-pseudo { font-size: 1.7rem; font-weight: 800; word-break: break-word; }
.hero-pseudo .badge-admin { background: rgba(255, 255, 255, .22); color: #fff; }
.hero-sous { opacity: .85; font-size: .9rem; }
.hero-stats { grid-column: 1 / -1; display: flex; gap: 12px; }
.stat { background: rgba(255, 255, 255, .16); border-radius: 18px; padding: 12px 18px; min-width: 110px; display: flex; flex-direction: column; align-items: center; }
.stat-val { font-size: 1.9rem; font-weight: 800; line-height: 1; font-variant-numeric: tabular-nums; letter-spacing: -.03em; }
.stat-lib { font-size: .78rem; font-weight: 600; opacity: .85; margin-top: 4px; }
.stat-serie.chaud { background: linear-gradient(135deg, #ffb800, #ff6a00); color: #fff; }
@media (min-width: 600px) {
  .hero-int { grid-template-columns: auto 1fr auto; padding: 26px 28px; }
  .hero-skin { width: 104px; height: 104px; }
  .hero-pseudo { font-size: 2.1rem; }
  .hero-stats { grid-column: auto; }
}

/* ----- Podium ----- */
.podium { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 10px; align-items: end; padding: 10px 0 6px; }
.marche { display: flex; flex-direction: column; align-items: center; gap: 4px; color: var(--texte); position: relative; }
.marche-skin { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; background: #fff; box-shadow: 0 0 0 3px #fff, 0 6px 16px rgba(0, 0, 0, .15); transition: transform .3s; }
.marche:hover .marche-skin { transform: scale(1.08); }
.marche-rang { position: absolute; top: 46px; width: 26px; height: 26px; border-radius: 50%; color: #fff; font-weight: 800; font-size: .85rem; display: flex; align-items: center; justify-content: center; box-shadow: 0 2px 6px rgba(0, 0, 0, .2); }
.marche-pseudo { font-weight: 700; font-size: .9rem; margin-top: 10px; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.marche-points { font-size: .8rem; color: var(--muet); font-weight: 600; }
.marche-socle { width: 100%; border-radius: 14px 14px 8px 8px; margin-top: 6px; }
.marche-1 .marche-skin { width: 84px; height: 84px; }
.marche-1 .marche-rang { top: 64px; background: linear-gradient(135deg, #ffd04d, #e69d00); }
.marche-1 .marche-socle { height: 60px; background: linear-gradient(180deg, #ffd978, #f4b400); }
.marche-2 .marche-rang { background: linear-gradient(135deg, #cfd3dc, #9aa0ad); }
.marche-2 .marche-socle { height: 42px; background: linear-gradient(180deg, #e2e4ea, #b9bcc6); }
.marche-3 .marche-rang { background: linear-gradient(135deg, #e5a362, #b76b2a); }
.marche-3 .marche-socle { height: 30px; background: linear-gradient(180deg, #ecc39b, #d2863a); }
.podium-bloc .lien-discret { margin-top: 6px; }

/* ----- Cartes de match ----- */
.match { padding: 16px 16px 14px; transition: box-shadow .3s, transform .3s; }
.match.valide-anim { animation: pulse-vert .9s ease; }
@keyframes pulse-vert { 0% { box-shadow: 0 0 0 0 rgba(11, 176, 75, .6); } 100% { box-shadow: 0 0 0 26px rgba(11, 176, 75, 0); } }
.match-haut { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: .8rem; color: var(--muet); font-weight: 600; margin-bottom: 12px; }
.match-ligue { display: inline-flex; align-items: center; gap: 6px; }
.match-ligue img { width: 18px; height: 18px; object-fit: contain; }
.match-quand { text-align: right; white-space: nowrap; }
.match-equipes { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 8px; }
.match-equipes.compact { margin-bottom: 10px; }
.equipe { display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; font-weight: 700; font-size: .95rem; line-height: 1.15; }
.equipe img { width: 56px; height: 56px; object-fit: contain; filter: drop-shadow(0 4px 8px rgba(0, 0, 0, .12)); }
.equipe.mini { flex-direction: row; font-size: .85rem; }
.equipe.mini img { width: 28px; height: 28px; }
.match-centre { display: flex; flex-direction: column; align-items: center; gap: 6px; min-width: 110px; }
.vs { font-size: .75rem; font-weight: 800; color: var(--muet); letter-spacing: .1em; text-transform: uppercase; }
.compte-rebours { font-variant-numeric: tabular-nums; font-weight: 700; font-size: .78rem; background: var(--texte); color: #fff; padding: 5px 11px; border-radius: 999px; white-space: nowrap; }
.compte-rebours.urgent { background: var(--rouge); animation: clignote 1s ease-in-out infinite; }
@keyframes clignote { 50% { opacity: .55; } }
.pastille { font-size: .75rem; font-weight: 700; background: #f0f0f3; color: var(--muet); padding: 5px 11px; border-radius: 999px; text-align: center; }
.pastille-live { background: var(--rouge-clair); color: #b3261e; }
.pastille-officiel { background: var(--vert-clair); color: var(--vert-fonce); }

.prono-form { margin-top: 14px; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.prono-saisie { display: flex; align-items: center; gap: 10px; }
.prono-sep { font-size: 1.6rem; font-weight: 800; color: var(--muet); }
.compteur-score { display: flex; align-items: center; gap: 4px; background: #f0f0f3; border-radius: 999px; padding: 4px; }
.compteur-score input { width: 54px; text-align: center; border: 0; background: transparent; font-size: 1.6rem; font-weight: 800; -moz-appearance: textfield; outline: none; font-variant-numeric: tabular-nums; }
.compteur-score input::-webkit-outer-spin-button, .compteur-score input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.pas { width: 40px; height: 40px; border-radius: 50%; border: 0; background: #fff; box-shadow: 0 2px 6px rgba(0, 0, 0, .12); font-size: 1.4rem; font-weight: 700; line-height: 1; color: var(--texte); transition: transform .1s, background .2s; }
.pas:active { transform: scale(.9); background: var(--vert-clair); }
.btn-prono { min-width: 220px; }
.prono-etat { font-size: .85rem; color: var(--muet); min-height: 1.2em; }
.prono-etat.ok { color: var(--vert-fonce); font-weight: 600; }
.prono-etat.erreur { color: #b3261e; font-weight: 600; }
.match.deja-joue .btn-prono { background: #e8e8ed; color: var(--texte); box-shadow: none; }
.match-joueurs { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--ligne); display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.joueurs-lib { font-size: .8rem; color: var(--muet); font-weight: 600; }
.joueurs-liste { display: flex; flex-wrap: wrap; gap: 6px; }
.joueur-puce { display: inline-flex; align-items: center; gap: 6px; background: #f0f0f3; border-radius: 999px; padding: 3px 10px 3px 3px; font-size: .8rem; font-weight: 600; animation: pop .35s cubic-bezier(.2, 1.4, .4, 1); }
.joueur-puce img { width: 24px; height: 24px; border-radius: 50%; object-fit: cover; background: #fff; }
.joueur-puce.moi { background: var(--vert-clair); color: var(--vert-fonce); }
.joueur-puce.grande { padding: 4px 12px 4px 4px; font-size: .88rem; }
.joueur-puce.grande img { width: 30px; height: 30px; }
.joueur-puce strong { font-weight: 800; }
@keyframes pop { from { transform: scale(.5); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.pronos-reveles { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--ligne); }
.match.ferme { opacity: .95; }

/* ----- Résultats et pronos ----- */
.liste-resultats { background: var(--carte); border-radius: var(--rayon); box-shadow: var(--ombre); overflow: hidden; }
.resultat { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px; padding: 14px 18px; border-bottom: 1px solid var(--ligne); }
.resultat:last-child { border-bottom: 0; }
.resultat-equipes { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: .95rem; }
.resultat-equipes img { width: 24px; height: 24px; object-fit: contain; }
.resultat-equipes strong { font-weight: 800; background: #f0f0f3; padding: 2px 10px; border-radius: 8px; }
.verdict { display: inline-block; font-size: .78rem; font-weight: 700; padding: 4px 10px; border-radius: 999px; }
.verdict-exact { background: linear-gradient(135deg, #ffd04d, #ff8a00); color: #fff; }
.verdict-vainqueur { background: var(--vert-clair); color: var(--vert-fonce); }
.verdict-perdu { background: #f0f0f3; color: var(--muet); }
.verdict-aucun, .verdict-attente { background: #f0f0f3; color: var(--muet); }
.stats-bloc { padding: 14px; }
.stat-grille { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.stat-grille .stat { background: #f0f0f3; color: var(--texte); min-width: 0; padding: 12px 6px; }
.stat-grille .stat-val { font-size: 1.6rem; white-space: nowrap; }
.stat-grille .stat-lib { color: var(--muet); }
@media (min-width: 600px) { .stat-grille { grid-template-columns: repeat(6, 1fr); } }
.prono-ligne { padding: 14px 16px; border-left: 5px solid transparent; }
.prono-ligne.verdict-bord-exact { border-left-color: var(--or); }
.prono-ligne.verdict-bord-vainqueur { border-left-color: var(--vert); }
.prono-ligne.verdict-bord-perdu { border-left-color: #d2d2d7; }
.prono-ligne-haut { display: flex; justify-content: space-between; font-size: .78rem; color: var(--muet); font-weight: 600; margin-bottom: 10px; }
.prono-ligne-corps { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 10px; }
.prono-ligne-corps .equipe.mini:last-child { flex-direction: row-reverse; }
.prono-scores { display: flex; flex-direction: column; align-items: center; }
.mon-score { font-size: 1.6rem; font-weight: 800; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.vrai-score { font-size: .75rem; color: var(--muet); font-weight: 600; }
.prono-ligne-bas { display: flex; justify-content: space-between; align-items: center; margin-top: 10px; }
.points-gagnes { font-weight: 800; color: var(--muet); }
.points-gagnes.positif { color: var(--vert-fonce); }
.bonus { font-size: .75rem; background: linear-gradient(135deg, #ffb800, #ff6a00); color: #fff; padding: 2px 8px; border-radius: 999px; }

/* ----- Classement ----- */
.classement { padding: 6px 8px; }
.ligne-classement { display: grid; grid-template-columns: 34px 44px 1fr auto; align-items: center; gap: 10px; padding: 10px 8px; border-bottom: 1px solid var(--ligne); border-radius: 14px; }
.ligne-classement:last-child { border-bottom: 0; }
.ligne-classement.moi { background: var(--vert-clair); }
.rang { font-weight: 800; color: var(--muet); text-align: center; font-size: 1.05rem; }
.rang-1 .rang { color: #e69d00; } .rang-2 .rang { color: #8c919d; } .rang-3 .rang { color: #b76b2a; }
.skin-mini { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; background: #fff; box-shadow: 0 2px 6px rgba(0, 0, 0, .12); }
.ligne-pseudo { font-weight: 700; display: flex; flex-direction: column; min-width: 0; }
.ligne-detail { font-size: .75rem; color: var(--muet); font-weight: 500; }
.ligne-points { font-weight: 800; font-size: 1.2rem; font-variant-numeric: tabular-nums; white-space: nowrap; }
.ligne-points small { color: var(--muet); font-size: .75rem; }

/* ----- Règles, profil, admin ----- */
.regles { padding: 8px 16px; }
.regle { display: flex; gap: 16px; align-items: flex-start; padding: 14px 0; border-bottom: 1px solid var(--ligne); }
.regle:last-child { border-bottom: 0; }
.regle-pts { flex: 0 0 64px; height: 64px; border-radius: 18px; background: var(--vert-clair); color: var(--vert-fonce); font-weight: 800; font-size: 1.3rem; display: flex; align-items: center; justify-content: center; }
.regle p { color: var(--muet); font-size: .92rem; margin-top: 2px; }
.profil-carte { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
.profil-skin { width: 80px; height: 80px; border-radius: 50%; object-fit: cover; background: #f0f0f3; box-shadow: 0 6px 16px rgba(0, 0, 0, .12); }
.profil-carte > div { flex: 1; min-width: 180px; }
.admin-match .match-centre { min-width: 0; }
.admin-score { margin-top: 10px; }
.admin-score-ligne { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.admin-score-ligne label { display: flex; flex-direction: column; gap: 4px; font-size: .8rem; font-weight: 600; color: var(--muet); }
.admin-score input { font-size: 1.3rem; font-weight: 800; text-align: center; }
.admin-ligne { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px; padding: 14px 18px; }
.admin-ligne-info { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.admin-corriger { width: 100%; }
.admin-corriger summary { cursor: pointer; font-weight: 600; color: var(--bleu); font-size: .9rem; }
.admin-corriger .admin-score-ligne { grid-template-columns: repeat(4, 1fr); }
.ligne-simple { display: flex; align-items: center; gap: 8px; margin: 6px 0; }
.journal { max-height: 320px; overflow: auto; font-size: .85rem; }
.journal-ligne { padding: 6px 0; border-bottom: 1px solid var(--ligne); }

/* ----- Animations d'apparition ----- */
.anim-monte { animation: monte .6s cubic-bezier(.2, .8, .2, 1) both; }
.anim-monte.d1 { animation-delay: .08s; } .anim-monte.d2 { animation-delay: .16s; } .anim-monte.d3 { animation-delay: .24s; }
@keyframes monte { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
.anim-entree { animation: entree .7s cubic-bezier(.2, .8, .2, 1) both; }
@keyframes entree { from { opacity: 0; transform: translateY(30px) scale(.96); } to { opacity: 1; transform: none; } }

/* ----- Voiles plein écran (bienvenue, résultats) ----- */
#confettis { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 60; }
.voile { position: fixed; inset: 0; z-index: 50; display: flex; align-items: center; justify-content: center; padding: 20px; background: rgba(6, 47, 22, .92); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); animation: fondu .4s ease both; }
.voile[hidden] { display: none; }
.voile.sortie { animation: fondu-sortie .4s ease forwards; }
@keyframes fondu { from { opacity: 0; } to { opacity: 1; } }
@keyframes fondu-sortie { to { opacity: 0; } }
.bienvenue { text-align: center; color: #fff; animation: zoom .8s cubic-bezier(.2, 1.3, .4, 1) both; }
.bienvenue-skin { width: 150px; height: 150px; border-radius: 50%; object-fit: cover; background: #fff; margin: 14px auto; box-shadow: 0 0 0 6px rgba(255, 255, 255, .9), 0 24px 60px rgba(0, 0, 0, .4); animation: zoom .9s cubic-bezier(.2, 1.4, .4, 1) .15s both; }
.bienvenue-salut { font-weight: 600; opacity: .85; font-size: 1.1rem; }
.bienvenue-pseudo { font-size: 2.6rem; font-weight: 800; letter-spacing: -.03em; }
.bienvenue-points { font-size: 1.5rem; font-weight: 700; margin-top: 8px; font-variant-numeric: tabular-nums; }
.bienvenue-points span { font-size: 3rem; font-weight: 800; }
.bienvenue-serie { margin-top: 10px; background: linear-gradient(135deg, #ffb800, #ff6a00); display: inline-block; padding: 6px 14px; border-radius: 999px; font-weight: 700; }
@keyframes zoom { from { opacity: 0; transform: scale(.6); } to { opacity: 1; transform: scale(1); } }
.revelation { width: 100%; max-width: 420px; }
.rev-carte { background: #fff; border-radius: 32px; padding: 28px 24px 24px; text-align: center; box-shadow: var(--ombre-forte); animation: zoom .7s cubic-bezier(.2, 1.3, .4, 1) both; }
.rev-ligue { font-size: .78rem; font-weight: 700; color: var(--muet); text-transform: uppercase; letter-spacing: .06em; }
.rev-match { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 8px; margin: 14px 0 6px; }
.rev-match .equipe img { width: 48px; height: 48px; }
.rev-score { font-size: 2.4rem; font-weight: 800; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.rev-mon { color: var(--muet); font-weight: 600; font-size: .9rem; }
.rev-verdict { margin: 18px auto 6px; font-size: 1.7rem; font-weight: 800; letter-spacing: -.02em; animation: zoom .6s cubic-bezier(.2, 1.4, .4, 1) .35s both; }
.rev-verdict.exact { background: linear-gradient(135deg, #ff9f00, #ff3d00); -webkit-background-clip: text; background-clip: text; color: transparent; }
.rev-verdict.vainqueur { color: var(--vert-fonce); }
.rev-verdict.perdu { color: var(--muet); }
.rev-points { font-size: 3.4rem; font-weight: 800; line-height: 1; margin: 4px 0 6px; font-variant-numeric: tabular-nums; animation: zoom .6s cubic-bezier(.2, 1.4, .4, 1) .55s both; }
.rev-points.zero { color: var(--muet); font-size: 2.4rem; }
.rev-bonus { display: inline-block; background: linear-gradient(135deg, #ffb800, #ff6a00); color: #fff; font-weight: 800; padding: 8px 16px; border-radius: 999px; animation: zoom .6s cubic-bezier(.2, 1.4, .4, 1) .8s both; }
.rev-etape { font-size: .78rem; color: var(--muet); font-weight: 600; margin-top: 10px; }
.rev-carte .btn { margin-top: 16px; width: 100%; }
.rev-total { color: var(--muet); font-size: .9rem; margin-top: 8px; }
.points-flash { animation: pulse-points .8s ease; }
@keyframes pulse-points { 30% { transform: scale(1.35); color: #ffe27a; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
