/*--------------------------------------------------
 # Landing (Hero) Section Styles
--------------------------------------------------*/

/*--------------------------------------------------
 # Hero Section Base Structure
--------------------------------------------------*/
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding: 0;
    margin-top: 0;
    background: #fff;
}



/* Diagonal gradient background */
.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #bd28ba 0%, #4527a0 100%);
    clip-path: polygon(0 0, 100% 0, 100% 22%, 0 79%);
    z-index: 0;
}

/* Container for SVG animations */
.svg-animations-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    clip-path: polygon(0 0, 100% 0, 100% 22%, 0 85%);
    z-index: 1;
    pointer-events: none;
}

/* Individual SVGs */
.svg-item {
    position: absolute;
    transform: scale(1.1);
    filter: drop-shadow(0 0 15px rgba(255, 255, 255, 0));
}

/* Old-style bulb flicker animation effect */
@keyframes bulbFlicker {
    0% {
        opacity: 0.05;
        filter: drop-shadow(0 0 0px rgba(255, 255, 255, 0));
    }
    /* First quick flash - sudden on/off */
    2% {
        opacity: 1; /* Completely on */
        filter: drop-shadow(0 0 30px rgba(255, 255, 255, 1)) brightness(1.5);
    }
    2.1% {
        opacity: 0.05; /* Abruptly off */
        filter: drop-shadow(0 0 0px rgba(255, 255, 255, 0));
    }
    /* Second quick flash - longer */
    6% {
        opacity: 1; /* Completely on */
        filter: drop-shadow(0 0 30px rgba(255, 255, 255, 1)) brightness(1.5);
    }
    6.2% {
        opacity: 0.8; /* Slightly dimmed but almost on */
        filter: drop-shadow(0 0 25px rgba(255, 255, 255, 0.9)) brightness(1.3);
    }
    /* Stabilization at full brightness */
    9% {
        opacity: 1; /* Super bright */
        filter: drop-shadow(0 0 30px rgba(255, 255, 255, 1)) brightness(1.5);
    }
    /* Small brightness variation during the on phase */
    30% {
        opacity: 0.95;
        filter: drop-shadow(0 0 28px rgba(255, 255, 255, 0.95)) brightness(1.4);
    }
    50% {
        opacity: 1;
        filter: drop-shadow(0 0 30px rgba(255, 255, 255, 1)) brightness(1.5);
    }
    75% {
        opacity: 0.98;
        filter: drop-shadow(0 0 29px rgba(255, 255, 255, 0.98)) brightness(1.45);
    }
    /* Abrupt cut to restart the cycle */
    99.9% {
        opacity: 1;
        filter: drop-shadow(0 0 30px rgba(255, 255, 255, 1)) brightness(1.5);
    }
    100% {
        opacity: 0.05; /* Brutalement éteint */
        filter: drop-shadow(0 0 0px rgba(255, 255, 255, 0));
    }
}

/* Animation pour les effets de pulsation et flottement */
@keyframes pulseAnimation {
    0%, 100% {
        transform: scale(0.95);
    }
    50% {
        transform: scale(1.05);
    }
}

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

@keyframes rotateAnimation {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Délais d'animation pour chaque SVG */
.svg-item:nth-child(1) {
    top: 5%;
    right: 5%;
    width: 140px;
    height: 140px;
    animation: bulbFlicker 10s ease-in-out infinite, pulseAnimation 12s ease-in-out infinite;
    animation-delay: 0s;
}

.svg-item:nth-child(2) {
    top: 15%;
    right: 16%;
    width: 140px;
    height: 140px;
    animation: bulbFlicker 10s ease-in-out infinite, pulseAnimation 10s ease-in-out infinite;
    animation-delay: 0.1s;
}

.svg-item:nth-child(3) {
    top: 5%;
    right: 30%;
    width: 150px;
    height: 150px;
    animation: bulbFlicker 10s ease-in-out infinite, floatAnimation 15s ease-in-out infinite;
    animation-delay: 0.2s;
}

.svg-item:nth-child(4) {
    top: 6%;
    right: 53%;
    width: 140px;
    height: 140px;
    animation: bulbFlicker 10s ease-in-out infinite, pulseAnimation 12s ease-in-out infinite alternate;
    animation-delay: 0.3s;
}

.svg-item:nth-child(5) {
    top: 15%;
    right: 42%;
    width: 110px;
    height: 110px;
    animation: bulbFlicker 10s ease-in-out infinite, pulseAnimation 14s ease-in-out infinite;
    animation-delay: 0.4s;
}

.svg-item:nth-child(6) {
    top: 6%;
    right: 74%;
    width: 130px;
    height: 130px;
    animation: bulbFlicker 10s ease-in-out infinite, floatAnimation 18s ease-in-out infinite;
    animation-delay: 0.5s;
}

/* Nouveaux SVGs */
.svg-item:nth-child(7) {
    top: 3%;
    right: 88%;
    width: 210px;
    height: 210px;
    z-index: 5;
    animation: bulbFlicker 10s ease-in-out infinite, pulseAnimation 15s ease-in-out infinite;
    animation-delay: 0.15s;
}

/* Ajustement de la taille spécifique pour screen-coding */
.svg-item[data-svg="screen-coding"] {
    width: 140px !important;
    height: 140px !important;
}

/* Style spécifique pour workflow-pattern */
.svg-item[data-svg="workflow-pattern"] {
    animation: floatAnimation 45s ease-in-out infinite !important;
    transition: transform 0.8s ease;
}

/* Style spécifique pour security-lock.svg (ancien puzzle-modules) */
.svg-item[data-svg="puzzle-modules"] {
    animation: bulbFlicker 10s ease-in-out infinite, pulseAnimation 12s ease-in-out infinite !important;
    transition: transform 0.8s ease;
}

/* Effet scale au survol plutôt que dans l'animation pour éviter les doublons */
.svg-item[data-svg="puzzle-modules"]:hover,
.svg-item[data-svg="workflow-pattern"]:hover {
    transform: scale(1.05);
}

.svg-item:nth-child(8) {
    bottom: 10%;
    right: 10%;
    width: 170px;
    height: 170px;
    z-index: 5;
    animation: bulbFlicker 10s ease-in-out infinite, floatAnimation 20s ease-in-out infinite;
    animation-delay: 0.25s;
}

.svg-item:nth-child(9) {
    bottom: 15%;
    right: 25%;
    width: 180px;
    height: 180px;
    z-index: 5;
    animation: bulbFlicker 10s ease-in-out infinite, rotateAnimation 55s linear infinite;
    animation-delay: 0.35s;
}

/* SVGs en bas à gauche */
.svg-item[data-svg="workflow-pattern"] {
    position: absolute;
    bottom: 30% !important;
    left: 8% !important;
    top: auto !important;
    right: auto !important;
    width: 160px;
    height: 160px;
    z-index: 5;
    animation: bulbFlicker 10s ease-in-out infinite, pulseAnimation 14s ease-in-out infinite;
    animation-delay: 0.45s;
    opacity: 0.8;
}

.svg-item[data-svg="security-shield"] {
    position: absolute;
    bottom: 18% !important;
    left: 20% !important;
    top: auto !important;
    right: auto !important;
    width: 170px;
    height: 170px;
    z-index: 5;
    animation: bulbFlicker 10s ease-in-out infinite, floatAnimation 17s ease-in-out infinite;
    animation-delay: 0.55s;
    opacity: 0.8;
}

/* Styles pour les éléments SVG en bas à gauche avec priorité élevée */
.bottom-left-svg {
    position: absolute !important;
    top: auto !important;
    right: auto !important;
}

.svg-item.bottom-left-svg[data-svg="workflow-pattern"] {
    bottom: auto !important;
    top: 14% !important;
    left: 10% !important;
    width: 160px !important;
    height: 160px !important;
    z-index: 10 !important;
    animation: bulbFlicker 10s ease-in-out infinite, pulseAnimation 14s ease-in-out infinite !important;
    animation-delay: 0.45s !important;
    opacity: 0.8;
}

.svg-item.bottom-left-svg[data-svg="security-shield"] {
    bottom: auto !important;
    top: 35% !important;
    left: 20% !important;
    width: 170px !important;
    height: 170px !important;
    z-index: 10 !important;
    animation: bulbFlicker 10s ease-in-out infinite, floatAnimation 17s ease-in-out infinite !important;
    animation-delay: 0.55s !important;
    opacity: 0.8;
}

/* Images SVG */
.svg-animation {
    width: 100%;
    height: 100%;
}

/* Style spécifique pour les SVG */
.svg-item[data-svg="gears"] .svg-animation {
    color: #a98aff; /* Couleur violette claire */
    filter: drop-shadow(0 0 5px rgba(169, 138, 255, 0.7));
}

/* Effets de lumière modernes */
.modern-light-effects {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    clip-path: polygon(0 0, 100% 0, 100% 22%, 0 79%);
    background: linear-gradient(to left, #bd28ba 10%, rgba(181, 51, 191, 0.95) 25%, rgba(153, 63, 196, 0.9) 50%, rgba(122, 72, 199, 0.95) 75%, #404cba 100%);
    z-index: 0;
    pointer-events: none;
}

/* Contenu du hero */
.hero-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-direction: row;
    width: 100%;
    height: 100vh;
    position: relative;
    z-index: 2;
}

.hero-text {
    flex: 1;
    color: #ffffff;
    margin-top: 180px;
    margin-left: -40px;
    position: relative;
    z-index: 2;
    max-width: 40%;
}

.hero-text h1 {
    font-size: 2.2rem;
    margin-bottom: 0.2rem;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    font-weight: 700;
}

.hero-text h2 {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    font-weight: 400;
}

.hero-text h2 .highlight {
    color: #ffc107;
    font-weight: 700;
}

.cta-buttons {
    display: flex;
    gap: 15px;
    margin-top: 30px;
}

/* Styles pour le SVG principal */
.hero-image {
    position: absolute;
    right: 6%;
    top: 5%;
    width: 32%;
    height: 109%;
    z-index: 5;
    pointer-events: none;
    overflow: visible;
}

.hero-svg-main {
    position: absolute;
    right: 0;
    top: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center right;
    transform: scale(3.5);
}

.hero-svg-wrapper {
    position: relative;
    width: 100%;
    max-width: 650px;
    margin-left: 30%;
    margin-bottom: 10%;
    height: auto;
    transition: transform 0.5s ease;
}

.hero-main-svg {
    width: 100%;
    height: auto;
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.2));
    animation: floatMainSvg 6s ease-in-out infinite;
    z-index: 5;
}

.hero-svg-glow {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background: radial-gradient(circle at center, rgba(189, 40, 186, 0.3) 0%, rgba(69, 39, 160, 0.2) 30%, rgba(0, 0, 0, 0) 70%);
    filter: blur(30px);
    opacity: 0;
    animation: glowPulse 4s ease-in-out infinite;
    z-index: 4;
    pointer-events: none;
}

/* Animation pour faire flotter le SVG principal */
@keyframes floatMainSvg {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-15px);
    }
}

/* Animation de pulsation pour l'effet de lueur */
@keyframes glowPulse {
    0%, 100% {
        opacity: 0.4;
        transform: scale(0.95);
    }
    50% {
        opacity: 0.7;
        transform: scale(1.05);
    }
}

/* Responsive */
@media (max-width: 1200px) {
    .hero-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .hero-text {
        margin: 100px auto 0;
        max-width: 80%;
    }
    
    .hero::before {
        clip-path: polygon(0 0, 100% 0, 100% 30%, 0 85%);
    }
    
    .hero-image {
        position: relative;
        right: auto;
        bottom: auto;
        margin-top: 50px;
    }
}

@media (max-width: 768px) {
    .hero::before {
        clip-path: polygon(0 0, 100% 0, 100% 40%, 0 85%);
    }
    
    .svg-item {
        transform: scale(0.8);
    }
}
