/* Charte couleurs — verts & sarcelles vivants, or lumineux, ardoise en soutien */
:root {
    /* Identité — verts saturés (nature, joie, contraste) */
    --ebapci-green-dark: #166534;
    --ebapci-green-primary: #22c55e;
    --ebapci-green-secondary: #4ade80;
    --ebapci-green-light: #86efac;
    --ebapci-bg-mint: #dcfce7;

    /* Sarcelle vif (complément du vert) */
    --ebapci-teal-deep: #0f766e;
    --ebapci-teal: #14b8a6;
    --ebapci-teal-light: #2dd4bf;
    --ebapci-teal-mist: #ccfbf1;

    /* Accents chauds — plus de punch */
    --ebapci-warm-sand: #fff7ed;
    --ebapci-copper: #c2410c;
    --ebapci-copper-light: #ea580c;
    --ebapci-honey: #fbbf24;

    /* Ardoise — texte secondaire & équilibre */
    --ebapci-slate: #475569;
    --ebapci-slate-mid: #64748b;
    --ebapci-slate-soft: #e2e8f0;
    --ebapci-lilac-mist: #f1f0ff;

    /* Rose corail — chaleur */
    --ebapci-rose-dust: #be123c;
    --ebapci-rose-soft: #fb7185;
    --ebapci-rose-mist: #ffe4e6;

    /* Neutres */
    --ebapci-white: #ffffff;
    --ebapci-surface: #f8fafc;
    --ebapci-surface-elevated: #ffffff;
    --ebapci-heading: #0f172a;
    --ebapci-text: #334155;
    --ebapci-text-muted: #64748b;

    /* Or interface (CTA secondaire, nav) */
    --ebapci-accent: #f5c542;
    --ebapci-accent-hover: #eab308;
    --ebapci-accent-warm: #fef3c7;

    /* Sémantique (rétrocompat + thème admin — vert brand réglable) */
    --ebapci-brand-primary: #16a34a;
    --ebapci-border: rgba(34, 197, 94, 0.18);
    --ebapci-radius: 0.875rem;
    --ebapci-radius-lg: 1.25rem;
    --ebapci-shadow: 0 0.35rem 1.75rem rgba(22, 101, 52, 0.09), 0 0.25rem 1rem rgba(15, 118, 110, 0.05);
    --ebapci-shadow-hover: 0 0.65rem 2.25rem rgba(22, 163, 74, 0.18), 0 0.35rem 1.25rem rgba(20, 184, 166, 0.1);
    --ebapci-motion-ease: cubic-bezier(0.22, 1, 0.36, 1);
    --ebapci-font-sans: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    --ebapci-font-display: "Fraunces", Georgia, "Times New Roman", serif;
    --ebapci-hero-gradient: linear-gradient(
        148deg,
        #064e3b 0%,
        #047857 18%,
        #059669 38%,
        #16a34a 58%,
        #22c55e 78%,
        #0d9488 100%
    );

    --bs-primary: var(--ebapci-brand-primary);
    --bs-primary-rgb: 22, 163, 74;
    --bs-link-color: #15803d;
    --bs-link-hover-color: #0f766e;
    --bs-body-font-family: var(--ebapci-font-sans);
    --bs-body-color: var(--ebapci-text);
    --bs-border-radius: 0.5rem;
    --bs-focus-ring-color: rgba(34, 197, 94, 0.38);
}

.ebapci-body {
    color: var(--ebapci-text);
    -webkit-font-smoothing: antialiased;
    --bs-link-color: #15803d;
    --bs-link-hover-color: #0f766e;
    background-color: #f0fdf4;
    background-image:
        radial-gradient(ellipse 95% 80% at 100% -5%, rgba(251, 191, 36, 0.14) 0%, transparent 55%),
        radial-gradient(ellipse 78% 70% at 0% 100%, rgba(74, 222, 128, 0.12) 0%, transparent 52%),
        radial-gradient(ellipse 70% 55% at 12% 18%, rgba(20, 184, 166, 0.1) 0%, transparent 50%),
        radial-gradient(ellipse 55% 45% at 85% 92%, rgba(251, 113, 133, 0.07) 0%, transparent 45%),
        radial-gradient(ellipse 50% 40% at 70% 30%, rgba(196, 181, 253, 0.08) 0%, transparent 48%),
        linear-gradient(180deg, #f8fafc 0%, #ecfdf5 22%, var(--ebapci-warm-sand) 48%, #f0fdfa 74%, #f8fafc 100%);
    background-attachment: fixed;

    --ebapci-form-radius: 0.7rem;
    --ebapci-form-border: rgba(15, 118, 110, 0.14);
    --ebapci-form-bg: #ffffff;
    --ebapci-form-focus-ring: rgba(34, 197, 94, 0.28);
}

@media (max-width: 767.98px) {
    .ebapci-body {
        background-attachment: scroll;
    }
}

/* Boutons compacts */
.ebapci-body .btn {
    --bs-btn-padding-y: 0.28rem;
    --bs-btn-padding-x: 0.55rem;
    --bs-btn-font-size: 0.8125rem;
    --bs-btn-line-height: 1.35;
    --bs-btn-border-radius: 0.35rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35em;
}

.ebapci-body .btn-sm,
.ebapci-body .btn-group-sm > .btn {
    --bs-btn-padding-y: 0.2rem;
    --bs-btn-padding-x: 0.45rem;
    --bs-btn-font-size: 0.75rem;
}

.ebapci-body .btn-lg,
.ebapci-body .btn-group-lg > .btn {
    --bs-btn-padding-y: 0.45rem;
    --bs-btn-padding-x: 0.95rem;
    --bs-btn-font-size: 0.9375rem;
}

/* Primaire taille “standard” : un peu plus d’air que .btn-sm, sans padding fixe (flex centre le texte) */
.ebapci-body .btn-primary:not(.btn-sm):not(.btn-lg) {
    --bs-btn-padding-y: 0.48rem;
    --bs-btn-padding-x: 1.15rem;
}

/* Titres pages */
main > .container > h1:first-child {
    font-family: var(--ebapci-font-display);
    color: var(--ebapci-heading);
    font-weight: 600;
    font-size: clamp(1.75rem, 2.5vw, 2.25rem);
    letter-spacing: -0.02em;
    margin-bottom: 1.5rem !important;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--ebapci-border);
}

main > .container > h1:first-child + .lead,
main > .container > h1:first-child + p {
    margin-top: -0.5rem;
}

/* Navigation — vert profond vivant + liseré lumineux */
.navbar-ebapci {
    --bs-navbar-padding-y: 0.65rem;
    background: linear-gradient(195deg, #14532d 0%, #166534 32%, #15803d 58%, #0f766e 100%) !important;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    border-bottom: 2px solid rgba(250, 250, 250, 0.22);
    box-shadow: 0 4px 20px rgba(22, 101, 52, 0.35), 0 1px 0 rgba(74, 222, 128, 0.15) inset;
    transition: box-shadow 0.2s ease;
}

.navbar-ebapci.navbar-ebapci--scrolled {
    box-shadow: 0 6px 28px rgba(22, 101, 52, 0.42), 0 1px 0 rgba(74, 222, 128, 0.12) inset;
}

.navbar-ebapci .navbar-brand {
    font-family: var(--ebapci-font-display);
    font-weight: 700;
    font-size: 1.35rem;
    color: #fff !important;
    letter-spacing: -0.03em;
    line-height: 1.2;
}

.navbar-ebapci .navbar-brand-sub {
    display: block;
    font-family: var(--ebapci-font-sans);
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.72) !important;
    margin-top: 0.15rem;
}

.navbar-ebapci .nav-link {
    color: rgba(255, 255, 255, 0.92) !important;
    font-weight: 500;
    font-size: 0.9rem;
    padding: 0.5rem 0.65rem !important;
    border-radius: 0.375rem;
    transition:
        color 0.2s var(--ebapci-motion-ease),
        background 0.2s var(--ebapci-motion-ease),
        transform 0.2s var(--ebapci-motion-ease);
}

.navbar-ebapci .nav-link:hover,
.navbar-ebapci .nav-link:focus {
    color: #fff !important;
    background: rgba(74, 222, 128, 0.2);
}

.navbar-ebapci .nav-link.active {
    color: #fff !important;
    background: rgba(255, 255, 255, 0.22);
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.2);
}

.navbar-ebapci .nav-link-ebapci .bi {
    font-size: 1.05rem;
    opacity: 0.88;
    transition:
        transform 0.25s var(--ebapci-motion-ease),
        opacity 0.2s ease;
}

.navbar-ebapci .nav-link-ebapci:hover .bi,
.navbar-ebapci .nav-link-ebapci:focus-visible .bi {
    transform: scale(1.12);
    opacity: 1;
}

.navbar-ebapci .nav-link-ebapci.active .bi {
    opacity: 1;
}

.navbar-ebapci .btn-don {
    background: linear-gradient(135deg, var(--ebapci-honey) 0%, var(--ebapci-accent) 48%, #f59e0b 100%);
    border: none;
    color: #422006 !important;
    font-weight: 700;
    padding: 0.3rem 0.85rem;
    font-size: 0.8125rem;
    border-radius: 999px;
    box-shadow: 0 2px 14px rgba(245, 158, 11, 0.55), 0 1px 0 rgba(255, 255, 255, 0.5) inset;
}

.navbar-ebapci .btn-don:hover {
    background: linear-gradient(135deg, #fde047 0%, var(--ebapci-honey) 50%, var(--ebapci-accent) 100%);
    color: #422006 !important;
    transform: translateY(-1px);
    box-shadow: 0 5px 20px rgba(245, 158, 11, 0.6), 0 1px 0 rgba(255, 255, 255, 0.55) inset;
}

.navbar-ebapci .btn-don.btn-don--active {
    box-shadow: 0 0 0 2px #fff, 0 2px 14px rgba(245, 158, 11, 0.55);
}

.navbar-ebapci .btn-member {
    border: 1px solid rgba(255, 255, 255, 0.45);
    color: #fff !important;
    font-weight: 600;
    padding: 0.28rem 0.75rem;
    font-size: 0.8125rem;
    border-radius: 999px;
    background: transparent;
}

.navbar-ebapci .btn-member:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: #fff;
    color: #fff !important;
}

.navbar-ebapci .navbar-toggler {
    border-color: rgba(255, 255, 255, 0.35);
    padding: 0.4rem 0.6rem;
}

.navbar-ebapci .navbar-toggler:focus {
    box-shadow: 0 0 0 0.2rem rgba(255, 255, 255, 0.25);
}

@keyframes ebapci-hero-glow {
    0%,
    100% {
        opacity: 1;
        transform: scale(1) translate(0, 0);
    }
    50% {
        opacity: 0.92;
        transform: scale(1.04) translate(-1.5%, -0.5%);
    }
}

/* Hero */
.hero-banner {
    background: var(--ebapci-hero-gradient);
    color: #fff;
    border-radius: 0 0 var(--ebapci-radius-lg) var(--ebapci-radius-lg);
    position: relative;
    overflow: hidden;
}

.hero-banner::before {
    content: "";
    position: absolute;
    inset: -5%;
    background:
        radial-gradient(ellipse 85% 55% at 100% 0%, rgba(251, 191, 36, 0.35) 0%, transparent 52%),
        radial-gradient(ellipse 70% 60% at 0% 30%, rgba(74, 222, 128, 0.22) 0%, transparent 50%),
        radial-gradient(ellipse 58% 48% at 18% 92%, rgba(251, 113, 133, 0.14) 0%, transparent 50%),
        radial-gradient(ellipse 60% 50% at 8% 85%, rgba(45, 212, 191, 0.2) 0%, transparent 50%),
        radial-gradient(ellipse 50% 42% at 72% 65%, rgba(167, 139, 250, 0.12) 0%, transparent 48%),
        radial-gradient(ellipse 55% 45% at 0% 100%, rgba(254, 243, 199, 0.22) 0%, transparent 48%);
    pointer-events: none;
    animation: ebapci-hero-glow 14s ease-in-out infinite;
    will-change: transform, opacity;
}

/* Ne pas mettre display:flex sur .carousel-item : Bootstrap masque les slides avec display:none */
.hero-banner .carousel-item {
    min-height: min(72vh, 460px);
}

@media (min-width: 768px) {
    .hero-banner .carousel-item {
        min-height: min(76vh, 540px);
    }
}

@media (min-width: 1200px) {
    .hero-banner .carousel-item {
        min-height: min(78vh, 620px);
    }
}

.hero-banner__slide-frame {
    min-height: min(72vh, 460px);
    display: flex;
    align-items: center;
    justify-content: center;
}

@media (min-width: 768px) {
    .hero-banner__slide-frame {
        min-height: min(76vh, 540px);
    }
}

@media (min-width: 1200px) {
    .hero-banner__slide-frame {
        min-height: min(78vh, 620px);
    }
}

.hero-banner .carousel-inner {
    z-index: 0;
}

.hero-banner .carousel-inner .container {
    position: relative;
    z-index: 1;
}

.hero-banner .hero-banner__text-col {
    max-width: 42rem;
}

.hero-banner h1,
.hero-banner h2 {
    font-family: var(--ebapci-font-display);
    letter-spacing: -0.02em;
}

.hero-banner .lead {
    opacity: 0.94;
    max-width: 36rem;
}

.hero-banner .btn-light {
    border-radius: 999px;
    font-weight: 600;
    padding: 0.65rem 1.5rem;
    color: var(--ebapci-heading);
}

.hero-banner .btn-outline-light {
    border-radius: 999px;
    font-weight: 600;
    padding: 0.65rem 1.5rem;
    border-width: 2px;
}

.hero-banner .carousel-control-prev,
.hero-banner .carousel-control-next {
    width: 3rem;
    opacity: 0.8;
    z-index: 5;
    pointer-events: auto;
    touch-action: manipulation;
}

.hero-banner .carousel-indicators [data-bs-target] {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.hero-slide-media {
    position: relative;
    min-height: min(72vh, 460px);
    overflow: hidden;
}

@media (min-width: 768px) {
    .hero-slide-media {
        min-height: min(76vh, 540px);
    }
}

@media (min-width: 1200px) {
    .hero-slide-media {
        min-height: min(78vh, 620px);
    }
}

.hero-slide-media__bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.hero-slide-media__video,
.hero-slide-media__iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
    object-fit: cover;
    pointer-events: none;
}

.hero-slide-media__scrim {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(105deg, rgba(6, 78, 59, 0.78) 0%, rgba(4, 120, 87, 0.4) 45%, rgba(15, 118, 110, 0.55) 100%);
    pointer-events: none;
}

.hero-slide-media__content {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-align: center;
}

.hero-slide-media__content .container {
    width: 100%;
}

.hero-slide-media__content .lead {
    color: rgba(255, 255, 255, 0.94);
}

/* Départements — cartes avec visuel */
.ebapci-dept-card-img {
    height: 11rem;
    object-fit: cover;
    width: 100%;
}

.ebapci-dept-card-placeholder {
    height: 11rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(145deg, #059669 0%, #16a34a 42%, #15803d 100%);
    color: rgba(255, 255, 255, 0.9);
    font-size: 2.5rem;
}

.ebapci-dept-card-placeholder--link:hover,
.ebapci-dept-card-placeholder--link:focus-visible {
    color: #fff;
    filter: brightness(1.06);
}

/* Fiche département */
.ebapci-dept-fiche-header__visual {
    min-height: 12rem;
    background: var(--ebapci-slate-soft, #e5edf1);
}

.ebapci-dept-fiche-header__img {
    object-fit: cover;
    min-height: 12rem;
}

.ebapci-dept-fiche-header__placeholder {
    min-height: 12rem;
    background: linear-gradient(145deg, rgba(77, 102, 114, 0.12) 0%, rgba(58, 114, 111, 0.14) 55%, rgba(42, 54, 62, 0.08) 100%);
    color: var(--ebapci-slate, #4d6672);
}

@media (min-width: 768px) {
    .ebapci-dept-fiche-header__img,
    .ebapci-dept-fiche-header__placeholder,
    .ebapci-dept-fiche-header__visual {
        min-height: 100%;
    }
}

.ebapci-dept-fiche-stat-icon {
    width: 3rem;
    height: 3rem;
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    background: linear-gradient(145deg, rgba(77, 102, 114, 0.12) 0%, rgba(58, 114, 111, 0.12) 100%);
    color: var(--ebapci-teal-deep, #2c5c5a);
    font-size: 1.35rem;
}

.ebapci-dept-fiche-section--soft {
    background: var(--ebapci-slate-soft);
    border: 1px solid var(--ebapci-border);
}

.ebapci-dept-fiche-group-badge {
    background: linear-gradient(135deg, rgba(184, 111, 69, 0.14) 0%, rgba(77, 102, 114, 0.1) 100%);
    color: var(--ebapci-copper);
    font-weight: 600;
}

/* Cartes */
.ebapci-card-icon {
    width: 3rem;
    height: 3rem;
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(145deg, #22c55e 0%, #16a34a 45%, #0d9488 100%);
    color: #fff;
    font-size: 1.35rem;
    margin-bottom: 1rem;
    box-shadow: 0 5px 18px rgba(22, 163, 74, 0.35), 0 2px 8px rgba(13, 148, 136, 0.2);
}

.card-ebapci {
    border-radius: var(--ebapci-radius) !important;
    border: 1px solid var(--ebapci-border) !important;
    background: var(--ebapci-surface-elevated);
    box-shadow: var(--ebapci-shadow);
    transition:
        box-shadow 0.32s var(--ebapci-motion-ease),
        transform 0.32s var(--ebapci-motion-ease),
        border-color 0.32s var(--ebapci-motion-ease);
}

.card-hover:hover,
.card-ebapci.card-hover:hover {
    box-shadow: var(--ebapci-shadow-hover);
    transform: translateY(-4px);
    border-color: rgba(34, 197, 94, 0.45) !important;
}

.card-ebapci .card-title,
.card .card-title {
    font-family: var(--ebapci-font-display);
    color: var(--ebapci-heading);
    font-weight: 600;
}

.card-ebapci .stretched-link {
    font-weight: 600;
    color: #15803d !important;
}

.card-ebapci .stretched-link:hover {
    color: var(--ebapci-teal-deep) !important;
}

/* Section accueil */
.ebapci-section-title {
    font-family: var(--ebapci-font-display);
    font-weight: 600;
    color: var(--ebapci-heading);
    font-size: 1.35rem;
    margin-bottom: 1.25rem;
}

.ebapci-section-title--with-icon {
    display: flex;
    align-items: center;
    gap: 0.65rem;
}

.ebapci-section-title--with-icon .bi {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.35rem;
    height: 2.35rem;
    font-size: 1.1rem;
    border-radius: 0.65rem;
    background: linear-gradient(145deg, #4ade80 0%, #22c55e 38%, #16a34a 72%, #0d9488 100%);
    color: #fff;
    flex-shrink: 0;
    box-shadow: 0 4px 16px rgba(34, 197, 94, 0.4), 0 2px 6px rgba(13, 148, 136, 0.25);
    transition: transform 0.3s var(--ebapci-motion-ease), box-shadow 0.3s ease;
}

.ebapci-section-title--with-icon:hover .bi {
    transform: rotate(-4deg) scale(1.05);
    box-shadow: 0 6px 22px rgba(34, 197, 94, 0.45), 0 3px 10px rgba(13, 148, 136, 0.3);
}

.ebapci-section-kicker {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin-bottom: 0.35rem;
    background: linear-gradient(92deg, #15803d 0%, #0f766e 42%, #ca8a04 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* Mot du Pasteur — accueil */
.ebapci-home-pastor {
    background: linear-gradient(
        185deg,
        var(--ebapci-lilac-mist) 0%,
        var(--ebapci-teal-mist) 35%,
        var(--ebapci-bg-mint) 62%,
        var(--ebapci-warm-sand) 100%
    );
    border-bottom: 1px solid var(--ebapci-border);
}

.ebapci-pastor-photo {
    width: 10rem;
    height: 10rem;
    object-fit: cover;
}

.ebapci-pastor-body {
    font-size: 1.05rem;
    line-height: 1.65;
}

/* Programme hebdo — accueil */
.ebapci-home-weekly {
    background: linear-gradient(175deg, #ffffff 0%, var(--ebapci-slate-soft) 45%, var(--ebapci-teal-mist) 100%);
    border-bottom: 1px solid var(--ebapci-border);
}

.ebapci-home-weekly-card {
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.ebapci-home-weekly-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 0.5rem 1.25rem rgba(42, 54, 62, 0.1) !important;
}

.ebapci-home-weekly__badge {
    background: linear-gradient(135deg, rgba(77, 102, 114, 0.14) 0%, rgba(58, 114, 111, 0.1) 100%);
    color: var(--ebapci-slate);
    font-weight: 600;
    font-size: 0.7rem;
}

/* Billets blog — accueil */
.ebapci-home-blog {
    background: linear-gradient(168deg, var(--ebapci-warm-sand) 0%, var(--ebapci-lilac-mist) 38%, var(--ebapci-bg-mint) 70%, #fafcfb 100%);
    border-top: 1px solid var(--ebapci-border);
    border-bottom: 1px solid var(--ebapci-border);
}

/* Témoignages — accueil */
.ebapci-home-testimonials {
    background: linear-gradient(
        200deg,
        var(--ebapci-rose-mist) 0%,
        #ffffff 25%,
        var(--ebapci-teal-mist) 55%,
        rgba(232, 239, 241, 0.65) 100%
    );
    border-top: 1px solid var(--ebapci-border);
    border-bottom: 1px solid var(--ebapci-border);
}

.ebapci-testimonial-card blockquote {
    padding-left: 1rem;
    margin-left: 0;
    border: 0 solid transparent;
    border-left-width: 3px;
    border-image: linear-gradient(180deg, var(--ebapci-accent) 0%, var(--ebapci-rose-soft) 50%, var(--ebapci-teal-light) 100%) 1;
}

.ebapci-testimonial-quote {
    display: block;
    font-size: 2rem;
    line-height: 1;
    color: rgba(22, 163, 74, 0.4);
    margin-bottom: 0.25rem;
}

.ebapci-testimonial-body {
    font-size: 1.02rem;
    line-height: 1.6;
    color: var(--ebapci-text);
}

.ebapci-testimonials-carousel .carousel-inner {
    z-index: 0;
}

.ebapci-testimonials-carousel .carousel-item {
    min-height: clamp(15rem, 28vh, 22rem);
}

.ebapci-testimonials-carousel__frame {
    min-height: clamp(15rem, 28vh, 22rem);
    display: flex;
    align-items: center;
    justify-content: center;
}

.ebapci-testimonials-carousel__frame > .row {
    width: 100%;
}

.ebapci-testimonials-carousel .ebapci-testimonial-card--carousel blockquote {
    border-left: none;
    padding-left: 0;
}

.ebapci-testimonials-carousel .ebapci-testimonial-card--carousel {
    min-height: clamp(14rem, 26vh, 20rem);
}

.ebapci-testimonials-carousel .ebapci-testimonial-card--carousel .ebapci-testimonial-body {
    max-width: 28rem;
    margin-left: auto;
    margin-right: auto;
}

.ebapci-testimonials-carousel .carousel-indicators {
    margin-bottom: 0.75rem;
}

.ebapci-testimonials-carousel .carousel-indicators [data-bs-target] {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: rgba(34, 197, 94, 0.35);
    border: 0;
    opacity: 1;
}

.ebapci-testimonials-carousel .carousel-indicators [data-bs-target].active {
    background-color: var(--ebapci-green-primary);
}

.ebapci-testimonials-carousel__ctrl {
    width: 2.75rem;
    height: 2.75rem;
    top: 50%;
    bottom: auto;
    margin-top: -1.375rem;
    border-radius: 50%;
    background: linear-gradient(145deg, #22c55e 0%, #16a34a 50%, #0f766e 100%);
    opacity: 0.92;
    z-index: 5;
    pointer-events: auto;
    touch-action: manipulation;
}

.ebapci-testimonials-carousel__ctrl:hover {
    opacity: 1;
}

.ebapci-testimonials-carousel .carousel-control-prev {
    left: 0;
}

.ebapci-testimonials-carousel .carousel-control-next {
    right: 0;
}

@media (max-width: 767.98px) {
    .ebapci-testimonials-carousel__ctrl {
        display: none;
    }
}

/* Médiathèque — accueil */
.ebapci-home-media {
    background: linear-gradient(185deg, #ffffff 0%, var(--ebapci-lilac-mist) 42%, var(--ebapci-warm-sand) 100%);
    border-bottom: 1px solid var(--ebapci-border);
}

/* Zone très claire (identité) */
.ebapci-section-soft {
    background: linear-gradient(190deg, var(--ebapci-bg-mint) 0%, var(--ebapci-rose-mist) 55%, var(--ebapci-teal-mist) 100%);
    border-top: 1px solid var(--ebapci-border);
    border-bottom: 1px solid var(--ebapci-border);
}

.ebapci-text-body {
    color: var(--ebapci-text) !important;
}

/* Formulaires — champs, focus et cartes (public + admin) */
.ebapci-body .form-label {
    font-weight: 600;
    font-size: 0.8125rem;
    letter-spacing: 0.02em;
    color: var(--ebapci-heading);
    margin-bottom: 0.42rem;
}

.ebapci-body .col-form-label {
    font-weight: 600;
    font-size: 0.875rem;
    color: var(--ebapci-heading);
    padding-bottom: 0;
}

.ebapci-body .form-text {
    color: var(--ebapci-text-muted);
    font-size: 0.8125rem;
    margin-top: 0.35rem;
}

.ebapci-body .form-control,
.ebapci-body .form-select {
    border: 1px solid var(--ebapci-form-border);
    border-radius: var(--ebapci-form-radius);
    padding: 0.55rem 0.95rem;
    font-size: 0.9375rem;
    line-height: 1.45;
    background-color: var(--ebapci-form-bg);
    color: var(--ebapci-heading);
    transition:
        border-color 0.18s ease,
        box-shadow 0.18s ease,
        background-color 0.18s ease;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.03);
}

.ebapci-body .form-select {
    padding-right: 2.4rem;
    cursor: pointer;
}

.ebapci-body .form-control:hover:not(:disabled):not([readonly]):not(:focus),
.ebapci-body .form-select:hover:not(:disabled):not(:focus) {
    border-color: rgba(34, 197, 94, 0.45);
    background-color: #fff;
}

.ebapci-body .form-control:focus,
.ebapci-body .form-select:focus {
    border-color: var(--ebapci-green-primary);
    background-color: #fff;
    box-shadow:
        inset 0 1px 2px rgba(0, 0, 0, 0.03),
        0 0 0 3px var(--ebapci-form-focus-ring);
    outline: 0;
}

.ebapci-body textarea.form-control {
    min-height: 6.5rem;
    resize: vertical;
}

.ebapci-body .form-control::placeholder {
    color: var(--ebapci-text-muted);
    opacity: 0.9;
}

.ebapci-body input[type="file"].form-control {
    padding: 0.5rem 0.75rem;
    line-height: 1.45;
    background-color: #fff;
}

.ebapci-body .form-control-color {
    min-height: 2.85rem;
    border-radius: var(--ebapci-form-radius);
    padding: 0.3rem;
    cursor: pointer;
}

.ebapci-body .form-control:disabled,
.ebapci-body .form-select:disabled {
    background-color: rgba(0, 0, 0, 0.04);
    opacity: 0.72;
    cursor: not-allowed;
}

.ebapci-body .form-control.is-invalid,
.ebapci-body .form-select.is-invalid {
    border-color: #c62828;
}

.ebapci-body .form-control.is-invalid:focus {
    box-shadow: 0 0 0 3px rgba(198, 40, 40, 0.18);
}

.ebapci-body .form-check {
    padding-left: 1.65rem;
}

.ebapci-body .form-check .form-check-input {
    width: 1.08em;
    height: 1.08em;
    margin-top: 0.18em;
    margin-left: -1.65rem;
    border-radius: 0.32rem;
    border: 1px solid var(--ebapci-form-border);
    transition: box-shadow 0.15s ease, border-color 0.15s ease;
}

.ebapci-body .form-check-input:checked {
    background-color: var(--ebapci-brand-primary);
    border-color: var(--ebapci-brand-primary);
}

.ebapci-body .form-check-input:focus {
    border-color: var(--ebapci-green-primary);
    box-shadow: 0 0 0 3px var(--ebapci-form-focus-ring);
}

.ebapci-body .form-switch .form-check-input {
    width: 2.4em;
    height: 1.22em;
    border-radius: 2rem;
}

.ebapci-body .form-switch .form-check-input:focus {
    --bs-form-switch-bg: var(--ebapci-brand-primary);
}

.ebapci-body .input-group {
    border-radius: var(--ebapci-form-radius);
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.03);
}

.ebapci-body .input-group:focus-within {
    box-shadow: 0 0 0 3px var(--ebapci-form-focus-ring);
}

.ebapci-body .input-group .form-control {
    box-shadow: none;
}

.ebapci-body .input-group-text {
    background: rgba(187, 247, 208, 0.55);
    border-color: var(--ebapci-form-border);
    color: #166534;
    font-weight: 500;
    font-size: 0.875rem;
}

.ebapci-body .input-group > :not(:first-child) {
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
}

.ebapci-body .input-group > :not(:last-child) {
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
}

/* Formulaire dans une carte (connexion, contact, admin) */
.ebapci-body form.card {
    border: 1px solid var(--ebapci-border);
    border-radius: var(--ebapci-radius);
    box-shadow: 0 4px 24px rgba(42, 54, 62, 0.07), 0 1px 3px rgba(0, 0, 0, 0.04);
    overflow: hidden;
}

/* login.php, mot de passe oublié, formulaires admin : .border-0 annule sinon la bordure (BS !important) */
.ebapci-body form.card.border-0 {
    border: 1px solid var(--ebapci-border) !important;
}

.ebapci-body form.card > .card-body {
    padding: 1.4rem 1.5rem;
    background: linear-gradient(165deg, #ffffff 0%, #f3f5f6 100%);
}

.ebapci-body form.card-ebapci > .card-body {
    background: linear-gradient(165deg, #ffffff 0%, #f2f5f6 52%, #ebeef0 100%);
}

.ebapci-body main .accordion-body form .row.g-2 > *,
.ebapci-body main .accordion-body form .row.g-3 > * {
    margin-bottom: 0;
}

.btn-primary {
    --bs-btn-bg: var(--ebapci-brand-primary);
    --bs-btn-border-color: var(--ebapci-brand-primary);
    --bs-btn-hover-bg: var(--ebapci-green-dark);
    --bs-btn-hover-border-color: var(--ebapci-green-dark);
    font-weight: 700;
    border-radius: 999px;
    transition:
        transform 0.25s var(--ebapci-motion-ease),
        box-shadow 0.25s var(--ebapci-motion-ease),
        background-color 0.2s ease,
        border-color 0.2s ease;
}

.ebapci-body .btn-primary {
    background-image: linear-gradient(160deg, #4ade80 0%, #22c55e 28%, var(--ebapci-brand-primary) 72%, #15803d 100%);
    border-color: transparent;
    box-shadow: 0 2px 12px rgba(34, 197, 94, 0.35);
}

.ebapci-body .btn-primary:hover {
    transform: translateY(-2px);
    background-image: linear-gradient(160deg, #86efac 0%, #4ade80 30%, #22c55e 100%);
    box-shadow: 0 8px 28px rgba(22, 163, 74, 0.45), 0 0 0 1px rgba(255, 255, 255, 0.15) inset;
}

.btn-outline-primary {
    font-weight: 600;
    border-radius: 999px;
    transition:
        transform 0.25s var(--ebapci-motion-ease),
        box-shadow 0.25s var(--ebapci-motion-ease),
        background-color 0.2s ease,
        border-color 0.2s ease,
        color 0.2s ease;
}

.ebapci-body .btn-outline-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 18px rgba(34, 197, 94, 0.25);
}

/* Listes événements */
.list-events-ebapci {
    border: 1px solid var(--ebapci-border) !important;
    border-radius: var(--ebapci-radius) !important;
    overflow: hidden;
    box-shadow: var(--ebapci-shadow);
    background: var(--ebapci-surface-elevated);
}

.list-events-ebapci .list-group-item {
    border-color: var(--ebapci-border);
    padding: 1.25rem 1.5rem;
}

.list-events-ebapci .list-group-item:first-child {
    border-top: none;
}

.list-events-ebapci .event-date-stack {
    min-width: 4.5rem;
    text-align: center;
    padding: 0.5rem 0.65rem;
    background: linear-gradient(160deg, var(--ebapci-bg-mint) 0%, var(--ebapci-teal-mist) 100%);
    border-radius: var(--ebapci-radius);
    line-height: 1.2;
}

.list-events-ebapci .event-date-stack .day {
    font-family: var(--ebapci-font-display);
    font-size: 1.5rem;
    font-weight: 700;
    color: #15803d;
}

.list-events-ebapci .event-date-stack .month {
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--ebapci-text-muted);
}

.list-events-ebapci .badge {
    font-weight: 600;
    border-radius: 999px;
    padding: 0.35em 0.75em;
}

.list-events-ebapci .event-title {
    font-family: var(--ebapci-font-display);
    color: var(--ebapci-heading);
    font-weight: 600;
}

/* Page événements — en-tête + cartes */
.ebapci-events-hero {
    border-radius: 0 0 var(--ebapci-radius-lg) var(--ebapci-radius-lg);
}

.ebapci-events-kicker {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    color: rgba(241, 229, 201, 0.95);
    margin-bottom: 0.5rem;
}

.ebapci-events-hero-title {
    font-family: var(--ebapci-font-display);
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.2;
    font-size: clamp(1.65rem, 4vw, 2.25rem);
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.12);
}

.ebapci-events-hero-lead {
    font-size: 1.05rem;
    line-height: 1.55;
    opacity: 0.94;
    max-width: 38rem;
}

.ebapci-events-hero-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 5rem;
    height: 5rem;
    border-radius: 1.25rem;
    font-size: 2.1rem;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.28);
    color: var(--ebapci-accent-warm);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
}

.ebapci-events-alert {
    border: 1px solid rgba(230, 126, 34, 0.2);
}

.ebapci-events-empty-icon {
    width: 4.5rem;
    height: 4.5rem;
    border-radius: 1.15rem;
    font-size: 2rem;
    background: linear-gradient(145deg, rgba(77, 102, 114, 0.14) 0%, rgba(58, 114, 111, 0.12) 100%);
    color: var(--ebapci-slate);
}

.ebapci-events-empty-title {
    font-family: var(--ebapci-font-display);
    color: var(--ebapci-heading);
    font-weight: 600;
}

.ebapci-events-member-hint {
    background: linear-gradient(135deg, var(--ebapci-slate-soft) 0%, rgba(255, 255, 255, 0.98) 100%);
    border: 1px solid var(--ebapci-border);
    box-shadow: var(--ebapci-shadow);
}

.ebapci-events-member-hint__icon {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 0.75rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(145deg, rgba(77, 102, 114, 0.16) 0%, rgba(58, 114, 111, 0.1) 100%);
    color: var(--ebapci-slate);
    font-size: 1.25rem;
}

.ebapci-event-card__date {
    min-width: 4.75rem;
    text-align: center;
    padding: 0.65rem 0.75rem;
    background: linear-gradient(180deg, var(--ebapci-bg-mint) 0%, var(--ebapci-teal-mist) 100%);
    border: 1px solid var(--ebapci-border);
    border-radius: var(--ebapci-radius);
    line-height: 1.15;
}

.ebapci-event-card__day {
    display: block;
    font-family: var(--ebapci-font-display);
    font-size: 1.6rem;
    font-weight: 700;
    color: #15803d;
}

.ebapci-event-card__month {
    display: block;
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: var(--ebapci-text-muted);
    margin-top: 0.2rem;
}

.ebapci-event-card__title {
    font-family: var(--ebapci-font-display);
    font-weight: 600;
    color: var(--ebapci-heading);
}

.ebapci-event-card__title a {
    transition: color 0.15s ease;
}

.ebapci-event-card__title a:hover {
    color: var(--ebapci-brand-primary);
}

.ebapci-event-card__desc {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.ebapci-event-card__meta {
    padding-top: 0.15rem;
    text-align: left;
}

@media (min-width: 768px) {
    .ebapci-event-card__meta {
        text-align: right;
        min-width: 9rem;
    }
}

.ebapci-event-card__meta-icon {
    color: var(--ebapci-green-primary);
    opacity: 0.85;
    flex-shrink: 0;
}

.ebapci-event-card__footer {
    border-color: var(--ebapci-border) !important;
}

.ebapci-event-badge {
    font-weight: 600;
    border-radius: 999px;
    padding: 0.35em 0.8em;
    font-size: 0.72rem;
    letter-spacing: 0.04em;
}

.ebapci-event-badge--default {
    background: rgba(187, 247, 208, 0.85);
    color: #166534;
}

.ebapci-event-badge--culte {
    background: rgba(74, 222, 128, 0.35);
    color: #14532d;
}

.ebapci-event-badge--priere {
    background: rgba(123, 31, 162, 0.12);
    color: #6a1b9a;
}

.ebapci-event-badge--reunion {
    background: rgba(21, 101, 192, 0.12);
    color: #0d47a1;
}

.ebapci-event-badge--formation {
    background: rgba(0, 105, 92, 0.12);
    color: #00695c;
}

.ebapci-event-badge--commun {
    background: rgba(200, 169, 81, 0.2);
    color: #6d4c12;
}

/* Alertes annonce accueil (.dismissible : place pour la croix Bootstrap) */
.ebapci-announcement .alert {
    border-radius: var(--ebapci-radius);
    border: none;
    box-shadow: var(--ebapci-shadow);
    padding-right: 3rem;
}

.ebapci-announcement .alert .btn-close {
    padding: 0.85rem 0.85rem;
}

.ebapci-espace-announcement .alert.alert-dismissible {
    padding-right: 3rem;
}

.ebapci-announcement__body {
    display: block;
    margin-top: 0.25rem;
}

/* Pied de page — vert profond lumineux */
.footer-ebapci {
    background: linear-gradient(200deg, #14532d 0%, #166534 38%, #134e4a 72%, #0f172a 100%);
    color: rgba(255, 255, 255, 0.9);
    padding-top: 3rem;
    padding-bottom: 2rem;
    margin-top: 0;
}

.footer-ebapci .footer-brand {
    font-family: var(--ebapci-font-display);
    font-weight: 700;
    font-size: 1.25rem;
    letter-spacing: -0.02em;
    color: #fff;
}

.footer-ebapci a.footer-link {
    color: rgba(255, 255, 255, 0.78);
    text-decoration: none;
    transition: color 0.15s ease;
}

.footer-ebapci a.footer-link:hover {
    color: var(--ebapci-accent-warm);
}

.footer-ebapci .text-foot-muted {
    color: rgba(255, 255, 255, 0.55);
    font-size: 0.875rem;
}

.footer-ebapci hr {
    border-color: rgba(255, 255, 255, 0.12);
    opacity: 1;
}

.footer-ebapci .footer-col-title {
    letter-spacing: 0.08em;
    color: rgba(255, 255, 255, 0.55);
}

.footer-ebapci .link-with-icon {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
}

.footer-ebapci .link-with-icon .bi {
    font-size: 1rem;
    opacity: 0.75;
    flex-shrink: 0;
}

.footer-ebapci .link-with-icon:hover .bi {
    opacity: 1;
    color: var(--ebapci-copper-light);
}

/* Admin — barre navigation */
.admin-navbar-ebapci {
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.35);
}

.admin-navbar-ebapci .navbar-brand {
    font-weight: 600;
    letter-spacing: -0.02em;
}

.admin-navbar-ebapci__brand-icon {
    width: 2rem;
    height: 2rem;
    font-size: 1rem;
    background: rgba(25, 135, 84, 0.35);
    color: #86efac;
}

.admin-navbar-ebapci .nav-link {
    border-radius: 0.375rem;
}

.admin-navbar-ebapci .nav-link:hover {
    background: rgba(255, 255, 255, 0.06);
}

/* Espace membre — barre navigation (même charte que .navbar-ebapci) */
.navbar-espace-ebapci {
    --bs-navbar-padding-y: 0.65rem;
    background: linear-gradient(195deg, #14532d 0%, #166534 32%, #15803d 58%, #0f766e 100%) !important;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    border-bottom: 2px solid rgba(250, 250, 250, 0.2) !important;
    box-shadow: 0 4px 20px rgba(22, 101, 52, 0.35);
    transition: box-shadow 0.2s ease;
}

.navbar-espace-ebapci .navbar-brand {
    font-family: var(--ebapci-font-display);
    font-weight: 700;
    font-size: 1.2rem;
    color: #fff !important;
    letter-spacing: -0.02em;
}

.navbar-espace-ebapci__icon {
    width: 2rem;
    height: 2rem;
    font-size: 1rem;
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
}

.navbar-espace-ebapci .nav-link {
    color: rgba(255, 255, 255, 0.92) !important;
    font-weight: 500;
    font-size: 0.9rem;
    padding: 0.5rem 0.65rem !important;
    border-radius: 0.375rem;
    transition: color 0.15s ease, background 0.15s ease;
}

.navbar-espace-ebapci .nav-link:hover,
.navbar-espace-ebapci .nav-link:focus {
    color: #fff !important;
    background: rgba(74, 222, 128, 0.2);
}

.navbar-espace-ebapci .nav-link.active {
    color: #fff !important;
    background: rgba(255, 255, 255, 0.22);
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.2);
}

.navbar-espace-ebapci .nav-link .bi {
    font-size: 1.05rem;
    opacity: 0.88;
}

.navbar-espace-ebapci .navbar-toggler {
    border-color: rgba(255, 255, 255, 0.35);
    padding: 0.4rem 0.6rem;
}

.navbar-espace-ebapci .navbar-toggler:focus {
    box-shadow: 0 0 0 0.2rem rgba(255, 255, 255, 0.25);
}

.navbar-espace-ebapci .btn-outline-light {
    border: 1px solid rgba(255, 255, 255, 0.45);
    font-weight: 600;
    border-radius: 999px;
}

.navbar-espace-ebapci .btn-outline-light:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: #fff;
    color: #fff;
}

/* Médiathèque — filtres */
.ebapci-filter-row .btn-outline-secondary.active,
.ebapci-filter-row .btn-outline-secondary:active,
.ebapci-filter-row .btn-outline-secondary:focus-visible {
    background-color: var(--ebapci-brand-primary);
    border-color: var(--ebapci-brand-primary);
    color: #fff;
}

/* Article de blog */
/* Messages (blog) — image sur les cartes */
.ebapci-blog-card-img-wrap {
    overflow: hidden;
}

.ebapci-blog-card-img {
    width: 100%;
    height: 11rem;
    object-fit: cover;
    transition: transform 0.35s ease;
}

.card-hover:hover .ebapci-blog-card-img {
    transform: scale(1.03);
}

.ebapci-blog-card-placeholder {
    height: 11rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(145deg, rgba(77, 102, 114, 0.12) 0%, rgba(58, 114, 111, 0.1) 100%);
    color: var(--ebapci-slate);
    font-size: 2.5rem;
    opacity: 0.85;
}

.ebapci-blog-card-placeholder--compact {
    height: 8rem;
    font-size: 2rem;
}

.ebapci-blog-post-cover {
    margin: 0;
    border-radius: var(--ebapci-radius);
    overflow: hidden;
    box-shadow: var(--ebapci-shadow);
    border: 1px solid var(--ebapci-border);
}

.ebapci-admin-blog-cover-preview {
    max-height: 7.5rem;
    max-width: min(100%, 280px);
    object-fit: contain;
}

/* Médiathèque — aperçu sur les cartes */
.ebapci-media-card-img-wrap {
    overflow: hidden;
    background: rgba(42, 54, 62, 0.06);
}

.ebapci-media-card-img {
    width: 100%;
    height: 11rem;
    object-fit: cover;
    display: block;
    transition: transform 0.35s ease;
}

.ebapci-media-card-img--compact {
    height: 8rem;
}

.card-hover:hover .ebapci-media-card-img {
    transform: scale(1.03);
}

.ebapci-media-card-img-wrap--video .ebapci-media-card-video-el {
    background: #1a1a1a;
}

.ebapci-media-card-play {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    background: rgba(0, 0, 0, 0.25);
    transition: background 0.2s ease;
}

.ebapci-media-card-play .bi {
    font-size: 2.75rem;
    color: #fff;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.4));
    line-height: 1;
}

.card-hover:hover .ebapci-media-card-play {
    background: rgba(0, 0, 0, 0.35);
}

.ebapci-media-card-audio-shell {
    min-height: 11rem;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 1.15rem;
    background: linear-gradient(160deg, rgba(77, 102, 114, 0.08) 0%, var(--ebapci-slate-soft) 100%);
    border-bottom: 1px solid var(--ebapci-border);
}

.ebapci-media-card-audio-shell--compact {
    min-height: 8rem;
    padding: 0.75rem 1rem;
}

.ebapci-media-card-audio-inner {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.65rem;
}

.ebapci-media-card-audio-icon {
    font-size: 1.75rem;
    color: var(--ebapci-slate-mid);
    opacity: 0.85;
    line-height: 1;
}

.ebapci-media-card-audio-el {
    max-width: 100%;
    height: 2.25rem;
}

.ebapci-media-card-pdf-face,
.ebapci-media-card-file-face {
    min-height: 11rem;
    background: linear-gradient(145deg, rgba(183, 28, 28, 0.08) 0%, rgba(255, 255, 255, 0.96) 55%, var(--ebapci-slate-soft) 100%);
    border-bottom: 1px solid var(--ebapci-border);
    color: #c62828;
    font-size: 3.25rem;
    transition: color 0.2s ease, transform 0.2s ease;
}

.ebapci-media-card-pdf-face--compact,
.ebapci-media-card-file-face--compact {
    min-height: 8rem;
    font-size: 2.5rem;
}

.card-hover:hover .ebapci-media-card-pdf-face,
.card-hover:hover .ebapci-media-card-file-face {
    color: #b71c1c;
}

.ebapci-media-card-placeholder {
    height: 11rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(145deg, rgba(77, 102, 114, 0.1) 0%, rgba(58, 114, 111, 0.08) 100%);
    color: var(--ebapci-slate);
    font-size: 2.75rem;
    opacity: 0.88;
}

.ebapci-media-card-placeholder--compact {
    height: 8rem;
    font-size: 2.1rem;
}

.ebapci-blog-article {
    max-width: 720px;
}

.ebapci-blog-title {
    font-family: var(--ebapci-font-display);
    color: var(--ebapci-heading);
    font-weight: 600;
    font-size: clamp(1.65rem, 3vw, 2.25rem);
    letter-spacing: -0.02em;
    line-height: 1.25;
}

.ebapci-breadcrumb {
    --bs-breadcrumb-divider-color: rgba(34, 197, 94, 0.4);
    font-size: 0.875rem;
    padding: 0.5rem 0.85rem;
    background: var(--ebapci-surface-elevated);
    border: 1px solid var(--ebapci-border);
    border-radius: var(--ebapci-radius);
    margin-bottom: 1.5rem;
}

.ebapci-breadcrumb .breadcrumb-item a {
    color: #15803d;
    text-decoration: none;
    font-weight: 500;
}

.ebapci-breadcrumb .breadcrumb-item a:hover {
    text-decoration: underline;
}

.blog-body {
    line-height: 1.75;
    font-size: 1.05rem;
    color: var(--ebapci-text);
}

.card-title a.text-reset:hover {
    color: var(--ebapci-accent-hover) !important;
}

/* Carte / iframe */
.ratio.rounded {
    border-radius: var(--ebapci-radius) !important;
    overflow: hidden;
    border: 1px solid var(--ebapci-border);
    box-shadow: var(--ebapci-shadow);
}

/* Colonnes centrées */
main > .container.py-5 .row.justify-content-center .col-lg-8 > h1:first-child {
    border-bottom: none;
    padding-bottom: 0;
}

main > .container.py-5 .row.justify-content-center .col-lg-8 > h1 {
    font-family: var(--ebapci-font-display);
    color: var(--ebapci-heading);
    font-weight: 600;
    font-size: clamp(1.75rem, 2.5vw, 2.25rem);
    letter-spacing: -0.02em;
    margin-bottom: 1rem !important;
}

/* Page Faire un don */
.ebapci-don-page .ebapci-don-hero {
    margin-left: calc(-0.5 * (100vw - 100%));
    margin-right: calc(-0.5 * (100vw - 100%));
    width: auto;
    max-width: 100vw;
    box-sizing: border-box;
}

@media (min-width: 576px) {
    .ebapci-don-page .ebapci-don-hero {
        margin-left: calc(-50vw + 50%);
        margin-right: calc(-50vw + 50%);
    }
}

.ebapci-don-kicker {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: rgba(241, 229, 201, 0.95);
    margin-bottom: 0.5rem;
}

.ebapci-don-hero-title {
    font-family: var(--ebapci-font-display);
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.2;
    font-size: clamp(1.75rem, 4vw, 2.35rem);
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.12);
}

.ebapci-don-hero-lead {
    font-size: 1.05rem;
    line-height: 1.55;
    opacity: 0.94;
    max-width: 38rem;
}

.ebapci-don-hero-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 5.5rem;
    height: 5.5rem;
    border-radius: 1.35rem;
    font-size: 2.35rem;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.28);
    color: var(--ebapci-accent-warm);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
}

.ebapci-don-alert {
    border: 1px solid transparent;
}

.ebapci-don-alert.alert-info {
    background: linear-gradient(135deg, #e3f2fd 0%, #e8f4fd 100%);
    color: #0d47a1;
    border-color: rgba(13, 71, 161, 0.12);
}

.ebapci-don-alert.alert-warning {
    background: linear-gradient(135deg, #fff8e6 0%, #fff3e0 100%);
    border-color: rgba(230, 126, 34, 0.15);
    color: #5d4037;
}

.ebapci-don-intro {
    background: linear-gradient(180deg, var(--ebapci-slate-soft) 0%, var(--ebapci-teal-mist) 100%);
    border: 1px solid var(--ebapci-border);
    border-radius: var(--ebapci-radius);
    padding: 1.35rem 1.5rem;
    box-shadow: var(--ebapci-shadow);
}

.ebapci-don-intro p:last-child {
    margin-bottom: 0;
}

.ebapci-don-mm-card {
    border-radius: var(--ebapci-radius) !important;
    border: 1px solid var(--ebapci-border) !important;
    background: var(--ebapci-surface-elevated);
    box-shadow: var(--ebapci-shadow);
    overflow: hidden;
}

.ebapci-don-mm-card .card-header {
    font-family: var(--ebapci-font-display);
    font-weight: 600;
    background: linear-gradient(90deg, rgba(77, 102, 114, 0.08) 0%, rgba(255, 255, 255, 0.92) 100%);
    border-bottom: 1px solid var(--ebapci-border);
    padding: 1rem 1.35rem;
}

.ebapci-don-mm-item {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    padding: 1rem 1.35rem;
    border-bottom: 1px solid var(--ebapci-border);
    transition: background 0.15s ease;
}

.ebapci-don-mm-item:last-child {
    border-bottom: 0;
}

.ebapci-don-mm-item:hover {
    background: rgba(229, 237, 241, 0.55);
}

.ebapci-don-mm-item__icon {
    flex-shrink: 0;
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 0.85rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    background: linear-gradient(145deg, rgba(77, 102, 114, 0.12) 0%, rgba(58, 114, 111, 0.1) 100%);
    color: var(--ebapci-slate);
}

.ebapci-don-mm-item__label {
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--ebapci-text-muted);
    margin-bottom: 0.2rem;
}

.ebapci-don-mm-item__value {
    font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--ebapci-heading);
    word-break: break-word;
}

.ebapci-don-mm-note {
    padding: 1rem 1.35rem;
    background: var(--ebapci-teal-mist);
    border-top: 1px solid var(--ebapci-border);
    font-size: 0.9rem;
    color: var(--ebapci-text);
}

.ebapci-don-form .card-header {
    font-family: var(--ebapci-font-display);
    background: linear-gradient(180deg, #fafbfb 0%, var(--ebapci-slate-soft) 100%);
    border-bottom: 1px solid var(--ebapci-border);
    padding: 1.25rem 1.5rem;
}

.ebapci-don-form .card-body {
    padding: 1.5rem;
}

@media (min-width: 768px) {
    .ebapci-don-form .card-body {
        padding: 1.75rem 2rem;
    }
}

.ebapci-don-form-title {
    font-weight: 600;
    font-size: 1.2rem;
    color: var(--ebapci-heading);
    margin: 0;
}

.ebapci-don-actions .btn-lg {
    border-radius: 999px;
    font-weight: 600;
    padding: 0.65rem 1.35rem;
}

/* Réduire les animations si demandé par l’utilisateur ou l’OS */
@media (prefers-reduced-motion: reduce) {
    .hero-banner::before {
        animation: none !important;
        transform: none !important;
        opacity: 1 !important;
    }

    .navbar-ebapci .nav-link-ebapci .bi,
    .ebapci-section-title--with-icon .bi,
    .card-ebapci,
    .card-hover {
        transition-duration: 0.01ms !important;
    }

    .navbar-ebapci .nav-link-ebapci:hover .bi,
    .navbar-ebapci .nav-link-ebapci:focus-visible .bi {
        transform: none;
    }

    .ebapci-section-title--with-icon:hover .bi {
        transform: none;
    }

    .card-hover:hover,
    .card-ebapci.card-hover:hover,
    .ebapci-body .btn-primary:hover,
    .ebapci-body .btn-outline-primary:hover {
        transform: none;
    }

    .ebapci-body .btn-primary:hover,
    .ebapci-body .btn-outline-primary:hover {
        box-shadow: none;
    }
}
