/* =========================================================
   HERO — IMAGE + ANIMATION INSTITUTIONNELLE
   ========================================================= */

.publications-hero {
    position: relative;                /* Parent relatif pour bg absolu */
    min-height: 60vh;
    max-height: 900px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
    padding: 3rem 2rem;
    overflow: hidden;
    background: none;
}

/* Image de fond */
.publications-hero .hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
    animation: heroImageZoom 1.8s ease-out forwards;
}

@keyframes heroImageZoom {
    from {
        opacity: 0;
        transform: scale(1.05);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Contenu hero centré */
.publications-hero .hero-content {
    position: relative;
    max-width: 900px;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    color: #ffffff;
    text-shadow: 0 2px 8px rgba(0,0,0,0.4);
}

/* Titres et paragraphes */
.publications-hero h1 {
    font-size: 2.8rem;
    font-weight: 700;
    margin-bottom: 1rem;
    opacity: 0;
    transform: translateY(20px);
    animation: heroTextFadeUp 1.2s cubic-bezier(0.25, 1, 0.5, 1) forwards;
    animation-delay: 0.6s;
}

.publications-hero p {
    font-size: 1.15rem;
    line-height: 1.6;
    max-width: 700px;
    opacity: 0;
    transform: translateY(18px);
    animation: heroTextFadeUp 1.2s cubic-bezier(0.25, 1, 0.5, 1) forwards;
    animation-delay: 0.9s;
}

/* Forcer le blanc du texte */
.publications-hero h1,
.publications-hero p,
.publications-hero em {
    color: #ffffff;
}


/* =========================================================
   HERO – PUBLICATIONS : PARAGRAPHE PLUS GRAND
========================================================= */

.publications-hero p {
    font-size: 1.25rem;   /* un peu plus grand que les autres */
    line-height: 1.7;
}

/* Animation texte */
@keyframes heroTextFadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}



.publications {
  padding: 6rem 0;
}

.publications-list {
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

.publication-card {
  padding: 2.8rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: #fff;
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.8s cubic-bezier(0.25,1,0.5,1);
}

.publication-card.show {
  opacity: 1;
  transform: translateY(0);
}


.publication-share {
  margin-top: 6rem;
  padding: 5rem 1.5rem;
  background: var(--color-bg-light);
  border-top: 1px solid var(--color-border);
  text-align: center;
}

.publication-share h2 {
  font-size: 2rem;
  margin-bottom: 1.5rem;
}

.publication-share p {
  max-width: 700px;
  margin: 0 auto 2rem;
}



@media (max-width: 768px) {

  .publications-hero {
    min-height: 65vh;
  }

  .publications-hero .hero-bg {
    animation-duration: 8s;
  }

  .publications-hero h1 {
    font-size: 1.9rem;
  }

  .publications-hero p {
    font-size: 0.95rem;
  }

  .publication-card {
    padding: 2rem 1.5rem;
  }

  .publication-share h2 {
    font-size: 1.6rem;
  }
}


/* Boutons */
.btn {
  background: #8d8d8d;
  color: white;
  padding: 0.8rem 1.8rem;
  border-radius: 0px;
  font-weight: 600;
  transition: all 0.3s ease;
}

/* Effet hover sur bouton */
.btn:hover {
  background: #0088cc;
  transform: scale(1.08) translateY(-4px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
}


/* Lien vers publication (Zenodo) */
.btn-link {
  color: #1e40af;              /* bleu institutionnel lisible */
  font-weight: 600;
  text-decoration: underline;
  transition: color 0.3s ease;
}

.btn-link:hover {
  color: #2563eb;              /* bleu plus vif au survol */
  text-decoration: none;
}


/* =========================================
   REPO STATUS — STYLE INSTITUTIONNEL
========================================= */

.repo-status {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;

  margin-top: 1.2rem;

  font-size: 0.9rem;
  font-style: italic;
  color: var(--color-muted);

  opacity: 0.9;
}

/* Icône GitHub */
.repo-status i {
  width: 18px;
  height: 18px;
  color: #6b7280; /* gris institutionnel */
}

/* Optionnel : léger trait séparateur visuel */
.repo-status::before {
  content: "";
  display: inline-block;
  width: 20px;
  height: 1px;
  background-color: var(--color-border);
  margin-right: 0.5rem;
}



/* =========================================
   LINK — CONTACT (SECTION PARTAGE)
========================================= */

.publication-share .link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;

  font-family: 'IBM Plex Serif', serif;
  font-size: 1rem;
  font-weight: 600;

  color: var(--color-text);
  border-bottom: 1px solid var(--color-text);

  padding-bottom: 2px;
  margin-top: 1.5rem;

  transition: color 0.3s ease, border-color 0.3s ease, transform 0.3s ease;
}

/* Hover élégant */
.publication-share .link:hover {
  color: var(--color-accent);
  border-color: var(--color-accent);
  transform: translateY(-2px);
}
