/* Mosquée Programme Carrousel v2 — Front */
.mpc-container, .mpc-container * { box-sizing: border-box; }
.mpc-container {
    --mpc-green: #004B39; --mpc-green-2: #006B50; --mpc-gold: #DB9E30; --mpc-gold-2: #f0c14b;
    --mpc-img-h: 620px;
    font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    margin: 0 auto; background: #fff; border-radius: 22px; overflow: hidden;
    box-shadow: 0 24px 60px rgba(0,75,57,.18);
}

/* Header */
.mpc-header {
    background: linear-gradient(135deg, var(--mpc-green) 0%, var(--mpc-green-2) 100%);
    padding: 34px 24px 28px; text-align: center; position: relative;
}
.mpc-header::before {
    content: ''; position: absolute; inset: 0; pointer-events: none;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M30 0L60 30L30 60L0 30Z' fill='%23ffffff' fill-opacity='0.03'/%3E%3C/svg%3E");
}
.mpc-logo { width: 68px; height: auto; margin-bottom: 10px; filter: drop-shadow(0 4px 8px rgba(0,0,0,.3)); position: relative; }
.mpc-mosque-name { color: var(--mpc-gold); font-size: .85em; font-weight: 600; letter-spacing: 3px; text-transform: uppercase; margin: 0 0 10px; position: relative; }
.mpc-title { color: #fff; font-size: 1.7em; font-weight: 700; letter-spacing: 3px; margin: 0; line-height: 1.2; position: relative; }
.mpc-decoration { display: flex; align-items: center; justify-content: center; gap: 12px; margin-top: 12px; position: relative; }
.mpc-decoration span { width: 60px; height: 1px; background: linear-gradient(90deg, transparent, var(--mpc-gold), transparent); }
.mpc-decoration i { width: 8px; height: 8px; background: var(--mpc-gold); transform: rotate(45deg); }

/* Carrousel */
.mpc-carousel { position: relative; background: #0b2a22; }
.mpc-track { position: relative; }
.mpc-slide { display: none; }
.mpc-slide.is-active { display: block; animation: mpcFade .45s ease; }
@keyframes mpcFade { from { opacity: 0; transform: scale(.985); } to { opacity: 1; transform: none; } }

/* Image plein cadre, entière, jamais rognée, fond flou */
.mpc-figure { position: relative; margin: 0; overflow: hidden; background: #0b2a22; }
.mpc-blur {
    position: absolute; inset: -30px; background-size: cover; background-position: center;
    filter: blur(28px) brightness(.55) saturate(1.2); transform: scale(1.15);
}
.mpc-img {
    position: relative; display: block; width: 100%; height: auto;
    max-height: var(--mpc-img-h); object-fit: contain; margin: 0 auto;
    filter: drop-shadow(0 12px 30px rgba(0,0,0,.45));
    cursor: zoom-in; transition: transform .35s ease;
}
.mpc-container[data-lightbox="0"] .mpc-img { cursor: default; }
.mpc-figure:hover .mpc-img { transform: scale(1.01); }
.mpc-badge {
    position: absolute; top: 16px; left: 16px; z-index: 2;
    background: linear-gradient(135deg, var(--mpc-gold), #c78a20); color: var(--mpc-green);
    padding: 8px 16px; border-radius: 30px; font-size: .8em; font-weight: 700; letter-spacing: .5px;
    box-shadow: 0 6px 18px rgba(0,0,0,.3);
}
.mpc-zoom {
    position: absolute; bottom: 14px; right: 14px; z-index: 2;
    width: 40px; height: 40px; border: none; border-radius: 50%;
    background: rgba(255,255,255,.92); color: var(--mpc-green); font-size: 18px; cursor: pointer;
    display: grid; place-items: center; box-shadow: 0 4px 14px rgba(0,0,0,.3);
    opacity: .85; transition: all .25s;
}
.mpc-zoom:hover { opacity: 1; background: var(--mpc-gold); transform: scale(1.08); }

/* Caption (optionnelle) */
.mpc-caption { background: #fff; padding: 26px 30px 30px; text-align: center; }
.mpc-when { display: inline-flex; align-items: center; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; justify-content: center; }
.mpc-date {
    background: linear-gradient(135deg, var(--mpc-gold), #c78a20); color: var(--mpc-green);
    padding: 8px 18px; border-radius: 30px; font-weight: 700; font-size: 1em;
    box-shadow: 0 6px 18px rgba(219,158,48,.35);
}
.mpc-time { color: #4a5568; font-style: italic; font-size: .95em; }
.mpc-subject { font-size: 1.45em; font-weight: 700; color: var(--mpc-green); margin: 0 0 12px; line-height: 1.3; }
.mpc-text { color: #4a5568; line-height: 1.7; font-size: 1em; max-width: 680px; margin: 0 auto; }
.mpc-text p { margin: 0 0 10px; }
.mpc-text p:last-child { margin: 0; }
.mpc-text a { color: var(--mpc-green); font-weight: 600; text-decoration: underline; text-decoration-color: var(--mpc-gold); text-underline-offset: 3px; }
.mpc-text a:hover { color: var(--mpc-gold); }
.mpc-btn {
    display: inline-block; margin-top: 18px; padding: 13px 32px; border-radius: 50px;
    background: linear-gradient(135deg, var(--mpc-green), var(--mpc-green-2)); color: #fff !important;
    font-weight: 700; text-decoration: none !important; font-size: .95em;
    box-shadow: 0 8px 22px rgba(0,75,57,.3); transition: all .25s;
}
.mpc-btn:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(0,75,57,.4); background: linear-gradient(135deg, var(--mpc-gold), #c78a20); color: var(--mpc-green) !important; }

/* Flèches, compteur, points */
.mpc-nav {
    position: absolute; top: 50%; transform: translateY(-50%); z-index: 5;
    width: 46px; height: 46px; border: none; border-radius: 50%; cursor: pointer;
    background: rgba(255,255,255,.92); display: grid; place-items: center;
    box-shadow: 0 4px 16px rgba(0,0,0,.25); transition: all .25s;
}
.mpc-nav svg { width: 22px; height: 22px; stroke: var(--mpc-green); stroke-width: 2.5; fill: none; }
.mpc-nav:hover { background: var(--mpc-gold); transform: translateY(-50%) scale(1.08); }
.mpc-prev { left: 14px; } .mpc-next { right: 14px; }
.mpc-counter {
    position: absolute; top: 14px; right: 14px; z-index: 3;
    background: rgba(0,0,0,.45); color: #fff; font-size: .75em; font-weight: 700;
    padding: 5px 11px; border-radius: 20px; letter-spacing: 1px; backdrop-filter: blur(4px);
}
.mpc-dots { display: flex; justify-content: center; gap: 10px; padding: 18px; background: #f4faf7; }
.mpc-dot { width: 11px; height: 11px; border-radius: 50%; background: #cfd8d3; border: none; cursor: pointer; padding: 0; transition: all .3s; }
.mpc-dot:hover { background: #9fb3aa; }
.mpc-dot.active { background: var(--mpc-gold); transform: scale(1.3); box-shadow: 0 0 10px rgba(219,158,48,.6); }

/* Réseaux */
.mpc-social { background: #eef6f2; padding: 22px; text-align: center; }
.mpc-social-title { font-size: .85em; font-weight: 700; color: var(--mpc-green); letter-spacing: 2px; text-transform: uppercase; margin-bottom: 14px; }
.mpc-social-links { display: flex; justify-content: center; gap: 14px; flex-wrap: wrap; }
.mpc-social-link { display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 50%; background: #fff; box-shadow: 0 3px 10px rgba(0,0,0,.1); color: #4a5568; transition: all .3s; }
.mpc-social-link svg { width: 20px; height: 20px; }
.mpc-social-link:hover { transform: translateY(-3px); color: #fff; }
.mpc-social-link.facebook:hover { background: #1877f2; }
.mpc-social-link.instagram:hover { background: linear-gradient(135deg, #f09433, #dc2743, #bc1888); }
.mpc-social-link.youtube:hover { background: #ff0000; }
.mpc-social-link.snapchat:hover { background: #FFFC00; color: #000; }
.mpc-social-link.telegram:hover { background: #0088cc; }

/* Footer */
.mpc-footer { background: linear-gradient(135deg, var(--mpc-green), var(--mpc-green-2)); padding: 16px 20px; text-align: center; }
.mpc-footer-text { color: rgba(255,255,255,.9); font-size: .85em; margin: 0; }
.mpc-footer-text .highlight { color: var(--mpc-gold); font-weight: 600; }

/* Lightbox plein écran */
.mpc-lightbox {
    position: fixed; inset: 0; z-index: 999999; background: rgba(0,20,14,.94);
    display: flex; align-items: center; justify-content: center; padding: 24px;
    opacity: 0; pointer-events: none; transition: opacity .3s;
}
.mpc-lightbox.open { opacity: 1; pointer-events: auto; }
.mpc-lightbox img {
    max-width: 96vw; max-height: 92vh; width: auto; height: auto; object-fit: contain;
    border-radius: 10px; box-shadow: 0 30px 80px rgba(0,0,0,.6);
    transform: scale(.94); transition: transform .3s;
}
.mpc-lightbox.open img { transform: scale(1); }
.mpc-lb-close {
    position: absolute; top: 18px; right: 20px; width: 46px; height: 46px; border: none; border-radius: 50%;
    background: rgba(255,255,255,.95); color: var(--mpc-green); font-size: 22px; cursor: pointer;
    display: grid; place-items: center; box-shadow: 0 4px 16px rgba(0,0,0,.4);
}
.mpc-lb-close:hover { background: var(--mpc-gold); }
.mpc-lb-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 50px; height: 50px; border: none; border-radius: 50%; background: rgba(255,255,255,.9); cursor: pointer; display: grid; place-items: center; }
.mpc-lb-nav svg { width: 24px; height: 24px; stroke: var(--mpc-green); stroke-width: 2.5; fill: none; }
.mpc-lb-nav:hover { background: var(--mpc-gold); }
.mpc-lb-prev { left: 20px; } .mpc-lb-next { right: 20px; }
body.mpc-lb-open { overflow: hidden; }

/* Responsive */
@media (max-width: 700px) {
    .mpc-container { border-radius: 16px; }
    .mpc-header { padding: 24px 18px 20px; }
    .mpc-logo { width: 54px; }
    .mpc-title { font-size: 1.35em; letter-spacing: 2px; }
    .mpc-img { max-height: min(var(--mpc-img-h), 70vh); }
    .mpc-caption { padding: 20px 18px 24px; }
    .mpc-subject { font-size: 1.2em; }
    .mpc-nav { width: 38px; height: 38px; }
    .mpc-nav svg { width: 18px; height: 18px; }
    .mpc-prev { left: 8px; } .mpc-next { right: 8px; }
    .mpc-lb-nav { width: 40px; height: 40px; }
    .mpc-lb-prev { left: 8px; } .mpc-lb-next { right: 8px; }
}
@media (prefers-reduced-motion: reduce) {
    .mpc-slide.is-active { animation: none; }
    .mpc-img, .mpc-nav, .mpc-btn, .mpc-lightbox, .mpc-lightbox img { transition: none; }
}
