/* ========================================================================
   FOOT VERTICAL — selections.css  |  Toutes les sélections CDM 2026
   Cartes nations repliées (accordéon natif <details>), effectifs par
   poste, nav A→L collante, recherche joueur/équipe.
   ======================================================================== */

.fvs { padding-bottom: 90px; }

.fvs-wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---- Hero ------------------------------------------------------------ */
.fvs-hero {
  padding: 56px 0 34px;
  background:
    radial-gradient(60% 50% at 18% -10%, rgba(214, 236, 255, 0.06), transparent 60%),
    radial-gradient(60% 50% at 82% -10%, rgba(214, 236, 255, 0.06), transparent 60%);
}

.fvs-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--fv-green);
  margin: 0 0 12px;
}

.fvs-title {
  font-family: var(--fv-font-scoreboard);
  font-size: clamp(44px, 7vw, 76px);
  line-height: 0.92;
  color: var(--fv-white);
  text-transform: uppercase;
  margin: 0 0 10px;
}
.fvs-title span { color: var(--fv-green); text-shadow: 0 0 40px rgba(0, 224, 90, 0.35); }

.fvs-sub {
  font-family: 'Fraunces', Georgia, serif;
  font-style: italic;
  font-size: 16.5px;
  color: var(--fv-grey-700);
  margin: 0;
}

.fvs-soon {
  padding: 70px 0 120px;
  text-align: center;
  font-family: 'Fraunces', Georgia, serif;
  font-style: italic;
  font-size: 19px;
  color: var(--fv-grey-700);
}

/* ---- Barre collante nav + recherche ----------------------------------- */
.fvs-bar {
  position: sticky;
  top: 56px; /* hauteur du header une fois la page scrollée (.is-scrolled) */
  z-index: 50;
  background: rgba(6, 9, 17, 0.92);
  backdrop-filter: blur(10px);
  border-block: 1px solid var(--fv-border);
  padding: 10px 0;
}

.fvs-bar-inner {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

.fvs-nav { display: flex; gap: 6px; flex-wrap: wrap; }
.fvs-nav a {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border: 1px solid var(--fv-border);
  border-radius: 6px;
  font-family: var(--fv-font-scoreboard);
  font-size: 15px;
  color: var(--fv-grey-700);
  text-decoration: none;
  transition: all 0.2s;
}
.fvs-nav a:hover { border-color: var(--fv-green); color: var(--fv-green); transform: translateY(-2px); }

.fvs-search {
  display: flex;
  align-items: center;
  gap: 9px;
  flex: 1;
  min-width: 220px;
  max-width: 380px;
  margin-left: auto;
  padding: 7px 14px;
  background: var(--fv-black);
  border: 1px solid var(--fv-border);
  border-radius: 30px;
  transition: border-color 0.2s;
}
.fvs-search:focus-within { border-color: var(--fv-green); }
.fvs-search i { color: var(--fv-grey-500); font-size: 15px; }
.fvs-search input {
  flex: 1;
  min-width: 0;
  background: none;
  border: none;
  outline: none;
  color: var(--fv-white);
  font-family: var(--fv-font-body);
  font-size: 13.5px;
}
.fvs-search input::placeholder { color: var(--fv-grey-500); }

/* ---- Sections de groupe ----------------------------------------------- */
.fvs-groupe { margin-top: 54px; scroll-margin-top: 130px; }

.fvs-groupe-titre {
  position: relative;
  font-family: var(--fv-font-scoreboard);
  font-size: clamp(26px, 3.4vw, 38px);
  letter-spacing: 1px;
  color: var(--fv-white);
  text-transform: uppercase;
  margin: 0 0 20px;
  padding: 22px 0 0 6px;
  z-index: 0;
}

.fvs-ghost {
  position: absolute;
  top: -18px;
  left: -10px;
  z-index: -1;
  font-size: 110px;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px rgba(0, 224, 90, 0.14);
  user-select: none;
}

.fvs-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  align-items: start; /* les cartes fermées ne s'étirent pas à la hauteur d'une carte ouverte */
}
@media (max-width: 880px) { .fvs-cards { grid-template-columns: 1fr; } }

/* Carte ouverte : elle prend toute la largeur de la rangée et l'effectif
   s'étale en colonnes — la voisine reste compacte, plus de grand vide. */
@media (min-width: 881px) {
  .fvs-card[open] { grid-column: 1 / -1; }
  .fvs-card[open] .fvs-squad { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
}

/* ---- Carte nation ------------------------------------------------------ */
.fvs-card {
  border: 1px solid var(--fv-border);
  border-radius: var(--fv-radius-lg);
  background: rgba(255, 255, 255, 0.025);
  overflow: hidden;
  transition: border-color 0.25s, box-shadow 0.25s;
}
.fvs-card:hover { border-color: rgba(0, 224, 90, 0.35); }
.fvs-card[open] { border-color: rgba(0, 224, 90, 0.5); box-shadow: 0 18px 44px -22px rgba(0, 224, 90, 0.25); }

.fvs-card summary {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 20px;
  cursor: pointer;
  list-style: none;
}
.fvs-card summary::-webkit-details-marker { display: none; }

.fvs-flag { font-size: 36px; line-height: 1; flex-shrink: 0; }

.fvs-id { flex: 1; min-width: 0; }
.fvs-id b {
  display: block;
  font-family: var(--fv-font-scoreboard);
  font-size: 23px;
  font-weight: 400;
  letter-spacing: 1px;
  color: var(--fv-white);
  text-transform: uppercase;
  line-height: 1.05;
}
.fvs-id i {
  display: block;
  font-style: normal;
  font-size: 12px;
  color: var(--fv-grey-700);
  margin-top: 3px;
}

.fvs-stars { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 8px; }
.fvs-stars em {
  font-style: normal;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.5px;
  color: var(--fv-grey-900);
  padding: 3px 9px;
  border: 1px solid var(--fv-border);
  border-radius: 20px;
  background: rgba(0, 224, 90, 0.05);
}

.fvs-toggle {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--fv-green);
  white-space: nowrap;
}
.fvs-toggle i { transition: transform 0.25s; }
.fvs-card[open] .fvs-toggle i { transform: rotate(180deg); }
.fvs-card .when-open { display: none; }
.fvs-card[open] .when-open { display: inline; }
.fvs-card[open] .when-closed { display: none; }

/* ---- Effectif ----------------------------------------------------------- */
.fvs-squad {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px 22px;
  padding: 4px 20px 20px;
  border-top: 1px solid var(--fv-border);
  animation: fvsOpen 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}
@media (max-width: 560px) { .fvs-squad { grid-template-columns: 1fr; } }
@keyframes fvsOpen { from { opacity: 0; transform: translateY(-6px); } }

.fvs-poste h3 {
  font-family: var(--fv-font-scoreboard);
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--fv-green);
  margin: 16px 0 8px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--fv-border);
  display: flex;
  justify-content: space-between;
}
.fvs-poste h3 span { color: var(--fv-grey-500); font-size: 12px; }

.fvs-poste ul { list-style: none; margin: 0; padding: 0; }
.fvs-poste li {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 4.5px 0;
  font-size: 13.5px;
  color: var(--fv-grey-900);
}
.fvs-poste li b {
  font-family: 'VT323', monospace;
  font-weight: 400;
  font-size: 16px;
  color: var(--fv-grey-500);
  min-width: 20px;
  text-align: right;
}
.fvs-poste li span { color: var(--fv-white); font-weight: 500; }
.fvs-poste li i {
  font-style: normal;
  font-size: 11.5px;
  color: var(--fv-grey-500);
  margin-left: auto;
  text-align: right;
}
.fvs-poste li.is-hit span {
  color: var(--fv-green);
  text-shadow: 0 0 14px rgba(0, 224, 90, 0.4);
}

/* ---- Recherche : états ------------------------------------------------- */
.fvs-card.is-hidden, .fvs-groupe.is-hidden { display: none; }

.fvs-source {
  margin-top: 56px;
  text-align: center;
  font-size: 12.5px;
  font-style: italic;
  color: var(--fv-grey-500);
}
.fvs-source a { color: var(--fv-green); }

@media (prefers-reduced-motion: reduce) {
  .fvs *, .fvs *::before { animation: none !important; transition: none !important; }
}
