/**
 * Hero Carousel Background
 * Animation de carrousel avec effet ease-in-out custom
 */

.hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

/* Carousel container */
.hero-carousel {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.hero-carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transform: scale(1.1);
    transition: opacity 2s cubic-bezier(0.4, 0, 0.2, 1),
                transform 8s cubic-bezier(0.4, 0, 0.2, 1);
}

.hero-carousel-slide.active {
    opacity: 1;
    transform: scale(1);
    z-index: 1;
}

.hero-carousel-slide.exiting {
    opacity: 0;
    transform: scale(1.05);
    z-index: 0;
}

.hero-carousel-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* Overlay gradient pour améliorer la lisibilité du texte */
.hero-carousel::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        135deg,
        rgba(13, 110, 253, 0.85) 0%,
        rgba(111, 66, 193, 0.75) 50%,
        rgba(220, 53, 69, 0.65) 100%
    );
    z-index: 2;
    pointer-events: none;
}

/* Additional vignette effect */
.hero-carousel::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(
        ellipse at center,
        transparent 0%,
        rgba(0, 0, 0, 0.3) 100%
    );
    z-index: 2;
    pointer-events: none;
}

/* Hero content (text) appears above carousel */
.hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    color: white;
}

.hero-title {
    font-size: clamp(2.5rem, 8vw, 5rem);
    font-weight: 800;
    margin-bottom: 1.5rem;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.5),
                 0 8px 40px rgba(0, 0, 0, 0.3);
    animation: fadeInUp 1s ease-out;
}

.hero-subtitle {
    font-size: clamp(1.2rem, 3vw, 1.8rem);
    margin-bottom: 2rem;
    font-weight: 300;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    animation: fadeInUp 1s ease-out 0.2s both;
}

/* Carousel indicators */
.hero-carousel-indicators {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    gap: 12px;
}

.hero-carousel-indicator {
    width: 40px;
    height: 4px;
    background: rgba(255, 255, 255, 0.4);
    border: none;
    border-radius: 2px;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
}

.hero-carousel-indicator:hover {
    background: rgba(255, 255, 255, 0.6);
}

.hero-carousel-indicator.active {
    background: white;
    width: 60px;
}

/* City label overlay */
.hero-carousel-label {
    position: absolute;
    bottom: 80px;
    right: 40px;
    z-index: 10;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(10px);
    padding: 12px 24px;
    border-radius: 50px;
    color: white;
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    opacity: 0;
    animation: fadeInRight 0.8s ease-out 0.5s forwards;
}

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

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

/* Modern Feature Cards */
.modern-card {
    border: none;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

.modern-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(255, 107, 107, 0.2);
}

.modern-card-small {
    border: none;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 107, 107, 0.1);
}

.modern-card-small:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(255, 107, 107, 0.15);
    border-color: rgba(255, 107, 107, 0.3);
}

.feature-icon {
    font-size: 3.5rem;
    line-height: 1;
    animation: float 3s ease-in-out infinite;
}

.feature-icon-small {
    font-size: 2.5rem;
    line-height: 1;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

/* Feature Cards for non-logged users */
.feature-card {
    background: white;
    border-radius: 20px;
    padding: 2.5rem 2rem;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid transparent;
    height: 100%;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 12px 48px rgba(255, 107, 107, 0.15);
    border-color: rgba(255, 107, 107, 0.2);
}

.feature-card.featured {
    background: linear-gradient(135deg, #FF6B6B 0%, #FF8E53 50%, #FFA07A 100%);
    color: white;
    border-color: transparent;
}

.feature-card.featured:hover {
    box-shadow: 0 12px 48px rgba(255, 107, 107, 0.3);
    transform: translateY(-10px) scale(1.02);
}

.feature-card.featured h4,
.feature-card.featured p {
    color: white;
}

.feature-card-icon {
    width: 80px;
    height: 80px;
    border-radius: 20px;
    background: linear-gradient(135deg, #FF6B6B 0%, #FF8E53 50%, #FFA07A 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    font-size: 2.5rem;
    color: white;
    box-shadow: 0 8px 24px rgba(255, 107, 107, 0.3);
    transition: all 0.3s ease;
}

.feature-card:hover .feature-card-icon {
    transform: rotate(-5deg) scale(1.1);
}

.feature-card-icon.featured {
    background: white;
    color: #FF6B6B;
}

.feature-list {
    list-style: none;
    padding: 0;
    margin-top: 1.5rem;
}

.feature-list li {
    padding: 0.5rem 0;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.feature-list i {
    font-size: 1.25rem;
    flex-shrink: 0;
    color: #FF6B6B;
}

.feature-card.featured .feature-list i {
    color: white;
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, rgba(255, 107, 107, 0.05) 0%, rgba(255, 142, 83, 0.05) 100%);
    border-radius: 24px;
    padding: 4rem 2rem;
    margin-top: 3rem;
    border: 2px solid rgba(255, 107, 107, 0.1);
}

.cta-section h3 {
    background: linear-gradient(135deg, #FF6B6B 0%, #FF8E53 50%, #FFA07A 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Responsive */
@media (max-width: 768px) {
    .hero-carousel-label {
        bottom: 70px;
        right: 20px;
        font-size: 0.85rem;
        padding: 8px 16px;
    }

    .hero-carousel-indicators {
        bottom: 20px;
        gap: 8px;
    }

    .hero-carousel-indicator {
        width: 30px;
        height: 3px;
    }

    .hero-carousel-indicator.active {
        width: 45px;
    }

    .feature-card {
        padding: 2rem 1.5rem;
    }

    .feature-card-icon {
        width: 64px;
        height: 64px;
        font-size: 2rem;
    }

    .cta-section {
        padding: 3rem 1.5rem;
    }
}
