/* =====================================================
   CYBERFOLIO 2.0 — STYLES SPÉCIFIQUES À "SÉRIE CERT-FR"
   (n'impacte pas style.css global ; complète les classes
   .glass, .reveal, .btn-glow, .tech-tag déjà définies)
   Identité dédiée : bleu-roi profond + rouge d'alerte
   discret, univers "Incident Response".
   ===================================================== */

/* ---------------------------------------------------
   TEXTE DÉGRADÉ "ALERTE" (titre du hero)
--------------------------------------------------- */
.text-gradient-alert {
  background: linear-gradient(100deg, #3B82F6 5%, #60A5FA 45%, #93C5FD 90%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------------------------------------------------
   BADGE DU HERO — pulsation bleu-roi
--------------------------------------------------- */
.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(59, 130, 246, 0.8); }
  50%      { box-shadow: 0 0 4px 1px rgba(59, 130, 246, 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 "La philosophie d'analyse" : bordure gauche bleu-roi lumineuse */
.analysis-note {
  background: rgba(59, 130, 246, 0.06);
  border: 1px solid rgba(59, 130, 246, 0.25);
  border-left: 3px solid #3B82F6;
}
.analysis-note-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #93C5FD;
}

/* Citation de focus : grande citation centrée, mono, italique, lueur bleue */
.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(59, 130, 246, 0.3);
}
.focus-quote::before,
.focus-quote::after {
  color: #3B82F6;
  opacity: 0.55;
  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 BLOC (Analyse de la menace / Remédiation)
--------------------------------------------------- */
.threat-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;
}
.threat-block:hover {
  transform: translateY(-5px);
  background: rgba(22, 29, 46, 0.6);
}
.threat-block:first-child:hover {
  border-color: rgba(239, 68, 68, 0.35);
}
.threat-block:last-child:hover {
  border-color: rgba(59, 130, 246, 0.35);
}

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

/* ---------------------------------------------------
   HUB DES BULLETINS — 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 / publications_mitre.css) :
   une ligne horizontale discrète, visible à partir du
   breakpoint lg. Les 3 bulletins 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, #3B82F6, #60A5FA 50%, #93C5FD);
    opacity: 0.25;
    z-index: 0;
  }
}

/* ---------------------------------------------------
   CARTES "ADVISORY" — fiches d'alertes CERT-FR
--------------------------------------------------- */
.advisory-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 #3B82F6;
  backdrop-filter: blur(10px);
  transition: transform 0.35s ease, border-color 0.35s ease, background 0.35s ease, box-shadow 0.35s ease;
}
.advisory-card:hover {
  transform: translateY(-6px);
  background: rgba(22, 29, 46, 0.6);
  border-color: rgba(59, 130, 246, 0.35);
  box-shadow: 0 0 36px rgba(59, 130, 246, 0.16);
}

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

/* Code d'avis officiel, façon fiche d'index technique */
.advisory-code {
  font-family: 'JetBrains Mono', monospace;
  letter-spacing: 0.02em;
  background: rgba(59, 130, 246, 0.1);
  border: 1px solid rgba(59, 130, 246, 0.3);
  color: #93C5FD;
  border-radius: 999px;
  padding: 0.2rem 0.6rem;
}

/* Indicateur de criticité */
.severity-badge {
  font-family: 'JetBrains Mono', monospace;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
}
.severity-badge--critical {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.35);
  color: #F87171;
}
.severity-badge--active {
  background: rgba(245, 158, 11, 0.1);
  border: 1px solid rgba(245, 158, 11, 0.35);
  color: #FBBF24;
}

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