@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-main {
    flex: 1;
    margin-left: 260px;
    padding: 3rem 0 6rem;
    width: calc(100% - 260px);
}


.collection-container {
    width: min(100% - 2rem, 1200px);
    margin: 0 auto;
    text-align: center;
}


.collection-title {
    font-size: clamp(2rem, 5vw, 3rem);
    margin: 0 0 20px;
    color: #e0d12a;
    font-weight: 700;
    letter-spacing: 0.5px;
}


.collection-description {
    margin: 0 auto 40px;
    color: #e0d12a;
    font-size: clamp(0.95rem, 2.5vw, 1.05rem);
    max-width: 700px;
    font-weight: 700;
}


.project-section {
    margin-top: 3rem;
    padding-top: 1.75rem;
    border-top: 1px solid #171717;
}


/* AJOUT : espace après la vidéo (dernière section) */
.project-section:last-of-type {
    padding-bottom: 6rem;
}


.section-title {
    font-size: clamp(1.3rem, 3.5vw, 1.9rem);
    margin-bottom: 8px;
    color: #fff;
    font-weight: 700;
    display: inline-block;
    padding: 6px 14px;
}


.section-title.decorated {
    font-variant: small-caps;
    color: #e0d12a;
    background: linear-gradient(180deg, rgba(255,255,255,0.02), transparent);
    border: 1px solid rgba(255,255,255,0.03);
    border-radius: 999px;
}


.section-description {
    max-width: 700px;
    margin: 0 auto 28px;
    color: #e0d12a;
    font-size: 0.95rem;
    text-align: center;
    font-weight: 700;
}


.gallery-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin-top: 18px;
}


.gallery-item {
    width: calc(25% - 15px);
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: #0e0e0e;
    border-radius: 0;
    border: 1px solid rgba(255,255,255,0.03);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}


.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 0;
    transition: transform 0.35s ease;
}


.gallery-item:hover {
    transform: translateY(-6px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.6);
}


.gallery-link {
    display: block;
    width: 100%;
    height: 100%;
    text-decoration: none;
    color: #fff;
}


.gallery-link:hover img {
    transform: scale(1.06);
    opacity: 0.96;
}


.gallery-item:nth-last-child(2),
.gallery-item:nth-last-child(1) {
    width: calc(25% - 15px);
}


.video-wrapper {
    display: flex;
    justify-content: center;
    margin-top: 1rem;
}


.video-player {
    position: relative;
    display: inline-block;
    width: 100%;
    max-width: 900px;
    background: #000;
}


/* vidéo sans arrondi */
.video-player video {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 0;           /* angles droits */
    background: #111;
    border: 1px solid #333;
    cursor: pointer;
}


/* bouton overlay = juste icône, sans cercle */
.video-overlay-btn {
    position: absolute;
    inset: 50% auto auto 50%;
    transform: translate(-50%, -50%);
    width: auto;
    height: auto;
    border: none;
    border-radius: 0;
    background: transparent;
    color: #fff;
    font-size: 2.2rem;          /* taille de l’icône ▶ / ⏸ */
    line-height: 1;
    display: grid;
    place-items: center;
    cursor: pointer;
    z-index: 5;
    transition: opacity 0.2s ease;
}


/* comportement existant : visible quand .is-paused, caché en lecture */
.video-player.is-paused .video-overlay-btn {
    opacity: 1;
    display: grid;
}


.video-player:not(.is-paused) .video-overlay-btn {
    display: none;
}


.vp-btn {
    display: none;
}


video::-webkit-media-controls {
    display: none !important;
}


video::-webkit-media-controls-enclosure {
    display: none !important;
}


video::-webkit-media-controls-panel {
    display: none !important;
}


.ig_logo {
    width: 18px;
    height: 18px;
    display: block;
}


@media (max-width: 1024px) {
    .gallery-item {
        width: calc(33.333% - 14px);
    }


    .sidebar {
        width: 220px;
    }


    .collection-main {
        margin-left: 220px;
        width: calc(100% - 220px);
    }


    footer {
        left: 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-main {
        margin-left: 0;
        width: 100%;
        padding: 2rem 0 5.2rem;
    }


    .collection-title {
        font-size: 1.8rem;
    }


    .section-title {
        font-size: 1.35rem;
        padding: 6px 12px;
    }


    .gallery-item {
        width: calc(50% - 10px);
    }


    .gallery-item:nth-last-child(2),
    .gallery-item:nth-last-child(1) {
        width: calc(50% - 10px);
    }


    .video-overlay-btn {
        font-size: 2rem;
    }


    .ig_logo {
        width: 16px;
        height: 16px;
    }
}