/**
 * Styles page single projet
 * @package Synergin
 */

/* Layout */
.single-projet .project-single-main {
    padding-top: 0;
    margin-top: 0;
}

.synergin-project-single {
    max-width: 100%;
}


/* Hero */
.project-hero {
    position: relative;
    min-height: 45rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Image de fond hero en arrière-plan */
.project-hero-background {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 0;
}

.project-hero-bg {
    position: absolute;
    inset: 0;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.project-hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.project-hero-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.project-hero-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 2;
}

.project-hero-content {
    position: relative;
    z-index: 3;
    text-align: left;
    padding: 2rem;
}

.project-hero-title {
    display: none;
}

.project-hero-subtitle {
    display: none;
}

/* Sections communes */
.project-section-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #2F2E2A;
    text-transform: uppercase;
    text-align: center;
    margin: 0 0 2rem;
}

.project-section-title--split {
    text-align: left;
}

.project-title-accent {
    color: #764ba2;
}

.project-title-suffix {
    color: #f5c842;
}

/* Livrables */
.project-livrables {
    padding: 4rem 2rem;
    max-width: 80rem;
    margin: 0 auto;
}

.project-livrables-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
}

.project-livrable-card {
    background: #fff;
    border-radius: 100px;
    padding: 1rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    display: flex;
    
}

.project-livrable-icon {
    width: 48px;
    height: 48px;
    margin-right: 1rem;
}

.project-livrable-icon--folder,
.project-livrable-icon--calendar {
    color: #2271b1;
}

.project-livrable-icon--globe {
    color: #2271b1;
}

.project-livrable-icon--megaphone {
    color: #dc3232;
}

.project-livrable-content {
    display: flex;
    flex-direction: column;
}

.project-livrable-title {
    font-size: 0.9rem !important;
    font-weight: 600;
    color: #2F2E2A;
    margin: 0 0 0.5rem;
}

.project-livrable-desc {
    font-size: 0.8rem !important;
    color: #2F2E2A;
    line-height: 1.5;
    margin: 0;
}

/* Visuels */
.project-visuels {
    padding: 2rem 0;
}

.project-visuels-grid {
    display: flex;
    justify-content: center;
    gap: 2rem;
}

.project-visuel-item {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
    min-height: 375px;
    min-width: 475px;
    max-height: 375px;
    max-width: 475px;
}

.project-visuel-clickable,
.project-visuel-more {
    cursor: pointer;
    transition: transform 0.2s ease;
}

.project-visuel-clickable:hover,
.project-visuel-more:hover {
    transform: scale(1.02);
}

.project-visuel-more {
    position: relative;
}

.project-visuel-more-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.65);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
}

.project-visuel-more-text {
    color: #fff;
    font-weight: 700;
    font-size: 1rem;
    letter-spacing: 1px;
}

/* Lightbox galerie projet */
.project-lightbox {
    display: none;
    position: fixed;
    z-index: 9999;
    inset: 0;
    background: rgba(0, 0, 0, 0.95);
    align-items: center;
    justify-content: center;
}

.project-lightbox-content {
    position: relative;
    max-width: 90%;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.project-lightbox-content img {
    max-width: 100%;
    max-height: 85vh;
    object-fit: contain;
    border-radius: 8px;
}

.project-lightbox-close {
    position: absolute;
    top: 1.25rem;
    right: 2.5rem;
    color: #fff;
    font-size: 3rem;
    font-weight: 700;
    cursor: pointer;
    z-index: 10000;
}

.project-lightbox-close:hover {
    color: #764ba2;
}

.project-lightbox-prev,
.project-lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: #fff;
    font-size: 2.5rem;
    font-weight: 700;
    cursor: pointer;
    padding: 1rem;
}

.project-lightbox-prev {
    left: 1.5rem;
}

.project-lightbox-next {
    right: 1.5rem;
}

.project-lightbox-prev:hover,
.project-lightbox-next:hover {
    color: #764ba2;
}

.project-lightbox-counter {
    color: #fff;
    margin-top: 0.5rem;
}

.project-visuel-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    display: block;
}

/* Description */
.project-description {
    padding: 0 2rem;
    max-width: 92rem;
    margin: 0 0 0 9rem;
}

.project-description-content {
    font-size: 1rem;
    line-height: 1.8;
    color: #2F2E2A;
}

.project-description-content p {
    margin: 0 0 1rem;
}

/* Responsive */
@media (max-width: 768px) {
    .project-hero {
        min-height: 50vh;
    }

    .project-visuels-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .project-livrables,
    .project-description {
        padding: 2rem 1rem;
    }

}
