/* ============================================================
   SITE CO — LES ÉCRANS
   ============================================================ */

/* ---------------- Accueil ---------------- */
.heros {
  position: relative; margin: -6px -34px 0; min-height: min(78vh, 760px); display: grid; align-items: end; overflow: hidden;
  padding: 0 34px 46px; isolation: isolate;
}
.heros-fond { position: absolute; inset: -40px 0 0; z-index: -2; background: url("/media/marque/stade.webp") center 30% / cover no-repeat; transform-origin: 50% 0; will-change: transform; }
@supports (animation-timeline: scroll()) {
  .heros-fond { animation: parallaxe linear both; animation-timeline: scroll(root); animation-range: 0 700px; }
  @keyframes parallaxe { to { transform: translate3d(0, 160px, 0) scale(1.08); opacity: .35; } }
}
.heros::before { content: ""; position: absolute; inset: 0; z-index: -1; background:
  linear-gradient(180deg, rgba(4, 8, 22, .55) 0%, rgba(4, 8, 22, .35) 30%, rgba(4, 8, 22, .9) 78%, var(--nuit) 100%),
  radial-gradient(60% 50% at 20% 80%, rgba(47, 107, 255, .25), transparent 70%); }
.heros-titre { max-width: 900px; }
.heros-titre .surtitre { color: #c8d8ff; }
.heros h1 { margin: 0; font: 600 clamp(48px, 7.4vw, 112px)/.86 var(--titre); text-transform: uppercase; letter-spacing: .005em;
  background: linear-gradient(180deg, #fff 30%, #b9cbff); -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 10px 40px rgba(0, 0, 0, .55)); }
.heros h1 span { display: block; background: linear-gradient(90deg, #5b8cff, #8fb3ff 60%, #fff); -webkit-background-clip: text; background-clip: text; color: transparent; }
.heros p { margin: 18px 0 0; max-width: 620px; font-size: 17px; color: #d5def5; }
.heros-logo { position: absolute; right: 6%; top: 14%; width: clamp(150px, 17vw, 250px); filter: drop-shadow(0 30px 60px rgba(47, 107, 255, .6)); animation: flotte 6s ease-in-out infinite; }
.heros-chiffres { margin-top: 34px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; border-radius: 20px; overflow: hidden; border: 1px solid var(--ligne-2); background: var(--ligne); max-width: 980px; }
.heros-chiffres > a { padding: 18px 20px; background: rgba(5, 10, 28, .78); transition: background .25s; }
.heros-chiffres > a:hover { background: rgba(14, 28, 70, .85); }
.heros-chiffres span { display: block; font-size: 10.5px; font-weight: 800; letter-spacing: .17em; text-transform: uppercase; color: var(--texte-3); }
.heros-chiffres b { display: block; margin-top: 4px; font: 600 38px/1 var(--titre); }
.heros-chiffres small { color: var(--texte-2); font-size: 12px; }
.tuiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.tuile {
  position: relative; overflow: hidden; min-height: 168px; padding: 22px; border-radius: 22px; border: 1px solid var(--ligne);
  background: linear-gradient(150deg, rgba(47, 107, 255, .16), rgba(255, 255, 255, .02) 60%); transition: transform .45s var(--ressort), border-color .3s, box-shadow .4s;
}
.tuile:hover { transform: translate3d(0, -4px, 0); border-color: rgba(143, 179, 255, .4); box-shadow: var(--ombre-bleue); }
.tuile svg { width: 30px; height: 30px; color: var(--bleu-2); }
.tuile h3 { margin: 14px 0 4px; font: 600 22px var(--titre); text-transform: uppercase; letter-spacing: .02em; }
.tuile p { margin: 0; color: var(--texte-2); font-size: 13.5px; }
.tuile b { position: absolute; right: 20px; top: 16px; font: 600 44px var(--titre); color: rgba(143, 179, 255, .22); }
.tuile::after { content: "→"; position: absolute; right: 22px; bottom: 18px; font-size: 20px; color: var(--bleu-2); transform: translateX(-6px); opacity: 0; transition: transform .35s var(--ressort), opacity .3s; }
.tuile:hover::after { transform: none; opacity: 1; }
.defile { display: grid; grid-auto-flow: column; grid-auto-columns: 210px; gap: 16px; overflow-x: auto; padding: 4px 2px 18px; scroll-snap-type: x mandatory; scrollbar-width: thin; }
.defile > * { scroll-snap-align: start; }

/* ---------------- Terrain de l'effectif ---------------- */
.terrain {
  position: relative; border-radius: 26px; padding: 26px 22px 30px; overflow: hidden;
  background:
    repeating-linear-gradient(90deg, rgba(255, 255, 255, .025) 0 9.09%, transparent 9.09% 18.18%),
    radial-gradient(120% 80% at 50% 0%, #10632f 0%, #0b4a24 55%, #072f17 100%);
  border: 1px solid rgba(132, 230, 160, .18); box-shadow: inset 0 0 120px rgba(0, 0, 0, .5), var(--ombre);
}
.terrain::before { content: ""; position: absolute; inset: 14px; border: 2px solid rgba(255, 255, 255, .16); border-radius: 14px; pointer-events: none; }
.terrain-lignes { display: grid; gap: 18px; position: relative; }
.terrain-ligne { display: grid; gap: 14px; }
.poste { position: relative; padding: 12px 12px 10px; border-radius: 16px; background: rgba(3, 18, 9, .45); border: 1px solid rgba(255, 255, 255, .1); }
.poste-tete { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.poste-tete b { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 9px; background: #fff; color: #0b3d1e; font: 600 15px var(--titre); }
.poste-tete span { font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: rgba(255, 255, 255, .78); }
.poste-tete em { margin-left: auto; font-style: normal; font-size: 11px; font-weight: 800; color: rgba(255, 255, 255, .55); }
.jeton {
  display: flex; align-items: center; gap: 9px; padding: 6px 8px 6px 6px; border-radius: 12px; cursor: pointer; margin-top: 6px;
  background: rgba(4, 12, 30, .72); border: 1px solid rgba(255, 255, 255, .08); transition: transform .3s var(--ressort), background .2s, border-color .2s;
}
.jeton:hover { transform: translate3d(0, -2px, 0); background: rgba(14, 30, 72, .9); border-color: rgba(143, 179, 255, .45); }
.jeton .av { width: 34px; height: 34px; border-radius: 10px; overflow: hidden; flex: none; background: rgba(255, 255, 255, .08); display: grid; place-items: center; font: 600 13px var(--titre); color: var(--texte-3); }
.jeton .av img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 15%; }
.jeton b { display: block; font-size: 13px; font-weight: 750; line-height: 1.15; }
.jeton small { display: block; font-size: 11px; color: var(--texte-3); }
.jeton .puce { margin-left: auto; padding: 1px 8px; font-size: 11px; }

.colonnes-contrats { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; align-items: start; }
.colonne-contrat { padding: 14px; border-radius: 18px; background: var(--surface); border: 1px solid var(--ligne); min-height: 120px; }
.colonne-tete { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 6px; }
.colonne-tete b { font: 600 22px var(--titre); }
.colonne-tete span { font: 600 15px var(--titre); color: var(--texte-3); }
@media (max-width: 1200px) { .colonnes-contrats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---------------- Recrutement ---------------- */
.onglets-recrut { margin-bottom: 18px; overflow-x: auto; scrollbar-width: none; }
.filtres {
  position: sticky; top: 64px; z-index: 10; display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 12px; margin: 0 -12px 18px;
  border-radius: 18px; background: rgba(6, 12, 32, .82); border: 1px solid var(--ligne); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
}
.filtres .compte-res { margin-left: auto; font-size: 13px; font-weight: 700; color: var(--texte-2); }
.postes-puces { display: flex; gap: 4px; flex-wrap: wrap; }
.postes-puces button { min-width: 34px; height: 32px; padding: 0 9px; border-radius: 9px; border: 1px solid var(--ligne); background: var(--surface-2); font: 600 14px var(--titre); color: var(--texte-2); transition: background .2s, color .2s, transform .2s var(--ressort); }
.postes-puces button:hover { color: #fff; }
.postes-puces button.est-actif { background: var(--bleu); border-color: transparent; color: #fff; transform: translateY(-1px); box-shadow: 0 8px 18px -8px var(--bleu); }
.groupe-poste { margin-bottom: 10px; }
.groupe-poste.est-cache { display: none; }
.agents { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }
.agent { padding: 18px; border-radius: 18px; background: var(--surface); border: 1px solid var(--ligne); }
.agent h3 { margin: 0 0 4px; font: 600 19px var(--titre); text-transform: uppercase; }
.agent .mini { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.mini-joueur { display: inline-flex; align-items: center; gap: 6px; padding: 4px 9px 4px 4px; border-radius: 10px; background: var(--surface-2); border: 1px solid var(--ligne); font-size: 12.5px; font-weight: 650; cursor: pointer; }
.mini-joueur:hover { border-color: var(--ligne-2); background: var(--surface-3); }
.mini-joueur i { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 7px; background: var(--bleu); color: #fff; font: 600 12px var(--titre); font-style: normal; }
.bilan { display: grid; grid-template-columns: 64px 1fr; gap: 16px; padding: 18px; border-radius: 18px; background: var(--surface); border: 1px solid var(--ligne); margin-bottom: 12px; cursor: pointer; transition: border-color .2s; }
.bilan:hover { border-color: var(--ligne-2); }
.bilan .av { width: 64px; height: 64px; border-radius: 16px; overflow: hidden; background: var(--surface-2); display: grid; place-items: center; font: 600 20px var(--titre); color: var(--texte-3); }
.bilan .av img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 15%; }
.bilan h3 { margin: 0; font: 600 18px var(--titre); text-transform: uppercase; }
.bilan p { margin: 8px 0 0; color: var(--texte-2); white-space: pre-line; }

/* ---------------- Fiche joueur ---------------- */
.fiche-haut { position: relative; display: grid; grid-template-columns: 300px 1fr; gap: 30px; padding: 40px 40px 30px; overflow: hidden; }
.fiche-haut::before { content: ""; position: absolute; inset: 0; z-index: 0; background: radial-gradient(70% 90% at 15% 10%, rgba(47, 107, 255, .35), transparent 60%), radial-gradient(40% 60% at 95% 0%, rgba(224, 49, 58, .18), transparent 70%); }
.fiche-photo { position: relative; z-index: 1; height: 340px; border-radius: 26px; overflow: hidden; background: linear-gradient(170deg, #1a3a8a, #0a1433); border: 1px solid var(--ligne-2); box-shadow: var(--ombre-bleue); }
.fiche-photo img { position: absolute; left: 50%; bottom: 0; height: 100%; width: auto; max-width: none; transform: translateX(-50%); }
.fiche-photo img.est-portrait { width: 100%; height: 100%; object-fit: cover; object-position: 50% 15%; }
.fiche-photo .carte-initiales { font-size: 90px; }
.fiche-id { position: relative; z-index: 1; align-self: end; min-width: 0; }
.fiche-id h2 { margin: 0; font: 600 clamp(36px, 4.4vw, 60px)/.92 var(--titre); text-transform: uppercase; }
.fiche-id h2 small { display: block; font-size: .42em; letter-spacing: .06em; color: var(--texte-2); margin-bottom: 6px; }
.fiche-club { display: flex; align-items: center; gap: 12px; margin-top: 14px; font-weight: 700; color: var(--texte-2); }
.fiche-club img { width: 40px; height: 40px; padding: 5px; border-radius: 12px; background: #fff; object-fit: contain; }
.fiche-puces { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.fiche-puces .puce { font-size: 12.5px; padding: 5px 12px; }
.fiche-note { display: flex; align-items: center; gap: 12px; margin-top: 18px; }
.fiche-note .etoiles svg { width: 24px; height: 24px; }
.fiche-note b { font: 600 22px var(--titre); }
.fiche-corps { padding: 0 40px 50px; display: grid; gap: 18px; }
.fiche-bloc { padding: 20px 22px; border-radius: 20px; background: var(--surface); border: 1px solid var(--ligne); }
.fiche-bloc h3 { margin: 0 0 14px; font-size: 11.5px; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; color: var(--texte-3); }
.fiche-bloc p { margin: 0; color: var(--texte-2); white-space: pre-line; }
.fiche-deux { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.critere { display: grid; grid-template-columns: 170px 1fr 44px; align-items: center; gap: 12px; padding: 6px 0; }
.critere span { font-size: 13.5px; font-weight: 650; color: var(--texte-2); }
.critere .jauge { height: 8px; border-radius: 8px; background: rgba(255, 255, 255, .07); overflow: hidden; }
.critere .jauge i { display: block; height: 100%; border-radius: 8px; background: linear-gradient(90deg, var(--bleu), var(--ciel)); transform-origin: 0 50%; transform: scaleX(0); transition: transform .9s var(--doux); }
.fiche.est-ouvert .critere .jauge i { transform: scaleX(var(--v)); }
.critere b { font: 600 15px var(--titre); text-align: right; font-variant-numeric: tabular-nums; }
.critere.est-vide b { color: var(--texte-3); }
/* ---------------- Fiche : édition ---------------- */
.fiche-actions { display: flex; gap: 10px; margin-top: 18px; }
.ed-lib { font-size: 11px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--texte-3); margin-right: 4px; }
.ed-etoiles { display: inline-flex; align-items: center; gap: 2px; }
.ed-e { position: relative; display: inline-block; cursor: pointer; transition: transform .15s var(--ressort); }
.ed-e:hover { transform: scale(1.12); }
.ed-e svg { width: 100%; height: 100%; display: block; }
.ed-e .f { fill: rgba(255, 255, 255, .13); }
.ed-e .p { fill: var(--or); filter: drop-shadow(0 0 6px rgba(245, 196, 81, .45)); }
.ed-e i { position: absolute; top: 0; bottom: 0; width: 50%; }
.ed-e i:first-of-type { left: 0; } .ed-e i:last-of-type { right: 0; }
.ed-val { min-width: 34px; margin-left: 8px; font: 600 15px var(--titre); color: var(--texte); font-variant-numeric: tabular-nums; }
.ed-effacer { width: 24px; height: 24px; border-radius: 8px; border: 1px solid var(--ligne); background: none; color: var(--texte-3); font-size: 15px; line-height: 1; }
.ed-effacer:hover { color: #fff; border-color: var(--ligne-2); }
.critere.est-edition { grid-template-columns: 170px 1fr; }
.ed-texte { width: 100%; resize: vertical; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--ligne-2); background: rgba(4, 8, 22, .55); color: var(--texte); font: 14px/1.5 var(--corps); }
.ed-texte:focus { outline: none; border-color: var(--bleu-2); box-shadow: 0 0 0 3px rgba(47, 107, 255, .2); }
.ed-tous { float: right; font-size: 11px; letter-spacing: .06em; text-transform: none; color: var(--bleu-2); font-weight: 700; }
.bilan-ligne { padding: 10px 0; border-bottom: 1px solid var(--ligne); }
.bilan-ligne p { margin: 4px 0 0; }
.bilan-ligne small { color: var(--or); font-size: 12px; }
.bilan-nouveau { display: grid; gap: 10px; margin-top: 12px; justify-items: start; }
.bilan .bilan-suppr { margin-left: auto; align-self: start; }

.infos { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 14px; }
.infos div span { display: block; font-size: 10.5px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--texte-3); }
.infos div b { display: block; margin-top: 3px; font-weight: 700; }

@media (max-width: 640px) {
  /* Sur téléphone, un poste par ligne : deux ou trois colonnes de
     jetons ne laissent plus lire les noms. */
  .terrain-ligne { grid-template-columns: 1fr !important; }
  .terrain { padding: 16px 12px 18px; }
}
@media (max-width: 980px) {
  .heros { margin: 0 -16px; padding: 0 16px 30px; min-height: 70vh; }
  .heros-logo { right: 4%; top: 8%; width: 110px; }
  .heros-chiffres { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tuiles { grid-template-columns: 1fr; }
  .filtres { top: 56px; margin: 0 -4px 14px; }
  .fiche-haut { grid-template-columns: 1fr; padding: 24px 20px; }
  .fiche-photo { height: 280px; }
  .fiche-corps { padding: 0 20px 40px; }
  .fiche-deux { grid-template-columns: 1fr; }
  .critere { grid-template-columns: 120px 1fr 38px; }
}
