* {
    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;
}

.summary-container {
    position: fixed;
    margin-left: 20px;
}

.summary-list {
    list-style: none;
    display: flex;
    flex-direction: column;
}

.summary-link {
    color: #000000;
}

.summary-sub-link {
    padding-left: 20px;
}

#project-detail {
    display: flex;
    flex-direction: column;
    max-width: 75%;
    margin: 2rem auto;
    padding: 0 1rem;
    text-align: left;
}

#project-detail h1 {
    font-size: 3rem;
    text-align: center;
}

.project-content {
    display: flex;
    flex-direction: column;
    align-self: center;
    max-width: 800px;
}

.project-content > img {
    max-width: 300px;
    height: auto;
    margin-bottom: 2rem;
}

.project-description h2 {
    margin-top: 1.5rem;
}

.project-item {
    display: flex;
    flex-direction: row;
    width: 100%;
    overflow: hidden;
    margin-bottom: 2rem;
}

.project-item-text {
    display: flex;
    flex-direction: column;
    padding-right: 1rem;
}

.project-item-img {
    width: 40%;
    height: fit-content;
    align-self: center;
}

p {
    text-align: justify;
}

ul {
    list-style-type: none;
}

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: 1024px) {
    .summary-container {
        display: none;
    }
}

@media (max-width: 768px) {
    .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;
    }

    .summary-container {
        display: none;
    }

    .project-item {
        flex-direction: column;
    }

    .project-item-img {
        width: 100%;
    }
}

@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;
    }

    .summary-container {
        display: none;
    }

    #project-detail {
        max-width: 100%;
        margin: 2rem 0.5rem;
    }

    /* 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;
    }

}
