/* =====================================================================
   CSMS — Thème futuriste (clair par défaut / sombre)
   Couleurs inspirées du logo : bleu royal, jaune, vert, rouge, orange
   ===================================================================== */
:root {
  --c-blue: #0B5FE3;
  --c-blue-2: #2F7BFF;
  --c-deep: #0A2E7A;
  --c-yellow: #FFC800;
  --c-green: #00C853;
  --c-red: #F2231D;
  --c-orange: #D9600B;
  --grad-main: linear-gradient(135deg, #0B5FE3 0%, #2F7BFF 50%, #00C2FF 100%);
  --grad-tri: linear-gradient(90deg, #FFC800, #00C853, #F2231D);
  --grad-warm: linear-gradient(135deg, #D9600B, #FFC800);

  --bg: #F4F7FD;
  --bg-2: #FFFFFF;
  --surface: rgba(255, 255, 255, .72);
  --surface-solid: #FFFFFF;
  --border: rgba(11, 95, 227, .12);
  --text: #0E1730;
  --muted: #5B6785;
  --shadow: 0 10px 40px rgba(10, 46, 122, .10);
  --shadow-lg: 0 30px 80px rgba(10, 46, 122, .18);
  --glow: 0 0 0 1px rgba(11, 95, 227, .08), 0 20px 50px rgba(11, 95, 227, .15);
  --radius: 22px;
  --font-head: 'Sora', 'Segoe UI', system-ui, sans-serif;
  --font-body: 'Inter', 'Segoe UI', system-ui, sans-serif;
  --bs-primary: #0B5FE3;
  --bs-primary-rgb: 11, 95, 227;
  --bs-link-color: #0B5FE3;
  --bs-link-color-rgb: 11, 95, 227;
}
[data-bs-theme="dark"] {
  --bg: #060A18;
  --bg-2: #0B1126;
  --surface: rgba(18, 27, 56, .62);
  --surface-solid: #0F1730;
  --border: rgba(120, 160, 255, .14);
  --text: #E8EEFF;
  --muted: #94A3C6;
  --shadow: 0 10px 40px rgba(0, 0, 0, .45);
  --shadow-lg: 0 30px 80px rgba(0, 0, 0, .6);
  --glow: 0 0 0 1px rgba(120, 160, 255, .12), 0 20px 60px rgba(11, 95, 227, .25);
  --bs-body-bg: #060A18;
  --bs-body-color: #E8EEFF;
  --bs-link-color: #6FA3FF;
  --bs-link-color-rgb: 111, 163, 255;
}

html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  transition: background .4s ease, color .4s ease;
}
h1, h2, h3, h4, h5, h6, .font-head { font-family: var(--font-head); letter-spacing: -.02em; }
a { text-decoration: none; }
img { max-width: 100%; }
::selection { background: var(--c-blue); color: #fff; }
.text-muted, .text-body-secondary { color: var(--muted) !important; }
.text-gradient { background: var(--grad-main); -webkit-background-clip: text; background-clip: text; color: transparent; }
.text-gradient-tri { background: linear-gradient(90deg, #FFC800, #00C853 45%, #F2231D); -webkit-background-clip: text; background-clip: text; color: transparent; }
.bg-surface { background: var(--surface-solid); }

/* ---------- Préchargeur ---------- */
#preloader { position: fixed; inset: 0; z-index: 9999; display: grid; place-items: center; background: var(--bg); transition: opacity .6s, visibility .6s; }
#preloader.hide { opacity: 0; visibility: hidden; }
#preloader .ring { width: 110px; height: 110px; border-radius: 50%; position: relative; display: grid; place-items: center; }
#preloader .ring::before { content: ""; position: absolute; inset: 0; border-radius: 50%; padding: 3px; background: conic-gradient(var(--c-yellow), var(--c-green), var(--c-red), var(--c-blue), var(--c-yellow));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; animation: spin 1.1s linear infinite; }
#preloader img { width: 70px; height: 70px; border-radius: 50%; object-fit: cover; animation: pulse 1.4s ease-in-out infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes pulse { 50% { transform: scale(.9); opacity: .8; } }

/* ---------- Barre de progression ---------- */
#scroll-progress { position: fixed; top: 0; left: 0; height: 3px; width: 0; z-index: 2000; background: var(--grad-tri); box-shadow: 0 0 12px rgba(255, 200, 0, .6); }

/* ---------- Barre supérieure ---------- */
.topbar { background: var(--c-deep); color: rgba(255, 255, 255, .8); font-size: .82rem; }
.topbar a { color: rgba(255, 255, 255, .85); }
.topbar a:hover { color: var(--c-yellow); }

/* ---------- Navigation ---------- */
.nav-glass { position: sticky; top: 0; z-index: 1030; transition: all .35s ease; padding: .7rem 0; }
.nav-glass.scrolled { background: var(--surface); backdrop-filter: saturate(180%) blur(18px); -webkit-backdrop-filter: saturate(180%) blur(18px); box-shadow: 0 6px 30px rgba(10, 46, 122, .08); border-bottom: 1px solid var(--border); padding: .4rem 0; }
.nav-glass:not(.scrolled) { background: color-mix(in srgb, var(--bg) 70%, transparent); backdrop-filter: blur(10px); }
.brand { display: flex; align-items: center; gap: .7rem; color: var(--text); }
.brand img { width: 46px; height: 46px; border-radius: 14px; object-fit: cover; box-shadow: var(--shadow); transition: transform .4s; }
.brand:hover img { transform: rotate(-6deg) scale(1.05); }
.brand .b-title { font-family: var(--font-head); font-weight: 800; font-size: 1.25rem; line-height: 1; background: var(--grad-main); -webkit-background-clip: text; background-clip: text; color: transparent; }
.brand .b-sub { font-size: .66rem; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; max-width: 210px; line-height: 1.2; }
.nav-glass .nav-link { color: var(--text); font-weight: 600; font-size: .92rem; padding: .55rem .85rem !important; border-radius: 12px; position: relative; transition: color .25s, background .25s; }
.nav-glass .nav-link:hover, .nav-glass .nav-link.active { color: var(--c-blue); background: rgba(11, 95, 227, .08); }
[data-bs-theme="dark"] .nav-glass .nav-link:hover, [data-bs-theme="dark"] .nav-glass .nav-link.active { color: #8DB6FF; background: rgba(111, 163, 255, .12); }
.nav-glass .dropdown-menu { border: 1px solid var(--border); border-radius: 18px; padding: .5rem; box-shadow: var(--shadow-lg); background: var(--surface-solid); min-width: 260px; animation: dropIn .25s ease; }
.nav-glass .dropdown-item { border-radius: 12px; padding: .6rem .8rem; font-weight: 500; color: var(--text); display: flex; gap: .6rem; align-items: center; }
.nav-glass .dropdown-item i { color: var(--c-blue); font-size: 1.1rem; }
.nav-glass .dropdown-item:hover { background: rgba(11, 95, 227, .08); color: var(--c-blue); }
@keyframes dropIn { from { opacity: 0; transform: translateY(8px); } }
@media (min-width: 1200px) { .nav-glass .dropdown:hover > .dropdown-menu { display: block; margin-top: 0; } }

.btn-icon { width: 42px; height: 42px; border-radius: 14px; display: inline-grid; place-items: center; border: 1px solid var(--border); background: var(--surface-solid); color: var(--text); transition: all .25s; }
.btn-icon:hover { color: var(--c-blue); transform: translateY(-2px); box-shadow: var(--glow); }
.theme-toggle .bi-sun-fill { display: none; }
[data-bs-theme="dark"] .theme-toggle .bi-sun-fill { display: inline; color: var(--c-yellow); }
[data-bs-theme="dark"] .theme-toggle .bi-moon-stars-fill { display: none; }

/* ---------- Boutons ---------- */
.btn { border-radius: 14px; font-weight: 600; padding: .65rem 1.25rem; transition: all .3s cubic-bezier(.2, .8, .2, 1); }
.btn-glow { color: #fff; background: var(--grad-main); border: 0; box-shadow: 0 10px 30px rgba(11, 95, 227, .35); position: relative; overflow: hidden; }
.btn-glow::after { content: ""; position: absolute; top: 0; left: -120%; width: 60%; height: 100%; background: linear-gradient(120deg, transparent, rgba(255, 255, 255, .45), transparent); transform: skewX(-20deg); transition: left .7s; }
.btn-glow:hover { color: #fff; transform: translateY(-3px); box-shadow: 0 16px 40px rgba(11, 95, 227, .45); }
.btn-glow:hover::after { left: 130%; }
.btn-warm { color: #fff; background: var(--grad-warm); border: 0; box-shadow: 0 10px 30px rgba(217, 96, 11, .3); }
.btn-warm:hover { color: #fff; transform: translateY(-3px); }
.btn-ghost { border: 1px solid var(--border); background: var(--surface); color: var(--text); backdrop-filter: blur(10px); }
.btn-ghost:hover { border-color: var(--c-blue); color: var(--c-blue); transform: translateY(-3px); }
.btn-outline-light-glass { color: #fff; border: 1px solid rgba(255, 255, 255, .35); background: rgba(255, 255, 255, .08); backdrop-filter: blur(8px); }
.btn-outline-light-glass:hover { background: #fff; color: var(--c-blue); }

/* ---------- HERO ---------- */
.hero { position: relative; min-height: calc(100vh - 70px); min-height: calc(100svh - 70px); display: flex; align-items: center; overflow: hidden; color: #fff; isolation: isolate;
  background: radial-gradient(1200px 600px at 10% 10%, #2F7BFF 0%, transparent 60%), radial-gradient(900px 600px at 90% 80%, #00C2FF55 0%, transparent 60%), linear-gradient(135deg, #0A2E7A 0%, #0B5FE3 55%, #0A2E7A 100%); }
.hero-bg-img { position: absolute; inset: 0; background-size: cover; background-position: center; opacity: .25; mix-blend-mode: luminosity; z-index: -2; transform: scale(1.1); animation: kenburns 24s ease-in-out infinite alternate; }
@keyframes kenburns { to { transform: scale(1.2) translate(-2%, -2%); } }
#particles { position: absolute; inset: 0; z-index: -1; opacity: .7; }
.hero .grid-overlay { position: absolute; inset: 0; z-index: -1; background-image: linear-gradient(rgba(255, 255, 255, .05) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .05) 1px, transparent 1px); background-size: 48px 48px;
  -webkit-mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%); mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%); }
.orb { position: absolute; border-radius: 50%; filter: blur(60px); opacity: .55; z-index: -1; animation: float 14s ease-in-out infinite; }
.orb.o1 { width: 340px; height: 340px; background: var(--c-yellow); top: -80px; right: 12%; opacity: .35; }
.orb.o2 { width: 300px; height: 300px; background: var(--c-green); bottom: -100px; left: 5%; animation-delay: -4s; opacity: .3; }
.orb.o3 { width: 240px; height: 240px; background: var(--c-red); top: 40%; right: -60px; animation-delay: -8s; opacity: .3; }
@keyframes float { 0%, 100% { transform: translate(0, 0) scale(1); } 33% { transform: translate(30px, -40px) scale(1.08); } 66% { transform: translate(-25px, 25px) scale(.95); } }
.hero-badge { display: inline-flex; align-items: center; gap: .5rem; padding: .45rem 1rem; border-radius: 999px; background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .25); backdrop-filter: blur(10px); font-size: .8rem; font-weight: 600; letter-spacing: .04em; }
.hero-badge .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--c-green); box-shadow: 0 0 0 0 rgba(0, 200, 83, .7); animation: ping 1.8s infinite; }
@keyframes ping { 70% { box-shadow: 0 0 0 10px rgba(0, 200, 83, 0); } 100% { box-shadow: 0 0 0 0 rgba(0, 200, 83, 0); } }
.hero h1 { font-size: clamp(2.1rem, 6vw, 4.2rem); font-weight: 800; line-height: 1.05; margin: 1.2rem 0; }
.hero h1 .hl { background: linear-gradient(90deg, #FFE27A, #FFC800, #7CFFB2); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p.lead { color: rgba(255, 255, 255, .82); font-size: clamp(1rem, 2.4vw, 1.2rem); max-width: 600px; }
.hero .swiper-hero { overflow: hidden; }
.hero .swiper-pagination-bullet { background: #fff; opacity: .4; width: 26px; height: 5px; border-radius: 5px; transition: all .3s; }
.hero .swiper-pagination-bullet-active { opacity: 1; width: 46px; background: var(--c-yellow); }
.hero-visual { position: relative; width: min(440px, 80vw); aspect-ratio: 1; margin: 0 auto; }
.hero-visual .ring { position: absolute; inset: 0; border-radius: 50%; border: 1px dashed rgba(255, 255, 255, .3); animation: spin 40s linear infinite; }
.hero-visual .ring.r2 { inset: 9%; border-style: solid; border-color: rgba(255, 255, 255, .12); animation-duration: 25s; animation-direction: reverse; }
.hero-visual .ring .sat { position: absolute; width: 16px; height: 16px; border-radius: 50%; top: -8px; left: calc(50% - 8px); box-shadow: 0 0 20px currentColor; }
.hero-visual .core { position: absolute; inset: 19%; border-radius: 50%; overflow: hidden; background: #fff; box-shadow: 0 0 0 10px rgba(255, 255, 255, .08), 0 0 80px rgba(47, 123, 255, .8), 0 40px 80px rgba(0, 0, 0, .35); animation: floatY 6s ease-in-out infinite; }
.hero-visual .core img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.12); }
@keyframes floatY { 50% { transform: translateY(-14px); } }
.hero-visual .chip { position: absolute; padding: .6rem .9rem; border-radius: 16px; background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .25); backdrop-filter: blur(14px); font-size: .8rem; font-weight: 600; display: flex; align-items: center; gap: .5rem; animation: floatY 5s ease-in-out infinite; white-space: nowrap; }
.hero-visual .chip i { font-size: 1.1rem; }
.hero-visual .chip.c1 { top: 8%; left: -4%; } .hero-visual .chip.c2 { bottom: 14%; right: -6%; animation-delay: -2s; } .hero-visual .chip.c3 { bottom: -2%; left: 10%; animation-delay: -3.5s; }
.ribbons { position: absolute; left: 0; right: 0; bottom: -2px; z-index: 0; line-height: 0; }
.ribbons path { fill: none; stroke-width: 6; stroke-linecap: round; stroke-dasharray: 1600; stroke-dashoffset: 1600; animation: draw 3s ease forwards; }
.ribbons path:nth-child(2) { animation-delay: .3s; } .ribbons path:nth-child(3) { animation-delay: .6s; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.hero-wave { position: absolute; bottom: -1px; left: 0; width: 100%; height: 90px; z-index: 1; }
.hero-wave path { fill: var(--bg); transition: fill .4s; }
.scroll-hint { position: absolute; bottom: 90px; left: 50%; transform: translateX(-50%); z-index: 2; width: 26px; height: 42px; border: 2px solid rgba(255, 255, 255, .5); border-radius: 20px; }
.scroll-hint::after { content: ""; position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px; background: #fff; border-radius: 4px; animation: scrollDot 1.6s infinite; }
@keyframes scrollDot { 80% { transform: translateY(14px); opacity: 0; } }

/* ---------- Sections ---------- */
.section { padding: 80px 0; position: relative; }
@media (max-width: 767px) { .section { padding: 56px 0; } }
.section-alt { background: var(--bg-2); }
.eyebrow { display: inline-flex; align-items: center; gap: .5rem; font-size: .75rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--c-blue); }
[data-bs-theme="dark"] .eyebrow { color: #7FAEFF; }
.eyebrow::before { content: ""; width: 26px; height: 3px; border-radius: 3px; background: var(--grad-tri); }
.section-title { font-size: clamp(1.7rem, 4vw, 2.6rem); font-weight: 800; margin: .6rem 0 1rem; }
.section-head { margin-bottom: 2.6rem; }

/* ---------- Page header (pages internes) ---------- */
.page-hero { position: relative; padding: 70px 0 90px; color: #fff; overflow: hidden; isolation: isolate;
  background: radial-gradient(700px 300px at 15% 0%, #2F7BFF 0, transparent 70%), linear-gradient(135deg, #0A2E7A, #0B5FE3); }
.page-hero .bg { position: absolute; inset: 0; background-size: cover; background-position: center; opacity: .22; z-index: -1; }
.page-hero h1 { font-size: clamp(1.8rem, 5vw, 3rem); font-weight: 800; }
.page-hero .breadcrumb { --bs-breadcrumb-divider-color: rgba(255, 255, 255, .5); --bs-breadcrumb-item-active-color: rgba(255, 255, 255, .8); }
.page-hero .breadcrumb a { color: #fff; }
.page-hero .orb { opacity: .35; }

/* ---------- Cartes ---------- */
.card-x { background: var(--surface-solid); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; transition: transform .45s cubic-bezier(.2, .8, .2, 1), box-shadow .45s; height: 100%; display: flex; flex-direction: column; position: relative; }
.card-x:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); }
.card-x .media { position: relative; aspect-ratio: 16/10; overflow: hidden; display: block; }
.card-x .media img, .card-x .media .ph { width: 100%; height: 100%; object-fit: cover; transition: transform .8s cubic-bezier(.2, .8, .2, 1); }
.card-x:hover .media img, .card-x:hover .media .ph { transform: scale(1.08); }
.card-x .media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 50%, rgba(0, 0, 0, .45)); }
.card-x .body { padding: 1.25rem 1.35rem 1.4rem; display: flex; flex-direction: column; flex: 1; }
.card-x .title { font-family: var(--font-head); font-weight: 700; font-size: 1.08rem; line-height: 1.35; color: var(--text); margin-bottom: .5rem; }
.card-x .title a { color: inherit; } .card-x .title a:hover { color: var(--c-blue); }
.card-x .meta { font-size: .78rem; color: var(--muted); display: flex; gap: .9rem; flex-wrap: wrap; }
.card-x .tag { position: absolute; top: 14px; left: 14px; z-index: 2; }
.ph { display: grid; place-items: center; color: rgba(255, 255, 255, .9); font-family: var(--font-head); font-weight: 800; font-size: 2.6rem; letter-spacing: .05em; position: relative; overflow: hidden; }
.ph::before { content: ""; position: absolute; width: 140%; height: 140%; background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, .25), transparent 40%); }
.ph .ph-logo { width: 34%; opacity: .25; position: absolute; right: -6%; bottom: -10%; border-radius: 50%; }
.chip-cong { display: inline-flex; align-items: center; gap: .4rem; max-width: 100%; font-size: .74rem; font-weight: 600; padding: .3rem .7rem; border-radius: 999px; background: rgba(11, 95, 227, .08); color: var(--c-blue); border: 1px solid rgba(11, 95, 227, .15); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
[data-bs-theme="dark"] .chip-cong { color: #8DB6FF; background: rgba(111, 163, 255, .1); }
.chip-cong:hover { background: var(--c-blue); color: #fff; }
.badge-soft { padding: .4rem .75rem; border-radius: 999px; font-weight: 600; font-size: .72rem; color: #fff; backdrop-filter: blur(6px); }
.read-more { font-weight: 700; font-size: .88rem; display: inline-flex; align-items: center; gap: .35rem; margin-top: auto; padding-top: .8rem; color: var(--c-blue); }
.read-more i { transition: transform .3s; } .read-more:hover i { transform: translateX(5px); }

/* Carte vitrée */
.glass { background: var(--surface); border: 1px solid var(--border); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border-radius: var(--radius); box-shadow: var(--shadow); }
.tilt { transform-style: preserve-3d; will-change: transform; }

/* ---------- Statistiques ---------- */
.stats-wrap { margin-top: -70px; position: relative; z-index: 5; }
.stat { padding: 1.6rem 1.2rem; text-align: center; position: relative; overflow: hidden; height: 100%; }
.stat .ico { width: 54px; height: 54px; border-radius: 16px; display: grid; place-items: center; margin: 0 auto .8rem; font-size: 1.5rem; color: #fff; }
.stat .num { font-family: var(--font-head); font-weight: 800; font-size: clamp(1.8rem, 4vw, 2.5rem); line-height: 1; }
.stat .lbl { color: var(--muted); font-size: .85rem; font-weight: 500; margin-top: .3rem; }
.stat::after { content: ""; position: absolute; left: 20%; right: 20%; bottom: 0; height: 3px; border-radius: 3px; background: var(--grad-tri); transform: scaleX(0); transition: transform .5s; }
.stat:hover::after { transform: scaleX(1); }

/* ---------- À propos ---------- */
.about-visual { position: relative; padding: 20px; }
.about-visual .main { border-radius: 30px; overflow: hidden; box-shadow: var(--shadow-lg); aspect-ratio: 4/4.4; }
.about-visual .main img { width: 100%; height: 100%; object-fit: cover; }
.about-visual .float-card { position: absolute; bottom: 0; right: 0; padding: 1rem 1.2rem; max-width: 230px; animation: floatY 6s ease-in-out infinite; }
.about-visual .deco { position: absolute; top: 0; left: 0; width: 120px; height: 120px; border-radius: 30px; background: var(--grad-tri); opacity: .9; z-index: -1; transform: rotate(-12deg); }
.feature { display: flex; gap: 1rem; align-items: flex-start; padding: 1rem; border-radius: 18px; transition: background .3s; }
.feature:hover { background: rgba(11, 95, 227, .05); }
.feature .fi { flex: 0 0 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; color: #fff; font-size: 1.3rem; }

/* ---------- Mot du président ---------- */
.quote-card { padding: 2.2rem; position: relative; overflow: hidden; }
.quote-card .qi { font-size: 5rem; line-height: 1; position: absolute; top: -.5rem; right: 1.2rem; opacity: .12; color: var(--c-blue); }
.avatar-xl { width: 110px; height: 110px; border-radius: 30px; object-fit: cover; box-shadow: var(--shadow); }

/* ---------- Événements ---------- */
.event-card { display: flex; gap: 1rem; padding: 1.1rem; align-items: stretch; }
.event-date { flex: 0 0 78px; border-radius: 18px; background: var(--grad-main); color: #fff; text-align: center; padding: .6rem .3rem; display: flex; flex-direction: column; justify-content: center; box-shadow: 0 10px 25px rgba(11, 95, 227, .35); }
.event-date .d { font-family: var(--font-head); font-size: 1.9rem; font-weight: 800; line-height: 1; }
.event-date .m { font-size: .72rem; text-transform: uppercase; letter-spacing: .1em; font-weight: 700; opacity: .9; }
.event-date .y { font-size: .7rem; opacity: .75; }
.countdown { display: flex; gap: .5rem; }
.countdown div { background: rgba(11, 95, 227, .08); border-radius: 12px; padding: .35rem .55rem; text-align: center; min-width: 52px; }
.countdown b { display: block; font-family: var(--font-head); font-size: 1.1rem; color: var(--c-blue); }
.countdown small { font-size: .62rem; color: var(--muted); text-transform: uppercase; }

/* ---------- Défilement congrégations ---------- */
.marquee { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marquee-track { display: flex; gap: 1rem; width: max-content; animation: marquee 60s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee.reverse .marquee-track { animation-direction: reverse; }
@keyframes marquee { to { transform: translateX(-50%); } }
.cong-pill { display: flex; align-items: center; gap: .7rem; padding: .55rem 1.1rem .55rem .55rem; border-radius: 999px; background: var(--surface-solid); border: 1px solid var(--border); box-shadow: var(--shadow); white-space: nowrap; color: var(--text); font-weight: 600; font-size: .88rem; transition: all .3s; }
.cong-pill:hover { border-color: var(--c-blue); color: var(--c-blue); transform: translateY(-3px); }
.cong-avatar { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-weight: 800; font-size: .8rem; flex: 0 0 auto; overflow: hidden; font-family: var(--font-head); }
.cong-avatar img { width: 100%; height: 100%; object-fit: cover; }

/* Carte congrégation */
.cong-card { padding: 1.4rem; text-align: left; }
.cong-card .cong-avatar { width: 64px; height: 64px; border-radius: 20px; font-size: 1.15rem; box-shadow: var(--shadow); }
.cong-card .cname { font-family: var(--font-head); font-weight: 700; font-size: 1rem; line-height: 1.35; color: var(--text); }
.cong-card:hover .cname { color: var(--c-blue); }
.cong-cover { height: 260px; border-radius: 0 0 40px 40px; overflow: hidden; position: relative; }
.type-f { background: linear-gradient(135deg, #F2231D, #FFB300); } .type-m { background: linear-gradient(135deg, #0B5FE3, #00C2FF); } .type-x { background: linear-gradient(135deg, #00C853, #0B5FE3); }

/* ---------- Galerie ---------- */
.album-card { position: relative; border-radius: var(--radius); overflow: hidden; display: block; aspect-ratio: 4/3; box-shadow: var(--shadow); color: #fff; }
.album-card img, .album-card .ph { width: 100%; height: 100%; object-fit: cover; transition: transform 1s cubic-bezier(.2, .8, .2, 1); }
.album-card:hover img, .album-card:hover .ph { transform: scale(1.1) rotate(1deg); }
.album-card .ov { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0, 0, 0, 0) 35%, rgba(6, 10, 24, .88)); display: flex; flex-direction: column; justify-content: flex-end; padding: 1.2rem; }
.album-card .count { position: absolute; top: 14px; right: 14px; background: rgba(0, 0, 0, .4); backdrop-filter: blur(8px); border-radius: 999px; padding: .3rem .7rem; font-size: .75rem; font-weight: 600; }
.album-card h3 { font-size: 1.05rem; font-weight: 700; margin: 0; color: #fff; }
.photo-grid { columns: 2; column-gap: 12px; }
@media (min-width: 768px) { .photo-grid { columns: 3; } }
@media (min-width: 1200px) { .photo-grid { columns: 4; } }
.photo-grid a { display: block; margin-bottom: 12px; border-radius: 16px; overflow: hidden; break-inside: avoid; position: relative; }
.photo-grid img { width: 100%; display: block; transition: transform .7s; }
.photo-grid a:hover img { transform: scale(1.06); }
.photo-grid a::after { content: "\F52A"; font-family: bootstrap-icons; position: absolute; inset: 0; display: grid; place-items: center; font-size: 1.8rem; color: #fff; background: rgba(11, 95, 227, .45); opacity: 0; transition: opacity .3s; }
.photo-grid a:hover::after { opacity: 1; }

/* ---------- Filtres ---------- */
.filter-bar { padding: 1rem; margin-top: -48px; position: relative; z-index: 5; }
.filter-bar .form-control, .filter-bar .form-select { border-radius: 14px; border-color: var(--border); background-color: var(--surface-solid); min-height: 46px; }
.chips { display: flex; gap: .5rem; overflow-x: auto; padding-bottom: .3rem; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chips a { flex: 0 0 auto; padding: .5rem 1rem; border-radius: 999px; border: 1px solid var(--border); background: var(--surface-solid); color: var(--text); font-weight: 600; font-size: .84rem; transition: all .25s; }
.chips a.active, .chips a:hover { background: var(--c-blue); border-color: var(--c-blue); color: #fff; }

/* Select2 harmonisé */
.select2-container--bootstrap-5 .select2-selection { border-radius: 14px !important; min-height: 46px; display: flex; align-items: center; border-color: var(--border) !important; background-color: var(--surface-solid) !important; color: var(--text); }
.select2-container--bootstrap-5 .select2-selection--single .select2-selection__rendered { color: var(--text) !important; }
.select2-container--bootstrap-5 .select2-dropdown { border-radius: 14px; border-color: var(--border); overflow: hidden; box-shadow: var(--shadow-lg); background: var(--surface-solid); color: var(--text); }
.select2-container--bootstrap-5 .select2-dropdown .select2-results__options .select2-results__option.select2-results__option--highlighted { background: var(--c-blue) !important; color: #fff !important; }
.select2-container--bootstrap-5 .select2-dropdown .select2-search .select2-search__field { background: var(--bg); color: var(--text); border-color: var(--border); }
[data-bs-theme="dark"] .select2-container--bootstrap-5 .select2-dropdown .select2-results__options .select2-results__option { color: var(--text); }

/* ---------- Contenu riche ---------- */
.prose { font-size: 1.04rem; line-height: 1.85; color: var(--text); }
.prose h2 { font-size: 1.6rem; font-weight: 800; margin: 2.2rem 0 1rem; position: relative; padding-left: 1rem; }
.prose h2::before { content: ""; position: absolute; left: 0; top: .2em; bottom: .2em; width: 5px; border-radius: 5px; background: var(--grad-tri); }
.prose h3 { font-size: 1.25rem; font-weight: 700; margin: 1.6rem 0 .8rem; }
.prose img { border-radius: 18px; height: auto; margin: 1rem 0; }
.prose blockquote { border: 0; margin: 1.6rem 0; padding: 1.4rem 1.6rem; border-radius: 20px; background: linear-gradient(135deg, rgba(11, 95, 227, .08), rgba(0, 200, 83, .06)); font-size: 1.12rem; font-style: italic; position: relative; border-left: 5px solid var(--c-blue); }
.prose a { color: var(--c-blue); text-decoration: underline; text-underline-offset: 3px; }
.prose table { width: 100%; margin: 1rem 0; } .prose td, .prose th { border: 1px solid var(--border); padding: .5rem; }
.prose iframe { width: 100%; aspect-ratio: 16/9; border-radius: 18px; border: 0; }
ul.list-check { list-style: none; padding-left: 0; }
ul.list-check li { position: relative; padding: .55rem 0 .55rem 2.2rem; border-bottom: 1px dashed var(--border); }
ul.list-check li::before { content: "\F26E"; font-family: bootstrap-icons; position: absolute; left: 0; top: .5rem; width: 1.5rem; height: 1.5rem; border-radius: 8px; display: grid; place-items: center; background: var(--c-green); color: #fff; font-size: .9rem; }
ol.list-steps { list-style: none; counter-reset: s; padding: 0; display: grid; gap: .8rem; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
ol.list-steps li { counter-increment: s; padding: 1rem 1rem 1rem 3.6rem; border-radius: 18px; background: var(--surface-solid); border: 1px solid var(--border); position: relative; box-shadow: var(--shadow); }
ol.list-steps li::before { content: counter(s, decimal-leading-zero); position: absolute; left: 1rem; top: 50%; transform: translateY(-50%); font-family: var(--font-head); font-weight: 800; font-size: 1.3rem; background: var(--grad-main); -webkit-background-clip: text; background-clip: text; color: transparent; }

.sidebar-sticky { position: sticky; top: 100px; }
.toc a { display: flex; align-items: center; gap: .6rem; padding: .7rem .9rem; border-radius: 14px; color: var(--text); font-weight: 600; font-size: .92rem; }
.toc a:hover, .toc a.active { background: rgba(11, 95, 227, .08); color: var(--c-blue); }
.toc a i { color: var(--c-blue); }

/* ---------- Bureau ---------- */
.member { text-align: center; padding: 1.6rem 1.2rem; }
.member .ph-av { width: 120px; height: 120px; border-radius: 50%; margin: 0 auto 1rem; overflow: hidden; position: relative; padding: 4px; background: conic-gradient(var(--c-yellow), var(--c-green), var(--c-red), var(--c-blue), var(--c-yellow)); }
.member .ph-av img, .member .ph-av .in { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; border: 4px solid var(--surface-solid); }
.member .ph-av .in { display: grid; place-items: center; background: var(--grad-main); color: #fff; font-size: 2rem; }
.member .fn { color: var(--c-blue); font-weight: 700; font-size: .82rem; text-transform: uppercase; letter-spacing: .06em; }

/* ---------- Documents ---------- */
.doc-item { display: flex; gap: 1rem; align-items: center; padding: 1rem 1.2rem; }
.doc-ico { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; font-size: 1.5rem; color: #fff; flex: 0 0 auto; }

/* ---------- CTA / Newsletter ---------- */
.cta { border-radius: 32px; padding: clamp(2rem, 5vw, 3.5rem); color: #fff; position: relative; overflow: hidden; isolation: isolate; background: linear-gradient(135deg, #0A2E7A, #0B5FE3 60%, #2F7BFF); box-shadow: var(--shadow-lg); }
.cta .orb { opacity: .35; }
.cta .form-control { border-radius: 14px; border: 0; min-height: 52px; }

/* ---------- Partenaires ---------- */
.partner { display: grid; place-items: center; height: 90px; padding: 1rem; filter: grayscale(1); opacity: .7; transition: all .3s; }
.partner:hover { filter: none; opacity: 1; }
.partner img { max-height: 60px; }

/* ---------- Pied de page ---------- */
.footer { background: #060A18; color: rgba(255, 255, 255, .72); position: relative; overflow: hidden; padding-top: 70px; isolation: isolate; }
.footer::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 4px; background: var(--grad-tri); }
.footer h5 { color: #fff; font-size: 1rem; font-weight: 700; margin-bottom: 1.2rem; }
.footer a { color: rgba(255, 255, 255, .72); transition: color .2s, padding .2s; }
.footer a:hover { color: var(--c-yellow); }
.footer .links a { display: block; padding: .3rem 0; } .footer .links a:hover { padding-left: 6px; }
.footer .social a { width: 42px; height: 42px; border-radius: 14px; display: inline-grid; place-items: center; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .1); margin-right: .4rem; font-size: 1.1rem; }
.footer .social a:hover { background: var(--c-blue); color: #fff; transform: translateY(-3px); }
.footer .bottom { border-top: 1px solid rgba(255, 255, 255, .08); padding: 1.2rem 0; margin-top: 3rem; font-size: .85rem; }
.footer .orb { opacity: .12; }

/* ---------- Bouton retour haut ---------- */
#toTop { position: fixed; right: 18px; bottom: 18px; z-index: 1040; width: 50px; height: 50px; border-radius: 16px; border: 0; color: #fff; background: var(--grad-main); box-shadow: 0 10px 30px rgba(11, 95, 227, .4); opacity: 0; transform: translateY(20px); transition: all .35s; pointer-events: none; }
#toTop.show { opacity: 1; transform: none; pointer-events: auto; }
#toTop svg { position: absolute; inset: -4px; transform: rotate(-90deg); }
#toTop circle { fill: none; stroke: var(--c-yellow); stroke-width: 3; stroke-dasharray: 170; stroke-dashoffset: 170; }

/* ---------- Pagination ---------- */
.pagination-modern { gap: .4rem; }
.pagination-modern .page-link { border-radius: 12px !important; border: 1px solid var(--border); background: var(--surface-solid); color: var(--text); min-width: 42px; height: 42px; display: grid; place-items: center; font-weight: 600; }
.pagination-modern .page-item.active .page-link { background: var(--grad-main); border-color: transparent; color: #fff; box-shadow: 0 8px 20px rgba(11, 95, 227, .35); }
.pagination-modern .page-link:hover { color: var(--c-blue); border-color: var(--c-blue); }

/* ---------- Formulaires publics ---------- */
.form-x .form-control, .form-x .form-select { border-radius: 14px; border-color: var(--border); background: var(--surface-solid); min-height: 50px; padding: .75rem 1rem; color: var(--text); }
.form-x .form-control:focus { border-color: var(--c-blue); box-shadow: 0 0 0 4px rgba(11, 95, 227, .15); }
.contact-tile { display: flex; gap: 1rem; align-items: center; padding: 1.1rem; }
.contact-tile .ci { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; color: #fff; font-size: 1.3rem; background: var(--grad-main); flex: 0 0 auto; }
.map-frame { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); min-height: 320px; }
.map-frame iframe { width: 100%; height: 100%; min-height: 320px; border: 0; }

/* ---------- Divers ---------- */
.empty-state { text-align: center; padding: 3.5rem 1rem; color: var(--muted); }
.empty-state i { font-size: 3rem; display: block; margin-bottom: 1rem; background: var(--grad-main); -webkit-background-clip: text; background-clip: text; color: transparent; }
.share a { width: 40px; height: 40px; border-radius: 12px; display: inline-grid; place-items: center; background: var(--surface-solid); border: 1px solid var(--border); color: var(--text); }
.share a:hover { background: var(--c-blue); color: #fff; }
.offcanvas { background: var(--surface-solid); }
.offcanvas .nav-link { color: var(--text); font-weight: 600; padding: .8rem 1rem; border-radius: 14px; display: flex; align-items: center; gap: .7rem; }
.offcanvas .nav-link:hover, .offcanvas .nav-link.active { background: rgba(11, 95, 227, .08); color: var(--c-blue); }
.offcanvas .sub a { display: block; padding: .5rem 1rem .5rem 2.8rem; color: var(--muted); font-size: .92rem; border-radius: 12px; }
.offcanvas .sub a:hover { color: var(--c-blue); }
.search-overlay .modal-content { background: transparent; border: 0; }
.search-overlay .form-control { height: 70px; font-size: 1.4rem; border-radius: 22px; padding-left: 3.5rem; }
.search-overlay .bi-search { position: absolute; left: 1.3rem; top: 50%; transform: translateY(-50%); font-size: 1.4rem; color: var(--c-blue); }
.modal-backdrop.show { opacity: .75; backdrop-filter: blur(6px); }
.mobile-dock { position: fixed; bottom: 10px; left: 10px; right: 10px; z-index: 1035; display: flex; justify-content: space-around; padding: .45rem; border-radius: 22px; }
.mobile-dock a { display: flex; flex-direction: column; align-items: center; font-size: .64rem; font-weight: 600; color: var(--muted); padding: .3rem .4rem; border-radius: 14px; flex: 1; }
.mobile-dock a i { font-size: 1.25rem; }
.mobile-dock a.active { color: var(--c-blue); background: rgba(11, 95, 227, .08); }
@media (max-width: 1199.98px) { body.has-dock { padding-bottom: 80px; } #toTop { bottom: 92px; } }
.reveal-line { position: relative; display: inline-block; }
.reveal-line::after { content: ""; position: absolute; left: 0; bottom: -6px; height: 4px; width: 100%; border-radius: 4px; background: var(--grad-tri); transform-origin: left; animation: grow 1.2s .5s ease both; }
@keyframes grow { from { transform: scaleX(0); } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; } }
@media print { .nav-glass, .topbar, .footer, #toTop, .mobile-dock, #preloader { display: none !important; } }

/* ---------- Bouton Espace membres (lisibilité PC) ---------- */
.nav-glass .container > .btn-icon, .nav-glass .btn-member { flex-shrink: 0; }
.nav-glass .brand { flex-shrink: 0; }
.btn-member { background: linear-gradient(135deg, #FFC72C, #FF8A00); color: #0A2E7A !important; font-weight: 700; font-size: .88rem; border: 0; border-radius: 14px; padding: .55rem 1rem; white-space: nowrap; box-shadow: 0 8px 22px rgba(255, 138, 0, .35); transition: transform .25s, box-shadow .25s; }
.btn-member:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(255, 138, 0, .5); color: #0A2E7A !important; }
.btn-member i { font-size: 1.05rem; }
.topbar a.topbar-member { background: var(--c-yellow, #FFC72C); color: #0A2E7A; font-weight: 700; padding: .2rem .75rem; border-radius: 999px; }
.topbar a.topbar-member:hover { background: #fff; color: #0A2E7A; }
@media (min-width: 1200px) {
  .nav-glass .brand .b-sub { display: none !important; }
  .nav-glass .nav-link { padding: .5rem .6rem !important; font-size: .88rem; }
}
@media (min-width: 1200px) and (max-width: 1399.98px) { .btn-member span { display: none; } .btn-member { padding: .55rem .8rem; } .nav-glass .nav-link { padding: .5rem .5rem !important; font-size: .85rem; } }
.contact-link { transition: transform .25s, box-shadow .25s; } .contact-link:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
