:root {
  --primary-color: #e20000; /* Airtel Red for accents, links, buttons */
  --secondary-color: #cc0000; /* Darker Red for gradient/hover */
  --dark-bg: #1f1f1f; /* Near Black for header background, text */
  --light-bg: #ffffff; /* Pure White background */
}
body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  background: var(--light-bg);
  color: var(--dark-bg);
  margin: 0;
  padding: 40px 20px;
}
.container {
  max-width: 1500px;
  margin: 0 auto;
  background: white;
  border-radius: 16px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}
.header {
  background: linear-gradient(
    135deg,
    var(--primary-color),
    var(--secondary-color)
  ); /* Red Gradient */
  color: white;
  padding: 30px;
  text-align: center;
}
.header h1 {
  margin: 0 0 5px 0;
  font-size: 2rem;
}
.content {
  padding: 40px;
}
.nav-link {
  display: inline-block;
  margin-bottom: 20px;
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 600;
}
.nav-link:hover {
  text-decoration: underline;
}
.table-container {
  /* IMPORTANT: Permet le défilement horizontal de la table sur les petits écrans */
  overflow-x: auto;
  margin-top: 20px;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
}
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.8rem;
}
thead {
  background: var(--dark-bg);
  color: white;
}
th {
  padding: 15px 10px;
  text-align: left;
  font-weight: 600;
  position: sticky;
  top: 0;
}
td {
  padding: 12px 10px;
  border-bottom: 1px solid #e0e0e0;
}
tbody tr:hover {
  background: #f8f9fa;
}
tbody tr:nth-child(even) {
  background: #fafbfc;
}
/* Classes pour les méthodes HTTP */
.method-post {
  background: #27ae60;
  color: white;
}
.method-get {
  background: #3498db;
  color: white;
}
.method-put {
  background: #f39c12;
  color: white;
}
.method-na {
  /* Classe ajoutée pour la méthode N/A */
  background: #7f8c8d;
  color: white;
}
.method {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 4px;
  font-weight: 600;
  font-size: 0.8rem;
}
.code-cell pre {
  background: #2f3640; /* Darker background for code cells */
  color: #ecf0f1;
  padding: 10px;
  border-radius: 4px;
  overflow-x: auto;
  font-size: 0.7rem;
  line-height: 1.4;
  max-height: 150px;
}
.explanation {
  background: #f8d7da; /* Light Red/Pink */
  color: #721c24; /* Dark Red Text */
  padding: 10px;
  border-radius: 4px;
  margin-bottom: 15px;
  border-left: 5px solid #f5c6cb; /* Darker border */
}
.download-section {
  text-align: center;
  padding: 20px 0;
}
.download-btn {
  background-color: var(--primary-color); /* Airtel Red */
  color: white;
  border: none;
  padding: 12px 30px;
  border-radius: 8px;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.3s ease;
  font-size: 1rem;
}
.download-btn:hover {
  background-color: var(--secondary-color); /* Darker Red */
}

/* ==================================== */
/* RÈGLES DE RESPONSIVENESS (Mobile)    */
/* ==================================== */
@media (max-width: 768px) {
  body {
    padding: 20px 10px; /* Moins de padding sur mobile */
  }
  .container {
    box-shadow: none; /* Enlever l'ombre pour un look plus natif sur mobile */
    border-radius: 0;
  }
  .header {
    padding: 20px 10px;
  }
  .header h1 {
    font-size: 1.5rem; /* Réduire la taille du titre */
  }
  .header p {
    font-size: 0.9rem;
  }
  .content {
    padding: 20px 10px; /* Réduire le padding de la zone de contenu */
  }
  table {
    font-size: 0.7rem; /* Réduire légèrement la taille de police du tableau pour plus de densité */
  }
  th,
  td {
    padding: 10px 8px; /* Réduire le padding des cellules */
  }
  .code-cell pre {
    font-size: 0.6rem; /* Réduire la taille de police pour les blocs de code */
    max-height: 100px; /* Réduire la hauteur max des blocs de code */
  }
  .method {
    font-size: 0.7rem;
    padding: 3px 8px;
  }
  .download-btn {
    font-size: 0.9rem;
    padding: 10px 20px;
  }
}
