/* =====================================================================
   EBMD — Feuille de style principale (site public + espace)
   Couleurs reprises des affiches de l'église et du logo.
   ===================================================================== */
:root {
  --violet: #2C057A;
  --violet-700: #22045F;
  --violet-900: #160340;
  --violet-100: #ECE7F7;
  --violet-50: #F6F4FB;
  --gold: #E2A23B;
  --gold-700: #B97A16;
  --ink: #1F1830;
  --muted: #6B6280;
  --line: #E3DFEE;
  --paper: #FFFFFF;
  --bg: #F6F5FA;
  --live: #D62839;
  --ok: #1F8A5B;
  --radius: 10px;
  --font-display: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --font-body: "Source Sans 3", "Segoe UI", Roboto, Arial, sans-serif;

  --bs-primary: var(--violet);
  --bs-primary-rgb: 44, 5, 122;
  --bs-link-color: var(--violet);
  --bs-link-hover-color: var(--violet-700);
  --bs-body-font-family: var(--font-body);
  --bs-body-color: var(--ink);
  --bs-border-color: var(--line);
}

html { scroll-padding-top: 90px; }
body { font-family: var(--font-body); color: var(--ink); background: var(--bg); font-size: 1.0625rem; line-height: 1.6; }
h1, h2, h3, .display-font { font-family: var(--font-display); font-weight: 700; letter-spacing: -0.01em; line-height: 1.1; color: var(--violet-900); }
h1 { font-size: clamp(2.2rem, 4.5vw, 3.4rem); }
h2 { font-size: clamp(1.8rem, 3.2vw, 2.5rem); }
h3 { font-size: 1.5rem; }
h4, h5, h6 { font-weight: 700; }
a { color: var(--violet); text-underline-offset: 3px; }
a:hover { color: var(--violet-700); }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
.text-muted, .text-secondary { color: var(--muted) !important; }
.prose { max-width: 70ch; }
.prose p { margin-bottom: 1.1em; }
.lead-serif { font-family: var(--font-display); font-size: 1.45rem; line-height: 1.45; color: var(--ink); }

/* ---------- Boutons ---------- */
.btn { font-weight: 600; border-radius: 8px; padding: .55rem 1.1rem; }
.btn-primary { --bs-btn-bg: var(--violet); --bs-btn-border-color: var(--violet); --bs-btn-hover-bg: var(--violet-700); --bs-btn-hover-border-color: var(--violet-700); --bs-btn-active-bg: var(--violet-900); --bs-btn-disabled-bg: var(--violet); }
.btn-outline-primary { --bs-btn-color: var(--violet); --bs-btn-border-color: var(--violet); --bs-btn-hover-bg: var(--violet); --bs-btn-hover-border-color: var(--violet); --bs-btn-active-bg: var(--violet-700); }
.btn-gold { background: var(--gold); color: var(--violet-900); border: 0; }
.btn-gold:hover { background: #EDB55A; color: var(--violet-900); }
.btn-live { background: var(--live); color: #fff; border: 0; }
.btn-live:hover { background: #B81F2F; color: #fff; }
.text-bg-primary { background-color: var(--violet) !important; }
.form-control:focus, .form-select:focus { border-color: #9C86D4; box-shadow: 0 0 0 .2rem rgba(44, 5, 122, .15); }
.form-label { font-weight: 600; font-size: .95rem; margin-bottom: .3rem; }
.form-check-input:checked { background-color: var(--violet); border-color: var(--violet); }

/* ---------- Bandeau « en direct » (tout le site) ---------- */
.live-ribbon { background: var(--live); color: #fff; font-weight: 600; }
.live-ribbon a { color: #fff; text-decoration: none; display: flex; align-items: center; justify-content: center; gap: .75rem; padding: .55rem 1rem; }
.live-ribbon a:hover span.cta { text-decoration: underline; }
.live-dot { width: 10px; height: 10px; border-radius: 50%; background: #fff; display: inline-block; flex: none; animation: pulse 1.6s ease-out infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(255,255,255,.8); } 100% { box-shadow: 0 0 0 10px rgba(255,255,255,0); } }
@media (prefers-reduced-motion: reduce) { .live-dot { animation: none; } }

/* ---------- En-tête ---------- */
.topbar { background: var(--violet-900); color: #CFC6E6; font-size: .875rem; }
.topbar a { color: #E9E3F7; text-decoration: none; }
.topbar a:hover { color: #fff; }
.site-header { background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 1030; }
.brand { display: flex; align-items: center; gap: .7rem; text-decoration: none; color: var(--violet-900); }
.brand img { width: 52px; height: 52px; border-radius: 50%; }
.brand-name { font-family: var(--font-display); font-weight: 700; font-size: 1.55rem; line-height: 1; }
.brand-sub { display: block; font-size: .78rem; color: var(--muted); font-family: var(--font-body); font-weight: 600; margin-top: 3px; }
.site-header .nav-link { color: var(--ink); font-weight: 600; padding: .5rem .8rem !important; border-radius: 6px; }
.site-header .nav-link:hover, .site-header .nav-link.active { color: var(--violet); background: var(--violet-50); }
.site-header .dropdown-menu { border-color: var(--line); box-shadow: 0 10px 30px rgba(22, 3, 64, .1); }
.btn-direct { display: inline-flex; align-items: center; gap: .45rem; }
.btn-direct .live-dot { background: var(--live); width: 8px; height: 8px; animation: none; }
.btn-direct.is-live { background: var(--live); border-color: var(--live); color: #fff; }
.btn-direct.is-live .live-dot { background: #fff; animation: pulse 1.6s ease-out infinite; }

/* ---------- Héros de l'accueil ---------- */
.hero { background: var(--violet); color: #fff; position: relative; overflow: hidden; }
.hero::after { content: ""; position: absolute; right: -180px; top: -180px; width: 520px; height: 520px; border-radius: 50%; border: 70px solid rgba(255,255,255,.04); pointer-events: none; }
.hero-inner { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 3rem; align-items: center; padding: 3.5rem 0 4rem; position: relative; z-index: 1; }
.hero-temple { color: var(--gold); font-weight: 700; font-size: 1rem; margin-bottom: .75rem; }
.hero h1 { color: #fff; font-size: clamp(2.4rem, 4.6vw, 3.9rem); line-height: 1.02; margin-bottom: 1.1rem; }
.hero-theme { font-family: var(--font-display); font-size: 1.6rem; color: #F3E6C9; border-left: 3px solid var(--gold); padding-left: 1rem; margin: 1.5rem 0; line-height: 1.2; }
.hero-theme small { display: block; font-family: var(--font-body); font-size: .85rem; color: #BFB2E0; font-weight: 600; margin-bottom: .2rem; }
.hero-next { background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.14); border-radius: var(--radius); padding: 1rem 1.15rem; display: flex; gap: 1rem; align-items: center; }
.hero-next .when { font-family: var(--font-display); font-size: 1.35rem; color: #fff; line-height: 1.15; }
.hero-next .label { font-size: .85rem; color: #CFC6E6; }
.hero-next i { font-size: 1.7rem; color: var(--gold); }
.affiches { position: relative; border-radius: 14px; overflow: hidden; background: var(--violet-900); box-shadow: 0 30px 60px rgba(10, 0, 40, .45); aspect-ratio: 2 / 1; }
.affiches .carousel-item img, .affiches .carousel-item video { width: 100%; aspect-ratio: 2 / 1; object-fit: cover; display: block; }
.affiches .carousel-indicators { margin-bottom: .6rem; }
.affiches .carousel-indicators [data-bs-target] { width: 22px; height: 4px; border-radius: 2px; }
@media (max-width: 991.98px) {
  .hero-inner { grid-template-columns: 1fr; gap: 2rem; padding: 2.5rem 0 3rem; }
}

/* ---------- Scène du direct ---------- */
.stage { background: var(--violet-900); color: #fff; padding: 3.5rem 0; }
.stage h2 { color: #fff; }
.stage .text-muted { color: #B3A8CF !important; }
.stage-player { border-radius: 12px; overflow: hidden; background: #000; box-shadow: 0 20px 50px rgba(0,0,0,.35); }
.live-badge { display: inline-flex; align-items: center; gap: .5rem; background: var(--live); color: #fff; font-weight: 700; font-size: .85rem; padding: .3rem .75rem; border-radius: 999px; }
.platform-tabs .nav-link { color: #D9D1EE; border: 1px solid rgba(255,255,255,.2); margin-right: .5rem; border-radius: 999px; padding: .35rem 1rem; }
.platform-tabs .nav-link.active { background: #fff; color: var(--violet-900); border-color: #fff; }
.stage-side { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); border-radius: 12px; padding: 1.25rem; }
.stage-side a { color: #fff; }
.countdown { display: flex; gap: .6rem; }
.countdown div { background: rgba(255,255,255,.08); border-radius: 8px; padding: .5rem .7rem; text-align: center; min-width: 64px; }
.countdown strong { display: block; font-family: var(--font-display); font-size: 1.9rem; line-height: 1; color: #fff; }
.countdown span { font-size: .75rem; color: #B3A8CF; }
.embed-fallback { background: var(--violet-50); padding: 2rem; text-align: center; border-radius: 10px; }
.page-direct .stage { padding-top: 2.5rem; }

/* ---------- Sections ---------- */
.section { padding: 4rem 0; }
.section-white { background: #fff; }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 1rem; margin-bottom: 2rem; flex-wrap: wrap; }
.section-head h2 { margin: 0; }
.section-head p { margin: .4rem 0 0; color: var(--muted); }
.link-more { font-weight: 700; text-decoration: none; white-space: nowrap; }
.link-more:hover { text-decoration: underline; }
.page-head { background: var(--violet); color: #fff; padding: 3rem 0 2.6rem; }
.page-head h1 { color: #fff; margin: 0; }
.page-head p { color: #D6CDEE; margin: .6rem 0 0; max-width: 60ch; }
.page-head .breadcrumb { --bs-breadcrumb-divider-color: #A99BD3; --bs-breadcrumb-item-active-color: #D6CDEE; margin-bottom: .8rem; font-size: .9rem; }
.page-head .breadcrumb a { color: #fff; }

/* ---------- Programme hebdomadaire ---------- */
.programme { border-top: 2px solid var(--violet-900); }
.programme-row { display: grid; grid-template-columns: 120px 140px 1fr; gap: 1rem; padding: 1rem 0; border-bottom: 1px solid var(--line); align-items: baseline; }
.programme-row .jour { font-family: var(--font-display); font-size: 1.35rem; font-weight: 700; color: var(--violet); }
.programme-row .heure { font-weight: 700; font-variant-numeric: tabular-nums; }
.programme-row .act { font-weight: 600; }
.programme-row .det { color: var(--muted); font-size: .95rem; }
.programme-row.today { background: var(--violet-50); margin: 0 -1rem; padding-left: 1rem; padding-right: 1rem; }
@media (max-width: 575.98px) { .programme-row { grid-template-columns: 1fr; gap: .1rem; } }

/* ---------- Cartes de contenu ---------- */
.item-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; height: 100%; display: flex; flex-direction: column; }
.item-card .thumb { aspect-ratio: 16 / 10; background: var(--violet-100); overflow: hidden; display: block; }
.item-card .thumb img { width: 100%; height: 100%; object-fit: cover; }
.item-card .body { padding: 1.1rem 1.2rem 1.3rem; flex: 1; display: flex; flex-direction: column; }
.item-card h3 { font-size: 1.4rem; margin: .2rem 0 .5rem; }
.item-card h3 a { color: var(--violet-900); text-decoration: none; }
.item-card h3 a:hover { color: var(--violet); text-decoration: underline; }
.item-card .meta { font-size: .88rem; color: var(--muted); font-weight: 600; }
.item-card p { color: #4A4260; font-size: .98rem; margin: 0; }
.video-thumb { position: relative; display: block; aspect-ratio: 16 / 9; background: var(--violet-900); overflow: hidden; }
.video-thumb img { width: 100%; height: 100%; object-fit: cover; opacity: .85; }
.video-thumb .play { position: absolute; inset: 0; display: grid; place-items: center; color: #fff; font-size: 3rem; }
.video-thumb .play i { filter: drop-shadow(0 4px 12px rgba(0,0,0,.5)); }
.date-tile { width: 64px; flex: none; text-align: center; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; background: #fff; }
.date-tile .m { background: var(--violet); color: #fff; font-size: .75rem; font-weight: 700; padding: 2px 0; }
.date-tile .d { font-family: var(--font-display); font-size: 1.8rem; font-weight: 700; line-height: 1.2; color: var(--violet-900); }
.event-row { display: flex; gap: 1rem; padding: 1rem 0; border-bottom: 1px solid var(--line); }
.event-row:last-child { border-bottom: 0; }
.event-row h3 { font-size: 1.3rem; margin: 0 0 .2rem; }
.event-row h3 a { color: var(--violet-900); text-decoration: none; }

/* Annonces */
.annonce { border-left: 3px solid var(--gold); padding: .2rem 0 .2rem 1rem; margin-bottom: 1.2rem; }
.annonce h3 { font-family: var(--font-body); font-size: 1.05rem; font-weight: 700; margin: 0 0 .2rem; color: var(--ink); }
.annonce p { margin: 0; color: #4A4260; font-size: .97rem; }

/* Verset */
.verse { background: var(--violet-50); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 4rem 0; text-align: center; }
.verse blockquote { font-family: var(--font-display); font-size: clamp(1.6rem, 3vw, 2.3rem); line-height: 1.3; color: var(--violet-900); max-width: 30em; margin: 0 auto 1rem; font-style: italic; }
.verse cite { font-style: normal; font-weight: 700; color: var(--gold-700); }

/* Pasteur */
.pasteur-photo { border-radius: 14px; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.signature { font-family: var(--font-display); font-size: 1.5rem; color: var(--violet); font-weight: 700; }

/* Témoignages */
.temoignage { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; height: 100%; }
.temoignage p { font-family: var(--font-display); font-size: 1.25rem; line-height: 1.4; color: var(--ink); }
.temoignage .who { display: flex; align-items: center; gap: .7rem; margin-top: 1rem; font-weight: 700; }
.avatar { width: 46px; height: 46px; border-radius: 50%; object-fit: cover; background: var(--violet-100); color: var(--violet); display: inline-grid; place-items: center; font-weight: 700; flex: none; }
.avatar-sm { width: 34px; height: 34px; font-size: .85rem; }
.avatar-lg { width: 96px; height: 96px; font-size: 1.8rem; }

/* Églises */
.region-block { margin-bottom: 3rem; }
.region-block h2 { display: flex; align-items: baseline; gap: .8rem; border-bottom: 2px solid var(--violet-900); padding-bottom: .5rem; }
.region-block h2 small { font-family: var(--font-body); font-size: 1rem; color: var(--muted); font-weight: 600; }
.eglise-list { columns: 3 260px; column-gap: 2rem; list-style: none; padding: 0; margin: 1rem 0 0; }
.eglise-list li { break-inside: avoid; padding: .55rem 0; border-bottom: 1px dashed var(--line); }
.eglise-list a { color: var(--ink); text-decoration: none; font-weight: 600; }
.eglise-list a:hover { color: var(--violet); text-decoration: underline; }
.eglise-list .siege { color: var(--gold-700); font-size: .8rem; font-weight: 700; margin-left: .3rem; }
.stat-inline { display: flex; gap: 2.5rem; flex-wrap: wrap; }
.stat-inline strong { display: block; font-family: var(--font-display); font-size: 2.6rem; line-height: 1; color: var(--violet); }
.stat-inline span { color: var(--muted); font-weight: 600; }

/* Équipe */
.team-card { text-align: center; }
.team-card img, .team-card .avatar { width: 140px; height: 140px; border-radius: 50%; object-fit: cover; margin: 0 auto .8rem; display: block; font-size: 2.4rem; }
.team-card h3 { font-size: 1.35rem; margin-bottom: .1rem; }
.team-card .fonction { color: var(--gold-700); font-weight: 700; font-size: .95rem; }

/* Galerie */
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: .75rem; }
.gallery a { display: block; aspect-ratio: 1; overflow: hidden; border-radius: 8px; background: var(--violet-100); }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.gallery a:hover img { transform: scale(1.04); }
.chip-filter { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1.5rem; }
.chip-filter a { border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: .3rem .9rem; text-decoration: none; color: var(--ink); font-weight: 600; font-size: .92rem; }
.chip-filter a.active, .chip-filter a:hover { background: var(--violet); border-color: var(--violet); color: #fff; }
.lightbox-img { max-height: 80vh; width: auto; max-width: 100%; }

/* Dons */
.don-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.3rem; display: flex; align-items: center; gap: 1rem; }
.don-card .op { width: 52px; height: 52px; border-radius: 12px; display: grid; place-items: center; font-weight: 800; color: #fff; flex: none; font-size: .8rem; }
.don-card .num { font-size: 1.35rem; font-weight: 700; font-variant-numeric: tabular-nums; }

/* Commentaires */
.comment { display: flex; gap: .8rem; padding: 1rem 0; border-bottom: 1px solid var(--line); }
.comment .name { font-weight: 700; }
.comment .date { color: var(--muted); font-size: .85rem; }

/* Pied de page */
.site-footer { background: var(--violet-900); color: #C9BFE3; padding: 4rem 0 0; font-size: .97rem; }
.site-footer h2, .site-footer h3 { color: #fff; }
.site-footer h3 { font-family: var(--font-body); font-size: 1rem; font-weight: 700; margin-bottom: 1rem; }
.site-footer a { color: #EDE8F8; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: .45rem; }
.footer-map { border-radius: 10px; overflow: hidden; border: 1px solid rgba(255,255,255,.15); }
.footer-map iframe { width: 100%; height: 220px; border: 0; display: block; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); margin-top: 3rem; padding: 1.2rem 0; font-size: .87rem; color: #A99BD3; }
.social a { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: rgba(255,255,255,.08); margin-right: .4rem; font-size: 1.1rem; }
.social a:hover { background: var(--gold); color: var(--violet-900); text-decoration: none; }

/* Formulaires publics */
.form-panel { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 2rem; }
.auth-wrap { max-width: 460px; margin: 3.5rem auto; }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.alert { border-radius: 8px; }

/* Utilitaires */
.empty { text-align: center; padding: 3rem 1rem; color: var(--muted); }
.empty i { font-size: 2.4rem; display: block; margin-bottom: .6rem; color: #B8ADD6; }
.object-cover { object-fit: cover; }
.pagination { --bs-pagination-active-bg: var(--violet); --bs-pagination-active-border-color: var(--violet); --bs-pagination-color: var(--violet); }
.whatsapp-float { position: fixed; right: 18px; bottom: 18px; width: 54px; height: 54px; border-radius: 50%; background: #25D366; color: #fff; display: grid; place-items: center; font-size: 1.6rem; box-shadow: 0 8px 20px rgba(0,0,0,.2); z-index: 1040; }
.whatsapp-float:hover { color: #fff; background: #1EBE5A; }

@media print {
  .site-header, .topbar, .site-footer, .live-ribbon, .whatsapp-float, .no-print { display: none !important; }
}
.stage-side a.btn-light { color: var(--violet-900); }
.stage-side a.btn-light:hover { color: var(--violet); }
.site-header .nav-link, .btn-direct { white-space: nowrap; }
@media (min-width: 992px) and (max-width: 1399.98px) {
  .site-header .nav-link { padding: .5rem .55rem !important; font-size: .97rem; }
  .brand-sub { display: none; }
}

/* ---------- Application installable ---------- */
.install-banner { position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 1060; display: flex; align-items: center; gap: .8rem;
  background: var(--violet-900); color: #fff; border-radius: 14px; padding: .8rem 1rem; box-shadow: 0 16px 40px rgba(10,0,40,.4); }
.install-banner[hidden] { display: none; }
.install-banner img { border-radius: 50%; flex: none; }
.install-banner .small { color: #CFC6E6; line-height: 1.35; }
@media (min-width: 576px) { .install-banner { left: auto; max-width: 440px; } }
.ios-steps { padding-left: 1.2rem; }
.ios-steps li { margin-bottom: .6rem; }
.ios-steps .bi { color: #0A84FF; font-size: 1.15rem; }
[data-install-item][hidden] { display: none !important; }
/* En mode application : pas de bouton WhatsApp sous le bandeau, marges pour l'encoche */
.is-app body { padding-top: env(safe-area-inset-top); }
.is-app .whatsapp-float { bottom: calc(18px + env(safe-area-inset-bottom)); }

/* =====================================================================
   v3 — Bandeau urgent, thème de l'année, pasteur, hommages, réactions
   ===================================================================== */
/* Bandeau des annonces urgentes (entre le menu et les affiches) */
.flash-band { display: flex; align-items: stretch; background: #fff; border-bottom: 1px solid var(--line); overflow: hidden; font-size: .97rem; }
.flash-label { background: var(--live); color: #fff; font-weight: 800; letter-spacing: .04em; padding: .55rem 1rem; display: flex; align-items: center; flex: none; position: relative; z-index: 1; }
.flash-label::after { content: ""; position: absolute; right: -12px; top: 0; bottom: 0; width: 12px; background: linear-gradient(90deg, var(--live), transparent); }
.flash-track { overflow: hidden; flex: 1; display: flex; align-items: center; }
.flash-items { display: inline-flex; white-space: nowrap; animation: flash-scroll var(--dur, 30s) linear infinite; padding-left: 1.5rem; }
.flash-band:hover .flash-items, .flash-band:focus-within .flash-items { animation-play-state: paused; }
.flash-item { padding-right: 3.5rem; color: var(--ink); }
.flash-item strong { color: var(--live); }
.flash-item::before { content: "●"; color: var(--gold); margin-right: .7rem; font-size: .7em; vertical-align: middle; }
@keyframes flash-scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .flash-items { animation: none; white-space: normal; } }

/* Thème de l'année, mis en évidence */
.theme-card { position: relative; margin: 1.4rem 0 1.6rem; padding: 1.15rem 1.3rem 1.2rem; border-radius: 14px;
  background: linear-gradient(135deg, rgba(226,162,59,.22), rgba(226,162,59,.06)); border: 1px solid rgba(226,162,59,.55); box-shadow: 0 10px 30px rgba(10,0,40,.25); }
.theme-kicker { display: inline-block; background: var(--gold); color: var(--violet-900); font-weight: 800; font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; padding: .2rem .65rem; border-radius: 999px; margin-bottom: .55rem; }
.theme-title { font-family: var(--font-display); font-weight: 700; font-size: clamp(2rem, 4vw, 3rem); line-height: 1.02; color: #FFE3A8; text-shadow: 0 2px 12px rgba(0,0,0,.25); }
.theme-verse { margin-top: .6rem; font-family: var(--font-display); font-style: italic; font-size: 1.12rem; line-height: 1.35; color: #E9E1FA; }
.theme-verse cite { font-style: normal; font-family: var(--font-body); font-weight: 700; font-size: .85rem; color: var(--gold); white-space: nowrap; }
.topbar-theme { color: #FFE3A8; }
.topbar-theme strong { color: #fff; }

/* Bienvenue + mot du pasteur sur la même ligne */
.welcome-card { padding: .5rem 0; }
.pastor-card { display: flex; gap: 1.4rem; background: var(--violet-50); border: 1px solid var(--line); border-radius: 16px; padding: 1.5rem; align-items: flex-start; }
.pastor-photo { width: 150px; height: 190px; object-fit: cover; border-radius: 12px; flex: none; box-shadow: 0 10px 24px rgba(22,3,64,.18); }
.pastor-kicker { font-size: .8rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--gold-700); margin-bottom: .4rem; }
.pastor-quote { font-family: var(--font-display); font-size: 1.22rem; line-height: 1.4; color: var(--ink); }
.pastor-quote p { margin-bottom: .6rem; }
@media (max-width: 575.98px) { .pastor-card { flex-direction: column; } .pastor-photo { width: 100%; height: 260px; } }

/* Zones à défilement (annonces, programme) */
.scroll-box { max-height: 360px; overflow-y: auto; padding-right: .5rem; scrollbar-width: thin; scrollbar-color: var(--violet) var(--violet-100);
  -webkit-mask-image: linear-gradient(to bottom, #000 88%, transparent); mask-image: linear-gradient(to bottom, #000 88%, transparent); padding-bottom: 1.5rem; }
.scroll-box::-webkit-scrollbar { width: 8px; }
.scroll-box::-webkit-scrollbar-track { background: var(--violet-100); border-radius: 8px; }
.scroll-box::-webkit-scrollbar-thumb { background: var(--violet); border-radius: 8px; }
.scroll-box:focus-visible { outline: 2px solid var(--gold); outline-offset: 4px; }
.annonces-box { max-height: 300px; }
.annonce-urgente { border-left-color: var(--live); }

/* Hommage */
.hommage-band { background: radial-gradient(circle at 15% 50%, #3b1590, var(--violet-900) 60%); color: #fff; padding: 4rem 0; }
.hommage-band h2 { color: #fff; font-size: clamp(2rem, 4vw, 2.8rem); }
.hommage-photo { width: 220px; height: 220px; border-radius: 50%; object-fit: cover; border: 5px solid var(--gold); box-shadow: 0 0 0 10px rgba(226,162,59,.15); }
.hommage-kicker { color: var(--gold); font-weight: 800; letter-spacing: .08em; text-transform: uppercase; font-size: .85rem; margin-bottom: .4rem; }
.hommage-dates { color: #CFC6E6; font-weight: 600; }
.hommage-band .lead-serif { color: #EDE8F8; max-width: 60ch; }

/* Cartes biographie et pasteurs */
.bio-card, .pasteur-card { text-align: center; }
.bio-photo { display: block; aspect-ratio: 4 / 5; border-radius: 12px; overflow: hidden; background: var(--violet-100); margin-bottom: .7rem; }
.bio-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.bio-photo:hover img { transform: scale(1.03); }
.bio-card h3 { font-size: 1.3rem; margin-bottom: .1rem; }
.bio-card h3 a { color: var(--violet-900); text-decoration: none; }
.bio-titre, .pasteur-card .depuis { color: var(--gold-700); font-weight: 700; font-size: .9rem; }
.bio-portrait { aspect-ratio: 4 / 5; object-fit: cover; }
.biblio { padding-left: 1.2rem; } .biblio li { margin-bottom: .35rem; }
.pasteur-card { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 1.3rem 1rem; height: 100%; }
.pasteur-card img, .pasteur-card .avatar { width: 120px; height: 120px; border-radius: 50%; object-fit: cover; display: block; margin: 0 auto .8rem; font-size: 2rem; border: 3px solid var(--violet-100); }
.pasteur-card h3 { font-size: 1.3rem; margin-bottom: .2rem; }
.pasteur-card .eglise { font-weight: 700; text-decoration: none; display: block; }
.pasteur-card-row { display: flex; gap: 1rem; align-items: center; text-align: left; }
.pasteur-card-row img, .pasteur-card-row .avatar { width: 92px; height: 92px; margin: 0; flex: none; }
.principal-card { display: flex; gap: 1.5rem; align-items: center; background: var(--violet-50); border: 1px solid var(--line); border-radius: 16px; padding: 1.4rem; }
.principal-card img { width: 140px; height: 170px; object-fit: cover; border-radius: 12px; flex: none; }
@media (max-width: 575.98px) { .principal-card { flex-direction: column; text-align: center; } }

/* Galerie et page photo */
.gallery a { position: relative; }
.gallery-meta { position: absolute; left: 0; right: 0; bottom: 0; display: flex; gap: .8rem; padding: .5rem .6rem; color: #fff; font-size: .85rem; font-weight: 700;
  background: linear-gradient(transparent, rgba(0,0,0,.6)); opacity: 0; transition: opacity .2s; }
.gallery a:hover .gallery-meta, .gallery a:focus .gallery-meta { opacity: 1; }
@media (hover: none) { .gallery-meta { opacity: 1; } }
.photo-stage { background: #0e0626; padding: 1.2rem 0 1.6rem; }
.photo-full { display: block; max-width: 100%; max-height: 78vh; margin: 0 auto; border-radius: 6px; }

/* « J'aime » */
.btn-like { display: inline-flex; align-items: center; gap: .35rem; border: 1px solid var(--line); background: #fff; color: var(--ink); border-radius: 999px; padding: .35rem .9rem; font-weight: 700; font-size: .95rem; cursor: pointer; transition: all .15s; }
.btn-like:hover { border-color: #e7a1aa; color: var(--live); }
.btn-like.is-liked { color: var(--live); border-color: #f2c4ca; background: #fff5f6; }
.btn-like.pop i { animation: like-pop .4s ease; }
@keyframes like-pop { 50% { transform: scale(1.45); } }
.btn-like-sm { border: 0; background: none; padding: 0; font-size: .85rem; }
.btn-like-sm .lbl { display: none; }

/* Commentaires */
.comment-form { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 1rem; }
.comment-form.is-reply { margin: .6rem 0 .2rem; background: var(--violet-50); }
.reply-to { font-size: .9rem; margin-bottom: .5rem; color: var(--violet); }
.comment { display: flex; gap: .7rem; padding: .6rem 0; border: 0; }
.comment-reply { padding: .5rem 0 0; }
.comment-bubble { background: var(--violet-50); border-radius: 14px; padding: .55rem .9rem; display: inline-block; max-width: 100%; }
.comment-bubble .name { font-weight: 700; }
.comment-text { overflow-wrap: anywhere; }
.badge-role { font-size: .7rem; font-weight: 800; color: var(--gold-700); margin-left: .35rem; }
.comment-actions { display: flex; flex-wrap: wrap; gap: .9rem; align-items: center; font-size: .82rem; padding: .25rem .6rem; color: var(--muted); }
.btn-link-sm { border: 0; background: none; padding: 0; font-weight: 700; color: var(--muted); font-size: .82rem; cursor: pointer; }
.btn-link-sm:hover { color: var(--violet); text-decoration: underline; }
.emoji-panel { width: 248px; }
.emoji-panel .emoji { border: 0; background: none; font-size: 1.35rem; width: 38px; height: 38px; border-radius: 8px; cursor: pointer; }
.emoji-panel .emoji:hover { background: var(--violet-50); }
.min-w-0 { min-width: 0; }

/* Bandeau d'installation */
.install-banner { padding: .5rem .6rem .5rem .5rem; }
.install-cta { display: flex; align-items: center; gap: .8rem; flex: 1; border: 0; background: none; color: #fff; padding: .2rem; font-size: .97rem; line-height: 1.3; cursor: pointer; text-align: left; }
.install-cta strong { color: var(--gold); }
.install-arrow { font-size: 1.9rem; color: var(--gold); flex: none; animation: nudge 1.4s ease-in-out infinite; }
@keyframes nudge { 50% { transform: translateX(5px); } }
@media (prefers-reduced-motion: reduce) { .install-arrow { animation: none; } }

.topbar a, .topbar span { white-space: nowrap; }
.topbar .d-flex.gap-4 { gap: 1.2rem !important; }
.pw-wrap { position: relative; }
.pw-wrap input { padding-right: 2.8rem; }
.pw-eye { position: absolute; right: .35rem; top: 50%; transform: translateY(-50%); border: 0; background: none; color: var(--muted); width: 2.2rem; height: 2.2rem; border-radius: 6px; font-size: 1.1rem; }
.pw-eye:hover, .pw-eye:focus-visible { color: var(--violet); background: var(--violet-50); }
.email-fixed .input-group-text { background: var(--violet-50); color: var(--violet); }
.offline-bar { position: sticky; top: 0; z-index: 1080; background: #3b3b4a; color: #fff; font-size: .92rem; padding: .5rem 1rem; text-align: center; }
.offline-toast { position: fixed; left: 50%; bottom: 84px; transform: translateX(-50%); z-index: 1090; background: var(--violet-900); color: #fff; padding: .7rem 1.1rem; border-radius: 10px; box-shadow: 0 10px 30px rgba(0,0,0,.25); max-width: min(92vw, 520px); font-size: .95rem; }

/* =====================================================================
   Pages « Histoire » (style encyclopédie)
   ===================================================================== */
.wiki-head { background: var(--violet-50); border-bottom: 1px solid var(--line); padding: 2rem 0 1.4rem; }
.wiki-head h1 { font-size: clamp(2rem, 4vw, 2.8rem); }
.wiki-body { font-size: 1.04rem; }
.wiki-content::after { content: ""; display: block; clear: both; }
.wiki-h { font-family: var(--font-display); border-bottom: 1px solid var(--line); padding-bottom: .25rem; margin: 2rem 0 .8rem; clear: both; }
h3.wiki-h { font-size: 1.45rem; border-bottom: 0; }
.wiki-banner { width: 100%; max-height: 380px; object-fit: cover; border-radius: 10px; margin-bottom: 1.2rem; }
.wiki-toc { display: inline-block; background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: .8rem 1.2rem; margin: .5rem 0 1rem; min-width: 260px; }
.wiki-toc ol { margin: 0; padding-left: 1.2rem; }
.wiki-toc .lvl-3 { margin-left: 1rem; list-style: circle; }
.wiki-toc .lvl-4 { margin-left: 2rem; list-style: square; }
.wiki-fig { margin: .3rem 0 1rem; max-width: 300px; background: var(--violet-50); border: 1px solid var(--line); border-radius: 8px; padding: .4rem; }
.wiki-fig img { width: 100%; border-radius: 5px; display: block; }
.wiki-fig figcaption { font-size: .85rem; color: var(--muted); padding: .35rem .2rem 0; }
.wiki-droite { float: right; margin-left: 1.2rem; }
.wiki-gauche { float: left; margin-right: 1.2rem; }
.wiki-centre { margin-left: auto; margin-right: auto; max-width: 520px; }
@media (max-width: 575.98px) { .wiki-fig { float: none; max-width: 100%; margin: .5rem 0 1rem; } }
.wiki-link { text-decoration: none; border-bottom: 1px dotted var(--violet); }
.wiki-new { color: #C62828; border-bottom-color: #C62828; }
.wiki-ext::after { content: "\F1C5"; font-family: "bootstrap-icons"; font-size: .7em; margin-left: .2em; vertical-align: super; }
.wiki-ref a { text-decoration: none; font-size: .8em; }
.wiki-refs { font-size: .92rem; color: #4A4260; }
.wiki-refs a[aria-label] { text-decoration: none; }
.wiki-quote { border-left: 4px solid var(--gold); background: #FBF8EF; padding: .8rem 1rem; font-family: var(--font-display); font-size: 1.2rem; font-style: italic; margin: 1rem 0; }
.wiki-missing { color: #C62828; font-size: .85rem; }
.wiki-side { position: sticky; top: 90px; background: var(--violet-50); border: 1px solid var(--line); border-radius: 10px; padding: 1rem; }
.wiki-body code { color: var(--violet); background: var(--violet-50); padding: 0 .3rem; border-radius: 4px; font-size: .9em; }
