/* Styles spécifiques r la page de projet Beyond the Echo */
.project-container {
    padding: 100px 0 80px; /* Augmenter le padding en bas pour faire de la place pour les icônes */
    background-color: var(--bg-base);
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: calc(100vh - 80px); /* S'assurer que le contenu prend au moins toute la hauteur */
    box-sizing: border-box;
}

.project-info {
    max-width: 700px;
    margin: 0 auto var(--space-lg);
    text-align: center;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0 var(--space-md);
}

.project-title {
    font-family: 'Playfair Display', serif;
    font-size: 3.5rem;
    margin: 0 auto var(--space-xs);
    color: var(--text-dark);
    font-weight: 600;
    text-align: center;
    width: 100%;
}

.project-year {
    font-size: 1.4rem;
    color: var(--muted);
    font-weight: 300;
    margin: 0 auto var(--space-md);
    text-align: center;
    width: 100%;
}

.project-description {
    font-size: 1.2rem;
    line-height: 1.7;
    color: var(--text);
    font-weight: 300;
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

/* Grid Container - optimized for rectangular images */
.grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: var(--space-md);
    padding: var(--space-md) 0;
    width: 100%;
}

.grid-item {
    position: relative;
    cursor: pointer;
    border-radius: 4px;
    overflow: hidden;
    transition: var(--transition);
    background-color: #000;
    aspect-ratio: 4/3;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.grid-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.25);
}

.grid-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.grid-item:hover .grid-image {
    transform: scale(1.05);
}

/* Lightbox */
.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: 20px;
    right: 20px;
    background: none;
    border: none;
    color: white;
    font-size: 2.5rem;
    cursor: pointer;
    z-index: 1001;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.8;
    transition: var(--transition);
}

.lightbox-close:hover {
    opacity: 1;
    transform: scale(1.1);
}

.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: 2rem;
    cursor: pointer;
    width: 60px;
    height: 60px;
    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.1);
}

.lightbox-counter {
    position: absolute;
    bottom: 20px;
    left: 0;
    width: 100%;
    text-align: center;
    color: white;
    font-size: 1.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) {
    .grid-container {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    }
}

@media (max-width: 900px) {
    .grid-container {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    }
    
    .project-title {
        font-size: 2.8rem;
    }
}

@media (max-width: 768px) {
    .project-container {
        padding: 80px 0 60px;
    }
    
    .project-title {
        font-size: 2.4rem;
    }
    
    .project-year {
        font-size: 1.2rem;
    }
    
    .project-description {
        font-size: 1.1rem;
    }
    
    .grid-container {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: var(--space-sm);
    }
    
    .social-links {
        gap: var(--space-sm);
    }
    
    .social-link {
        width: 36px;
        height: 36px;
    }
}

@media (max-width: 600px) {
    .grid-container {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
        gap: var(--space-xs);
    }
    
    .project-title {
        font-size: 2rem;
    }
    
    .project-description {
        font-size: 1rem;
    }
    
    .lightbox-prev, .lightbox-next {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
    }
    
    .social-links {
        gap: var(--space-sm);
    }
    
    .social-link {
        width: 36px;
        height: 36px;
    }
}

@media (max-width: 400px) {
    .social-links {
        gap: var(--space-xs);
    }
    
    .social-link {
        width: 32px;
        height: 32px;
    }
}

/* 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;
}