/* =====================================================
   CYBERFOLIO 2.0 — STYLES SPÉCIFIQUES À "ÉTUDES DE CAS"
   (n'impacte pas style.css global ; complète les classes
   .glass, .reveal, .btn-glow, .tech-tag déjà définies)
   Identité dédiée : rouge-crimson + écho violet-améthyste,
   univers "DFIR / Post-Mortem Analysis".
   ===================================================== */

/* ---------------------------------------------------
   TEXTE DÉGRADÉ CRIMSON (titre du hero)
--------------------------------------------------- */
.text-gradient-crimson {
  background: linear-gradient(100deg, #FB7185 5%, #F43F5E 45%, #A855F7 95%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------------------------------------------------
   BADGE DU HERO — pulsation crimson
--------------------------------------------------- */
.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, 113, 133, 0.8); }
  50%      { box-shadow: 0 0 4px 1px rgba(251, 113, 133, 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 démarche globale" : bordure gauche crimson lumineuse */
.approach-note {
  background: rgba(244, 63, 94, 0.06);
  border: 1px solid rgba(244, 63, 94, 0.25);
  border-left: 3px solid #F43F5E;
}
.approach-note-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #FDA4AF;
}

/* ---------------------------------------------------
   DOUBLE BLOC (Comprendre / Mettre en perspective)
--------------------------------------------------- */
.case-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;
}
.case-block:hover {
  transform: translateY(-5px);
  background: rgba(22, 29, 46, 0.6);
}
.case-block:first-child:hover {
  border-color: rgba(244, 63, 94, 0.35);
}
.case-block:last-child:hover {
  border-color: rgba(168, 85, 247, 0.35);
}

/* ---------------------------------------------------
   INCIDENT COVER — grande carte de focus contextuel
--------------------------------------------------- */
.incident-cover {
  position: relative;
  background: rgba(17, 24, 39, 0.5);
  border: 1px solid rgba(244, 63, 94, 0.25);
  backdrop-filter: blur(18px);
  box-shadow: 0 0 60px rgba(244, 63, 94, 0.1), 0 0 120px rgba(168, 85, 247, 0.06);
  overflow: hidden;
}
.incident-cover::before {
  content: "";
  position: absolute;
  top: -45%;
  right: -12%;
  width: 55%;
  height: 190%;
  background: radial-gradient(circle, rgba(244, 63, 94, 0.12), transparent 70%);
  pointer-events: none;
}

/* ---------------------------------------------------
   HUB DES DOSSIERS — 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 /
   publications_certfr.css) : une ligne horizontale discrète,
   visible à partir du breakpoint lg. Les 3 dossiers tiennent
   sur une seule rangée en lg:grid-cols-3, le connecteur les
   relie donc tous.
--------------------------------------------------- */
.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, #F43F5E, #FB7185 50%, #A855F7);
    opacity: 0.25;
    z-index: 0;
  }
}

/* ---------------------------------------------------
   CARTES "CASE" — dossiers d'incidents (catalogue)
--------------------------------------------------- */
.case-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 #F43F5E;
  backdrop-filter: blur(10px);
  transition: transform 0.35s ease, border-color 0.35s ease, background 0.35s ease, box-shadow 0.35s ease;
}
.case-card:hover {
  transform: translateY(-6px);
  background: rgba(22, 29, 46, 0.6);
  border-color: rgba(244, 63, 94, 0.35);
  box-shadow: 0 0 36px rgba(244, 63, 94, 0.16);
}

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

/* Badge date, façon fiche de dossier d'incident */
.case-date {
  font-family: 'JetBrains Mono', monospace;
  letter-spacing: 0.03em;
  background: rgba(244, 63, 94, 0.1);
  border: 1px solid rgba(244, 63, 94, 0.3);
  color: #FDA4AF;
}

/* Badge type d'impact */
.impact-badge {
  font-family: 'JetBrains Mono', monospace;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  background: rgba(168, 85, 247, 0.1);
  border: 1px solid rgba(168, 85, 247, 0.3);
  color: #D8B4FE;
}

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