/* ===============================
   🎨 STYLE GÉNÉRAL - CAN 2025
   =============================== */

:root {
  --bg-dark: #0f0f0f;
  --bg-card: #161616;
  --accent: #ffcc00;
  --accent2: #00ff80;
  --text-light: #f5f5f5;
  --text-muted: #bbb;
  --border-soft: #2a2a2a;
  --shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
  --radius: 14px;
  --transition: 0.3s ease-in-out;
  --font-main: 'Inter', 'Poppins', sans-serif;
}

html, body {
  margin: 0;
  padding: 0;
  font-family: var(--font-main);
  background: var(--bg-dark);
  color: var(--text-light);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  scroll-behavior: smooth;
}

/* ===============================
   🏆 HEADER
   =============================== */
.site-header {
  text-align: center;
  padding: 1.5rem 0;
  background: linear-gradient(90deg, #ffe600, #00e676);
  color: #000;
  box-shadow: var(--shadow);
}

.site-header h1 {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 0.3rem;
}

.site-header .subtitle {
  font-size: 1rem;
  color: #111;
  font-weight: 500;
}

/* ===============================
   🧱 STRUCTURE PRINCIPALE
   =============================== */
.container {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.2rem;
  padding: 1.5rem;
  max-width: 1400px;
  margin: 0 auto;
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1rem 1.2rem;
  transition: var(--transition);
}

.card:hover {
  transform: translateY(-3px);
  border-color: var(--accent);
}

/* ===============================
   🏟️ TITRES DE SECTIONS
   =============================== */
h2 {
  color: var(--accent);
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
  border-bottom: 1px solid var(--border-soft);
  padding-bottom: 0.4rem;
}

/* ===============================
   ⚽️ MATCHS
   =============================== */
.matches {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.match-card {
  background: #1e1e1e;
  border-radius: var(--radius);
  padding: 0.8rem 1rem;
  display: flex;
  flex-direction: column;
  transition: var(--transition);
  border: 1px solid transparent;
}

.match-card:hover {
  border-color: var(--accent2);
  background: #232323;
}

.match-header {
  display: flex;
  justify-content: space-between;
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: 0.4rem;
}

.match-info {
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* ===============================
   🏆 CLASSEMENTS
   =============================== */
#standings {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.group {
  background: #1b1b1b;
  border-radius: var(--radius);
  padding: 0.8rem;
  border: 1px solid var(--border-soft);
}

.group h3 {
  color: var(--accent);
  font-size: 1.1rem;
  margin: 0.6rem 0;
}

.team-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #141414;
  border-radius: var(--radius);
  padding: 0.5rem 0.8rem;
  margin-bottom: 0.4rem;
}

.team-name {
  flex: 1;
  font-weight: 500;
}

.team-stats {
  display: flex;
  gap: 0.9rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* ===============================
   🤖 ANALYSES IA
   =============================== */
#ai-analysis {
  font-size: 0.95rem;
  color: var(--text-muted);
  background: #141414;
  padding: 1rem;
  border-radius: var(--radius);
  border: 1px dashed var(--border-soft);
  transition: var(--transition);
}

#ai-analysis:hover {
  border-color: var(--accent);
  color: var(--text-light);
}

/* ===============================
   📱 RESPONSIVE
   =============================== */
@media (max-width: 768px) {
  .site-header h1 {
    font-size: 1.6rem;
  }

  .container {
    padding: 1rem;
  }

  .card {
    padding: 0.9rem;
  }

  .team-stats {
    gap: 0.5rem;
  }
}

/* ===============================
   🦶 FOOTER
   =============================== */
footer {
  text-align: center;
  padding: 1rem 0;
  font-size: 0.85rem;
  color: var(--text-muted);
  border-top: 1px solid var(--border-soft);
  background: #111;
}
