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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #f5f5f5;
    min-height: 100vh;
    color: #333;
    margin: 0;
    padding: 0;
}

/* Navigation */
nav {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

nav .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

nav .logo {
    color: white;
    font-size: 1.5rem;
    font-weight: bold;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 30px;
}

nav a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: opacity 0.3s;
}

nav a:hover {
    opacity: 0.8;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 100px 20px;
    text-align: center;
    color: white;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
}

.hero .subtitle {
    font-size: 1.5rem;
    margin-bottom: 15px;
    opacity: 0.95;
}

.hero .description {
    font-size: 1.1rem;
    max-width: 700px;
    margin: 0 auto 30px;
    line-height: 1.6;
    opacity: 0.9;
}

.hero .cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 30px;
}

.btn {
    padding: 12px 30px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    transition: transform 0.3s, box-shadow 0.3s;
    display: inline-block;
}

.btn-primary {
    background: white;
    color: #667eea;
}

.btn-secondary {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}

/* Skills Section */
.skills-section {
    background: white;
    padding: 80px 20px;
}

.skills-section h2 {
    text-align: center;
    font-size: 2.5rem;
    color: #667eea;
    margin-bottom: 50px;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    max-width: 1000px;
    margin: 0 auto;
}

.skill-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 30px;
    border-radius: 15px;
    color: white;
    text-align: center;
    transition: transform 0.3s;
}

.skill-card:hover {
    transform: translateY(-5px);
}

.skill-card h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
}

.skill-card ul {
    list-style: none;
    padding: 0;
}

.skill-card li {
    padding: 5px 0;
    opacity: 0.95;
}

/* Projects Section */
.projects-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 80px 20px;
}

.container {
    max-width: 1000px;
    margin: 0 auto;
}

.projects-section h2 {
    text-align: center;
    color: white;
    font-size: 2.5rem;
    margin-bottom: 50px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
}

/* Footer */
footer {
    background: #2d3748;
    color: white;
    padding: 40px 20px;
    text-align: center;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 25px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: white;
    text-decoration: none;
    font-size: 1rem;
    padding: 12px 20px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-3px);
}

.social-links a svg {
    flex-shrink: 0;
}

.social-links a span {
    font-weight: 500;
}

.timeline {
    position: relative;
    padding: 20px 0;
}

/* Ligne verticale centrale */
.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 100%;
    background: linear-gradient(to bottom, #fff, rgba(255,255,255,0.5));
    border-radius: 2px;
}

.timeline-item {
    position: relative;
    margin-bottom: 50px;
    width: 100%;
}

.timeline-item:last-child {
    margin-bottom: 0;
}

/* Alternance gauche/droite */
.timeline-item:nth-child(odd) .timeline-content {
    margin-left: 0;
    margin-right: auto;
    padding-right: 50px;
    text-align: right;
}

.timeline-item:nth-child(even) .timeline-content {
    margin-left: auto;
    margin-right: 0;
    padding-left: 50px;
    text-align: left;
}

.timeline-content {
    width: calc(50% - 10px);
    background: white;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 5px 25px rgba(0,0,0,0.2);
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.timeline-content:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 35px rgba(0,0,0,0.3);
}

/* Point sur la timeline */
.timeline-marker {
    position: absolute;
    left: 50%;
    top: 30px;
    transform: translateX(-50%);
    width: 20px;
    height: 20px;
    background: white;
    border: 4px solid #667eea;
    border-radius: 50%;
    z-index: 10;
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.2);
}

.project-title {
    color: #667eea !important;
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 10px;
}

.project-header {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 10px;
}

.project-version {
    background: #667eea;
    color: white;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
}

.project-type {
    display: inline-block;
    color: #764ba2;
    font-weight: 600;
    font-size: 0.85rem;
    margin-bottom: 10px;
    padding: 4px 12px;
    background: rgba(118, 75, 162, 0.1);
    border-radius: 15px;
    border: 1px solid rgba(118, 75, 162, 0.3);
}

.project-date {
    color: #764ba2;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 15px;
    display: inline-block;
    padding: 5px 12px;
    background: rgba(118, 75, 162, 0.1);
    border-radius: 20px;
}

.project-description {
    color: #555;
    line-height: 1.6;
    margin-bottom: 15px;
}

.project-technologies {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 15px;
}

.timeline-item:nth-child(odd) .project-technologies {
    justify-content: flex-end;
}

.tech-tag {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 0.85rem;
    font-weight: 500;
}

/* GitHub Link Styles */
.github-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 15px;
    padding: 10px 20px;
    background: #24292e;
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: background 0.3s, transform 0.3s;
}

.github-link:hover {
    background: #1a1e22;
    transform: translateY(-2px);
}

.github-link svg {
    width: 20px;
    height: 20px;
}

.timeline-item:nth-child(odd) .timeline-content.has-github {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.timeline-item:nth-child(even) .timeline-content.has-github {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

/* Responsive */
@media (max-width: 768px) {
    nav ul {
        gap: 15px;
        font-size: 0.9rem;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .hero .subtitle {
        font-size: 1.2rem;
    }

    .hero .description {
        font-size: 1rem;
    }

    .skills-section h2,
    .projects-section h2 {
        font-size: 2rem;
    }

    .timeline::before {
        left: 30px;
    }

    .timeline-marker {
        left: 30px;
    }

    .timeline-item:nth-child(odd) .timeline-content,
    .timeline-item:nth-child(even) .timeline-content {
        width: calc(100% - 80px);
        margin-left: 80px;
        margin-right: 0;
        padding: 20px;
        text-align: left;
    }

    .timeline-item:nth-child(odd) .project-technologies {
        justify-content: flex-start;
    }

    .timeline-item:nth-child(odd) .timeline-content.has-github,
    .timeline-item:nth-child(even) .timeline-content.has-github {
        align-items: flex-start;
    }

    .project-title {
        font-size: 1.3rem;
    }
}

@media (max-width: 480px) {
    nav .logo {
        font-size: 1.2rem;
    }

    nav ul {
        gap: 10px;
        font-size: 0.8rem;
    }

    .hero {
        padding: 60px 20px;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .hero .subtitle {
        font-size: 1.1rem;
    }

    .skills-section,
    .projects-section {
        padding: 50px 20px;
    }

    .timeline::before {
        left: 20px;
    }

    .timeline-marker {
        left: 20px;
        width: 16px;
        height: 16px;
    }

    .timeline-item:nth-child(odd) .timeline-content,
    .timeline-item:nth-child(even) .timeline-content {
        width: calc(100% - 60px);
        margin-left: 60px;
        padding: 15px;
    }

    .project-title {
        font-size: 1.2rem;
    }

    .tech-tag {
        font-size: 0.75rem;
        padding: 4px 10px;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }

    .btn {
        width: 200px;
        text-align: center;
    }

    .github-link {
        font-size: 0.85rem;
        padding: 8px 16px;
    }

    .social-links {
        flex-direction: column;
        gap: 15px;
        align-items: center;
    }

    .social-links a {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }
}