* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}


body {
    background-color: #f5f5f5;
    overflow-x: hidden;
    font-family: "Roboto", sans-serif;
    font-style: normal;
}


ul {
    list-style: none;
}




a {
    text-decoration: none;
}



.home {
    min-height: 90vh;
    background: linear-gradient(to bottom, #0A1F44, #071530);
    background-position: center;
    background-size: cover;
    position: relative;
    margin-bottom: 230px;
    width: 100%;
}


.menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 20px 15%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(to bottom, #0A1F44, #071530);
    z-index: 1000;
    border-bottom: 2px solid rgba(0,0,0,1);
}

.logo{
    font-weight: 400;
    color: white;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 40px;
    font-style: italic;
    font-family: 'Roboto', sans-serif;
}


.links{
    display: flex;
}


.links li {
    margin: 20px;
}
.links li a{
    color: white;
    position: relative;
}
.links li a:after{
    content: "";
    position: absolute;
    left: 0;
    bottom: -5px;
    background-color: #f9ad4a;
    height: 4px;
    width: 0%;
    border-radius: 4px;
    transition: 0.5s;
}
.links li a:hover:after{
    width: 100%;
}

.introduction {
    margin: 20px 0;
    margin-top: 30px;
}

details {
    background: white;
    padding: 15px;
    border-radius: 10px;
    cursor: pointer;
    margin-bottom: 15px;
}

summary {
    font-size: clamp(18px, 5vw, 24px);
    font-weight: bold;
    cursor: pointer;
}

details p {
    margin-top: 15px;
    line-height: 1.6;
    text-align: justify;
}

.Objectifs, .Cahier, .tuto, .choix, .gcode{
    margin: 20px 0;
    margin-top: 10px;
}

details {
    background: white;
    padding: 15px;
    border-radius: 10px;
    cursor: pointer;
}

summary {
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;
}

details p {
    margin-top: 15px;
    line-height: 1.6;
}

.container {
    display: flex;
}


.main {
    margin-top: 100px;
    width: 100%;
    max-width: 900px;
    padding: 20px;
    margin-left: auto;
    margin-right: auto;
}

summary {
    display: flex;
    align-items: center;
    gap: 10px; 
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;
}

.icon {
    width: 30px;
    height: 30px;
    color: #f9ad4a;
}

.main h1{
    margin-top: 5%;
    text-align: center;
}

.main h2{
    text-align: center;
    color: #f9ad4a;
}


.cahier-liste, .choix-liste, .tuto {
    padding-left: 0;
    list-style: none;
}

.cahier-liste li::before, .choix-liste li::before, .tuto li::before {
    content: "- ";
    font-weight: bold;
    margin-right: 8px;
}

.cahier-liste li , .choix-liste li, .tuto li{
    margin-top: 2px;
}

.gcode h3{
    text-align: left;
}

.repo{
    display: inline-flex;
    align-items: center;
    gap: 8px;

    padding: 4px 1px;

    border-radius: 10px;
    color:black;

    text-decoration: none;
    font-weight: 600;

    transition: 0.2s ease;
}

.repo:hover{

    transform: translateY(-2px);
}

.repo i{
    font-size: 12px;
}

.video {
    margin: 20px 0;
    margin-top: 10px;
}

.video-container {
    width: 100%;
    max-width: 400px;
    margin: 20px auto;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 15px 40px -20px rgba(0,0,0,0.25);
}

.video-container video {
    width: 100%;
    height: auto;
    display: block;
}

footer {
    background-color: #1a1a1a;
    color: #fff;
    font-size: 14px;
    text-align: center;
    padding: 20px 0;
    font-weight: bold;
}

@media screen and (max-width: 1024px) {
    .menu {
        padding: 0 15px;
    }

    .logo {
        font-size: 16px;
    }

    .links {
        gap: 15px;
    }

    .links li a {
        font-size: 14px;
    }

    .main {
        margin-top: 120px;
        width: 95%;
        max-width: 100%;
        padding: 15px;
    }


    .introduction, .Objectifs, .Cahier, .tuto, .choix, .gcode {
        margin: 20px 0;
    }

    details {
        padding: 12px;
    }

    summary {
        font-size: 20px;
        gap: 8px;
    }

    .icon {
        width: 28px;
        height: 28px;
    }

    details p {
        font-size: 15px;
        margin-top: 12px;
    }

    .main h1 {
        margin-top: 15px;
        font-size: 28px;
    }

    .main h2 {
        font-size: 22px;
        margin-bottom: 15px;
    }

    .cahier-liste li, .choix-liste li, .tuto li {
        font-size: 14px;
        margin-top: 4px;
    }

    .repo {
        padding: 6px;
        font-size: 13px;
    }
}