body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f4f4f4;
    font-size: clamp(1rem, 0.247vw + 0.954rem, 1.25rem);
}

/*Nav*/

.menu {
    height: 75px;
    width: 100%;
    align-items: center;
    display: flex;
    background-color: #333;
    
}
.menu_btn {
    background-color: transparent;
    font-size: clamp(1rem, 0.247vw + 0.954rem, 1.25rem);
    padding: 0;
    border: none;
    cursor: pointer;
    position: absolute;
    top: 22px;
    right: 10px;
    z-index: 10;
    color: #FFF;
    margin: 5px 0 20px;
}

.menu a {
    color: #fff;
    font-weight: bold;
    font-size: 24px;
    transition: all .3s;
    font-size: clamp(1rem, 0.247vw + 0.954rem, 1.25rem);
    cursor: pointer;
}

.menu a:hover {
    color: #F39200;
}

.menu--open .menu_liste{
    transform: translateX(0);
}

.menu_liste {
    display: flex;
    flex-direction: column;
    background-color: #333;
    list-style: none;
    padding: 50px 0;
    margin: 0;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    transform: translateX(100%);
    transition: transform .3s ease-out;
    align-items: center;
    gap: 30px;
}

li {
    list-style-type: none;
}

h1 {
    font-weight: 650;
    font-size: clamp(1rem, 1.282vw + 0.712rem, 2.25rem);
}

section{
    margin: 0 27px;
}

.projects {
    display: flex;
    flex-direction: column;
    gap: 30px;
    margin: 0;
    padding: 20px;
    justify-content: center;
}

.projects_sous {
    background-color: #fff;
    border: 1px solid #ccc;
    border-radius: 10px;
    padding: 15px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    text-align: center;
    height: 100%;
}

.projects_sous:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 10px rgba(0, 0, 0, 0.15);
}

.projects_sous h3{
    padding: 20px;
}

.projects_sous img {
    width: 70%;
    justify-self: end;
}

a {
    color: black;
    text-decoration: none;
    width: 100%;
}

@media (min-width: 1250px) and (max-width: 1920px){

    .projects {
        display: flex;
        flex-direction: row;
        gap: 30px;
        margin: 0;
        padding: 20px;
        justify-content: center;
    }

    .projects_sous {
        background-color: #fff;
        border: 1px solid #ccc;
        border-radius: 10px;
        padding: 15px;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
        transition: transform 0.3s, box-shadow 0.3s;
        text-align: center;
        height: 100%;
    }

    .projects_sous:hover {
        transform: translateY(-5px);
        box-shadow: 0 6px 10px rgba(0, 0, 0, 0.15);
    }

    .projects_sous h3{
        padding: 20px;
    }

    .projects_sous img {
        width: 90%;
        padding: 20px;
        justify-self: end;
    }

    a {
        color: black;
        text-decoration: none;
        width: 35%;
    }

    .menu_liste {
        display: flex;
        flex-direction: row;
        align-items: center;
        transform: translateY(0);
        position: static;
        height: 100%;
        padding: 0;
        background-color: transparent;
        justify-content: space-around;
    }

    .menu_btn {
        display: none;
    }
}