/* 90+ MercaFoot — thème néon sur fond sombre, violet dominant (palette du logo).
   Couleurs de DONNÉES (validées CVD sur fond sombre) : --data-1 (violet) et
   --data-2 (magenta). Jaune/cyan/orange du logo = décor uniquement. */

:root {
  --fond: #0a0613;
  --surface: #140d24;
  --surface-2: #1d1433;
  --bord: #2c2050;
  --texte: #f3efff;
  --texte-2: #b8aed6;
  --texte-3: #8d82b3;
  --violet: #8b5cf6;
  --violet-clair: #a78bfa;
  --magenta: #ec4899;
  --data-1: #8b5cf6;
  --data-2: #ec4899;
  --jaune: #facc15;
  --cyan: #22d3ee;
  --orange: #fb923c;
  --degrade: linear-gradient(100deg, var(--jaune), var(--orange) 25%, var(--magenta) 55%, var(--violet-clair) 85%);
  --whatsapp: #25d366;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--fond);
  color: var(--texte);
  font: 16px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
img { display: block; }
button, input, select { font: inherit; }

.page { max-width: 1060px; margin: 0 auto; padding: 0 16px 60px; }

/* ═══════════ Barre de navigation ═══════════ */

.topbar {
  position: sticky; top: 0; z-index: 10;
  background: rgba(10, 6, 19, .92); backdrop-filter: blur(8px);
}
.topbar-int {
  max-width: 1060px; margin: 0 auto; padding: 10px 16px;
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
}
.marque {
  display: flex; align-items: center; gap: 10px;
  text-decoration: none; color: var(--texte);
}
.marque img {
  width: 40px; height: 40px; border-radius: 10px;
  box-shadow: 0 0 14px rgba(139, 92, 246, .45);
}
.marque span {
  font-size: 18px; font-weight: 900; letter-spacing: .4px;
  background: var(--degrade);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  text-transform: uppercase; font-style: italic; white-space: nowrap;
}
.btn-whatsapp {
  display: inline-flex; align-items: center; gap: 8px; margin-left: auto;
  background: var(--whatsapp); color: #06130a; font-weight: 700;
  border: none; border-radius: 999px; padding: 8px 16px;
  text-decoration: none; font-size: 14px;
  box-shadow: 0 0 16px rgba(37, 211, 102, .3);
}
.btn-whatsapp:hover { filter: brightness(1.08); }
.btn-whatsapp svg { width: 18px; height: 18px; flex-shrink: 0; }

.bandeau-neon {
  height: 2px;
  background: var(--degrade);
  box-shadow: 0 0 10px rgba(236, 72, 153, .5);
}

/* ═══════════ En-tête héro ═══════════ */

.hero { padding: 34px 0 10px; }
.hero h1 {
  margin: 0; font-size: clamp(28px, 5vw, 44px); font-weight: 900;
  line-height: 1.08; letter-spacing: -.5px; text-transform: uppercase; font-style: italic;
}
.hero h1 .accent {
  background: var(--degrade);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-sous { color: var(--texte-2); margin: 10px 0 0; max-width: 560px; }

.entete-section { margin: 6px 0 16px; }
.entete-section h2 { margin: 0; font-size: 20px; }
.entete-section p { margin: 4px 0 0; color: var(--texte-2); font-size: 14px; }

.ico-palm { filter: drop-shadow(0 0 5px var(--lueur, var(--violet))); vertical-align: -3px; }

/* ═══════════ Tuiles de stats ═══════════ */

.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin-bottom: 18px; }
.stat {
  background: var(--surface); border: 1px solid var(--bord); border-radius: 14px;
  padding: 14px 16px;
}
.stat .etiquette { color: var(--texte-2); font-size: 12px; text-transform: uppercase; letter-spacing: .8px; }
.stat .valeur { font-size: 24px; font-weight: 800; margin-top: 2px; }
.stat .valeur.accent { color: var(--violet-clair); }
.stat .detail { color: var(--texte-3); font-size: 12px; margin-top: 2px; }

/* ═══════════ Mouvements du marché ═══════════ */

.mouvements { margin: 4px 0 22px; }
.mouvements-colonnes { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.mouvements-col h3 {
  font-size: 13px; text-transform: uppercase; letter-spacing: .8px; margin: 0 0 8px;
}
.titre-hausse { color: var(--whatsapp); }
.titre-baisse { color: var(--orange); }
.ligne-mouvement {
  display: flex; align-items: center; gap: 10px; width: 100%; text-align: left;
  background: var(--surface); border: 1px solid var(--bord); border-radius: 12px;
  padding: 7px 12px 7px 8px; cursor: pointer; color: inherit; margin-bottom: 6px;
}
.ligne-mouvement:hover { border-color: var(--violet); background: var(--surface-2); }
.ligne-mouvement .portrait, .ligne-mouvement .portrait-vide { width: 38px; height: 38px; font-size: 13px; }
.ligne-mouvement .identite { flex: 1; min-width: 0; }
.ligne-mouvement .nom { font-weight: 700; font-size: 14.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ligne-mouvement .club { display: flex; align-items: center; gap: 6px; color: var(--texte-2); font-size: 12.5px; }
.ligne-mouvement .club img { width: 14px; height: 14px; object-fit: contain; flex-shrink: 0; }
.ligne-mouvement .club span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ligne-mouvement .evolution { text-align: right; }
.ligne-mouvement .tendance { font-size: 14px; font-weight: 800; white-space: nowrap; }
.ligne-mouvement .avant-apres { color: var(--texte-3); font-size: 12px; white-space: nowrap; }
.sans-mouvement { color: var(--texte-3); font-size: 13.5px; margin: 4px 0; }
@media (max-width: 680px) { .mouvements-colonnes { grid-template-columns: 1fr; } }

/* ═══════════ Comparateur (duel) ═══════════ */

.duel-choix {
  display: grid; grid-template-columns: 1fr auto 1fr; gap: 10px;
  align-items: center; margin-bottom: 18px;
}
.choix-joueur { position: relative; }
.choix-joueur input {
  width: 100%; background: var(--surface-2); color: var(--texte);
  border: 1px solid var(--bord); border-radius: 10px; padding: 10px 12px;
}
.choix-joueur input:focus { outline: 2px solid var(--violet); border-color: transparent; }
.suggestions {
  position: absolute; top: calc(100% + 4px); left: 0; right: 0; z-index: 6;
  background: var(--surface-2); border: 1px solid var(--bord); border-radius: 12px;
  overflow: hidden; box-shadow: 0 10px 30px rgba(0, 0, 0, .5);
}
.suggestion {
  display: flex; align-items: center; gap: 10px; width: 100%; text-align: left;
  background: none; border: none; color: inherit; cursor: pointer;
  padding: 7px 10px; font-size: 14px;
}
.suggestion:hover { background: var(--surface); }
.suggestion .portrait, .suggestion .portrait-vide { width: 28px; height: 28px; font-size: 11px; border-width: 1px; }
.suggestion .nom { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.suggestion .club-sugg { color: var(--texte-3); font-size: 12px; }
.suggestion .val { color: var(--violet-clair); font-weight: 700; font-size: 13px; white-space: nowrap; }
.duel-vs { font-weight: 900; font-style: italic; color: var(--texte-3); text-align: center; }
.duel-vide { color: var(--texte-3); text-align: center; margin: 40px 0; }

.duel-cartes { display: grid; grid-template-columns: 1fr auto 1fr; gap: 10px; align-items: stretch; }
.duel-cartes .duel-vs { align-self: center; }
.duel-carte {
  background: var(--surface); border: 1px solid var(--bord);
  border-top: 3px solid var(--serie, var(--violet));
  border-radius: 16px; padding: 16px 12px; text-align: center; min-width: 0;
}
.duel-carte .portrait, .duel-carte .portrait-vide { width: 72px; height: 72px; margin: 0 auto 8px; font-size: 22px; }
.duel-carte .nom { font-weight: 800; }
.duel-carte .club {
  display: flex; align-items: center; justify-content: center; gap: 6px;
  color: var(--texte-2); font-size: 13px; margin-top: 2px;
}
.duel-carte .club img { width: 16px; height: 16px; object-fit: contain; }
.duel-carte .club span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.duel-carte .montant { font-size: 22px; font-weight: 900; color: var(--violet-clair); margin-top: 8px; }
.duel-carte .montant.sans { color: var(--texte-3); font-weight: 500; font-size: 15px; }
.duel-carte .tendance { font-size: 12.5px; margin-top: 1px; }

.duel-lignes { margin: 14px 0; display: flex; flex-direction: column; gap: 4px; }
.duel-ligne {
  display: grid; grid-template-columns: 1fr minmax(90px, auto) 1fr; gap: 10px;
  align-items: center; background: var(--surface); border-radius: 10px; padding: 8px 14px;
}
.duel-ligne .critere {
  color: var(--texte-3); font-size: 12px; text-transform: uppercase;
  letter-spacing: .6px; text-align: center;
}
.duel-ligne .cote-g, .duel-ligne .cote-d { color: var(--texte-2); font-weight: 600; min-width: 0; overflow-wrap: anywhere; }
.duel-ligne .cote-g { text-align: right; }
.duel-ligne .mieux { color: var(--texte); font-weight: 800; }
#duel h3 { font-size: 14px; text-transform: uppercase; letter-spacing: .8px; color: var(--texte-2); margin: 18px 0 8px; }
.legende { display: flex; gap: 18px; flex-wrap: wrap; font-size: 13px; color: var(--texte-2); margin-bottom: 6px; }
.legende i { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 6px; }
@media (max-width: 560px) {
  .duel-choix { grid-template-columns: 1fr; }
  .duel-choix > .duel-vs { display: none; }
  .duel-carte .montant { font-size: 18px; }
}

/* ═══════════ Filtres ═══════════ */

.filtres {
  display: flex; gap: 8px; flex-wrap: wrap; align-items: center;
  position: sticky; top: 62px; z-index: 5;
  background: linear-gradient(var(--fond) 85%, transparent);
  padding: 14px 0;
}
.filtres input[type=search], .filtres select {
  background: var(--surface-2); color: var(--texte);
  border: 1px solid var(--bord); border-radius: 10px;
  padding: 9px 12px; min-width: 0;
}
.filtres input[type=search] { flex: 2 1 160px; }
.filtres select { flex: 1 1 120px; }
.filtres input:focus, .filtres select:focus { outline: 2px solid var(--violet); border-color: transparent; }
.compteur { color: var(--texte-3); font-size: 13px; margin-top: 12px; text-align: center; }

/* ═══════════ Classement ═══════════ */

/* Grille partagée entre l'en-tête de tableau et les lignes. */
.entete-tableau, .ligne-joueur {
  display: grid;
  grid-template-columns: 34px 46px minmax(0, 1fr) 96px 64px 64px 112px;
  gap: 10px; align-items: center;
}
.entete-tableau {
  padding: 4px 14px 8px 10px;
  font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .8px;
  color: var(--texte-3);
}
.entete-tableau .col-age, .entete-tableau .col-taille { text-align: center; }
.entete-tableau .col-valeur { text-align: right; }
.ligne-joueur .col-age, .ligne-joueur .col-taille {
  text-align: center; color: var(--texte-2); font-size: 14px;
}
.classement { display: flex; flex-direction: column; gap: 8px; }
.ligne-joueur {
  background: var(--surface); border: 1px solid var(--bord); border-radius: 14px;
  padding: 9px 14px 9px 10px;
  cursor: pointer; text-align: left; color: inherit; width: 100%;
}
.ligne-joueur:hover { border-color: var(--violet); background: var(--surface-2); }
.ligne-joueur .rang { font-weight: 800; color: var(--texte-3); text-align: center; font-size: 15px; }
.ligne-joueur .rang.podium { color: var(--jaune); }
.portrait {
  width: 46px; height: 46px; border-radius: 50%; object-fit: cover;
  /* Les photos Wikimedia sont souvent en pied : on cadre vers le haut, sur la tête. */
  object-position: 50% 12%;
  background: var(--surface-2); border: 2px solid var(--bord);
}
.ligne-joueur:hover .portrait { border-color: var(--violet); }
.portrait-vide {
  width: 46px; height: 46px; border-radius: 50%;
  background: var(--surface-2); border: 2px solid var(--bord);
  display: flex; align-items: center; justify-content: center;
  color: var(--texte-3); font-weight: 700;
}
.ligne-joueur .identite { min-width: 0; }
.ligne-joueur .nom { font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ligne-joueur .club {
  display: flex; align-items: center; gap: 6px;
  color: var(--texte-2); font-size: 13px; margin-top: 1px;
}
.ligne-joueur .club img { width: 16px; height: 16px; object-fit: contain; flex-shrink: 0; }
.ligne-joueur .club > span:first-of-type { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.ligne-joueur .badge-poste { flex-shrink: 0; }
.badge-poste {
  font-size: 11px; font-weight: 700; border-radius: 6px; padding: 1px 6px;
  background: var(--surface-2); border: 1px solid var(--bord); color: var(--texte-2);
}
.ligne-joueur .cote { text-align: right; }
.ligne-joueur .montant { font-size: 18px; font-weight: 800; color: var(--violet-clair); white-space: nowrap; }
.ligne-joueur .montant.sans { color: var(--texte-3); font-weight: 500; font-size: 14px; }
.ligne-joueur .tendance { font-size: 12px; margin-top: 1px; }
.tendance.hausse { color: var(--whatsapp); }
.tendance.baisse { color: var(--orange); }
.tendance.stable { color: var(--texte-3); }

.voir-plus {
  margin: 14px auto 0; display: block;
  background: var(--surface-2); color: var(--texte); border: 1px solid var(--bord);
  border-radius: 999px; padding: 10px 26px; cursor: pointer; font-weight: 600;
}
.voir-plus:hover { border-color: var(--violet); }

/* ═══════════ Fiche joueur (panneau) ═══════════ */

.voile {
  position: fixed; inset: 0; background: rgba(5, 2, 12, .75);
  display: none; align-items: flex-end; justify-content: center; z-index: 20;
  backdrop-filter: blur(3px);
}
.voile.ouvert { display: flex; }
.fiche {
  background: var(--surface); border: 1px solid var(--bord);
  border-radius: 20px 20px 0 0; width: 100%; max-width: 640px;
  max-height: 92vh; overflow-y: auto; padding: 20px 20px 30px;
}
@media (min-width: 700px) {
  .voile.ouvert { align-items: center; }
  .fiche { border-radius: 20px; }
}
.fiche .fermer {
  float: right; background: var(--surface-2); border: 1px solid var(--bord);
  color: var(--texte); border-radius: 50%; width: 34px; height: 34px; cursor: pointer;
  font-size: 16px; line-height: 1;
}
.fiche-tete { display: flex; gap: 16px; align-items: center; }
.fiche-tete .portrait, .fiche-tete .portrait-vide { width: 84px; height: 84px; font-size: 26px; }
.fiche-tete h2 { margin: 0; font-size: 22px; }
.fiche-tete .club { display: flex; align-items: center; gap: 7px; color: var(--texte-2); margin-top: 4px; }
.fiche-tete .club img { width: 20px; height: 20px; object-fit: contain; }
.fiche-cote {
  margin: 16px 0; padding: 14px 16px; border-radius: 14px;
  background: linear-gradient(120deg, rgba(139, 92, 246, .18), rgba(236, 72, 153, .12));
  border: 1px solid var(--violet);
}
.fiche-cote .etiquette { font-size: 12px; text-transform: uppercase; letter-spacing: .8px; color: var(--texte-2); }
.fiche-cote .montant { font-size: 30px; font-weight: 900; color: var(--violet-clair); }
.fiche-cote .tendance { font-size: 13px; }
.infos { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 8px; margin: 14px 0; }
.info { background: var(--surface-2); border-radius: 10px; padding: 8px 12px; }
.info .etiquette { font-size: 11px; color: var(--texte-3); text-transform: uppercase; letter-spacing: .6px; }
.info .val { font-weight: 600; margin-top: 1px; }
.fiche h3 { font-size: 14px; text-transform: uppercase; letter-spacing: .8px; color: var(--texte-2); margin: 18px 0 8px; }
.carriere { color: var(--texte-2); font-size: 14px; }
.carriere li { margin: 3px 0; }

/* Graphique d'évolution (SVG) */
.graphe { position: relative; }
.graphe svg { width: 100%; height: auto; display: block; }
.graphe .infobulle {
  position: absolute; pointer-events: none; display: none;
  background: var(--surface-2); border: 1px solid var(--violet);
  border-radius: 8px; padding: 5px 9px; font-size: 12px; white-space: nowrap;
  transform: translate(-50%, -115%); z-index: 2;
}

/* ═══════════ Navigation Valeurs / Équipes / Classement ═══════════ */

.nav-vues { display: flex; gap: 6px; }
.nav-vue {
  background: none; border: 1px solid transparent; color: var(--texte-2);
  border-radius: 999px; padding: 8px 16px; cursor: pointer; font-weight: 600; font-size: 14px;
  text-decoration: none; white-space: nowrap;
}
.nav-vue:hover { color: var(--texte); border-color: var(--bord); }
.nav-vue.actif {
  background: linear-gradient(120deg, rgba(139, 92, 246, .3), rgba(236, 72, 153, .18));
  border-color: var(--violet); color: var(--texte);
}

/* ═══════════ Vue Équipes ═══════════ */

.grille-clubs { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }
.carte-club {
  display: flex; gap: 14px; align-items: center; text-align: left;
  background: var(--surface); border: 1px solid var(--bord); border-radius: 16px;
  padding: 14px; cursor: pointer; color: inherit; width: 100%;
  text-decoration: none;
}
.carte-club:hover { border-color: var(--violet); background: var(--surface-2); }
.ecusson {
  width: 56px; height: 56px; object-fit: contain; flex-shrink: 0;
  filter: drop-shadow(0 0 6px rgba(139, 92, 246, .35));
}
.ecusson-vide {
  width: 56px; height: 56px; border-radius: 12px; flex-shrink: 0;
  background: var(--surface-2); border: 1px solid var(--bord);
  display: flex; align-items: center; justify-content: center;
  color: var(--texte-3); font-weight: 800; font-size: 18px;
}
.carte-club .infos-club { min-width: 0; }
.carte-club .nom { font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.carte-club .detail { color: var(--texte-2); font-size: 13px; margin-top: 1px; }
.carte-club .cote-club { color: var(--violet-clair); font-weight: 700; font-size: 14px; margin-top: 3px; }
.carte-club .titres { color: var(--jaune); font-size: 13px; margin-top: 2px; }

/* Fiche club */
.fiche-tete .ecusson, .fiche-tete .ecusson-vide { width: 84px; height: 84px; }
.palmares-groupe { margin-bottom: 10px; background: var(--surface-2); border-radius: 12px; padding: 10px 14px; }
.palmares-groupe .ligne-titre { display: flex; align-items: baseline; gap: 8px; font-weight: 700; }
.palmares-groupe .nb { color: var(--jaune); }
.palmares-groupe .annees { color: var(--texte-3); font-size: 12.5px; margin-top: 3px; line-height: 1.6; }
.sans-palmares { color: var(--texte-3); font-size: 14px; }
.effectif-groupe { margin-bottom: 4px; }
.effectif-groupe h4 {
  font-size: 12px; text-transform: uppercase; letter-spacing: .8px;
  color: var(--texte-3); margin: 12px 0 6px;
}
.joueur-mini {
  display: flex; align-items: center; gap: 10px; width: 100%; text-align: left;
  background: none; border: none; color: inherit; cursor: pointer;
  padding: 5px 6px; border-radius: 10px; font-size: 14.5px;
}
.joueur-mini:hover { background: var(--surface-2); }
.joueur-mini .portrait, .joueur-mini .portrait-vide { width: 32px; height: 32px; font-size: 12px; border-width: 1px; }
.joueur-mini .nom { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.joueur-mini .num { color: var(--texte-3); font-size: 12.5px; width: 28px; }
.joueur-mini .val { color: var(--violet-clair); font-weight: 700; white-space: nowrap; }
.joueur-mini .val.sans { color: var(--texte-3); font-weight: 400; }

/* ═══════════ Pied de page ═══════════ */

footer.site {
  margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--bord);
  color: var(--texte-3); font-size: 13px;
}
footer.site a { color: var(--texte-2); }
footer.site .colonnes {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 20px;
}
footer.site h4 {
  margin: 0 0 6px; font-size: 12px; text-transform: uppercase;
  letter-spacing: .8px; color: var(--texte-2);
}
footer.site p { margin: 0; line-height: 1.6; }

/* ═══════════ Admin ═══════════ */

/* En-tête de l'admin (l'ancien en-tête du site, conservé pour admin.html). */
header.site {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 0 10px; flex-wrap: wrap;
}
header.site .logo {
  width: 48px; height: 48px; border-radius: 10px;
  box-shadow: 0 0 14px rgba(139, 92, 246, .45);
}
header.site .titres { flex: 1; min-width: 180px; }
header.site h1 {
  margin: 0; font-size: 20px; font-weight: 900; letter-spacing: .4px;
  background: var(--degrade);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  text-transform: uppercase; font-style: italic;
}
header.site .sous-titre { color: var(--texte-2); font-size: 13px; margin-top: 2px; }

.connexion {
  max-width: 360px; margin: 12vh auto; background: var(--surface);
  border: 1px solid var(--bord); border-radius: 18px; padding: 26px; text-align: center;
}
.connexion .logo { width: 72px; height: 72px; border-radius: 16px; margin: 0 auto 12px; }
.connexion input {
  width: 100%; background: var(--surface-2); color: var(--texte);
  border: 1px solid var(--bord); border-radius: 10px; padding: 11px 12px; margin: 12px 0;
}
.bouton {
  background: var(--violet); color: #fff; font-weight: 700;
  border: none; border-radius: 10px; padding: 11px 20px; cursor: pointer;
}
.bouton:hover { background: var(--violet-clair); }
.bouton.discret { background: var(--surface-2); border: 1px solid var(--bord); color: var(--texte); }
.erreur { color: var(--orange); font-size: 14px; min-height: 20px; margin: 4px 0; }

.onglets { display: flex; gap: 6px; margin: 14px 0; flex-wrap: wrap; }
.onglet {
  background: var(--surface); border: 1px solid var(--bord); color: var(--texte-2);
  border-radius: 999px; padding: 8px 18px; cursor: pointer; font-weight: 600;
}
.onglet.actif { background: var(--violet); border-color: var(--violet); color: #fff; }

.table-admin { width: 100%; border-collapse: collapse; }
.table-admin th {
  text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: .6px;
  color: var(--texte-3); padding: 8px 10px; border-bottom: 1px solid var(--bord);
}
.table-admin td { padding: 7px 10px; border-bottom: 1px solid var(--surface-2); }
.table-admin tr:hover td { background: var(--surface); }
.table-admin .portrait, .table-admin .portrait-vide { width: 34px; height: 34px; font-size: 13px; }
.champ-valeur {
  width: 110px; background: var(--surface-2); color: var(--texte);
  border: 1px solid var(--bord); border-radius: 8px; padding: 7px 9px; text-align: right;
}
.champ-valeur:focus { outline: 2px solid var(--violet); border-color: transparent; }
.champ-valeur.ok { border-color: var(--whatsapp); }
.table-admin .actions { white-space: nowrap; }
.lien-action {
  background: none; border: none; color: var(--violet-clair); cursor: pointer;
  font-size: 13px; padding: 4px 6px; text-decoration: underline;
}
.lien-action.danger { color: var(--orange); }

.formulaire { max-width: 560px; }
.formulaire label { display: block; margin: 12px 0 4px; color: var(--texte-2); font-size: 14px; }
.formulaire input, .formulaire select {
  width: 100%; background: var(--surface-2); color: var(--texte);
  border: 1px solid var(--bord); border-radius: 10px; padding: 10px 12px;
}
.formulaire .rangee { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.notif {
  position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%);
  background: var(--surface-2); border: 1px solid var(--violet);
  border-radius: 999px; padding: 10px 22px; font-weight: 600; display: none; z-index: 30;
}

/* Tablette : on replie taille puis âge/poste. */
@media (max-width: 860px) {
  .entete-tableau, .ligne-joueur { grid-template-columns: 34px 46px minmax(0, 1fr) 96px 64px 112px; }
  .col-taille { display: none; }
}
@media (max-width: 680px) {
  .entete-tableau, .ligne-joueur { grid-template-columns: 30px 44px minmax(0, 1fr) auto; }
  .col-poste, .col-age { display: none; }
  .topbar-int { gap: 8px; }
  .btn-whatsapp span { display: none; }         /* l'icône suffit sur mobile */
  .btn-whatsapp { padding: 8px 10px; }
  /* 4 onglets depuis l'ajout de l'accueil : retour à la ligne autorisé. */
  .nav-vues { order: 3; flex-basis: 100%; justify-content: center; flex-wrap: wrap; }
}
@media (max-width: 480px) {
  .ligne-joueur { padding: 8px 10px; }
  .portrait, .portrait-vide { width: 40px; height: 40px; }
  .ligne-joueur .montant { font-size: 16px; }
  .stat .valeur { font-size: 20px; }
  .hero { padding-top: 22px; }
}
