/* Conteneur principal */
.recycling-promo {
    width: 100%;
    height: 300px;
    background: linear-gradient(90deg, #32a852, #65e974, #32a852);
    background-size: 400% 400%;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: white;
    border-radius: 0;
    animation: gradientMove 8s infinite;
}

/* Animation de fond */
@keyframes gradientMove {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Texte principal */
.animated-content h1 {
    font-size: 2.5rem;
    font-weight: bold;
    margin: 0;
    text-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    animation: float 3s ease-in-out infinite;
}

.animated-content .message {
    font-size: 1.2rem;
    margin-top: 10px;
    line-height: 1.5;
    color: #f0f0f0;
    animation: bounce 4s infinite;
}

.animated-content .highlight {
    font-weight: bold;
    color: #ffff00;
    text-shadow: 0 0 10px #ffe600;
}

/* Icônes de recyclage */
.recycling-icons {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none; /* Les icônes ne bloquent pas les interactions */
}

.recycling-icons img {
    position: absolute;
    width: 60px;
    height: 60px;
    opacity: 0.8;
    animation: floatIcons 6s ease-in-out infinite, spin 6s linear infinite;
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.2));
}

/* Positions initiales pour donner un aspect aléatoire */
.recycling-icons img:nth-child(1) {
    top: 10%;
    left: 20%;
    animation-delay: 0s;
}

.recycling-icons img:nth-child(2) {
    top: 40%;
    left: 60%;
    animation-delay: 1s;
}

.recycling-icons img:nth-child(3) {
    top: 70%;
    left: 30%;
    animation-delay: 2s;
}

/* Animation de flottement */
@keyframes floatIcons {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

/* Animation de rotation */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Animation de flottement du titre */
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* Animation de rebond pour le message */
@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}
