/* Variables CSS pour les thèmes */
:root {
  --primary: #4361ee;
  --primary-dark: #3a56d4;
  --secondary: #3f37c9;
  --dark: #121212;
  --light: #f8f9fa;
  --gray: #6c757d;
  --success: #4cc9f0;
  --card-bg: #ffffff;
  --text: #212529;
  --text-light: #f8f9fa;
}

[data-theme="dark"] {
  --primary: #4895ef;
  --primary-dark: #4361ee;
  --secondary: #3f37c9;
  --dark: #121212;
  --light: #1a1a1a;
  --gray: #adb5bd;
  --success: #4cc9f0;
  --card-bg: #242424;
  --text: #f8f9fa;
  --text-light: #f8f9fa;
}

/* Reset et styles de base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  transition: background-color 0.3s, color 0.3s;
}

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

a {
  text-decoration: none;
  color: inherit;
}

/* Bannière promo */
.promo-banner {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: white;
  text-align: center;
  padding: 10px;
  font-size: 0.9rem;
  position: relative;
  z-index: 10;
}

.promo-text {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.countdown {
  font-weight: bold;
  color: #f72585;
}

/* Barre de navigation */
.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 5%;
  background-color: var(--primary);
  color: white;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 0;
  z-index: 100;
}

.logo-container {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid white;
}

.logo-text {
  font-weight: bold;
  font-size: 1.2rem;
}

/* Menu navigation */
.nav-links {
  display: flex;
  gap: 20px;
}

.nav-links a {
  padding: 8px 12px;
  border-radius: 4px;
  transition: background-color 0.2s;
}

.nav-links a:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

.dropdown {
  position: relative;
  display: inline-block;
}

.dropdown-content {
  display: none;
  position: absolute;
  background-color: var(--card-bg);
  min-width: 160px;
  box-shadow: 0 8px 16px rgba(0,0,0,0.2);
  z-index: 1;
  border-radius: 4px;
  overflow: hidden;
}

.dropdown:hover .dropdown-content {
  display: block;
}

.dropdown-content a {
  color: var(--text);
  padding: 12px 16px;
  display: block;
}

.dropdown-content a:hover {
  background-color: var(--primary);
  color: white;
}

/* Boutons */
.buttons {
  display: flex;
  align-items: center;
  gap: 10px;
}

.btn {
  padding: 8px 16px;
  border-radius: 4px;
  cursor: pointer;
  border: none;
  font-weight: 500;
}

.btn-icon {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1.2rem;
  color: white;
}

.btn-discord {
  background: linear-gradient(135deg, #5865F2, #4F6BD1);
  color: white;
}

/* Contenu principal */
main {
  padding: 40px 5%;
}

.hero {
  text-align: center;
  margin-bottom: 50px;
  padding: 40px 0;
}

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

.hero p {
  font-size: 1.1rem;
  max-width: 700px;
  margin: 0 auto;
}

/* Sections */
.section {
  margin-bottom: 60px;
}

.section-title {
  text-align: center;
  margin-bottom: 30px;
  color: var(--primary);
}

/* Cartes services */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.service-card {
  background-color: var(--card-bg);
  border-radius: 8px;
  padding: 30px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s, box-shadow 0.3s;
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.service-icon {
  font-size: 2.5rem;
  color: var(--primary);
  margin-bottom: 20px;
}

.service-card h3 {
  margin-bottom: 15px;
}

/* Widget Discord */
.discord-widget {
  text-align: center;
  margin-top: 60px;
}

/* Pied de page */
footer {
  background-color: var(--primary);
  color: white;
  text-align: center;
  padding: 30px;
  margin-top: 60px;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin: 20px 0;
}

.footer-links a:hover {
  text-decoration: underline;
}

/* Responsive */
@media (max-width: 768px) {
  .topbar {
    flex-direction: column;
    gap: 15px;
    padding: 15px;
  }
  
  .nav-links {
    flex-wrap: wrap;
    justify-content: center;
  }
  
  .hero h1 {
    font-size: 2rem;
  }
}