/* STYLES POUR L'IMAGE D'ÉCHAFAUDAGE */

.scaffold-image-container {
    position: relative;
    width: 700px;
    height: 700px;
    margin: 0 auto 60px;
    display: flex;
    justify-content: center;
    align-items: center;
    perspective: 1500px;
}

/* Effet de brillance verte autour de l'image */
.scaffold-glow-effect {
    position: absolute;
    width: 100%;
    height: 100%;
    background: radial-gradient(
        circle at center,
        rgba(51, 204, 51, 0.3) 0%,
        rgba(51, 204, 51, 0.15) 40%,
        transparent 70%
    );
    border-radius: 20px;
    filter: blur(40px);
    animation: glowPulse 4s ease-in-out infinite;
    z-index: 0;
}

@keyframes glowPulse {
    0%, 100% {
        opacity: 0.6;
        transform: scale(1);
    }
    50% {
        opacity: 1;
        transform: scale(1.1);
    }
}

/* Image principale */
.scaffold-main-image {
    position: relative;
    width: 90%;
    height: auto;
    max-width: 600px;
    filter: 
        drop-shadow(0 20px 40px rgba(0, 0, 0, 0.6))
        drop-shadow(0 0 30px rgba(51, 204, 51, 0.4));
    z-index: 1;
    transition: all 0.6s ease;
    animation: floatImage 6s ease-in-out infinite;
}

@keyframes floatImage {
    0%, 100% {
        transform: translateY(0) rotateY(-5deg);
    }
    50% {
        transform: translateY(-20px) rotateY(5deg);
    }
}

.scaffold-main-image:hover {
    transform: scale(1.05) rotateY(0deg) !important;
    filter: 
        drop-shadow(0 25px 50px rgba(0, 0, 0, 0.7))
        drop-shadow(0 0 50px rgba(51, 204, 51, 0.7))
        brightness(1.1);
}

/* Overlay avec highlights sur les rosettes */
.image-overlay {
    position: absolute;
    width: 90%;
    height: 90%;
    pointer-events: none;
    z-index: 2;
}

/* Points lumineux verts sur les rosettes (positions approximatives) */
.rosette-highlight {
    position: absolute;
    width: 30px;
    height: 30px;
    background: radial-gradient(
        circle at center,
        rgba(102, 221, 102, 0.9) 0%,
        rgba(51, 204, 51, 0.6) 40%,
        transparent 70%
    );
    border-radius: 50%;
    animation: rosetteGlow 3s ease-in-out infinite;
    box-shadow: 
        0 0 20px rgba(51, 204, 51, 0.8),
        0 0 40px rgba(51, 204, 51, 0.4);
}

@keyframes rosetteGlow {
    0%, 100% {
        opacity: 0.5;
        transform: scale(1);
    }
    50% {
        opacity: 1;
        transform: scale(1.3);
    }
}

/* Positionnement des highlights (ajuster selon l'image) */
.rosette-highlight.r1 {
    top: 25%;
    left: 30%;
    animation-delay: 0s;
}

.rosette-highlight.r2 {
    top: 25%;
    right: 30%;
    animation-delay: 0.5s;
}

.rosette-highlight.r3 {
    bottom: 35%;
    left: 30%;
    animation-delay: 1s;
}

.rosette-highlight.r4 {
    bottom: 35%;
    right: 30%;
    animation-delay: 1.5s;
}

/* Animation d'apparition au scroll */
.scaffold-stage {
    opacity: 0;
    transform: translateY(50px);
    transition: all 1s ease-out;
}

.scaffold-stage.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive */
@media (max-width: 768px) {
    .scaffold-image-container {
        width: 100%;
        height: auto;
        padding: 20px;
    }
    
    .scaffold-main-image {
        width: 100%;
        max-width: 100%;
    }
    
    .rosette-highlight {
        width: 20px;
        height: 20px;
    }
}

/* Effet de particules vertes autour de l'image */
.scaffold-image-container::before {
    content: '';
    position: absolute;
    width: 120%;
    height: 120%;
    background-image: 
        radial-gradient(circle at 20% 30%, rgba(51, 204, 51, 0.1) 0%, transparent 3%),
        radial-gradient(circle at 80% 20%, rgba(51, 204, 51, 0.15) 0%, transparent 2%),
        radial-gradient(circle at 40% 70%, rgba(51, 204, 51, 0.1) 0%, transparent 4%),
        radial-gradient(circle at 90% 60%, rgba(51, 204, 51, 0.12) 0%, transparent 3%),
        radial-gradient(circle at 15% 80%, rgba(51, 204, 51, 0.1) 0%, transparent 2%),
        radial-gradient(circle at 60% 90%, rgba(51, 204, 51, 0.15) 0%, transparent 3%);
    animation: particlesFloat 8s ease-in-out infinite;
    pointer-events: none;
    z-index: 0;
}

@keyframes particlesFloat {
    0%, 100% {
        transform: translate(0, 0) rotate(0deg);
        opacity: 0.6;
    }
    33% {
        transform: translate(-10px, -15px) rotate(5deg);
        opacity: 1;
    }
    66% {
        transform: translate(10px, 10px) rotate(-5deg);
        opacity: 0.8;
    }
}

/* Bordure lumineuse animée */
.scaffold-image-container::after {
    content: '';
    position: absolute;
    width: calc(90% + 40px);
    height: calc(90% + 40px);
    border: 2px solid rgba(51, 204, 51, 0.3);
    border-radius: 20px;
    animation: borderPulse 4s ease-in-out infinite;
    pointer-events: none;
    z-index: 0;
}

@keyframes borderPulse {
    0%, 100% {
        border-color: rgba(51, 204, 51, 0.3);
        box-shadow: 
            0 0 20px rgba(51, 204, 51, 0.2),
            inset 0 0 20px rgba(51, 204, 51, 0.1);
    }
    50% {
        border-color: rgba(51, 204, 51, 0.6);
        box-shadow: 
            0 0 40px rgba(51, 204, 51, 0.5),
            inset 0 0 30px rgba(51, 204, 51, 0.2);
    }
}
