/* 
==========================================================================
CARDS & COMPONENTS - PORTFOLIO JULIEN PINOT
Styles pour les cartes, projets, statistiques et composants réutilisables
==========================================================================
*/

/* ==================== CARTES PROFESSIONNELLES ==================== */
.card {
    background: var(--bg-card);
    border-radius: var(--border-radius-xl);
    padding: var(--space-5);
    border: 1px solid transparent;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    height: 100%;
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-blue), var(--accent-emerald));
    border-radius: var(--border-radius-xl) var(--border-radius-xl) 0 0;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.card:hover {
    border-color: var(--primary-blue);
    box-shadow: var(--shadow-card-hover);
    transform: translateY(-4px);
}

.card:hover::before {
    opacity: 1;
}

.card-header {
    margin-bottom: var(--space-3);
}

.card-title {
    color: var(--primary-blue);
    margin-bottom: var(--space-2);
    font-size: 1.25rem;
    font-weight: var(--font-heading);
}

.card-subtitle {
    color: var(--text-muted);
    font-size: 0.875rem;
    font-weight: 500;
}

.card-content {
    color: var(--text-secondary);
}

/* ==================== STATISTIQUES ==================== */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--space-4);
    margin: var(--space-5) 0;
}

.stat-item {
    text-align: center;
    padding: var(--space-4);
    background: var(--bg-card);
    border-radius: var(--border-radius-xl);
    border: 1px solid transparent;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.stat-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-blue), var(--accent-emerald));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.stat-item:hover {
    box-shadow: var(--shadow-card-hover);
    transform: translateY(-4px);
    border-color: var(--primary-blue);
}

.stat-item:hover::before {
    opacity: 1;
}

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: var(--font-display);
    color: var(--primary-blue);
    margin-bottom: var(--space-2);
}

.stat-label {
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 0.875rem;
}

/* ==================== COMPÉTENCES ==================== */
.skill-item {
    background: var(--bg-card);
    padding: var(--spacing-lg);
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
    margin-bottom: var(--spacing-md);
    transition: var(--transition-normal);
}

.skill-item:hover {
    border-color: var(--primary-blue);
    box-shadow: var(--shadow-md);
}

.skill-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--spacing-md);
}

.skill-name {
    color: var(--text-primary);
    font-weight: 600;
}

.skill-level {
    color: var(--primary-blue);
    font-weight: 700;
    font-size: 0.875rem;
}

.skill-bar {
    height: 6px;
    background: var(--bg-tertiary);
    border-radius: 3px;
    overflow: hidden;
    position: relative;
}

.skill-progress {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-blue), var(--accent-emerald));
    border-radius: 3px;
    transition: width 1s ease-out;
}

/* ==================== PROJETS ==================== */
.project-card {
    background: var(--bg-card);
    border-radius: var(--border-radius-xl);
    overflow: hidden;
    border: 1px solid transparent;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    height: 100%;
    position: relative;
}

.project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-blue), var(--accent-emerald), var(--accent-orange));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.project-card:hover {
    box-shadow: var(--shadow-card-hover);
    transform: translateY(-4px);
    border-color: var(--primary-blue);
}

.project-card:hover::before {
    opacity: 1;
}

.project-header {
    padding: var(--space-4);
    border-bottom: 1px solid var(--border-light);
}

.project-content {
    padding: var(--space-4);
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2);
    margin-top: var(--space-3);
}

.tech-tag {
    background: var(--bg-tertiary);
    color: var(--primary-blue);
    padding: var(--space-1) var(--space-2);
    border-radius: var(--border-radius);
    font-size: 0.75rem;
    font-weight: 600;
    border: 1px solid var(--border-color);
    transition: all 0.2s ease;
}

.tech-tag:hover {
    background: var(--primary-blue);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.project-links {
    display: flex;
    gap: var(--space-3);
    margin-top: var(--space-3);
}

/* ==================== TIMELINE ==================== */
.timeline {
    position: relative;
    padding: var(--spacing-xl) 0;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 2rem;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--border-color);
}

.timeline-item {
    position: relative;
    margin: var(--spacing-xl) 0;
    padding-left: 4rem;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: 1.25rem;
    top: 0.5rem;
    width: 0.75rem;
    height: 0.75rem;
    background: var(--primary-blue);
    border-radius: 50%;
    border: 2px solid var(--white);
    box-shadow: var(--shadow-md);
}

.timeline-content {
    background: var(--bg-card);
    padding: var(--spacing-lg);
    border-radius: var(--border-radius-lg);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
}

.timeline-date {
    color: var(--primary-blue);
    font-weight: 600;
    font-size: 0.875rem;
    margin-bottom: var(--spacing-sm);
}

.timeline-card {
    background: var(--bg-card);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
}

.timeline-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
}

.timeline-header {
    display: flex;
    align-items: center;
    padding: var(--spacing-lg);
    border-bottom: 1px solid var(--border-light);
    background: var(--bg-secondary);
}

.company-logo {
    flex-shrink: 0;
    margin-right: var(--spacing-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    background: var(--white);
    border-radius: var(--border-radius-md);
    border: 2px solid var(--border-color);
    overflow: hidden;
}

.timeline-logo {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: var(--spacing-sm);
}

.timeline-info {
    flex: 1;
    min-width: 0;
}

.timeline-title {
    color: var(--text-primary);
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0 0 var(--spacing-sm) 0;
    line-height: 1.3;
}

.timeline-meta {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xs);
}

.timeline-company {
    color: var(--primary-blue);
    font-weight: 600;
    font-size: 1rem;
}

.timeline-period {
    color: var(--text-muted);
    font-size: 0.875rem;
    font-weight: 500;
}

.timeline-body {
    padding: var(--spacing-lg);
}

.timeline-description {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: var(--spacing-lg);
}

.timeline-achievements {
    margin-bottom: var(--spacing-lg);
}

.timeline-achievements h4 {
    color: var(--text-primary);
    font-size: 1rem;
    font-weight: 600;
    margin: 0 0 var(--spacing-sm) 0;
}

.timeline-achievements ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.timeline-achievements li {
    color: var(--text-secondary);
    margin-bottom: var(--spacing-sm);
    padding-left: var(--spacing-md);
    position: relative;
}

.timeline-achievements li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.5rem;
    width: 4px;
    height: 4px;
    background: var(--primary-blue);
    border-radius: 50%;
}

.timeline-marker {
    position: absolute;
    left: 1rem;
    top: 1rem;
    width: 2rem;
    height: 2rem;
    background: var(--primary-blue);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    border: 4px solid var(--white);
    box-shadow: var(--shadow-md);
    z-index: 2;
}

.timeline-marker i {
    width: 1rem;
    height: 1rem;
}

/* ==================== INTRO SECTION ==================== */
.intro-section {
    background: var(--bg-card);
    border-radius: var(--border-radius-xl);
    border: 1px solid var(--border-color);
    margin: var(--spacing-xl) auto;
    padding: var(--spacing-2xl);
    max-width: 800px;
    box-shadow: var(--shadow-md);
}

/* ==================== CONTACT ==================== */
.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-2xl);
    max-width: 1000px;
    margin: 0 auto;
}

.contact-info,
.contact-form-container {
    background: var(--bg-card);
    padding: var(--spacing-xl);
    border-radius: var(--border-radius-lg);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
}

.availability-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--spacing-xl);
    margin-top: var(--spacing-xl);
}

.availability-card {
    background: var(--bg-card);
    padding: var(--spacing-xl);
    border-radius: var(--border-radius);
    border-left: 4px solid var(--primary-blue);
    border-top: 1px solid var(--border-color);
    border-right: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    transition: var(--transition-normal);
    box-shadow: var(--shadow-sm);
}

.availability-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* ==================== RESPONSIVE CARDS ==================== */
@media (max-width: 1024px) {
    .timeline::before {
        left: 1rem;
    }
    
    .timeline-item {
        padding-left: 2.5rem;
    }
    
    .timeline-item::before {
        left: 0.625rem;
    }
    
    .timeline-marker {
        left: 0.5rem;
    }
}

@media (max-width: 768px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-3);
    }
    
    .card {
        padding: var(--space-4);
    }
    
    .card-title {
        font-size: 1.125rem;
    }
    
    .card-content p {
        font-size: 0.95rem;
    }
    
    .project-links {
        flex-direction: column;
        align-items: center;
        gap: var(--space-2);
    }
    
    .timeline-header {
        flex-direction: column;
        text-align: center;
        gap: var(--spacing-md);
    }
    
    .company-logo {
        margin-right: 0;
        margin-bottom: var(--spacing-sm);
        width: 60px;
        height: 60px;
    }
    
    .timeline-meta {
        align-items: center;
    }
    
    .timeline-title {
        font-size: 1.125rem;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
    }
}

@media (max-width: 480px) {
    .stats-grid {
        grid-template-columns: 1fr;
        gap: var(--space-2);
    }
    
    .card,
    .project-card {
        padding: var(--space-3);
    }
    
    .project-tech {
        gap: var(--space-1);
    }
    
    .tech-tag {
        font-size: 0.7rem;
        padding: 6px 10px;
    }
}

/* Mobile performance optimization */
@media (max-width: 768px) {
    .card::before,
    .project-card::before,
    .stat-item::before {
        display: none;
    }
    
    .card:hover,
    .stat-item:hover,
    .project-card:hover {
        transform: translateY(-2px);
    }
}
