/*----------------------------------------------
 * HERO MODERN - Design Premium Unifié
 * Effet Wahou pour pages services
 *----------------------------------------------*/

/* Fix z-index for navbar dropdowns */
#header .dropdown-menu,
.navbar .dropdown-menu {
    z-index: 10000 !important;
}

/* Hero Container */
.hero-modern {
    position: relative;
    z-index: 1;
    position: relative;
    min-height: 50vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a2e 50%, #16213e 100%);
}

/* Animated Background Gradient */
.hero-modern::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(ellipse at 20% 50%, rgba(26, 171, 179, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 50%, rgba(255, 193, 7, 0.1) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 100%, rgba(26, 171, 179, 0.1) 0%, transparent 50%);
    animation: heroGradientPulse 8s ease-in-out infinite;
}

@keyframes heroGradientPulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.8; transform: scale(1.05); }
}

/* Floating Particles Effect */
.hero-modern::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        radial-gradient(2px 2px at 20px 30px, rgba(255,255,255,0.15), transparent),
        radial-gradient(2px 2px at 40px 70px, rgba(255,255,255,0.1), transparent),
        radial-gradient(1px 1px at 90px 40px, rgba(255,255,255,0.15), transparent),
        radial-gradient(2px 2px at 130px 80px, rgba(255,255,255,0.1), transparent),
        radial-gradient(1px 1px at 160px 30px, rgba(255,255,255,0.12), transparent);
    background-size: 200px 100px;
    animation: heroParticles 20s linear infinite;
    pointer-events: none;
}

@keyframes heroParticles {
    from { background-position: 0 0; }
    to { background-position: 200px 100px; }
}

/* Hero Image with Modern Overlay */
.hero-modern .hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.3;
    filter: grayscale(30%);
}

/* Geometric Accent Lines */
.hero-modern .hero-accent {
    position: absolute;
    top: 0;
    right: 0;
    width: 40%;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
}

.hero-modern .hero-accent::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 100%;
    height: 200%;
    background: linear-gradient(135deg, transparent 40%, rgba(26, 171, 179, 0.08) 40%, rgba(26, 171, 179, 0.08) 41%, transparent 41%);
    transform: rotate(-15deg);
}

.hero-modern .hero-accent::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -30%;
    width: 100%;
    height: 200%;
    background: linear-gradient(135deg, transparent 40%, rgba(255, 193, 7, 0.05) 40%, rgba(255, 193, 7, 0.05) 41%, transparent 41%);
    transform: rotate(-15deg);
}

/* Content Container */
.hero-modern .hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 4rem 2rem;
    max-width: 900px;
    margin: 0 auto;
}

/* Badge/Subtitle */
.hero-modern .hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(26, 171, 179, 0.15);
    border: 1px solid rgba(26, 171, 179, 0.3);
    color: #1aabb3;
    padding: 0.5rem 1.25rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 1.5rem;
    backdrop-filter: blur(10px);
    animation: heroFadeInUp 0.8s ease-out;
}

.hero-modern .hero-badge i {
    font-size: 1rem;
}

/* Title with Gradient */
.hero-modern .hero-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, #ffffff 0%, #e0e0e0 50%, #FFC107 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: heroFadeInUp 0.8s ease-out 0.2s both;
}

/* Subtitle */
.hero-modern .hero-subtitle {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.8);
    max-width: 600px;
    margin: 0 auto 2rem;
    line-height: 1.6;
    animation: heroFadeInUp 0.8s ease-out 0.4s both;
}

/* Breadcrumb Modern */
.hero-modern .hero-breadcrumb {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.9rem;
    animation: heroFadeInUp 0.8s ease-out 0.6s both;
}

.hero-modern .hero-breadcrumb a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color 0.3s ease;
}

.hero-modern .hero-breadcrumb a:hover {
    color: #FFC107;
}

.hero-modern .hero-breadcrumb .separator {
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.75rem;
}

.hero-modern .hero-breadcrumb .current {
    color: #FFC107;
    font-weight: 600;
}

/* Scroll Indicator */
.hero-modern .scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    animation: heroFadeInUp 0.8s ease-out 0.8s both;
}

.hero-modern .scroll-indicator .mouse {
    width: 24px;
    height: 38px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 12px;
    position: relative;
}

.hero-modern .scroll-indicator .mouse::before {
    content: '';
    position: absolute;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 8px;
    background: #FFC107;
    border-radius: 2px;
    animation: scrollMouse 1.5s ease-in-out infinite;
}

@keyframes scrollMouse {
    0%, 100% { opacity: 1; transform: translateX(-50%) translateY(0); }
    50% { opacity: 0.5; transform: translateX(-50%) translateY(8px); }
}

/* Animations */
@keyframes heroFadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Glow Effect on Title Hover */
.hero-modern .hero-title:hover {
    text-shadow: 0 0 40px rgba(255, 193, 7, 0.3);
}

/* Stats Bar (optional) */
.hero-modern .hero-stats {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-top: 2.5rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    animation: heroFadeInUp 0.8s ease-out 0.8s both;
}

.hero-modern .hero-stat {
    text-align: center;
}

.hero-modern .hero-stat-value {
    font-size: 2rem;
    font-weight: 800;
    color: #FFC107;
    line-height: 1;
}

.hero-modern .hero-stat-label {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.6);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-top: 0.25rem;
}

/* Responsive */
@media (max-width: 768px) {
    .hero-modern {
        min-height: 45vh;
    }

    .hero-modern .hero-content {
        padding: 3rem 1.5rem;
    }

    .hero-modern .hero-stats {
        gap: 1.5rem;
        flex-wrap: wrap;
    }

    .hero-modern .hero-stat-value {
        font-size: 1.5rem;
    }

    .hero-modern .scroll-indicator {
        display: none;
    }
}

/* Variant Colors - Can be customized per page */
.hero-modern.hero-primary {
    background: linear-gradient(135deg, #0a1628 0%, #1a1a2e 50%, #0d2137 100%);
}

.hero-modern.hero-warm {
    background: linear-gradient(135deg, #1a0a0a 0%, #2e1a1a 50%, #3e1616 100%);
}

.hero-modern.hero-warm::before {
    background:
        radial-gradient(ellipse at 20% 50%, rgba(255, 107, 107, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 50%, rgba(255, 193, 7, 0.1) 0%, transparent 50%);
}

/* Portfolio Slider Specific - ne pas affecter le hero */
.portfolio-slider {
    /* Reset any hero styles if accidentally applied */
}

.portfolio-slider .swiper-slide {
    display: flex;
    justify-content: center;
}
