/* Reset global */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* Projects Page */
.projects-page {
    padding-top: 100px;
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0;
    margin: 0;
    box-sizing: border-box;
}

.projects-page__title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 3rem;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

/* Project Highlight Section */
.project-highlight {
    background: white;
    border-radius: 20px;
    padding: 2.5rem;
    margin-bottom: 3rem;
    box-shadow: var(--box-shadow);
    transition: transform 0.3s ease;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    margin-left: 0;
    margin-right: 0;
    padding-left: 1rem;
    padding-right: 1rem;
}

.project-highlight:hover {
    transform: translateY(-5px);
}

.project-highlight__title {
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.project-highlight__content {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 2.5rem;
    align-items: start;
}

.project-highlight__image {
    width: 100%;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.project-highlight__description {
    margin: 0;
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-color);
}

/* Tech Stack List */
.tech-list {
    list-style: none;
    padding: 0;
    margin: 1.5rem 0;
}

.tech-list__item {
    display: inline-block;
    padding: 0.5rem 1rem;
    margin: 0.5rem;
    background: var(--background-color);
    border-radius: 20px;
    font-size: 0.9rem;
    color: var(--primary-color);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

/* Project Links */
.project-highlight__links {
    margin-top: 2rem;
}

.button {
    display: inline-flex;
    align-items: center;
    padding: 0.8rem 1.5rem;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.button--primary {
    background: var(--gradient-primary);
    color: white;
}

.button--primary:hover {
    transform: translateX(5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.button__icon {
    margin-left: 0.5rem;
}

/* Responsive Design */
@media (max-width: 968px) {
    .project-highlight__content {
        grid-template-columns: 1fr;
    }

    .project-highlight__image {
        max-width: 400px;
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    .projects-page {
        padding-top: 80px;
        padding-left: 0;
        padding-right: 0;
    }

    .projects-page__title {
        font-size: 2rem;
    }

    .project-highlight {
        padding: 1.5rem;
    }

    .project-highlight__title {
        font-size: 1.5rem;
    }

    .project-highlight__description {
        font-size: 1rem;
    }

    .tech-list {
        text-align: center;
    }

    img {
        max-width: 100%;
        height: auto;
    }
}

/* Page Navigation */
.page-nav {
    background: white;
    padding: 1.5rem;
    border-radius: 20px;
    box-shadow: var(--box-shadow);
    margin-bottom: 3rem;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    margin-left: 0;
    margin-right: 0;
    padding-left: 1rem;
    padding-right: 1rem;
}

.page-nav__list {
    display: flex;
    justify-content: center;
    gap: 2rem;
    list-style: none;
    padding: 0;
    margin: 0;
}

.page-nav__link {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.8rem 1.5rem;
    background: var(--background-color);
    border-radius: 15px;
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    transition: all 0.3s ease;
}

.page-nav__link:hover {
    background: var(--gradient-primary);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.page-nav__link .material-icons {
    font-size: 1.2rem;
}

/* Smooth Scroll */
html, body {
    overflow-x: hidden;
    width: 100%;
    max-width: 100%;
    position: relative;
}

/* Responsive Navigation */
@media (max-width: 768px) {
    .page-nav {
        padding: 1rem;
    }

    .page-nav__list {
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
    }

    .page-nav__link {
        justify-content: center;
    }
}

/* Expertise Areas Section */
.expertise-areas,
.tools-section {
    margin-top: 2.5rem;
    padding: 1.5rem;
    background: var(--background-color);
    border-radius: 15px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    margin-left: 0;
    margin-right: 0;
    padding-left: 1rem;
    padding-right: 1rem;
}

.expertise-areas h3,
.tools-section h3 {
    font-size: 1.2rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.expertise-areas .material-icons,
.tools-section .material-icons {
    font-size: 1.4rem;
    color: var(--secondary-color);
}

/* Responsive Header */
@media (max-width: 768px) {
    .header {
        padding: 0.5rem 0;
    }

    .main-nav__list {
        flex-direction: column;
        align-items: center;
        padding: 0.5rem;
        gap: 0.8rem;
    }

    .main-nav__item {
        width: 100%;
        text-align: center;
    }

    .main-nav__link {
        display: block;
        padding: 0.8rem;
        width: 100%;
        border-radius: 8px;
        transition: all 0.3s ease;
    }

    .main-nav__link:hover,
    .main-nav__link.active {
        background: rgba(255, 255, 255, 0.1);
    }
}

/* Burger Menu pour très petits écrans */
@media (max-width: 480px) {
    .main-nav {
        padding: 0 0.5rem;
    }

    .main-nav__list {
        gap: 0.5rem;
    }

    .main-nav__link {
        font-size: 0.9rem;
        padding: 0.6rem;
    }
}

/* Header Mobile First */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: var(--gradient-primary);
    padding: 1rem 0;
}

.main-nav {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.main-nav__list {
    display: flex;
    justify-content: center;
    gap: 2rem;
    list-style: none;
    padding: 1rem 2rem;
    margin: 0;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 50px;
    box-shadow: var(--box-shadow);
    backdrop-filter: blur(10px);
}

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

.main-nav__link:hover,
.main-nav__link.active {
    background: var(--gradient-primary);
    color: white;
}

/* Menu Hamburger (caché par défaut) */
.menu-toggle {
    display: none;
}

/* Responsive Design */
@media (max-width: 768px) {
    .header {
        width: 100vw;
        max-width: 100%;
        overflow: hidden;
        padding: 0;
    }

    .main-nav {
        padding: 0.5rem 1rem;
        width: 100%;
        max-width: 100vw;
        box-sizing: border-box;
    }

    .main-nav__list {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        max-width: 100%;
        max-height: 100vh;
        overflow-y: auto;
        background: var(--background-color);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 1.5rem;
        padding: 2rem;
        z-index: 5;
        border-radius: 0;
        margin: 0;
        box-sizing: border-box;
    }

    .menu-toggle {
        display: flex;
        flex-direction: column;
        justify-content: space-around;
        width: 30px;
        height: 25px;
        background: transparent;
        border: none;
        cursor: pointer;
        padding: 0;
        z-index: 10;
    }

    .menu-toggle span {
        width: 100%;
        height: 3px;
        background: white;
        border-radius: 10px;
        transition: all 0.3s linear;
    }

    .main-nav__list.active {
        display: flex;
    }

    .main-nav__item {
        width: 100%;
        max-width: 300px;
    }

    .main-nav__link {
        display: block;
        text-align: center;
        padding: 1rem;
        font-size: 1.1rem;
    }

    /* Animation du hamburger */
    .menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
        background: var(--secondary-color);
    }

    .menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
        background: var(--secondary-color);
    }
}

/* Ajustements pour très petits écrans */
@media (max-width: 480px) {
    .main-nav {
        padding: 0.5rem;
        width: 100%;
        max-width: 100vw;
    }

    .main-nav__list {
        padding: 1rem;
        width: 100vw;
        max-width: 100%;
    }

    .main-nav__link {
        padding: 0.8rem;
        font-size: 1rem;
    }
}

/* Timeline Section */
.timeline-section {
    padding: 4rem 2rem;
    background: var(--bg-color);
}

.timeline-section__title {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 2rem;
    margin-bottom: 3rem;
    color: var(--title-color);
}

.timeline-container {
    position: relative;
    padding: 2rem 0;
    margin: 2rem auto;
    max-width: 1000px;
}

.timeline-progress-bar {
    position: absolute;
    top: 50%;
    left: 0;
    height: 4px;
    width: 0;
    background: var(--highlight-color);
    transition: width 0.5s ease;
}

.timeline-nodes {
    position: relative;
    display: flex;
    justify-content: space-between;
    padding: 2rem 0;
}

.timeline-node {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.timeline-node::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 4px;
    background: #e0e0e0;
    transform: translateY(-50%);
    z-index: -1;
}

.timeline-node__date {
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--text-color);
    margin-bottom: 1rem;
}

.timeline-node__icon {
    width: 60px;
    height: 60px;
    background: var(--node-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 1rem 0;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.timeline-node__icon .material-icons {
    font-size: 30px;
    color: white;
}

.timeline-node__title {
    font-size: 1rem;
    color: var(--text-color);
    text-align: center;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.timeline-node.active {
    transform: scale(1.1);
}

.timeline-node.active .timeline-node__icon {
    transform: scale(1.2);
    box-shadow: 0 0 20px rgba(0,0,0,0.2);
}

.timeline-node.active .timeline-node__title {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 768px) {
    .timeline-container {
        padding: 1rem;
    }
    
    .timeline-node__date {
        font-size: 1rem;
    }
    
    .timeline-node__icon {
        width: 50px;
        height: 50px;
    }
}