/* ============================================================
   EEVGP — Design System (Professional · Pastel · Clean)
   ============================================================ */

:root {
    --bg-color: #ffffff;
    --text-color: #1c1c2e;
    --primary-color: #4361ee;
    --primary-hover: #3451d1;
    --primary-light: #eef1fd;
    --secondary-color: #f7f8fc;
    --card-bg: #ffffff;
    --card-bg-alt: #f7f8fc;
    --border-color: #e2e5f0;
    --header-bg: rgba(255, 255, 255, 0.95);
    --player-bg: rgba(255, 255, 255, 0.98);
    --muted: #6b7080;
    --accent: #7c3aed;

    --font-sans: 'Inter', sans-serif;
    --font-heading: 'Outfit', sans-serif;
    --radius: 8px;
    --radius-sm: 5px;
    --radius-xs: 3px;
    --shadow-sm: 0 1px 4px rgba(28,28,46,0.06);
    --shadow-md: 0 4px 16px rgba(28,28,46,0.08);
    --shadow-lg: 0 12px 32px rgba(28,28,46,0.10);
    --transition: all 0.22s ease;
}

[data-theme="dark"] {
    --bg-color: #0f1117;
    --text-color: #e8eaf0;
    --primary-color: #748ffc;
    --primary-hover: #5c7cfa;
    --primary-light: #1a1f3a;
    --secondary-color: #171923;
    --card-bg: #171923;
    --card-bg-alt: #1a1f2e;
    --border-color: #2a2d3e;
    --header-bg: rgba(15, 17, 23, 0.96);
    --player-bg: rgba(23, 25, 35, 0.98);
    --muted: #8891a8;
    --accent: #a78bfa;
}

/* ============================================================
   BASE
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; }

body {
    font-family: var(--font-sans);
    background-color: var(--bg-color);
    color: var(--text-color);
    margin: 0;
    padding: 0;
    line-height: 1.65;
    transition: background-color 0.3s ease, color 0.3s ease;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    margin-top: 0;
    line-height: 1.3;
}

a { color: var(--primary-color); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--primary-hover); }

img { max-width: 100%; height: auto; }

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ============================================================
   HEADER & NAVIGATION
   ============================================================ */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background-color: var(--header-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.logo-link {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-color);
    text-decoration: none;
    flex-shrink: 0;     /* Le logo ne rétrécit jamais */
}
.logo-link:hover { color: var(--primary-color); }
.logo { height: 34px; width: auto; }

/* Bloc texte du logo : nom d'église sur deux lignes, hiérarchisé */
.logo-text-block {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    line-height: 1.15;
    min-width: 0;
    padding-left: 4px;
    border-left: 2px solid var(--border-color);
    margin-left: 6px;
    height: 36px;
}
/* Ligne 1 : libellé discret */
.site-name-top {
    font-family: var(--font-sans);
    font-weight: 600;
    font-size: 0.72rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--muted);
    white-space: nowrap;
}
/* Ligne 2 : nom principal, bien visible */
.site-name-main {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.02rem;
    letter-spacing: -0.01em;
    color: var(--text-color);
    white-space: nowrap;
}
@media (max-width: 992px) {
    .logo-text-block { display: none; }
}

/* Sous-titre nom d'église dans le hero */
.hero-church-name {
    font-family: var(--font-sans);
    font-weight: 500;
    font-size: 1rem;
    color: rgba(255,255,255,0.82);
    letter-spacing: 0.04em;
    text-transform: uppercase;
    margin: -12px 0 18px;
}

[data-theme="dark"] .logo-light-mode { display: none !important; }
[data-theme="dark"] .logo-dark-mode { display: block !important; }

.main-nav { display: flex; align-items: center; gap: 8px; }

.nav-list {
    display: flex;
    gap: 4px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-list a {
    color: var(--text-color);
    font-weight: 500;
    font-size: 0.9rem;
    padding: 6px 12px;
    border-radius: 8px;
    transition: var(--transition);
}
.nav-list a:hover,
.nav-list li.active a {
    background-color: var(--primary-light);
    color: var(--primary-color);
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-color);
    cursor: pointer;
    padding: 8px;
    border-radius: 8px;
}
.mobile-menu-toggle:hover { background: var(--secondary-color); }

#theme-toggle {
    background: none;
    border: none;
    color: var(--text-color);
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    margin-left: 4px;
}
#theme-toggle:hover { background-color: var(--secondary-color); }

/* ============================================================
   MAIN CONTENT AREA
   ============================================================ */
main {
    min-height: calc(100vh - 70px - 240px);
    padding: 48px 0 100px;
}

/* Supprime la bande blanche entre le menu et le carrousel sur la page d'accueil */
body.page-accueil main {
    padding-top: 0 !important;
}

.page-header {
    margin-bottom: 40px;
}
.page-header h1 {
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    color: var(--text-color);
    margin-bottom: 12px;
}
.page-intro {
    font-size: 1.1rem;
    color: var(--muted);
    max-width: 680px;
    line-height: 1.7;
}

.section-title {
    font-size: 1.5rem;
    margin-bottom: 24px;
    padding-bottom: 12px;
    border-bottom: 3px solid var(--primary-color);
    display: inline-block;
}

/* Bouton générique */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 24px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    text-decoration: none;
}
.btn-primary {
    background: var(--primary-color);
    color: #fff;
}
.btn-primary:hover {
    background: var(--primary-hover);
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

/* ============================================================
   PAGE ACCUEIL (HERO)
   ============================================================ */
.home-hero {
    background: linear-gradient(135deg, #3451d1 0%, #4361ee 55%, #6d4ac4 100%);
    color: #fff;
    padding: 88px 48px 80px;
    border-radius: var(--radius);
    margin-bottom: 48px;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.home-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.home-hero-inner { position: relative; z-index: 2; }

/* Carrousel de photos en fond du hero */
.home-hero--carousel {
    background: #2c3a8f;
    /* Casser hors du .container pour aller plein écran en largeur */
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    border-radius: 0;
    /* Plein écran en hauteur (moins la hauteur du menu 70px) */
    min-height: calc(100vh - 70px);
    min-height: calc(100svh - 70px); /* Unité moderne tenant compte des barres mobiles */
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 80px 48px 80px;
}

.hero-carousel-slides { position: absolute; inset: 0; z-index: 0; }
.hero-slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1.4s ease-in-out;
    will-change: opacity;
}
.hero-slide.is-active { opacity: 1; }
/* Calque dégradé : lisibilité du texte sans cacher les photos */
.hero-carousel-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background:
        linear-gradient(135deg, rgba(33, 46, 110, 0.52) 0%, rgba(72, 44, 134, 0.48) 100%),
        linear-gradient(to bottom, rgba(0,0,0,0.08), rgba(0,0,0,0.28));
}
.home-hero--carousel h1,
.home-hero--carousel .hero-church-name,
.home-hero--carousel > .home-hero-inner > p {
    text-shadow: 0 2px 16px rgba(0,0,0,0.45);
}


.home-hero-badge {
    display: inline-block;
    background: rgba(255,255,255,0.15);
    border: 1px solid rgba(255,255,255,0.3);
    border-radius: 100px;
    padding: 6px 18px;
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 20px;
    backdrop-filter: blur(4px);
}
.home-hero h1 {
    font-size: clamp(2.4rem, 6vw, 4rem);
    margin-bottom: 20px;
    color: #fff;
    font-weight: 800;
    line-height: 1.15;
}
.hero-highlight {
    position: relative;
    display: inline-block;
}
.hero-highlight::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 0;
    width: 100%;
    height: 4px;
    background: rgba(255,255,255,0.5);
    border-radius: 4px;
}
.home-hero > .home-hero-inner > p,
.home-hero p {
    font-size: 1.2rem;
    opacity: 0.9;
    max-width: 580px;
    margin: 0 auto 32px;
    line-height: 1.7;
}
.hero-cta-group {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}
.btn-white {
    background: #fff;
    color: var(--primary-color);
    font-weight: 700;
}
.btn-white:hover {
    background: #f0f4ff;
    color: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
}
.btn-outline-white {
    background: transparent;
    color: #fff;
    border: 2px solid rgba(255,255,255,0.6);
    font-weight: 600;
}
.btn-outline-white:hover {
    background: rgba(255,255,255,0.12);
    border-color: #fff;
    color: #fff;
    transform: translateY(-2px);
}

/* Info cards avec icones */
.home-infos {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 64px;
}
.info-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 28px 24px;
    box-shadow: var(--shadow-sm);
    display: flex;
    align-items: flex-start;
    gap: 16px;
    transition: var(--transition);
}
.info-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); border-color: var(--primary-color); }
.info-card-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: var(--primary-light);
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.info-card-body h3 {
    color: var(--text-color);
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 4px;
}
.info-card-body p { margin: 0; font-size: 0.9rem; color: var(--muted); }

/* Section Qui sommes-nous */
.home-about {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 56px;
    align-items: center;
    margin-bottom: 72px;
    padding: 56px 48px;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
}
.about-label {
    display: inline-block;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--primary-color);
    margin-bottom: 12px;
}
.home-about-text h2 {
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    margin-bottom: 16px;
    line-height: 1.3;
}
.home-about-text p {
    color: var(--muted);
    font-size: 0.97rem;
    line-height: 1.75;
    margin-bottom: 16px;
}
.home-about-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}
.value-card {
    background: var(--bg-color);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 20px 16px;
    transition: var(--transition);
}
.value-card:hover { border-color: var(--primary-color); box-shadow: var(--shadow-sm); }
.value-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: var(--primary-light);
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
}
.value-card h4 { font-size: 0.95rem; margin-bottom: 4px; }
.value-card p { font-size: 0.82rem; color: var(--muted); margin: 0; }

/* Map section */
.home-map-section { margin-bottom: 64px; }
.map-container {
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    margin-top: 8px;
}

/* Liens rapides */
.home-quick-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 32px;
}
.quick-link-card {
    display: flex;
    align-items: center;
    gap: 16px;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 20px 24px;
    box-shadow: var(--shadow-sm);
    text-decoration: none;
    color: var(--text-color);
    transition: var(--transition);
}
.quick-link-card:hover {
    border-color: var(--primary-color);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
    color: var(--text-color);
}
.ql-icon {
    flex-shrink: 0;
    width: 46px;
    height: 46px;
    border-radius: 12px;
    background: var(--primary-light);
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
}
.ql-body { flex-grow: 1; }
.ql-body h4 { margin: 0 0 3px; font-size: 1rem; }
.ql-body p { margin: 0; font-size: 0.82rem; color: var(--muted); }

/* ============================================================
   ACTIVITÉS
   ============================================================ */
.activities-section { margin-bottom: 56px; }

.activities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 20px;
}

.activity-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 28px 24px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    text-decoration: none;
    color: var(--text-color);
    cursor: pointer;
}
.activity-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-3px);
    border-color: var(--primary-color);
    color: var(--text-color);
}
.activity-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: var(--primary-light);
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
}
.activity-card--service .activity-icon { background: rgba(67, 97, 238, 0.10); }
.activity-card--association .activity-icon { background: rgba(124, 58, 237, 0.12); color: #7c3aed; }
.activity-card h3 { margin: 0 0 8px; font-size: 1.1rem; }

/* Photo de groupe dans une carte d'activité */
.activity-photo {
    width: 100%;
    margin: -20px -20px 16px;
    overflow: hidden;
    border-radius: var(--radius) var(--radius) 0 0;
    height: 140px;
}
.activity-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}
.activity-photo--logo {
    background: var(--card-bg);
    display: flex;
    align-items: center;
    justify-content: center;
}
.activity-photo--logo img {
    object-fit: contain;
    padding: 12px;
}
.activity-card:hover .activity-photo img { transform: scale(1.04); }
.activity-card:hover .activity-photo--logo img { transform: scale(1.06); }
.activity-resp { margin: 0 0 8px; font-size: 0.9rem; color: var(--muted); }
.activity-horaires {
    display: inline-block;
    background: var(--primary-light);
    color: var(--primary-color);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-top: auto;
}
.activity-card--service { border-left: 3px solid var(--primary-color); }
.activity-card--association { border-left: 3px solid #7c3aed; }
.activity-card--no-link { cursor: default; }
.activity-card--no-link:hover {
    transform: none;
    box-shadow: var(--shadow-sm);
    border-color: var(--border-color);
}
.activity-card--no-link:hover .activity-photo img { transform: none; }
.activity-card--no-link.activity-card--service { border-left: 3px solid var(--primary-color); }

/* Logo dans la carte association */
.activity-logo-card {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    margin-bottom: 14px;
    background: rgba(124, 58, 237, 0.07);
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
}
.activity-logo-card img {
    width: 48px;
    height: 48px;
    object-fit: contain;
}

/* ============================================================
   TROMBINOSCOPE
   ============================================================ */
.trombi-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 28px;
    margin-bottom: 56px;
}
.trombi-card {
    background: var(--card-bg);
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}
.trombi-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.trombi-photo { aspect-ratio: 1; overflow: hidden; background: var(--secondary-color); }
.trombi-photo img { width: 100%; height: 100%; object-fit: cover; }
.trombi-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    opacity: 0.55;
    background: linear-gradient(135deg, var(--primary-light), var(--secondary-color));
}
.trombi-info { padding: 20px; text-align: center; }
.trombi-info h3 { margin: 0 0 6px; font-size: 1.1rem; }
.trombi-role { color: var(--primary-color); font-weight: 600; font-size: 0.88rem; margin: 0; }
.trombi-bio { margin: 10px 0 0; font-size: 0.85rem; color: var(--muted); line-height: 1.5; }

/* ============================================================
   PRÊCHES
   ============================================================ */

/* Hero prêches — image de prédication en fond avec overlay */
.preches-hero {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius);
    margin-bottom: 36px;
    padding: 64px 48px 56px;
    background: linear-gradient(135deg, #3451d1 0%, #4361ee 55%, #6d4ac4 100%);
    color: #fff;
    text-align: center;
}
.preches-hero--has-bg {
    min-height: 260px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.preches-hero-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center 30%;
    z-index: 0;
}
.preches-hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background:
        linear-gradient(135deg, rgba(33, 46, 110, 0.55) 0%, rgba(72, 44, 134, 0.50) 100%),
        linear-gradient(to bottom, rgba(0,0,0,0.10), rgba(0,0,0,0.32));
}
.preches-hero-inner {
    position: relative;
    z-index: 2;
}
.preches-hero h1 {
    margin: 0 0 12px;
    font-size: 2.2rem;
    font-weight: 800;
    text-shadow: 0 2px 16px rgba(0,0,0,0.40);
}
.preches-hero .page-intro {
    max-width: 600px;
    margin: 0 auto;
    font-size: 1.1rem;
    opacity: 0.92;
    text-shadow: 0 1px 8px rgba(0,0,0,0.30);
    color: rgba(255,255,255,0.95);
}
.sermon-filters {
    margin-bottom: 32px;
}
.sermon-filters input {
    width: 100%;
    padding: 14px 20px;
    border-radius: var(--radius);
    border: 1px solid var(--border-color);
    background: var(--card-bg);
    color: var(--text-color);
    font-family: var(--font-sans);
    font-size: 1rem;
    transition: var(--transition);
}
.sermon-filters input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.sermons-list { display: flex; flex-direction: column; gap: 16px; }

.sermon-card {
    display: flex;
    gap: 20px;
    align-items: center;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 20px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}
.sermon-card:hover { box-shadow: var(--shadow-md); }

.sermon-cover {
    width: 90px;
    height: 90px;
    flex-shrink: 0;
    border-radius: var(--radius-sm);
    overflow: hidden;
}
.sermon-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.sermon-cover-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-light), var(--secondary-color));
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    opacity: 0.7;
}
.sermon-refs { display: flex; align-items: center; gap: 6px; }
.sermon-refs svg { flex-shrink: 0; opacity: 0.7; }
.sermon-info { flex-grow: 1; min-width: 0; }
.sermon-title { margin: 0 0 6px; font-size: 1.1rem; }
.sermon-meta { margin: 0 0 4px; font-size: 0.88rem; color: var(--muted); }
.sermon-refs { margin: 4px 0 0; font-size: 0.85rem; color: var(--muted); }

.sermon-tags { display: flex; gap: 6px; margin-top: 10px; flex-wrap: wrap; }
.tag {
    background: var(--primary-light);
    color: var(--primary-color);
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 0.78rem;
    font-weight: 600;
}

.btn-play-sermon {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--primary-color);
    color: #fff;
    border: none;
    padding: 10px 18px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-weight: 600;
    font-size: 0.9rem;
    transition: var(--transition);
    white-space: nowrap;
}
.btn-play-sermon:hover {
    background: var(--primary-hover);
    transform: scale(1.03);
}
.no-audio { font-size: 0.85rem; color: var(--muted); }

.empty-state {
    text-align: center;
    padding: 60px 20px;
    background: var(--secondary-color);
    border-radius: var(--radius);
    color: var(--muted);
}

/* ============================================================
   CALENDRIER
   ============================================================ */
.calendar-wrapper { background: var(--card-bg); border-radius: var(--radius); padding: 24px; border: 1px solid var(--border-color); }

.fc { font-family: var(--font-sans) !important; }
.fc-toolbar-title { font-family: var(--font-heading) !important; font-weight: 700 !important; }
.fc-button-primary { background-color: var(--primary-color) !important; border-color: var(--primary-color) !important; }
.fc-button-primary:hover { background-color: var(--primary-hover) !important; }
.fc-event { border-radius: 4px !important; }

.calendar-error-msg {
    background: #fef2f2;
    color: #dc2626;
    padding: 16px 20px;
    border-radius: var(--radius-sm);
    margin-top: 16px;
    border: 1px solid #fca5a5;
}
[data-theme="dark"] .calendar-error-msg { background: #3b1010; border-color: #7f1d1d; }

.calendar-setup-notice {
    text-align: center;
    padding: 60px 40px;
    color: var(--muted);
}
.notice-icon { font-size: 3rem; margin-bottom: 16px; }
.calendar-setup-notice h2 { color: var(--text-color); margin-bottom: 12px; }
.calendar-setup-notice ol { text-align: left; display: inline-block; margin-top: 20px; }
.calendar-setup-notice li { margin-bottom: 10px; }

/* ============================================================
   LIENS UTILES
   ============================================================ */
.links-section { margin-bottom: 48px; }

.links-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.links-grid--social {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 16px;
}

.link-card {
    display: flex;
    align-items: center;
    gap: 20px;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 20px 24px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    color: var(--text-color);
    text-decoration: none;
}
.link-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateX(4px);
    color: var(--text-color);
    border-color: var(--primary-color);
}
.link-card-icon { font-size: 1.8rem; flex-shrink: 0; width: 40px; text-align: center; }
.link-card-body { flex-grow: 1; }
.link-card-body h3 { margin: 0 0 4px; font-size: 1rem; }
.link-card-body p { margin: 0; font-size: 0.85rem; color: var(--muted); }
.link-card-arrow { font-size: 1.2rem; color: var(--muted); transition: var(--transition); }
.link-card:hover .link-card-arrow { color: var(--primary-color); transform: translateX(4px); }

.link-card--instagram:hover { border-color: #e1306c; }
.link-card--instagram .link-card-icon { color: #e1306c; }
.link-card--facebook:hover { border-color: #1877f2; }
.link-card--facebook .link-card-icon { color: #1877f2; }
.link-card--whatsapp:hover { border-color: #25d366; }
.link-card--whatsapp .link-card-icon { color: #25d366; }
.link-card--youtube:hover { border-color: #ff0000; }
.link-card--youtube .link-card-icon { color: #ff0000; }
.link-card--bible { border-left: 3px solid #7c3aed; }
.link-card--org { border-left: 3px solid var(--primary-color); }

/* ============================================================
   CONTACT
   ============================================================ */
.contact-layout {
    display: grid;
    grid-template-columns: minmax(320px, 400px) 1fr;
    gap: 40px;
    align-items: start;
}

.contact-info-panel {
    background: linear-gradient(135deg, var(--primary-color) 0%, #4f46e5 100%);
    color: #fff;
    border-radius: var(--radius);
    padding: 36px 32px;
}
.contact-info-panel h3 { color: #fff; margin-bottom: 28px; font-size: 1.2rem; }

.contact-details {
    list-style: none;
    margin: 0 0 28px;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.contact-details li { display: flex; align-items: flex-start; gap: 14px; }
.contact-icon { flex-shrink: 0; margin-top: 1px; display: inline-flex; color: #fff; opacity: 0.9; }
/* min-width:0 permet le retour à la ligne dans un flex/grid enfant */
.contact-detail-body { min-width: 0; flex: 1; }
.contact-details strong {
    display: block;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    opacity: 0.8;
    margin-bottom: 3px;
    font-weight: 600;
}
.contact-details p {
    margin: 0;
    font-size: 0.92rem;
    line-height: 1.5;
    word-break: break-word;
    overflow-wrap: anywhere;
}
.contact-details a { color: #fff; opacity: 0.9; }
.contact-details a:hover { opacity: 1; text-decoration: underline; }
.contact-email-wrap { word-break: break-word; overflow-wrap: anywhere; }
.contact-email-wrap a { word-break: break-word; overflow-wrap: anywhere; }

.contact-social-row { display: flex; gap: 10px; }
.social-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.15);
    border-radius: 50%;
    color: #fff;
    transition: var(--transition);
}
.social-btn:hover { background: rgba(255,255,255,0.3); color: #fff; transform: translateY(-2px); }

.contact-form-panel {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 36px;
}
.contact-form-panel > h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-color);
    margin: 0 0 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border-color);
}

/* Select arrow */
.form-select,
.contact-form-panel select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%236b7080' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 36px;
}

/* Bouton submit */
.form-buttons,
.contact-form-panel .form-field.submit { margin-top: 24px; }

.contact-form-panel input[type="submit"],
.contact-form-panel button[type="submit"],
.form-buttons .button,
.form-buttons input[type="submit"] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: var(--primary-color);
    color: #fff;
    border: none;
    padding: 12px 28px;
    border-radius: var(--radius-sm);
    font-family: var(--font-sans);
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: var(--transition);
    width: 100%;
}

.contact-form-panel input[type="submit"]:hover,
.contact-form-panel button[type="submit"]:hover,
.form-buttons .button:hover,
.form-buttons input[type="submit"]:hover {
    background: var(--primary-hover);
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(67, 97, 238, 0.3);
}

/* Messages de validation */
.form-errors .form-error,
.form-error {
    color: #c0392b;
    font-size: 0.82rem;
    margin-top: 4px;
    display: block;
}

.form-success-message,
.notice.notice-success {
    background: #f0fdf4;
    border: 1px solid #86efac;
    color: #166534;
    padding: 14px 18px;
    border-radius: var(--radius-sm);
    margin-bottom: 20px;
    font-weight: 500;
    font-size: 0.95rem;
}
[data-theme="dark"] .form-success-message,
[data-theme="dark"] .notice.notice-success { background: #052e16; border-color: #166534; color: #86efac; }

/* Champ honeypot (invisible) */
.form-field.honeypot { display: none !important; }

/* ============================================================
   FORMULAIRE CONTACT — classes cform-* (rendu manuel)
   Préfixe .contact-form-panel pour gagner la spécificité
   sur les éventuels styles du plugin Grav Form.
   ============================================================ */

.contact-form-panel form { width: 100%; }

.cform-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 0;
}
.cform-field { margin-bottom: 18px; }

.cform-label {
    display: block;
    font-weight: 600;
    font-size: 0.83rem;
    color: var(--text-color);
    margin-bottom: 6px;
    letter-spacing: 0.01em;
}
.cform-label .req { color: #e55; font-weight: 700; margin-left: 2px; }

/* Spécificité élevée pour surclasser tout style par défaut du navigateur ou du plugin */
.contact-form-panel .cform-input,
.contact-form-panel .cform-textarea,
.contact-form-panel .cform-select,
.contact-form-panel input[type="text"],
.contact-form-panel input[type="email"],
.contact-form-panel select,
.contact-form-panel textarea {
    width: 100%;
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    border: 1.5px solid var(--border-color);
    background: var(--secondary-color);
    color: var(--text-color);
    font-family: var(--font-sans);
    font-size: 0.94rem;
    line-height: 1.5;
    transition: border-color 0.18s, box-shadow 0.18s, background 0.18s;
    box-sizing: border-box;
    outline: none;
    appearance: none;
    -webkit-appearance: none;
}
.contact-form-panel .cform-input:focus,
.contact-form-panel .cform-textarea:focus,
.contact-form-panel .cform-select:focus,
.contact-form-panel input[type="text"]:focus,
.contact-form-panel input[type="email"]:focus,
.contact-form-panel select:focus,
.contact-form-panel textarea:focus {
    border-color: var(--primary-color);
    background: var(--card-bg);
    box-shadow: 0 0 0 3px rgba(67, 97, 238, 0.10);
}

.contact-form-panel .cform-textarea,
.contact-form-panel textarea { min-height: 140px; resize: vertical; }

/* Wrapper select avec flèche custom */
.cform-select-wrap { position: relative; }
.cform-select-wrap::after {
    content: '';
    position: absolute;
    right: 13px;
    top: 50%;
    transform: translateY(-50%);
    width: 0; height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 5px solid var(--muted);
    pointer-events: none;
}
.contact-form-panel .cform-select,
.contact-form-panel select { padding-right: 36px; cursor: pointer; }

/* Bouton submit */
.cform-submit {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    width: 100%;
    padding: 13px 24px;
    background: var(--primary-color);
    color: #fff;
    border: none;
    border-radius: var(--radius-sm);
    font-family: var(--font-sans);
    font-weight: 600;
    font-size: 0.97rem;
    cursor: pointer;
    transition: background 0.18s, transform 0.18s, box-shadow 0.18s;
    margin-top: 6px;
}
.cform-submit:hover {
    background: var(--primary-hover);
    transform: translateY(-1px);
    box-shadow: 0 5px 16px rgba(67, 97, 238, 0.28);
}
.cform-submit:active { transform: translateY(0); }

/* Message succès */
.form-success-msg {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #f0fdf4;
    border: 1px solid #86efac;
    color: #166534;
    padding: 14px 18px;
    border-radius: var(--radius-sm);
    margin-bottom: 20px;
    font-weight: 500;
    font-size: 0.95rem;
}
[data-theme="dark"] .form-success-msg {
    background: #052e16;
    border-color: #166534;
    color: #86efac;
}

@media (max-width: 600px) {
    .cform-row { grid-template-columns: 1fr; }
}

/* ============================================================
   LECTEUR AUDIO (SPOTIFY STYLE)
   ============================================================ */
.audio-player-container {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: var(--player-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 24px;
    box-sizing: border-box;
    z-index: 1000;
    transform: translateY(100%);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 -4px 20px rgba(0,0,0,0.08);
    height: 82px;
}
.audio-player-container.visible { transform: translateY(0); }
.audio-player-container.is-loading .play-btn { pointer-events: none; }

.player-loading-status {
    font-size: 0.72rem;
    color: var(--primary-color);
    margin-top: 2px;
    min-height: 1em;
}

.player-spinner {
    animation: player-spin 0.9s linear infinite;
}
@keyframes player-spin {
    to { transform: rotate(360deg); }
}

.progress-bar-buffer {
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 0%;
    background-color: rgba(67, 97, 238, 0.22);
    border-radius: 4px;
    pointer-events: none;
}
.progress-bar-container.is-buffering .progress-bar {
    opacity: 0.55;
}
.progress-bar-container.is-buffering::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent, rgba(67, 97, 238, 0.35), transparent);
    animation: buffer-shimmer 1.2s ease-in-out infinite;
    pointer-events: none;
}
@keyframes buffer-shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.btn-play-sermon.is-loading {
    opacity: 0.75;
    pointer-events: none;
    position: relative;
}
.btn-play-sermon.is-loading svg {
    opacity: 0;
}
.btn-play-sermon.is-loading::after {
    content: '';
    position: absolute;
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255,255,255,0.35);
    border-top-color: #fff;
    border-radius: 50%;
    animation: player-spin 0.8s linear infinite;
}

.player-left {
    display: flex;
    align-items: center;
    gap: 14px;
    width: 28%;
    min-width: 0;
}
#player-cover {
    width: 52px;
    height: 52px;
    border-radius: 6px;
    object-fit: cover;
    flex-shrink: 0;
    box-shadow: var(--shadow-sm);
}
.player-info { overflow: hidden; }
.track-title {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.95rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.track-artist { font-size: 0.8rem; color: var(--muted); }

.player-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 44%;
    gap: 6px;
}
.player-controls { display: flex; align-items: center; gap: 16px; }
.player-controls button {
    background: none;
    border: none;
    color: var(--text-color);
    cursor: pointer;
    opacity: 0.65;
    transition: var(--transition);
    display: flex;
    align-items: center;
    padding: 4px;
}
.player-controls button:hover { opacity: 1; }
.play-btn {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background-color: var(--text-color) !important;
    color: var(--bg-color) !important;
    opacity: 1 !important;
    display: flex;
    align-items: center;
    justify-content: center;
}
.play-btn:hover { transform: scale(1.08) !important; }

.player-timeline {
    display: flex;
    align-items: center;
    width: 100%;
    gap: 10px;
    font-size: 0.72rem;
    color: var(--muted);
}
.progress-bar-container {
    flex-grow: 1;
    height: 4px;
    background-color: var(--border-color);
    border-radius: 4px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}
.progress-bar-container:hover { height: 6px; }
.progress-bar {
    position: relative;
    z-index: 1;
    height: 100%;
    background-color: var(--primary-color);
    width: 0%;
    border-radius: 4px;
    transition: width 0.1s linear;
}

.player-right {
    width: 28%;
    display: flex;
    justify-content: flex-end;
}
#player-close {
    background: none;
    border: none;
    color: var(--text-color);
    cursor: pointer;
    opacity: 0.5;
    transition: var(--transition);
    padding: 8px;
}
#player-close:hover { opacity: 1; }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
    background-color: var(--secondary-color);
    padding: 56px 0 24px;
    border-top: 1px solid var(--border-color);
}
.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}
.footer-info h3 { color: var(--primary-color); font-size: 1.1rem; margin-bottom: 12px; }
.footer-info p { margin: 0 0 6px; font-size: 0.9rem; color: var(--muted); }
.footer-links h4, .footer-social h4 { font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted); margin-bottom: 14px; }
.footer-links ul { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 8px; }
.footer-links a { font-size: 0.9rem; }
.social-icons { display: flex; gap: 10px; flex-wrap: wrap; }
.social-icons a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--bg-color);
    border-radius: 50%;
    color: var(--text-color);
    font-size: 0.75rem;
    font-weight: 700;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    transition: var(--transition);
}
.social-icons a:hover {
    background: var(--primary-color);
    color: #fff;
    border-color: var(--primary-color);
    transform: translateY(-3px);
}
.footer-bottom {
    text-align: center;
    padding-top: 24px;
    border-top: 1px solid var(--border-color);
    color: var(--muted);
    font-size: 0.85rem;
}
.dev-credit {
    display: block;
    margin-top: 8px;
    font-size: 0.7rem;
    color: var(--muted);
    opacity: 0.35;
    transition: opacity 0.3s ease;
}
.dev-credit:hover {
    opacity: 0.7;
}


/* ============================================================
   PAGE DONS
   ============================================================ */
.dons-header {
    text-align: center;
    max-width: 640px;
    margin: 0 auto 48px;
}
.dons-header h1 { margin-bottom: 16px; }
.dons-header .page-intro { margin: 0; }

.dons-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 32px;
    margin-bottom: 48px;
    max-width: 860px;
    margin-left: auto;
    margin-right: auto;
}
.don-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 40px 36px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}
.don-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}
.don-card-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    border-radius: var(--radius);
    background: var(--primary-light);
    color: var(--primary-color);
    margin-bottom: 20px;
    flex-shrink: 0;
}
.don-card h3 {
    font-size: 1.15rem;
    margin-bottom: 24px;
    color: var(--text-color);
}
.don-card-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}
.don-info-row {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 0;
}
.don-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: var(--muted);
    font-weight: 600;
}
.don-value {
    font-size: 0.97rem;
    color: var(--text-color);
    font-weight: 600;
    line-height: 1.6;
}
.don-divider {
    height: 1px;
    background: var(--border-color);
    margin: 20px 0;
}
.don-address {
    font-style: normal;
    font-weight: 400;
    line-height: 1.75;
    color: var(--text-color);
}
.don-virement-text {
    font-size: 0.92rem;
    color: var(--muted);
    line-height: 1.65;
    margin: 0 0 20px;
    flex: 1;
}
.don-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    align-self: flex-start;
}
.don-muted {
    font-size: 0.88rem;
    color: var(--muted);
    font-style: italic;
    margin: 0;
}
.dons-thanks {
    text-align: center;
    padding: 32px 24px;
    border-top: 1px solid var(--border-color);
    margin-bottom: 32px;
    max-width: 860px;
    margin-left: auto;
    margin-right: auto;
}
.dons-thanks p {
    margin: 0;
    font-size: 0.97rem;
    color: var(--muted);
    line-height: 1.7;
}

/* ============================================================
   PAGE 404
   ============================================================ */
.error-page {
    text-align: center;
    padding: 80px 20px;
}
.error-code {
    font-size: clamp(5rem, 15vw, 10rem);
    color: var(--primary-color);
    line-height: 1;
    margin: 0;
    font-family: var(--font-heading);
    font-weight: 800;
}

/* ============================================================
   EMPLACEMENTS PHOTO (placeholders élégants)
   ============================================================ */
.media-placeholder {
    width: 100%;
    height: 100%;
    min-height: 160px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    text-align: center;
    color: var(--muted);
    background:
        repeating-linear-gradient(45deg, transparent, transparent 12px, rgba(67,97,238,0.025) 12px, rgba(67,97,238,0.025) 24px),
        var(--secondary-color);
    border: 2px dashed var(--border-color);
    border-radius: var(--radius);
}
.media-placeholder svg { color: var(--primary-color); opacity: 0.5; }
.media-placeholder span {
    font-size: 0.82rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    max-width: 80%;
}
.media-placeholder--wide { min-height: 220px; }

/* ============================================================
   ACCUEIL — BANDE « NOTRE MAISON »
   ============================================================ */
.home-feature {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 48px;
    align-items: center;
    margin-bottom: 72px;
}
.home-feature-media {
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    aspect-ratio: 16 / 10;
}
.home-feature-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.home-feature-media .media-placeholder { box-shadow: none; height: 100%; }
.home-feature-text h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); margin-bottom: 16px; line-height: 1.3; }
.home-feature-text p { color: var(--muted); font-size: 0.97rem; line-height: 1.75; margin-bottom: 22px; }

/* Hero avec photo : meilleure lisibilité du texte */
.home-hero--photo { background-size: cover; background-position: center; }
.home-hero--photo h1,
.home-hero--photo .hero-church-name { text-shadow: 0 2px 12px rgba(0,0,0,0.25); }

/* ============================================================
   ACCUEIL — GALERIE « MOMENTS DE VIE »
   ============================================================ */
.home-gallery { margin-bottom: 72px; }
.gallery-head { margin-bottom: 24px; }
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}
.gallery-tile {
    border-radius: var(--radius);
    overflow: hidden;
    aspect-ratio: 4 / 3;
    box-shadow: var(--shadow-sm);
    background: var(--secondary-color);
}
.gallery-tile img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.4s ease; }
.gallery-tile:hover img { transform: scale(1.05); }
.gallery-tile .media-placeholder { border-radius: 0; height: 100%; min-height: 0; box-shadow: none; }

/* ============================================================
   PAGE DÉTAIL ACTIVITÉ
   ============================================================ */
.activity-detail { max-width: 820px; margin: 0 auto; }
.back-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--muted);
    margin-bottom: 20px;
}
.back-link:hover { color: var(--primary-color); }
.activity-banner {
    border-radius: var(--radius);
    overflow: hidden;
    margin-bottom: 28px;
    aspect-ratio: 21 / 9;
    box-shadow: var(--shadow-md);
}
.activity-banner img { width: 100%; height: 100%; object-fit: cover; display: block; }
.activity-banner--empty { box-shadow: none; }
.activity-banner--empty .media-placeholder { height: 100%; }
.activity-detail h1 { font-size: clamp(1.8rem, 4vw, 2.4rem); margin-bottom: 18px; }

.activity-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-bottom: 28px;
}
.activity-meta-item {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 10px 16px;
}
.activity-meta-item svg { color: var(--primary-color); flex-shrink: 0; }
.activity-meta-item span { display: flex; flex-direction: column; font-size: 0.92rem; line-height: 1.4; }
.activity-meta-item strong {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--muted);
    font-weight: 600;
}
.activity-content { line-height: 1.8; font-size: 1rem; }
.activity-content h2 { font-size: 1.4rem; margin: 32px 0 12px; }
.activity-content h3 { font-size: 1.15rem; margin: 24px 0 10px; }
.activity-content ul { padding-left: 20px; }
.activity-content li { margin-bottom: 6px; }

/* Logo hero (quand pas de photo bannière) */
.activity-banner--logo {
    aspect-ratio: auto;
    min-height: 200px;
    background: var(--bg-secondary, #f4f4f8);
    display: flex;
    align-items: center;
    justify-content: center;
}
.activity-logo-hero {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 36px 24px;
    width: 100%;
}
.activity-logo-img {
    max-width: 240px;
    max-height: 200px;
    width: auto;
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 2px 8px rgba(0,0,0,0.08));
}

/* ===== SECTION HELLOASSO ===== */
.helloasso-section {
    margin-top: 40px;
    padding: 32px;
    background: linear-gradient(135deg, #f3e8ff 0%, #faf0ff 100%);
    border: 1px solid #d8b4fe;
    border-radius: var(--radius);
}
.helloasso-header {
    margin-bottom: 24px;
}
.helloasso-logo-badge {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    font-weight: 700;
    font-size: 1.05rem;
    color: #7c3aed;
}
.helloasso-logo-badge svg {
    color: #7c3aed;
    flex-shrink: 0;
}
.helloasso-header p {
    color: var(--muted);
    font-size: 0.93rem;
    line-height: 1.65;
    margin: 0;
}
.helloasso-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}
.helloasso-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 22px;
    border-radius: var(--radius-sm, 8px);
    font-size: 0.93rem;
    font-weight: 600;
    text-decoration: none;
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.helloasso-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(124, 58, 237, 0.25);
}
.helloasso-btn--primary {
    background: #7c3aed;
    color: #fff;
}
.helloasso-btn--primary:hover { background: #6d28d9; color: #fff; }
.helloasso-btn--secondary {
    background: #fff;
    color: #7c3aed;
    border: 1.5px solid #c4b5fd;
}
.helloasso-btn--secondary:hover { background: #f5f3ff; color: #7c3aed; }
.helloasso-btn svg { flex-shrink: 0; }

@media (max-width: 480px) {
    .helloasso-section { padding: 20px 16px; }
    .helloasso-buttons { flex-direction: column; }
    .helloasso-btn { justify-content: center; }
}

/* État vide générique */
.empty-state {
    text-align: center;
    padding: 56px 20px;
    color: var(--muted);
}
.empty-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 76px;
    height: 76px;
    border-radius: 50%;
    background: var(--primary-light);
    color: var(--primary-color);
    margin-bottom: 16px;
}

/* ============================================================
   VIE D'ÉGLISE – COMMUNITY GALLERY
   ============================================================ */
.home-community {
    padding: 72px 0 64px;
    background: var(--bg-secondary, #f8f9fc);
}
.home-community-header {
    text-align: center;
    max-width: 640px;
    margin: 0 auto 48px;
    padding: 0 24px;
}
.home-community-header h2 {
    font-size: clamp(1.6rem, 3vw, 2.1rem);
    margin: 8px 0 16px;
    line-height: 1.3;
}
.home-community-header p {
    color: var(--muted);
    font-size: 0.97rem;
    line-height: 1.75;
}

/* Grille : 3 colonnes égales, photos portrait */
.community-mosaic {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    padding: 0 48px;
    max-width: 1200px;
    margin: 0 auto;
}

.mosaic-item {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius, 12px);
    aspect-ratio: 3 / 4;
    background: var(--card-bg);
}

.mosaic-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    display: block;
    transition: transform 0.45s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.mosaic-item:hover img {
    transform: scale(1.06);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
    .home-about {
        grid-template-columns: 1fr;
        gap: 40px;
        padding: 40px 32px;
    }
    .home-feature { grid-template-columns: 1fr; gap: 32px; }
    .home-feature-media { order: -1; }
    .home-quick-links { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 900px) {
    .contact-layout {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .nav-list {
        display: none;
        position: absolute;
        top: 70px;
        left: 0;
        width: 100%;
        background-color: var(--header-bg);
        backdrop-filter: blur(12px);
        flex-direction: column;
        padding: 12px 16px 16px;
        box-shadow: var(--shadow-md);
        border-bottom: 1px solid var(--border-color);
        gap: 2px;
    }
    .nav-list.active { display: flex; }
    .mobile-menu-toggle { display: flex; }

    main { padding: 32px 0 100px; }

    .home-hero { padding: 56px 24px 48px; }
    .home-hero--carousel { 
        padding: 40px 24px 40px; 
        min-height: calc(100vh - 70px);
        min-height: calc(100svh - 70px);
    }

    .home-infos { grid-template-columns: 1fr; }

    .sermon-card { flex-wrap: wrap; }
    .sermon-action { width: 100%; }

    .preches-hero { padding: 48px 24px 40px; border-radius: var(--radius-sm); }
    .preches-hero h1 { font-size: 1.6rem; }

    .player-left, .player-right { display: none; }
    .player-center { width: 100%; }

    .links-grid--social { grid-template-columns: 1fr; }

    .home-quick-links { grid-template-columns: 1fr; }
    .home-about-cards { grid-template-columns: 1fr 1fr; }

    .gallery-grid { grid-template-columns: repeat(2, 1fr); }
    .activity-banner { aspect-ratio: 16 / 9; }
    .community-mosaic { padding: 0 24px; gap: 10px; }
    .activity-meta { flex-direction: column; }
    .activity-meta-item { width: 100%; }

    .hero-cta-group { flex-direction: column; align-items: center; }
    .hero-cta-group .btn { width: 200px; justify-content: center; }

    .footer-content { grid-template-columns: 1fr; gap: 24px; }
    .footer-bottom p { font-size: 0.75rem; }

    .dons-grid { grid-template-columns: 1fr; }
    .don-card { padding: 28px 20px; }
}

@media (max-width: 480px) {
    .container { padding: 0 16px; }
    .activities-grid { grid-template-columns: 1fr; }
    .trombi-grid { grid-template-columns: repeat(2, 1fr); }
    .home-about-cards { grid-template-columns: 1fr; }
    .gallery-grid { grid-template-columns: 1fr; }
    .community-mosaic { grid-template-columns: 1fr; gap: 8px; padding: 0 16px; }
    .community-mosaic .mosaic-item { aspect-ratio: 4 / 3; }
    .home-community { padding: 48px 0 40px; }
    .home-community-header { margin-bottom: 28px; }
    .info-card { flex-direction: column; text-align: center; }
    .info-card-icon { margin: 0 auto; }
    .home-feature-text h2 { font-size: 1.3rem; }
    .site-footer { padding: 32px 0 16px; }
}
