/* 
 * PREMIUM ENHANCEMENTS - MCC CHURCH 2026
 * Optimisations visuelles pour un rendu premium
 */

/* ========================================
   ANIMATIONS PREMIUM
   ======================================== */

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes shimmer {
    0% { background-position: -1000px 0; }
    100% { background-position: 1000px 0; }
}

/* ========================================
   HERO SLIDESHOW PREMIUM
   ======================================== */

.mcc-video-hero {
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.mcc-video-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        135deg,
        rgba(15, 23, 42, 0.9) 0%,
        rgba(30, 41, 59, 0.8) 30%,
        rgba(59, 130, 246, 0.3) 100%
    );
    z-index: 1;
    pointer-events: none;
}

.mcc-video-hero__content {
    position: relative;
    z-index: 10;
    animation: fadeInUp 1.2s ease-out;
}

.mcc-video-hero__title {
    text-shadow: 
        0 2px 10px rgba(0, 0, 0, 0.5),
        0 4px 20px rgba(59, 130, 246, 0.3),
        0 0 30px rgba(245, 158, 11, 0.2);
    letter-spacing: 2px;
    font-weight: 900;
}

.mcc-video-hero__subtitle {
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
    font-weight: 500;
    letter-spacing: 0.5px;
}

/* Badge Premium */
.mcc-video-hero__badge {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.2), rgba(217, 119, 6, 0.2));
    backdrop-filter: blur(10px);
    border: 1px solid rgba(245, 158, 11, 0.3);
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--mcc-gold);
    display: inline-block;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.2);
    animation: fadeIn 0.8s ease-out 0.3s both;
}

/* ========================================
   SECTION VIDEO INTRO PREMIUM
   ======================================== */

.mcc-video-intro {
    animation: fadeInUp 1s ease-out;
}

.mcc-video-intro__container {
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.4),
        0 0 0 1px rgba(59, 130, 246, 0.1);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    height: 600px;
    min-height: 600px;
}

.mcc-video-intro__container img,
.mcc-video-intro__video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: high-quality;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    transform: translateZ(0);
}

.mcc-video-intro__container:hover {
    transform: translateY(-10px);
    box-shadow: 
        0 30px 80px rgba(0, 0, 0, 0.5),
        0 0 0 1px rgba(59, 130, 246, 0.2),
        0 0 40px rgba(59, 130, 246, 0.15);
}

.mcc-video-intro__overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 3rem 2rem;
    /* STATIC IMAGE: Light gradient at bottom only for text */
    background: linear-gradient(
        to top,
        rgba(15, 23, 42, 0.92) 0%,
        rgba(15, 23, 42, 0.65) 30%,
        rgba(15, 23, 42, 0.15) 70%,
        transparent 100%
    );
    /* NO blur on static images - text shadow is enough */
    backdrop-filter: none;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    z-index: 2;
}

/* VIDEO MODE: Add backdrop blur when using video */
.mcc-video-intro--video .mcc-video-intro__overlay {
    background: linear-gradient(
        to top,
        rgba(15, 23, 42, 0.98) 0%,
        rgba(30, 41, 59, 0.85) 40%,
        rgba(30, 41, 59, 0.3) 80%,
        transparent 100%
    );
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.mcc-video-intro__text {
    font-size: clamp(1.2rem, 2.5vw, 1.7rem);
    font-weight: 600;
    /* Strong text shadow - NOT blurring the image */
    text-shadow: 
        0 2px 8px rgba(0, 0, 0, 0.8),
        0 4px 16px rgba(0, 0, 0, 0.6),
        0 0 30px rgba(0, 0, 0, 0.4);
    line-height: 1.7;
    letter-spacing: 0.5px;
    color: #FFFFFF;
    max-width: 800px;
    text-align: center;
}

/* VIDEO MODE: Even stronger shadow for moving video */
.mcc-video-intro--video .mcc-video-intro__text {
    text-shadow: 
        0 2px 10px rgba(0, 0, 0, 0.9),
        0 4px 20px rgba(0, 0, 0, 0.7),
        0 0 40px rgba(59, 130, 246, 0.3);
}

/* ========================================
   CARTES PASTEURS PREMIUM
   ======================================== */

.mcc-pastor-card {
    background: linear-gradient(
        135deg,
        rgba(30, 41, 59, 0.7) 0%,
        rgba(51, 65, 85, 0.5) 100%
    );
    backdrop-filter: blur(20px);
    border: 1px solid rgba(59, 130, 246, 0.15);
    border-radius: 20px;
    padding: 2rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 
        0 10px 30px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
    position: relative;
    overflow: hidden;
}

.mcc-pastor-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(59, 130, 246, 0.1),
        transparent
    );
    transition: left 0.6s ease;
}

.mcc-pastor-card:hover::before {
    left: 100%;
}

.mcc-pastor-card:hover {
    transform: translateY(-10px) scale(1.02);
    border-color: rgba(59, 130, 246, 0.3);
    box-shadow: 
        0 20px 50px rgba(0, 0, 0, 0.4),
        0 0 0 1px rgba(59, 130, 246, 0.2),
        0 0 30px rgba(59, 130, 246, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.mcc-pastor-card__photo {
    box-shadow: 
        0 10px 30px rgba(0, 0, 0, 0.4),
        0 0 0 4px rgba(245, 158, 11, 0.2),
        0 0 20px rgba(245, 158, 11, 0.1);
    transition: all 0.4s ease;
}

.mcc-pastor-card:hover .mcc-pastor-card__photo {
    box-shadow: 
        0 15px 40px rgba(0, 0, 0, 0.5),
        0 0 0 4px rgba(245, 158, 11, 0.4),
        0 0 30px rgba(245, 158, 11, 0.2);
    transform: scale(1.05);
}

.mcc-pastor-card__name {
    font-weight: 800;
    letter-spacing: 0.5px;
    background: linear-gradient(135deg, #ffffff, #e5e7eb);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.mcc-pastor-card__role {
    color: var(--mcc-gold);
    font-weight: 700;
    letter-spacing: 0.5px;
    text-shadow: 0 2px 8px rgba(245, 158, 11, 0.3);
}

/* ========================================
   CARTES INFORMATIONS PREMIUM
   ======================================== */

.mcc-info-card {
    background: linear-gradient(
        135deg,
        rgba(30, 41, 59, 0.8) 0%,
        rgba(51, 65, 85, 0.6) 100%
    );
    backdrop-filter: blur(20px);
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: 20px;
    padding: 2rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 
        0 10px 30px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.mcc-info-card:hover {
    transform: translateY(-8px);
    border-color: rgba(59, 130, 246, 0.4);
    box-shadow: 
        0 20px 50px rgba(0, 0, 0, 0.4),
        0 0 30px rgba(59, 130, 246, 0.15);
}

.mcc-info-card__icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--mcc-gold), var(--mcc-orange));
    box-shadow: 
        0 8px 25px rgba(245, 158, 11, 0.3),
        0 0 30px rgba(245, 158, 11, 0.15);
    transition: all 0.4s ease;
}

.mcc-info-card:hover .mcc-info-card__icon {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 
        0 12px 35px rgba(245, 158, 11, 0.4),
        0 0 40px rgba(245, 158, 11, 0.25);
}

/* ========================================
   CARTES DÉPARTEMENTS PREMIUM
   ======================================== */

.mcc-dept-card {
    background: linear-gradient(
        135deg,
        rgba(30, 41, 59, 0.7) 0%,
        rgba(51, 65, 85, 0.5) 100%
    );
    backdrop-filter: blur(15px);
    border: 1px solid rgba(59, 130, 246, 0.15);
    border-radius: 16px;
    padding: 1.8rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.mcc-dept-card:hover {
    transform: translateY(-6px);
    border-color: rgba(59, 130, 246, 0.3);
    box-shadow: 
        0 15px 40px rgba(0, 0, 0, 0.3),
        0 0 25px rgba(59, 130, 246, 0.1);
}

.mcc-dept-card__icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--mcc-royal-blue), var(--mcc-royal-blue-hover));
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.3);
    transition: all 0.3s ease;
}

.mcc-dept-card:hover .mcc-dept-card__icon {
    transform: scale(1.1);
    box-shadow: 0 10px 30px rgba(59, 130, 246, 0.4);
}

/* ========================================
   GALERIE PREMIUM
   ======================================== */

.mcc-gallery__item {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.mcc-gallery__item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        135deg,
        rgba(59, 130, 246, 0.1) 0%,
        rgba(245, 158, 11, 0.1) 100%
    );
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 1;
    pointer-events: none;
}

.mcc-gallery__item:hover::before {
    opacity: 1;
}

.mcc-gallery__item:hover {
    transform: translateY(-10px) scale(1.03);
    box-shadow: 
        0 20px 50px rgba(0, 0, 0, 0.4),
        0 0 30px rgba(59, 130, 246, 0.2);
}

.mcc-gallery__overlay {
    background: linear-gradient(
        to top,
        rgba(15, 23, 42, 0.9) 0%,
        rgba(15, 23, 42, 0.4) 50%,
        transparent 100%
    );
    backdrop-filter: blur(5px);
}

/* ========================================
   BOUTONS PREMIUM
   ======================================== */

.mcc-btn {
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    font-size: 0.95rem;
    border-radius: 50px;
    padding: 1rem 2rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.mcc-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

.mcc-btn:hover::before {
    width: 300px;
    height: 300px;
}

.mcc-btn--gold {
    box-shadow: 
        0 4px 15px rgba(245, 158, 11, 0.3),
        0 0 20px rgba(245, 158, 11, 0.15);
}

.mcc-btn--gold:hover {
    transform: translateY(-3px);
    box-shadow: 
        0 8px 25px rgba(245, 158, 11, 0.4),
        0 0 30px rgba(245, 158, 11, 0.25);
}

.mcc-btn--blue {
    box-shadow: 
        0 4px 15px rgba(59, 130, 246, 0.3),
        0 0 20px rgba(59, 130, 246, 0.15);
}

.mcc-btn--blue:hover {
    transform: translateY(-3px);
    box-shadow: 
        0 8px 25px rgba(59, 130, 246, 0.4),
        0 0 30px rgba(59, 130, 246, 0.25);
}

.mcc-btn--coral {
    box-shadow: 
        0 4px 15px rgba(239, 68, 68, 0.3),
        0 0 20px rgba(239, 68, 68, 0.15);
}

.mcc-btn--coral:hover {
    transform: translateY(-3px);
    box-shadow: 
        0 8px 25px rgba(239, 68, 68, 0.4),
        0 0 30px rgba(239, 68, 68, 0.25);
}

/* ========================================
   TITRES DE SECTION PREMIUM
   ======================================== */

.mcc-section-title__heading {
    font-weight: 900;
    letter-spacing: 1px;
    text-shadow: 
        0 2px 10px rgba(0, 0, 0, 0.3),
        0 0 20px rgba(59, 130, 246, 0.2);
    position: relative;
    display: inline-block;
}

.mcc-section-title__heading i {
    background: linear-gradient(135deg, var(--mcc-gold), var(--mcc-orange));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 2px 8px rgba(245, 158, 11, 0.3));
}

.mcc-section-title__subtitle {
    font-weight: 600;
    letter-spacing: 0.5px;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

/* ========================================
   PROGRAMME HEBDOMADAIRE PREMIUM
   ======================================== */

.mcc-programme-item {
    background: linear-gradient(
        135deg,
        rgba(30, 41, 59, 0.8) 0%,
        rgba(51, 65, 85, 0.6) 100%
    );
    backdrop-filter: blur(15px);
    border-left: 4px solid var(--mcc-royal-blue);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.mcc-programme-item:hover {
    transform: translateX(10px);
    border-left-color: var(--mcc-gold);
    box-shadow: 
        0 12px 35px rgba(0, 0, 0, 0.3),
        -4px 0 20px rgba(245, 158, 11, 0.2);
}

.mcc-programme-item__day {
    font-weight: 800;
    letter-spacing: 1px;
    color: var(--mcc-gold);
    text-shadow: 0 2px 8px rgba(245, 158, 11, 0.3);
}

/* ========================================
   FOOTER PREMIUM
   ======================================== */

.mcc-footer {
    background: linear-gradient(
        180deg,
        rgba(15, 23, 42, 0.95) 0%,
        rgba(7, 11, 20, 1) 100%
    );
    backdrop-filter: blur(20px);
    border-top: 1px solid rgba(59, 130, 246, 0.2);
    box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.3);
}

.mcc-footer__social a {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.mcc-footer__social a:hover {
    transform: translateY(-5px) scale(1.1);
    box-shadow: 
        0 8px 20px rgba(59, 130, 246, 0.4),
        0 0 25px rgba(59, 130, 246, 0.3);
}

/* ========================================
   ANIMATIONS AU SCROLL
   ======================================== */

.mcc-fade-in {
    opacity: 0;
    animation: fadeInUp 0.8s ease-out forwards;
}

.mcc-fade-in:nth-child(1) { animation-delay: 0.1s; }
.mcc-fade-in:nth-child(2) { animation-delay: 0.2s; }
.mcc-fade-in:nth-child(3) { animation-delay: 0.3s; }
.mcc-fade-in:nth-child(4) { animation-delay: 0.4s; }
.mcc-fade-in:nth-child(5) { animation-delay: 0.5s; }
.mcc-fade-in:nth-child(6) { animation-delay: 0.6s; }

/* ========================================
   RESPONSIVE PREMIUM
   ======================================== */

@media (max-width: 768px) {
    .mcc-pastor-card,
    .mcc-info-card,
    .mcc-dept-card {
        margin-bottom: 1.5rem;
    }
    
    .mcc-video-hero__title {
        font-size: clamp(2rem, 8vw, 3rem);
    }
    
    .mcc-btn {
        padding: 0.9rem 1.8rem;
        font-size: 0.9rem;
    }

    .mcc-video-intro__container {
        height: 400px;
        min-height: 400px;
    }

    .mcc-video-intro__overlay {
        padding: 2rem 1.5rem;
    }

    .mcc-video-intro__text {
        font-size: 1rem;
        line-height: 1.5;
    }
}

/* ========================================
   EFFETS DE PROFONDEUR
   ======================================== */

.mcc-section {
    position: relative;
}

.mcc-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    height: 1px;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(59, 130, 246, 0.3),
        transparent
    );
}

/* ========================================
   OPTIMISATION GLOBALE DES IMAGES PREMIUM
   ======================================== */

/* Toutes les images du site - rendu premium */
img {
    image-rendering: -webkit-optimize-contrast;
    image-rendering: high-quality;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    transform: translateZ(0);
}

/* Images dans les cartes et sections */
.mcc-campus-card img,
.mcc-pastor-card img,
.mcc-testimonial img,
.mcc-info-card img {
    image-rendering: -webkit-optimize-contrast;
    image-rendering: high-quality;
}

/* Galerie d'images */
.mcc-gallery img,
.mcc-slideshow img {
    object-fit: cover;
    object-position: center;
    image-rendering: high-quality;
}

/* ========================================
   TEXTURE SUBTILE
   ======================================== */

body {
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 20% 80%, rgba(59, 130, 246, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(245, 158, 11, 0.03) 0%, transparent 50%);
    pointer-events: none;
    z-index: -1;
}
