/* =====================================================
   CYBERFOLIO 2.0 — GABARIT PARTAGÉ "ARTICLE DE PUBLICATION"
   (n'impacte pas style.css global ; complète les classes
   .glass, .reveal, .btn-glow, .text-gradient déjà définies)

   Ce fichier est PARTAGÉ par tous les articles du silo
   publications (série MITRE, CERT, études de cas, hors-série,
   collaborations). Il ne porte donc aucune couleur d'identité
   fixe : les accents (badge, icônes, liseuse PDF) sont
   appliqués directement dans le HTML de chaque article via
   des classes Tailwind (ex. text-rose-400 pour les études de
   cas, text-amber-400 pour MITRE, etc.), afin que ce même
   gabarit reste cohérent avec la couleur de chaque série.
   ===================================================== */

/* ---------------------------------------------------
   EN-TÊTE DE L'ARTICLE
--------------------------------------------------- */
.article-badge {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.72rem;
  letter-spacing: 0.03em;
}

.article-meta {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.82rem;
}

/* ---------------------------------------------------
   BLOCS "BRIEF" — résumé, objectifs, TTPs (colonne gauche)
--------------------------------------------------- */
.brief-block {
  background: rgba(17, 24, 39, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.07);
  backdrop-filter: blur(10px);
}
.brief-block p {
  line-height: 1.8;
}
.brief-block p + p {
  margin-top: 0.9rem;
}

/* Listes à puces "brutes" (non taguées) à l'intérieur d'un bloc brief,
   ex. la liste d'objectifs de l'analyse */
.brief-block ul:not(.ttp-list) {
  margin-top: 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.brief-block ul:not(.ttp-list) li {
  position: relative;
  padding-left: 1.4rem;
  font-size: 0.875rem;
  color: #9CA3AF;
  line-height: 1.6;
}
.brief-block ul:not(.ttp-list) li::before {
  content: "\25B9";
  position: absolute;
  left: 0;
  color: currentColor;
  opacity: 0.9;
}

/* ---------------------------------------------------
   LISTE DES TTPs (MITRE ATT&CK)
--------------------------------------------------- */
.ttp-list li {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.ttp-id {
  flex-shrink: 0;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #E5E7EB;
  white-space: nowrap;
}

/* ---------------------------------------------------
   LISEUSE PDF ENCASTRÉE (colonne droite)
--------------------------------------------------- */
.pdf-reader-card {
  display: flex;
  flex-direction: column;
  border-radius: 1.25rem;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.09);
  background: rgba(15, 20, 32, 0.6);
  backdrop-filter: blur(14px);
  position: static;
}

.pdf-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem 1.25rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.78rem;
  color: #CBD5E1;
  background: rgba(17, 24, 39, 0.6);
}
.pdf-toolbar a {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: #FB7185;
  transition: opacity 0.2s ease;
}
.pdf-toolbar a:hover {
  opacity: 0.75;
}

.pdf-frame-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 4;
  background: #0f1420;
}
.pdf-frame-wrap iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

/* Contenu de repli affiché si le navigateur ne sait pas
   restituer le PDF (balise <object> non supportée) */
.pdf-fallback {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: 2rem;
  text-align: center;
  color: #9CA3AF;
}

@media (max-width: 1023px) {
  .pdf-frame-wrap {
    aspect-ratio: 4 / 5;
  }
}

@media (prefers-reduced-motion: reduce) {
  .pdf-toolbar a {
    transition: none;
  }
}
