:root {
  --primary: #ff4c00;
  --intermediate: #ff9500;
  --secondary: #ffb60b;
  --verydark: #1e1e1e;
  --dark: #393939;
  --grey: #565656;
  --lightgrey: #b0b0b0;
  --light: #efefef;
  --success: #2ecc71;
  --danger: #e74c3c;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 20px;
}

/* --- Section Recherche (Style Game.php) --- */
.search-section {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  padding: 30px;
  text-align: center;
  margin-bottom: 40px;
}

.input-group {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  margin-top: 15px;
}

.player-input {
  background: var(--dark);
  border: 1px solid var(--grey);
  border-radius: 10px;
  padding: 12px 20px;
  color: white;
  width: 250px;
  outline: none;
}

.player-input:focus {
  border-color: var(--primary);
}

.vs-text {
  font-weight: bold;
  color: var(--primary);
  font-size: 1.5rem;
}

.btn-compare {
  margin-top: 20px;
  background-color: var(--primary);
  border-radius: 16px;
  padding: 10px 25px;
  color: #fff;
  border: 2px solid #ff9500;
  cursor: pointer;
  box-shadow: 0 5px 0 0 #c35d00;
  transition:
    transform 0.15s ease,
    box-shadow 0.15s ease,
    filter 0.15s ease;
}

.btn-compare:hover {
  filter: brightness(1.05);

}

.btn-compare:active {
  transform: translateY(2px);
  box-shadow: 0 2px 0 0 #c35d00;
}

/* --- Section Comparaison --- */
.comparison-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
}

.card {
  background: var(--dark);
  border-radius: 20px;
  padding: 25px;
  box-shadow: 5px 5px 15px rgba(0, 0, 0, 0.5);
  transition: box-shadow 0.2s ease;
}

.card:hover {
  box-shadow: 8px 8px 20px rgba(0, 0, 0, 0.7);
}

.card h3 {
  margin-top: 0;
  border-bottom: 2px solid var(--primary);
  padding-bottom: 10px;
  text-align: center;
}

/* --- Logique de couleurs pour les Stats --- */
.skill-item {
  display: flex;
  justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}



.better {
  color: var(--success);
  font-weight: bold;
}

.worse {
  color: var(--danger);
}

.equal {
  color: var(--lightgrey);
}

.main-chart-container {
  margin: 20px 0;
  height: 250px;
}

.separator {
  border: none;
  height: 1px;
  background: rgba(255, 255, 255, 0.1);
  margin: 40px 0;
}

/* Section des statistiques (Simulation) */
.stats-section {
  background-color: var(--grey);
  margin-bottom: 30px;
  padding: 30px;
  border-radius: 20px;
}

.stats-section h2 {
  text-align: center;
  font-size: 1.8em;
  margin-bottom: 30px;
  color: var(--light);
}

.stats-section h2 .player-name {
  color: var(--light);
}

.stats-section p {
  color: var(--light);
  text-align: center;
  font-size: 1.1em;
}

.highlight {
  font-weight: bold;
}

.secondary-charts {
  display: flex;
  gap: 25px;
  flex-wrap: wrap;
  justify-content: center;
}

.secondary-charts .card {
  flex: 1;
  min-width: 300px;
  padding-bottom: 15px;
}

.secondary-charts .card canvas {
  max-height: 250px;
  width: 100% !important;
  height: 250px !important;
}

.chart-title {
  margin-top: 15px;
  font-size: 1em;
  text-align: center;
  color: var(--light);
}