/* Animations CSS - PSoft Service */

/* ---- Animation pour la section About ---- */
/* Animation pour l'image qui pulse */
.pulse-image {
    animation: pulse 2s infinite;
    transform-origin: center center;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

/* Animation pour l'image au survol */
.hover-scale {
    transition: transform 0.5s ease;
}

.hover-scale:hover {
    transform: scale(1.05);
}

/* Animation de rotation lente */
.rotating-slow {
    animation: rotating 15s linear infinite;
}

@keyframes rotating {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Animation du bouton de lecture */
.pulse-button {
    position: relative;
    box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.7);
    animation: pulse-button 2s infinite;
}

@keyframes pulse-button {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.7);
    }
    70% {
        box-shadow: 0 0 0 15px rgba(255, 255, 255, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0);
    }
}

/* Animation de texte avec surbrillance */
.highlight-text {
    position: relative;
    display: inline-block;
}

.highlight-text::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 30%;
    bottom: 5px;
    left: 0;
    background-color: rgba(0, 93, 224, 0.3);
    z-index: -1;
    transform: scaleX(0);
    transform-origin: bottom right;
    transition: transform 0.5s ease;
}

.highlight-text:hover::after {
    transform: scaleX(1);
    transform-origin: bottom left;
}

/* Animation d'entrée de texte */
.slide-in-text {
    position: relative;
    overflow: hidden;
}

.slide-in-text::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #005de0;
    transition: width 0.8s ease-in-out;
}

.slide-in-text:hover::after {
    width: 100%;
}

/* Animation flottante pour la signature */
.floating {
    animation: floating 3s ease-in-out infinite;
}

@keyframes floating {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0px); }
}

/* Animation pour la photo de profil */
.profile-hover {
    border-radius: 50%;
    transition: all 0.3s ease;
    box-shadow: 0 0 0 3px rgba(0, 93, 224, 0.1);
}

.profile-hover:hover {
    box-shadow: 0 0 0 5px rgba(0, 93, 224, 0.5);
    transform: scale(1.1);
}

/* ---- Animation pour la section Skills ---- */
/* Animation pour les numéros */
.number-animation {
    position: relative;
    overflow: hidden;
}

.number-animation::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(0, 93, 224, 0.2) 0%, rgba(255, 255, 255, 0) 70%);
    opacity: 0;
    transition: opacity 0.5s ease;
}

.number-animation:hover::before {
    opacity: 1;
}

.counter-item {
    font-weight: bold;
    display: inline-block;
    position: relative;
    color: #005de0;
    text-shadow: 0 0 5px rgba(0, 93, 224, 0.3);
}

.counter-item::after {
    content: '+';
    position: absolute;
    right: -15px;
    animation: blink 1.5s infinite;
}

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

/* Dégradé de texte */
.text-gradient {    background: linear-gradient(45deg, #005de0, #5149f3);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: bold;
}

/* Animation des barres de compétence */
.skill-bar-animated .bar-inner {
    position: relative;
    overflow: hidden;
}

.skill-bar-animated .bar-inner::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.3) 50%, rgba(255, 255, 255, 0) 100%);
    animation: bar-shine 2.5s infinite;
}

@keyframes bar-shine {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.animated-number {
    display: inline-block;
    animation: number-jump 2s infinite;
}

@keyframes number-jump {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

/* ---- Animation pour la section CTA ---- */
/* Effet de brillance pour le texte */
.glow-text {
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
    animation: glow 2s infinite alternate;
}

@keyframes glow {
    0% { text-shadow: 0 0 10px rgba(255, 255, 255, 0.3); }
    100% { text-shadow: 0 0 20px rgba(255, 255, 255, 0.7), 0 0 30px rgba(0, 93, 224, 0.5); }
}

/* Animation de fond pour la section CTA */
.cta-animated {
    position: relative;
    overflow: hidden;
}

.cta-animated::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.1) 50%, rgba(255, 255, 255, 0) 100%);
    animation: cta-shine 5s infinite;
    z-index: 1;
}

@keyframes cta-shine {
    0% { left: -100%; }
    100% { left: 100%; }
}

/* Animation du numéro de téléphone */
.phone-animation {
    display: inline-flex;
    align-items: center;
    position: relative;
    transition: all 0.3s ease;
}

.phone-animation:hover {
    transform: translateY(-5px);
    color: #005de0;
}

.phone-icon-rotate {
    margin-right: 10px;
    animation: phone-ring 1.5s infinite ease;
    transform-origin: 50% 50%;
}

@keyframes phone-ring {
    0% { transform: rotate(0deg); }
    10% { transform: rotate(-15deg); }
    20% { transform: rotate(15deg); }
    30% { transform: rotate(-15deg); }
    40% { transform: rotate(15deg); }
    50% { transform: rotate(0deg); }
    100% { transform: rotate(0deg); }
}

/* Animation du bouton */
.btn-animated {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.btn-animated::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.2) 50%, rgba(255, 255, 255, 0) 100%);
    transition: all 0.5s ease;
    z-index: 1;
}

.btn-animated:hover::before {
    left: 100%;
}

.btn-icon {
    margin-left: 5px;
    transition: transform 0.3s ease;
}

.btn-animated:hover .btn-icon {
    transform: translateX(5px);
}
