/* Circle Typewriter Widget Styles */

.circle-typewriter-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    padding: 40px 20px;
}

.circle-container {
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background-color: #DC2626;
    opacity: 0.9;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    box-shadow: 0 20px 60px rgba(220, 38, 38, 0.3);
    mix-blend-mode: multiply; /* Effet multiply pour fusionner avec l'arrière-plan */
}

.circle-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 60px;
    width: 100%;
    height: 100%;
    gap: 30px;
}

/* Texte statique */
.static-text {
    font-size: 42px;
    font-weight: 600;
    color: #FFFFFF;
    line-height: 1.2;
    margin: 0;
}

/* Zone typewriter */
.typewriter-zone {
    min-height: 120px; /* Hauteur fixe pour éviter le rapprochement */
    display: flex;
    align-items: center;
    justify-content: center;
}

.typewriter-text {
    font-size: 52px;
    font-weight: 700;
    color: #FFFFFF;
    line-height: 1.2;
    display: inline-block;
    min-width: 1px;
    min-height: 1.2em; /* Garde toujours la hauteur d'une ligne */
}

.typewriter-cursor {
    display: inline-block;
    font-size: 52px;
    font-weight: 700;
    color: #FFFFFF;
    animation: blink 1s infinite;
    margin-left: 4px;
}

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

/* Masquer le curseur si non souhaité */
.typewriter-zone:not(.show-cursor) .typewriter-cursor {
    display: none;
}

/* Pictogramme */
.icon-container {
    font-size: 100px;
    color: #FFFFFF;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 40px; /* Plus d'espace en haut pour descendre l'icône */
}

.icon-container svg {
    width: 100px;
    height: 100px;
    fill: #FFFFFF;
}

.icon-container i {
    font-size: inherit;
    color: inherit;
}

/* Responsive */
@media (max-width: 1024px) {
    .circle-container {
        width: 500px;
        height: 500px;
    }
    
    .circle-content {
        padding: 50px;
        gap: 25px;
    }
    
    .static-text {
        font-size: 36px;
    }
    
    .typewriter-text,
    .typewriter-cursor {
        font-size: 44px;
    }
    
    .typewriter-zone {
        min-height: 100px; /* Ajusté pour tablette */
    }
    
    .icon-container {
        font-size: 80px;
        margin-top: 15px;
    }
    
    .icon-container svg {
        width: 80px;
        height: 80px;
    }
}

@media (max-width: 768px) {
    .circle-typewriter-wrapper {
        padding: 30px 15px;
    }
    
    .circle-container {
        width: 400px;
        height: 400px;
    }
    
    .circle-content {
        padding: 40px;
        gap: 20px;
    }
    
    .static-text {
        font-size: 28px;
    }
    
    .typewriter-text,
    .typewriter-cursor {
        font-size: 36px;
    }
    
    .typewriter-zone {
        min-height: 80px; /* Ajusté pour mobile */
    }
    
    .icon-container {
        font-size: 60px;
        margin-top: 10px;
    }
    
    .icon-container svg {
        width: 60px;
        height: 60px;
    }
}

@media (max-width: 480px) {
    .circle-container {
        width: 320px;
        height: 320px;
    }
    
    .circle-content {
        padding: 30px;
        gap: 15px;
    }
    
    .static-text {
        font-size: 22px;
    }
    
    .typewriter-text,
    .typewriter-cursor {
        font-size: 28px;
    }
    
    .typewriter-zone {
        min-height: 70px; /* Ajusté pour petit mobile */
    }
    
    .icon-container {
        font-size: 50px;
        margin-top: 5px;
    }
    
    .icon-container svg {
        width: 50px;
        height: 50px;
    }
}

/* Animation d'entrée */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 0.9;
        transform: scale(1);
    }
}

.circle-container {
    animation: fadeIn 0.6s ease-out;
}
