/* ============================================================
   DUKALENO.INFO — Styles principaux
   ============================================================ */

:root {
  --primary: #6c63ff;
  --primary-dark: #5a52d5;
  --accent: #ff4757;
  --bg-dark: #0d0d1a;
  --bg-card: #13132b;
  --bg-card2: #1a1a35;
  --text-main: #e8e8f0;
  --text-muted: #9090b0;
  --border: #2a2a50;
  --gold: #ffd700;
  --radius: 12px;
  --shadow: 0 4px 24px rgba(108,99,255,0.15);
}

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

body {
  background: var(--bg-dark);
  color: var(--text-main);
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.7;
}

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

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

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

.navbar-brand {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--primary) !important;
  letter-spacing: -0.5px;
}

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

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

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
  background: rgba(108,99,255,.15);
  color: var(--primary) !important;
}

.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-content {
  position: relative;
  z-index: 1;
}

.hero-badge {
  display: inline-block;
  background: var(--primary);
  color: #fff;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: .3rem .9rem;
  border-radius: 50px;
  margin-bottom: 1.2rem;
}

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

.hero h1 .highlight { color: var(--primary); }

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

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

.btn-primary-custom:hover {
  background: var(--primary-dark);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(108,99,255,.4);
}

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

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

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

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

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

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

.game-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
  border-color: var(--primary);
}

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

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

.game-card-category {
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: .4rem;
}

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

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

.rating-stars { color: var(--gold); font-size: .9rem; }

.game-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: .8rem;
  color: var(--text-muted);
  border-top: 1px solid var(--border);
  padding-top: .8rem;
  margin-top: .8rem;
}

/* ---- TOURNAMENT CARD ---- */
.tournament-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  transition: transform .25s, border-color .25s;
}

.tournament-card:hover {
  transform: translateY(-4px);
  border-color: var(--primary);
}

.tournament-badge {
  display: inline-block;
  padding: .25rem .75rem;
  border-radius: 50px;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.badge-live { background: rgba(255,71,87,.2); color: var(--accent); }
.badge-upcoming { background: rgba(108,99,255,.2); color: var(--primary); }
.badge-finished { background: rgba(144,144,176,.15); color: var(--text-muted); }

.tournament-title {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: .5rem;
}

.tournament-meta {
  font-size: .85rem;
  color: var(--text-muted);
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  margin-top: .75rem;
}

.tournament-meta span { display: flex; align-items: center; gap: .3rem; }

/* ---- STATS STRIP ---- */
.stats-strip {
  background: var(--bg-card2);
  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;
  color: var(--primary);
  line-height: 1;
}
.stat-label { font-size: .85rem; color: var(--text-muted); margin-top: .3rem; }

/* ---- NEWSLETTER ---- */
.newsletter-section {
  background: linear-gradient(135deg, #1a1a35 0%, #0d0d1a 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 3rem 2rem;
  text-align: center;
}

.newsletter-section h3 {
  font-size: 1.8rem;
  font-weight: 800;
  margin-bottom: .5rem;
}

.newsletter-form {
  display: flex;
  gap: .75rem;
  max-width: 480px;
  margin: 1.5rem auto 0;
  flex-wrap: wrap;
  justify-content: center;
}

.newsletter-form input {
  flex: 1;
  min-width: 220px;
  background: var(--bg-dark);
  border: 1px solid var(--border);
  border-radius: 50px;
  color: var(--text-main);
  padding: .7rem 1.4rem;
  font-size: .95rem;
  outline: none;
  transition: border-color .2s;
}

.newsletter-form input:focus { border-color: var(--primary); }
.newsletter-form input::placeholder { color: var(--text-muted); }

/* ---- FORMS ---- */
.form-section {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2.5rem;
}

.form-section label {
  color: var(--text-muted);
  font-size: .9rem;
  font-weight: 600;
  margin-bottom: .35rem;
  display: block;
}

.form-control-custom {
  width: 100%;
  background: var(--bg-dark);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text-main);
  padding: .7rem 1rem;
  font-size: .95rem;
  outline: none;
  transition: border-color .2s;
  margin-bottom: 1.2rem;
}

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

textarea.form-control-custom { resize: vertical; min-height: 130px; }

select.form-control-custom option { background: var(--bg-dark); }

.form-success {
  display: none;
  background: rgba(46,213,115,.15);
  border: 1px solid #2ed573;
  border-radius: 8px;
  color: #2ed573;
  padding: 1rem 1.5rem;
  margin-top: 1rem;
  font-weight: 600;
}

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

.footer-brand {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: .75rem;
}

.footer-brand span { color: var(--accent); }

.footer-desc {
  color: var(--text-muted);
  font-size: .9rem;
  max-width: 280px;
}

.footer-heading {
  font-size: .85rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.footer-links { list-style: none; }
.footer-links li { margin-bottom: .5rem; }
.footer-links a {
  color: var(--text-muted);
  font-size: .9rem;
  transition: color .2s;
}
.footer-links a:hover { color: var(--primary); }

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 1.5rem;
  margin-top: 2.5rem;
  font-size: .82rem;
  color: var(--text-muted);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: .5rem;
}

/* ---- PAGE HERO (inner pages) ---- */
.page-hero {
  background: linear-gradient(135deg, #13132b 0%, #0d0d1a 100%);
  border-bottom: 1px solid var(--border);
  padding: 4rem 0 3rem;
  text-align: center;
}

.page-hero h1 { font-size: clamp(1.8rem, 4vw, 3rem); font-weight: 900; }
.page-hero p { color: var(--text-muted); max-width: 600px; margin: .75rem auto 0; }

/* ---- BREADCRUMB ---- */
.breadcrumb-custom {
  display: flex;
  gap: .5rem;
  align-items: center;
  font-size: .85rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
  flex-wrap: wrap;
}
.breadcrumb-custom a { color: var(--text-muted); }
.breadcrumb-custom a:hover { color: var(--primary); }
.breadcrumb-custom .sep { opacity: .4; }

/* ---- POLICY CONTENT ---- */
.policy-content {
  max-width: 820px;
  margin: 0 auto;
}

.policy-content h2 {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--primary);
  margin: 2rem 0 .75rem;
}

.policy-content h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin: 1.5rem 0 .5rem;
}

.policy-content p, .policy-content li {
  color: var(--text-muted);
  font-size: .95rem;
  margin-bottom: .75rem;
}

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

.policy-content .policy-date {
  background: var(--bg-card2);
  border-left: 3px solid var(--primary);
  padding: .75rem 1.2rem;
  border-radius: 0 8px 8px 0;
  font-size: .9rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
}

/* ---- COOKIE BANNER ---- */
#cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--bg-card2);
  border-top: 1px solid var(--border);
  padding: 1.2rem 2rem;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  box-shadow: 0 -4px 20px rgba(0,0,0,.4);
}

#cookie-banner p {
  font-size: .9rem;
  color: var(--text-muted);
  margin: 0;
  flex: 1;
  min-width: 200px;
}

#cookie-banner p a { color: var(--primary); }

.cookie-btns { display: flex; gap: .75rem; flex-wrap: wrap; }

/* ---- ABOUT PAGE ---- */
.team-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  text-align: center;
  transition: transform .25s, border-color .25s;
}
.team-card:hover { transform: translateY(-4px); border-color: var(--primary); }
.team-avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  margin: 0 auto 1rem;
}
.team-name { font-weight: 700; margin-bottom: .25rem; }
.team-role { font-size: .85rem; color: var(--text-muted); }

/* ---- UTILITIES ---- */
.section-pad { padding: 5rem 0; }
.section-pad-sm { padding: 3rem 0; }
.text-primary-custom { color: var(--primary) !important; }
.text-accent { color: var(--accent) !important; }
.text-muted-custom { color: var(--text-muted) !important; }
.bg-card { background: var(--bg-card) !important; }
.border-custom { border: 1px solid var(--border) !important; }

/* ---- RESPONSIVE ---- */
@media (max-width: 768px) {
  .hero { min-height: 70vh; }
  .newsletter-form { flex-direction: column; align-items: stretch; }
  .newsletter-form input { min-width: unset; }
  #cookie-banner { flex-direction: column; text-align: center; }
  .footer-bottom { flex-direction: column; text-align: center; }
}
