/* ==========================================================
   Grilles de cartes pour les pages de ressources
   (liens, vidéos, livres) — mutualisé entre les 3 pages.
   ========================================================== */
.ressources-intro {
  max-width: 720px;
  margin: 0 auto 1rem;
  padding: 0 1.5rem;
}
.ressources-intro .liens-croises {
  font-size: .9rem;
  color: #6b6058;
}
.ressources-intro .liens-croises a {
  color: #C1694F;
  font-weight: 600;
}

#ressource-maieusthesie,
#ressource-ir,
#ressource-massage {
  scroll-margin-top: calc(var(--hauteur-header, 84px) + 24px);
}

.resource-category {
  max-width: 760px;
  margin: 0 auto 2.8rem;
  padding: 0 1.5rem;
}
.resource-category h3 {
  font-family: 'Fraunces', serif;
  font-size: 1.35rem;
  font-weight: 500;
  color: var(--brun);
  margin: 0 0 1.1rem;
  padding-bottom: .5rem;
  border-bottom: 1px solid var(--ligne);
}
.resource-category .categorie-vide {
  font-size: .9rem;
  color: #6b6058;
  font-style: italic;
  margin: 0;
}

.cards-grid {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.card {
  display: flex;
  align-items: stretch;
  gap: 1.1rem;
  padding: .9rem;
  background: #FFFFFF;
  border: 1px solid var(--ligne);
  border-radius: var(--rayon-doux);
  text-decoration: none;
  color: var(--brun);
  transition: border-color .2s ease, transform .2s ease;
}
.card:hover {
  border-color: #3FA9A4;
  transform: translateY(-2px);
}
.card-thumb {
  flex: 0 0 130px;
  width: 130px;
  height: 90px;
  object-fit: cover;
  object-position: top center;
  border-radius: calc(var(--rayon-doux) - 4px);
  border: 1px solid var(--ligne);
  background: #FBF6F0;
}
.card-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.card-body h4 {
  margin: 0;
  font-family: 'Work Sans', sans-serif;
  font-weight: 600;
  font-size: 1rem;
  color: var(--brun);
}
.card-body .auteur {
  display: block;
  margin: .1rem 0 .3rem;
  font-size: .8rem;
  color: #1F6E69;
  font-weight: 500;
}
.card-body .url {
  display: block;
  margin: .2rem 0 .4rem;
  font-size: .76rem;
  color: #C1694F;
  font-family: monospace;
  word-break: break-all;
}
.card-body p.description {
  margin: 0;
  font-size: .86rem;
  color: #6b6058;
  line-height: 1.45;
}
@media (max-width: 480px) {
  .card-thumb {
    flex-basis: 90px;
    width: 90px;
    height: 72px;
  }
}

.resource-category h3 {
  position: relative;
}
.resource-category h3::before {
  content: "";
  position: absolute;
  left: -3.6em;
  top: calc(50% - 1.2em);
  transform: translateY(-50%);
  width: 7.2em;
  height: 7.2em;
  background-image: url('../../images/oeil-lotus-maieusthesie-franck-dagorn-evide-blanc.webp');
  background-size: contain;
  background-repeat: no-repeat;
  filter: invert(1);
  opacity: .12;
  z-index: -1;
  pointer-events: none;
}
