/* ==========================================================================
   SPORT PLUS — apparence
   nuit     #0a0e12   le fond
   ardoise  #131a21   les surfaces
   vert     #00c46a   la marque et les boutons
   or       dégradé   les cartes joueurs
   Polices du système, aucune requête extérieure.
   ========================================================================== */

* { box-sizing: border-box; }

html { font-size: 100%; -webkit-text-size-adjust: 100%; background: #0a0e12; }

body {
  margin: 0;
  background: #0a0e12;
  color: #f2f5f7;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
               "Helvetica Neue", Arial, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
}

@media (min-width: 48em) { body { font-size: 1.125rem; } }

img { max-width: 100%; height: auto; display: block; }

.page { max-width: 68rem; margin: 0 auto; padding: 0 1.1rem; }
.etroit { max-width: 44rem; }

section { padding: 3rem 0; }

h1, h2, h3 { line-height: 1.1; letter-spacing: -0.02em; margin: 0 0 1rem; font-weight: 800; }
h1 { font-size: 2.1rem; }
h2 { font-size: 1.7rem; }
h3 { font-size: 1.2rem; }

@media (min-width: 48em) {
  h1 { font-size: 3.4rem; }
  h2 { font-size: 2.2rem; }
  h3 { font-size: 1.35rem; }
}

p, li { max-width: 46rem; }
p { margin: 0 0 1rem; }

a { color: #39e08c; text-decoration: underline; }
a:focus, button:focus, input:focus, select:focus, textarea:focus {
  outline: 3px solid #00c46a; outline-offset: 3px;
}

.sur-titre {
  font-size: 0.95rem; font-weight: 800; letter-spacing: 0.18em;
  text-transform: uppercase; color: #00c46a; margin: 0 0 0.7rem;
}

.chapeau { font-size: 1.2rem; color: #c9d4de; max-width: 40rem; }
@media (min-width: 48em) { .chapeau { font-size: 1.35rem; } }

.discret { color: #9fb0bf; }

/* --- Logo et navigation --------------------------------------------------- */

.entete { border-bottom: 1px solid #1e2831; background: #0a0e12; }

.entete .page { display: block; padding-top: 0.9rem; padding-bottom: 0.9rem; }

.marque { display: inline-block; text-decoration: none; color: #f2f5f7; }
.marque:hover { text-decoration: none; }

.logo { display: inline-block; vertical-align: middle; width: 2.4rem; height: 2.4rem; }
.logo-texte {
  display: inline-block; vertical-align: middle; margin-left: 0.6rem;
  font-weight: 800; letter-spacing: 0.14em; font-size: 1.1rem; text-transform: uppercase;
}
.logo-texte .plus { color: #00c46a; }

.menu { list-style: none; margin: 0.9rem 0 0; padding: 0; }
.menu li { display: inline-block; margin: 0 1.1rem 0.4rem 0; }
.menu a {
  color: #c9d4de; text-decoration: none; font-weight: 700; font-size: 1rem;
  letter-spacing: 0.04em; text-transform: uppercase; padding: 0.35rem 0;
  display: inline-block; border-bottom: 3px solid transparent;
}
.menu a:hover, .menu a.actif { color: #ffffff; border-bottom-color: #00c46a; }

@media (min-width: 52em) {
  .entete .page { display: flex; align-items: center; justify-content: space-between; }
  .menu { margin: 0; }
  .menu li { margin: 0 0 0 1.6rem; }
}

/* --- Boutons -------------------------------------------------------------- */

.bouton, .bouton-vide {
  display: inline-block; min-height: 3.25rem; padding: 0.95rem 1.5rem;
  border: 2px solid transparent; border-radius: 6px; font-family: inherit;
  font-size: 1.05rem; font-weight: 800; line-height: 1.2; text-align: center;
  text-decoration: none; cursor: pointer; letter-spacing: 0.02em;
}
.bouton { background: #00c46a; color: #04170d; }
.bouton:hover { background: #2ad986; text-decoration: none; }
.bouton-vide { background: transparent; color: #f2f5f7; border-color: #3a4855; }
.bouton-vide:hover { border-color: #00c46a; text-decoration: none; }
.boutons .bouton, .boutons .bouton-vide { margin: 0 0.8rem 0.8rem 0; }

@media (max-width: 30em) {
  .bouton, .bouton-vide { display: block; width: 100%; }
  .boutons .bouton, .boutons .bouton-vide { margin-right: 0; }
}

/* --- Haut de page --------------------------------------------------------- */

.hero { padding: 3.5rem 0 3rem; border-bottom: 1px solid #1e2831; }
.hero h1 { max-width: 20ch; }

.bande { background: #101820; border-top: 1px solid #1e2831; border-bottom: 1px solid #1e2831; }

.grille { margin: 0; padding: 0; list-style: none; }
.grille > li { margin: 0 0 1.6rem; max-width: none; }

@media (min-width: 46em) {
  .grille { display: flex; flex-wrap: wrap; margin: 0 -0.8rem; }
  .grille > li { width: 33.333%; padding: 0 0.8rem; }
  .grille-2 > li { width: 50%; }
}

.bloc {
  background: #131a21; border: 1px solid #1e2831; border-radius: 10px;
  padding: 1.4rem; height: 100%;
}
.bloc h3 { margin-bottom: 0.5rem; }
.bloc p:last-child { margin-bottom: 0; }

.numero-bloc {
  display: inline-block; font-size: 2rem; font-weight: 800; color: #00c46a;
  line-height: 1; margin-bottom: 0.4rem;
}

/* ==========================================================================
   LES CARTES JOUEURS
   Inspirées des cartes à collectionner : aucune image ni mise en page
   officielle n'est reprise.
   ========================================================================== */

.cartes { list-style: none; margin: 0 -0.6rem; padding: 0; display: flex; flex-wrap: wrap; }
.cartes > li { width: 50%; padding: 0 0.6rem 1.4rem; max-width: none; position: relative; }

@media (min-width: 46em) { .cartes > li { width: 33.333%; } }
@media (min-width: 62em) { .cartes > li { width: 25%; } }

.carte {
  display: block; width: 100%; text-align: left; cursor: pointer;
  text-decoration: none; color: inherit;
}
.carte:hover { text-decoration: none; }
.carte:hover .carte-fond { transform: translateY(-3px); box-shadow: 0 10px 24px rgba(0,0,0,.55); }
.carte-fond { transition: none; }

.carte-fond {
  border-radius: 14px; padding: 0.9rem 0.8rem 0.8rem;
  background: linear-gradient(160deg, #fdf0b8 0%, #e6c767 28%, #c9a233 55%, #8d6b16 100%);
  color: #1b1405;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.45);
  border: 1px solid #f3e3a8;
}

.carte-argent .carte-fond {
  background: linear-gradient(160deg, #f4f7fa 0%, #cdd7e0 30%, #a3b1be 60%, #6f7d8a 100%);
  border-color: #eaf0f5;
}

.carte-noire .carte-fond {
  background: linear-gradient(160deg, #3b4450 0%, #1d242c 40%, #0f141a 100%);
  color: #f6e9bd;
  border-color: #c9a233;
}

.carte-haut { overflow: hidden; display: block; padding-right: 4.4rem; }

.carte-age {
  float: left; text-align: center; line-height: 1; min-width: 3rem;
  border-right: 2px solid rgba(27, 20, 5, 0.25); padding-right: 0.6rem;
}
.carte-noire .carte-age { border-right-color: rgba(246, 233, 189, 0.3); }

.carte-age strong { display: block; font-size: 2.1rem; font-weight: 800; letter-spacing: -0.03em; }
.carte-age span { display: block; font-size: 0.7rem; font-weight: 800; letter-spacing: 0.12em; }

.carte-poste {
  float: left; padding-left: 0.6rem; font-weight: 800; font-size: 1.05rem;
  letter-spacing: 0.06em; line-height: 1.1; padding-top: 0.15rem;
}
.carte-poste small { display: block; font-size: 0.7rem; letter-spacing: 0.1em; font-weight: 700; opacity: 0.8; }

.carte-photo {
  display: block; margin: 0.7rem 0 0.5rem; height: 9.5rem; border-radius: 8px;
  background: rgba(27, 20, 5, 0.12); overflow: hidden; position: relative;
}
.carte-noire .carte-photo { background: rgba(246, 233, 189, 0.08); }
.carte-photo img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.carte-photo .attente {
  position: absolute; left: 0; right: 0; top: 50%; margin-top: -0.7rem;
  text-align: center; font-size: 0.75rem; font-weight: 800; letter-spacing: 0.1em;
}

.carte-nom {
  margin: 0; font-size: 1.05rem; font-weight: 800; text-transform: uppercase;
  letter-spacing: 0.02em; text-align: center; line-height: 1.2;
  border-top: 2px solid rgba(27, 20, 5, 0.25); padding-top: 0.5rem;
}
.carte-noire .carte-nom { border-top-color: rgba(246, 233, 189, 0.3); }

.carte-stats {
  list-style: none; margin: 0.6rem 0 0; padding: 0; display: flex; flex-wrap: wrap;
  font-size: 0.78rem; line-height: 1.25;
}
.carte-stats li { width: 50%; padding: 0.22rem 0; max-width: none; }
.carte-stats b { display: block; font-size: 0.65rem; letter-spacing: 0.1em; opacity: 0.75; font-weight: 800; }

.ruban {
  position: absolute; top: 0.55rem; right: 0.5rem; z-index: 2;
  background: #0a0e12; color: #ffffff; font-size: 0.68rem; font-weight: 800;
  letter-spacing: 0.12em; padding: 0.2rem 0.5rem; border-radius: 4px;
}
.ruban-libre { background: #00c46a; color: #04170d; }

.portrait-agent { height: 22rem; border-radius: 12px; background: #131a21; }

/* --- Fiche détaillée ------------------------------------------------------ */

.fiche {
  background: #131a21; border: 1px solid #2a3542; border-radius: 12px;
  padding: 1.5rem; margin: 0 0 2rem;
}
.fiche { border-color: #00c46a; }
.fiche h2 { margin-bottom: 0.3rem; }
.fiche .poste-fiche { color: #00c46a; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; }

.fiche-infos { list-style: none; margin: 1.2rem 0; padding: 0; display: flex; flex-wrap: wrap; }
.fiche-infos li { width: 50%; padding: 0.4rem 0.8rem 0.4rem 0; max-width: none; }
.fiche-infos b { display: block; font-size: 0.72rem; letter-spacing: 0.12em; color: #9fb0bf; font-weight: 800; }
@media (min-width: 40em) { .fiche-infos li { width: 25%; } }

/* --- Filtres -------------------------------------------------------------- */

.filtres { margin: 0 0 1.6rem; }
.filtres button {
  background: #131a21; color: #c9d4de; border: 1px solid #2a3542; border-radius: 999px;
  padding: 0.55rem 1.1rem; font-family: inherit; font-size: 1rem; font-weight: 700;
  margin: 0 0.5rem 0.5rem 0; cursor: pointer; min-height: 2.75rem;
}
.filtres button.actif { background: #00c46a; color: #04170d; border-color: #00c46a; }

/* --- Formulaires ---------------------------------------------------------- */

.champ { margin: 0 0 1.2rem; }
.champ label { display: block; font-weight: 700; margin: 0 0 0.35rem; }
.champ input, .champ select, .champ textarea {
  width: 100%; min-height: 3.25rem; padding: 0.8rem; font-family: inherit;
  font-size: 1.05rem; color: #f2f5f7; background: #0f151b;
  border: 1px solid #2a3542; border-radius: 6px;
}
.champ textarea { min-height: 8rem; }

.onglets-form { margin: 0 0 1.6rem; }

/* --- Repères manquants ---------------------------------------------------- */

.manque {
  background: #ffe9a8; color: #1b1405; border: 2px dashed #b8860b;
  padding: 0 0.3rem; font-weight: 800;
}

/* --- Pied de page --------------------------------------------------------- */

.pied { border-top: 1px solid #1e2831; padding: 2.5rem 0; color: #c9d4de; }
.pied a { color: #39e08c; }
.liens-pied { list-style: none; margin: 1rem 0 0; padding: 0; }
.liens-pied li { display: inline-block; margin: 0 1.2rem 0.6rem 0; }

[hidden] { display: none !important; }

.pour-lecteur {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

/* ==========================================================================
   HABILLAGE PREMIUM
   ========================================================================== */

/* --- Silhouettes (aucune photo d'un vrai joueur n'est utilisée) ---------- */

.silhouette { width: 100%; height: 100%; display: block; color: #1b1405; }
.carte-noire .silhouette { color: #f6e9bd; }
.carte-argent .silhouette { color: #1b1405; }

.carte-photo {
  background:
    radial-gradient(120% 90% at 50% 0%, rgba(255,255,255,.35) 0%, rgba(255,255,255,0) 60%),
    rgba(27, 20, 5, 0.1);
}
.carte-noire .carte-photo {
  background:
    radial-gradient(120% 90% at 50% 0%, rgba(246,233,189,.14) 0%, rgba(246,233,189,0) 60%),
    rgba(246, 233, 189, 0.05);
}

/* --- Lueur et filets dorés ----------------------------------------------- */

.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(70% 90% at 15% -10%, rgba(0, 196, 106, 0.16) 0%, rgba(0,196,106,0) 60%),
    radial-gradient(60% 80% at 95% 0%, rgba(201, 162, 51, 0.14) 0%, rgba(201,162,51,0) 55%);
  padding: 4.5rem 0 4rem;
}

@media (min-width: 48em) { .hero { padding: 6rem 0 5rem; } }

.filet-or {
  height: 1px; border: 0; margin: 0;
  background: linear-gradient(90deg, rgba(201,162,51,0) 0%, #c9a233 18%, #f3e3a8 50%, #c9a233 82%, rgba(201,162,51,0) 100%);
  opacity: 0.55;
}

.hero h1 { letter-spacing: -0.035em; }

.titre-or {
  background: linear-gradient(100deg, #fdf0b8 0%, #e6c767 35%, #c9a233 70%, #8d6b16 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: #e6c767;
}

.sur-titre { font-size: 0.85rem; letter-spacing: 0.26em; }

.bloc {
  background: linear-gradient(180deg, #151d25 0%, #10171e 100%);
  border: 1px solid #202a34;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.04);
}
.bloc h3 { letter-spacing: -0.01em; }

.numero-bloc {
  background: linear-gradient(100deg, #fdf0b8, #c9a233);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: #c9a233;
}

.bouton {
  background: linear-gradient(180deg, #19d77d 0%, #00b561 100%);
  box-shadow: 0 6px 18px rgba(0, 196, 106, 0.22);
}

.entete { background: rgba(10, 14, 18, 0.92); }

/* --- Lustre sur les cartes ----------------------------------------------- */

.carte-fond { position: relative; overflow: hidden; }

.carte-fond::before {
  content: ""; position: absolute; top: -40%; left: -30%;
  width: 60%; height: 180%; pointer-events: none;
  background: linear-gradient(100deg, rgba(255,255,255,0) 0%, rgba(255,255,255,.38) 50%, rgba(255,255,255,0) 100%);
  transform: rotate(14deg);
}
.carte-noire .carte-fond::before { background: linear-gradient(100deg, rgba(255,255,255,0) 0%, rgba(255,255,255,.1) 50%, rgba(255,255,255,0) 100%); }

.carte-fond > * { position: relative; z-index: 1; }

.carte-nom { letter-spacing: 0.06em; }

/* ==========================================================================
   LA BANDE DÉROULANTE
   ========================================================================== */

.bande-defilante {
  overflow: hidden; position: relative;
  border-top: 1px solid #202a34; border-bottom: 1px solid #202a34;
  background: linear-gradient(180deg, #0d141b 0%, #0a0e12 100%);
  padding: 1rem 0;
}

.bande-defilante::before, .bande-defilante::after {
  content: ""; position: absolute; top: 0; bottom: 0; width: 5rem; z-index: 2;
  pointer-events: none;
}
.bande-defilante::before { left: 0; background: linear-gradient(90deg, #0a0e12 0%, rgba(10,14,18,0) 100%); }
.bande-defilante::after { right: 0; background: linear-gradient(270deg, #0a0e12 0%, rgba(10,14,18,0) 100%); }

.bande-piste {
  list-style: none; margin: 0; padding: 0; display: flex; width: max-content;
  animation: defile 40s linear infinite;
}

.bande-defilante:hover .bande-piste { animation-play-state: paused; }

.bande-piste li {
  display: flex; align-items: center; margin: 0; padding: 0 0.4rem; max-width: none;
  white-space: nowrap;
}

.bande-rond {
  width: 2.9rem; height: 2.9rem; border-radius: 50%; overflow: hidden;
  background: linear-gradient(160deg, #e6c767 0%, #8d6b16 100%);
  border: 1px solid #c9a233; flex: none; margin-right: 0.7rem;
}
.bande-rond img { width: 100%; height: 100%; object-fit: cover; }
.bande-rond .silhouette { color: #1b1405; }

.bande-texte { display: block; line-height: 1.25; }
.bande-texte b {
  display: block; font-size: 0.95rem; font-weight: 800; letter-spacing: 0.1em;
  text-transform: uppercase; color: #f2f5f7;
}
.bande-texte span { display: block; font-size: 0.85rem; color: #9fb0bf; }

.bande-losange {
  width: 0.5rem; height: 0.5rem; margin: 0 1.6rem 0 1.4rem; flex: none;
  background: #00c46a; transform: rotate(45deg);
}

@keyframes defile {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
  .bande-piste { animation: none; flex-wrap: wrap; width: auto; }
  .bande-piste li { padding-bottom: 0.6rem; }
}


/* --- Les licences, écrites, sans emblème officiel ------------------------ */

.licences { list-style: none; margin: 1.6rem 0 0; padding: 0; }

.licences li {
  display: inline-block; vertical-align: top; margin: 0 1rem 0.8rem 0; max-width: none;
  background: linear-gradient(180deg, #151d25 0%, #10171e 100%);
  border: 1px solid #c9a233; border-radius: 8px; padding: 0.7rem 1rem;
}

.licence-badge {
  display: block; font-size: 0.78rem; font-weight: 800; letter-spacing: 0.18em;
  text-transform: uppercase;
  background: linear-gradient(100deg, #fdf0b8, #c9a233);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: #e6c767;
}

.licence-num { display: block; font-weight: 700; font-size: 0.95rem; color: #f2f5f7; }
.licence-lien { display: inline-block; font-size: 0.9rem; margin-top: 0.15rem; }
