/* =====================================================
   CYBERFOLIO 2.0 — STYLES SPÉCIFIQUES À "SÉRIE MITRE"
   (n'impacte pas style.css global ; complète les classes
   .glass, .reveal, .btn-glow, .tech-tag déjà définies)
   Identité dédiée : ambre/orange, univers Threat Intel.
   ===================================================== */

/* ---------------------------------------------------
   TEXTE DÉGRADÉ AMBRE (titre du hero)
--------------------------------------------------- */
.text-gradient-amber {
  background: linear-gradient(100deg, #F59E0B 5%, #FBBF24 45%, #FB923C 90%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------------------------------------------------
   BADGE DU HERO — pulsation ambre
--------------------------------------------------- */
.badge-pulse span:first-child {
  animation: badge-pulse-glow 2.4s ease-in-out infinite;
}
@keyframes badge-pulse-glow {
  0%, 100% { box-shadow: 0 0 10px 2px rgba(251, 191, 36, 0.8); }
  50%      { box-shadow: 0 0 4px 1px rgba(251, 191, 36, 0.4); }
}

/* ---------------------------------------------------
   INTRODUCTION
--------------------------------------------------- */
.intro-block {
  background: rgba(17, 24, 39, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.07);
  backdrop-filter: blur(10px);
}
.intro-block p {
  line-height: 1.9;
}

/* Encart "Objectif de la série" : bordure gauche ambre lumineuse */
.objective-note {
  background: rgba(251, 191, 36, 0.06);
  border: 1px solid rgba(251, 191, 36, 0.25);
  border-left: 3px solid #F59E0B;
}
.objective-note-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #FBBF24;
}

/* Citation de focus : grande citation centrée, mono, italique, lueur */
.focus-quote {
  position: relative;
  font-family: 'JetBrains Mono', monospace;
  font-style: italic;
  font-size: 1.15rem;
  line-height: 1.7;
  color: #F1F5F9;
  text-align: center;
  max-width: 44rem;
  margin: 2.5rem auto 0;
  padding: 0 1.5rem;
  text-shadow: 0 0 22px rgba(251, 191, 36, 0.25);
}
.focus-quote::before,
.focus-quote::after {
  color: #F59E0B;
  opacity: 0.5;
  font-size: 1.4rem;
  vertical-align: -0.1em;
}
.focus-quote::before { content: "\201C"; margin-right: 0.15em; }
.focus-quote::after  { content: "\201D"; margin-left: 0.15em; }

/* ---------------------------------------------------
   DOUBLE APPROCHE (Analyse technique / Vulgarisation)
--------------------------------------------------- */
.approach-block {
  position: relative;
  background: rgba(17, 24, 39, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.07);
  backdrop-filter: blur(10px);
  transition: transform 0.35s ease, border-color 0.35s ease, background 0.35s ease;
}
.approach-block:hover {
  transform: translateY(-5px);
  background: rgba(22, 29, 46, 0.6);
}
.approach-block:first-child:hover {
  border-color: rgba(59, 130, 246, 0.3);
}
.approach-block:last-child:hover {
  border-color: rgba(251, 191, 36, 0.35);
}

/* ---------------------------------------------------
   THREAT BOARD — grande carte de focus contextuel
--------------------------------------------------- */
.threat-board {
  position: relative;
  background: rgba(17, 24, 39, 0.5);
  border: 1px solid rgba(251, 191, 36, 0.25);
  backdrop-filter: blur(18px);
  box-shadow: 0 0 60px rgba(251, 191, 36, 0.1), 0 0 120px rgba(239, 68, 68, 0.05);
  overflow: hidden;
}
.threat-board::before {
  content: "";
  position: absolute;
  top: -45%;
  right: -12%;
  width: 55%;
  height: 190%;
  background: radial-gradient(circle, rgba(251, 191, 36, 0.12), transparent 70%);
  pointer-events: none;
}

/* ---------------------------------------------------
   HUB DES ANALYSES — connecteur visuel entre les cartes
   Repris des pages mères des autres silos (devsecops.css /
   isr.css / pentest.css / osint.css / reverse.css /
   crypto_analyse.css / exp_pro.css) : une ligne horizontale
   discrète, visible à partir du breakpoint lg. Les 3 analyses
   tiennent sur une seule rangée en lg:grid-cols-3, le
   connecteur les relie donc toutes.
--------------------------------------------------- */
.project-hub {
  position: relative;
}
@media (min-width: 1024px) {
  .project-hub::before {
    content: "";
    position: absolute;
    top: 2.75rem;
    left: 16.5%;
    right: 16.5%;
    height: 1px;
    background: linear-gradient(90deg, #F59E0B, #FBBF24 50%, #FB923C);
    opacity: 0.25;
    z-index: 0;
  }
}

/* ---------------------------------------------------
   CARTES "INDEX" — fiches Threat Intel (bibliothèque d'articles)
--------------------------------------------------- */
.index-card {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: rgba(17, 24, 39, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-top: 2px solid #F59E0B;
  backdrop-filter: blur(10px);
  transition: transform 0.35s ease, border-color 0.35s ease, background 0.35s ease, box-shadow 0.35s ease;
}
.index-card:hover {
  transform: translateY(-6px);
  background: rgba(22, 29, 46, 0.6);
  border-color: rgba(251, 191, 36, 0.35);
  box-shadow: 0 0 36px rgba(251, 191, 36, 0.16);
}

/* Spotlight qui suit le curseur, repris des pages mères des
   autres silos. Ici toutes les cartes partagent la même teinte
   ambre (pas de variable --project-c par carte), donc la
   couleur est fixée directement. Variables --mx / --my mises
   à jour en JS dans publications_mitre.js au survol de
   chaque carte. */
.index-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    260px circle at var(--mx, 50%) var(--my, 0%),
    rgba(251, 191, 36, 0.14),
    transparent 70%
  );
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}
.index-card:hover::after {
  opacity: 1;
}

/* Badge d'identifiant MITRE, façon fiche d'index technique */
.mitre-id {
  font-family: 'JetBrains Mono', monospace;
  letter-spacing: 0.04em;
  background: rgba(251, 191, 36, 0.1);
  border: 1px solid rgba(251, 191, 36, 0.3);
  color: #FBBF24;
}

@media (prefers-reduced-motion: reduce) {
  .badge-pulse span:first-child {
    animation: none;
  }
}
