/* Contenu API */
.api-doc {
  padding: 30px 0 60px;
}
.api-doc h1 {
  font-size: 2.8rem;
  font-weight: 900;
  margin-bottom: 8px;
}
.api-doc .subtitle {
  color: #475569;
  font-size: 1.2rem;
  margin-bottom: 40px;
}
.endpoint {
  background: white;
  border-radius: 28px;
  padding: 32px 28px;
  margin-bottom: 40px;
  border: 1px solid #edf2f7;
}
.endpoint h2 {
  font-size: 1.8rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}
.endpoint h2 .method {
  background: #2563eb;
  color: white;
  font-size: 0.9rem;
  padding: 4px 14px;
  border-radius: 40px;
  font-weight: 600;
}
.endpoint .url {
  background: #f1f5f9;
  padding: 10px 18px;
  border-radius: 12px;
  font-family: "Courier New", monospace;
  font-size: 1rem;
  color: #0b1a33;
  margin-bottom: 20px;
  display: inline-block;
}
.endpoint .params {
  margin: 20px 0;
}
.endpoint .params table {
  width: 100%;
  border-collapse: collapse;
}
.endpoint .params th,
.endpoint .params td {
  padding: 10px 12px;
  text-align: left;
  border-bottom: 1px solid #e9eef3;
}
.endpoint .params th {
  background: #f8fafc;
  font-weight: 700;
  color: #1e293b;
}
.endpoint .params td {
  color: #334155;
}
.endpoint .params .required {
  color: #dc2626;
  font-weight: 600;
}
.endpoint pre {
  background: #0b1a33;
  color: #e2e8f0;
  padding: 20px;
  border-radius: 16px;
  overflow-x: auto;
  font-size: 0.9rem;
  margin: 16px 0;
}
.endpoint .response {
  background: #f1f5f9;
  padding: 16px 20px;
  border-radius: 12px;
  border-left: 4px solid #2563eb;
  margin-top: 16px;
}
.endpoint .response.error {
  border-left-color: #dc2626;
}
.endpoint .response strong {
  color: #0b1a33;
}
.endpoint .response pre {
  background: transparent;
  color: #0b1a33;
  padding: 0;
  margin: 8px 0 0 0;
}

.footer-design {
  margin-top: 50px;
  background: #0b1a33;
  color: #cbd5e1;
  border-radius: 48px 48px 0 0;
  padding: 50px 40px 30px;
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 40px;
  margin-bottom: 40px;
}
.footer-col h4 {
  color: white;
  font-weight: 700;
  font-size: 1.2rem;
  margin-bottom: 16px;
}
.footer-col p,
.footer-col a {
  color: #94a3b8;
  font-size: 0.95rem;
  line-height: 1.8;
  text-decoration: none;
  display: block;
}
.footer-col a:hover {
  color: white;
}
.footer-col .social {
  display: flex;
  gap: 16px;
  margin-top: 12px;
}
.footer-col .social a {
  background: rgba(255, 255, 255, 0.05);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #cbd5e1;
  font-size: 1.2rem;
  transition: 0.2s;
}
.footer-col .social a:hover {
  background: #2563eb;
  color: white;
}
.footer-bottom {
  border-top: 1px solid #1e293b;
  padding-top: 24px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  font-size: 0.9rem;
  color: #94a3b8;
}
.footer-bottom i {
  color: #2563eb;
}

@media (max-width: 768px) {
  body {
    padding-top: 70px;
  }
  .navbar .container {
    flex-direction: row;
    justify-content: space-between;
  }
  .nav-links {
    display: none;
  }
  .hamburger {
    display: flex;
  }
  .api-doc h1 {
    font-size: 2rem;
  }
  .endpoint {
    padding: 20px;
  }
  .endpoint h2 {
    font-size: 1.4rem;
    flex-wrap: wrap;
  }
  .footer-design {
    padding: 30px 20px;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
}
