:root {
    --bg-base: #010614; /* Deep navy */
    --text-primary: #ffffff;
    --text-secondary: #94a3b8;
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.08);
    --color-1: #1d4ed8; /* Vibrant blue */
    --color-2: #312e81; /* Deep indigo */
    --color-3: #1e3a8a; /* Royal blue */
    --grain-opacity: 0.5; 
    --grain-blend: overlay;
    --grain-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='3.6' numOctaves='5' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
    background-color: var(--bg-base);
    color: var(--text-primary);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow-x: hidden; /* Permet le scroll vertical, empêche le scroll horizontal */
    position: relative;
    -webkit-font-smoothing: antialiased;
}

/* Ambient Animated Background */
.ambient-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 0;
    overflow: hidden;
    background: radial-gradient(circle at center, #0a1945 0%, var(--bg-base) 100%);
}

/* Subtle grain overlay to match the image texture */
.ambient-background::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: var(--grain-opacity);
    mix-blend-mode: var(--grain-blend);
    z-index: 1;
    pointer-events: none;
    background-image: var(--grain-image);
}

.gradient-sphere {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.6;
    animation: drift 25s infinite ease-in-out alternate;
}

.sphere-1 {
    width: 50vw;
    height: 50vw;
    max-width: 600px;
    max-height: 600px;
    background: radial-gradient(circle, var(--color-1) 0%, transparent 70%);
    top: -10%;
    left: -10%;
    animation-delay: 0s;
}

.sphere-2 {
    width: 45vw;
    height: 45vw;
    max-width: 500px;
    max-height: 500px;
    background: radial-gradient(circle, var(--color-2) 0%, transparent 70%);
    bottom: -10%;
    right: -5%;
    animation-delay: -5s;
}

.sphere-3 {
    width: 40vw;
    height: 40vw;
    max-width: 450px;
    max-height: 450px;
    background: radial-gradient(circle, var(--color-3) 0%, transparent 70%);
    top: 30%;
    left: 30%;
    opacity: 0.4;
    animation-delay: -10s;
}

@keyframes drift {
    0% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(5%, -5%) scale(1.1); }
    66% { transform: translate(-3%, 4%) scale(0.9); }
    100% { transform: translate(0, 0) scale(1); }
}

/* Main Content Card */
.card-container {
    position: relative;
    z-index: 10;
    width: 100%;
    max-width: 768px;
    padding: 2rem;
    perspective: 1000px;
    margin: auto;
}

.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid var(--glass-border);
    border-radius: 32px;
    padding: 3.5rem 3rem;
    box-shadow: 
        0 4px 24px -1px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 0 rgba(255, 255, 255, 0.1);
    transition: transform 0.1s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    transform-style: preserve-3d;
    
    /* Entrance Animation */
    animation: revealCard 1.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    opacity: 0;
    transform: translateY(30px);
}

@keyframes revealCard {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.card-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transform: translateZ(30px);
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    padding: 0.5rem 1.25rem;
    border-radius: 100px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 2rem;
    color: var(--text-primary);
}

.badge-icon {
    animation: spin 8s linear infinite;
}

@keyframes spin {
    100% {
        transform: rotate(360deg);
    }
}

.title {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.03em;
    margin-bottom: 0.5rem;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
}

.firstname {
    color: var(--text-primary);
}

.lastname {
    color: var(--text-primary);
}

.role {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--color-1);
    margin-bottom: 1.5rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.separator {
    width: 48px;
    height: 4px;
    background-color: var(--color-1);
    border-radius: 4px;
    margin-bottom: 2rem;
    transition: width 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.glass-card:hover .separator {
    width: 96px;
}

.bio {
    font-size: 1.15rem;
    font-weight: 400;
    line-height: 1.7;
    color: var(--text-secondary);
    text-align: center;
    max-width: 90%;
    margin-bottom: 2.5rem;
}

.status-box {
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    padding: 1.5rem 2rem;
    text-align: center;
    width: 100%;
}

.status-box p {
    font-size: 0.95rem;
    font-style: italic;
    color: #cbd5e1;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.contact-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
}

.contact-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
    text-decoration: none;
    padding: 0.75rem 1.5rem;
    border-radius: 100px;
    font-size: 0.95rem;
    font-weight: 600;
    transition: all 0.2s ease;
}

.contact-link svg {
    opacity: 0.7;
    transition: opacity 0.2s ease;
}

.contact-link:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
    color: #fff;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.contact-link:hover svg {
    opacity: 1;
}

/* Responsive adjustments */
@media (max-width: 640px) {
    .glass-card {
        padding: 2.5rem 1.5rem;
        border-radius: 24px;
    }
    
    .title {
        font-size: 2.75rem;
    }
    
    .bio {
        font-size: 1.05rem;
        max-width: 100%;
    }
    
    .status-box {
        padding: 1.5rem;
    }
    
    .contact-link {
        width: 100%;
        justify-content: center;
    }
}
