/* ===== SEVAMORI.PRO — STYLES PRINCIPAUX ===== */
:root {
  --primary: #6e40c9;
  --primary-light: #a855f7;
  --accent: #00d4ff;
  --dark: #0d1117;
  --dark2: #161b22;
  --dark3: #21262d;
  --text: #e6edf3;
  --text-muted: #8b949e;
  --border: #30363d;
  --success: #3fb950;
  --gradient: linear-gradient(135deg, #6e40c9 0%, #00d4ff 100%);
}

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

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

a { color: var(--accent); text-decoration: none; transition: color .2s; }
a:hover { color: var(--primary-light); }

img { max-width: 100%; height: auto; display: block; }

/* ===== NAVBAR ===== */
.navbar {
  background: rgba(13,17,23,.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: .75rem 0;
  position: sticky;
  top: 0;
  z-index: 1000;
}

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

.navbar-nav .nav-link {
  color: var(--text-muted) !important;
  font-weight: 500;
  padding: .5rem 1rem !important;
  border-radius: 6px;
  transition: all .2s;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
  color: var(--text) !important;
  background: var(--dark3);
}

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

/* ===== HERO ===== */
.hero {
  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(.35);
  z-index: 0;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(13,17,23,.9) 40%, transparent);
  z-index: 1;
}

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

.hero-badge {
  display: inline-block;
  background: rgba(110,64,201,.25);
  border: 1px solid var(--primary);
  color: var(--primary-light);
  padding: .35rem .9rem;
  border-radius: 20px;
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .5px;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 1.25rem;
}

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

.hero p {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 540px;
  margin-bottom: 2rem;
}

/* ===== BUTTONS ===== */
.btn-primary-custom {
  background: var(--gradient);
  border: none;
  color: #fff;
  padding: .75rem 2rem;
  border-radius: 8px;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  transition: transform .2s, box-shadow .2s;
  display: inline-block;
}

.btn-primary-custom:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(110,64,201,.4);
  color: #fff;
}

.btn-outline-custom {
  background: transparent;
  border: 2px solid var(--primary);
  color: var(--primary-light);
  padding: .7rem 1.8rem;
  border-radius: 8px;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  transition: all .2s;
  display: inline-block;
}

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

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

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

.accent-line {
  width: 50px;
  height: 4px;
  background: var(--gradient);
  border-radius: 2px;
  margin-bottom: 1rem;
}

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

.game-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 40px rgba(0,0,0,.5);
  border-color: var(--primary);
}

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

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

.game-card-category {
  font-size: .75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .5px;
  color: var(--accent);
  margin-bottom: .5rem;
}

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

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

.rating-stars { color: #f5c518; font-size: .9rem; }

/* ===== STATS BAR ===== */
.stats-bar {
  background: var(--dark2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 2.5rem 0;
}

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

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

.stat-label {
  font-size: .85rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: .5px;
}

/* ===== TOURNAMENT SECTION ===== */
.tournament-card {
  background: var(--dark2);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  transition: border-color .25s;
}

.tournament-card:hover { border-color: var(--accent); }

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

.tournament-card-body { padding: 1.5rem; }

.tournament-badge {
  display: inline-block;
  background: rgba(0,212,255,.15);
  border: 1px solid var(--accent);
  color: var(--accent);
  padding: .25rem .75rem;
  border-radius: 20px;
  font-size: .75rem;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: .75rem;
}

.tournament-badge.live {
  background: rgba(63,185,80,.15);
  border-color: var(--success);
  color: var(--success);
}

/* ===== NEWSLETTER ===== */
.newsletter-section {
  background: linear-gradient(135deg, rgba(110,64,201,.15) 0%, rgba(0,212,255,.1) 100%);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 3rem;
}

.newsletter-section h2 { font-size: 1.8rem; font-weight: 800; }

/* ===== CONTACT FORM ===== */
.form-control-custom {
  background: var(--dark3);
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: 8px;
  padding: .75rem 1rem;
  width: 100%;
  font-size: .95rem;
  transition: border-color .2s;
}

.form-control-custom:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(110,64,201,.2);
}

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

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

.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-links h6 {
  font-size: .8rem;
  text-transform: uppercase;
  letter-spacing: .5px;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.footer-links ul { list-style: none; padding: 0; }
.footer-links ul li { margin-bottom: .5rem; }
.footer-links ul li a { color: var(--text-muted); font-size: .9rem; }
.footer-links ul li a:hover { color: var(--text); }

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

/* ===== PAGE HERO (inner pages) ===== */
.page-hero {
  background: var(--dark2);
  border-bottom: 1px solid var(--border);
  padding: 4rem 0 3rem;
  text-align: center;
}

.page-hero h1 { font-size: clamp(1.8rem, 4vw, 2.8rem); font-weight: 900; }

/* ===== ABOUT PAGE ===== */
.about-img {
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border);
}

.team-card {
  background: var(--dark2);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.5rem;
  text-align: center;
  transition: border-color .25s;
}

.team-card:hover { border-color: var(--primary); }

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

/* ===== ALERTS ===== */
.alert-success-custom {
  background: rgba(63,185,80,.15);
  border: 1px solid var(--success);
  color: var(--success);
  padding: 1rem 1.25rem;
  border-radius: 8px;
  display: none;
  margin-top: 1rem;
}

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

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .hero { min-height: 70vh; }
  .newsletter-section { padding: 2rem 1.5rem; }
  .stats-bar .col-6 { margin-bottom: 1.5rem; }
}

/* ===== SECTION SPACING ===== */
.section-pad { padding: 5rem 0; }
.section-pad-sm { padding: 3rem 0; }

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

.border-gradient {
  border: 1px solid;
  border-image: var(--gradient) 1;
}

.bg-dark2 { background: var(--dark2); }
.bg-dark3 { background: var(--dark3); }
.text-muted-custom { color: var(--text-muted); }
