/* ===========================
   MMA Universe - Styles Pro
   =========================== */

/* -------- Variables -------- */
:root {
  --bg: #0d1117;
  --card: #161b22;
  --text: #ffffff;
  --text-dark: #000000;
  --muted: #a0aab5;
  --accent: #ff6b35;
  --accent-2: #6ec1ff;
  --radius: 10px;
  --transition: 0.2s ease;
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

/* -------- Reset -------- */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html, body {
  height: 100%;
}
body {
  background: var(--bg);
  color: var(--text);
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
}

/* -------- Header / Navigation -------- */
.site-header {
  background: rgba(15, 20, 25, 0.9);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1100px;
  margin: 0 auto;
  padding: 16px 24px;
}

.brand {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text);
  text-decoration: none;
}

/* -------- Navbar -------- */
.site-nav ul {
  list-style: none;
  display: flex;
  gap: 10px;
}

.site-nav a {
  text-decoration: none;
  color: var(--muted);
  padding: 8px 14px;
  border-radius: var(--radius);
  transition: background var(--transition), color var(--transition), transform var(--transition);
}

.site-nav a:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text);
  transform: translateY(-2px);
}

.site-nav a.active {
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  color: var(--text-dark);
  font-weight: 600;
}

/* -------- Main / Sections -------- */
main {
  flex: 1 0 auto; /* pour que le footer soit en bas */
  display: block; /* IMPORTANT : remet le comportement normal */
}


section {
  width: 100%;
  max-width: 1000px;
  margin: auto;
  padding: 40px 20px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* -------- Accueil -------- */
.hero {
  text-align: center;
  max-width: 700px;
  margin: 0 auto;
}

.hero h1 {
  font-size: 2.5rem;
  margin-bottom: 12px;
  color: var(--text);
}

.hero p {
  color: var(--muted);
  margin-bottom: 20px;
}

.btn {
  display: inline-block;
  padding: 10px 18px;
  border-radius: var(--radius);
  text-decoration: none;
  font-weight: 600;
  color: var(--text);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all var(--transition);
}

.btn:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
}

.btn.primary {
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  color: var(--text-dark);
  border: none;
}

/* -------- Cartes (autres pages) -------- */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}

.card {
  background: var(--card);
  border-radius: var(--radius);
  padding: 16px;
  transition: transform var(--transition), background var(--transition);
}

.card:hover {
  transform: translateY(-5px);
  background: rgba(255, 255, 255, 0.05);
}

.card img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 10px;
}

/* -------- Footer -------- */
.site-footer {
  text-align: center;
  color: var(--muted);
  padding: 16px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

/* -------- Responsif -------- */
@media (max-width: 820px) {
  .site-nav {
    position: absolute;
    right: 20px;
    top: 70px;
    background: rgba(10, 14, 18, 0.95);
    padding: 12px;
    border-radius: var(--radius);
    display: none;
  }
  .site-nav.open {
    display: block;
  }
  .site-nav ul {
    flex-direction: column;
    align-items: flex-end;
  }
  .nav-toggle {
    display: block;
    background: none;
    border: 0;
  }
}

/* -------- Thèmes par page -------- */
body.theme-home {
  --bg: #08131d;
  --card: #0f1b25;
  --accent: #ff7a3a;
  --accent-2: #6ec6ff;
}
body.theme-fighters {
  --bg: #0b0f14;
  --card: #10151b;
  --accent: #ff4e3b;
  --accent-2: #ffb27a;
}
body.theme-techniques {
  --bg: #081219;
  --card: #0f1720;
  --accent: #3ddc97;
  --accent-2: #64f0b1;
}
body.theme-about {
  --bg: #0b1020;
  --card: #0c1320;
  --accent: #6ea8ff;
  --accent-2: #4fb6ff;
}
body.theme-contact {
  --bg: #071b1b;
  --card: #0d1a1b;
  --accent: #ff9b6b;
  --accent-2: #ffd6b1;
}

.hero-media{
  margin-top: 10px;
}

/* --- Layout de base pour footer en bas de page --- */
html, body {
  height: 100%;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column; /* header -> main -> footer */
}

/* Le main doit prendre tout l'espace disponible */
main {
  flex: 1 0 auto;
  display: block; /* important : pas de flex ici pour éviter les bugs d’alignement */
  overflow-y: auto;
}

/* Footer collé en bas, centré */
.site-footer {
  flex-shrink: 0;
  text-align: center;
  color: var(--muted);
  padding: 16px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

/* S'assure que le container du footer ne devienne JAMAIS un flex */
.site-footer .container {
  display: block !important;
  margin: 0 auto;
  text-align: center;
}

#ring {
  border-radius: 20px;
}

.container-fighters-list {
  max-width: 1100px;
  margin: auto;
  padding: 20px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 110px;
}

.fighter-card {
  background: var(--card);
  border-radius: var(--radius);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: transform 0.2s ease;
}

.fighter-card:hover {
  transform: translateY(-4px);
}

.fighter-card img {
  width: 100%;
  height: 320px;        /* même hauteur pour toutes les images */
  object-fit: cover;    /* garde la bonne proportion */
  border-radius: 10px;
}

.fighter-info h3 {
  margin-bottom: 6px;
}

.fighter-info p {
  margin-bottom: 6px;
}