/* ==========================================================
   MODERN LAYER - IICD (s'ajoute à base.css)
========================================================== */
:root {
  --ink: #0b1220;
  --flame: #ff8a1f;
  --glass: rgba(255,255,255,.12);
}

html { scroll-padding-top: 80px; }
body { background: #fff; }
::selection { background: var(--accent-color); color: #111; }

/* alternance explicite des fonds de section */
section:nth-of-type(even) { background-color: transparent; }
section.section-soft { background: linear-gradient(180deg, #f3f6ff 0%, #eef3ff 100%); }

/* ---------- progress / back to top ---------- */
#scroll-progress {
  position: fixed; top: 0; left: 0; height: 4px; width: 0;
  background: var(--gradient-accent); z-index: 2000;
  box-shadow: 0 0 12px var(--accent-glow);
}
#back-to-top {
  position: fixed; right: 22px; bottom: 22px; z-index: 1500;
  width: 48px; height: 48px; border-radius: 50%; border: 0;
  background: var(--gradient-primary); color: #fff;
  box-shadow: var(--shadow-lg);
  opacity: 0; transform: translateY(20px) scale(.8); pointer-events: none;
  transition: all .4s cubic-bezier(.22,1,.36,1);
}
#back-to-top.show { opacity: 1; transform: none; pointer-events: auto; }
#back-to-top:hover { transform: translateY(-4px); }

/* ---------- navbar ---------- */
.navbar { background-color: rgba(255,255,255,.88); }
.nav-link { padding: 10px 9px !important; font-size: .84rem; white-space: nowrap; }
.nav-link.active { color: var(--primary-color) !important; font-weight: 600; }
.nav-link::after { width: 0; }
.nav-link:hover::after, .nav-link.active::after { width: calc(100% - 18px); }
@media (max-width: 1199.98px) {
  .navbar-collapse { padding: 12px 0 8px; }
  .nav-link { font-size: .95rem; }
}

/* ---------- hero ---------- */
#hero-carousel, #hero-carousel .carousel-inner { overflow: hidden; }
#hero-carousel .carousel-item { height: calc(100vh - 80px); min-height: 600px; background: var(--ink); }
.hero-bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  transform: scale(1.02);
}
.carousel-item.active .hero-bg { animation: kenburns 9s ease-out forwards; }
@keyframes kenburns { from { transform: scale(1.02); } to { transform: scale(1.14) translate(-1%, -1%); } }
#hero-carousel .carousel-item::before { z-index: 1; }
#hero-carousel .carousel-caption { z-index: 3; }
#hero-carousel .carousel-item::before {
  background: linear-gradient(135deg, rgba(11,18,32,.68) 0%, rgba(26,86,219,.32) 60%, rgba(245,158,11,.18) 100%);
}
.carousel-item.active .carousel-caption > * { animation: fadeUp .9s cubic-bezier(.22,1,.36,1) both; }
.carousel-item.active .carousel-caption > *:nth-child(1) { animation-delay: .15s; }
.carousel-item.active .carousel-caption > *:nth-child(2) { animation-delay: .3s; }
.carousel-item.active .carousel-caption > *:nth-child(3) { animation-delay: .5s; }
.carousel-item.active .carousel-caption > *:nth-child(4) { animation-delay: .7s; }
.carousel-item.active .carousel-caption > *:nth-child(5) { animation-delay: .8s; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(40px); } to { opacity: 1; transform: none; } }

.hero-kicker {
  display: inline-block; margin-bottom: 18px; padding: 8px 20px;
  border-radius: 50px; font-size: .85rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  color: #fff; background: var(--glass); border: 1px solid rgba(255,255,255,.3);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.hero-kicker i { color: var(--flame); animation: flicker 1.6s ease-in-out infinite; }
@keyframes flicker { 0%,100% { transform: scale(1); } 50% { transform: scale(1.25) rotate(-6deg); } }

.btn-glass {
  color: #fff; padding: 14px 30px; border-radius: 50px; font-weight: 600;
  font-family: 'Montserrat', sans-serif; font-size: .95rem;
  background: var(--glass); border: 1px solid rgba(255,255,255,.4);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  transition: all .35s ease;
}
.btn-glass:hover { background: #fff; color: var(--primary-color); transform: translateY(-3px); }

#hero-carousel .carousel-indicators { z-index: 4; margin-bottom: 88px; }
#hero-carousel .carousel-indicators [data-bs-target] {
  width: 34px; height: 4px; border: 0; border-radius: 4px; opacity: .45; transition: all .4s;
}
#hero-carousel .carousel-indicators .active { width: 56px; opacity: 1; background: var(--accent-color); }

.scroll-cue {
  position: absolute; left: 50%; bottom: 26px; z-index: 4; transform: translateX(-50%);
  width: 26px; height: 42px; border: 2px solid rgba(255,255,255,.7); border-radius: 20px;
}
.scroll-cue span {
  position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px;
  background: #fff; border-radius: 4px; animation: wheel 1.8s ease-in-out infinite;
}
@keyframes wheel { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(16px); } }

/* ---------- ticker ---------- */
.ticker { background: var(--gradient-accent); color: #fff; overflow: hidden; white-space: nowrap; padding: 12px 0; }
.ticker-track { display: inline-flex; gap: 56px; padding-left: 56px; animation: marquee 38s linear infinite; }
.ticker:hover .ticker-track { animation-play-state: paused; }
.ticker span { font-weight: 600; letter-spacing: .04em; font-size: .92rem; }
.ticker i { font-size: .65rem; margin-right: 10px; opacity: .85; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---------- stats ---------- */
.stat-plus { color: #fde047; font-size: 1rem; font-weight: 700; margin: 0 0 4px; }
.stat-item { transition: transform .4s ease; }
.stat-item:hover { transform: translateY(-4px) scale(1.04); }
.stat-number { background: linear-gradient(180deg, #fcd34d, #f59e0b); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------- generic ---------- */
.section-lead { text-align: center; max-width: 680px; margin: -40px auto 40px; font-size: 1.08rem; color: var(--secondary-color); }
.eyebrow {
  display: inline-block; font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--primary-color); margin-bottom: 10px;
}
.eyebrow-light { color: #fcd34d; }
.check-dot {
  width: 36px; height: 36px; border-radius: 50%; background: #fff; box-shadow: var(--shadow-sm);
  display: flex; align-items: center; justify-content: center; margin-right: 14px; flex-shrink: 0;
}
.check-dot i { color: var(--primary-color); font-size: .8rem; }
.img-float { animation: floaty 7s ease-in-out infinite; }
@keyframes floaty { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

.blob { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .35; pointer-events: none; z-index: 0; animation: blobMove 16s ease-in-out infinite alternate; }
.blob-a { width: 380px; height: 380px; background: #93c5fd; top: -80px; left: -100px; }
.blob-b { width: 340px; height: 340px; background: #fcd34d; bottom: -80px; right: -80px; animation-delay: -6s; }
@keyframes blobMove { to { transform: translate(60px, 40px) scale(1.15); } }

.card.tilt { transform-style: preserve-3d; will-change: transform; }
.doc-list a { display: block; padding: 8px 10px; border-radius: 10px; transition: all .25s ease; }
.doc-list a:hover { background: var(--light-bg); text-decoration: none !important; transform: translateX(4px); }
.reveal-left, .reveal-right { will-change: transform, opacity; }

/* ---------- welcome ---------- */
.welcome-card {
  position: relative; background: #fff; border-radius: var(--radius-xl); padding: clamp(24px, 4vw, 56px);
  box-shadow: var(--shadow-xl); border: 1px solid rgba(26,86,219,.08); overflow: hidden;
}
.welcome-card::before {
  content: ''; position: absolute; inset: 0 0 auto 0; height: 6px; background: var(--gradient-accent);
}
.welcome-head { display: flex; gap: 24px; align-items: center; margin-bottom: 28px; }
.welcome-logo { width: 96px; height: 96px; border-radius: 50%; object-fit: cover; box-shadow: var(--shadow-md); flex-shrink: 0; }
.welcome-head h3 {
  font-family: 'Playfair Display', serif; font-style: italic; font-weight: 700;
  font-size: clamp(1.2rem, 2.4vw, 1.75rem); line-height: 1.45; margin: 0;
}
.welcome-body p { font-size: 1.05rem; line-height: 1.85; }
.silence-note {
  display: flex; gap: 12px; align-items: center; margin: 22px 0; padding: 16px 22px;
  border-left: 4px solid var(--accent-color); border-radius: 12px; background: #fffbeb; font-weight: 500;
}
.silence-note i { color: var(--accent-color); font-size: 1.2rem; }
.silence-note a { font-weight: 700; color: var(--primary-color); }

.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin: 32px 0; }
.pillar {
  text-align: center; padding: 28px 22px; border-radius: var(--radius-md);
  background: linear-gradient(180deg, #f3f6ff, #fff); border: 1px solid rgba(26,86,219,.1);
  transition: all .45s cubic-bezier(.22,1,.36,1);
}
.pillar:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); background: var(--gradient-primary); }
.pillar:hover h4, .pillar:hover p { color: #fff; }
.pillar-ico {
  width: 64px; height: 64px; margin: 0 auto 14px; border-radius: 20px; display: grid; place-items: center;
  background: var(--gradient-primary); color: #fff; font-size: 1.5rem; box-shadow: 0 10px 24px rgba(26,86,219,.3);
  transition: transform .5s ease;
}
.pillar:hover .pillar-ico { background: #fff; color: var(--primary-color); transform: rotate(-8deg) scale(1.1); }
.pillar h4 { font-size: 1.25rem; margin-bottom: 8px; transition: color .3s; }
.pillar p { margin: 0; font-size: .95rem; transition: color .3s; }

.speech-full { border-top: 1px dashed rgba(26,86,219,.25); margin-top: 8px; padding-top: 16px; }
.speech-motto {
  text-align: center; font-family: 'Montserrat', sans-serif; font-weight: 900 !important; font-size: 1.5rem !important;
  background: var(--gradient-primary); -webkit-background-clip: text; background-clip: text; color: transparent; margin: 28px 0 !important;
}
.speech-h { margin: 32px 0 12px; display: flex; align-items: center; gap: 12px; color: var(--primary-color); }
.speech-h i { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--light-bg); font-size: 1rem; }
.speech-q { padding-left: 1.2rem; }
.speech-q li { margin-bottom: 8px; font-style: italic; color: #4b5563; line-height: 1.7; }
.speech-q li::marker { color: var(--accent-color); content: '❯  '; }
.welcome-actions { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; margin-top: 28px; }
.welcome-actions .btn-outline-primary { display: inline-flex; align-items: center; }

/* ---------- gallery rentrée ---------- */
.gallery-filters { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-bottom: 36px; }
.chip {
  border: 2px solid rgba(26,86,219,.18); background: #fff; color: var(--primary-color); font-weight: 600;
  padding: 10px 22px; border-radius: 50px; font-size: .92rem; transition: all .3s ease;
}
.chip:hover { border-color: var(--primary-color); transform: translateY(-2px); }
.chip.active { background: var(--gradient-primary); color: #fff; border-color: transparent; box-shadow: 0 8px 22px rgba(26,86,219,.3); }

.gallery-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.g-item {
  position: relative; margin: 0; overflow: hidden; border-radius: var(--radius-lg); box-shadow: var(--shadow-md);
  aspect-ratio: 4 / 3; background: #dbe4ff; cursor: zoom-in;
  transition: opacity .5s ease, transform .5s cubic-bezier(.22,1,.36,1), box-shadow .5s ease;
}
.g-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s cubic-bezier(.22,1,.36,1); }
.g-portrait img { object-position: 50% 25%; }
.g-item:hover { box-shadow: var(--shadow-xl); }
.g-item:hover img { transform: scale(1.08); }
.g-item figcaption {
  position: absolute; inset: auto 0 0 0; padding: 60px 24px 22px; color: #fff; display: flex; flex-direction: column; gap: 2px;
  background: linear-gradient(0deg, rgba(11,18,32,.88), transparent);
}
.g-item figcaption strong { font-family: 'Montserrat', sans-serif; font-size: 1.15rem; }
.g-item figcaption small { opacity: .8; }
.badge-level {
  align-self: flex-start; margin-bottom: 8px; padding: 4px 14px; border-radius: 50px; font-size: .72rem; font-weight: 700;
  letter-spacing: .08em; text-transform: uppercase; background: var(--accent-color); color: #111;
}
.g-item.is-hidden { display: none; }
.gallery-grid.single { grid-template-columns: minmax(0, 880px); justify-content: center; }

/* ---------- lightbox ---------- */
img[data-zoom] { cursor: zoom-in; }
.lightbox {
  position: fixed; inset: 0; z-index: 3000; display: flex; align-items: center; justify-content: center;
  background: rgba(5,10,20,.92); backdrop-filter: blur(8px);
  opacity: 0; visibility: hidden; transition: opacity .35s ease, visibility .35s;
}
.lightbox.open { opacity: 1; visibility: visible; }
.lightbox figure { margin: 0; max-width: min(92vw, 1200px); text-align: center; transform: scale(.94); transition: transform .4s cubic-bezier(.22,1,.36,1); }
.lightbox.open figure { transform: scale(1); }
.lightbox img { max-width: 100%; max-height: 80vh; border-radius: 14px; box-shadow: 0 30px 80px rgba(0,0,0,.5); }
.lightbox figcaption { color: #e5e7eb; margin-top: 14px; font-size: .95rem; }
.lb-close, .lb-nav {
  position: absolute; border: 0; color: #fff; background: rgba(255,255,255,.12); width: 48px; height: 48px; border-radius: 50%;
  transition: background .25s, transform .25s; z-index: 2;
}
.lb-close:hover, .lb-nav:hover { background: rgba(255,255,255,.28); transform: scale(1.1); }
.lb-close { top: 20px; right: 20px; }
.lb-prev { left: 20px; } .lb-next { right: 20px; }
.lb-nav { top: 50%; margin-top: -24px; }
.lightbox.single .lb-nav { display: none; }

/* ---------- hymn ---------- */
.hymn-section {
  background: radial-gradient(ellipse at 20% 0%, #1e3a8a 0%, #0b1220 60%);
  color: #e5e7eb; overflow: hidden;
}
.hymn-section .section-title { color: #fff; }
.hymn-glow {
  position: absolute; width: 520px; height: 520px; right: -120px; top: -140px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255,138,31,.35), transparent 65%); animation: blobMove 12s ease-in-out infinite alternate; pointer-events: none;
}
.hymn-player-wrap { max-width: 400px; margin: 0 auto; }
.hymn-player {
  aspect-ratio: 368 / 496; border-radius: var(--radius-lg); box-shadow: 0 30px 80px rgba(0,0,0,.55), 0 0 0 6px rgba(255,255,255,.08);
  transition: transform .5s ease;
}
.hymn-player:hover { transform: translateY(-4px) rotate(-.5deg); }
.hymn-player video { object-fit: contain; background: #000; }
.hymn-meta { display: flex; align-items: center; justify-content: space-between; margin-top: 18px; }
.eq { display: flex; align-items: flex-end; gap: 4px; height: 28px; }
.eq span { width: 5px; height: 6px; border-radius: 3px; background: var(--accent-color); opacity: .5; }
.eq.playing span { opacity: 1; animation: eq 0.9s ease-in-out infinite; }
.eq.playing span:nth-child(2) { animation-delay: -.2s; } .eq.playing span:nth-child(3) { animation-delay: -.5s; }
.eq.playing span:nth-child(4) { animation-delay: -.1s; } .eq.playing span:nth-child(5) { animation-delay: -.7s; }
.eq.playing span:nth-child(6) { animation-delay: -.35s; } .eq.playing span:nth-child(7) { animation-delay: -.6s; }
@keyframes eq { 0%,100% { height: 6px; } 50% { height: 28px; } }

.hymn-title { color: #fff; font-family: 'Playfair Display', serif; font-style: italic; font-size: clamp(1.8rem, 3.4vw, 2.8rem); margin-bottom: 24px; }
.lyrics { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.lyric-card {
  padding: 20px 24px; border-radius: var(--radius-md); background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.12); backdrop-filter: blur(6px);
  transition: all .4s cubic-bezier(.22,1,.36,1);
}
.lyric-card:hover { background: rgba(255,255,255,.12); transform: translateY(-4px); border-color: rgba(252,211,77,.5); }
.lyric-card h5 { color: #fcd34d; font-family: 'Montserrat', sans-serif; font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 10px; }
.lyric-card p { margin: 0; line-height: 1.8; font-size: .98rem; color: #e5e7eb; }
.lyric-refrain { background: linear-gradient(135deg, rgba(26,86,219,.55), rgba(59,130,246,.25)); }
.lyric-refrain p { font-weight: 600; color: #fff; }
.lyric-unisson { grid-column: 1 / -1; text-align: center; background: linear-gradient(135deg, rgba(245,158,11,.25), rgba(239,68,68,.18)); }
.lyric-unisson p { color: #fff; }

/* ---------- journal ---------- */
.journal-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px; align-items: start; margin-bottom: 56px; }
.journal-grid .video-card { height: auto; }
.journal-grid .video-card-title { font-size: 1.3rem; }
.journal-img { padding: 0 24px 24px; }
.journal-img img { width: 100%; height: auto; border-radius: var(--radius-md); display: block; transition: transform .6s cubic-bezier(.22,1,.36,1); }
.journal-img img:hover { transform: scale(1.02); }
.journal-duo { display: grid; gap: 12px; }
.doc-pill {
  display: inline-flex; align-items: center; margin-top: 4px; padding: 8px 18px; border-radius: 50px; font-size: .82rem; font-weight: 600;
  color: var(--primary-color); background: var(--light-bg); text-decoration: none; transition: all .3s ease;
}
.doc-pill:hover { background: var(--primary-color); color: #fff; transform: translateY(-2px); }
.hymn-player .video-play-overlay, .video-player-wrapper .video-play-overlay { background: rgba(0,0,0,.25); }
.video-player-wrapper video[controls] { object-fit: contain; }

/* ---------- contact ---------- */
.contact-card { text-align: center; padding: 34px 24px; }
.contact-card h5 { color: var(--heading-color); margin-bottom: 8px; }
.contact-card p { margin: 0; line-height: 1.7; }
.contact-card a { color: var(--primary-color); font-weight: 600; }
.map-wrap { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); }

/* ---------- footer ---------- */
.footer-motto { color: #fcd34d !important; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; font-size: .8rem; }

/* ---------- responsive ---------- */
@media (max-width: 991.98px) {
  section { padding: 72px 0; }
  .section-title { font-size: 2rem; margin-bottom: 48px; }
  .section-lead { margin-top: -24px; }
  .pillars { grid-template-columns: 1fr; }
  .journal-grid { grid-template-columns: 1fr; }
  .lyrics { grid-template-columns: 1fr; }
  .welcome-head { flex-direction: column; text-align: center; }
}
@media (max-width: 575.98px) {
  .gallery-grid { grid-template-columns: 1fr; }
  #hero-carousel .carousel-item { min-height: 560px; }
  .btn-glass { margin: 12px 0 0 !important; display: inline-block; }
  .lb-nav { width: 40px; height: 40px; }
  .journal-img { padding: 0 14px 14px; }
}

/* ---------- accessibilité : mouvement réduit ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .reveal, .reveal-left, .reveal-right, .reveal-scale { opacity: 1; transform: none; }
}
