/**
 * Global Background Effect - Animated Gradient
 * Inspired by CodePen vEGOKBO
 * Effet de dégradé animé moderne et dynamique
 */

body {
    position: relative;
    min-height: 100vh;
    overflow-x: hidden;
}

/* Background animé principal avec dégradé fluide - Même gradient que homepage et pages produit */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    background: linear-gradient(135deg, #a78bfa 0%, #f472b6 100%);
}

body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: linear-gradient(135deg, #ec4899 0%, #c084fc 50%, #fb923c 100%);
    animation: bgFade 5s ease-in-out infinite;
}

@keyframes bgFade {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0;
    }
}

/* Conteneur principal transparent */
#zero2hero-generator {
    background: transparent !important;
    box-shadow: none !important;
}

/* MAIS workflow-step OPAQUE blanc */
.workflow-step {
    background: rgba(255, 255, 255, 0.98) !important;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

/* Header transparent pour voir le dégradé */
.zero2hero-header {
    background: transparent !important;
    box-shadow: none !important;
    padding: 1.5rem 1rem !important;
}

/* Titre en blanc */
.zero2hero-header h2 {
    color: #ffffff !important;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

/* Sous-titre en blanc moins soutenu (85% d'opacité) */
.zero2hero-header p {
    color: rgba(255, 255, 255, 0.85) !important;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

/* Timeline sticky TRANSPARENTE - voir le dégradé derrière */
.zero2hero-steps-sticky {
    background: transparent !important;
    box-shadow: none !important;
}

/* Cartes produit avec fond blanc opaque */
.product-card {
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

/* Sections de détection et résultats - blanc opaque */
#detection-section,
#generation-result,
#creation-result {
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

/* Zone d'upload avec fond opaque */
.upload-area {
    background: rgba(245, 245, 247, 0.95) !important;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

/* Retirer les overrides de couleur - laisser les couleurs originales */

/* Conteneur WordPress et site principal */
.site-content,
.wp-site-blocks,
main,
article {
    background: transparent !important;
}

/* Footer et header du thème */
.site-header,
.site-footer {
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

/* Retirer tous les overrides de couleur et styles transparents - laisser les styles originaux */

/* Responsive - Adapter l'effet sur mobile pour les performances */
@media (max-width: 768px) {
    body::after {
        animation: bgFade 5s ease-in-out infinite;
    }
}

