/* ==========================================================================
   Sœurs Missionnaires Maristes au Rwanda — Modern Marian design system
   Author: Jean René MUNYESHYAKA
   ========================================================================== */

/* ---------- Design tokens ---------- */
:root {
  --blue-950: #0d1b3f;
  --blue-900: #14264f;
  --blue-800: #1e3a8a;
  --blue-700: #2b4aa8;
  --blue-600: #3f63c4;
  --blue-100: #e8edfb;
  --blue-50:  #f4f6fd;

  --gold:     #c9a44c;
  --gold-soft:#e7d3a2;
  --gold-deep:#a8852f;

  --ink:      #26314d;
  --muted:    #5f6b85;
  --line:     #e5e8f1;

  --white:    #ffffff;
  --bg-soft:  #f5f6fb;

  --serif: "Playfair Display", Georgia, "Times New Roman", serif;
  --sans:  "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;

  --radius: 18px;
  --radius-sm: 10px;
  --shadow-sm: 0 6px 18px rgba(21, 41, 92, .08);
  --shadow-md: 0 16px 40px rgba(21, 41, 92, .14);
  --shadow-lg: 0 24px 60px rgba(21, 41, 92, .22);

  --header-h: 84px;
  --grad-blue: linear-gradient(135deg, var(--blue-900) 0%, var(--blue-700) 100%);
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--white);
  line-height: 1.7;
  font-size: 16.5px;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: var(--blue-700); text-decoration: none; }
a:hover { text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
p { margin: 0 0 1rem; }
h1, h2, h3, h4 { font-family: var(--serif); color: var(--blue-900); margin: 0 0 .6rem; line-height: 1.18; }

:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; border-radius: 4px; }

.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 200;
  background: var(--blue-800); color: #fff; padding: 10px 16px; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

.container { width: min(1160px, 92%); margin-inline: auto; }

section { scroll-margin-top: calc(var(--header-h) + 12px); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .55rem;
  padding: .8rem 1.7rem; border-radius: 999px;
  font-family: var(--sans); font-weight: 600; font-size: .98rem;
  border: 2px solid transparent; cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease, color .2s ease, border-color .2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-gold {
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-deep) 100%);
  color: #fff; box-shadow: 0 10px 24px rgba(169, 133, 47, .35);
}
.btn-gold:hover { box-shadow: 0 14px 30px rgba(169, 133, 47, .45); }
.btn-light {
  background: #fff; color: var(--blue-800);
  border-color: #fff; box-shadow: var(--shadow-sm);
}
.btn-outline-white {
  background: transparent; color: #fff; border-color: rgba(255, 255, 255, .65);
}
.btn-outline-white:hover { background: rgba(255, 255, 255, .12); border-color: #fff; }
.btn-blue { background: var(--grad-blue); color: #fff; box-shadow: 0 10px 24px rgba(30, 58, 138, .3); }

/* ==========================================================================
   Header / Navigation
   ========================================================================== */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 90;
  padding: 16px 0;
  transition: background .35s ease, box-shadow .35s ease, padding .35s ease;
  background: linear-gradient(to bottom, rgba(10, 20, 48, .55), rgba(10, 20, 48, 0));
  color: #fff;
}
/* Header gets its own wider measure so the full menu fits on one line */
.site-header .container { width: min(1360px, 96%); }
.site-header.scrolled {
  padding: 8px 0;
  background: rgba(255, 255, 255, .92);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  box-shadow: 0 8px 30px rgba(13, 27, 63, .12);
  color: var(--blue-900);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; }

.brand { display: flex; align-items: center; gap: .8rem; color: inherit; }
.brand img {
  width: 52px; height: 52px; object-fit: cover; border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, .9);
  box-shadow: 0 4px 12px rgba(0, 0, 0, .25);
  background: #fff; padding: 2px;
}
.scrolled .brand img { border-color: #fff; }
.brand-text { line-height: 1.15; }
.brand-text strong {
  display: block; font-family: var(--serif); font-weight: 700;
  font-size: 1.05rem; letter-spacing: .2px; color: inherit;
}
.brand-text small { font-size: .72rem; letter-spacing: 2.5px; text-transform: uppercase; color: var(--gold-soft); }
.scrolled .brand-text small { color: var(--gold-deep); }

.nav-list { display: flex; align-items: center; gap: .25rem; flex-wrap: nowrap; }
.nav-list li { flex: 0 0 auto; }
.nav-list a {
  display: block; padding: .5rem .7rem; border-radius: 999px;
  color: inherit; font-weight: 500; font-size: .93rem; opacity: .92;
  white-space: nowrap;
  position: relative; transition: color .2s ease, background .2s ease, opacity .2s ease;
}
.nav-list a:hover { opacity: 1; color: #fff; }
.scrolled .nav-list a:hover { color: var(--blue-700); }
.nav-list a.active { opacity: 1; color: #fff; }
.scrolled .nav-list a.active { color: var(--blue-800); }
.nav-list a.active::after {
  content: ""; position: absolute; left: 50%; bottom: .1rem; transform: translateX(-50%);
  width: 18px; height: 2px; border-radius: 2px; background: var(--gold);
}
.nav-list a.nav-cta {
  background: linear-gradient(135deg, var(--gold), var(--gold-deep));
  color: #fff; box-shadow: 0 6px 16px rgba(169, 133, 47, .4);
}
.nav-list a.nav-cta::after { display: none; }

/* Hamburger */
.nav-toggle {
  display: none; background: none; border: 0; cursor: pointer;
  width: 44px; height: 44px; padding: 10px; z-index: 100;
}
.nav-toggle span {
  display: block; width: 24px; height: 2.4px; border-radius: 3px;
  background: #fff; margin: 5px auto; transition: transform .3s ease, opacity .3s ease, background .3s ease;
}
.scrolled .nav-toggle span, body.nav-open .nav-toggle span { background: var(--blue-800); }
body.nav-open .nav-toggle span:nth-child(1) { transform: translateY(7.4px) rotate(45deg); }
body.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
body.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7.4px) rotate(-45deg); }

/* Mobile drawer */
.nav-backdrop {
  position: fixed; inset: 0; z-index: 80;
  background: rgba(13, 27, 63, .5);
  opacity: 0; visibility: hidden; transition: opacity .3s ease;
}
body.nav-open .nav-backdrop { opacity: 1; visibility: visible; }

@media (max-width: 1240px) {
  .nav-toggle { display: block; }
  .nav-list {
    position: fixed; top: 0; right: 0; z-index: 95;
    height: 100dvh; width: min(340px, 86vw);
    flex-direction: column; align-items: flex-start; justify-content: center; gap: .4rem;
    padding: 80px 34px 40px;
    background: linear-gradient(160deg, var(--blue-900), var(--blue-800));
    box-shadow: var(--shadow-lg);
    transform: translateX(105%); transition: transform .38s cubic-bezier(.22, .8, .24, 1);
  }
  body.nav-open .nav-list { transform: translateX(0); }
  .nav-list a { color: #fff !important; font-size: 1.5rem; font-family: var(--serif); font-weight: 600; padding: .55rem .4rem; }
  .nav-list a.active::after { left: .5rem; transform: none; width: 30px; }
  .nav-list a.nav-cta { font-family: var(--sans); font-size: 1rem; align-self: flex-start; margin-top: .8rem; }
}

/* ==========================================================================
   Hero (home) — crossfading slideshow
   ========================================================================== */
.hero {
  position: relative; min-height: 92vh; min-height: 92svh;
  display: flex; align-items: center; overflow: hidden;
  background: var(--blue-950);
}
.hero-slides { position: absolute; inset: 0; }
.hero-slide {
  position: absolute; inset: 0; background-size: cover; background-position: center;
  opacity: 0; transform: scale(1.05);
  transition: opacity 1.2s ease, transform 7s ease;
  will-change: opacity, transform;
}
.hero-slide.is-active { opacity: 1; transform: scale(1); }
.hero-scrim {
  position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(13, 27, 63, .86) 0%, rgba(20, 38, 79, .68) 45%, rgba(20, 38, 79, .25) 100%);
}
.hero-content {
  position: relative; z-index: 3; width: min(1160px, 92%); margin-inline: auto;
  padding: calc(var(--header-h) + 30px) 0 96px; color: #fff;
}
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: .7rem;
  color: var(--gold-soft); letter-spacing: 3px; text-transform: uppercase;
  font-size: .8rem; font-weight: 600; margin-bottom: 1.1rem;
}
.hero-eyebrow::before { content: ""; width: 40px; height: 1.5px; background: var(--gold); }
.hero-content h1 {
  color: #fff; font-size: clamp(2.5rem, 5.4vw, 4.3rem);
  max-width: 15ch; text-shadow: 0 4px 30px rgba(0, 0, 0, .3);
}
.hero-content h1 .accent { color: var(--gold-soft); font-style: italic; }
.hero-lead {
  margin: 1.2rem 0 2rem; max-width: 54ch; font-size: 1.14rem;
  color: rgba(255, 255, 255, .92);
}
.hero-ctas { display: flex; flex-wrap: wrap; gap: .8rem; }

.hero-arrows button, .hero-nav button {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 6;
  width: 46px; height: 46px; border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, .55); background: rgba(255, 255, 255, .12);
  color: #fff; cursor: pointer; display: grid; place-items: center;
  -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
  transition: background .2s ease, border-color .2s ease;
}
.hero-arrows button:hover { background: rgba(255, 255, 255, .25); border-color: #fff; }
.hero-arrows .prev { left: 1.2rem; }
.hero-arrows .next { right: 1.2rem; }

.hero-dots {
  position: absolute; left: 50%; bottom: 30px; transform: translateX(-50%);
  z-index: 6; display: flex; gap: .55rem;
}
.hero-dots button {
  width: 26px; height: 6px; border-radius: 6px; border: 0; cursor: pointer;
  background: rgba(255, 255, 255, .35); transition: background .25s ease, width .25s ease;
}
.hero-dots button.is-active { background: var(--gold); width: 42px; }

@media (max-width: 768px) {
  .hero { min-height: 78vh; min-height: 78svh; }
  .hero-arrows button { display: none; }
}

/* ==========================================================================
   Inner page hero (title band)
   ========================================================================== */
.page-hero {
  position: relative; padding: calc(var(--header-h) + 70px) 0 70px;
  background: var(--grad-blue); color: #fff; overflow: hidden;
}
.page-hero::before {
  content: ""; position: absolute; right: -120px; top: -160px; width: 420px; height: 420px;
  border-radius: 50%; background: radial-gradient(circle, rgba(201, 164, 76, .28), transparent 70%);
}
.page-hero::after {
  content: ""; position: absolute; left: -80px; bottom: -200px; width: 380px; height: 380px;
  border-radius: 50%; background: radial-gradient(circle, rgba(255, 255, 255, .12), transparent 70%);
}
.page-hero .container { position: relative; z-index: 2; }
.page-hero .eyebrow { color: var(--gold-soft); margin-bottom: .7rem; }
.page-hero h1 { color: #fff; font-size: clamp(2.1rem, 4.5vw, 3.4rem); }
.page-hero .lead { color: rgba(255, 255, 255, .9); max-width: 60ch; font-size: 1.08rem; margin: 0; }

/* ==========================================================================
   Sections & shared blocks
   ========================================================================== */
.section { padding: 92px 0; }
.section.soft { background: var(--bg-soft); }
.section.blue { background: var(--grad-blue); color: #fff; }

.section-head { text-align: center; max-width: 720px; margin: 0 auto 56px; }
.eyebrow {
  display: inline-block; color: var(--gold-deep);
  text-transform: uppercase; letter-spacing: 3px; font-size: .8rem; font-weight: 700;
}
.section-head h2 { font-size: clamp(1.9rem, 3.6vw, 2.7rem); margin: .4rem 0 .8rem; }
.section-head p { color: var(--muted); margin: 0; }
.section.blue .section-head h2 { color: #fff; }
.section.blue .section-head p { color: rgba(255, 255, 255, .85); }
.section.blue .eyebrow { color: var(--gold-soft); }

/* Split (image + text) */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.split .media { position: relative; }
.split .media img {
  width: 100%; border-radius: var(--radius); box-shadow: var(--shadow-lg);
  aspect-ratio: 4 / 3.4; object-fit: cover;
}
.split .media::after {
  content: ""; position: absolute; inset: 22px -22px -22px 22px;
  border: 2px solid var(--gold); border-radius: var(--radius); z-index: -1;
}
.split .body .eyebrow { margin-bottom: .5rem; }
.split .body h2 { font-size: clamp(1.9rem, 3.4vw, 2.6rem); }
.check-list li { display: flex; gap: .8rem; padding: .55rem 0; align-items: flex-start; }
.check-list i {
  color: var(--gold-deep); background: var(--blue-100);
  width: 30px; height: 30px; min-width: 30px; border-radius: 50%;
  display: grid; place-items: center; font-size: .85rem; margin-top: 3px;
}
.check-list b { color: var(--blue-900); }

/* Feature / charism cards */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 34px 28px; box-shadow: var(--shadow-sm);
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
  position: relative; overflow: hidden;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: transparent; }
.card::before {
  content: ""; position: absolute; left: 0; top: 0; right: 0; height: 4px;
  background: linear-gradient(90deg, var(--blue-700), var(--gold)); transform: scaleX(0);
  transform-origin: left; transition: transform .35s ease;
}
.card:hover::before { transform: scaleX(1); }
.card .icon {
  width: 64px; height: 64px; border-radius: 18px; display: grid; place-items: center;
  background: var(--blue-100); color: var(--blue-700); font-size: 1.6rem; margin-bottom: 1.2rem;
  transition: background .3s ease, color .3s ease;
}
.card:hover .icon { background: var(--grad-blue); color: #fff; }
.card h3 { font-size: 1.35rem; }
.card p { color: var(--muted); margin: 0; }
.card.blue-card { background: var(--grad-blue); border: 0; color: #fff; box-shadow: var(--shadow-lg); }
.card.blue-card h3 { color: #fff; }
.card.blue-card p { color: rgba(255, 255, 255, .88); }
.card.blue-card .icon { background: rgba(255, 255, 255, .14); color: #fff; }

/* Rich prose for article pages */
.prose { max-width: 860px; margin-inline: auto; }
.prose article {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-sm); padding: clamp(1.6rem, 4vw, 3.2rem);
  margin-bottom: 30px;
}
.prose article h2 { font-size: 1.7rem; }
.prose article p { color: var(--ink); }
.prose .lead-block {
  background: var(--blue-50); border-left: 4px solid var(--gold);
  border-radius: var(--radius-sm); padding: 1.1rem 1.4rem; font-style: italic;
}
.drop-list li {
  position: relative; padding: .55rem 0 .55rem 2rem; color: var(--ink);
}
.drop-list li::before {
  content: "✦"; position: absolute; left: 0; top: .5rem; color: var(--gold-deep);
}

/* Prayer / video band */
.prayer { background: linear-gradient(135deg, var(--blue-950), var(--blue-800)); position: relative; overflow: hidden; }
.prayer::before {
  content: ""; position: absolute; inset: 0; opacity: .5;
  background: radial-gradient(circle at 20% 20%, rgba(201, 164, 76, .2), transparent 45%),
              radial-gradient(circle at 85% 80%, rgba(255, 255, 255, .12), transparent 40%);
}
.prayer .container { position: relative; z-index: 2; display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; }
.prayer h2 { color: #fff; }
.prayer p { color: rgba(255, 255, 255, .9); }
.prayer .media {
  border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-lg);
  border: 3px solid rgba(255, 255, 255, .25);
}
.prayer video { width: 100%; display: block; background: #000; }

/* CTA band */
.cta-band {
  background: var(--grad-blue); color: #fff; padding: 64px 0; text-align: center;
}
.cta-band h2 { color: #fff; font-size: clamp(1.8rem, 3.4vw, 2.6rem); }
.cta-band p { color: rgba(255, 255, 255, .9); max-width: 52ch; margin: 0 auto 1.8rem; }

/* ==========================================================================
   Contact
   ========================================================================== */
.contact-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 34px; align-items: start; }
.info-card {
  background: var(--grad-blue); color: #fff; border-radius: var(--radius);
  padding: 34px 30px; box-shadow: var(--shadow-lg);
}
.info-card h3 { color: #fff; font-size: 1.5rem; }
.info-card > p { color: rgba(255, 255, 255, .88); }
.info-item { display: flex; gap: 1rem; align-items: flex-start; margin-top: 1.3rem; }
.info-item .ic {
  width: 44px; height: 44px; min-width: 44px; border-radius: 12px;
  display: grid; place-items: center; background: rgba(255, 255, 255, .14); color: var(--gold-soft);
  font-size: 1.05rem;
}
.info-item h4 { margin: 0 0 .1rem; color: var(--gold-soft); font-family: var(--sans); font-size: .82rem; letter-spacing: 1px; text-transform: uppercase; }
.info-item p, .info-item a { color: #fff; margin: 0; }
.info-item a:hover { text-decoration: underline; }

.form-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 34px 30px; box-shadow: var(--shadow-md);
}
.form-card h3 { font-size: 1.5rem; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: flex; flex-direction: column; margin-bottom: 18px; }
.form-grid .field { margin-bottom: 0; }
.field.full { grid-column: 1 / -1; }
.field label { font-weight: 600; font-size: .92rem; margin-bottom: 6px; color: var(--blue-900); }
.field input, .field textarea, .field select {
  border: 1.5px solid var(--line); border-radius: var(--radius-sm);
  padding: .8rem 1rem; font-family: inherit; font-size: 1rem; color: var(--ink);
  background: var(--bg-soft); transition: border-color .2s ease, background .2s ease, box-shadow .2s ease;
}
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none; border-color: var(--blue-600); background: #fff;
  box-shadow: 0 0 0 4px rgba(63, 99, 196, .14);
}
.form-note { font-size: .85rem; color: var(--muted); margin: 6px 0 0; }

/* ==========================================================================
   Gallery
   ========================================================================== */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.gallery figure { margin: 0; position: relative; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); cursor: pointer; }
.gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .6s ease; }
.gallery figure:hover img { transform: scale(1.07); }
.gallery figcaption {
  position: absolute; inset: auto 0 0 0; padding: 26px 16px 12px; color: #fff;
  font-size: .92rem; font-weight: 500;
  background: linear-gradient(to top, rgba(13, 27, 63, .85), transparent);
}
/* Lightbox */
.lightbox {
  position: fixed; inset: 0; z-index: 120; display: none;
  background: rgba(8, 16, 40, .92); place-items: center; padding: 24px;
}
.lightbox.open { display: grid; }
.lightbox img { max-width: min(1100px, 94vw); max-height: 82vh; border-radius: var(--radius-sm); box-shadow: var(--shadow-lg); }
.lightbox .cap { color: #fff; margin-top: 14px; font-family: var(--serif); font-size: 1.2rem; }
.lightbox .close {
  position: absolute; top: 20px; right: 26px; background: none; border: 2px solid #fff; color: #fff;
  width: 46px; height: 46px; border-radius: 50%; font-size: 1.3rem; cursor: pointer;
}
.lightbox .close:hover { background: #fff; color: var(--blue-900); }

@media (max-width: 900px) { .gallery { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .gallery { grid-template-columns: 1fr; } }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer { background: var(--blue-950); color: rgba(255, 255, 255, .85); }
.footer-grid {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.3fr; gap: 42px;
  padding: 70px 0 46px;
}
.footer-col h4 {
  color: #fff; font-size: 1.05rem; margin-bottom: 1.1rem; position: relative; padding-bottom: .5rem;
}
.footer-col h4::after { content: ""; position: absolute; left: 0; bottom: 0; width: 26px; height: 2px; background: var(--gold); }
.footer-brand img { width: 64px; height: 64px; border-radius: 50%; border: 2px solid var(--gold); object-fit: cover; background: #fff; padding: 2px; }
.footer-brand .f-name { font-family: var(--serif); font-size: 1.15rem; color: #fff; margin: 1rem 0 .4rem; }
.footer-links li { margin: .45rem 0; }
.footer-links a { color: rgba(255, 255, 255, .78); transition: color .2s ease, padding-left .2s ease; }
.footer-links a:hover { color: var(--gold-soft); padding-left: 4px; }
.footer-contact li { display: flex; gap: .7rem; align-items: flex-start; margin: .7rem 0; }
.footer-contact i { color: var(--gold-soft); margin-top: 5px; min-width: 16px; }
.footer-contact a { color: rgba(255, 255, 255, .85); }
.footer-contact a:hover { color: var(--gold-soft); }
.footer-social { display: flex; gap: .6rem; margin-top: 1.2rem; }
.footer-social a {
  width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(255, 255, 255, .1); color: #fff; transition: background .25s ease, transform .25s ease;
}
.footer-social a:hover { background: var(--gold-deep); transform: translateY(-3px); }

.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .12); padding: 20px 0; font-size: .9rem; }
.footer-bottom .container { display: flex; flex-wrap: wrap; gap: .4rem 2rem; justify-content: space-between; align-items: center; color: rgba(255, 255, 255, .6); }
.footer-bottom p { margin: 0; }

.weather-tag { display: inline-block; background: #fff; padding: 6px; border-radius: 10px; margin-top: .8rem; line-height: 0; }

/* ==========================================================================
   Scroll to top
   ========================================================================== */
.to-top {
  position: fixed; right: 22px; bottom: 22px; z-index: 70;
  width: 48px; height: 48px; border-radius: 50%; border: 0; cursor: pointer;
  background: var(--grad-blue); color: #fff; box-shadow: var(--shadow-md);
  display: grid; place-items: center; font-size: 1.1rem;
  opacity: 0; visibility: hidden; transform: translateY(14px);
  transition: opacity .3s ease, transform .3s ease, visibility .3s;
}
.to-top.show { opacity: 1; visibility: visible; transform: translateY(0); }
.to-top:hover { background: var(--blue-900); }

/* ==========================================================================
   Reveal-on-scroll
   ========================================================================== */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1024px) {
  .split, .prayer .container, .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 620px) {
  .cards { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 34px; }
  .form-grid { grid-template-columns: 1fr; }
  .split .media::after { display: none; }
}

/* ---------- Language switcher (FR / EN) ---------- */
.lang-item { margin-left: .35rem; }
.nav-list .lang-switch {
  display: inline-flex; align-items: center; gap: 2px;
  border: 1.6px solid currentColor; border-radius: 999px; padding: 2px;
  font-size: .78rem; line-height: 1; letter-spacing: .6px;
}
.nav-list .lang-switch a,
.nav-list .lang-switch .lang-cur {
  padding: .32rem .62rem; border-radius: 999px; font-weight: 700; text-transform: uppercase;
}
.nav-list .lang-switch a { color: inherit; opacity: .9; }
.nav-list .lang-switch a:hover { opacity: 1; color: var(--gold-soft); }
.scrolled .nav-list .lang-switch a:hover { color: var(--gold-deep); }
.nav-list .lang-switch .lang-cur { background: var(--gold); color: #fff; }
@media (max-width: 1240px) {
  .lang-item { margin-left: 0; }
  .nav-list .lang-switch { align-self: flex-start; margin-top: .6rem; }
  .nav-list .lang-switch a,
  .nav-list .lang-switch .lang-cur { font-size: .82rem; }
}
