/*CSS pour l'ecran 4, les 3 dernières videos en lignes*/

/* ----- Section globale ----- */

.sermons-section {
  padding: 3.5rem 1rem 6rem;
}

.sermons-title {
  text-align: center;
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--text);
}

/* ----- Grille responsive ----- */

.sermons-grid {
  display: grid;
  gap: 2.4rem;
  grid-template-columns: repeat(3, 1fr);
}


/* 1 colonne mobile (défaut) */

/* ----- Carte vidéo ----- */

.sermon-card {
  background: var(--surface);                   /* cohérent */
  border: 1px solid var(--edge);               /* premium */
  border-radius: 22px;
  overflow: hidden;

  box-shadow: var(--shadow);
  backdrop-filter: blur(8px);

  display: flex;
  flex-direction: column;
  transition: transform .22s ease, box-shadow .22s ease;
}

.sermon-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 40px rgba(0,0,0,0.32);
}

/* Thumbnail (nouveau rendu) */
.sermon-thumb {
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #0f172a;
}

.sermon-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .25s ease;
}

.sermon-card:hover .sermon-thumb img {
  transform: scale(1.03);
}

/* Vidéo 16:9 (ancien) */

.sermon-video {
  width: 100%;
  position: relative;
  padding-top: 56.25%;
}

.sermon-video iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
}

/* Texte */

.sermon-body {
  padding: 1.4rem 1.6rem 2rem;
}

.sermon-theme {
  font-weight: 700;
  font-size: 1.2rem;
  margin-bottom: .4rem;
  color: var(--text);
}

.sermon-author {
  font-size: 1rem;
  color: var(--muted);
  margin-bottom: .8rem;
}

.sermon-date {
  font-size: .9rem;
  color: var(--muted);
  opacity: .75;
  margin-bottom: 1.4rem;
}

/* Bouton (style premium ADD) */

.sermon-btn {
  display: inline-block;
  padding: .75rem 1.8rem;
  font-size: .95rem;
  font-weight: 700;

  background: linear-gradient(135deg, var(--primary), #7dd3fc);
  color: #0b1022;

  border-radius: 999px;
  text-decoration: none;

  transition: .25s ease;
  text-align: center;

  box-shadow: 0 8px 20px rgba(96,165,250,0.40);

}

.sermon-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 26px rgba(96,165,250,0.55);
}

@media (min-width: 1600px) {
  .sermons-grid {
    grid-template-columns: repeat(auto-fit, minmax(320px, 360px));
    justify-content: center;
  }
}

@media (min-width: 2200px) {
  .sermons-grid {
    grid-template-columns: repeat(auto-fit, minmax(320px, 360px));
    justify-content: center;
  }
}





































