

/* Section #projets : même comportement que index-clean.html (pin + scroll cartes) */
#projets.project-section {
    position: relative !important;
    overflow: hidden !important;
    width: 100% !important;
    height: 100vh !important;
    background-color: #000;
    display: flex !important;
    flex-direction: column !important;
    justify-content: flex-start !important;
    align-items: stretch !important;
}

/* Autres sections .project-section (ne pas cibler #projets) */
.project-section:not(#projets) {
    position: relative !important;
    overflow: hidden !important;
    width: 100% !important;
    height: 100vh !important;
}

#projets .projettitle {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2;
    pointer-events: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

#projets .spp-dyn-list {
    position: relative !important;
    z-index: 1;
    flex: 1 1 0%;
    min-height: 0;
    width: 100%;
    height: 100%;
}

.overlay-text {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 20px;
    box-sizing: border-box;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.6), transparent 40%);
    color: white;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    border-radius: 18px;
}

.overlay-bottom {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.meta-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    opacity: 0.9;
}

.date-hover::after {
    content: "—";
    margin: 0 0.4rem;
    color: #aaff00;
}
.projetsection.project-section {
    z-index: 99;
    background-color: #191c1e;
    width: 100%;
    position: relative;
    overflow: hidden
}

.p-120 {
    color: #fff;
    font-family: Bricolagegrotesque Variablefont Opsz Wdth Wght;
    font-size: 120px;
    line-height: 100%
}

.p-120.black {
    color: #1a1c1e;
    text-transform: uppercase
}

.projetcover {
    object-fit: cover;
    border-radius: 18px;
    width: 100%;
    height: 100%
}

.projettitle {
    justify-content: center;
    align-items: center;
    padding: 64px;
    display: block;
    position: absolute;
}

/* Cartes projets (même dimensions que index-clean.html) */
#projets .project-card {
    width: 30vw;
    max-width: 30vw;
    height: 40vh;
    overflow: hidden;
    border-radius: 18px;
}

/* Mobile : comme breezyrhino.com – section en flux, titre en tête, cartes empilées */
@media (max-width: 768px) {
    #projets.project-section,
    .project-section {
        height: auto !important;
        min-height: auto;
        padding: 2rem 0 3rem;
        display: block !important;
    }

    #projets .projettitle {
        position: relative !important;
        top: auto;
        left: auto;
        right: auto;
        bottom: auto;
        padding: 0 1rem 1.5rem;
        min-height: 0;
    }

    #projets .spp-dyn-list {
        position: relative !important;
        flex: none;
        min-height: 0;
    }

    #projets .spp-dyn-items {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 0;
    }

    .section-title {
        font-size: 1.5rem;
        margin-bottom: 1.5rem;
    }

    #projets .project-card {
        position: static !important;
        width: 80vw;
        max-width: 80vw;
        height: auto !important;
        min-height: 200px;
        margin: 0 auto 2rem auto;
        transform: none !important;
    }

    #projets .project-card .projetcover {
        width: 100%;
        height: auto;
        aspect-ratio: 16/10;
        object-fit: cover;
    }

    /* Sur mobile : overlay-mobile visible (titre en bas de carte), overlay-text masqué */
    #projets .overlay-mobile {
        display: block;
    }
    #projets .overlay-text {
        display: none !important;
    }
}