/* Variables CSS */
:root {
    --bg-base: #f8f8f8;
    --text-dark: #222;
    --text: #444;
    --muted: #777;
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 1.5rem;
    --space-lg: 2.5rem;
    --space-xl: 4rem;
    --transition: all 0.2s ease;
}

/* Styles spécifiques à la page de projet Interflows - Design classique amélioré */
.project-container {
    padding: 100px 0 50px;
    background-color: var(--bg-base);
}

.project-hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: var(--space-xl);
    text-align: center;
}

.project-info {
    max-width: 700px;
    padding: 0 var(--space-md);
    margin: 0 auto;
    text-align: center;
}

.project-title {
    font-family: 'Playfair Display', serif;
    font-size: 3rem;
    margin: 0 auto var(--space-xs);
    color: var(--text-dark);
    font-weight: 600;
    text-align: center;
}

.project-year {
    font-size: 1.2rem;
    color: var(--muted);
    font-weight: 300;
    margin-bottom: var(--space-md);
    text-align: center;
}

/* Grille classique et épurée */
.classic-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    padding: var(--space-md) 5%;
    margin: 0 auto;
    max-width: 1400px;
}

.grid-item {
    position: relative;
    cursor: pointer;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background-color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 200px;
}

.grid-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.grid-image {
    width: 100%;
    height: auto;
    object-fit: contain;
    display: block;
    transition: transform 0.5s ease;
}

.grid-item:hover .grid-image {
    transform: scale(1.03);
}

/* Lightbox améliorée */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.97);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease;
}

.lightbox.open {
    opacity: 1;
    visibility: visible;
}

.lightbox-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
}

.lightbox-image {
    max-width: 100%;
    max-height: 80vh;
    object-fit: contain;
}

.lightbox-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    z-index: 1001;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.8;
    transition: var(--transition);
}

.lightbox-close:hover {
    opacity: 1;
    transform: scale(1.05);
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    width: 100%;
    display: flex;
    justify-content: space-between;
    transform: translateY(-50%);
    padding: 0 var(--space-md);
}

.lightbox-prev, .lightbox-next {
    background: rgba(0, 0, 0, 0.5);
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.lightbox-prev:hover, .lightbox-next:hover {
    background: rgba(0, 0, 0, 0.8);
    transform: scale(1.05);
}

.lightbox-counter {
    position: absolute;
    bottom: 15px;
    left: 0;
    width: 100%;
    text-align: center;
    color: white;
    font-size: 1rem;
    opacity: 0.8;
}

/* Footer simplifié */
footer {
    background-color: var(--bg-base);
    padding: var(--space-md) 0;
    text-align: center;
}

.footer-content {
    display: flex;
    justify-content: center;
    align-items: center;
}

.social-links {
    display: flex;
    gap: var(--space-md);
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #fff;
    color: var(--text-dark);
    transition: var(--transition);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.social-link:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
    color: var(--text);
}

/* Animation simplifiée */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.fade-in {
    opacity: 0;
    animation: fadeIn 0.5s ease forwards;
}

/* Responsive */
@media (max-width: 1200px) {
    .classic-grid {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    }
}

@media (max-width: 900px) {
    .classic-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 15px;
    }
    
    .project-title {
        font-size: 2.4rem;
    }
}

@media (max-width: 768px) {
    .project-container {
        padding: 70px 0 30px;
    }
    
    .project-title {
        font-size: 2rem;
    }
    
    .classic-grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
        gap: 12px;
        padding: var(--space-sm) 4%;
    }
    
    .social-links {
        gap: var(--space-sm);
    }
    
    .social-link {
        width: 36px;
        height: 36px;
    }
}

@media (max-width: 600px) {
    .classic-grid {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
        gap: 10px;
    }
    
    .project-title {
        font-size: 1.8rem;
    }
    
    .lightbox-prev, .lightbox-next {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }
    
    .lightbox-close {
        font-size: 1.8rem;
        top: 10px;
        right: 10px;
    }
    
    .social-links {
        gap: var(--space-sm);
    }
    
    .social-link {
        width: 36px;
        height: 36px;
    }
}

@media (max-width: 480px) {
    .classic-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .project-title {
        font-size: 1.6rem;
    }
    
    .project-year {
        font-size: 1rem;
    }
}

/* Styles pour les placeholders de chargement */
.image-placeholder {
    width: 100%;
    height: 100%;
    background-color: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    font-size: 14px;
    transition: opacity 0.3s ease;
}

.grid-image {
    opacity: 1;
    transition: opacity 0.3s ease;
}