/* ---------- BASE ---------- */
body {
    margin: 0;
    background: #f4f4f4;
    font-family: League;
    font-size: 16px;
    color: #000;
}

html {
    overflow-y: scroll; /* scroll global assumé */
}

/* ---------- BANNIÈRE ---------- */
.project-banner {
    width: 100%;
    border-bottom: 1px solid #000;
    background: #eaeaea;
    padding: 30px 30px 10px;
}

.project-title {
    margin: 0;
    font-size: 1.6rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-family: Grave;
}

/* ---------- PARTIE 1 : FICHE PROJET ---------- */
.container-projet {
    min-height: calc(100vh - 90px);
    border-bottom: 1px solid #000;
}

/* ---------- COLONNES ---------- */
.col-icons,
.col-principal,
.col-scroll-img {
    position: relative;
    padding: 25px;
    background: #eaeaea;
}

/* séparations verticales */
.col-principal::before,
.col-scroll-img::before {
    content: "";
    position: absolute;
    left: 0;
    top: 40px;
    height: calc(100% - 80px);
    width: 1px;
    background: #000;
}

/* ---------- ICÔNE ---------- */
.project-icon {
    width: 64px;
    height: 64px;
    border: 2px solid #000;
    padding: 6px;
    margin-bottom: 20px;
    background: #f4f4f4;
    object-fit: contain;
}

/* ---------- CONTENU CENTRAL ---------- */
.project-image {
    max-width: 60%;
    margin-right: 25px;
    margin-bottom: 20px;
    float: left;
    border: 1px solid #000;
    cursor: zoom-in;
}

.desc {
    font-size: 1.1rem;
    line-height: 1.6;
}

/* ---------- COLONNE DROITE (SCROLL CONSERVÉ) ---------- */
.col-scroll-img {
    max-height: calc(128vh);
    overflow-y: auto;
    scrollbar-width: thin;
}

.scroll-img {
    width: 100%;
    margin-bottom: 20px;
    border: 1px solid #000;
    cursor: zoom-in;
}

/* ---------- PARTIE 2 : EXTENSION ---------- */
.project-extension {
    background: #eaeaea;
    padding: 60px 30px;
    border-bottom: 1px solid #000;
}

/* Galerie en colonnes verticales
   Les images s’empilent verticalement, ce qui évite les espaces vides
   liés aux différences de formats (portrait / paysage) */

.extension-gallery {
    column-count: 4;
    column-gap: 16px;
}

/* Chaque image conserve son ratio
   et évite les coupures entre colonnes */

.extension-gallery img {
    width: 100%;
    height: auto;
    margin-bottom: 16px;
    border: 1px solid #000;
    break-inside: avoid;
    cursor: zoom-in;
}




.extension-text {
    border-left: 1px solid #000;
    padding-left: 30px;
    font-size: 1.1rem;
    line-height: 1.6;
}

/* ---------- ZOOM ---------- */
#zoom-overlay {
    position: fixed;
    inset: 0;
    background: rgba(255,255,255,0.75);
    backdrop-filter: blur(5px);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 20000;
}

#zoom-overlay img {
    max-width: 90%;
    max-height: 90%;
    border: 1px solid #000;
}

/* ---------- MOBILE ---------- */
@media (max-width: 992px) {
    .project-image {
        float: none;
        max-width: 100%;
    }
    .extension-text {
        border-left: none;
        padding-left: 0;
        margin-top: 30px;
    }
}