/*
╔══════════════════════════════════════════════════════════════╗
║  SOMMAIRE - PROFIL.CSS                                       ║
╠══════════════════════════════════════════════════════════════╣
║  1. Carte profil                                             ║
║  2. Avatar avec animation                                    ║
║  3. Informations et listes                                   ║
║  4. Barres de compétences                                    ║
║  5. Responsive                                               ║
╚══════════════════════════════════════════════════════════════╝
*/

/* ═══════════════════════════════════════════════════════════════
   1. CARTE PROFIL
   ═══════════════════════════════════════════════════════════════ */
.profile-card {
    position: relative;
    background: var(--color-bg-secondary);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-xl);
    padding: var(--space-xl);
    overflow: hidden;
}

.profile-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--gradient-card);
    pointer-events: none;
}

/* ═══════════════════════════════════════════════════════════════
   2. AVATAR AVEC ANIMATION
   ═══════════════════════════════════════════════════════════════ */
.profile-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-lg);
    padding-bottom: var(--space-xl);
    border-bottom: 1px solid var(--color-border);
    margin-bottom: var(--space-xl);
    text-align: center;
}

.profile-avatar {
    position: relative;
}

.avatar-wrapper {
    position: relative;
    width: 120px;
    height: 120px;
    border-radius: var(--radius-full);
    overflow: hidden;
}

.avatar-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.avatar-ring {
    position: absolute;
    inset: -4px;
    border: 2px solid var(--color-border);
    border-radius: var(--radius-full);
    animation: ringPulse 3s ease-in-out infinite;
}

@keyframes ringPulse {
    0%, 100% { opacity: 0.5; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.02); }
}

.avatar-scan {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--color-accent), transparent);
    animation: scanLine 2s linear infinite;
}

@keyframes scanLine {
    0% { top: 0; opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { top: 100%; opacity: 0; }
}

.profile-identity {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.profile-name {
    font-size: var(--fs-2xl);
    font-weight: var(--fw-bold);
}

.profile-role {
    font-family: var(--font-mono);
    font-size: var(--fs-md);
    color: var(--color-text-secondary);
}

.cursor-blink {
    animation: blink 1s infinite;
}

.profile-tags {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--space-sm);
    margin-top: var(--space-sm);
}

.profile-actions {
    display: flex;
    gap: var(--space-sm);
}

/* ═══════════════════════════════════════════════════════════════
   3. INFORMATIONS ET LISTES
   ═══════════════════════════════════════════════════════════════ */
.profile-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-xl);
}

.profile-section {
    padding: var(--space-lg);
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
}

.profile-section-title {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-size: var(--fs-md);
    font-weight: var(--fw-semibold);
    margin-bottom: var(--space-md);
    color: var(--color-text-primary);
}

.profile-section-title i {
    color: var(--color-text-muted);
}

.profile-text {
    font-size: var(--fs-base);
    line-height: 1.7;
}

.info-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.info-item {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    font-size: var(--fs-sm);
}

.info-item i {
    width: 20px;
    text-align: center;
    color: var(--color-text-muted);
}

.info-label {
    color: var(--color-text-muted);
    min-width: 100px;
}

.info-value {
    color: var(--color-text-primary);
    font-weight: var(--fw-medium);
}

/* ═══════════════════════════════════════════════════════════════
   4. BARRES DE COMPÉTENCES
   ═══════════════════════════════════════════════════════════════ */
.skills-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-md);
}

.skill-item {
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
}

.skill-header {
    display: flex;
    justify-content: space-between;
    font-size: var(--fs-sm);
}

.skill-name {
    color: var(--color-text-secondary);
}

.skill-percent {
    font-family: var(--font-mono);
    color: var(--color-text-muted);
}

.skill-bar {
    height: 6px;
    background: var(--color-bg-tertiary);
    border-radius: var(--radius-full);
    overflow: hidden;
}

.skill-progress {
    height: 100%;
    width: 0;
    background: var(--color-accent);
    border-radius: var(--radius-full);
    transition: width 1s ease-out;
}

.skill-item.animated .skill-progress {
    width: var(--progress);
}

/* ═══════════════════════════════════════════════════════════════
   5. RESPONSIVE
   ═══════════════════════════════════════════════════════════════ */
@media (min-width: 768px) {
    .profile-header {
        flex-direction: row;
        text-align: left;
    }
    
    .profile-identity {
        align-items: flex-start;
    }
    
    .profile-tags {
        justify-content: flex-start;
    }
    
    .profile-actions {
        margin-left: auto;
    }
    
    .profile-content {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .profile-skills {
        grid-column: span 2;
    }
    
    .skills-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .profile-card {
        padding: var(--space-2xl);
    }
    
    .avatar-wrapper {
        width: 140px;
        height: 140px;
    }
    
    .skills-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}
