/* ===== MERADOKU.INFO - STYLES PRINCIPAUX ===== */

:root {
  --primary: #7c3aed;
  --primary-dark: #5b21b6;
  --secondary: #06b6d4;
  --accent: #f59e0b;
  --dark: #0f0f1a;
  --dark-card: #1a1a2e;
  --dark-border: #2d2d4e;
  --text-light: #e2e8f0;
  --text-muted: #94a3b8;
  --gradient: linear-gradient(135deg, #7c3aed 0%, #06b6d4 100%);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  background-color: var(--dark);
  color: var(--text-light);
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  line-height: 1.6;
}

/* ===== NAVBAR ===== */
.navbar {
  background: rgba(15, 15, 26, 0.95) !important;
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--dark-border);
  padding: 0.75rem 0;
}

.navbar-brand {
  font-size: 1.5rem;
  font-weight: 800;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.navbar-brand span { color: var(--secondary); }

.nav-link {
  color: var(--text-muted) !important;
  font-weight: 500;
  transition: color 0.2s;
  padding: 0.5rem 1rem !important;
}

.nav-link:hover, .nav-link.active {
  color: var(--secondary) !important;
}

.navbar-toggler { border-color: var(--dark-border); }
.navbar-toggler-icon { filter: invert(1); }

/* ===== HERO ===== */
.hero-section {
  position: relative;
  min-height: 90vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-image: url('../images/hero.jpg');
  background-size: cover;
  background-position: center;
  filter: brightness(0.35);
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 1;
}

.hero-badge {
  display: inline-block;
  background: rgba(124, 58, 237, 0.3);
  border: 1px solid var(--primary);
  color: var(--secondary);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 0.4rem 1rem;
  border-radius: 50px;
  margin-bottom: 1.5rem;
}

.hero-title {
  font-size: clamp(2.2rem, 5vw, 4rem);
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 1.5rem;
}

.hero-title .highlight {
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-desc {
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 560px;
  margin-bottom: 2rem;
}

/* ===== BUTTONS ===== */
.btn-primary-custom {
  background: var(--gradient);
  border: none;
  color: #fff;
  font-weight: 700;
  padding: 0.75rem 2rem;
  border-radius: 8px;
  transition: opacity 0.2s, transform 0.2s;
  text-decoration: none;
  display: inline-block;
}

.btn-primary-custom:hover {
  opacity: 0.9;
  transform: translateY(-2px);
  color: #fff;
}

.btn-outline-custom {
  border: 2px solid var(--primary);
  color: var(--text-light);
  font-weight: 700;
  padding: 0.7rem 2rem;
  border-radius: 8px;
  transition: all 0.2s;
  text-decoration: none;
  display: inline-block;
  background: transparent;
}

.btn-outline-custom:hover {
  background: var(--primary);
  color: #fff;
}

/* ===== SECTION TITLES ===== */
.section-title {
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  font-weight: 800;
  margin-bottom: 0.5rem;
}

.section-subtitle {
  color: var(--text-muted);
  font-size: 1.05rem;
  margin-bottom: 3rem;
}

.section-label {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--secondary);
  margin-bottom: 0.5rem;
}

/* ===== CARDS ===== */
.game-card {
  background: var(--dark-card);
  border: 1px solid var(--dark-border);
  border-radius: 12px;
  overflow: hidden;
  transition: transform 0.3s, box-shadow 0.3s;
  height: 100%;
}

.game-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(124, 58, 237, 0.25);
}

.game-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.game-card .card-body {
  padding: 1.25rem;
}

.game-card .card-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-light);
  margin-bottom: 0.5rem;
}

.game-card .card-text {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.badge-genre {
  background: rgba(124, 58, 237, 0.25);
  color: var(--secondary);
  border: 1px solid rgba(6, 182, 212, 0.3);
  font-size: 0.75rem;
  padding: 0.25rem 0.6rem;
  border-radius: 4px;
  font-weight: 600;
}

.score-badge {
  background: var(--gradient);
  color: #fff;
  font-weight: 800;
  font-size: 0.85rem;
  padding: 0.25rem 0.6rem;
  border-radius: 6px;
}

/* ===== TOURNAMENT CARD ===== */
.tournament-card {
  background: var(--dark-card);
  border: 1px solid var(--dark-border);
  border-radius: 12px;
  padding: 1.5rem;
  transition: transform 0.3s, box-shadow 0.3s;
}

.tournament-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 32px rgba(124, 58, 237, 0.2);
}

.tournament-card .t-date {
  color: var(--secondary);
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.tournament-card .t-title {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.tournament-card .t-location {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.tournament-card .t-status {
  display: inline-block;
  padding: 0.2rem 0.7rem;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 700;
}

.status-live { background: rgba(239,68,68,0.2); color: #ef4444; border: 1px solid #ef4444; }
.status-upcoming { background: rgba(245,158,11,0.2); color: #f59e0b; border: 1px solid #f59e0b; }
.status-finished { background: rgba(100,116,139,0.2); color: #94a3b8; border: 1px solid #94a3b8; }

/* ===== STATS ===== */
.stats-section {
  background: var(--dark-card);
  border-top: 1px solid var(--dark-border);
  border-bottom: 1px solid var(--dark-border);
  padding: 3rem 0;
}

.stat-item { text-align: center; }

.stat-number {
  font-size: 2.5rem;
  font-weight: 900;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-label {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-top: 0.25rem;
}

/* ===== NEWSLETTER ===== */
.newsletter-section {
  background: linear-gradient(135deg, rgba(124,58,237,0.15) 0%, rgba(6,182,212,0.1) 100%);
  border: 1px solid var(--dark-border);
  border-radius: 16px;
  padding: 3rem 2rem;
}

.newsletter-section .form-control {
  background: var(--dark);
  border: 1px solid var(--dark-border);
  color: var(--text-light);
  padding: 0.75rem 1rem;
  border-radius: 8px 0 0 8px;
}

.newsletter-section .form-control:focus {
  background: var(--dark);
  border-color: var(--primary);
  color: var(--text-light);
  box-shadow: none;
}

.newsletter-section .form-control::placeholder { color: var(--text-muted); }

/* ===== CONTACT FORM ===== */
.contact-form .form-control,
.contact-form .form-select {
  background: var(--dark-card);
  border: 1px solid var(--dark-border);
  color: var(--text-light);
  padding: 0.75rem 1rem;
  border-radius: 8px;
}

.contact-form .form-control:focus,
.contact-form .form-select:focus {
  background: var(--dark-card);
  border-color: var(--primary);
  color: var(--text-light);
  box-shadow: 0 0 0 3px rgba(124,58,237,0.2);
}

.contact-form .form-control::placeholder { color: var(--text-muted); }
.contact-form .form-label { color: var(--text-muted); font-size: 0.9rem; font-weight: 500; }

/* ===== FOOTER ===== */
footer {
  background: var(--dark-card);
  border-top: 1px solid var(--dark-border);
  padding: 3rem 0 1.5rem;
}

footer .footer-brand {
  font-size: 1.4rem;
  font-weight: 800;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

footer .footer-desc {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-top: 0.5rem;
}

footer h6 {
  font-weight: 700;
  color: var(--text-light);
  margin-bottom: 1rem;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

footer a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.2s;
  display: block;
  margin-bottom: 0.4rem;
}

footer a:hover { color: var(--secondary); }

.footer-bottom {
  border-top: 1px solid var(--dark-border);
  margin-top: 2rem;
  padding-top: 1.5rem;
  color: var(--text-muted);
  font-size: 0.85rem;
}

/* ===== COOKIE BANNER ===== */
#cookieBanner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--dark-card);
  border-top: 1px solid var(--dark-border);
  padding: 1rem 1.5rem;
  z-index: 9999;
  display: none;
}

/* ===== PAGE HERO ===== */
.page-hero {
  background: linear-gradient(135deg, rgba(124,58,237,0.2) 0%, rgba(6,182,212,0.1) 100%);
  border-bottom: 1px solid var(--dark-border);
  padding: 4rem 0 3rem;
}

/* ===== POLICY PAGES ===== */
.policy-content h2 {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--secondary);
  margin-top: 2rem;
  margin-bottom: 0.75rem;
}

.policy-content p, .policy-content li {
  color: var(--text-muted);
  margin-bottom: 0.75rem;
  line-height: 1.7;
}

.policy-content ul { padding-left: 1.5rem; }

/* ===== ABOUT PAGE ===== */
.team-card {
  background: var(--dark-card);
  border: 1px solid var(--dark-border);
  border-radius: 12px;
  padding: 1.5rem;
  text-align: center;
  transition: transform 0.3s;
}

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

.team-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  margin: 0 auto 1rem;
}

/* ===== ALERT MESSAGES ===== */
.alert-success-custom {
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.4);
  color: #10b981;
  border-radius: 8px;
  padding: 1rem 1.25rem;
  margin-top: 1rem;
}

/* ===== UTILITIES ===== */
.text-gradient {
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-pad { padding: 5rem 0; }
.section-pad-sm { padding: 3rem 0; }

.divider {
  height: 2px;
  background: var(--gradient);
  width: 60px;
  border-radius: 2px;
  margin-bottom: 1rem;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .hero-section { min-height: 70vh; }
  .section-pad { padding: 3rem 0; }
  .newsletter-section .input-group { flex-direction: column; }
  .newsletter-section .form-control { border-radius: 8px !important; margin-bottom: 0.5rem; }
  .newsletter-section .btn-primary-custom { border-radius: 8px !important; width: 100%; text-align: center; }
}
