/* style.css */
:root{
    --sidebar-width: 260px;
    --sidebar-bg: #3a3a3a;
    --text-muted: #6f6f6f;
    --carousel-img-height: 60vh;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    font-family: 'Quicksand', sans-serif;
    font-weight: 400;
    color: #222;
    display: flex;
    flex-direction: column;
    background: #f7f8f9;
    min-height: 100vh;
    outline: 3px solid red;
}

main {
    margin-left: var(--sidebar-width);
    flex: 1;
    display: flex;
    flex-direction: column;
    padding-bottom: 0;
}

.hero {
    flex: 0 0 auto;
    text-align: center;
    padding: 1rem 0;
}
.hero h2 {
    font-weight: 400;
    font-size: 1.5rem;
    padding: 1.5rem 0;
    margin: 0;
}

.h2 {
    font-weight: 400;
    font-size: 1.5rem;
}

p.centered {
    text-align: center;
}

.sidebar {
    background: var(--sidebar-bg);
    color: #ffffff;
    width: var(--sidebar-width);
    padding: 28px 24px;
    position: fixed;
    height: 100vh;
    left: 0;
    top: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    text-align: center;
    z-index: 10;
}

.sidebar .brand {
    text-decoration: none;
    color: white;
    margin-bottom: 40px;
    margin-top: 40px;
}

.sidebar h1 {
    font-weight: 400;
    margin: 0;
    font-size: 20px;
    line-height: 1.3;
    letter-spacing: 0.8px;
}

.sidebar nav {
    flex-grow: 1;
    display: flex;
    align-items: center;
}

.sidebar nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar nav ul li {
    margin: 14px 0;
}

.sidebar nav ul li a {
    text-decoration: none;
    color: #f4f4f4;
    font-weight: 400;
    letter-spacing: 0.6px;
    font-size: 16px;
    transition: color .18s, font-weight .18s;
}

.sidebar nav ul li a:hover,
.sidebar nav ul li a.active {
    color: #ffffff;
    font-weight: 600;
}


.sidebar .socials {
    display: flex;
    gap: 16px;
    margin-top: 40px;
    margin-bottom: 40px;
}

.sidebar .socials img {
    width: 32px;
    height: 32px;
    filter: invert(1);
    transition: opacity .2s;
}

.sidebar .socials img:hover {
    opacity: 0.7;
}

.content {
    padding: 28px 30px;
    flex: 1;
}

.inner {
    max-width: 80%;
    margin: 0 auto;
    text-align: justify;
}

.carousel {
    width: fit-content;           
    max-width: 80%;           
    margin: 0 auto;
    margin-bottom: 8px;
    background: transparent;     
    box-shadow: none;             
    border-radius: 0;
    overflow-y: hidden;
    padding: 0;
    scrollbar-gutter: auto;
    padding-bottom: 12px;               
    scrollbar-width: thin;
    scrollbar-color: #bbb transparent;
}

.carousel::-webkit-scrollbar {
    height: 8px;
    background: transparent;
}
.carousel::-webkit-scrollbar-thumb {
    background: #bbb;
    border-radius: 4px;
    opacity: 0;
    transition: opacity 0.3s;
}

.carousel:active::-webkit-scrollbar-thumb,
.carousel:focus::-webkit-scrollbar-thumb,
.carousel:hover::-webkit-scrollbar-thumb {
    opacity: 1;
}

.carousel::-webkit-scrollbar-track {
    background: #eee;
}

.carousel .slides {
    display: flex;
    gap: 8px;
    align-items: center;
    padding: 0;
    scroll-snap-type: x proximity;
    height: auto;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

.carousel .slides img {
    display: block;
    height: var(--carousel-img-height, 60vh);
    max-width: 100%;
    width: auto;
    flex-shrink: 0;
    object-fit: cover;
    border-radius: 4px;
    scroll-snap-align: start;
    scroll-snap-stop: always;
    transition: none;
}

.gallery-preview {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    align-items: flex-start;
    gap: 24px;
    max-width: 1100px;
    margin: 2rem auto;
}

.gallery-section {
    width: calc(24% - 16px);
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.gallery-section a {
    display: block;
    width: 80%;
    margin: 0 auto;
}

.gallery-section img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: box-shadow 0.2s;
}

.gallery-section img:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.18);
}

.gallery-section h3 {
    margin-top: 1rem;
    font-size: 1rem;
    font-weight: 400;
}

.nft-links {
    display: flex;
    gap: 0;
    justify-content: space-between;
    align-items: stretch;
    margin: 2rem auto;
    max-width: 80%;
    width: 80%;
}

.nft-link {
    width: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0 2vw;
    box-sizing: border-box;
}

.nft-link h3 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    font-weight: 400;
}

.nft-link img {
    max-width: 220px;
    width: 80%;
    border-radius: 8px;
    margin-bottom: 1rem;
}

.nft-btn {
    display: inline-block;
    margin-top: 0.5rem;
    padding: 0.5em 1.2em;
    background: #3a3a3a;
    color: #fff;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 500;
}

.nft-btn:hover {
    background: #222;
}

footer {
    width: 100%;
    max-width: 1100px;
    margin: 36px auto 0 auto;
    font-size: 1em;
    text-align: center;
    color: #8a8a8a;
    padding: 12px 0 18px 0;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* --- RESPONSIVE DESIGN --- */

/* Tablettes (max 1024px) */
@media (max-width: 1024px) {
    body {
        flex-direction: column;
    }

    .hero {
        margin: 1rem 0;
        text-align: center;
        flex: 0 0 auto;
    }

    .hero h2 {
        margin: 0.1rem 0 0.5rem 0;
        font-size: 1.2rem;
    }

    .sidebar {
        position: static;
        width: 100%;
        height: auto;
        flex-direction: row;
        justify-content: space-between;
        padding: 1rem;
    }

    .sidebar .brand,
    .sidebar nav,
    .sidebar .socials {
        flex: unset;
        margin: 0;
    }

    .sidebar nav {
        flex-grow: 1;
        display: flex;
        justify-content: center;
    }

    .sidebar .socials {
        margin-bottom: 0;
    }

    main {
        margin-left: 0;
        width: 100%;
        padding: 1rem;
    }

    .carousel {
        --carousel-img-height: 50vh;
        min-height: 180px;
        max-height: 50vh;
        padding-bottom: 0;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }

    .carousel::-webkit-scrollbar {
        display: none;
    }

    .carousel .slides img {
        height: var(--carousel-img-height);
        width: auto;
        max-width: 100%;
    }

    .inner {
        max-width: 100%;
    }

    footer {
        max-width: 100%;
        margin: 36px auto 0 auto;
        font-size: 1em;
        padding: 8px 0 16px 0;
    }
}

/* Smartphones (max 768px) */
@media (max-width: 768px) {
    .sidebar .brand h1 {
        font-size: 1.2rem;
    }

    .hero {
        margin: 1rem 0;
        text-align: center;
        flex: 0 0 auto;
    }

    .hero h2 {
        margin: 0.1rem 0 0.5rem 0;
        font-size: 1.2rem;
    }

    .sidebar nav a {
        font-size: 0.9rem;
        margin: 0 8px;
    }

    .carousel {
        --carousel-img-height: 100%;
        min-height: 100px;
        max-height: none;
        padding-bottom: 0;
        scrollbar-width: none;
        -ms-overflow-style: none;
        max-width: 95%;
    }

    .carousel::-webkit-scrollbar {
        display: none;
    }

    .carousel .slides {
        aspect-ratio: 4/3;
    }

    .carousel .slides img {
        height: 100%;
        width: auto;
        max-width: 100%;
    }

    .inner {
        max-width: 100%;
    }

    .gallery-preview {
        flex-direction: column;
        gap: 2rem;
        max-width: 98%;
    }
    .gallery-section {
        width: 100%;
    }
    .gallery-section a {
        width: 90%;
    }

    .nft-links {
        flex-direction: column;
        gap: 2rem;
        max-width: 98%;
    }
    .nft-link {
        width: 100%;
        padding: 0;
    }

    footer {
        max-width: 100%;
        margin: 24px auto 0 auto;
        font-size: 0.8em;
        padding: 6px 0 12px 0;
    }
}