/* Variables CSS pour la palette vert-bleu */
:root {
    --primary-blue: #2E86C1;
    --secondary-green: #27AE60;
    --light-blue: #A9CCE3;
    --dark-green: #1A5276;
    --white: #ffffff;
    --light-gray: #f8f9fa;
    --text-gray: #666666;
    --dark-gray: #333333;
}

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

body {
    font-family: 'Montserrat', sans-serif;
    line-height: 1.6;
    color: var(--dark-gray);
    overflow-x: hidden;
}

/* Navigation fixe */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: linear-gradient(135deg, var(--primary-blue), var(--secondary-green));
    padding: 1rem 2rem;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--white);
    text-decoration: none;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    color: var(--white);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    padding: 0.5rem 1rem;
    border-radius: 5px;
}

.nav-link:hover,
.nav-link.active {
    background: rgba(255,255,255,0.2);
    transform: translateY(-2px);
}

/* Sélecteur de langue */
.language-selector select {
    background: rgba(255,255,255,0.2);
    color: var(--white);
    border: 1px solid rgba(255,255,255,0.3);
    padding: 0.5rem;
    border-radius: 5px;
    font-weight: 500;
}

/* Section Hero */
.hero {
    background: linear-gradient(135deg, var(--primary-blue), var(--secondary-green));
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 0 2rem;
    margin-top: 80px;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-content h1 {
    font-size: 1.2rem;
    color: var(--light-blue);
    margin-bottom: 0.5rem;
}

.hero-content h2 {
    font-size: 4rem;
    font-weight: 800;
    color: var(--white);
    margin-bottom: 0.5rem;
    line-height: 1.1;
}

.hero-content h3 {
    font-size: 1.5rem;
    color: var(--light-blue);
    margin-bottom: 2rem;
}

.hero-btn {
    background: var(--white);
    color: var(--primary-blue);
    padding: 1rem 2rem;
    border: none;
    border-radius: 5px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

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

.hero-image {
    text-align: center;
}

.hero-image img {
    width: 100%;
    max-width: 400px;
    border-radius: 15px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}

/* Sections générales */
.section {
    padding: 5rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-subtitle {
    color: var(--primary-blue);
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 0.5rem;
    position: relative;
}

.section-subtitle::before {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    top: -10px;
    width: 50px;
    height: 3px;
    background: var(--secondary-green);
}

.section-title {
    font-size: 3rem;
    font-weight: 700;
    color: var(--dark-gray);
    margin-bottom: 1rem;
}

/* Section About */
.about-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-image img {
    width: 100%;
    border-radius: 15px;
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

.about-content p {
    font-size: 1.1rem;
    color: var(--text-gray);
    margin-bottom: 2rem;
    line-height: 1.8;
}

.skills {
    margin-top: 2rem;
}

.skill-item {
    margin-bottom: 1.5rem;
}

.skill-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
}

.skill-name {
    font-weight: 600;
    color: var(--dark-gray);
}

.skill-percentage {
    font-weight: 600;
    color: var(--primary-blue);
}

.skill-bar {
    height: 8px;
    background: var(--light-gray);
    border-radius: 4px;
    overflow: hidden;
}

.skill-progress {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-blue), var(--secondary-green));
    border-radius: 4px;
    transition: width 2s ease;
}

/* Section Education */
.education-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 3rem;
}

.education-item {
    display: flex;
    gap: 2rem;
    padding: 2rem;
    background: var(--white);
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    border: 3px solid var(--light-blue);
    transition: all 0.3s ease;
}

.education-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

.education-logo {
    width: 80px;
    height: 80px;
    border: 2px solid var(--primary-blue);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--light-blue);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-blue);
    flex-shrink: 0;
}

.education-content h3 {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--dark-gray);
    margin-bottom: 0.5rem;
}

.education-school {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary-blue);
    margin-bottom: 0.5rem;
}

.education-location {
    color: var(--text-gray);
    font-style: italic;
}

.education-period {
    color: var(--secondary-green);
    font-weight: 600;
    font-size: 0.9rem;
}

/* Section Experience */
.experience-container {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.timeline {
    position: relative;
    padding: 2rem 0;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    top: 0;
    bottom: 0;
    width: 3px;
    background: var(--secondary-green);
}

.timeline-item {
    position: relative;
    margin-bottom: 3rem;
    width: 45%;
}

.timeline-item.left {
    left: 0;
    text-align: right;
}

.timeline-item.right {
    left: 55%;
    text-align: left;
}

.timeline-content {
    background: var(--white);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    border: 3px solid var(--light-blue);
    position: relative;
}

.timeline-item.left .timeline-content::after {
    content: '';
    position: absolute;
    right: -15px;
    top: 30px;
    width: 0;
    height: 0;
    border: 15px solid;
    border-color: transparent transparent transparent var(--white);
}

.timeline-item.right .timeline-content::after {
    content: '';
    position: absolute;
    left: -15px;
    top: 30px;
    width: 0;
    height: 0;
    border: 15px solid;
    border-color: transparent var(--white) transparent transparent;
}

.timeline-dot {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    top: 30px;
    width: 20px;
    height: 20px;
    background: var(--secondary-green);
    border: 4px solid var(--white);
    border-radius: 50%;
    z-index: 2;
    box-shadow: 0 0 0 3px var(--secondary-green);
}

.timeline-date {
    color: var(--secondary-green);
    font-weight: 700;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
}

.timeline-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary-blue);
    margin-bottom: 0.5rem;
}

.timeline-company {
    font-size: 1rem;
    font-weight: 600;
    color: var(--dark-gray);
    margin-bottom: 1rem;
}

.timeline-description {
    color: var(--text-gray);
    line-height: 1.6;
}

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

.timeline-description li {
    margin-bottom: 0.5rem;
    padding-left: 1.5rem;
    position: relative;
}

.timeline-description li::before {
    content: '▸';
    color: var(--secondary-green);
    position: absolute;
    left: 0;
    font-weight: bold;
}

.tech-stack {
    background: var(--light-blue);
    padding: 0.8rem 1rem;
    border-radius: 8px;
    margin-top: 1rem;
    font-size: 0.9rem;
    font-style: italic;
    color: var(--dark-green);
}

/* Section Portfolio */
.portfolio-nav {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.portfolio-btn {
    background: transparent;
    color: var(--primary-blue);
    border: 2px solid var(--primary-blue);
    padding: 0.8rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.portfolio-btn:hover,
.portfolio-btn.active {
    background: var(--primary-blue);
    color: var(--white);
    transform: translateY(-2px);
}

.portfolio-content {
    background: var(--light-gray);
    padding: 3rem;
    border-radius: 15px;
    min-height: 400px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-menu {
        display: none;
    }

    .hero-container,
    .about-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .hero-content h2 {
        font-size: 2.5rem;
    }

    .section-title {
        font-size: 2rem;
    }

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

    .timeline-item {
        width: 100%;
        left: 0 !important;
        text-align: left;
        padding-left: 50px;
    }

    .timeline-item .timeline-content::after {
        display: none;
    }

    .timeline-dot {
        left: 20px;
        transform: none;
    }

    .education-container {
        grid-template-columns: 1fr;
    }

    .education-item {
        flex-direction: column;
        text-align: center;
    }
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeInUp 0.6s ease forwards;
}

/* Smooth scroll */
html {
    scroll-behavior: smooth;
}

/* Sections spacing */
section {
    scroll-margin-top: 100px;
}
