/* Reset et base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background: #f5f5f5;
    min-height: 100vh;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
header {
    background: #fff;
    color: #333;
    padding: 2rem 0;
    text-align: center;
    border-bottom: 1px solid #ddd;
}

header h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

header .title {
    font-size: 1.2rem;
    color: #666;
}

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

/* Sections */
section {
    margin-bottom: 2rem;
    background: #fff;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

section h2 {
    font-size: 1.8rem;
    color: #333;
    margin-bottom: 1.5rem;
    border-bottom: 2px solid #007bff;
    padding-bottom: 0.5rem;
}

section h3 {
    font-size: 1.3rem;
    color: #333;
    margin-bottom: 0.5rem;
}

/* Compétences */
.skills-list {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
}

.skills-list li {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    padding: 1rem;
    text-align: center;
    border-radius: 4px;
}

/* Expérience */
.experience-item {
    background: #f8f9fa;
    padding: 1.5rem;
    margin-bottom: 1rem;
    border-left: 4px solid #007bff;
    border-radius: 4px;
}

.experience-item .company {
    font-size: 1.2rem;
    font-weight: bold;
    color: #007bff;
    margin-bottom: 0.5rem;
}

.experience-item .duration {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.experience-item .description {
    line-height: 1.6;
}

/* Formation */
.formation-list {
    list-style: none;
}

.formation-list li {
    background: #f8f9fa;
    padding: 1rem;
    margin-bottom: 1rem;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.formation-list strong {
    color: #333;
}

.formation-period {
    color: #666;
    font-size: 0.9rem;
}

/* Contact */
.contact-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: #007bff;
    color: #fff;
    padding: 1rem 2rem;
    text-decoration: none;
    border-radius: 4px;
    margin-top: 1rem;
}

.github-icon {
    font-size: 1.2rem;
}

/* Footer */
footer {
    background: #333;
    color: #fff;
    text-align: center;
    padding: 1.5rem 0;
    margin-top: 2rem;
}

footer p {
    font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }
    
    header {
        padding: 1.5rem 0;
    }
    
    header h1 {
        font-size: 2rem;
    }
    
    main {
        padding: 1.5rem 0;
    }
    
    section {
        padding: 1.5rem;
    }
    
    .skills-list {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    }
    
    .formation-list li {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
}

@media (max-width: 480px) {
    header h1 {
        font-size: 1.8rem;
    }
    
    section {
        padding: 1rem;
    }
    
    .experience-item {
        padding: 1rem;
    }
}