/* =====================================================
   CYBERFOLIO 2.0 — STYLES SPÉCIFIQUES À "COLLABORATIONS"
   (n'impacte pas style.css global ; complète les classes
   .glass, .reveal, .btn-glow, .tech-tag déjà définies)
   Identité dédiée : vert-émeraude / partenariat, univers
   "Peer-to-Peer Intel".
   ===================================================== */

/* ---------------------------------------------------
   TEXTE DÉGRADÉ ÉMERAUDE (titre du hero)
--------------------------------------------------- */
.text-gradient-emerald {
  background: linear-gradient(100deg, #34D399 5%, #6EE7B7 45%, #22D3EE 95%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------------------------------------------------
   BADGE DU HERO — pulsation émeraude
--------------------------------------------------- */
.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(52, 211, 153, 0.8); }
  50%      { box-shadow: 0 0 4px 1px rgba(52, 211, 153, 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 dimension collective" : bordure gauche émeraude lumineuse */
.collective-note {
  background: rgba(52, 211, 153, 0.06);
  border: 1px solid rgba(52, 211, 153, 0.25);
  border-left: 3px solid #34D399;
}
.collective-note-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #6EE7B7;
}

/* ---------------------------------------------------
   DOUBLE BLOC (Démarche & co-rédaction / Complémentarité)
--------------------------------------------------- */
.synergy-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;
}
.synergy-block:hover {
  transform: translateY(-5px);
  background: rgba(22, 29, 46, 0.6);
}
.synergy-block:first-child:hover {
  border-color: rgba(52, 211, 153, 0.35);
}
.synergy-block:last-child:hover {
  border-color: rgba(34, 211, 238, 0.35);
}

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

/* ---------------------------------------------------
   HUB DES PUBLICATIONS — 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 / publications_etudes.css /
   publications_hors_serie.css) : une ligne horizontale
   discrète, visible à partir du breakpoint lg. Les 3
   publications 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, #34D399, #6EE7B7 50%, #22D3EE);
    opacity: 0.25;
    z-index: 0;
  }
}

/* ---------------------------------------------------
   CARTES "COLLAB" — publications co-écrites (catalogue)
--------------------------------------------------- */
.collab-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 #34D399;
  backdrop-filter: blur(10px);
  transition: transform 0.35s ease, border-color 0.35s ease, background 0.35s ease, box-shadow 0.35s ease;
}
.collab-card:hover {
  transform: translateY(-6px);
  background: rgba(22, 29, 46, 0.6);
  border-color: rgba(52, 211, 153, 0.35);
  box-shadow: 0 0 36px rgba(52, 211, 153, 0.16);
}

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

/* Badge "Co-auteurs" */
.coauthor-badge {
  font-family: 'JetBrains Mono', monospace;
  letter-spacing: 0.03em;
  background: rgba(52, 211, 153, 0.1);
  border: 1px solid rgba(52, 211, 153, 0.3);
  color: #6EE7B7;
}

/* Tag thématique */
.topic-tag {
  font-family: 'JetBrains Mono', monospace;
  color: #9CA3AF;
}

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