* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
}

header {
    background: #333;
    color: #fff;
    padding: 1rem 0;
    text-align: center;
    position: sticky;
    top: 0;
    width: 100%;
    z-index: 10;
}

.mobile-header {
    display: none;
}

nav ul {
    list-style: none;
}

nav ul li {
    display: inline;
    margin: 0 1rem;
}

nav ul li a {
    color: #fff;
    text-decoration: none;
}

section {
    padding: 2rem 1rem;
}

#about, #skills, #projects, #contact {
    max-width: 800px;
    margin: 0 auto;
}

#timeline {
    text-align: center;
    padding: 2rem 0;
}

.timeline {
    position: relative;
    max-width: 600px;
    margin: 0 auto;
    padding: 2rem 0;
    list-style: none;
}

.timeline::after {
    content: '';
    position: absolute;
    width: 6px;
    background-color: #333;
    top: 0;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    height: 95%;
}

.timeline-item {
    padding: 1rem 2rem;
    position: relative;
    background: #f4f4f4;
    border-radius: 6px;
    width: 80%;
    margin: 1rem 0;
}

.timeline-item::after {
    content: ' ';
    position: absolute;
    width: 25px;
    height: 25px;
    right: -12px;
    background-color: white;
    border: 4px solid #333;
    top: 40%;
    border-radius: 50%;
    z-index: 1;
    left: 50%;
}

.timeline-item:nth-child(odd) {
    left: -35%;
}

.timeline-item:nth-child(even) {
    left: 55%;
}

.timeline-item:nth-child(odd)::after {
    left: auto;
    right: -46px;
}

.timeline-item:nth-child(even)::after {
    left: -46px;
    right: auto;
}

.timeline-content {
    padding: 0 2rem;
    text-align: justify;
}

.timeline-content h2 {
    margin-bottom: 0.5rem;
}

.timeline-content p {
    margin: 0;
}

.skills-table {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-bottom: 25px;
}

.skills-table .column {
    margin: 1rem;
}

.skills-table h2 {
    background: #333;
    color: #fff;
    padding: 0.5rem;
    text-align: center;
}

.skills-table ul {
    list-style: none;
    padding: 0;
}

.skills-table li {
    background: #f4f4f4;
    margin: 0.5rem 0;
    padding: 0.5rem;
    border-left: 5px solid #333;
    position: relative;

    <!-- -->
    display: flex;
    height: 50px;
}

.skills-table > .column:nth-child(5) {

}

.progress-bar {
    background-color: #e0e0e0;
    border-radius: 5px;
    overflow: hidden;
    margin-top: 0.5rem;
}

.progress {
    background-color: #333;
    height: 5px;
    border-radius: 5px;
}

.languages {
    list-style: none;
    padding: 0;
}

.languages li {
    background: #f4f4f4;
    margin: 0.5rem 0;
    padding: 0.5rem;
    border-left: 5px solid #333;
}

.project {
    margin-bottom: 2rem;
    display: flex;
    flex-direction: row;
    align-items: center;
    border: 1px solid #ccc;
    border-radius: 5px;
    overflow: hidden;
    width: 100%;
}

.project img {
    width: 40%;
    height: auto;
    background-color: #F4F4F4;
}

.project-description {
    text-align: justify;
    padding: 1rem;
}

.project-description h2 {
    margin-bottom: 0.5rem;
}

.project-description p {
    margin: 0;
}


.project-text-container {
    display: flex;
    flex-direction: column;
}

.project-link {
    display: flex;
    flex-flow: row-reverse;
    margin-right: 15px;
}

footer {
    text-align: center;
    padding: 1rem 0;
    background: #333;
    color: #fff;
    position: relative;
    width: 100%;
    bottom: 0;
    margin-top: 25px;
}

/* Menu hamburger */
.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.menu-toggle .bar {
    height: 3px;
    width: 25px;
    background-color: white;
    margin: 4px 0;
    transition: 0.4s;
}

@media (max-width: 768px) {
    /* Styles pour les tablettes en mode portrait */
    .project-description {
        width: 100%;
    }

    .timeline {
        padding: 1rem 0;
    }

    .timeline::after {
        left: 25px;
    }

    .timeline-item {
        width: 85%;
        margin-left: 40px;
        left: 0;
        padding: 1rem 0.1rem;
    }

    .timeline-content {
        padding: 0 1rem;
    }

    .timeline-item::after {
        left: 0;
    }

    .timeline-item:nth-child(odd) {
        left: 14px;
    }

    .timeline-item:nth-child(even) {
        left: 14px;
    }

    .timeline-item:nth-child(odd)::after {
        left: -46px;
        right: auto;
    }

    .timeline-item:nth-child(even)::after {
        left: -46px;
        right: auto;
    }

    .main-header {
        display: none;
    }

    .mobile-header {
        display: flex;
    }

    nav ul.nav-list {
        display: none;
        flex-direction: column;
        width: 100%;
    }

    nav ul.nav-list li {
        margin: 0;
    }

    nav ul.nav-list li a {
        padding: 1rem;
        display: block;
        text-align: center;
    }

    .menu-toggle {
        display: flex;
    }


    .menu-toggle.active .bar:nth-child(2) {
        opacity: 0;
    }

    .menu-toggle.active .bar:nth-child(1) {
        transform: translateY(11px) rotate(45deg);
    }

    .menu-toggle.active .bar:nth-child(3) {
        transform: translateY(-11px) rotate(-45deg);
    }

    nav ul.nav-list.active {
        display: flex;
    }
}

@media (max-width: 480px) {
    /* Styles pour les téléphones portables */
    header {
        padding: 0.5rem 0;
    }

    nav ul {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    nav ul li {
        margin: 0.5rem 0;
    }

    section {
        padding: 1rem 0.5rem;
    }

    #about, #skills, #projects, #contact {
        max-width: 100%;
    }

    .skills-table {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }

    .project {
        flex-direction: column;
    }

    .project img {
        width: 100%;
    }

    .project-description {
        width: 100%;
    }

    .timeline {
        padding: 1rem 0;
    }

    .timeline::after {
        left: 25px;
    }

    .timeline-item {
        width: 85%;
        margin-left: 40px;
        left: 0;
        padding: 1rem 0.1rem;
    }

    .timeline-content {
        padding: 0 1rem;
    }

    .timeline-item::after {
        left: 0;
    }

    .timeline-item:nth-child(odd) {
        left: 14px;
    }

    .timeline-item:nth-child(even) {
        left: 14px;
    }

    .timeline-item:nth-child(odd)::after {
        left: -46px;
        right: auto;
    }

    .timeline-item:nth-child(even)::after {
        left: -46px;
        right: auto;
    }

    /* Styles existants */

    /* Menu hamburger */
    .main-header {
        display: none;
    }

    .mobile-header {
        display: flex;
    }

    .menu-toggle {
        display: none;
        flex-direction: column;
        cursor: pointer;
    }

    .menu-toggle .bar {
        height: 3px;
        width: 25px;
        background-color: white;
        margin: 4px 0;
        transition: 0.4s;
    }

    nav ul.nav-list {
        display: none;
        flex-direction: column;
        width: 100%;
    }

    nav ul.nav-list li {
        margin: 0;
    }

    nav ul.nav-list li a {
        padding: 1rem;
        display: block;
        text-align: center;
    }

    .menu-toggle {
        display: flex;
    }

    .menu-toggle.active .bar:nth-child(2) {
        opacity: 0;
    }

    .menu-toggle.active .bar:nth-child(1) {
        transform: translateY(11px) rotate(45deg);
    }

    .menu-toggle.active .bar:nth-child(3) {
        transform: translateY(-11px) rotate(-45deg);
    }

    nav ul.nav-list.active {
        display: flex;
    }


}
