/* Thème public, cohérent avec manage_equipe.css */

body {
  background: #121212;
  color: #ececec;
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 0;
}

.team-container {
  width: 90%;
  max-width: 1000px;
  margin: 30px auto;
  padding: 20px;
  background: #1e1e1e;
  border-radius: 6px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.5);
}

/* En-tête */
.team-header {
  display: grid;
  grid-template-columns: 64px 1fr auto;
  gap: 14px;
  align-items: center;
  border-bottom: 1px solid #333;
  padding-bottom: 12px;
  margin-bottom: 16px;
}

.team-logo {
  width: 64px;
  height: 64px;
  object-fit: cover;
  border-radius: 6px;
  background: #2a2a2a;
}

.team-head-text h1 {
  margin: 0 0 8px 0;
  font-size: 1.5rem;
  color: #fff;
}

/* Ligne d'infos en-tête */
.line .link {
  display: inline-block;
  padding: 4px 10px;
  background: #1e1e1e;
  border: 1px solid #444;
  border-radius: 4px;
  color: #66afe9;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.2s, border-color 0.2s;
}

.line .link:hover {
  background: #2a2a2a;
  border-color: #66afe9;
  text-decoration: none;
  color: #9ecbff;
}


.team-actions .btn {
  background: #007bff;
  color: #fff;
  padding: 8px 12px;
  border-radius: 4px;
  text-decoration: none;
  display: inline-block;
  transition: background .2s;
}
.team-actions .btn:hover { background: #005ec7; }

/* Sections */
.detail-section {
  margin-bottom: 18px;
  padding: 15px;
  background: #2b2b2b;
  border-left: 4px solid #61dafb;
  border-radius: 4px;
}
.detail-section h2 {
  margin: 0 0 10px;
  color: #61dafb;
  font-size: 1.15rem;
  border-bottom: 1px solid #444;
  padding-bottom: 6px;
}

/* Champs (ligne par ligne) */
.field { margin: 10px 0; }
.field .label {
  display: block;
  color: #9ecbff;
  font-weight: 600;
  margin-bottom: 4px;
}
.field .value {
  display: block;
  color: #e8e8e8;
  word-break: break-word;
}

/* Joueurs */
.players-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 12px;
}
.player-card {
  background: #333;
  border: 1px solid #444;
  border-radius: 6px;
  padding: 12px;
}
.player-title {
  font-weight: 700;
  margin-bottom: 8px;
  color: #fff;
}

/* Lignes joueurs sur UNE LIGNE : "Label : valeur" */
.player-line {
  display: flex;
  gap: 6px;
  align-items: baseline;
  margin: 6px 0;
}
.label-inline {
  color: #9ecbff;
  font-weight: 600;
}
.value-inline {
  color: #e8e8e8;
  word-break: break-word;
}

/* Responsive */
@media (max-width: 800px) {
  .team-header {
    grid-template-columns: 54px 1fr;
    grid-template-rows: auto auto;
    grid-auto-flow: row;
  }
  .team-actions { grid-column: 1 / -1; }
}
