/* --- PAGE BIOGRAPHIE --- */

.bio-grid {
    display: grid;
    grid-template-columns: 450px 1fr; /* Élargi pour laisser de la place au flex horizontal */
    gap: 30px;
    margin-top: 20px;
}

/* Alignement horizontal de la photo et des mots-clés */
.profile-flex {
    display: flex;
    flex-direction: row; /* Aligne les enfants côte à côte */
    align-items: center; /* Centre verticalement les mots par rapport à la photo */
    gap: 20px;
    width: 100%;
}

.img-wrapper {
    flex: 0 0 200px; /* Largeur fixe pour la photo pour ne pas écraser les mots */
}

.large-profile {
    width: 100%;
    height: auto;
    border: 1px solid var(--tech-brown);
    filter: grayscale(0.5);
    transition: 0.3s;
}

/* Conteneur des mots-clés à droite */
.bio-keywords {
    display: flex;
    flex-direction: column; /* Les mots s'empilent verticalement à droite de la photo */
    gap: 12px;
    flex: 1;
}

.keyword {
    font-size: 0.75rem;
    font-weight: 900;
    color: var(--neon-purple);
    border: 1px solid var(--neon-purple);
    padding: 6px 10px;
    text-transform: uppercase;
    background: rgba(180, 167, 214, 0.05);
    text-align: center;
    white-space: nowrap; /* Empêche le texte de revenir à la ligne */
    animation: keywordFlicker 3s infinite;
}

/* Décalage des animations */
.keyword:nth-child(2) { animation-delay: 0.5s; }
.keyword:nth-child(3) { animation-delay: 1.2s; }

@keyframes keywordFlicker {
    0%, 18%, 22%, 25%, 53%, 57%, 100% {
        text-shadow: 0 0 1px var(--neon-purple), 0 0 2px var(--neon-purple);
        opacity: 1;
    }
    20%, 24%, 55% {
        text-shadow: none;
        box-shadow: none;
        opacity: 0.4;
    }
}

/* Le reste du CSS (stats, dropcap, etc.) reste identique */
.status-tag {
    display: block;
    font-family: monospace;
    background: var(--tech-brown);
    color: white;
    padding: 5px 10px;
    width: fit-content;
    margin-top: -15px;
    margin-bottom: 20px;
    text-transform: uppercase;
}

.img-caption {
    font-size: 0.7rem;
    text-align: left;
    font-family: monospace;
    margin-top: 15px;
    width: 100%;
    color: #888;
}

.stats-list { list-style: none; padding: 0; }
.stats-list li {
    margin-bottom: 10px;
    font-weight: bold;
    font-size: 0.9rem;
    border-bottom: 1px dashed #ddd;
    display: flex;
    justify-content: space-between;
}

.neon-text {
    color: var(--neon-purple);
    text-shadow: 0 0 5px var(--neon-purple);
}

.text-content { line-height: 1.8; font-size: 1.1rem; color: #444; }
.dropcap {
    float: left;
    font-size: 4rem;
    line-height: 1;
    font-weight: 900;
    margin-right: 10px;
    color: var(--tech-brown);
    font-family: var(--tech-font);
}

.neon-title {
    color: var(--neon-purple);
    border-left: 5px solid var(--neon-purple);
    padding-left: 15px;
    margin-top: 30px;
}

@media (max-width: 900px) {
    .bio-grid { grid-template-columns: 1fr; }
    .profile-flex { justify-content: center; }
}