/* Animation pour "L'IA se perfectionne en continu" */
.continuous-improvement-container {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(233, 231, 255, 0.1);
    border-radius: 8px;
    overflow: hidden;
}

/* Icône IA centrale */
.continuous-improvement-container .main-icon {
    width: 70px;
    height: 70px;
    position: relative;
    z-index: 5;
    filter: drop-shadow(0 4px 8px rgba(124, 137, 255, 0.15));
}

/* Cercles concentriques représentant les niveaux d'amélioration */
.improvement-circle {
    position: absolute;
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1;
}

.improvement-circle-1 {
    width: 100px;
    height: 100px;
    background: rgba(124, 137, 255, 0.05);
    animation: pulseImprovement 3s infinite ease-in-out;
}

.improvement-circle-2 {
    width: 130px;
    height: 130px;
    background: rgba(124, 137, 255, 0.03);
    animation: pulseImprovement 3s infinite ease-in-out 0.5s;
}

.improvement-circle-3 {
    width: 160px;
    height: 160px;
    background: rgba(124, 137, 255, 0.01);
    animation: pulseImprovement 3s infinite ease-in-out 1s;
}

@keyframes pulseImprovement {
    0%, 100% {
        transform: translate(-50%, -50%) scale(1);
    }
    50% {
        transform: translate(-50%, -50%) scale(1.1);
    }
}

/* Éléments représentant des niveaux/améliorations */
.level-marker {
    position: absolute;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: white;
    box-shadow: 0 2px 8px rgba(124, 137, 255, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    z-index: 3;
    font-weight: bold;
    color: #7C89FF;
}

/* Positionnement des marqueurs de niveau */
.level-marker-1 {
    top: 65%;
    left: 32%;
    width: 24px;
    height: 24px;
    background: #E9E7FF;
    animation: moveUpLevel 8s infinite linear;
}

.level-marker-2 {
    top: 70%;
    left: 50%;
    width: 28px;
    height: 28px;
    background: #E9E7FF;
    animation: moveUpLevel 8s infinite linear 2s;
}

.level-marker-3 {
    top: 65%;
    right: 32%;
    width: 32px;
    height: 32px;
    background: #E9E7FF;
    animation: moveUpLevel 8s infinite linear 4s;
}

.level-marker-4 {
    top: 70%;
    right: 50%;
    width: 36px;
    height: 36px;
    background: #E9E7FF;
    animation: moveUpLevel 8s infinite linear 6s;
}

@keyframes moveUpLevel {
    0% {
        transform: translateY(30px) scale(0.8);
        opacity: 0;
    }
    10% {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
    45% {
        transform: translateY(-60px) scale(1.1);
        opacity: 1;
    }
    60% {
        transform: translateY(-70px) scale(1.2);
        opacity: 0;
    }
    100% {
        transform: translateY(-70px) scale(1.2);
        opacity: 0;
    }
}

/* Indicateurs de progression pour chaque niveau */
.level-marker-1::before {
    content: '1';
}

.level-marker-2::before {
    content: '2';
}

.level-marker-3::before {
    content: '3';
}

.level-marker-4::before {
    content: '4';
}

/* Barres de progression circulaires */
.progress-ring {
    position: absolute;
    width: 190px;
    height: 190px;
    border-radius: 50%;
    border: 3px solid transparent;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
}

.progress-ring-1 {
    border-top: 3px solid rgba(124, 137, 255, 0.3);
    animation: rotate 12s infinite linear;
}

.progress-ring-2 {
    width: 170px;
    height: 170px;
    border-right: 3px solid rgba(124, 137, 255, 0.2);
    animation: rotate 10s infinite linear reverse;
}

@keyframes rotate {
    from {
        transform: translate(-50%, -50%) rotate(0deg);
    }
    to {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

/* Étoiles qui apparaissent pour montrer les nouvelles capacités */
.capability-star {
    position: absolute;
    width: 12px;
    height: 12px;
    background: #7C89FF;
    clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
    z-index: 4;
    opacity: 0;
}

.capability-star-1 {
    top: 35%;
    left: 35%;
    animation: starAppear 8s infinite ease-in-out 1s;
}

.capability-star-2 {
    top: 30%;
    left: 65%;
    animation: starAppear 8s infinite ease-in-out 3s;
}

.capability-star-3 {
    top: 50%;
    left: 75%;
    animation: starAppear 8s infinite ease-in-out 5s;
}

.capability-star-4 {
    top: 55%;
    left: 25%;
    animation: starAppear 8s infinite ease-in-out 7s;
}

@keyframes starAppear {
    0%, 100% {
        transform: scale(0);
        opacity: 0;
    }
    10%, 30% {
        transform: scale(1.2);
        opacity: 1;
    }
    45% {
        transform: scale(1);
        opacity: 1;
    }
    60% {
        transform: scale(0);
        opacity: 0;
    }
}

/* Responsive */
@media (max-width: 767px) {
    .improvement-circle-3 {
        width: 140px;
        height: 140px;
    }
    
    .level-marker {
        width: 26px;
        height: 26px;
        font-size: 12px;
    }
    
    .progress-ring-1 {
        width: 160px;
        height: 160px;
    }
    
    .progress-ring-2 {
        width: 140px;
        height: 140px;
    }
}
