/* ========================================
   PAGE PROJET — RicagE.dev
======================================== */

.project-page {
    position: relative;
    height: 100vh;
    height: 100dvh;
    padding: 30px 5%;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background-color: #2e1900;
}

/* RETOUR */

.project-page__back {
    display: inline-block;
    margin-bottom: 60px;
    color: inherit;
    text-decoration: none;
    font-size: 0.85rem;
}

.project-page__back:hover {
    text-decoration: underline;
    text-underline-offset: 5px;
}

/* LAYOUT */

.project-page__layout {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 65fr) minmax(0, 35fr);
    gap: 5%;
    align-items: start;

    flex: 1;
    min-height: 0;
}

/* GALERIE */

.project-page__gallery {
    display: flex;
    flex-direction: column;
    gap: 60px;

    min-width: 0;
    min-height: 0;
    height: 100%;

    overflow-y: auto;
    overflow-x: hidden;

    /* Masquer la barre native */
    scrollbar-width: none;
}

.project-page__gallery::-webkit-scrollbar {
    display: none;
}

.project-page__gallery figure {
    margin: 0;
}

.project-page__gallery img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 4px;
}

.project-page__gallery figcaption {
    margin-top: 12px;
    font-size: 0.75rem;
    opacity: 0.6;
}

/* INFORMATIONS */

.project-page__info {
    display: flex;
    flex-direction: column;
    position: relative;
    min-width: 0;
    height: 100%;
    overflow-y: auto;
    padding-right: 40px;
}

.project-page__number {
    font-size: 0.85rem;
    opacity: 0.6;
}

.project-page__info h1 {
    margin: 20px 0 35px;
    font-size: clamp(3rem, 5vw, 6rem);
    font-weight: 500;
    line-height: 1;
}

.project-page__intro {
    font-size: 1.15rem;
    line-height: 1.6;
}

.project-page__features {
    margin-top: 25px;
    font-size: 0.95rem;
    line-height: 1.7;
    opacity: 0.75;
}

/* MÉTADONNÉES */

.project-page__meta {
    display: flex;
    flex-direction: column;
    gap: 25px;
    margin-top: 50px;
}

.project-page__meta span {
    display: block;
    margin-bottom: 8px;
    font-size: 0.7rem;
    letter-spacing: 0.1em;
    opacity: 0.55;
}

.project-page__meta p {
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.6;
}

.project-page__visit-wrapper {
    margin-top: 3rem;
    padding: 0;
}

.project-page__visit {
    display: inline-flex;
    align-items: center;
    gap: 1rem;

    color: #fff;
    font-size: 1rem;
    font-weight: 500;
    text-decoration: none;
}

.project-page__visit--disabled {
    opacity: 0.5;
    cursor: default;
}

.project-page__visit span {
    font-size: 1.8rem;
    transition: transform 0.3s ease;
}

.project-page__visit:hover span {
    transform: translate(5px, -5px);
}

.project-page__visit:focus-visible {
    outline: 2px solid #ff8a00;
    outline-offset: 6px;
}

/* BARRE DE DÉFILEMENT PERSONNALISÉE */

.project-page__scrollbar {
    position: absolute;
    top: 0;
    right: 0;

    width: 4px;
    height: 100%;

    background: rgba(255, 255, 255, 0.08);
    border-radius: 4px;
}

.project-page__scrollbar-thumb {
    width: 100%;
    height: 25%;

    background: #ff8a00;
    border-radius: 4px;

    transform: translateY(0);
}

/* RESPONSIVE */

@media (max-width: 900px) {
    .project-page {
        height: auto;
        min-height: 100dvh;
        overflow: visible;
    }

    .project-page__layout {
        grid-template-columns: 1fr;
        gap: 50px;
    }

    .project-page__gallery {
        height: auto;
        overflow: visible;
    }

    .project-page__info {
        height: auto;
        overflow: visible;
    }
}
