.sacred-banner {
  --banner-photo: url('../images/histoire-eglise/eglise-popenguine.jpg');
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: 250px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
  background-color: #151a16 !important;
  background-image: linear-gradient(105deg, rgba(12, 18, 15, .91), rgba(17, 24, 21, .72) 55%, rgba(17, 20, 16, .52)), var(--banner-photo) !important;
  background-position: center, center 46%;
  background-size: cover, cover;
  border-bottom: 1px solid rgba(220, 184, 100, .46);
}

.hero-slider::after {
  content: none !important;
}

.hero-slider .slide::before {
  content: '';
  position: absolute;
  z-index: 1;
  inset: 0;
  background: linear-gradient(90deg, rgba(10, 8, 4, .72) 0%, rgba(10, 8, 4, .62) 20%,
    rgba(10, 8, 4, .45) 45%, rgba(10, 8, 4, .28) 68%, rgba(10, 8, 4, .16) 85%,
    rgba(10, 8, 4, .1) 100%);
  pointer-events: none;
}

.hero-slider .slide-left {
  background: transparent !important;
}

.sacred-banner::after {
  content: '';
  position: absolute;
  z-index: -1;
  right: 0;
  bottom: 0;
  left: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, #d8b35c 22%, #f1dda5 50%, #d8b35c 78%, transparent);
  pointer-events: none;
}

.sacred-banner h1,
.sacred-banner .hero-title {
  position: relative;
  z-index: 1;
  color: #fffdf7;
  text-shadow: 0 2px 24px rgba(0, 0, 0, .42);
}

.sacred-banner p,
.sacred-banner .hero-subtitle {
  position: relative;
  z-index: 1;
  color: rgba(255, 253, 247, .86);
  text-shadow: 0 1px 12px rgba(0, 0, 0, .5);
}

.sacred-banner .histoire-hero-eyebrow,
.sacred-banner .eyebrow {
  position: relative;
  z-index: 1;
  color: #f0d898;
}

.sacred-banner .histoire-hero-eyebrow::before,
.sacred-banner .histoire-hero-eyebrow::after {
  background: linear-gradient(90deg, transparent, #d8b35c);
}

.sacred-banner .histoire-hero-eyebrow::after {
  transform: rotate(180deg);
}

.sacred-banner--history {
  --banner-photo: url('../images/histoire-eglise/eglise-popenguine.jpg');
}

.sacred-banner--mass {
  --banner-photo: url('../images/histoire-eglise/cathedrale-dakar.jpg');
}

.sacred-banner--retreat {
  --banner-photo: url('../images/histoire-eglise/eglise-popenguine.jpg');
}

.sacred-banner--support {
  --banner-photo: url('../images/histoire-eglise/maison-cluny-saint-louis.jpg');
}

.sacred-banner--library {
  --banner-photo: url('../images/slide-7.jpg');
}

.sacred-banner--shop {
  --banner-photo: url('../images/histoire-eglise/cathedrale-thies.jpg');
}

.sacred-banner--exegesis,
.sacred-banner--lexicon {
  --banner-photo: url('../images/slide-7.jpg');
}

.sacred-banner--saints {
  --banner-photo: url('../images/histoire-eglise/maison-cluny-saint-louis.jpg');
}

.hero-slider .slide-right {
  padding: 1.5rem;
}

.hero-slider .slide-card,
.hero-slider .saints-panel {
  width: min(100%, 250px);
  max-width: 250px !important;
}

.hero-slider .slide-card {
  padding: 1rem !important;
  border: 1px solid rgba(201, 168, 76, .2) !important;
  border-radius: 12px !important;
  box-shadow: 0 10px 28px rgba(0, 0, 0, .28) !important;
}

.hero-slider .slide-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, .32);
}

.hero-slider .slide-card-img {
  display: block;
  width: 100%;
  height: 128px;
  margin-bottom: .75rem;
  border: 0;
  border-radius: 7px;
  object-fit: cover;
}

.hero-slider .slide-card > div[style*="border:2px solid"] {
  border: 1px solid rgba(201, 168, 76, .36) !important;
  border-radius: 8px !important;
  box-shadow: 0 4px 14px rgba(0, 0, 0, .22) !important;
}

.hero-slider .slide-card > div[style*="border:2px solid"] img {
  height: 150px !important;
}

.hero-slider .saints-panel {
  gap: .55rem;
}

.hero-slider .saint-mini {
  gap: 9px;
  padding: .6rem;
  border-color: rgba(201, 168, 76, .16);
  border-radius: 8px;
}

.slide-andre-gueye .slide-card {
  max-width: 340px;
}

.hero-slider .slide-andre-gueye .slide-card {
  max-width: 250px !important;
}

.slide-andre-gueye .slide-card-img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 4;
  object-fit: contain;
  object-position: center;
  background: #e8e0d0;
}

@media (max-width: 768px) {
  .slide.slide-andre-gueye {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
  }

  .slide-andre-gueye .slide-left {
    padding: 4.5rem .8rem 2rem 1rem;
  }

  .slide-andre-gueye .slide h1 {
    font-size: 1.8rem;
  }

  .slide-andre-gueye .slide-right {
    display: flex !important;
    padding: 1rem .5rem;
  }

  .slide-andre-gueye .slide-card {
    padding: .55rem;
    max-width: 180px !important;
  }

  .hero-slider .slide-andre-gueye .slide-card {
    max-width: 180px !important;
  }

  .slide-andre-gueye .slide-card-img {
    margin-bottom: .55rem;
  }

  .slide-andre-gueye .card-tag-gold {
    font-size: 8px;
    margin-bottom: .35rem;
  }

  .slide-andre-gueye .slide-card-title {
    font-size: .8rem;
    margin-bottom: .4rem;
  }

  .slide-andre-gueye .slide-card-meta {
    font-size: 9px;
    gap: 4px;
  }
}

.sacred-banner--history.hero {
  padding: clamp(52px, 7vw, 88px) 24px clamp(40px, 5vw, 56px);
}

.sacred-banner--history.hero .hero-icon {
  width: 96px;
  height: 64px;
  margin-bottom: 18px;
}

.sacred-banner--history.hero h1 {
  font-size: clamp(2.6rem, 5vw, 4rem);
  margin: .2rem 0 .7rem;
}

.sacred-banner--history.hero .hero-subtitle {
  max-width: 58ch;
  margin-bottom: 1rem;
  font-size: 1.2rem;
}

.sacred-banner--history.hero .hero-description {
  max-width: 74ch;
  margin-bottom: 1.5rem;
  font-size: .98rem;
  line-height: 1.6;
}

.sacred-banner--history.hero .hero-stats {
  gap: 16px;
}

.sacred-banner--history.hero .stat-item {
  min-width: 132px;
  padding: 12px 18px;
  border: 1px solid rgba(240, 216, 152, .2);
  background: rgba(14, 20, 17, .48);
  backdrop-filter: blur(8px);
}

.sacred-banner--history.hero .stat-number {
  font-size: 2rem;
}

.sacred-banner--history.hero .stat-label {
  font-size: .85rem;
}

.sacred-menu-btn {
  position: absolute;
  top: 16px;
  right: 20px;
  z-index: 5;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  font-size: 12px;
  border: 1px solid rgba(240, 216, 152, .54);
  border-radius: 4px;
  background: rgba(18, 25, 21, .9);
  color: #fffdf7;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .3);
  backdrop-filter: blur(12px);
}

.sacred-menu-btn:hover {
  border-color: #f0d898;
  background: #d8b35c;
  color: #151a16;
}

@media (max-width: 640px) {
  .sacred-banner {
    min-height: 220px;
    background-position: center, 58% center;
  }

  .sacred-banner--history.hero {
    padding: 36px 18px 26px;
  }

  .sacred-banner--history.hero .hero-icon {
    margin-top: 58px;
    margin-bottom: 10px;
  }

  .sacred-banner--history.hero h1 {
    font-size: clamp(2.15rem, 9vw, 2.7rem);
  }

  .sacred-banner--history.hero .hero-description {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    margin-bottom: .9rem;
    font-size: .9rem;
  }

  .sacred-banner--history.hero .hero-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 7px;
  }

  .sacred-banner--history.hero .stat-item {
    min-width: 0;
    padding: 8px 5px;
  }

  .sacred-banner--history.hero .stat-number {
    font-size: 1.5rem;
  }

  .sacred-banner--history.hero .stat-label {
    font-size: .72rem;
  }

  .sacred-menu-btn {
    top: 12px;
    right: 12px;
    padding: 7px 10px;
    font-size: 11px;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .sacred-banner h1,
  .sacred-banner .hero-title {
    animation: sacred-banner-reveal 650ms cubic-bezier(.2, .7, .2, 1) both;
  }

  .sacred-banner p,
  .sacred-banner .hero-subtitle {
    animation: sacred-banner-reveal 800ms cubic-bezier(.2, .7, .2, 1) both;
  }
}

@keyframes sacred-banner-reveal {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}