/* Header sticky */
.fw-header{
  position:sticky;
  top:0;
  background:rgba(255,255,255,.92);
  backdrop-filter:saturate(1.2) blur(8px);
  border-bottom:1px solid var(--fw-border);
  z-index:20;
}
.fw-header__inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:12px var(--fw-pad);
}
.fw-brand{
  font-weight:700;
  text-decoration:none;
}
.fw-nav{
  display:flex;
  gap:14px;
}
.fw-nav a{
  text-decoration:none;
  padding:6px 10px;
  border-radius:999px;
}
.fw-nav a:hover{
  background:rgba(0,0,0,.05);
}
@media (max-width:560px){
  .fw-nav{ gap:8px; flex-wrap:wrap; justify-content:flex-end }
}

/* Grid */
.fw-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(260px,1fr));
  gap:18px;
}

/* Card */
.fw-card{
  border:1px solid var(--fw-border);
  border-radius:var(--fw-r-md);
  padding:14px;
  background:var(--fw-surface);
  box-shadow:var(--fw-shadow);
}
.fw-card h2{
  font-size:var(--fw-h2);
  margin:0 0 10px;
}
.fw-card ul{
  margin:0;
  padding-left:18px;
}
.fw-card li{ margin:6px 0 }
.fw-card a{ text-decoration:none; color:var(--fw-accent) }
.fw-card a:hover{ text-decoration:underline }

/* Table */
.fw-table{
  width:100%;
  border-collapse:collapse;
  border:1px solid var(--fw-border);
  border-radius:var(--fw-r-sm);
  overflow:hidden;
}
.fw-table th, .fw-table td{
  padding:10px 12px;
  border-bottom:1px solid var(--fw-border);
  text-align:left;
}
.fw-table th{ background:rgba(0,0,0,.03) }
.fw-table tr:last-child td{ border-bottom:none }

/* Badge */
.fw-badge{
  display:inline-block;
  padding:3px 8px;
  border:1px solid var(--fw-border);
  border-radius:999px;
  font-size:.85rem;
  color:var(--fw-muted);
}
/* Layout adaptatif des grilles fiches (France + NFL) */
@media (min-width: 1024px){

  /* Base : 2 colonnes */
  .fw-club-grid{
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
  }

  /* Si au moins 3 cartes NON wide -> 3 colonnes */
  .fw-club-grid:has(> .fw-club-card:not(.fw-club-card--wide):nth-child(3)){
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  /* Cartes pleine largeur */
  .fw-club-grid > .fw-club-card--wide{
    grid-column: 1 / -1;
  }
}
/* FUSW — Grille fiches : base 2 colonnes (force override) */
@media (min-width: 900px){
  body .fw-club-grid{
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 16px !important;
  }

  /* Si au moins 3 cartes NON wide -> 3 colonnes */
  body .fw-club-grid:has(> .fw-club-card:not(.fw-club-card--wide):nth-of-type(3)){
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }

  /* Les cartes wide restent pleine largeur */
  body .fw-club-grid > .fw-club-card--wide{
    grid-column: 1 / -1 !important;
  }
}
/* FUSW — Force 2 colonnes sur les fiches (évite le 1/3 + vide) */
@media (min-width: 900px){
  .fw-club-grid{
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 16px !important;
  }

  .fw-club-grid > .fw-club-card--wide{
    grid-column: 1 / -1 !important;
  }
}
/* NFL — cartes équipes (aligné France) */
.fw-card--team .fw-card__inner{
  display:flex;
  align-items:center;
  gap:10px;
}

.fw-card--team .fw-team-logo{
  width:34px;
  height:34px;
  object-fit:contain;
  display:block;
  flex:0 0 34px;
}

.fw-card--team .fw-team-logo--empty{
  width:34px;
  height:34px;
  border-radius:8px;
  border:1px solid rgba(0,0,0,.10);
  background:rgba(0,0,0,.03);
  display:inline-block;
  flex:0 0 34px;
}

/* Grille des 4 équipes */
.fw-cards--teams{
  display:grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap:12px;
}
