/* ============================================
   KERNDYNE — Article CSS Override (Dark Mode)
   Refait pour s'aligner sur le design ChatGPT dark
   ============================================ */

/* Force le fond dark sur tout l'article */
body {
  background: #080e14 !important;
  color: #edf2f5 !important;
  font-family: Arial, Helvetica, sans-serif !important;
}

/* Override les classes Tailwind non chargées */

/* Wrapper principal */
.article-content {
  max-width: 850px !important;
  margin: 0 auto !important;
  padding: 80px 48px 100px !important;
  color: #edf2f5 !important;
}

/* Header article (eyebrow + date) */
.article-header {
  margin-bottom: 48px !important;
  padding-bottom: 32px !important;
  border-bottom: 1px solid #2a3e4c !important;
}

/* Eyebrow (petit label cyan en majuscules) */
.eyebrow {
  font-size: 12px !important;
  color: #91d8e6 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.15em !important;
  margin-bottom: 16px !important;
}

/* Titre H1 article */
.article-title {
  font-size: clamp(2.25rem, 5vw, 4.5rem) !important;
  font-weight: 500 !important;
  line-height: 1.08 !important;
  letter-spacing: -0.045em !important;
  color: #edf2f5 !important;
  margin: 22px 0 16px !important;
  max-width: 850px !important;
}

/* Sous-titre article (intro) */
.article-header p:not(.eyebrow) {
  font-size: 1.1rem !important;
  color: #a6b7c3 !important;
  margin-top: 8px !important;
  max-width: 700px !important;
  line-height: 1.6 !important;
}

/* H2 article */
.article-h2 {
  font-size: 2rem !important;
  font-weight: 500 !important;
  color: #edf2f5 !important;
  margin: 55px 0 18px !important;
  letter-spacing: -0.02em !important;
}

/* H3 article */
.article-h3 {
  font-size: 1.5rem !important;
  font-weight: 500 !important;
  color: #edf2f5 !important;
  margin: 32px 0 12px !important;
}

/* H4 article */
.article-content h4 {
  font-size: 1.2rem !important;
  font-weight: 600 !important;
  color: #91d8e6 !important;
  margin: 24px 0 10px !important;
}

/* Paragraphes */
.article-content p {
  font-size: 1.0625rem !important;
  color: #c2d0d9 !important;
  line-height: 1.8 !important;
  margin: 16px 0 !important;
}

/* Strong inline */
.article-content strong {
  color: #91d8e6 !important;
  font-weight: 600 !important;
}

/* Liens inline */
.article-content a,
.article-link {
  color: #91d8e6 !important;
  text-decoration: underline !important;
  text-decoration-color: rgba(145, 216, 230, 0.4) !important;
  text-underline-offset: 3px !important;
  transition: color 0.16s, text-decoration-color 0.16s !important;
}

.article-content a:hover,
.article-link:hover {
  color: #b3e8f0 !important;
  text-decoration-color: rgba(179, 232, 240, 0.8) !important;
}

/* Listes ul/ol */
.article-list {
  margin: 20px 0 24px 24px !important;
  padding: 0 !important;
  list-style: none !important;
}

.article-list li {
  position: relative !important;
  padding: 8px 0 8px 24px !important;
  color: #c2d0d9 !important;
  font-size: 1.0625rem !important;
  line-height: 1.7 !important;
}

.article-list li::before {
  content: "" !important;
  position: absolute !important;
  left: 0 !important;
  top: 18px !important;
  width: 8px !important;
  height: 8px !important;
  border-radius: 50% !important;
  background: #91d8e6 !important;
}

.article-list-ordered {
  list-style: none !important;
  counter-reset: article-counter !important;
}

.article-list-ordered li {
  counter-increment: article-counter !important;
}

.article-list-ordered li::before {
  content: counter(article-counter) !important;
  background: transparent !important;
  color: #91d8e6 !important;
  font-weight: 700 !important;
  font-size: 0.9rem !important;
  top: 14px !important;
  width: auto !important;
  height: auto !important;
  border-radius: 0 !important;
}

/* Tables */
.article-table {
  width: 100% !important;
  border-collapse: collapse !important;
  margin: 24px 0 !important;
  font-size: 0.9375rem !important;
  background: rgba(16, 27, 36, 0.3) !important;
  border-radius: 6px !important;
  overflow: hidden !important;
}

.article-table th {
  background: rgba(145, 216, 230, 0.08) !important;
  color: #91d8e6 !important;
  font-weight: 600 !important;
  text-align: left !important;
  padding: 12px 16px !important;
  border-bottom: 1px solid #2a3e4c !important;
  text-transform: uppercase !important;
  font-size: 0.8125rem !important;
  letter-spacing: 0.05em !important;
}

.article-table td {
  padding: 10px 16px !important;
  border-bottom: 1px solid rgba(42, 62, 76, 0.5) !important;
  color: #c2d0d9 !important;
}

.article-table tr:last-child td {
  border-bottom: none !important;
}

/* Block CTA en fin d'article */
.btn-primary {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 20px !important;
  min-height: 50px !important;
  padding: 14px 20px !important;
  border: 1px solid #91d8e6 !important;
  border-radius: 5px !important;
  background: #91d8e6 !important;
  color: #08212c !important;
  font-size: 0.9375rem !important;
  font-weight: 700 !important;
  line-height: 1.4 !important;
  transition: background 0.16s, border-color 0.16s !important;
  cursor: pointer !important;
  text-decoration: none !important;
}

.btn-primary:hover {
  background: #b3e8f0 !important;
  border-color: #b3e8f0 !important;
}

.btn-primary span {
  font-size: 1.2rem !important;
  line-height: 1 !important;
}

/* Code inline et blocks */
.article-content code {
  background: #101b24 !important;
  color: #91d8e6 !important;
  padding: 2px 8px !important;
  border-radius: 4px !important;
  font-family: ui-monospace, "SF Mono", Menlo, Monaco, Consolas, monospace !important;
  font-size: 0.9375em !important;
}

.article-content pre {
  background: #101b24 !important;
  color: #c2d0d9 !important;
  padding: 18px 20px !important;
  border-radius: 6px !important;
  overflow-x: auto !important;
  margin: 20px 0 !important;
  border: 1px solid #2a3e4c !important;
}

.article-content pre code {
  background: transparent !important;
  padding: 0 !important;
  color: inherit !important;
}

/* Images */
.article-content img {
  max-width: 100% !important;
  height: auto !important;
  margin: 24px 0 !important;
  border-radius: 6px !important;
}

/* Blockquote */
.article-content blockquote {
  border-left: 3px solid #91d8e6 !important;
  padding: 8px 20px !important;
  margin: 20px 0 !important;
  color: #a6b7c3 !important;
  font-style: italic !important;
  background: rgba(145, 216, 230, 0.05) !important;
}

/* CTA final */
.article-content > div:last-child,
.article-content .border-t {
  border-color: #2a3e4c !important;
  padding-top: 32px !important;
  margin-top: 56px !important;
  text-align: center !important;
}

.text-muted {
  color: #a6b7c3 !important;
}

.text-lg {
  font-size: 1.1rem !important;
}

/* Liens dans les articles */
.text-navy,
[class*="text-navy"] {
  color: #91d8e6 !important;
}

/* Container utility classes (Tailwind overrides) */
.max-w-3xl { max-width: 56rem !important; }
.mx-auto { margin-left: auto !important; margin-right: auto !important; }
.px-6 { padding-left: 24px !important; padding-right: 24px !important; }
.py-16 { padding-top: 64px !important; padding-bottom: 64px !important; }
.mt-12 { margin-top: 48px !important; }
.mt-6 { margin-top: 24px !important; }
.mb-6 { margin-bottom: 24px !important; }
.mb-3 { margin-bottom: 12px !important; }
.mb-12 { margin-bottom: 48px !important; }
.mt-4 { margin-top: 16px !important; }
.mb-4 { margin-bottom: 16px !important; }
.border { border: 1px solid #2a3e4c !important; }
.border-t { border-top: 1px solid #2a3e4c !important; }
.border-border { border-color: #2a3e4c !important; }
.space-y-2 > * + * { margin-top: 8px !important; }
.space-y-3 > * + * { margin-top: 12px !important; }
.space-y-6 > * + * { margin-top: 24px !important; }
.space-y-1 > * + * { margin-top: 4px !important; }

/* Override pour la section FAQ (h3 + p) */
.article-content h3 + p,
.article-content h2 + p {
  margin-top: 12px !important;
}

/* Responsive */
@media (max-width: 600px) {
  .article-content {
    padding: 55px 16px 70px !important;
  }

  .article-title {
    font-size: 2rem !important;
  }

  .article-h2 {
    font-size: 1.5rem !important;
    margin-top: 40px !important;
  }

  .article-h3 {
    font-size: 1.25rem !important;
  }

  .article-content p {
    font-size: 1rem !important;
  }

  .article-table {
    font-size: 0.8125rem !important;
  }

  .article-table th,
  .article-table td {
    padding: 8px 10px !important;
  }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    transition: none !important;
    animation: none !important;
  }
}
