body {
    margin: 0;
    overflow-x: hidden;
    overflow: scroll;
    width: 100%;
    min-width: 500px;
    min-height: 500px;
    font-size: clamp(15px, 2vw, 18px);
    font-family: 'Gill Sans', 'Gill Sans MT', 'Calibri', 'Trebuchet MS', sans-serif;
    background-image: url('./images/fond_d_ecran.jpg');
    background-size: cover;
    background-position: center;
}


h1 {
    position: absolute;
    top: 0.5vh;
    left: 50%;
    transform: translateX(-50%);
    color: rgb(255, 255, 255);
    text-shadow: 0 1vh 3vh rgba(0, 0, 0, 0.9);
    font-size: clamp(18px, 3vw, 36px);
}

/* Layout principal */
.home-grid {
    position: relative;
    height: 100vh;
}

.about-links,
.work-links,
.stack-links,
.bin {
    width: min(44vw, 460px);
    padding: 0.6rem;
    text-align: center;
    color: rgb(255, 255, 255);
    text-shadow: 0 1vh 3vh rgba(0, 0, 0, 0.9);
    background: rgba(208, 199, 199, 0.35);
    border-radius: 16px;
    box-shadow: 0 1vh 3vh rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(0.5px);
}

section h2 {
    grid-column: 1 / -1;
    margin: 0 0 0.5rem;
    font-size: clamp(16px, 2vw, 24px);
}

/* Blocs de liens */
.about-links {
    position: absolute;
    top: 6vh;
    left: 3vw;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.work-links {
    position: absolute;
    top: 6vh;
    right: 3vw;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.stack-links {
    position: absolute;
    bottom: 3vh;
    left: 3vw;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.bin {
    position: absolute;
    right: 3vw;
    bottom: 3vh;
    width: min(15vw, 150px);
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Boutons */
button{
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
    color: rgb(255, 255, 255);
    text-decoration: none;
    background-color: transparent;
    border: none;
    cursor: pointer;
}

.item-name {
    font-weight: 600;
    font-size: clamp(10px, 1.8vw, 16px);
}

.icon {
    width: 7.5vh;
    padding: 0.2rem;
}

@media (max-width: 600px) {
    body {
        min-width: 0;
        min-height: 100vh;
    }

    .home-grid {
        display: grid;
        gap: 1rem;
        padding: 14vh 1rem 2rem;
    }

    .about-links,
    .work-links,
    .stack-links,
    .bin {
        position: static;
        width: auto;
    }

    .about-links,
    .work-links,
    .stack-links {
        grid-template-columns: repeat(2, 1fr);
    }

    .bin {
        justify-self: start;
    }
}
