@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:wght@400;500;700&display=swap');


* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}


html, body {
    height: 100%;
}


body {
    background-color: #000;
    color: #fff;
    font-family: 'IBM Plex Mono', monospace;
    font-weight: 700;
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    overflow-x: hidden;
}


.sidebar {
    position: fixed;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    width: 260px;
    background: #000;
    border-right: none;
    padding: 20px 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 20;
}


.logo-link {
    display: block;
    text-align: center;
    margin-top: 4px;
    margin-bottom: 4px;
}


.logo {
    display: block;
    width: 220px;
    height: auto;
    margin: 0 auto;
}


.side-nav {
    display: flex;
    flex-direction: column;
    gap: -5px;
    width: 100%;
    align-items: center;
    margin-top: -1.8rem;
}


.side-nav a {
    position: relative;
    display: inline-block;
    width: auto;
    color: #e0d12a;
    text-decoration: none;
    padding: 8px 12px;
    font-size: 0.95rem;
    font-weight: 700;
    text-align: center;
    background: none;
    border: none;
    overflow: hidden;
    z-index: 0;
    transition: color 0.3s ease;
}


.side-nav a::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(255,255,255,0.14), rgba(255,255,255,0.08));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.45s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: -1;
    border-radius: 0;
}


.side-nav a:hover::before {
    transform: scaleX(1);
}


.side-nav a:hover {
    color: #fff;
}


.collection {
    flex: 1;
    margin-left: 260px;
    padding: 3rem 0 6rem;
    width: calc(100% - 260px);
}


.articles-grid {
    width: min(100% - 2rem, 1200px);
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    padding-bottom: 6rem;   /* AJOUT : espace après le dernier article, comme la page Projet */
}


.article-card:last-child {
    grid-column: 2;
}


.article-card {
    background: #0e0e0e;
    border: 1px solid rgba(255,255,255,0.03);
    border-radius: 0;
    overflow: hidden;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}


.article-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.6);
}


.article-link {
    display: block;
    color: inherit;
    text-decoration: none;
    height: 100%;
}


.article-card img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    display: block;
    margin: 0;
    transition: transform 0.35s ease;
}


.article-card:hover img {
    transform: scale(1.06);
    opacity: 0.96;
}


.article-content {
    padding: 1rem;
    text-align: center;
}


.article-content h2 {
    margin: 0 0 0.5rem;
    font-size: 1.1rem;
    color: #e0d12a;
}


.article-content p {
    margin: 0;
    color: #e0d12a;
    text-align: center;
    max-width: none;
    font-size: 0.95rem;
    font-weight: 700;
}


.secret-item {
    position: relative;
}


.secret-item img {
    filter: blur(12px);
    transform: scale(1.03);
}


.secret-item::after {
    content: "SECRET";
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 700;
    letter-spacing: 0.2em;
    background: rgba(0, 0, 0, 0.25);
    backdrop-filter: blur(2px);
    pointer-events: none;
    z-index: 1;
}


.secret-item .article-content {
    position: relative;
    z-index: 2;
}


.secret-link {
    position: relative;
}


.ig_logo {
    width: 18px;
    height: 18px;
    display: block;
}


.collection-title {
    font-size: clamp(2rem, 5vw, 3rem);
    margin: 0 0 20px;
    color: #e0d12a;
    font-weight: 700;
    letter-spacing: 0.5px;
}


.collection-container {
    width: min(100% - 2rem, 1200px);
    margin: 0 auto;
    text-align: center;
}


@media (max-width: 1024px) {
    .sidebar {
        width: 220px;
    }


    .collection {
        margin-left: 220px;
        width: calc(100% - 220px);
    }
}


@media (max-width: 768px) {
    body {
        flex-direction: column;
    }


    .sidebar {
        position: static;
        width: 100%;
        height: auto;
        border-right: none;
        border-bottom: 1px solid #171717;
        padding: 14px 12px;
        transform: none;
    }


    .logo {
        width: 180px;
    }


    .side-nav {
        flex-direction: row;
        justify-content: center;
        gap: 8px;
        flex-wrap: wrap;
    }


    .side-nav a {
        width: auto;
        display: inline-block;
        padding: 6px 10px;
        font-size: 0.85rem;
    }


    .side-nav a::before {
        background: linear-gradient(90deg, rgba(255,255,255,0.10), rgba(255,255,255,0.06));
    }


    .collection {
        margin-left: 0;
        width: 100%;
        padding: 2rem 0 5.2rem;
    }


    .articles-grid {
        width: min(100% - 1rem, 1200px);
        grid-template-columns: 1fr;
        padding-bottom: 4rem;   /* AJOUT : espace en bas sur mobile aussi */
    }


    .article-card:last-child {
        grid-column: auto;
    }


    .ig_logo {
        width: 16px;
        height: 16px;
    }
}