* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    text-align: center;
    color: rgb(255, 255, 255);
    background: rgb(0, 0, 0);
    height: 300vh;
    font-family: Arial, sans-serif;
    line-height: 50px;
}

/* Navigation */
nav {
    /* semi-transparent background + backdrop blur for frosted glass effect */
    background: rgba(0, 0, 0, 0.45);
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
    padding: 1rem 1.5rem;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(135, 135, 255, 0.15);
}

.nav-menu {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.logo {
    color: rgb(135, 135, 255);
    font-size: 1.5rem;
    font-weight: bold;
    text-decoration: none;
    text-shadow: 0 0 10px rgba(135, 135, 255, 0.5);
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    background: rgb(135, 135, 255);
    bottom: -5px;
    left: 0;
    transition: width 0.3s ease;
}

.nav-links a:hover::after {
    width: 100%;
}

.burger {
    display: none;
    cursor: pointer;
}

.burger .line {
    width: 25px;
    height: 2px;
    background-color: rgb(135, 135, 255);
    margin: 5px 0;
    transition: 0.3s ease;
}

/* Contenu principal */
main {
    padding-top: 100px;
}
img {
    border-radius: 5px;
    margin: 0 auto;
    height: 40vh;
    cursor: progress;
    transition: transform 0.3s ease;
}

img:hover {
    transform: scale(1.02);
}

/* Version mobile */
@media screen and (max-width: 768px) {
    .nav-links {
        display: none;
        width: 100%;
        position: absolute;
        top: 100%;
        left: 0;
        background: rgba(0, 0, 0, 0.95);
        padding: 1rem;
        flex-direction: column;
        align-items: center;
        border-bottom: 1px solid rgb(135, 135, 255);
    }

    .nav-links.active {
        display: flex;
    }

    .burger {
        display: block;
    }

    .nav-links a:hover::after {
        width: 50%;
    }
}