/**
 * Hero Section Enhancements
 * Animations, parallax, et améliorations visuelles
 */

/* =============================================================================
   HERO SECTION AMÉLIORÉE
   ============================================================================= */

/* Hero avec overlay gradient amélioré */
.background {
    position: relative;
    overflow: hidden;
}

.background::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        180deg,
        rgba(0, 0, 0, 0.3) 0%,
        rgba(0, 0, 0, 0.1) 50%,
        rgba(0, 0, 0, 0.5) 100%
    );
    z-index: 1;
    pointer-events: none;
}

.background .centered-text {
    position: relative;
    z-index: 2;
}

/* Animation d'entrée du texte hero */
.background h1 {
    animation: heroFadeInUp 1.2s ease-out;
    animation-fill-mode: both;
}

.background h2 {
    animation: heroFadeInUp 1.2s ease-out 0.3s;
    animation-fill-mode: both;
}

@keyframes heroFadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* =============================================================================
   CTA BUTTON - BOOKING
   ============================================================================= */

.hero-cta {
    display: inline-block;
    margin-top: 40px;
    padding: 16px 48px;
    font-size: 16px;
    font-weight: 400;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: white;
    background: transparent;
    border: 2px solid rgba(255, 255, 255, 0.8);
    border-radius: 50px;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    animation: heroFadeInUp 1.2s ease-out 0.6s;
    animation-fill-mode: both;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    z-index: 10;
}

.hero-cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        120deg,
        transparent,
        rgba(255, 255, 255, 0.3),
        transparent
    );
    transition: left 0.5s;
}

.hero-cta:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: white;
    transform: translateY(-3px);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.hero-cta:hover::before {
    left: 100%;
}

.hero-cta:active {
    transform: translateY(-1px);
}

/* =============================================================================
   SCROLL INDICATOR
   ============================================================================= */

.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    animation: scrollBounce 2s ease-in-out infinite;
    cursor: pointer;
}

.scroll-indicator::before {
    content: '';
    display: block;
    width: 30px;
    height: 50px;
    border: 2px solid rgba(255, 255, 255, 0.6);
    border-radius: 25px;
    position: relative;
}

.scroll-indicator::after {
    content: '';
    display: block;
    width: 6px;
    height: 10px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 3px;
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    animation: scrollDot 2s ease-in-out infinite;
}

@keyframes scrollBounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(10px); }
}

@keyframes scrollDot {
    0%, 100% { opacity: 1; transform: translateX(-50%) translateY(0); }
    50% { opacity: 0.3; transform: translateX(-50%) translateY(15px); }
}

/* =============================================================================
   PARALLAX EFFECT (JavaScript enhanced)
   ============================================================================= */

.parallax-bg {
    will-change: transform;
    transition: transform 0.1s linear;
}

/* =============================================================================
   VIDEO BACKGROUND (optionnel)
   ============================================================================= */

.hero-video-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    overflow: hidden;
    z-index: -2;
}

.hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    object-fit: cover;
}

.hero-video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
}

/* =============================================================================
   FAITH SECTION ENHANCEMENTS
   ============================================================================= */

.faith-section {
    position: relative;
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(
        135deg,
        rgba(135, 69, 48, 0.9) 0%,
        rgba(56, 54, 55, 0.95) 100%
    );
    overflow: hidden;
}

.faith-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(
        ellipse at center,
        rgba(255, 210, 127, 0.1) 0%,
        transparent 70%
    );
    animation: faithGlow 8s ease-in-out infinite alternate;
}

@keyframes faithGlow {
    0% { transform: translate(0, 0) scale(1); opacity: 0.5; }
    100% { transform: translate(5%, 5%) scale(1.1); opacity: 0.8; }
}

.faith-message {
    position: relative;
    z-index: 2;
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    font-weight: 300;
    font-style: italic;
    color: rgba(255, 255, 255, 0.95);
    text-align: center;
    max-width: 800px;
    padding: 0 20px;
    line-height: 1.6;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

/* =============================================================================
   SECTIONS ANIMATIONS
   ============================================================================= */

/* Fade in on scroll */
.fade-in-section {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in-section.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger children */
.stagger-children > * {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.stagger-children.visible > *:nth-child(1) { transition-delay: 0.1s; }
.stagger-children.visible > *:nth-child(2) { transition-delay: 0.2s; }
.stagger-children.visible > *:nth-child(3) { transition-delay: 0.3s; }
.stagger-children.visible > *:nth-child(4) { transition-delay: 0.4s; }
.stagger-children.visible > *:nth-child(5) { transition-delay: 0.5s; }

.stagger-children.visible > * {
    opacity: 1;
    transform: translateY(0);
}

/* =============================================================================
   CARDS & HOVER EFFECTS
   ============================================================================= */

.card-hover {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card-hover:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

/* =============================================================================
   ENHANCED NAVIGATION
   ============================================================================= */

nav {
    transition: background-color 0.3s ease, backdrop-filter 0.3s ease;
}

nav.scrolled {
    background-color: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

nav ul li a {
    position: relative;
    transition: color 0.3s ease;
}

nav ul li a::after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 50%;
    width: 0;
    height: 2px;
    background: rgba(255, 210, 127, 0.8);
    transition: width 0.3s ease, left 0.3s ease;
}

nav ul li a:hover::after {
    width: 80%;
    left: 10%;
}

/* =============================================================================
   RESPONSIVE ADJUSTMENTS
   ============================================================================= */

@media (max-width: 768px) {
    .hero-cta {
        padding: 14px 36px;
        font-size: 14px;
    }
    
    .scroll-indicator {
        bottom: 20px;
    }
    
    .scroll-indicator::before {
        width: 24px;
        height: 40px;
    }
    
    .faith-message {
        font-size: 1.3rem;
        padding: 0 15px;
    }
}

/* =============================================================================
   LOADING SKELETON
   ============================================================================= */

.skeleton {
    background: linear-gradient(
        90deg,
        rgba(255, 255, 255, 0.1) 25%,
        rgba(255, 255, 255, 0.2) 50%,
        rgba(255, 255, 255, 0.1) 75%
    );
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite;
}

@keyframes skeleton-loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* =============================================================================
   DARK MODE SUPPORT
   ============================================================================= */

:root {
    --hero-overlay-light: rgba(0, 0, 0, 0.3);
    --hero-overlay-dark: rgba(0, 0, 0, 0.5);
}

@media (prefers-color-scheme: dark) {
    .background::before {
        background: linear-gradient(
            180deg,
            var(--hero-overlay-dark) 0%,
            rgba(0, 0, 0, 0.3) 50%,
            rgba(0, 0, 0, 0.7) 100%
        );
    }
}

/* Manual dark mode toggle */
[data-theme="dark"] .background::before {
    background: linear-gradient(
        180deg,
        var(--hero-overlay-dark) 0%,
        rgba(0, 0, 0, 0.3) 50%,
        rgba(0, 0, 0, 0.7) 100%
    );
}
