/* === PROJECT DETAIL PAGE STYLES === */

/* Hero section modifications */
.project-hero {
    height: 70vh;
    min-height: 500px;
}

.project-hero .hero-content {
    max-width: 800px;
}

.project-category {
    display: inline-block;
    background-color: var(--color-primary);
    color: white;
    font-family: var(--font-secondary);
    font-size: 0.9rem;
    font-weight: 500;
    padding: 0.4rem 1rem;
    border-radius: 50px;
    margin-bottom: var(--spacing-sm);
    letter-spacing: 0.5px;
}

.project-overview {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: var(--spacing-lg);
}

.project-intro-text {
    font-size: 1.2rem;
    line-height: 1.6;
    margin-top: var(--spacing-md);
}

.project-meta-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-md);
}

.project-meta-item {
    margin-bottom: var(--spacing-md);
}

.meta-title {
    font-family: var(--font-secondary);
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: var(--spacing-xs);
    color: var(--color-primary);
}

/* Project content section */
.project-content-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-xl);
}

.project-image-full {
    grid-column: span 2;
}

.project-image-full .image-placeholder {
    height: 500px;
    border-radius: var(--border-radius);
}

.project-image-half .image-placeholder {
    height: 300px;
    border-radius: var(--border-radius);
}

.project-description {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.project-description p {
    margin-bottom: var(--spacing-md);
}

/* Project gallery section */
.section-project-gallery {
    padding: var(--spacing-lg) 0;
    background: linear-gradient(135deg, var(--color-background) 0%, var(--color-bg-alt) 100%);
    position: relative;
}

.section-project-gallery::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--color-primary), transparent);
}

.project-gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-md);
    margin-top: var(--spacing-lg);
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: var(--border-radius);
    background: var(--color-surface);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all var(--transition-normal);
}

.gallery-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
}

.gallery-item .image-placeholder,
.gallery-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: var(--border-radius);
    transition: transform var(--transition-normal);
}

.gallery-item:hover .image-placeholder,
.gallery-item:hover img {
    transform: scale(1.05);
}

.gallery-item:first-child {
    grid-column: span 2;
}

.gallery-item:first-child .image-placeholder,
.gallery-item:first-child img {
    height: 320px;
}

/* Gallery overlay for lightbox */
.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity var(--transition-normal);
    cursor: pointer;
    border-radius: var(--border-radius);
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-zoom {
    font-size: 2rem;
    color: white;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

/* Lightbox styles */
.lightbox {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(5px);
}

.lightbox.active {
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

.lightbox-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.lightbox-image {
    max-width: 100%;
    max-height: 80vh;
    object-fit: contain;
    border-radius: var(--border-radius);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.lightbox-caption {
    color: white;
    font-family: var(--font-primary);
    font-size: 1.1rem;
    margin-top: var(--spacing-sm);
    text-align: center;
    max-width: 600px;
    line-height: 1.4;
}

.lightbox-close {
    position: absolute;
    top: -50px;
    right: 0;
    color: white;
    font-size: 2.5rem;
    font-weight: bold;
    cursor: pointer;
    transition: color var(--transition-fast);
    z-index: 1;
}

.lightbox-close:hover {
    color: var(--color-primary);
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    display: flex;
    justify-content: space-between;
    pointer-events: none;
}

.lightbox-prev,
.lightbox-next {
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    font-size: 2rem;
    padding: 1rem;
    cursor: pointer;
    transition: all var(--transition-fast);
    border-radius: 50%;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: auto;
}

.lightbox-prev:hover,
.lightbox-next:hover {
    background: var(--color-primary);
    transform: scale(1.1);
}

.lightbox-prev {
    margin-left: -80px;
}

.lightbox-next {
    margin-right: -80px;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Project navigation section */
.section-project-navigation {
    padding: var(--spacing-sm) 0;
}

.project-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--spacing-md) 0;
    border-top: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
}

.nav-project {
    display: flex;
    flex-direction: column;
    max-width: 200px;
    transition: transform var(--transition-fast);
}

.prev-project {
    align-items: flex-start;
}

.prev-project:hover {
    transform: translateX(-5px);
}

.next-project {
    align-items: flex-end;
    text-align: right;
}

.next-project:hover {
    transform: translateX(5px);
}

.nav-direction {
    font-family: var(--font-primary);
    font-size: 0.9rem;
    color: var(--color-text-dim);
    margin-bottom: var(--spacing-xs);
}

.nav-title {
    font-family: var(--font-secondary);
    font-weight: 600;
    color: var(--color-text);
}

.nav-all-projects {
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: transform var(--transition-fast);
}

.nav-all-projects:hover {
    transform: translateY(-5px);
}

.all-projects-icon {
    margin-bottom: var(--spacing-xs);
}

.all-projects-text {
    font-family: var(--font-primary);
    font-size: 0.9rem;
    font-weight: 500;
}

/* Responsive adjustments */
@media (max-width: 992px) {
    .project-overview {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
    }
    
    .project-content-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
    }
    
    .project-image-full {
        grid-column: span 1;
    }
}

@media (max-width: 768px) {
    .project-hero {
        height: 60vh;
    }
    
    .project-meta-grid {
        grid-template-columns: 1fr;
    }
    
    .project-gallery {
        grid-template-columns: 1fr;
    }
    
    .project-navigation {
        flex-direction: column;
        gap: var(--spacing-md);
        text-align: center;
    }
    
    .nav-project {
        max-width: 100%;
        align-items: center;
        text-align: center;
    }
    
    .next-project {
        align-items: center;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .project-hero {
        height: 50vh;
    }
    
    .project-image-full .image-placeholder {
        height: 250px;
    }
    
    .project-image-half .image-placeholder {
        height: 200px;
    }
    
    .gallery-item .image-placeholder {
        height: 200px;
    }
}

/* === STYLES SPÉCIFIQUES POUR UNSA DÉFENSE === */

/* Feature list styling */
.feature-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-lg);
    margin-top: var(--spacing-md);
}

.feature-item {
    background: var(--color-bg-alt);
    padding: var(--spacing-md);
    border-radius: var(--border-radius);
    border-left: 4px solid var(--color-primary);
    transition: all var(--transition-normal);
}

.feature-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.feature-item h4 {
    font-family: var(--font-secondary);
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--color-primary);
    margin-bottom: var(--spacing-xs);
}

.feature-item p {
    font-size: 0.95rem;
    line-height: 1.5;
    color: var(--color-text-dim);
    margin-bottom: 0;
}

/* Results section styling */
.section-project-results {
    background: linear-gradient(135deg, var(--color-surface) 0%, var(--color-bg-alt) 100%);
    padding: var(--spacing-lg) 0;
    position: relative;
}

.section-project-results::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--color-primary), transparent);
}

.section-project-results::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--color-primary), transparent);
}

.results-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--spacing-md);
    max-width: 1000px;
    margin: 0 auto;
}

.result-item {
    text-align: center;
    padding: var(--spacing-sm);
    background: rgba(255, 255, 255, 0.02);
    border-radius: var(--border-radius);
    border: 1px solid rgba(137, 99, 255, 0.1);
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.result-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(137, 99, 255, 0.1), transparent);
    transition: left 0.5s ease;
}

.result-item:hover::before {
    left: 100%;
}

.result-item:hover {
    transform: translateY(-3px);
    border-color: var(--color-primary);
    box-shadow: 0 8px 25px rgba(137, 99, 255, 0.15);
}

.result-number {
    font-family: var(--font-secondary);
    font-size: 2.8rem;
    font-weight: 700;
    color: var(--color-primary);
    line-height: 1;
    margin-bottom: var(--spacing-xs);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 1;
}

.result-text {
    font-family: var(--font-primary);
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--color-text-dim);
    line-height: 1.4;
    position: relative;
    z-index: 1;
}

/* Responsive adjustments for new sections */
@media (max-width: 992px) {
    .feature-list {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
    }
    
    .results-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--spacing-md);
    }
    
    .project-gallery {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .gallery-item:first-child {
        grid-column: span 2;
    }
}

@media (max-width: 768px) {
    .section-project-results {
        padding: var(--spacing-md) 0;
    }
    
    .results-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--spacing-sm);
    }
    
    .result-item {
        padding: var(--spacing-xs);
    }
    
    .result-number {
        font-size: 2.2rem;
    }
    
    .result-text {
        font-size: 0.8rem;
    }
    
    .project-gallery {
        grid-template-columns: 1fr;
        gap: var(--spacing-sm);
    }
    
    .gallery-item:first-child {
        grid-column: span 1;
    }
    
    .gallery-item .image-placeholder,
    .gallery-item img {
        height: 220px;
    }
    
    .gallery-item:first-child .image-placeholder,
    .gallery-item:first-child img {
        height: 250px;
    }
}

@media (max-width: 480px) {
    .section-project-gallery {
        padding: var(--spacing-md) 0;
    }
    
    .section-project-results {
        padding: var(--spacing-sm) 0;
    }
    
    .results-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-xs);
    }
    
    .result-item {
        padding: var(--spacing-xs);
    }
    
    .result-number {
        font-size: 1.8rem;
    }
    
    .result-text {
        font-size: 0.75rem;
    }
    
    .feature-item {
        padding: var(--spacing-sm);
    }
    
    .gallery-item .image-placeholder,
    .gallery-item img {
        height: 200px;
    }
    
    .gallery-item:first-child .image-placeholder,
    .gallery-item:first-child img {
        height: 220px;
    }
    
    /* Lightbox responsive adjustments */
    .lightbox-content {
        max-width: 95%;
        max-height: 95%;
    }
    
    .lightbox-close {
        top: -40px;
        font-size: 2rem;
    }
    
    .lightbox-prev,
    .lightbox-next {
        font-size: 1.5rem;
        width: 50px;
        height: 50px;
        padding: 0.8rem;
    }
    
    .lightbox-prev {
        margin-left: -60px;
    }
    
    .lightbox-next {
        margin-right: -60px;
    }
    
    .lightbox-caption {
        font-size: 0.9rem;
        margin-top: var(--spacing-xs);
    }
    
    .gallery-zoom {
        font-size: 1.5rem;
    }
}

@media (max-width: 600px) {
    .lightbox-prev,
    .lightbox-next {
        position: fixed;
        top: 50%;
        margin: 0;
        z-index: 10001;
    }
    
    .lightbox-prev {
        left: 10px;
    }
    
    .lightbox-next {
        right: 10px;
    }
    
    .lightbox-close {
        position: fixed;
        top: 20px;
        right: 20px;
        font-size: 1.8rem;
    }
    
    .lightbox-caption {
        font-size: 0.8rem;
        padding: 0 var(--spacing-sm);
    }
}