/* ================================================
   NEOMENS — Page Ressources
   Styles spécifiques à /ressources-hypnose-pnl/
   ================================================ */

/* ------------------------------------------------
   Hero avec image
   ------------------------------------------------ */
.nm-ressources-hero {
  position: relative;
  min-height: 55vh;
  display: flex;
  align-items: flex-end;
  padding-bottom: 4rem;
  overflow: hidden;
}

.nm-ressources-hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.nm-ressources-hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
  opacity: 0.45;
  display: block;
}

.nm-ressources-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    hsl(0, 0%, 6%) 0%,
    hsl(0, 0%, 6% / 0.6) 50%,
    transparent 100%
  );
}

/* ------------------------------------------------
   Réduire l'espace après structural rule
   ------------------------------------------------ */
.section-py-l:has(.nm-livres-grid),
.section-py-l:has(.nm-articles-liste) {
  padding-top: 3rem;
  padding-bottom: 4rem;
}

/* ------------------------------------------------
   Titres de section
   ------------------------------------------------ */
.nm-ressources-section-title {
  font-size: 2.5rem;
  line-height: 1.2;
  margin-bottom: 0.75rem;
}

.nm-ressources-section-intro {
  color: var(--muted);
  max-width: 42rem;
  line-height: 1.8;
  margin-bottom: 3rem;
}

/* ------------------------------------------------
   GRILLE LIVRES
   ------------------------------------------------ */
.nm-livres-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
}

@media (min-width: 640px) {
  .nm-livres-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }
}

@media (min-width: 1024px) {
  .nm-livres-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
  }
}

/* Carte livre */
.nm-livre-card {
  display: flex;
  flex-direction: row;
  gap: 1.25rem;
  align-items: flex-start;
  padding: 1.5rem;
  background: var(--card);
  border: 1px solid var(--border);
  transition: border-color 0.2s ease;
}

.nm-livre-card:hover {
  border-color: var(--primary);
}

/* Vignette couverture */
.nm-livre-cover {
  flex-shrink: 0;
  width: 72px;
}

.nm-livre-img {
  width: 72px;
  height: auto;
  display: block;
  object-fit: cover;
  border-left: 2px solid var(--primary);
}

/* Métadonnées */
.nm-livre-meta {
  flex: 1;
  min-width: 0;
}

.nm-livre-titre {
  font-family: var(--font-display);
  font-size: 1.05rem;
  line-height: 1.35;
  margin-bottom: 0.4rem;
}

.nm-livre-titre a {
  color: var(--fg);
  transition: color 0.2s ease;
}

.nm-livre-titre a:hover {
  color: var(--primary);
}

.nm-livre-auteur {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--primary);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}

.nm-livre-desc {
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: 1rem;
}

/* ------------------------------------------------
   LISTE ARTICLES (scientifiques + cliniques)
   ------------------------------------------------ */
.nm-articles-liste {
  display: flex;
  flex-direction: column;
  gap: 0;
  max-width: 52rem;
}

.nm-article-item {
  padding: 1.75rem 0;
  border-bottom: 1px solid var(--border);
}

.nm-article-item:first-child {
  border-top: 1px solid var(--border);
}

.nm-article-item__header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1.5rem;
  margin-bottom: 0.5rem;
}

.nm-article-item__titre {
  font-family: var(--font-display);
  font-size: 1.1rem;
  line-height: 1.35;
  margin-bottom: 0.3rem;
}

.nm-article-item__titre a {
  color: var(--fg);
  transition: color 0.2s ease;
}

.nm-article-item__titre a:hover {
  color: var(--primary);
}

.nm-article-item__meta {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--primary);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.nm-article-item__desc {
  font-size: 0.95rem;
  color: var(--muted);
  line-height: 1.75;
  margin-top: 0.5rem;
}

/* ------------------------------------------------
   LIEN RESSOURCE
   ------------------------------------------------ */
.nm-ressource-lien {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--primary);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease;
  white-space: nowrap;
}

.nm-ressource-lien:hover {
  border-color: var(--primary);
}

.nm-ressource-lien--small {
  font-size: 0.7rem;
  flex-shrink: 0;
  margin-top: 0.2rem;
}

/* ------------------------------------------------
   Mobile
   ------------------------------------------------ */
@media (max-width: 767px) {
  .nm-ressources-hero {
    min-height: 40vh;
    padding-bottom: 2.5rem;
  }

  .nm-ressources-section-title {
    font-size: 2rem;
  }

  .nm-livres-grid {
    grid-template-columns: 1fr;
  }

  .nm-livre-card {
    padding: 1.25rem;
  }

  .nm-article-item__header {
    flex-direction: column;
    gap: 0.75rem;
  }
}
