/* Animations générales */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideIn {
    from {
        transform: translateX(-100%);
    }
    to {
        transform: translateX(0);
    }
}

/* Effet de verre */
.glass {
    background: rgba(17, 24, 39, 0.7);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Animation des sections */
section {
    animation: fadeIn 0.8s ease-out forwards;
}

/* Animation des cartes */
.skill-card,
.experience-card,
.education-card,
.language-card {
    transition: all 0.3s ease;
}

.skill-card:hover,
.experience-card:hover,
.education-card:hover,
.language-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

/* Animation des icônes */
.fab, .fas {
    transition: transform 0.3s ease;
}

.fab:hover, .fas:hover {
    transform: scale(1.2) rotate(5deg);
}

/* Animation du texte */
h1, h2, h3 {
    position: relative;
}

h1::after, h2::after, h3::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(to right, #3B82F6, #8B5CF6);
    transition: width 0.3s ease;
}

h1:hover::after, h2:hover::after, h3:hover::after {
    width: 100%;
}

/* Styles personnalisés */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    background: linear-gradient(135deg, #1a1a1a 0%, #2d3748 100%);
}

.container {
    opacity: 0;
    animation: fadeIn 1s ease-out forwards;
}

/* Animation au scroll */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Effet de survol sur les cartes */
.skill-card:hover,
.experience-card:hover,
.education-card:hover,
.language-card:hover {
    background: rgba(17, 24, 39, 0.8);
    border-color: rgba(59, 130, 246, 0.5);
}

/* Animation de la photo de profil */
.rounded-full img {
    transition: transform 0.3s ease;
}

.rounded-full:hover img {
    transform: scale(1.1);
}

/* Effet de brillance sur les titres */
.bg-gradient-to-r {
    background-size: 200% auto;
    animation: shine 3s linear infinite;
}

@keyframes shine {
    to {
        background-position: 200% center;
    }
}

/* Animation des statistiques */
.stat-number {
    transition: all 0.3s ease;
}

.stat-number:hover {
    transform: scale(1.1);
    color: #3B82F6;
}

/* Effet de survol sur les liens */
a {
    transition: all 0.3s ease;
}

a:hover {
    color: #3B82F6;
}

/* Animation des cartes au survol */
.card-hover-effect {
    transition: all 0.3s ease;
}

.card-hover-effect:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

/* Effet de brillance sur les bordures */
.border-blue-500 {
    position: relative;
}

.border-blue-500::after {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, #3B82F6, #8B5CF6);
    border-radius: inherit;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.border-blue-500:hover::after {
    opacity: 1;
}

/* Animation des barres de compétences */
.skill-item .bg-orange-500,
.skill-item .bg-blue-500,
.skill-item .bg-yellow-500,
.skill-item .bg-green-500 {
    width: 0;
    transition: width 1.5s ease-in-out;
}

.skill-item:hover .bg-orange-500,
.skill-item:hover .bg-blue-500,
.skill-item:hover .bg-yellow-500,
.skill-item:hover .bg-green-500 {
    width: var(--width);
}

/* Animation des bordures */
.border-l-4 {
    transition: border-color 0.3s ease;
}

.border-l-4:hover {
    border-color: #3B82F6;
} 