/* Variables et Reset */
:root {
    --color-primary: #2563eb;
    --color-primary-light: #3b82f6;
    --color-secondary: #1e40af;
    --color-accent: #60a5fa;
    --color-background: #f8fafc;
    --color-surface: #ffffff;
    --color-text: #1e293b;
    --color-text-light: #64748b;
    --color-border: #e2e8f0;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 1rem;
}

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

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--color-background);
    color: var(--color-text);
    line-height: 1.6;
}

/* Layout */
.page-wrapper {
    max-width: 1200px;
    margin: 2rem auto;
    background: var(--color-surface);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
}

/* Header */
header {
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
    padding: 2.5rem 2rem;
    color: white;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
}

.profile-info {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.profile-image {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 4px solid var(--color-accent);
    box-shadow: var(--shadow-md);
}

.name-title h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.title {
    font-size: 1.25rem;
    color: var(--color-accent);
    font-weight: 500;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.icon {
    font-size: 1.25rem;
}

/* Main Content */
main {
    padding: 2rem;
}

.content-grid {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 2rem;
}

/* Sidebar */
.sidebar {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

/* Section Cards */
.section-card {
    background: var(--color-surface);
    padding: 1.5rem;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--color-border);
}

.section-card h2 {
    color: var(--color-primary);
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1.25rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--color-accent);
}

/* Skills */
.skills-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.skill-item {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.skill-name {
    font-weight: 500;
}

.skill-bar {
    height: 8px;
    background: var(--color-border);
    border-radius: var(--radius-sm);
    overflow: hidden;
}

.skill-progress {
    height: 100%;
    background: linear-gradient(90deg, var(--color-primary), var(--color-accent));
    border-radius: var(--radius-sm);
}

/* Languages */
.languages-list {
    list-style: none;
}

.languages-list li {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--color-border);
}

.languages-list li:last-child {
    border-bottom: none;
}

.level {
    color: var(--color-text-light);
}

/* Interests */
.interests {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.interest-tag {
    background: var(--color-primary-light);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-sm);
    font-size: 0.875rem;
}

/* Timeline */
.timeline {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.timeline-item {
    display: grid;
    grid-template-columns: 120px 1fr;
    gap: 1.5rem;
    position: relative;
}

.timeline-date {
    color: var(--color-primary);
    font-weight: 600;
}

.timeline-content h3 {
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.timeline-content p {
    color: var(--color-text-light);
}

/* Experience */
.experience-grid {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.experience-item {
    padding: 1.25rem;
    background: var(--color-surface);
    border-radius: var(--radius-md);
    border: 1px solid var(--color-border);
    transition: transform 0.2s, box-shadow 0.2s;
}

.experience-item:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.experience-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.experience-date {
    color: var(--color-primary);
    font-weight: 500;
}

.experience-company {
    color: var(--color-text-light);
    font-size: 0.875rem;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-wrapper {
        margin: 1rem;
    }
    
    .header-content {
        flex-direction: column;
        text-align: center;
    }
    
    .profile-info {
        flex-direction: column;
    }
    
    .contact-info {
        align-items: center;
    }
}

@media (max-width: 768px) {
    .content-grid {
        grid-template-columns: 1fr;
    }
    
    .timeline-item {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }
    
    .timeline-date {
        color: var(--color-primary);
        font-size: 0.875rem;
    }
    
    .experience-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
}