/* Reset et variables CSS */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary-color: #7289da;
  --secondary-color: #5865f2;
  --accent-color: #ff6b6b;
  --background-dark: #0a0a0a;
  --background-light: #1a1a1a;
  --text-primary: #ffffff;
  --text-secondary: #b9bbbe;
  --text-muted: #72767d;
  --border-color: #2f3136;
  --success-color: #43b581;
  --warning-color: #faa61a;
  --error-color: #f04747;
  --gradient-primary: linear-gradient(135deg, #7289da 0%, #5865f2 100%);
  --gradient-secondary: linear-gradient(135deg, #ff6b6b 0%, #ee5a24 100%);
  --shadow-light: 0 2px 10px rgba(0, 0, 0, 0.1);
  --shadow-medium: 0 4px 20px rgba(0, 0, 0, 0.15);
  --shadow-heavy: 0 8px 30px rgba(0, 0, 0, 0.2);
  --border-radius: 12px;
  --border-radius-small: 8px;
  --transition: all 0.3s ease;
}

/* Base styles */
body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: var(--background-dark);
  color: var(--text-primary);
  line-height: 1.6;
  font-size: 16px;
  overflow-x: hidden;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Navigation */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  background: rgba(10, 10, 10, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-color);
  z-index: 1000;
  transition: var(--transition);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: bold;
  font-size: 1.2rem;
}

.logo-img {
  width: 32px;
  height: 32px;
  border-radius: 50%;
}

.nav-links {
  display: flex;
  gap: 2rem;
}

.nav-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 500;
  transition: var(--transition);
  position: relative;
}

.nav-links a:hover {
  color: var(--primary-color);
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary-color);
  transition: width 0.3s ease;
}

.nav-links a:hover::after {
  width: 100%;
}

/* Boutons */
.btn {
  display: inline-block;
  padding: 12px 24px;
  border-radius: var(--border-radius-small);
  text-decoration: none;
  font-weight: 600;
  transition: var(--transition);
  border: none;
  cursor: pointer;
  font-size: 1rem;
}

.btn-primary {
  background: var(--gradient-primary);
  color: white;
  box-shadow: var(--shadow-medium);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-heavy);
}

.btn-secondary {
  background: transparent;
  color: var(--text-primary);
  border: 2px solid var(--border-color);
}

.btn-secondary:hover {
  border-color: var(--primary-color);
  color: var(--primary-color);
}

/* Hero Section */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 80px;
  background: radial-gradient(ellipse at center, rgba(114, 137, 218, 0.1) 0%, transparent 70%);
}

.hero-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.hero-text h1 {
  font-size: 4rem;
  font-weight: 800;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 1rem;
}

.hero-subtitle {
  font-size: 1.5rem;
  color: var(--text-secondary);
  margin-bottom: 1rem;
}

.hero-description {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
}

.hero-description a {
  color: var(--primary-color);
  text-decoration: none;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.hero-image img {
  width: 100%;
  max-width: 400px;
  border-radius: 20px;
  box-shadow: var(--shadow-heavy);
}

/* Features Section */
.features-section {
  padding: 5rem 0;
}

.features-section h2 {
  text-align: center;
  font-size: 3rem;
  margin-bottom: 3rem;
  color: var(--text-primary);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.feature-card {
  background: var(--background-light);
  padding: 2rem;
  border-radius: var(--border-radius);
  border: 1px solid var(--border-color);
  transition: var(--transition);
  text-align: center;
}

.feature-card:hover {
  transform: translateY(-5px);
  border-color: var(--primary-color);
  box-shadow: var(--shadow-medium);
}

.feature-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.feature-card h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

.feature-card p {
  color: var(--text-secondary);
}

/* Commands Section */
.commands-section {
  padding: 5rem 0;
  background: var(--background-light);
}

.commands-section h2 {
  text-align: center;
  font-size: 3rem;
  margin-bottom: 3rem;
  color: var(--text-primary);
}

.command-category {
  margin-bottom: 3rem;
}

.command-category h3 {
  font-size: 2rem;
  margin-bottom: 2rem;
  color: var(--primary-color);
  border-bottom: 2px solid var(--border-color);
  padding-bottom: 0.5rem;
}

.commands-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 1.5rem;
}

.command-card {
  background: var(--background-dark);
  padding: 1.5rem;
  border-radius: var(--border-radius-small);
  border: 1px solid var(--border-color);
  transition: var(--transition);
}

.command-card:hover {
  border-color: var(--primary-color);
  box-shadow: var(--shadow-light);
}

.command-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.command-name {
  font-family: 'Courier New', monospace;
  font-weight: bold;
  color: var(--primary-color);
  background: rgba(114, 137, 218, 0.1);
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
}

.command-permission {
  font-size: 0.8rem;
  color: var(--warning-color);
  background: rgba(250, 166, 26, 0.1);
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
}

.command-description {
  color: var(--text-secondary);
  margin-bottom: 1rem;
}

.command-usage {
  font-family: 'Courier New', monospace;
  font-size: 0.9rem;
  color: var(--text-muted);
  background: rgba(47, 49, 54, 0.5);
  padding: 0.5rem;
  border-radius: 4px;
  border-left: 3px solid var(--primary-color);
}

/* Footer */
.footer {
  background: var(--background-light);
  padding: 3rem 0 1rem;
  border-top: 1px solid var(--border-color);
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-section h4 {
  color: var(--primary-color);
  margin-bottom: 1rem;
  font-size: 1.2rem;
}

.footer-section p,
.footer-section li {
  color: var(--text-secondary);
  line-height: 1.8;
}

.footer-section ul {
  list-style: none;
}

.footer-section ul li {
  margin-bottom: 0.5rem;
}

.footer-section a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: var(--transition);
}

.footer-section a:hover {
  color: var(--primary-color);
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid var(--border-color);
  color: var(--text-muted);
}

/* ========== STYLES POUR LA DOCUMENTATION ========== */

/* Container principal de la documentation */
.doc-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
  line-height: 1.6;
  min-height: 100vh;
}

/* Header de la documentation */
.doc-header {
  text-align: center;
  margin-bottom: 50px;
  padding: 60px 20px;
  background: var(--gradient-primary);
  color: white;
  border-radius: 15px;
  margin-top: 80px;
  box-shadow: var(--shadow-heavy);
}

.doc-header h1 {
  font-size: 3.5rem;
  margin-bottom: 1rem;
  font-weight: 800;
}

.doc-header p {
  font-size: 1.2rem;
  opacity: 0.9;
  margin-bottom: 0.5rem;
}

/* Navigation de la documentation */
.doc-nav {
  background: var(--background-light);
  border-radius: 10px;
  padding: 20px;
  margin-bottom: 30px;
  position: sticky;
  top: 100px;
  z-index: 100;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-light);
}

.doc-nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.doc-nav li a {
  display: block;
  padding: 10px 16px;
  background: var(--primary-color);
  color: white;
  text-decoration: none;
  border-radius: 6px;
  transition: var(--transition);
  font-weight: 500;
  font-size: 0.9rem;
}

.doc-nav li a:hover {
  background: var(--secondary-color);
  transform: translateY(-2px);
  box-shadow: var(--shadow-light);
}

/* Sections de la documentation */
.doc-section {
  margin-bottom: 50px;
  padding: 40px;
  background: var(--background-light);
  border-radius: 15px;
  box-shadow: var(--shadow-medium);
  border: 1px solid var(--border-color);
}

.doc-section h2 {
  color: var(--text-primary);
  border-bottom: 3px solid var(--primary-color);
  padding-bottom: 15px;
  margin-bottom: 30px;
  font-size: 2.5rem;
  font-weight: 700;
}

.doc-section h3 {
  color: var(--primary-color);
  margin-top: 35px;
  margin-bottom: 20px;
  font-size: 1.8rem;
  font-weight: 600;
}

.doc-section h4 {
  color: var(--text-secondary);
  margin-top: 25px;
  margin-bottom: 15px;
  font-size: 1.4rem;
  font-weight: 600;
}

.doc-section p {
  margin-bottom: 15px;
  color: var(--text-secondary);
  font-size: 1.05rem;
}

.doc-section ul, .doc-section ol {
  margin-bottom: 20px;
  padding-left: 25px;
  color: var(--text-secondary);
}

.doc-section li {
  margin-bottom: 8px;
  line-height: 1.7;
}

/* Tableaux de commandes */
.command-table {
  width: 100%;
  border-collapse: collapse;
  margin: 25px 0;
  background: var(--background-dark);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: var(--shadow-light);
}

.command-table th,
.command-table td {
  border: 1px solid var(--border-color);
  padding: 15px;
  text-align: left;
}

.command-table th {
  background: var(--primary-color);
  color: white;
  font-weight: 700;
  font-size: 1.1rem;
}

.command-table td {
  color: var(--text-secondary);
}

.command-table tr:nth-child(even) {
  background: rgba(47, 49, 54, 0.3);
}

.command-table tr:hover {
  background: rgba(114, 137, 218, 0.1);
}

.command-table code {
  background: rgba(114, 137, 218, 0.2);
  color: var(--primary-color);
  padding: 4px 8px;
  border-radius: 4px;
  font-family: 'Courier New', monospace;
  font-weight: 600;
}

/* Blocs de code */
.code-block {
  background: var(--background-dark);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 20px;
  margin: 20px 0;
  font-family: 'Courier New', monospace;
  overflow-x: auto;
  color: var(--text-primary);
  box-shadow: var(--shadow-light);
  border-left: 4px solid var(--primary-color);
}

.code-block pre {
  margin: 0;
  white-space: pre-wrap;
}

/* Boîtes d'information */
.highlight {
  background: linear-gradient(135deg, rgba(250, 166, 26, 0.15), rgba(250, 166, 26, 0.05));
  border: 1px solid var(--warning-color);
  border-radius: 8px;
  padding: 20px;
  margin: 20px 0;
  border-left: 4px solid var(--warning-color);
  color: var(--text-primary);
}

.warning {
  background: linear-gradient(135deg, rgba(240, 71, 71, 0.15), rgba(240, 71, 71, 0.05));
  border: 1px solid var(--error-color);
  border-radius: 8px;
  padding: 20px;
  margin: 20px 0;
  border-left: 4px solid var(--error-color);
  color: var(--text-primary);
}

.info {
  background: linear-gradient(135deg, rgba(114, 137, 218, 0.15), rgba(114, 137, 218, 0.05));
  border: 1px solid var(--primary-color);
  border-radius: 8px;
  padding: 20px;
  margin: 20px 0;
  border-left: 4px solid var(--primary-color);
  color: var(--text-primary);
}

/* Grilles de fonctionnalités */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 25px;
  margin: 25px 0;
}

.feature-card {
  background: var(--background-dark);
  border-radius: 12px;
  padding: 25px;
  border-left: 5px solid var(--primary-color);
  box-shadow: var(--shadow-light);
  transition: var(--transition);
  border: 1px solid var(--border-color);
}

.feature-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-medium);
}

.feature-card h3, .feature-card h4 {
  color: var(--primary-color);
  margin-bottom: 15px;
  font-weight: 600;
}

.feature-card p, .feature-card li {
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.feature-card ul {
  padding-left: 20px;
}

/* Bouton retour en haut */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background: var(--gradient-primary);
  color: white;
  border: none;
  border-radius: 50%;
  width: 60px;
  height: 60px;
  cursor: pointer;
  font-size: 24px;
  display: none;
  transition: var(--transition);
  box-shadow: var(--shadow-medium);
  z-index: 1000;
}

.back-to-top:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-heavy);
}

/* ========== STYLES POUR TOS ET PRIVACY ========== */

/* Main containers */
.tos-main, .privacy-main {
  padding-top: 100px;
  min-height: 100vh;
  background: var(--background-dark);
}

/* Headers */
.tos-header, .privacy-header {
  text-align: center;
  padding: 60px 20px;
  margin-bottom: 40px;
  background: var(--gradient-primary);
  border-radius: 15px;
  box-shadow: var(--shadow-heavy);
}

.tos-header h1, .privacy-header h1 {
  font-size: 3.5rem;
  margin-bottom: 1rem;
  color: white;
  font-weight: 800;
}

.tos-subtitle, .privacy-subtitle {
  font-size: 1.2rem;
  color: rgba(255, 255, 255, 0.9);
  font-weight: 500;
}

/* Sections */
.tos-section, .privacy-section {
  background: var(--background-light);
  margin-bottom: 30px;
  padding: 40px;
  border-radius: 15px;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-light);
}

.tos-section h2, .privacy-section h2 {
  color: var(--primary-color);
  font-size: 2rem;
  margin-bottom: 20px;
  font-weight: 700;
  border-bottom: 2px solid var(--primary-color);
  padding-bottom: 10px;
}

.tos-section h3, .privacy-section h3 {
  color: var(--text-primary);
  font-size: 1.5rem;
  margin-top: 25px;
  margin-bottom: 15px;
  font-weight: 600;
}

.tos-section h4, .privacy-section h4 {
  color: var(--text-secondary);
  font-size: 1.3rem;
  margin-top: 20px;
  margin-bottom: 10px;
  font-weight: 600;
}

.tos-section p, .privacy-section p {
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 15px;
  font-size: 1.05rem;
}

.tos-section ul, .privacy-section ul,
.tos-section ol, .privacy-section ol {
  color: var(--text-secondary);
  margin-bottom: 15px;
  padding-left: 25px;
}

.tos-section li, .privacy-section li {
  margin-bottom: 8px;
  line-height: 1.7;
}

.tos-section strong, .privacy-section strong {
  color: var(--text-primary);
  font-weight: 700;
}

/* Liens dans les sections */
.tos-section a, .privacy-section a {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 600;
  transition: var(--transition);
}

.tos-section a:hover, .privacy-section a:hover {
  color: var(--secondary-color);
  text-decoration: underline;
}

/* Boîtes spéciales dans ToS et Privacy */
.important-box {
  background: linear-gradient(135deg, rgba(114, 137, 218, 0.15), rgba(114, 137, 218, 0.05));
  border: 2px solid var(--primary-color);
  border-radius: 10px;
  padding: 25px;
  margin: 25px 0;
  border-left: 6px solid var(--primary-color);
}

.important-box h4 {
  color: var(--primary-color);
  margin-bottom: 15px;
  font-size: 1.4rem;
}

.contact-info {
  background: var(--background-dark);
  border-radius: 10px;
  padding: 25px;
  margin: 25px 0;
  border: 1px solid var(--border-color);
}

.contact-info h4 {
  color: var(--success-color);
  margin-bottom: 15px;
}

.contact-info p {
  margin-bottom: 10px;
}

/* Code examples styling for privacy page */
.code-examples {
  background: var(--background-dark);
  border-radius: 6px;
  padding: 1rem;
  margin-top: 1rem;
  font-family: 'Courier New', Consolas, monospace;
  font-size: 0.9rem;
  line-height: 1.8;
  border-left: 4px solid var(--accent-color);
}

.code-examples code {
  color: var(--accent-color);
  font-weight: bold;
}

/* ========== RESPONSIVE DESIGN ========== */

@media (max-width: 1024px) {
  .hero-content {
    grid-template-columns: 1fr;
    gap: 2rem;
    text-align: center;
  }
  
  .hero-text h1 {
    font-size: 3rem;
  }
  
  .nav-container {
    padding: 1rem;
  }
  
  .doc-header h1 {
    font-size: 2.8rem;
  }
  
  .doc-section {
    padding: 25px;
  }
  
  .commands-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .nav-links {
    gap: 1rem;
    flex-wrap: wrap;
  }
  
  .hero-text h1 {
    font-size: 2.5rem;
  }
  
  .hero-buttons {
    justify-content: center;
  }
  
  .features-grid {
    grid-template-columns: 1fr;
  }
  
  .doc-nav ul {
    flex-direction: column;
    gap: 8px;
  }
  
  .doc-nav li a {
    text-align: center;
  }
  
  .feature-grid {
    grid-template-columns: 1fr;
  }
  
  .doc-header {
    padding: 40px 15px;
    margin-top: 70px;
  }
  
  .doc-header h1 {
    font-size: 2.2rem;
  }
  
  .doc-section {
    padding: 20px;
    margin-bottom: 30px;
  }
  
  .doc-section h2 {
    font-size: 2rem;
  }
  
  .command-table {
    font-size: 0.9rem;
  }
  
  .command-table th,
  .command-table td {
    padding: 10px;
  }
  
  .tos-header h1, .privacy-header h1 {
    font-size: 2.5rem;
  }
  
  .tos-section, .privacy-section {
    padding: 25px 20px;
  }
  
  .tos-section h2, .privacy-section h2 {
    font-size: 1.6rem;
  }
}

@media (max-width: 480px) {
  .nav-container {
    flex-direction: column;
    gap: 1rem;
  }
  
  .nav-links {
    gap: 0.5rem;
  }
  
  .hero {
    padding-top: 120px;
  }
  
  .hero-text h1 {
    font-size: 2rem;
  }
  
  .hero-subtitle {
    font-size: 1.2rem;
  }
  
  .doc-header h1 {
    font-size: 1.8rem;
  }
  
  .doc-section h2 {
    font-size: 1.6rem;
  }
  
  .doc-section h3 {
    font-size: 1.4rem;
  }
  
  .back-to-top {
    width: 50px;
    height: 50px;
    bottom: 20px;
    right: 20px;
    font-size: 20px;
  }
  
  .tos-header h1, .privacy-header h1 {
    font-size: 2rem;
  }
  
  .tos-section, .privacy-section {
    padding: 20px 15px;
  }
}
