/* Charte des news : CSS des maquettes news-detail.html de Perrine (29/10), repris tel quel. */
/* ===========================
   OnAir News — Article Detail
   Prefix: .oan-
   =========================== */

.oan-wrap {
  background: #0d1117;
  color: #e8eaf2;
  font-family: 'Plus Jakarta Sans', sans-serif;
  padding-bottom: 80px;
}

.oan-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ── Breadcrumb ── */
.oan-breadcrumb {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 28px 0 20px;
  font-size: 13px;
  color: #7a8099;
}

.oan-breadcrumb a {
  color: #7a8099;
  text-decoration: none;
  transition: color 0.15s;
}

.oan-breadcrumb a:hover {
  color: #c8d4f0;
}

.oan-breadcrumb__sep {
  opacity: 0.4;
}

.oan-breadcrumb__current {
  color: #c8d4f0;
  /* Nommait la categorie ("Update"), deja affichee en pastille juste en
     dessous : le fil ne disait donc pas ou on se trouve. Il porte maintenant
     le titre, tronque a l'ecran mais entier dans le markup pour les moteurs. */
  max-width: 460px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  display: inline-block;
  vertical-align: bottom;
}
@media (max-width: 600px) { .oan-breadcrumb__current { max-width: 190px; } }

/* ── Article Header ── */
.oan-article-header {
  padding: 16px 0 32px;
}

.oan-badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 99px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.oan-badge--release    { background: rgba(20,50,110,0.82); color: #80bfff; border: 1px solid rgba(45,127,245,0.5); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.oan-badge--dev       { background: rgba(48,26,88,0.82);  color: #c4a6ff; border: 1px solid rgba(167,139,250,0.45); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.oan-badge--release     { background: rgba(15,40,100,0.82); color: #7ab8ff; border: 1px solid rgba(45,127,245,0.4); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.oan-badge--community { background: rgba(10,55,28,0.82);  color: #5ee89a; border: 1px solid rgba(34,197,94,0.45); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.oan-badge--world     { background: rgba(70,40,5,0.82);   color: #ffd166; border: 1px solid rgba(245,158,11,0.5); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }

.oan-article-header__title {
  font-size: clamp(28px, 4.5vw, 46px);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.025em;
  color: #e8eaf2;
  margin: 0 0 24px;
  max-width: 800px;
}

.oan-article-header__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  font-size: 13px;
  color: #7a8099;
}

.oan-article-header__meta-item {
  display: flex;
  align-items: center;
  gap: 6px;
}

.oan-article-header__meta-item svg {
  opacity: 0.5;
  flex-shrink: 0;
}

.oan-meta-divider {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: rgba(255,255,255,0.2);
}

/* ── Article Body ── */
.oan-article-body {
  /* Aucun plafond : le texte suit la largeur du conteneur, comme l'image,
     l'en-tete, les articles lies et les encadres. Une seule colonne pour
     toute la page. */
  margin: 0 auto;
}

.oan-article-body .oan-lead {
  font-size: 17px;
  line-height: 1.75;
  color: #c8cedf;
  margin-bottom: 28px;
}

.oan-article-body p {
  font-size: 15px;
  line-height: 1.85;
  color: #c8cedf;
  margin: 0 0 22px;
}

.oan-article-body h2 {
  font-size: 20px;
  font-weight: 700;
  color: #e8eaf2;
  margin: 40px 0 16px;
  letter-spacing: -0.01em;
}

.oan-article-body ul {
  margin: 0 0 24px;
  padding-left: 0;
  list-style: none;
}

.oan-article-body ul li {
  font-size: 15px;
  line-height: 1.75;
  color: #c8cedf;
  padding: 6px 0 6px 24px;
  position: relative;
}

.oan-article-body ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #2D7FF5;
  opacity: 0.7;
}

/* ── Callout / Info Box ── */
.oan-callout {
  background: rgba(45,127,245,0.07);
  border-left: 3px solid #2D7FF5;
  border-radius: 0 10px 10px 0;
  padding: 20px 24px;
  margin: 28px 0;
}

.oan-callout__label {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #2D7FF5;
  margin-bottom: 10px;
}

.oan-callout p {
  font-size: 14px;
  line-height: 1.7;
  color: #a8b8d8;
  margin: 0;
}

/* ── Tags ── */
.oan-tags {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 40px 0 0;
}

.oan-tags__label {
  font-size: 12px;
  font-weight: 600;
  color: #7a8099;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  margin-right: 4px;
}

.oan-tag {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  color: #7a8099;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  text-decoration: none;
  transition: border-color 0.15s, color 0.15s;
}

.oan-tag:hover {
  border-color: rgba(45,127,245,0.3);
  color: #c8d4f0;
}

/* ── Divider ── */
.oan-divider {
  height: 1px;
  background: rgba(255,255,255,0.07);
  margin: 48px 0;
}

/* ── Related Articles ── */
.oan-related {
  /* Plafond de 720 retire : le bloc suit la largeur du conteneur, comme le
     reste de la page. */
  margin: 0 auto;
}

.oan-related__heading {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #7a8099;
  margin: 0 0 20px;
}

.oan-related__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

@media (max-width: 600px) {
  .oan-related__grid {
    grid-template-columns: 1fr;
  }
}

.oan-related-card {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 10px;
  padding: 16px;
  text-decoration: none;
  transition: border-color 0.18s, background 0.18s;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.oan-related-card:hover {
  border-color: rgba(45,127,245,0.25);
  background: rgba(45,127,245,0.04);
}

.oan-related-card__cat {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #2D7FF5;
}

.oan-related-card__title {
  font-size: 13px;
  font-weight: 700;
  color: #c8cedf;
  line-height: 1.45;
  margin: 0;
}

.oan-related-card__date {
  font-size: 11px;
  color: #7a8099;
  margin-top: auto;
}

/* ---------- Ajouts de l'Auth : contenu des articles importés de WordPress ---------- */
.oan-article-body h3 { font-size: 17px; font-weight: 700; color: #e8eaf2; margin: 32px 0 12px; }
.oan-article-body a { color: #6aa7ff; text-decoration: underline; text-underline-offset: 2px; }
.oan-article-body ol { margin: 0 0 24px; padding-left: 22px; color: #c8cedf; font-size: 15px; line-height: 1.75; }
.oan-article-body img { display: block; max-width: 100%; height: auto; border-radius: 10px; margin: 0 auto; }
.oan-article-body figure { margin: 28px 0; }
.oan-article-body figcaption { margin-top: 8px; font-size: 13px; color: #7a8099; text-align: center; }
.oan-article-body iframe { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; border: 0; border-radius: 10px; margin: 28px 0; }
.oan-article-body hr { border: 0; border-top: 1px solid rgba(255,255,255,0.08); margin: 32px 0; }
.oan-article-body blockquote { margin: 0 0 22px; padding: 12px 18px; border-left: 3px solid #2D7FF5; background: rgba(45,127,245,0.06); color: #c8cedf; }
.oan-article-body table { width: 100%; border-collapse: collapse; margin: 0 0 24px; font-size: 14px; color: #c8cedf; display: block; overflow-x: auto; }
.oan-article-body th, .oan-article-body td { padding: 8px 12px; border: 1px solid rgba(255,255,255,0.08); text-align: left; vertical-align: top; }
.oan-article-body th { color: #e8eaf2; background: rgba(255,255,255,0.03); }
.oan-article-body code { font-size: 13px; padding: 1px 5px; border-radius: 4px; background: rgba(255,255,255,0.06); }
