/*----------------------------------------------
*
* [Hero Ultra-Moderne]
*
* Hero section avec animations et design moderne
*
----------------------------------------------*/

/*----------------------------------------------
1. Hero Container avec Background Animé
----------------------------------------------*/

#hero-moderne {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: linear-gradient(135deg, #0a0e27 0%, #1a1a2e 50%, #16213e 100%);
}

/* Background gradient animé */
#hero-moderne::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        135deg,
        rgba(26, 171, 179, 0.3) 0%,
        rgba(29, 199, 209, 0.2) 25%,
        rgba(255, 193, 7, 0.15) 50%,
        rgba(29, 199, 209, 0.2) 75%,
        rgba(26, 171, 179, 0.3) 100%
    );
    background-size: 400% 400%;
    animation: gradientShift 15s ease infinite;
    z-index: 0;
}

@keyframes gradientShift {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

/* Formes géométriques flottantes en arrière-plan */
.hero-shapes {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
    overflow: hidden;
}

.hero-shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.4;
    animation: floatShape 20s infinite ease-in-out;
}

.hero-shape:nth-child(1) {
    width: 500px;
    height: 500px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    top: -10%;
    left: -10%;
    animation-delay: 0s;
}

.hero-shape:nth-child(2) {
    width: 400px;
    height: 400px;
    background: linear-gradient(135deg, var(--warning-color), var(--primary-color));
    bottom: -10%;
    right: -10%;
    animation-delay: 5s;
}

.hero-shape:nth-child(3) {
    width: 300px;
    height: 300px;
    background: linear-gradient(135deg, var(--secondary-color), var(--warning-color));
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation-delay: 10s;
}

@keyframes floatShape {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    25% {
        transform: translate(50px, -50px) scale(1.1);
    }
    50% {
        transform: translate(-30px, 30px) scale(0.9);
    }
    75% {
        transform: translate(30px, 50px) scale(1.05);
    }
}

/* Particules animées */
.hero-particles-modern {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
}

.hero-particle {
    position: absolute;
    width: 3px;
    height: 3px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
    animation: particleFloat 15s infinite linear;
}

@keyframes particleFloat {
    0% {
        transform: translateY(100vh) translateX(0);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(-100px) translateX(100px);
        opacity: 0;
    }
}

/*----------------------------------------------
2. Hero Content
----------------------------------------------*/

.hero-content {
    position: relative;
    z-index: 10;
    width: 100%;
}

/* Titre principal avec effet de typing et gradient */
.hero-title {
    font-size: clamp(2.5rem, 8vw, 5rem);
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    background: linear-gradient(
        135deg,
        #ffffff 0%,
        var(--secondary-color) 50%,
        var(--warning-color) 100%
    );
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientText 5s ease infinite;
    text-shadow: 0 0 80px rgba(26, 171, 179, 0.5);
    position: relative;
}

@keyframes gradientText {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

/* Effet de highlight sur certains mots */
.hero-title .highlight {
    position: relative;
    display: inline-block;
}

.hero-title .highlight::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 50%;
    background: linear-gradient(90deg, var(--warning-color), var(--primary-color));
    opacity: 0.3;
    z-index: -1;
    transform: skewY(-2deg);
    animation: highlightPulse 3s ease-in-out infinite;
}

@keyframes highlightPulse {
    0%, 100% {
        opacity: 0.3;
        transform: skewY(-2deg) scaleX(1);
    }
    50% {
        opacity: 0.5;
        transform: skewY(-2deg) scaleX(1.05);
    }
}

/* Sous-titre avec effet de typing */
.hero-subtitle {
    font-size: clamp(1.1rem, 2.5vw, 1.5rem);
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 3rem;
    line-height: 1.6;
    max-width: 700px;
    animation: fadeInUp 1s ease 0.3s both;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Badge/Tag premium */
.hero-badge {
    display: inline-block;
    padding: 12px 24px;
    background: linear-gradient(135deg, rgba(26, 171, 179, 0.2), rgba(29, 199, 209, 0.2));
    border: 2px solid var(--primary-color);
    border-radius: 50px;
    color: white;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 2rem;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 8px 32px rgba(26, 171, 179, 0.3);
    animation: fadeInDown 1s ease both;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-badge i {
    margin-right: 8px;
    animation: iconPulseHero 2s ease-in-out infinite;
}

@keyframes iconPulseHero {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.2);
    }
}

/* Points clés avec icônes */
.hero-features {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-bottom: 3rem;
    animation: fadeInUp 1s ease 0.6s both;
}

.hero-feature {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 24px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    cursor: pointer;
}

.hero-feature:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: var(--primary-color);
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 10px 30px rgba(26, 171, 179, 0.4);
}

.hero-feature-icon {
    width: 24px;
    height: 24px;
    filter: drop-shadow(0 0 10px rgba(255, 193, 7, 0.6));
}

.hero-feature-text {
    color: white;
    font-weight: 600;
    font-size: 1rem;
}

/* Boutons CTA ultra-modernes */
.hero-cta {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    animation: fadeInUp 1s ease 0.9s both;
}

.btn-hero-primary {
    position: relative;
    padding: 18px 40px;
    font-size: 1.1rem;
    font-weight: 700;
    color: white;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border: none;
    border-radius: 50px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    box-shadow:
        0 10px 40px rgba(26, 171, 179, 0.4),
        0 0 20px rgba(29, 199, 209, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.btn-hero-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s ease;
}

.btn-hero-primary:hover::before {
    left: 100%;
}

.btn-hero-primary:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow:
        0 20px 60px rgba(26, 171, 179, 0.6),
        0 0 40px rgba(29, 199, 209, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

.btn-hero-secondary {
    position: relative;
    padding: 18px 40px;
    font-size: 1.1rem;
    font-weight: 700;
    color: white;
    background: transparent;
    border: 2px solid white;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.btn-hero-secondary:hover {
    background: white;
    color: var(--primary-color);
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 10px 30px rgba(255, 255, 255, 0.3);
}

/*----------------------------------------------
3. Hero Image/Visual
----------------------------------------------*/

.hero-visual {
    position: relative;
    z-index: 10;
    animation: fadeInRight 1s ease 0.5s both;
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.hero-image-container {
    position: relative;
    perspective: 1000px;
}

.hero-image-main {
    width: 100%;
    border-radius: 30px;
    box-shadow:
        0 30px 90px rgba(0, 0, 0, 0.3),
        0 0 60px rgba(26, 171, 179, 0.4);
    animation: floatImage 6s ease-in-out infinite;
}

@keyframes floatImage {
    0%, 100% {
        transform: translateY(0) rotateY(0deg);
    }
    50% {
        transform: translateY(-20px) rotateY(5deg);
    }
}

/* Éléments décoratifs autour de l'image */
.hero-decoration {
    position: absolute;
    border-radius: 20px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    opacity: 0.3;
    filter: blur(40px);
    animation: decorationFloat 8s ease-in-out infinite;
}

.hero-decoration:nth-child(1) {
    width: 200px;
    height: 200px;
    top: -50px;
    right: -50px;
    animation-delay: 0s;
}

.hero-decoration:nth-child(2) {
    width: 150px;
    height: 150px;
    bottom: -30px;
    left: -30px;
    background: linear-gradient(135deg, var(--warning-color), var(--primary-color));
    animation-delay: 2s;
}

@keyframes decorationFloat {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    50% {
        transform: translate(20px, -20px) scale(1.1);
    }
}

/*----------------------------------------------
4. Stats Section Intégrée au Hero
----------------------------------------------*/

.hero-stats {
    position: relative;
    z-index: 10;
    display: flex;
    justify-content: space-around;
    margin-top: 4rem;
    padding: 2rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    animation: fadeInUp 1s ease 1.2s both;
}

.hero-stat {
    text-align: center;
    transition: transform 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.hero-stat:hover {
    transform: translateY(-10px) scale(1.1);
}

.hero-stat-number {
    display: block;
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 900;
    background: linear-gradient(135deg, var(--secondary-color), var(--warning-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
}

.hero-stat-label {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1rem;
    font-weight: 600;
}

/*----------------------------------------------
5. Scroll Indicator
----------------------------------------------*/

.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    animation: fadeIn 1s ease 1.5s both;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.scroll-indicator-icon {
    width: 30px;
    height: 50px;
    border: 2px solid rgba(255, 255, 255, 0.5);
    border-radius: 25px;
    position: relative;
}

.scroll-indicator-icon::before {
    content: '';
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    width: 6px;
    height: 6px;
    background: white;
    border-radius: 50%;
    animation: scrollDot 2s ease-in-out infinite;
}

@keyframes scrollDot {
    0% {
        top: 10px;
        opacity: 1;
    }
    100% {
        top: 30px;
        opacity: 0;
    }
}

.scroll-indicator-text {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    margin-top: 10px;
    text-align: center;
}

/*----------------------------------------------
6. Responsive
----------------------------------------------*/

@media (max-width: 992px) {
    #hero-moderne {
        min-height: auto;
        padding: 80px 0 60px;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .hero-features {
        flex-direction: column;
    }

    .hero-cta {
        flex-direction: column;
    }

    .hero-stats {
        flex-wrap: wrap;
        gap: 2rem;
    }

    .hero-shape {
        filter: blur(60px);
    }
}

@media (max-width: 768px) {
    .hero-shapes,
    .hero-particles-modern {
        display: none;
    }

    .hero-title {
        font-size: 2rem;
    }

    .btn-hero-primary,
    .btn-hero-secondary {
        width: 100%;
        text-align: center;
        justify-content: center;
    }
}
