:root {
    --bg-gradient: linear-gradient(135deg, #8e44ad, #3498db);
    --text-color: #fff;
    --card-bg: rgba(255, 255, 255, 0.1);
    --accent-color: #ffdd59;
    --font-family: 'Space Grotesk', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-family);
    background: var(--bg-gradient);
    color: var(--text-color);
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100vh;
}

/* Animation d'apparition de la carte */
@keyframes fadeSlideIn {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.card {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 20px;
    text-align: center;
    max-width: 400px;
    width: 90%;
    box-shadow: 0 8px 32px rgba(0,0,0,0.2);
    backdrop-filter: blur(12px);
    animation: fadeSlideIn 1s ease-out forwards;
}

.profile-pic {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    border: 4px solid var(--accent-color);
    object-fit: cover;
    margin-bottom: 1rem;
    box-shadow: 0 0 20px var(--accent-color);
}

h1 {
    font-size: 2rem;
    margin-bottom: 0.3rem;
}

.title {
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--accent-color);
    margin-bottom: 1rem;
}

/* Badges animés - correction pour qu'ils restent visibles après l'animation */
@keyframes popIn {
    0%   { transform: scale(0);   opacity: 0; }
    60%  { transform: scale(1.1); opacity: 1; }
    100% { transform: scale(1);   opacity: 1; }
}

.badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.badges span {
    display: inline-block;              /* nécessaire pour transform */
    background: var(--accent-color);
    color: #000;
    padding: 0.4rem 0.8rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: bold;
    opacity: 0;                         /* départ invisible, l'anim gère l'apparition */
    animation: popIn 0.5s ease forwards;
    will-change: transform, opacity;    /* performance */
    transition: transform 200ms cubic-bezier(.2,.8,.2,1);
}

/* Animation décalée pour chaque badge */
.badges span:nth-child(1) { animation-delay: 0.2s; }
.badges span:nth-child(2) { animation-delay: 0.4s; }
.badges span:nth-child(3) { animation-delay: 0.6s; }
.badges span:nth-child(4) { animation-delay: 0.8s; }
.badges span:nth-child(5) { animation-delay: 1s; }
.badges span:nth-child(6) { animation-delay: 1.2s; }

/* Effet rebond au survol */
.badges span:hover {
    transform: scale(1.08);
}


.description {
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
    opacity: 0.85;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
}

.social-links img {
    width: 40px;
    height: 40px;
    transition: transform 0.3s ease;
}

.social-links img:hover {
    transform: scale(1.2);
}

