/**
 * AIDA Hero Section Styles
 * Version: 2.0.2
 */

/* ============================================
   FIX SCROLL GLOBAL
   ============================================ */
html, body {
    overflow-x: hidden !important;
    overflow-y: auto !important;
    height: auto !important;
    min-height: 100% !important;
}

/* ============================================
   HERO SECTION
   ============================================ */
.aida-hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 4rem 2rem;
    position: relative;
    overflow: visible;
    background: var(--aida-dark, #08080c);
}

/* Conteneur pour les effets qui débordent */
.aida-hero-effects {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    z-index: 0;
}

/* Vidéo en background */
.aida-hero-video-bg {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    object-fit: cover;
    z-index: 0;
    opacity: 0.5;
}

/* Overlay gradient pour lisibilité */
.aida-hero-overlay {
    position: absolute;
    inset: 0;
    background: 
        radial-gradient(ellipse 80% 60% at 50% 40%, rgba(168, 85, 247, 0.1) 0%, transparent 70%),
        linear-gradient(180deg, rgba(8, 8, 12, 0.28) 0%, rgba(8, 8, 12, 0.5) 50%, rgba(8, 8, 12, 0.7) 100%);
    z-index: 1;
}

/* Effets lumineux décoratifs */
.aida-hero::before {
    content: '';
    position: absolute;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(0, 255, 245, 0.08) 0%, transparent 70%);
    top: -200px;
    right: -150px;
    pointer-events: none;
    z-index: 2;
}

.aida-hero::after {
    content: '';
    position: absolute;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(255, 0, 255, 0.06) 0%, transparent 70%);
    bottom: -100px;
    left: -100px;
    pointer-events: none;
    z-index: 2;
}

.aida-hero-content {
    max-width: 900px;
    position: relative;
    z-index: 3;
}

/* Tag */
.aida-hero-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.6rem 1.4rem;
    background: rgba(168, 85, 247, 0.15);
    border: 1px solid rgba(168, 85, 247, 0.4);
    border-radius: 100px;
    font-family: var(--aida-font-mono, 'Space Mono', monospace);
    font-size: 0.85rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--aida-primary, #A855F7);
    margin-bottom: 2.5rem;
    backdrop-filter: blur(10px);
}

.aida-hero-tag::before {
    content: '';
    width: 10px;
    height: 10px;
    background: var(--aida-green, #39ff14);
    border-radius: 50%;
    animation: aida-pulse 2s ease-in-out infinite;
}

@keyframes aida-pulse {
    0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(57, 255, 20, 0.4); }
    50% { opacity: 0.8; box-shadow: 0 0 0 10px rgba(57, 255, 20, 0); }
}

/* Titre */
.aida-hero-title {
    font-family: var(--aida-font-main, 'Outfit', sans-serif);
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 2rem;
    text-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
    color: var(--aida-text, #F1F5F9);
}

.aida-hero-title .highlight {
    background: linear-gradient(135deg, var(--aida-cyan, #00fff5) 0%, var(--aida-primary, #A855F7) 50%, var(--aida-magenta, #ff00ff) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Sous-titre */
.aida-hero-subtitle {
    font-size: clamp(1.2rem, 2.5vw, 1.5rem);
    color: var(--aida-text-muted, #b8c5d6);
    max-width: 700px;
    margin: 0 auto 3rem;
    line-height: 1.8;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.5);
}

/* Cadre vidéo dédié - Masqué sur desktop */
.aida-hero-video-frame {
    display: none;
}

/* ============================================
   TRUST SECTION
   ============================================ */
.aida-hero-trust {
    margin-top: 3rem;
    padding: 2.5rem 2rem;
    position: relative;
    overflow: hidden;
    border-radius: 24px;
    background: rgba(10, 10, 18, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(20px);
}

.aida-trust-blob {
    position: absolute;
    width: 500px;
    height: 500px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: linear-gradient(
        135deg, 
        rgba(0, 255, 245, 0.25) 0%, 
        rgba(168, 85, 247, 0.3) 50%, 
        rgba(255, 0, 255, 0.2) 100%
    );
    border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
    animation: aida-blob-morph 10s ease-in-out infinite;
    filter: blur(80px);
    pointer-events: none;
    z-index: 0;
}

@keyframes aida-blob-morph {
    0%, 100% { 
        border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
        transform: translate(-50%, -50%) rotate(0deg) scale(1);
    }
    25% { 
        border-radius: 30% 60% 70% 40% / 50% 60% 30% 60%;
        transform: translate(-50%, -50%) rotate(90deg) scale(1.1);
    }
    50% { 
        border-radius: 50% 60% 30% 60% / 30% 40% 70% 50%;
        transform: translate(-50%, -50%) rotate(180deg) scale(1);
    }
    75% { 
        border-radius: 60% 30% 60% 40% / 70% 50% 40% 60%;
        transform: translate(-50%, -50%) rotate(270deg) scale(1.1);
    }
}

.aida-hero-trust-content {
    position: relative;
    z-index: 1;
}

.aida-trust-label {
    font-size: 1rem;
    color: var(--aida-cyan, #00fff5);
    margin-bottom: 1.5rem;
    font-family: var(--aida-font-mono, 'Space Mono', monospace);
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

.aida-trust-cursor {
    display: inline-block;
    width: 2px;
    height: 1em;
    background: var(--aida-cyan, #00fff5);
    margin-left: 2px;
    vertical-align: text-bottom;
    animation: aida-blink 0.8s infinite;
}

@keyframes aida-blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

/* Badges */
.aida-trust-badges {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}

.aida-trust-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    padding: 1rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    color: var(--aida-text-muted, #b8c5d6);
    font-size: 0.95rem;
    font-weight: 500;
    transition: all 0.3s ease;
    white-space: nowrap;
    animation: aida-float 4s ease-in-out infinite;
}

.aida-trust-badge:nth-child(1) { animation-delay: 0s; }
.aida-trust-badge:nth-child(2) { animation-delay: -1s; }
.aida-trust-badge:nth-child(3) { animation-delay: -2s; }
.aida-trust-badge:nth-child(4) { animation-delay: -3s; }

@keyframes aida-float {
    0%, 100% { 
        transform: translateY(0px);
        box-shadow: 0 5px 15px -5px rgba(0, 0, 0, 0.2);
    }
    50% { 
        transform: translateY(-8px);
        box-shadow: 0 15px 25px -5px rgba(0, 0, 0, 0.25);
    }
}

.aida-trust-badge:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.15);
    animation-play-state: paused;
    transform: translateY(-12px);
    box-shadow: 0 15px 30px -10px rgba(0, 0, 0, 0.3);
}

.aida-trust-badge span {
    font-size: 1.4rem;
}

/* ============================================
   RESPONSIVE - TABLETTE
   ============================================ */
@media (max-width: 1024px) and (min-width: 769px) {
    .aida-hero {
        min-height: 90vh;
        padding: 4rem 2rem;
    }
    
    .aida-hero-content {
        max-width: 700px;
    }
    
    .aida-hero-title {
        font-size: clamp(2rem, 5vw, 3rem);
    }
    
    .aida-hero-subtitle {
        font-size: 1.2rem;
    }
    
    .aida-hero-trust {
        margin-top: 3rem;
        padding: 2rem 1.5rem;
    }
    
    .aida-trust-badges {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .aida-trust-badge {
        padding: 1rem 1.25rem;
        font-size: 0.95rem;
    }
    
    .aida-trust-blob {
        width: 450px;
        height: 450px;
    }
}

/* ============================================
   RESPONSIVE - MOBILE
   ============================================ */
@media (max-width: 768px) {
    .aida-hero {
        min-height: auto;
        padding: 3rem 1.25rem 2rem;
    }
    
    /* Cacher la vidéo background sur mobile */
    .aida-hero-video-bg {
        display: none;
    }
    
    .aida-hero-overlay {
        background: 
            radial-gradient(ellipse 80% 60% at 50% 40%, rgba(168, 85, 247, 0.08) 0%, transparent 70%),
            var(--aida-dark, #08080c);
    }
    
    /* Afficher le cadre vidéo néon sur mobile */
    .aida-hero-video-frame {
        display: block;
        max-width: 320px;
        margin: 0 auto 2rem;
        padding: 4px;
        border-radius: 16px;
        background: linear-gradient(135deg, var(--aida-cyan, #00fff5), var(--aida-primary, #A855F7), var(--aida-magenta, #ff00ff));
        box-shadow: 
            0 0 30px -5px var(--aida-cyan, #00fff5),
            0 0 60px -10px var(--aida-primary, #A855F7),
            0 20px 40px -15px rgba(0, 0, 0, 0.5);
        animation: aida-neon-glow 3s ease-in-out infinite alternate;
    }
    
    @keyframes aida-neon-glow {
        0% {
            box-shadow: 
                0 0 20px -5px var(--aida-cyan, #00fff5),
                0 0 40px -10px var(--aida-primary, #A855F7),
                0 20px 40px -15px rgba(0, 0, 0, 0.5);
        }
        100% {
            box-shadow: 
                0 0 40px -5px var(--aida-cyan, #00fff5),
                0 0 80px -10px var(--aida-primary, #A855F7),
                0 20px 40px -15px rgba(0, 0, 0, 0.5);
        }
    }
    
    .aida-hero-video-frame video {
        width: 100%;
        height: auto;
        display: block;
        border-radius: 12px;
    }
    
    .aida-hero::before {
        width: 300px;
        height: 300px;
        top: -100px;
        right: -100px;
    }
    
    .aida-hero::after {
        width: 200px;
        height: 200px;
        bottom: -50px;
        left: -50px;
    }
    
    .aida-hero-content {
        max-width: 100%;
    }
    
    .aida-hero-tag {
        padding: 0.5rem 1rem;
        font-size: 0.7rem;
        margin-bottom: 1.5rem;
    }
    
    .aida-hero-tag::before {
        width: 8px;
        height: 8px;
    }
    
    .aida-hero-title {
        font-size: 1.85rem;
        line-height: 1.15;
        margin-bottom: 1.5rem;
    }
    
    .aida-hero-subtitle {
        font-size: 1rem;
        line-height: 1.7;
        margin-bottom: 1.5rem;
    }
    
    .aida-hero-trust {
        margin-top: 2rem;
        padding: 1.75rem 1rem;
        border-radius: 16px;
    }
    
    .aida-trust-label {
        font-size: 0.85rem;
        margin-bottom: 1.25rem;
    }
    
    .aida-trust-badges {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.6rem;
    }
    
    .aida-trust-badge {
        flex-direction: column;
        gap: 0.4rem;
        padding: 0.9rem 0.5rem;
        font-size: 0.8rem;
        border-radius: 10px;
        text-align: center;
    }
    
    .aida-trust-badge span {
        font-size: 1.3rem;
    }
    
    .aida-trust-blob {
        width: 280px;
        height: 280px;
        filter: blur(60px);
    }
    
    .aida-trust-cursor {
        height: 0.9em;
    }
}

/* ============================================
   RESPONSIVE - PETIT MOBILE
   ============================================ */
@media (max-width: 380px) {
    .aida-hero {
        padding: 2rem 1rem 1.5rem;
    }
    
    .aida-hero-tag {
        font-size: 0.65rem;
        padding: 0.4rem 0.8rem;
    }
    
    .aida-hero-title {
        font-size: 1.6rem;
    }
    
    .aida-hero-subtitle {
        font-size: 0.95rem;
    }
    
    .aida-hero-video-frame {
        max-width: 260px;
    }
    
    .aida-hero-trust {
        padding: 1.5rem 0.75rem;
    }
    
    .aida-trust-label {
        font-size: 0.75rem;
    }
    
    .aida-trust-badge {
        padding: 0.75rem 0.4rem;
        font-size: 0.75rem;
    }
    
    .aida-trust-badge span {
        font-size: 1.1rem;
    }
    
    .aida-trust-blob {
        width: 220px;
        height: 220px;
    }
}
