@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:wght@400;500;700&display=swap');


/* RESET */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}


html,
body {
    height: 100%;
}


body {
    background-color: #000;
    color: #e0d12a;
    font-family: 'IBM Plex Mono', monospace;
    font-weight: 700;
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    overflow-x: hidden;
}


/* SIDEBAR */
.sidebar {
    position: fixed;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    width: 260px;
    background: #000;
    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;
    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;
}


.side-nav a:hover::before {
    transform: scaleX(1);
}


/* CONTENU PRINCIPAL */
.collection-main {
    flex: 1;
    margin-left: 260px;
    padding: 3rem 0 6rem;
    width: calc(100% - 260px);
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
}


.collection-container {
    width: min(100% - 2rem, 1200px);
    margin: 0 auto;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
}


/* TITRES */
.collection-title {
    font-size: clamp(2rem, 5vw, 3rem);
    margin: 0 0 20px;
    color: #fff;
    font-weight: 700;
    letter-spacing: 0.5px;
}


.detail-title {
    margin-bottom: 0.75rem;
    text-align: center;
    color: #e0d12a;
}


.detail-title span,
.detail-title p {
    display: block;
    margin: 0;
    font-size: inherit;
    font-weight: inherit;
}


/* PROJET */
.project-section {
    margin-top: 3rem;
    padding-top: 1.75rem;
    border-top: none;
    width: 100%;
}


.detail-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: center;
    background: transparent;
    border: none;
    border-radius: 0;
    padding: 0;
    text-align: left;
    width: 100%;
}


/* IMAGE */
.detail-image {
    position: relative;
    overflow: hidden;
    border-radius: 0;
    background: transparent;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 1;
}


.detail-image img {
    width: 100%;
    max-width: 650px;
    height: auto;
    display: block;
    object-fit: cover;
    border-radius: 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
    z-index: 0;
    pointer-events: none;
}


.detail-image img:hover {
    transform: scale(1.03);
    opacity: 0.95;
}


/* FLÈCHES */
.arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: #fff;
    text-decoration: none;
    font-size: 2.2rem;
    font-weight: 700;
    padding: 0.2rem 0.4rem;
    cursor: pointer;
    z-index: 5;
}


.arrow-left {
    left: 10px;
    color: #e0d12a;
}


.arrow-right {
    right: 10px;
    color: #e0d12a;
}


.arrow:hover {
    transform: translateY(-50%) scale(1.05);
}


/* DESCRIPTION */
.detail-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 0.5rem;
    position: relative;
}


.detail-description {
    color: #e0d12a;
    font-size: 1.05rem;
    max-width: 500px;
    text-align: center;
    margin: 0 auto;
}


/* INSTAGRAM */
.ig_logo {
    width: 24px;
    height: 24px;
    display: block;
}


/* TABLETTE */
@media (max-width: 1024px) {
    .sidebar {
        width: 220px;
    }

    .collection-main {
        margin-left: 220px;
        width: calc(100% - 220px);
    }

    .detail-image img {
        max-width: 560px;
    }
}


/* MOBILE */
@media (max-width: 768px) {
    body {
        flex-direction: column;
    }

    .sidebar {
        position: static;
        width: 100%;
        transform: none;
        border-bottom: 1px solid #171717;
        padding: 14px 12px;
    }

    .logo {
        width: 180px;
    }

    .side-nav {
        flex-direction: row;
        justify-content: center;
        gap: 8px;
        flex-wrap: wrap;
        margin-top: 0;
    }

    .side-nav a {
        padding: 6px 10px;
        font-size: 0.85rem;
    }

    .collection-main {
        margin-left: 0;
        width: 100%;
        padding: 2rem 0 5.2rem;
        min-height: auto;
    }

    .collection-container {
        width: calc(100% - 1rem);
        max-width: 1200px;
        display: flex;
        flex-direction: column;
        align-items: center;
        margin: 0 auto;
    }

    .detail-content {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 0.75rem;
        width: 100%;
        min-width: 0;
        padding: 0;
    }

    .detail-info {
        display: contents;
    }

    .detail-title {
        order: 0;
        width: 100%;
        margin: 0 0 0.25rem;
        padding: 0;
        text-align: center;
        font-size: 1.7rem;
        line-height: 1.3;
        margin-top: 0.8rem;
    }

    .detail-image {
        order: 1;
        width: 80%;
        min-width: 0;
        margin: 0;
        margin-top: -1rem;
        line-height: 0;
    }

    .detail-image img {
        display: block;
        width: 100%;
        max-width: 100%;
        height: auto;
        margin: 0;
        vertical-align: top;
    }

    .detail-description {
        order: 2;
        width: 100%;
        max-width: 100%;
        margin: 0;
        padding: 0 0.5rem;
        text-align: center;
        font-size: 1rem;
        line-height: 1.45;
        overflow-wrap: break-word;
        margin-top: -0.6rem;
    }

    .arrow {
        font-size: 1.8rem;
        padding: 0.1rem 0.3rem;
    }
}